(function e(t,i){if(typeof exports==="object"&&typeof module==="object")module.exports=i();else if(typeof define==="function"&&define.amd)define([],i);else{var n=i();for(var r in n)(typeof exports==="object"?exports:t)[r]=n[r]}})(window,function(){return function(e){var t={};function i(n){if(t[n]){return t[n].exports}var r=t[n]={i:n,l:false,exports:{}};e[n].call(r.exports,r,r.exports,i);r.l=true;return r.exports}i.m=e;i.c=t;i.d=function(e,t,n){if(!i.o(e,t)){Object.defineProperty(e,t,{enumerable:true,get:n})}};i.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})};i.t=function(e,t){if(t&1)e=i(e);if(t&8)return e;if(t&4&&typeof e==="object"&&e&&e.__esModule)return e;var n=Object.create(null);i.r(n);Object.defineProperty(n,"default",{enumerable:true,value:e});if(t&2&&typeof e!="string")for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n};i.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};i.d(t,"a",t);return t};i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};i.p="";return i(i.s=12)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.setLogger=a;t.isEnable=o;t.log=s;t.error=l;var n=void 0;var r=void 0;function a(){n=console.log;r=console.error}function o(){return n!=null}function s(e){if(n){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;r1?t-1:0),n=1;n=0&&i=0},isEmptyObject:function(e){var t;for(t in e){return false}return true},isPlainObject:function(e){var t;if(!e||m.type(e)!=="object"||e.nodeType||m.isWindow(e)){return false}try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf")){return false}}catch(e){return false}if(!y.ownFirst){for(t in e){return p.call(e,t)}}for(t in e){}return t===undefined||p.call(e,t)},type:function(e){if(e==null){return e+""}return typeof e==="object"||typeof e==="function"?d[h.call(e)]||"object":typeof e},globalEval:function(e){if(e&&m.trim(e)){(i.execScript||function(e){i["eval"].call(i,e)})(e)}},camelCase:function(e){return e.replace(b,"ms-").replace(S,w)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var i,n=0;if(P(e)){i=e.length;for(;n0&&t-1 in e}var C= /*! * Sizzle CSS Selector Engine v2.2.1 * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2015-10-17 */ function(e){var t,i,n,r,a,o,s,l,u,f,c,d,h,p,y,v,m,g,b,S="sizzle"+1*new Date,w=e.document,P=0,C=0,_=ae(),k=ae(),D=ae(),x=function(e,t){if(e===t){c=true}return 0},T=1<<31,M={}.hasOwnProperty,L=[],W=L.pop,E=L.push,A=L.push,R=L.slice,B=function(e,t){var i=0,n=e.length;for(;i+~]|"+z+")"+z+"*"),V=new RegExp("="+z+"*([^\\]'\"]*?)"+z+"*\\]","g"),J=new RegExp(N),G=new RegExp("^"+O+"$"),Y={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+z+"?|("+z+")|.)","ig"),ie=function(e,t,i){var n="0x"+t-65536;return n!==n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)},ne=function(){d()};try{A.apply(L=R.call(w.childNodes),w.childNodes);L[w.childNodes.length].nodeType}catch(e){A={apply:L.length?function(e,t){E.apply(e,R.call(t))}:function(e,t){var i=e.length,n=0;while(e[i++]=t[n++]){}e.length=i-1}}}function re(e,t,n,r){var a,s,u,f,c,p,m,g,P=t&&t.ownerDocument,C=t?t.nodeType:9;n=n||[];if(typeof e!=="string"||!e||C!==1&&C!==9&&C!==11){return n}if(!r){if((t?t.ownerDocument||t:w)!==h){d(t)}t=t||h;if(y){if(C!==11&&(p=Z.exec(e))){if(a=p[1]){if(C===9){if(u=t.getElementById(a)){if(u.id===a){n.push(u);return n}}else{return n}}else{if(P&&(u=P.getElementById(a))&&b(t,u)&&u.id===a){n.push(u);return n}}}else if(p[2]){A.apply(n,t.getElementsByTagName(e));return n}else if((a=p[3])&&i.getElementsByClassName&&t.getElementsByClassName){A.apply(n,t.getElementsByClassName(a));return n}}if(i.qsa&&!D[e+" "]&&(!v||!v.test(e))){if(C!==1){P=t;g=e}else if(t.nodeName.toLowerCase()!=="object"){if(f=t.getAttribute("id")){f=f.replace(ee,"\\$&")}else{t.setAttribute("id",f=S)}m=o(e);s=m.length;c=G.test(f)?"#"+f:"[id='"+f+"']";while(s--){m[s]=c+" "+ye(m[s])}g=m.join(",");P=Q.test(e)&&he(t.parentNode)||t}if(g){try{A.apply(n,P.querySelectorAll(g));return n}catch(e){}finally{if(f===S){t.removeAttribute("id")}}}}}}return l(e.replace(j,"$1"),t,n,r)}function ae(){var e=[];function t(i,r){if(e.push(i+" ")>n.cacheLength){delete t[e.shift()]}return t[i+" "]=r}return t}function oe(e){e[S]=true;return e}function se(e){var t=h.createElement("div");try{return!!e(t)}catch(e){return false}finally{if(t.parentNode){t.parentNode.removeChild(t)}t=null}}function le(e,t){var i=e.split("|"),r=i.length;while(r--){n.attrHandle[i[r]]=t}}function ue(e,t){var i=t&&e,n=i&&e.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||T)-(~e.sourceIndex||T);if(n){return n}if(i){while(i=i.nextSibling){if(i===t){return-1}}}return e?1:-1}function fe(e){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===e}}function ce(e){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===e}}function de(e){return oe(function(t){t=+t;return oe(function(i,n){var r,a=e([],i.length,t),o=a.length;while(o--){if(i[r=a[o]]){i[r]=!(n[r]=i[r])}}})})}function he(e){return e&&typeof e.getElementsByTagName!=="undefined"&&e}i=re.support={};a=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":false};d=re.setDocument=function(e){var t,r,o=e?e.ownerDocument||e:w;if(o===h||o.nodeType!==9||!o.documentElement){return h}h=o;p=h.documentElement;y=!a(h);if((r=h.defaultView)&&r.top!==r){if(r.addEventListener){r.addEventListener("unload",ne,false)}else if(r.attachEvent){r.attachEvent("onunload",ne)}}i.attributes=se(function(e){e.className="i";return!e.getAttribute("className")});i.getElementsByTagName=se(function(e){e.appendChild(h.createComment(""));return!e.getElementsByTagName("*").length});i.getElementsByClassName=$.test(h.getElementsByClassName);i.getById=se(function(e){p.appendChild(e).id=S;return!h.getElementsByName||!h.getElementsByName(S).length});if(i.getById){n.find["ID"]=function(e,t){if(typeof t.getElementById!=="undefined"&&y){var i=t.getElementById(e);return i?[i]:[]}};n.filter["ID"]=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}}}else{delete n.find["ID"];n.filter["ID"]=function(e){var t=e.replace(te,ie);return function(e){var i=typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id");return i&&i.value===t}}}n.find["TAG"]=i.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!=="undefined"){return t.getElementsByTagName(e)}else if(i.qsa){return t.querySelectorAll(e)}}:function(e,t){var i,n=[],r=0,a=t.getElementsByTagName(e);if(e==="*"){while(i=a[r++]){if(i.nodeType===1){n.push(i)}}return n}return a};n.find["CLASS"]=i.getElementsByClassName&&function(e,t){if(typeof t.getElementsByClassName!=="undefined"&&y){return t.getElementsByClassName(e)}};m=[];v=[];if(i.qsa=$.test(h.querySelectorAll)){se(function(e){p.appendChild(e).innerHTML=""+"";if(e.querySelectorAll("[msallowcapture^='']").length){v.push("[*^$]="+z+"*(?:''|\"\")")}if(!e.querySelectorAll("[selected]").length){v.push("\\["+z+"*(?:value|"+I+")")}if(!e.querySelectorAll("[id~="+S+"-]").length){v.push("~=")}if(!e.querySelectorAll(":checked").length){v.push(":checked")}if(!e.querySelectorAll("a#"+S+"+*").length){v.push(".#.+[+~]")}});se(function(e){var t=h.createElement("input");t.setAttribute("type","hidden");e.appendChild(t).setAttribute("name","D");if(e.querySelectorAll("[name=d]").length){v.push("name"+z+"*[*^$|!~]?=")}if(!e.querySelectorAll(":enabled").length){v.push(":enabled",":disabled")}e.querySelectorAll("*,:x");v.push(",.*:")})}if(i.matchesSelector=$.test(g=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector)){se(function(e){i.disconnectedMatch=g.call(e,"div");g.call(e,"[s!='']:x");m.push("!=",N)})}v=v.length&&new RegExp(v.join("|"));m=m.length&&new RegExp(m.join("|"));t=$.test(p.compareDocumentPosition);b=t||$.test(p.contains)?function(e,t){var i=e.nodeType===9?e.documentElement:e,n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(i.contains?i.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))}:function(e,t){if(t){while(t=t.parentNode){if(t===e){return true}}}return false};x=t?function(e,t){if(e===t){c=true;return 0}var n=!e.compareDocumentPosition-!t.compareDocumentPosition;if(n){return n}n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1;if(n&1||!i.sortDetached&&t.compareDocumentPosition(e)===n){if(e===h||e.ownerDocument===w&&b(w,e)){return-1}if(t===h||t.ownerDocument===w&&b(w,t)){return 1}return f?B(f,e)-B(f,t):0}return n&4?-1:1}:function(e,t){if(e===t){c=true;return 0}var i,n=0,r=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!r||!a){return e===h?-1:t===h?1:r?-1:a?1:f?B(f,e)-B(f,t):0}else if(r===a){return ue(e,t)}i=e;while(i=i.parentNode){o.unshift(i)}i=t;while(i=i.parentNode){s.unshift(i)}while(o[n]===s[n]){n++}return n?ue(o[n],s[n]):o[n]===w?-1:s[n]===w?1:0};return h};re.matches=function(e,t){return re(e,null,null,t)};re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h){d(e)}t=t.replace(V,"='$1']");if(i.matchesSelector&&y&&!D[t+" "]&&(!m||!m.test(t))&&(!v||!v.test(t))){try{var n=g.call(e,t);if(n||i.disconnectedMatch||e.document&&e.document.nodeType!==11){return n}}catch(e){}}return re(t,h,null,[e]).length>0};re.contains=function(e,t){if((e.ownerDocument||e)!==h){d(e)}return b(e,t)};re.attr=function(e,t){if((e.ownerDocument||e)!==h){d(e)}var r=n.attrHandle[t.toLowerCase()],a=r&&M.call(n.attrHandle,t.toLowerCase())?r(e,t,!y):undefined;return a!==undefined?a:i.attributes||!y?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null};re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};re.uniqueSort=function(e){var t,n=[],r=0,a=0;c=!i.detectDuplicates;f=!i.sortStable&&e.slice(0);e.sort(x);if(c){while(t=e[a++]){if(t===e[a]){r=n.push(a)}}while(r--){e.splice(n[r],1)}}f=null;return e};r=re.getText=function(e){var t,i="",n=0,a=e.nodeType;if(!a){while(t=e[n++]){i+=r(t)}}else if(a===1||a===9||a===11){if(typeof e.textContent==="string"){return e.textContent}else{for(e=e.firstChild;e;e=e.nextSibling){i+=r(e)}}}else if(a===3||a===4){return e.nodeValue}return i};n=re.selectors={cacheLength:50,createPseudo:oe,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){e[1]=e[1].replace(te,ie);e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie);if(e[2]==="~="){e[3]=" "+e[3]+" "}return e.slice(0,4)},CHILD:function(e){e[1]=e[1].toLowerCase();if(e[1].slice(0,3)==="nth"){if(!e[3]){re.error(e[0])}e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd"));e[5]=+(e[7]+e[8]||e[3]==="odd")}else if(e[3]){re.error(e[0])}return e},PSEUDO:function(e){var t,i=!e[6]&&e[2];if(Y["CHILD"].test(e[0])){return null}if(e[3]){e[2]=e[4]||e[5]||""}else if(i&&J.test(i)&&(t=o(i,true))&&(t=i.indexOf(")",i.length-t)-i.length)){e[0]=e[0].slice(0,t);e[2]=i.slice(0,t)}return e.slice(0,3)}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return e==="*"?function(){return true}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+z+")"+e+"("+z+"|$)"))&&_(e,function(e){return t.test(typeof e.className==="string"&&e.className||typeof e.getAttribute!=="undefined"&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(n){var r=re.attr(n,e);if(r==null){return t==="!="}if(!t){return true}r+="";return t==="="?r===i:t==="!="?r!==i:t==="^="?i&&r.indexOf(i)===0:t==="*="?i&&r.indexOf(i)>-1:t==="$="?i&&r.slice(-i.length)===i:t==="~="?(" "+r.replace(U," ")+" ").indexOf(i)>-1:t==="|="?r===i||r.slice(0,i.length+1)===i+"-":false}},CHILD:function(e,t,i,n,r){var a=e.slice(0,3)!=="nth",o=e.slice(-4)!=="last",s=t==="of-type";return n===1&&r===0?function(e){return!!e.parentNode}:function(t,i,l){var u,f,c,d,h,p,y=a!==o?"nextSibling":"previousSibling",v=t.parentNode,m=s&&t.nodeName.toLowerCase(),g=!l&&!s,b=false;if(v){if(a){while(y){d=t;while(d=d[y]){if(s?d.nodeName.toLowerCase()===m:d.nodeType===1){return false}}p=y=e==="only"&&!p&&"nextSibling"}return true}p=[o?v.firstChild:v.lastChild];if(o&&g){d=v;c=d[S]||(d[S]={});f=c[d.uniqueID]||(c[d.uniqueID]={});u=f[e]||[];h=u[0]===P&&u[1];b=h&&u[2];d=h&&v.childNodes[h];while(d=++h&&d&&d[y]||(b=h=0)||p.pop()){if(d.nodeType===1&&++b&&d===t){f[e]=[P,h,b];break}}}else{if(g){d=t;c=d[S]||(d[S]={});f=c[d.uniqueID]||(c[d.uniqueID]={});u=f[e]||[];h=u[0]===P&&u[1];b=h}if(b===false){while(d=++h&&d&&d[y]||(b=h=0)||p.pop()){if((s?d.nodeName.toLowerCase()===m:d.nodeType===1)&&++b){if(g){c=d[S]||(d[S]={});f=c[d.uniqueID]||(c[d.uniqueID]={});f[e]=[P,b]}if(d===t){break}}}}}b-=r;return b===n||b%n===0&&b/n>=0}}},PSEUDO:function(e,t){var i,r=n.pseudos[e]||n.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);if(r[S]){return r(t)}if(r.length>1){i=[e,e,"",t];return n.setFilters.hasOwnProperty(e.toLowerCase())?oe(function(e,i){var n,a=r(e,t),o=a.length;while(o--){n=B(e,a[o]);e[n]=!(i[n]=a[o])}}):function(e){return r(e,0,i)}}return r}},pseudos:{not:oe(function(e){var t=[],i=[],n=s(e.replace(j,"$1"));return n[S]?oe(function(e,t,i,r){var a,o=n(e,null,r,[]),s=e.length;while(s--){if(a=o[s]){e[s]=!(t[s]=a)}}}):function(e,r,a){t[0]=e;n(t,null,a,i);t[0]=null;return!i.pop()}}),has:oe(function(e){return function(t){return re(e,t).length>0}}),contains:oe(function(e){e=e.replace(te,ie);return function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:oe(function(e){if(!G.test(e||"")){re.error("unsupported lang: "+e)}e=e.replace(te,ie).toLowerCase();return function(t){var i;do{if(i=y?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang")){i=i.toLowerCase();return i===e||i.indexOf(e+"-")===0}}while((t=t.parentNode)&&t.nodeType===1);return false}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===false},disabled:function(e){return e.disabled===true},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling){if(e.nodeType<6){return false}}return true},parent:function(e){return!n.pseudos["empty"](e)},header:function(e){return K.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},text:function(e){var t;return e.nodeName.toLowerCase()==="input"&&e.type==="text"&&((t=e.getAttribute("type"))==null||t.toLowerCase()==="text")},first:de(function(){return[0]}),last:de(function(e,t){return[t-1]}),eq:de(function(e,t,i){return[i<0?i+t:i]}),even:de(function(e,t){var i=0;for(;i=0;){e.push(n)}return e}),gt:de(function(e,t,i){var n=i<0?i+t:i;for(;++n1?function(t,i,n){var r=e.length;while(r--){if(!e[r](t,i,n)){return false}}return true}:e[0]}function ge(e,t,i){var n=0,r=t.length;for(;n-1){a[u]=!(o[u]=c)}}}}else{m=be(m===o?m.splice(p,m.length):m);if(r){r(null,o,m,l)}else{A.apply(o,m)}}})}function we(e){var t,i,r,a=e.length,o=n.relative[e[0].type],s=o||n.relative[" "],l=o?1:0,f=ve(function(e){return e===t},s,true),c=ve(function(e){return B(t,e)>-1},s,true),d=[function(e,i,n){var r=!o&&(n||i!==u)||((t=i).nodeType?f(e,i,n):c(e,i,n));t=null;return r}];for(;l1&&me(d),l>1&&ye(e.slice(0,l-1).concat({value:e[l-2].type===" "?"*":""})).replace(j,"$1"),i,l0,r=e.length>0,a=function(a,o,s,l,f){var c,p,v,m=0,g="0",b=a&&[],S=[],w=u,C=a||r&&n.find["TAG"]("*",f),_=P+=w==null?1:Math.random()||.1,k=C.length;if(f){u=o===h||o||f}for(;g!==k&&(c=C[g])!=null;g++){if(r&&c){p=0;if(!o&&c.ownerDocument!==h){d(c);s=!y}while(v=e[p++]){if(v(c,o||h,s)){l.push(c);break}}if(f){P=_}}if(i){if(c=!v&&c){m--}if(a){b.push(c)}}}m+=g;if(i&&g!==m){p=0;while(v=t[p++]){v(b,S,o,s)}if(a){if(m>0){while(g--){if(!(b[g]||S[g])){S[g]=W.call(l)}}}S=be(S)}A.apply(l,S);if(f&&!a&&S.length>0&&m+t.length>1){re.uniqueSort(l)}}if(f){P=_;u=w}return b};return i?oe(a):a}s=re.compile=function(e,t){var i,n=[],r=[],a=D[e+" "];if(!a){if(!t){t=o(e)}i=t.length;while(i--){a=we(t[i]);if(a[S]){n.push(a)}else{r.push(a)}}a=D(e,Pe(r,n));a.selector=e}return a};l=re.select=function(e,t,r,a){var l,u,f,c,d,h=typeof e==="function"&&e,p=!a&&o(e=h.selector||e);r=r||[];if(p.length===1){u=p[0]=p[0].slice(0);if(u.length>2&&(f=u[0]).type==="ID"&&i.getById&&t.nodeType===9&&y&&n.relative[u[1].type]){t=(n.find["ID"](f.matches[0].replace(te,ie),t)||[])[0];if(!t){return r}else if(h){t=t.parentNode}e=e.slice(u.shift().value.length)}l=Y["needsContext"].test(e)?0:u.length;while(l--){f=u[l];if(n.relative[c=f.type]){break}if(d=n.find[c]){if(a=d(f.matches[0].replace(te,ie),Q.test(u[0].type)&&he(t.parentNode)||t)){u.splice(l,1);e=a.length&&ye(u);if(!e){A.apply(r,a);return r}break}}}}(h||s(e,p))(a,t,!y,r,!t||Q.test(e)&&he(t.parentNode)||t);return r};i.sortStable=S.split("").sort(x).join("")===S;i.detectDuplicates=!!c;d();i.sortDetached=se(function(e){return e.compareDocumentPosition(h.createElement("div"))&1});if(!se(function(e){e.innerHTML="";return e.firstChild.getAttribute("href")==="#"})){le("type|href|height|width",function(e,t,i){if(!i){return e.getAttribute(t,t.toLowerCase()==="type"?1:2)}})}if(!i.attributes||!se(function(e){e.innerHTML="";e.firstChild.setAttribute("value","");return e.firstChild.getAttribute("value")===""})){le("value",function(e,t,i){if(!i&&e.nodeName.toLowerCase()==="input"){return e.defaultValue}})}if(!se(function(e){return e.getAttribute("disabled")==null})){le(I,function(e,t,i){var n;if(!i){return e[t]===true?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}})}return re}(i);m.find=C;m.expr=C.selectors;m.expr[":"]=m.expr.pseudos;m.uniqueSort=m.unique=C.uniqueSort;m.text=C.getText;m.isXMLDoc=C.isXML;m.contains=C.contains;var _=function(e,t,i){var n=[],r=i!==undefined;while((e=e[t])&&e.nodeType!==9){if(e.nodeType===1){if(r&&m(e).is(i)){break}n.push(e)}}return n};var k=function(e,t){var i=[];for(;e;e=e.nextSibling){if(e.nodeType===1&&e!==t){i.push(e)}}return i};var D=m.expr.match.needsContext;var x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/;var T=/^.[^:#\[\.,]*$/;function M(e,t,i){if(m.isFunction(t)){return m.grep(e,function(e,n){return!!t.call(e,n,e)!==i})}if(t.nodeType){return m.grep(e,function(e){return e===t!==i})}if(typeof t==="string"){if(T.test(t)){return m.filter(t,e,i)}t=m.filter(t,e)}return m.grep(e,function(e){return m.inArray(e,t)>-1!==i})}m.filter=function(e,t,i){var n=t[0];if(i){e=":not("+e+")"}return t.length===1&&n.nodeType===1?m.find.matchesSelector(n,e)?[n]:[]:m.find.matches(e,m.grep(t,function(e){return e.nodeType===1}))};m.fn.extend({find:function(e){var t,i=[],n=this,r=n.length;if(typeof e!=="string"){return this.pushStack(m(e).filter(function(){for(t=0;t1?m.unique(i):i);i.selector=this.selector?this.selector+" "+e:e;return i},filter:function(e){return this.pushStack(M(this,e||[],false))},not:function(e){return this.pushStack(M(this,e||[],true))},is:function(e){return!!M(this,typeof e==="string"&&D.test(e)?m(e):e||[],false).length}});var L,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,E=m.fn.init=function(e,t,i){var n,r;if(!e){return this}i=i||L;if(typeof e==="string"){if(e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3){n=[null,e,null]}else{n=W.exec(e)}if(n&&(n[1]||!t)){if(n[1]){t=t instanceof m?t[0]:t;m.merge(this,m.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:s,true));if(x.test(n[1])&&m.isPlainObject(t)){for(n in t){if(m.isFunction(this[n])){this[n](t[n])}else{this.attr(n,t[n])}}}return this}else{r=s.getElementById(n[2]);if(r&&r.parentNode){if(r.id!==n[2]){return L.find(e)}this.length=1;this[0]=r}this.context=s;this.selector=e;return this}}else if(!t||t.jquery){return(t||i).find(e)}else{return this.constructor(t).find(e)}}else if(e.nodeType){this.context=this[0]=e;this.length=1;return this}else if(m.isFunction(e)){return typeof i.ready!=="undefined"?i.ready(e):e(m)}if(e.selector!==undefined){this.selector=e.selector;this.context=e.context}return m.makeArray(e,this)};E.prototype=m.fn;L=m(s);var A=/^(?:parents|prev(?:Until|All))/,R={children:true,contents:true,next:true,prev:true};m.fn.extend({has:function(e){var t,i=m(e,this),n=i.length;return this.filter(function(){for(t=0;t-1:i.nodeType===1&&m.find.matchesSelector(i,e))){a.push(i);break}}}return this.pushStack(a.length>1?m.uniqueSort(a):a)},index:function(e){if(!e){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1}if(typeof e==="string"){return m.inArray(this[0],m(e))}return m.inArray(e.jquery?e[0]:e,this)},add:function(e,t){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function B(e,t){do{e=e[t]}while(e&&e.nodeType!==1);return e}m.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return _(e,"parentNode")},parentsUntil:function(e,t,i){return _(e,"parentNode",i)},next:function(e){return B(e,"nextSibling")},prev:function(e){return B(e,"previousSibling")},nextAll:function(e){return _(e,"nextSibling")},prevAll:function(e){return _(e,"previousSibling")},nextUntil:function(e,t,i){return _(e,"nextSibling",i)},prevUntil:function(e,t,i){return _(e,"previousSibling",i)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return m.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:m.merge([],e.childNodes)}},function(e,t){m.fn[e]=function(i,n){var r=m.map(this,t,i);if(e.slice(-5)!=="Until"){n=i}if(n&&typeof n==="string"){r=m.filter(n,r)}if(this.length>1){if(!R[e]){r=m.uniqueSort(r)}if(A.test(e)){r=r.reverse()}}return this.pushStack(r)}});var I=/\S+/g;function z(e){var t={};m.each(e.match(I)||[],function(e,i){t[i]=true});return t}m.Callbacks=function(e){e=typeof e==="string"?z(e):m.extend({},e);var t,i,n,r,a=[],o=[],s=-1,l=function(){r=e.once;n=t=true;for(;o.length;s=-1){i=o.shift();while(++s-1){a.splice(i,1);if(i<=s){s--}}});return this},has:function(e){return e?m.inArray(e,a)>-1:a.length>0},empty:function(){if(a){a=[]}return this},disable:function(){r=o=[];a=i="";return this},disabled:function(){return!a},lock:function(){r=true;if(!i){u.disable()}return this},locked:function(){return!!r},fireWith:function(e,i){if(!r){i=i||[];i=[e,i.slice?i.slice():i];o.push(i);if(!t){l()}}return this},fire:function(){u.fireWith(this,arguments);return this},fired:function(){return!!n}};return u};m.extend({Deferred:function(e){var t=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){r.done(arguments).fail(arguments);return this},then:function(){var e=arguments;return m.Deferred(function(i){m.each(t,function(t,a){var o=m.isFunction(e[t])&&e[t];r[a[1]](function(){var e=o&&o.apply(this,arguments);if(e&&m.isFunction(e.promise)){e.promise().progress(i.notify).done(i.resolve).fail(i.reject)}else{i[a[0]+"With"](this===n?i.promise():this,o?[e]:arguments)}})});e=null}).promise()},promise:function(e){return e!=null?m.extend(e,n):n}},r={};n.pipe=n.then;m.each(t,function(e,a){var o=a[2],s=a[3];n[a[1]]=o.add;if(s){o.add(function(){i=s},t[e^1][2].disable,t[2][2].lock)}r[a[0]]=function(){r[a[0]+"With"](this===r?n:this,arguments);return this};r[a[0]+"With"]=o.fireWith});n.promise(r);if(e){e.call(r,r)}return r},when:function(e){var t=0,i=l.call(arguments),n=i.length,r=n!==1||e&&m.isFunction(e.promise)?n:0,a=r===1?e:m.Deferred(),o=function(e,t,i){return function(n){t[e]=this;i[e]=arguments.length>1?l.call(arguments):n;if(i===s){a.notifyWith(t,i)}else if(!--r){a.resolveWith(t,i)}}},s,u,f;if(n>1){s=new Array(n);u=new Array(n);f=new Array(n);for(;t0){return}O.resolveWith(s,[m]);if(m.fn.triggerHandler){m(s).triggerHandler("ready");m(s).off("ready")}}});function F(){if(s.addEventListener){s.removeEventListener("DOMContentLoaded",N);i.removeEventListener("load",N)}else{s.detachEvent("onreadystatechange",N);i.detachEvent("onload",N)}}function N(){if(s.addEventListener||i.event.type==="load"||s.readyState==="complete"){F();m.ready()}}m.ready.promise=function(e){if(!O){O=m.Deferred();if(s.readyState==="complete"||s.readyState!=="loading"&&!s.documentElement.doScroll){i.setTimeout(m.ready)}else if(s.addEventListener){s.addEventListener("DOMContentLoaded",N);i.addEventListener("load",N)}else{s.attachEvent("onreadystatechange",N);i.attachEvent("onload",N);var t=false;try{t=i.frameElement==null&&s.documentElement}catch(e){}if(t&&t.doScroll){(function e(){if(!m.isReady){try{t.doScroll("left")}catch(t){return i.setTimeout(e,50)}F();m.ready()}})()}}}return O.promise(e)};m.ready.promise();var U;for(U in m(y)){break}y.ownFirst=U==="0";y.inlineBlockNeedsLayout=false;m(function(){var e,t,i,n;i=s.getElementsByTagName("body")[0];if(!i||!i.style){return}t=s.createElement("div");n=s.createElement("div");n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px";i.appendChild(n).appendChild(t);if(typeof t.style.zoom!=="undefined"){t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";y.inlineBlockNeedsLayout=e=t.offsetWidth===3;if(e){i.style.zoom=1}}i.removeChild(n)});(function(){var e=s.createElement("div");y.deleteExpando=true;try{delete e.test}catch(e){y.deleteExpando=false}e=null})();var j=function(e){var t=m.noData[(e.nodeName+" ").toLowerCase()],i=+e.nodeType||1;return i!==1&&i!==9?false:!t||t!==true&&e.getAttribute("classid")===t};var H=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,q=/([A-Z])/g;function V(e,t,i){if(i===undefined&&e.nodeType===1){var n="data-"+t.replace(q,"-$1").toLowerCase();i=e.getAttribute(n);if(typeof i==="string"){try{i=i==="true"?true:i==="false"?false:i==="null"?null:+i+""===i?+i:H.test(i)?m.parseJSON(i):i}catch(e){}m.data(e,t,i)}else{i=undefined}}return i}function J(e){var t;for(t in e){if(t==="data"&&m.isEmptyObject(e[t])){continue}if(t!=="toJSON"){return false}}return true}function G(e,t,i,n){if(!j(e)){return}var r,a,s=m.expando,l=e.nodeType,u=l?m.cache:e,f=l?e[s]:e[s]&&s;if((!f||!u[f]||!n&&!u[f].data)&&i===undefined&&typeof t==="string"){return}if(!f){if(l){f=e[s]=o.pop()||m.guid++}else{f=s}}if(!u[f]){u[f]=l?{}:{toJSON:m.noop}}if(typeof t==="object"||typeof t==="function"){if(n){u[f]=m.extend(u[f],t)}else{u[f].data=m.extend(u[f].data,t)}}a=u[f];if(!n){if(!a.data){a.data={}}a=a.data}if(i!==undefined){a[m.camelCase(t)]=i}if(typeof t==="string"){r=a[t];if(r==null){r=a[m.camelCase(t)]}}else{r=a}return r}function Y(e,t,i){if(!j(e)){return}var n,r,a=e.nodeType,o=a?m.cache:e,s=a?e[m.expando]:m.expando;if(!o[s]){return}if(t){n=i?o[s]:o[s].data;if(n){if(!m.isArray(t)){if(t in n){t=[t]}else{t=m.camelCase(t);if(t in n){t=[t]}else{t=t.split(" ")}}}else{t=t.concat(m.map(t,m.camelCase))}r=t.length;while(r--){delete n[t[r]]}if(i?!J(n):!m.isEmptyObject(n)){return}}}if(!i){delete o[s].data;if(!J(o[s])){return}}if(a){m.cleanData([e],true)}else if(y.deleteExpando||o!=o.window){delete o[s]}else{o[s]=undefined}}m.extend({cache:{},noData:{"applet ":true,"embed ":true,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){e=e.nodeType?m.cache[e[m.expando]]:e[m.expando];return!!e&&!J(e)},data:function(e,t,i){return G(e,t,i)},removeData:function(e,t){return Y(e,t)},_data:function(e,t,i){return G(e,t,i,true)},_removeData:function(e,t){return Y(e,t,true)}});m.fn.extend({data:function(e,t){var i,n,r,a=this[0],o=a&&a.attributes;if(e===undefined){if(this.length){r=m.data(a);if(a.nodeType===1&&!m._data(a,"parsedAttrs")){i=o.length;while(i--){if(o[i]){n=o[i].name;if(n.indexOf("data-")===0){n=m.camelCase(n.slice(5));V(a,n,r[n])}}}m._data(a,"parsedAttrs",true)}}return r}if(typeof e==="object"){return this.each(function(){m.data(this,e)})}return arguments.length>1?this.each(function(){m.data(this,e,t)}):a?V(a,e,m.data(a,e)):undefined},removeData:function(e){return this.each(function(){m.removeData(this,e)})}});m.extend({queue:function(e,t,i){var n;if(e){t=(t||"fx")+"queue";n=m._data(e,t);if(i){if(!n||m.isArray(i)){n=m._data(e,t,m.makeArray(i))}else{n.push(i)}}return n||[]}},dequeue:function(e,t){t=t||"fx";var i=m.queue(e,t),n=i.length,r=i.shift(),a=m._queueHooks(e,t),o=function(){m.dequeue(e,t)};if(r==="inprogress"){r=i.shift();n--}if(r){if(t==="fx"){i.unshift("inprogress")}delete a.stop;r.call(e,o,a)}if(!n&&a){a.empty.fire()}},_queueHooks:function(e,t){var i=t+"queueHooks";return m._data(e,i)||m._data(e,i,{empty:m.Callbacks("once memory").add(function(){m._removeData(e,t+"queue");m._removeData(e,i)})})}});m.fn.extend({queue:function(e,t){var i=2;if(typeof e!=="string"){t=e;e="fx";i--}if(arguments.length
a";y.leadingWhitespace=e.firstChild.nodeType===3;y.tbody=!e.getElementsByTagName("tbody").length;y.htmlSerialize=!!e.getElementsByTagName("link").length;y.html5Clone=s.createElement("nav").cloneNode(true).outerHTML!=="<:nav>";i.type="checkbox";i.checked=true;t.appendChild(i);y.appendChecked=i.checked;e.innerHTML="";y.noCloneChecked=!!e.cloneNode(true).lastChild.defaultValue;t.appendChild(e);i=s.createElement("input");i.setAttribute("type","radio");i.setAttribute("checked","checked");i.setAttribute("name","t");e.appendChild(i);y.checkClone=e.cloneNode(true).cloneNode(true).lastChild.checked;y.noCloneEvent=!!e.addEventListener;e[m.expando]=1;y.attributes=!e.getAttribute(m.expando)})();var se={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:y.htmlSerialize?[0,"",""]:[1,"X
","
"]};se.optgroup=se.option;se.tbody=se.tfoot=se.colgroup=se.caption=se.thead;se.th=se.td;function le(e,t){var i,n,r=0,a=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!=="undefined"?e.querySelectorAll(t||"*"):undefined;if(!a){for(a=[],i=e.childNodes||e;(n=i[r])!=null;r++){if(!t||m.nodeName(n,t)){a.push(n)}else{m.merge(a,le(n,t))}}}return t===undefined||t&&m.nodeName(e,t)?m.merge([e],a):a}function ue(e,t){var i,n=0;for(;(i=e[n])!=null;n++){m._data(i,"globalEval",!t||m._data(t[n],"globalEval"))}}var fe=/<|&#?\w+;/,ce=/"&&!ce.test(o)?l:0;a=o&&o.childNodes.length;while(a--){if(m.nodeName(f=o.childNodes[a],"tbody")&&!f.childNodes.length){o.removeChild(f)}}}m.merge(p,l.childNodes);l.textContent="";while(l.firstChild){l.removeChild(l.firstChild)}l=h.lastChild}}}if(l){h.removeChild(l)}if(!y.appendChecked){m.grep(le(p,"input"),de)}v=0;while(o=p[v++]){if(n&&m.inArray(o,n)>-1){if(r){r.push(o)}continue}s=m.contains(o.ownerDocument,o);l=le(h.appendChild(o),"script");if(s){ue(l)}if(i){a=0;while(o=l[a++]){if(ne.test(o.type||"")){i.push(o)}}}}l=null;return h}(function(){var e,t,n=s.createElement("div");for(e in{submit:true,change:true,focusin:true}){t="on"+e;if(!(y[e]=t in i)){n.setAttribute(t,"t");y[e]=n.attributes[t].expando===false}}n=null})();var pe=/^(?:input|select|textarea)$/i,ye=/^key/,ve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,me=/^(?:focusinfocus|focusoutblur)$/,ge=/^([^.]*)(?:\.(.+)|)/;function be(){return true}function Se(){return false}function we(){try{return s.activeElement}catch(e){}}function Pe(e,t,i,n,r,a){var o,s;if(typeof t==="object"){if(typeof i!=="string"){n=n||i;i=undefined}for(s in t){Pe(e,s,i,n,t[s],a)}return e}if(n==null&&r==null){r=i;n=i=undefined}else if(r==null){if(typeof i==="string"){r=n;n=undefined}else{r=n;n=i;i=undefined}}if(r===false){r=Se}else if(!r){return e}if(a===1){o=r;r=function(e){m().off(e);return o.apply(this,arguments)};r.guid=o.guid||(o.guid=m.guid++)}return e.each(function(){m.event.add(this,t,r,n,i)})}m.event={global:{},add:function(e,t,i,n,r){var a,o,s,l,u,f,c,d,h,p,y,v=m._data(e);if(!v){return}if(i.handler){l=i;i=l.handler;r=l.selector}if(!i.guid){i.guid=m.guid++}if(!(o=v.events)){o=v.events={}}if(!(f=v.handle)){f=v.handle=function(e){return typeof m!=="undefined"&&(!e||m.event.triggered!==e.type)?m.event.dispatch.apply(f.elem,arguments):undefined};f.elem=e}t=(t||"").match(I)||[""];s=t.length;while(s--){a=ge.exec(t[s])||[];h=y=a[1];p=(a[2]||"").split(".").sort();if(!h){continue}u=m.event.special[h]||{};h=(r?u.delegateType:u.bindType)||h;u=m.event.special[h]||{};c=m.extend({type:h,origType:y,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&m.expr.match.needsContext.test(r),namespace:p.join(".")},l);if(!(d=o[h])){d=o[h]=[];d.delegateCount=0;if(!u.setup||u.setup.call(e,n,p,f)===false){if(e.addEventListener){e.addEventListener(h,f,false)}else if(e.attachEvent){e.attachEvent("on"+h,f)}}}if(u.add){u.add.call(e,c);if(!c.handler.guid){c.handler.guid=i.guid}}if(r){d.splice(d.delegateCount++,0,c)}else{d.push(c)}m.event.global[h]=true}e=null},remove:function(e,t,i,n,r){var a,o,s,l,u,f,c,d,h,p,y,v=m.hasData(e)&&m._data(e);if(!v||!(f=v.events)){return}t=(t||"").match(I)||[""];u=t.length;while(u--){s=ge.exec(t[u])||[];h=y=s[1];p=(s[2]||"").split(".").sort();if(!h){for(h in f){m.event.remove(e,h+t[u],i,n,true)}continue}c=m.event.special[h]||{};h=(n?c.delegateType:c.bindType)||h;d=f[h]||[];s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)");l=a=d.length;while(a--){o=d[a];if((r||y===o.origType)&&(!i||i.guid===o.guid)&&(!s||s.test(o.namespace))&&(!n||n===o.selector||n==="**"&&o.selector)){d.splice(a,1);if(o.selector){d.delegateCount--}if(c.remove){c.remove.call(e,o)}}}if(l&&!d.length){if(!c.teardown||c.teardown.call(e,p,v.handle)===false){m.removeEvent(e,h,v.handle)}delete f[h]}}if(m.isEmptyObject(f)){delete v.handle;m._removeData(e,"events")}},trigger:function(e,t,n,r){var a,o,l,u,f,c,d,h=[n||s],y=p.call(e,"type")?e.type:e,v=p.call(e,"namespace")?e.namespace.split("."):[];l=c=n=n||s;if(n.nodeType===3||n.nodeType===8){return}if(me.test(y+m.event.triggered)){return}if(y.indexOf(".")>-1){v=y.split(".");y=v.shift();v.sort()}o=y.indexOf(":")<0&&"on"+y;e=e[m.expando]?e:new m.Event(y,typeof e==="object"&&e);e.isTrigger=r?2:3;e.namespace=v.join(".");e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;e.result=undefined;if(!e.target){e.target=n}t=t==null?[e]:m.makeArray(t,[e]);f=m.event.special[y]||{};if(!r&&f.trigger&&f.trigger.apply(n,t)===false){return}if(!r&&!f.noBubble&&!m.isWindow(n)){u=f.delegateType||y;if(!me.test(u+y)){l=l.parentNode}for(;l;l=l.parentNode){h.push(l);c=l}if(c===(n.ownerDocument||s)){h.push(c.defaultView||c.parentWindow||i)}}d=0;while((l=h[d++])&&!e.isPropagationStopped()){e.type=d>1?u:f.bindType||y;a=(m._data(l,"events")||{})[e.type]&&m._data(l,"handle");if(a){a.apply(l,t)}a=o&&l[o];if(a&&a.apply&&j(l)){e.result=a.apply(l,t);if(e.result===false){e.preventDefault()}}}e.type=y;if(!r&&!e.isDefaultPrevented()){if((!f._default||f._default.apply(h.pop(),t)===false)&&j(n)){if(o&&n[y]&&!m.isWindow(n)){c=n[o];if(c){n[o]=null}m.event.triggered=y;try{n[y]()}catch(e){}m.event.triggered=undefined;if(c){n[o]=c}}}}return e.result},dispatch:function(e){e=m.event.fix(e);var t,i,n,r,a,o=[],s=l.call(arguments),u=(m._data(this,"events")||{})[e.type]||[],f=m.event.special[e.type]||{};s[0]=e;e.delegateTarget=this;if(f.preDispatch&&f.preDispatch.call(this,e)===false){return}o=m.event.handlers.call(this,e,u);t=0;while((r=o[t++])&&!e.isPropagationStopped()){e.currentTarget=r.elem;i=0;while((a=r.handlers[i++])&&!e.isImmediatePropagationStopped()){if(!e.rnamespace||e.rnamespace.test(a.namespace)){e.handleObj=a;e.data=a.data;n=((m.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,s);if(n!==undefined){if((e.result=n)===false){e.preventDefault();e.stopPropagation()}}}}}if(f.postDispatch){f.postDispatch.call(this,e)}return e.result},handlers:function(e,t){var i,n,r,a,o=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(e.type!=="click"||isNaN(e.button)||e.button<1)){for(;l!=this;l=l.parentNode||this){if(l.nodeType===1&&(l.disabled!==true||e.type!=="click")){n=[];for(i=0;i-1:m.find(r,this,null,[l]).length}if(n[r]){n.push(a)}}if(n.length){o.push({elem:l,handlers:n})}}}}if(s]","i"),ke=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,De=/\s*$/g,Le=oe(s),We=Le.appendChild(s.createElement("div"));function Ee(e,t){return m.nodeName(e,"table")&&m.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ae(e){e.type=(m.find.attr(e,"type")!==null)+"/"+e.type;return e}function Re(e){var t=Te.exec(e.type);if(t){e.type=t[1]}else{e.removeAttribute("type")}return e}function Be(e,t){if(t.nodeType!==1||!m.hasData(e)){return}var i,n,r,a=m._data(e),o=m._data(t,a),s=a.events;if(s){delete o.handle;o.events={};for(i in s){for(n=0,r=s[i].length;n1&&typeof p==="string"&&!y.checkClone&&xe.test(p)){return e.each(function(r){var a=e.eq(r);if(v){t[0]=p.call(this,r,a.html())}ze(a,t,i,n)})}if(d){f=he(t,e[0].ownerDocument,false,e,n);r=f.firstChild;if(f.childNodes.length===1){f=r}if(r||n){s=m.map(le(f,"script"),Ae);o=s.length;for(;c")},clone:function(e,t,i){var n,r,a,o,s,l=m.contains(e.ownerDocument,e);if(y.html5Clone||m.isXMLDoc(e)||!_e.test("<"+e.nodeName+">")){a=e.cloneNode(true)}else{We.innerHTML=e.outerHTML;We.removeChild(a=We.firstChild)}if((!y.noCloneEvent||!y.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!m.isXMLDoc(e)){n=le(a);s=le(e);for(o=0;(r=s[o])!=null;++o){if(n[o]){Ie(r,n[o])}}}if(t){if(i){s=s||le(e);n=n||le(a);for(o=0;(r=s[o])!=null;o++){Be(r,n[o])}}else{Be(e,a)}}n=le(a,"script");if(n.length>0){ue(n,!l&&le(e,"script"))}n=s=r=null;return a},cleanData:function(e,t){var i,n,r,a,s=0,l=m.expando,u=m.cache,f=y.attributes,c=m.event.special;for(;(i=e[s])!=null;s++){if(t||j(i)){r=i[l];a=r&&u[r];if(a){if(a.events){for(n in a.events){if(c[n]){m.event.remove(i,n)}else{m.removeEvent(i,n,a.handle)}}}if(u[r]){delete u[r];if(!f&&typeof i.removeAttribute!=="undefined"){i.removeAttribute(l)}else{i[l]=undefined}o.push(r)}}}}}});m.fn.extend({domManip:ze,detach:function(e){return Oe(this,e,true)},remove:function(e){return Oe(this,e)},text:function(e){return ee(this,function(e){return e===undefined?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(e))},null,e,arguments.length)},append:function(){return ze(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Ee(this,e);t.appendChild(e)}})},prepend:function(){return ze(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Ee(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return ze(this,arguments,function(e){if(this.parentNode){this.parentNode.insertBefore(e,this)}})},after:function(){return ze(this,arguments,function(e){if(this.parentNode){this.parentNode.insertBefore(e,this.nextSibling)}})},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){if(e.nodeType===1){m.cleanData(le(e,false))}while(e.firstChild){e.removeChild(e.firstChild)}if(e.options&&m.nodeName(e,"select")){e.options.length=0}}return this},clone:function(e,t){e=e==null?false:e;t=t==null?e:t;return this.map(function(){return m.clone(this,e,t)})},html:function(e){return ee(this,function(e){var t=this[0]||{},i=0,n=this.length;if(e===undefined){return t.nodeType===1?t.innerHTML.replace(Ce,""):undefined}if(typeof e==="string"&&!De.test(e)&&(y.htmlSerialize||!_e.test(e))&&(y.leadingWhitespace||!re.test(e))&&!se[(ie.exec(e)||["",""])[1].toLowerCase()]){e=m.htmlPrefilter(e);try{for(;i")).appendTo(t.documentElement);t=(Fe[0].contentWindow||Fe[0].contentDocument).document;t.write();t.close();i=Ue(e,t);Fe.detach()}Ne[e]=i}return i}var He=/^margin/;var qe=new RegExp("^("+X+")(?!px)[a-z%]+$","i");var Ve=function(e,t,i,n){var r,a,o={};for(a in t){o[a]=e.style[a];e.style[a]=t[a]}r=i.apply(e,n||[]);for(a in t){e.style[a]=o[a]}return r};var Je=s.documentElement;(function(){var e,t,n,r,a,o,l=s.createElement("div"),u=s.createElement("div");if(!u.style){return}u.style.cssText="float:left;opacity:.5";y.opacity=u.style.opacity==="0.5";y.cssFloat=!!u.style.cssFloat;u.style.backgroundClip="content-box";u.cloneNode(true).style.backgroundClip="";y.clearCloneStyle=u.style.backgroundClip==="content-box";l=s.createElement("div");l.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;"+"padding:0;margin-top:1px;position:absolute";u.innerHTML="";l.appendChild(u);y.boxSizing=u.style.boxSizing===""||u.style.MozBoxSizing===""||u.style.WebkitBoxSizing==="";m.extend(y,{reliableHiddenOffsets:function(){if(e==null){f()}return r},boxSizingReliable:function(){if(e==null){f()}return n},pixelMarginRight:function(){if(e==null){f()}return t},pixelPosition:function(){if(e==null){f()}return e},reliableMarginRight:function(){if(e==null){f()}return a},reliableMarginLeft:function(){if(e==null){f()}return o}});function f(){var f,c,d=s.documentElement;d.appendChild(l);u.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;"+"position:relative;display:block;"+"margin:auto;border:1px;padding:1px;"+"top:1%;width:50%";e=n=o=false;t=a=true;if(i.getComputedStyle){c=i.getComputedStyle(u);e=(c||{}).top!=="1%";o=(c||{}).marginLeft==="2px";n=(c||{width:"4px"}).width==="4px";u.style.marginRight="50%";t=(c||{marginRight:"4px"}).marginRight==="4px";f=u.appendChild(s.createElement("div"));f.style.cssText=u.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;"+"box-sizing:content-box;display:block;margin:0;border:0;padding:0";f.style.marginRight=f.style.width="0";u.style.width="1px";a=!parseFloat((i.getComputedStyle(f)||{}).marginRight);u.removeChild(f)}u.style.display="none";r=u.getClientRects().length===0;if(r){u.style.display="";u.innerHTML="
t
";f=u.getElementsByTagName("td");f[0].style.cssText="margin:0;border:0;padding:0;display:none";r=f[0].offsetHeight===0;if(r){f[0].style.display="";f[1].style.display="none";r=f[0].offsetHeight===0}}d.removeChild(l)}})();var Ge,Ye,Xe=/^(top|right|bottom|left)$/;if(i.getComputedStyle){Ge=function(e){var t=e.ownerDocument.defaultView;if(!t||!t.opener){t=i}return t.getComputedStyle(e)};Ye=function(e,t,i){var n,r,a,o,s=e.style;i=i||Ge(e);o=i?i.getPropertyValue(t)||i[t]:undefined;if((o===""||o===undefined)&&!m.contains(e.ownerDocument,e)){o=m.style(e,t)}if(i){if(!y.pixelMarginRight()&&qe.test(o)&&He.test(t)){n=s.width;r=s.minWidth;a=s.maxWidth;s.minWidth=s.maxWidth=s.width=o;o=i.width;s.width=n;s.minWidth=r;s.maxWidth=a}}return o===undefined?o:o+""}}else if(Je.currentStyle){Ge=function(e){return e.currentStyle};Ye=function(e,t,i){var n,r,a,o,s=e.style;i=i||Ge(e);o=i?i[t]:undefined;if(o==null&&s&&s[t]){o=s[t]}if(qe.test(o)&&!Xe.test(t)){n=s.left;r=e.runtimeStyle;a=r&&r.left;if(a){r.left=e.currentStyle.left}s.left=t==="fontSize"?"1em":o;o=s.pixelLeft+"px";s.left=n;if(a){r.left=a}}return o===undefined?o:o+""||"auto"}}function Ke(e,t){return{get:function(){if(e()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}var $e=/alpha\([^)]*\)/i,Ze=/opacity\s*=\s*([^)]*)/i,Qe=/^(none|table(?!-c[ea]).+)/,et=new RegExp("^("+X+")(.*)$","i"),tt={position:"absolute",visibility:"hidden",display:"block"},it={letterSpacing:"0",fontWeight:"400"},nt=["Webkit","O","Moz","ms"],rt=s.createElement("div").style;function at(e){if(e in rt){return e}var t=e.charAt(0).toUpperCase()+e.slice(1),i=nt.length;while(i--){e=nt[i]+t;if(e in rt){return e}}}function ot(e,t){var i,n,r,a=[],o=0,s=e.length;for(;o=1||t==="")&&m.trim(a.replace($e,""))===""&&i.removeAttribute){i.removeAttribute("filter");if(t===""||n&&!n.filter){return}}i.filter=$e.test(a)?a.replace($e,r):a+" "+r}}}m.cssHooks.marginRight=Ke(y.reliableMarginRight,function(e,t){if(t){return Ve(e,{display:"inline-block"},Ye,[e,"marginRight"])}});m.cssHooks.marginLeft=Ke(y.reliableMarginLeft,function(e,t){if(t){return(parseFloat(Ye(e,"marginLeft"))||(m.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-Ve(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}});m.each({margin:"",padding:"",border:"Width"},function(e,t){m.cssHooks[e+t]={expand:function(i){var n=0,r={},a=typeof i==="string"?i.split(" "):[i];for(;n<4;n++){r[e+$[n]+t]=a[n]||a[n-2]||a[0]}return r}};if(!He.test(e)){m.cssHooks[e+t].set=st}});m.fn.extend({css:function(e,t){return ee(this,function(e,t,i){var n,r,a={},o=0;if(m.isArray(t)){n=Ge(e);r=t.length;for(;o1)},show:function(){return ot(this,true)},hide:function(){return ot(this)},toggle:function(e){if(typeof e==="boolean"){return e?this.show():this.hide()}return this.each(function(){if(Z(this)){m(this).show()}else{m(this).hide()}})}});function ft(e,t,i,n,r){return new ft.prototype.init(e,t,i,n,r)}m.Tween=ft;ft.prototype={constructor:ft,init:function(e,t,i,n,r,a){this.elem=e;this.prop=i;this.easing=r||m.easing._default;this.options=t;this.start=this.now=this.cur();this.end=n;this.unit=a||(m.cssNumber[i]?"":"px")},cur:function(){var e=ft.propHooks[this.prop];return e&&e.get?e.get(this):ft.propHooks._default.get(this)},run:function(e){var t,i=ft.propHooks[this.prop];if(this.options.duration){this.pos=t=m.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration)}else{this.pos=t=e}this.now=(this.end-this.start)*t+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(i&&i.set){i.set(this)}else{ft.propHooks._default.set(this)}return this}};ft.prototype.init.prototype=ft.prototype;ft.propHooks={_default:{get:function(e){var t;if(e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null){return e.elem[e.prop]}t=m.css(e.elem,e.prop,"");return!t||t==="auto"?0:t},set:function(e){if(m.fx.step[e.prop]){m.fx.step[e.prop](e)}else if(e.elem.nodeType===1&&(e.elem.style[m.cssProps[e.prop]]!=null||m.cssHooks[e.prop])){m.style(e.elem,e.prop,e.now+e.unit)}else{e.elem[e.prop]=e.now}}}};ft.propHooks.scrollTop=ft.propHooks.scrollLeft={set:function(e){if(e.elem.nodeType&&e.elem.parentNode){e.elem[e.prop]=e.now}}};m.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"};m.fx=ft.prototype.init;m.fx.step={};var ct,dt,ht=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function yt(){i.setTimeout(function(){ct=undefined});return ct=m.now()}function vt(e,t){var i,n={height:e},r=0;t=t?1:0;for(;r<4;r+=2-t){i=$[r];n["margin"+i]=n["padding"+i]=e}if(t){n.opacity=n.width=e}return n}function mt(e,t,i){var n,r=(St.tweeners[t]||[]).concat(St.tweeners["*"]),a=0,o=r.length;for(;a
a";e=i.getElementsByTagName("a")[0];t.setAttribute("type","checkbox");i.appendChild(t);e=i.getElementsByTagName("a")[0];e.style.cssText="top:1px";y.getSetAttribute=i.className!=="t";y.style=/top/.test(e.getAttribute("style"));y.hrefNormalized=e.getAttribute("href")==="/a";y.checkOn=!!t.value;y.optSelected=r.selected;y.enctype=!!s.createElement("form").enctype;n.disabled=true;y.optDisabled=!r.disabled;t=s.createElement("input");t.setAttribute("value","");y.input=t.getAttribute("value")==="";t.value="t";t.setAttribute("type","radio");y.radioValue=t.value==="t"})();var wt=/\r/g;m.fn.extend({val:function(e){var t,i,n,r=this[0];if(!arguments.length){if(r){t=m.valHooks[r.type]||m.valHooks[r.nodeName.toLowerCase()];if(t&&"get"in t&&(i=t.get(r,"value"))!==undefined){return i}i=r.value;return typeof i==="string"?i.replace(wt,""):i==null?"":i}return}n=m.isFunction(e);return this.each(function(i){var r;if(this.nodeType!==1){return}if(n){r=e.call(this,i,m(this).val())}else{r=e}if(r==null){r=""}else if(typeof r==="number"){r+=""}else if(m.isArray(r)){r=m.map(r,function(e){return e==null?"":e+""})}t=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()];if(!t||!("set"in t)||t.set(this,r,"value")===undefined){this.value=r}})}});m.extend({valHooks:{option:{get:function(e){var t=m.find.attr(e,"value");return t!=null?t:m.trim(m.text(e))}},select:{get:function(e){var t,i,n=e.options,r=e.selectedIndex,a=e.type==="select-one"||r<0,o=a?null:[],s=a?r+1:n.length,l=r<0?s:a?r:0;for(;l=0){try{n.selected=i=true}catch(e){n.scrollHeight}}else{n.selected=false}}if(!i){e.selectedIndex=-1}return r}}}});m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(e,t){if(m.isArray(t)){return e.checked=m.inArray(m(e).val(),t)>-1}}};if(!y.checkOn){m.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value}}});var Pt,Ct,_t=m.expr.attrHandle,kt=/^(?:checked|selected)$/i,Dt=y.getSetAttribute,xt=y.input;m.fn.extend({attr:function(e,t){return ee(this,m.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){m.removeAttr(this,e)})}});m.extend({attr:function(e,t,i){var n,r,a=e.nodeType;if(a===3||a===8||a===2){return}if(typeof e.getAttribute==="undefined"){return m.prop(e,t,i)}if(a!==1||!m.isXMLDoc(e)){t=t.toLowerCase();r=m.attrHooks[t]||(m.expr.match.bool.test(t)?Ct:Pt)}if(i!==undefined){if(i===null){m.removeAttr(e,t);return}if(r&&"set"in r&&(n=r.set(e,i,t))!==undefined){return n}e.setAttribute(t,i+"");return i}if(r&&"get"in r&&(n=r.get(e,t))!==null){return n}n=m.find.attr(e,t);return n==null?undefined:n},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&t==="radio"&&m.nodeName(e,"input")){var i=e.value;e.setAttribute("type",t);if(i){e.value=i}return t}}}},removeAttr:function(e,t){var i,n,r=0,a=t&&t.match(I);if(a&&e.nodeType===1){while(i=a[r++]){n=m.propFix[i]||i;if(m.expr.match.bool.test(i)){if(xt&&Dt||!kt.test(i)){e[n]=false}else{e[m.camelCase("default-"+i)]=e[n]=false}}else{m.attr(e,i,"")}e.removeAttribute(Dt?i:n)}}}});Ct={set:function(e,t,i){if(t===false){m.removeAttr(e,i)}else if(xt&&Dt||!kt.test(i)){e.setAttribute(!Dt&&m.propFix[i]||i,i)}else{e[m.camelCase("default-"+i)]=e[i]=true}return i}};m.each(m.expr.match.bool.source.match(/\w+/g),function(e,t){var i=_t[t]||m.find.attr;if(xt&&Dt||!kt.test(t)){_t[t]=function(e,t,n){var r,a;if(!n){a=_t[t];_t[t]=r;r=i(e,t,n)!=null?t.toLowerCase():null;_t[t]=a}return r}}else{_t[t]=function(e,t,i){if(!i){return e[m.camelCase("default-"+t)]?t.toLowerCase():null}}}});if(!xt||!Dt){m.attrHooks.value={set:function(e,t,i){if(m.nodeName(e,"input")){e.defaultValue=t}else{return Pt&&Pt.set(e,t,i)}}}}if(!Dt){Pt={set:function(e,t,i){var n=e.getAttributeNode(i);if(!n){e.setAttributeNode(n=e.ownerDocument.createAttribute(i))}n.value=t+="";if(i==="value"||t===e.getAttribute(i)){return t}}};_t.id=_t.name=_t.coords=function(e,t,i){var n;if(!i){return(n=e.getAttributeNode(t))&&n.value!==""?n.value:null}};m.valHooks.button={get:function(e,t){var i=e.getAttributeNode(t);if(i&&i.specified){return i.value}},set:Pt.set};m.attrHooks.contenteditable={set:function(e,t,i){Pt.set(e,t===""?false:t,i)}};m.each(["width","height"],function(e,t){m.attrHooks[t]={set:function(e,i){if(i===""){e.setAttribute(t,"auto");return i}}}})}if(!y.style){m.attrHooks.style={get:function(e){return e.style.cssText||undefined},set:function(e,t){return e.style.cssText=t+""}}}var Tt=/^(?:input|select|textarea|button|object)$/i,Mt=/^(?:a|area)$/i;m.fn.extend({prop:function(e,t){return ee(this,m.prop,e,t,arguments.length>1)},removeProp:function(e){e=m.propFix[e]||e;return this.each(function(){try{this[e]=undefined;delete this[e]}catch(e){}})}});m.extend({prop:function(e,t,i){var n,r,a=e.nodeType;if(a===3||a===8||a===2){return}if(a!==1||!m.isXMLDoc(e)){t=m.propFix[t]||t;r=m.propHooks[t]}if(i!==undefined){if(r&&"set"in r&&(n=r.set(e,i,t))!==undefined){return n}return e[t]=i}if(r&&"get"in r&&(n=r.get(e,t))!==null){return n}return e[t]},propHooks:{tabIndex:{get:function(e){var t=m.find.attr(e,"tabindex");return t?parseInt(t,10):Tt.test(e.nodeName)||Mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}});if(!y.hrefNormalized){m.each(["href","src"],function(e,t){m.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})}if(!y.optSelected){m.propHooks.selected={get:function(e){var t=e.parentNode;if(t){t.selectedIndex;if(t.parentNode){t.parentNode.selectedIndex}}return null}}}m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this});if(!y.enctype){m.propFix.enctype="encoding"}var Lt=/[\t\r\n\f]/g;function Wt(e){return m.attr(e,"class")||""}m.fn.extend({addClass:function(e){var t,i,n,r,a,o,s,l=0;if(m.isFunction(e)){return this.each(function(t){m(this).addClass(e.call(this,t,Wt(this)))})}if(typeof e==="string"&&e){t=e.match(I)||[];while(i=this[l++]){r=Wt(i);n=i.nodeType===1&&(" "+r+" ").replace(Lt," ");if(n){o=0;while(a=t[o++]){if(n.indexOf(" "+a+" ")<0){n+=a+" "}}s=m.trim(n);if(r!==s){m.attr(i,"class",s)}}}}return this},removeClass:function(e){var t,i,n,r,a,o,s,l=0;if(m.isFunction(e)){return this.each(function(t){m(this).removeClass(e.call(this,t,Wt(this)))})}if(!arguments.length){return this.attr("class","")}if(typeof e==="string"&&e){t=e.match(I)||[];while(i=this[l++]){r=Wt(i);n=i.nodeType===1&&(" "+r+" ").replace(Lt," ");if(n){o=0;while(a=t[o++]){while(n.indexOf(" "+a+" ")>-1){n=n.replace(" "+a+" "," ")}}s=m.trim(n);if(r!==s){m.attr(i,"class",s)}}}}return this},toggleClass:function(e,t){var i=typeof e;if(typeof t==="boolean"&&i==="string"){return t?this.addClass(e):this.removeClass(e)}if(m.isFunction(e)){return this.each(function(i){m(this).toggleClass(e.call(this,i,Wt(this),t),t)})}return this.each(function(){var t,n,r,a;if(i==="string"){n=0;r=m(this);a=e.match(I)||[];while(t=a[n++]){if(r.hasClass(t)){r.removeClass(t)}else{r.addClass(t)}}}else if(e===undefined||i==="boolean"){t=Wt(this);if(t){m._data(this,"__className__",t)}m.attr(this,"class",t||e===false?"":m._data(this,"__className__")||"")}})},hasClass:function(e){var t,i,n=0;t=" "+e+" ";while(i=this[n++]){if(i.nodeType===1&&(" "+Wt(i)+" ").replace(Lt," ").indexOf(t)>-1){return true}}return false}});m.each(("blur focus focusin focusout load resize scroll unload click dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup error contextmenu").split(" "),function(e,t){m.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}});m.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Et=i.location;var At=m.now();var Rt=/\?/;var Bt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(e){if(i.JSON&&i.JSON.parse){return i.JSON.parse(e+"")}var t,n=null,r=m.trim(e+"");return r&&!m.trim(r.replace(Bt,function(e,i,r,a){if(t&&i){n=0}if(n===0){return e}t=r||i;n+=!a-!r;return""}))?Function("return "+r)():m.error("Invalid JSON: "+e)};m.parseXML=function(e){var t,n;if(!e||typeof e!=="string"){return null}try{if(i.DOMParser){n=new i.DOMParser;t=n.parseFromString(e,"text/xml")}else{t=new i.ActiveXObject("Microsoft.XMLDOM");t.async="false";t.loadXML(e)}}catch(e){t=undefined}if(!t||!t.documentElement||t.getElementsByTagName("parsererror").length){m.error("Invalid XML: "+e)}return t};var It=/#.*$/,zt=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ft=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nt=/^(?:GET|HEAD)$/,Ut=/^\/\//,jt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ht={},qt={},Vt="*/".concat("*"),Jt=Et.href,Gt=jt.exec(Jt.toLowerCase())||[];function Yt(e){return function(t,i){if(typeof t!=="string"){i=t;t="*"}var n,r=0,a=t.toLowerCase().match(I)||[];if(m.isFunction(i)){while(n=a[r++]){if(n.charAt(0)==="+"){n=n.slice(1)||"*";(e[n]=e[n]||[]).unshift(i)}else{(e[n]=e[n]||[]).push(i)}}}}}function Xt(e,t,i,n){var r={},a=e===qt;function o(s){var l;r[s]=true;m.each(e[s]||[],function(e,s){var u=s(t,i,n);if(typeof u==="string"&&!a&&!r[u]){t.dataTypes.unshift(u);o(u);return false}else if(a){return!(l=u)}});return l}return o(t.dataTypes[0])||!r["*"]&&o("*")}function Kt(e,t){var i,n,r=m.ajaxSettings.flatOptions||{};for(n in t){if(t[n]!==undefined){(r[n]?e:i||(i={}))[n]=t[n]}}if(i){m.extend(true,e,i)}return e}function $t(e,t,i){var n,r,a,o,s=e.contents,l=e.dataTypes;while(l[0]==="*"){l.shift();if(r===undefined){r=e.mimeType||t.getResponseHeader("Content-Type")}}if(r){for(o in s){if(s[o]&&s[o].test(r)){l.unshift(o);break}}}if(l[0]in i){a=l[0]}else{for(o in i){if(!l[0]||e.converters[o+" "+l[0]]){a=o;break}if(!n){n=o}}a=a||n}if(a){if(a!==l[0]){l.unshift(a)}return i[a]}}function Zt(e,t,i,n){var r,a,o,s,l,u={},f=e.dataTypes.slice();if(f[1]){for(o in e.converters){u[o.toLowerCase()]=e.converters[o]}}a=f.shift();while(a){if(e.responseFields[a]){i[e.responseFields[a]]=t}if(!l&&n&&e.dataFilter){t=e.dataFilter(t,e.dataType)}l=a;a=f.shift();if(a){if(a==="*"){a=l}else if(l!=="*"&&l!==a){o=u[l+" "+a]||u["* "+a];if(!o){for(r in u){s=r.split(" ");if(s[1]===a){o=u[l+" "+s[0]]||u["* "+s[0]];if(o){if(o===true){o=u[r]}else if(u[r]!==true){a=s[0];f.unshift(s[1])}break}}}}if(o!==true){if(o&&e["throws"]){t=o(t)}else{try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}}}}}return{state:"success",data:t}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Jt,type:"GET",isLocal:Ft.test(Gt[1]),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":true,"text json":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(e,t){return t?Kt(Kt(e,m.ajaxSettings),t):Kt(m.ajaxSettings,e)},ajaxPrefilter:Yt(Ht),ajaxTransport:Yt(qt),ajax:function(e,t){if(typeof e==="object"){t=e;e=undefined}t=t||{};var n,r,a,o,s,l,u,f,c=m.ajaxSetup({},t),d=c.context||c,h=c.context&&(d.nodeType||d.jquery)?m(d):m.event,p=m.Deferred(),y=m.Callbacks("once memory"),v=c.statusCode||{},g={},b={},S=0,w="canceled",P={readyState:0,getResponseHeader:function(e){var t;if(S===2){if(!f){f={};while(t=Ot.exec(o)){f[t[1].toLowerCase()]=t[2]}}t=f[e.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return S===2?o:null},setRequestHeader:function(e,t){var i=e.toLowerCase();if(!S){e=b[i]=b[i]||e;g[e]=t}return this},overrideMimeType:function(e){if(!S){c.mimeType=e}return this},statusCode:function(e){var t;if(e){if(S<2){for(t in e){v[t]=[v[t],e[t]]}}else{P.always(e[P.status])}}return this},abort:function(e){var t=e||w;if(u){u.abort(t)}C(0,t);return this}};p.promise(P).complete=y.add;P.success=P.done;P.error=P.fail;c.url=((e||c.url||Jt)+"").replace(It,"").replace(Ut,Gt[1]+"//");c.type=t.method||t.type||c.method||c.type;c.dataTypes=m.trim(c.dataType||"*").toLowerCase().match(I)||[""];if(c.crossDomain==null){n=jt.exec(c.url.toLowerCase());c.crossDomain=!!(n&&(n[1]!==Gt[1]||n[2]!==Gt[2]||(n[3]||(n[1]==="http:"?"80":"443"))!==(Gt[3]||(Gt[1]==="http:"?"80":"443"))))}if(c.data&&c.processData&&typeof c.data!=="string"){c.data=m.param(c.data,c.traditional)}Xt(Ht,c,t,P);if(S===2){return P}l=m.event&&c.global;if(l&&m.active++===0){m.event.trigger("ajaxStart")}c.type=c.type.toUpperCase();c.hasContent=!Nt.test(c.type);a=c.url;if(!c.hasContent){if(c.data){a=c.url+=(Rt.test(a)?"&":"?")+c.data;delete c.data}if(c.cache===false){c.url=zt.test(a)?a.replace(zt,"$1_="+At++):a+(Rt.test(a)?"&":"?")+"_="+At++}}if(c.ifModified){if(m.lastModified[a]){P.setRequestHeader("If-Modified-Since",m.lastModified[a])}if(m.etag[a]){P.setRequestHeader("If-None-Match",m.etag[a])}}if(c.data&&c.hasContent&&c.contentType!==false||t.contentType){P.setRequestHeader("Content-Type",c.contentType)}P.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Vt+"; q=0.01":""):c.accepts["*"]);for(r in c.headers){P.setRequestHeader(r,c.headers[r])}if(c.beforeSend&&(c.beforeSend.call(d,P,c)===false||S===2)){return P.abort()}w="abort";for(r in{success:1,error:1,complete:1}){P[r](c[r])}u=Xt(qt,c,t,P);if(!u){C(-1,"No Transport")}else{P.readyState=1;if(l){h.trigger("ajaxSend",[P,c])}if(S===2){return P}if(c.async&&c.timeout>0){s=i.setTimeout(function(){P.abort("timeout")},c.timeout)}try{S=1;u.send(g,C)}catch(e){if(S<2){C(-1,e)}else{throw e}}}function C(e,t,n,r){var f,g,b,w,C,_=t;if(S===2){return}S=2;if(s){i.clearTimeout(s)}u=undefined;o=r||"";P.readyState=e>0?4:0;f=e>=200&&e<300||e===304;if(n){w=$t(c,P,n)}w=Zt(c,w,P,f);if(f){if(c.ifModified){C=P.getResponseHeader("Last-Modified");if(C){m.lastModified[a]=C}C=P.getResponseHeader("etag");if(C){m.etag[a]=C}}if(e===204||c.type==="HEAD"){_="nocontent"}else if(e===304){_="notmodified"}else{_=w.state;g=w.data;b=w.error;f=!b}}else{b=_;if(e||!_){_="error";if(e<0){e=0}}}P.status=e;P.statusText=(t||_)+"";if(f){p.resolveWith(d,[g,_,P])}else{p.rejectWith(d,[P,_,b])}P.statusCode(v);v=undefined;if(l){h.trigger(f?"ajaxSuccess":"ajaxError",[P,c,f?g:b])}y.fireWith(d,[P,_]);if(l){h.trigger("ajaxComplete",[P,c]);if(!--m.active){m.event.trigger("ajaxStop")}}}return P},getJSON:function(e,t,i){return m.get(e,t,i,"json")},getScript:function(e,t){return m.get(e,undefined,t,"script")}});m.each(["get","post"],function(e,t){m[t]=function(e,i,n,r){if(m.isFunction(i)){r=r||n;n=i;i=undefined}return m.ajax(m.extend({url:e,type:t,dataType:r,data:i,success:n},m.isPlainObject(e)&&e))}});m._evalUrl=function(e){return m.ajax({url:e,type:"GET",dataType:"script",cache:true,async:false,global:false,throws:true})};m.fn.extend({wrapAll:function(e){if(m.isFunction(e)){return this.each(function(t){m(this).wrapAll(e.call(this,t))})}if(this[0]){var t=m(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){t.insertBefore(this[0])}t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1){e=e.firstChild}return e}).append(this)}return this},wrapInner:function(e){if(m.isFunction(e)){return this.each(function(t){m(this).wrapInner(e.call(this,t))})}return this.each(function(){var t=m(this),i=t.contents();if(i.length){i.wrapAll(e)}else{t.append(e)}})},wrap:function(e){var t=m.isFunction(e);return this.each(function(i){m(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(){return this.parent().each(function(){if(!m.nodeName(this,"body")){m(this).replaceWith(this.childNodes)}}).end()}});function Qt(e){return e.style&&e.style.display||m.css(e,"display")}function ei(e){while(e&&e.nodeType===1){if(Qt(e)==="none"||e.type==="hidden"){return true}e=e.parentNode}return false}m.expr.filters.hidden=function(e){return y.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:ei(e)};m.expr.filters.visible=function(e){return!m.expr.filters.hidden(e)};var ti=/%20/g,ii=/\[\]$/,ni=/\r?\n/g,ri=/^(?:submit|button|image|reset|file)$/i,ai=/^(?:input|select|textarea|keygen)/i;function oi(e,t,i,n){var r;if(m.isArray(t)){m.each(t,function(t,r){if(i||ii.test(e)){n(e,r)}else{oi(e+"["+(typeof r==="object"&&r!=null?t:"")+"]",r,i,n)}})}else if(!i&&m.type(t)==="object"){for(r in t){oi(e+"["+r+"]",t[r],i,n)}}else{n(e,t)}}m.param=function(e,t){var i,n=[],r=function(e,t){t=m.isFunction(t)?t():t==null?"":t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===undefined){t=m.ajaxSettings&&m.ajaxSettings.traditional}if(m.isArray(e)||e.jquery&&!m.isPlainObject(e)){m.each(e,function(){r(this.name,this.value)})}else{for(i in e){oi(i,e[i],t,r)}}return n.join("&").replace(ti,"+")};m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=m.prop(this,"elements");return e?m.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!m(this).is(":disabled")&&ai.test(this.nodeName)&&!ri.test(e)&&(this.checked||!te.test(e))}).map(function(e,t){var i=m(this).val();return i==null?null:m.isArray(i)?m.map(i,function(e){return{name:t.name,value:e.replace(ni,"\r\n")}}):{name:t.name,value:i.replace(ni,"\r\n")}}).get()}});m.ajaxSettings.xhr=i.ActiveXObject!==undefined?function(){if(this.isLocal){return ci()}if(s.documentMode>8){return fi()}return/^(get|post|head|put|delete|options)$/i.test(this.type)&&fi()||ci()}:fi;var si=0,li={},ui=m.ajaxSettings.xhr();if(i.attachEvent){i.attachEvent("onunload",function(){for(var e in li){li[e](undefined,true)}})}y.cors=!!ui&&"withCredentials"in ui;ui=y.ajax=!!ui;if(ui){m.ajaxTransport(function(e){if(!e.crossDomain||y.cors){var t;return{send:function(n,r){var a,o=e.xhr(),s=++si;o.open(e.type,e.url,e.async,e.username,e.password);if(e.xhrFields){for(a in e.xhrFields){o[a]=e.xhrFields[a]}}if(e.mimeType&&o.overrideMimeType){o.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!n["X-Requested-With"]){n["X-Requested-With"]="XMLHttpRequest"}for(a in n){if(n[a]!==undefined){o.setRequestHeader(a,n[a]+"")}}o.send(e.hasContent&&e.data||null);t=function(i,n){var a,l,u;if(t&&(n||o.readyState===4)){delete li[s];t=undefined;o.onreadystatechange=m.noop;if(n){if(o.readyState!==4){o.abort()}}else{u={};a=o.status;if(typeof o.responseText==="string"){u.text=o.responseText}try{l=o.statusText}catch(e){l=""}if(!a&&e.isLocal&&!e.crossDomain){a=u.text?200:404}else if(a===1223){a=204}}}if(u){r(a,l,u,o.getAllResponseHeaders())}};if(!e.async){t()}else if(o.readyState===4){i.setTimeout(t)}else{o.onreadystatechange=li[s]=t}},abort:function(){if(t){t(undefined,true)}}}}})}function fi(){try{return new i.XMLHttpRequest}catch(e){}}function ci(){try{return new i.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}m.ajaxPrefilter(function(e){if(e.crossDomain){e.contents.script=false}});m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, "+"application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){m.globalEval(e);return e}}});m.ajaxPrefilter("script",function(e){if(e.cache===undefined){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});m.ajaxTransport("script",function(e){if(e.crossDomain){var t,i=s.head||m("head")[0]||s.documentElement;return{send:function(n,r){t=s.createElement("script");t.async=true;if(e.scriptCharset){t.charset=e.scriptCharset}t.src=e.url;t.onload=t.onreadystatechange=function(e,i){if(i||!t.readyState||/loaded|complete/.test(t.readyState)){t.onload=t.onreadystatechange=null;if(t.parentNode){t.parentNode.removeChild(t)}t=null;if(!i){r(200,"success")}}};i.insertBefore(t,i.firstChild)},abort:function(){if(t){t.onload(undefined,true)}}}}});var di=[],hi=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=di.pop()||m.expando+"_"+At++;this[e]=true;return e}});m.ajaxPrefilter("json jsonp",function(e,t,n){var r,a,o,s=e.jsonp!==false&&(hi.test(e.url)?"url":typeof e.data==="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&hi.test(e.data)&&"data");if(s||e.dataTypes[0]==="jsonp"){r=e.jsonpCallback=m.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback;if(s){e[s]=e[s].replace(hi,"$1"+r)}else if(e.jsonp!==false){e.url+=(Rt.test(e.url)?"&":"?")+e.jsonp+"="+r}e.converters["script json"]=function(){if(!o){m.error(r+" was not called")}return o[0]};e.dataTypes[0]="json";a=i[r];i[r]=function(){o=arguments};n.always(function(){if(a===undefined){m(i).removeProp(r)}else{i[r]=a}if(e[r]){e.jsonpCallback=t.jsonpCallback;di.push(r)}if(o&&m.isFunction(a)){a(o[0])}o=a=undefined});return"script"}});y.createHTMLDocument=function(){if(!s.implementation.createHTMLDocument){return false}var e=s.implementation.createHTMLDocument("");e.body.innerHTML="
";return e.body.childNodes.length===2}();m.parseHTML=function(e,t,i){if(!e||typeof e!=="string"){return null}if(typeof t==="boolean"){i=t;t=false}t=t||(y.createHTMLDocument?s.implementation.createHTMLDocument(""):s);var n=x.exec(e),r=!i&&[];if(n){return[t.createElement(n[1])]}n=he([e],t,r);if(r&&r.length){m(r).remove()}return m.merge([],n.childNodes)};var pi=m.fn.load;m.fn.load=function(e,t,i){if(typeof e!=="string"&&pi){return pi.apply(this,arguments)}var n,r,a,o=this,s=e.indexOf(" ");if(s>-1){n=m.trim(e.slice(s,e.length));e=e.slice(0,s)}if(m.isFunction(t)){i=t;t=undefined}else if(t&&typeof t==="object"){r="POST"}if(o.length>0){m.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){a=arguments;o.html(n?m("
").append(m.parseHTML(e)).find(n):e)}).always(i&&function(e,t){o.each(function(){i.apply(o,a||[e.responseText,t,e])})})}return this};m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){m.fn[t]=function(e){return this.on(t,e)}});m.expr.filters.animated=function(e){return m.grep(m.timers,function(t){return e===t.elem}).length};function yi(e){return m.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}m.offset={setOffset:function(e,t,i){var n,r,a,o,s,l,u,f=m.css(e,"position"),c=m(e),d={};if(f==="static"){e.style.position="relative"}s=c.offset();a=m.css(e,"top");l=m.css(e,"left");u=(f==="absolute"||f==="fixed")&&m.inArray("auto",[a,l])>-1;if(u){n=c.position();o=n.top;r=n.left}else{o=parseFloat(a)||0;r=parseFloat(l)||0}if(m.isFunction(t)){t=t.call(e,i,m.extend({},s))}if(t.top!=null){d.top=t.top-s.top+o}if(t.left!=null){d.left=t.left-s.left+r}if("using"in t){t.using.call(e,d)}else{c.css(d)}}};m.fn.extend({offset:function(e){if(arguments.length){return e===undefined?this:this.each(function(t){m.offset.setOffset(this,e,t)})}var t,i,n={top:0,left:0},r=this[0],a=r&&r.ownerDocument;if(!a){return}t=a.documentElement;if(!m.contains(t,r)){return n}if(typeof r.getBoundingClientRect!=="undefined"){n=r.getBoundingClientRect()}i=yi(a);return{top:n.top+(i.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(i.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}},position:function(){if(!this[0]){return}var e,t,i={top:0,left:0},n=this[0];if(m.css(n,"position")==="fixed"){t=n.getBoundingClientRect()}else{e=this.offsetParent();t=this.offset();if(!m.nodeName(e[0],"html")){i=e.offset()}i.top+=m.css(e[0],"borderTopWidth",true);i.left+=m.css(e[0],"borderLeftWidth",true)}return{top:t.top-i.top-m.css(n,"marginTop",true),left:t.left-i.left-m.css(n,"marginLeft",true)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&(!m.nodeName(e,"html")&&m.css(e,"position")==="static")){e=e.offsetParent}return e||Je})}});m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i=/Y/.test(t);m.fn[e]=function(n){return ee(this,function(e,n,r){var a=yi(e);if(r===undefined){return a?t in a?a[t]:a.document.documentElement[n]:e[n]}if(a){a.scrollTo(!i?r:m(a).scrollLeft(),i?r:m(a).scrollTop())}else{e[n]=r}},e,n,arguments.length,null)}});m.each(["top","left"],function(e,t){m.cssHooks[t]=Ke(y.pixelPosition,function(e,i){if(i){i=Ye(e,t);return qe.test(i)?m(e).position()[t]+"px":i}})});m.each({Height:"height",Width:"width"},function(e,t){m.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,n){m.fn[n]=function(n,r){var a=arguments.length&&(i||typeof n!=="boolean"),o=i||(n===true||r===true?"margin":"border");return ee(this,function(t,i,n){var r;if(m.isWindow(t)){return t.document.documentElement["client"+e]}if(t.nodeType===9){r=t.documentElement;return Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])}return n===undefined?m.css(t,i,o):m.style(t,i,n,o)},t,a?n:undefined,a,null)}})});m.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",i)}});m.fn.size=function(){return this.length};m.fn.andSelf=m.fn.addBack;if(true){!(n=[],r=function(){return m}.apply(t,n),r!==undefined&&(e.exports=r))}var vi=i.jQuery,mi=i.$;m.noConflict=function(e){if(i.$===m){i.$=mi}if(e&&i.jQuery===m){i.jQuery=vi}return m};if(!a){i.jQuery=i.$=m}return m})},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var i=0;i-1){this.listener[t].splice(n,1)}return true}return false}},{key:"offAll",value:function e(){this.listener={}}},{key:"dispatch",value:function e(t,i){if(this.listener[t]){this.listener[t].map(function(e){e.apply(null,[i])});return true}return false}}]);return e}();t.default=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var i=0;i)[^>]*|#([\w-]*))$/;var n=/^(?:\s*(<[\w\W]+>)[^>]*|.([\w-]*))$/;if(i.test(t)){var r=i.exec(t);return document.getElementById(r[2])}else if(n.test(t)){var a=n.exec(t);var o=document.getElementsByTagName("*");var s=[];for(var l=0,u=o.length;l>2;s=(n&3)<<4|r>>4;l=(r&15)<<2|a>>6;u=a&63;if(isNaN(r)){l=u=64}else if(isNaN(a)){u=64}i=i+this._keyStr.charAt(o)+this._keyStr.charAt(s)+this._keyStr.charAt(l)+this._keyStr.charAt(u)}return i}},{key:"decode",value:function e(t){var i="";var n;var r;var a;var o;var s;var l;var u;var f=0;t=t.replace(/[^A-Za-z0-9+/=]/g,"");while(f>4;r=(s&15)<<4|l>>2;a=(l&3)<<6|u;i=i+String.fromCharCode(n);if(l!==64){i=i+String.fromCharCode(r)}if(u!==64){i=i+String.fromCharCode(a)}}i=this._utf8_decode(i);return i}},{key:"_utf8_encode",value:function e(t){t=t.replace(/\r\n/g,"\n");var i="";for(var n=0;n127&&r<2048){i+=String.fromCharCode(r>>6|192);i+=String.fromCharCode(r&63|128)}else{i+=String.fromCharCode(r>>12|224);i+=String.fromCharCode(r>>6&63|128);i+=String.fromCharCode(r&63|128)}}return i}},{key:"_utf8_decode",value:function e(t){var i="";var n=0;var r=0;var a=0;while(n191&&r<224){a=t.charCodeAt(n+1);i+=String.fromCharCode((r&31)<<6|a&63);n+=2}else{a=t.charCodeAt(n+1);var o=t.charCodeAt(n+2);i+=String.fromCharCode((r&15)<<12|(a&63)<<6|o&63);n+=3}}return i}},{key:"isFirefox",value:function e(){var t=false;var i=navigator.userAgent.toLowerCase();var n="";var r=-1;if(i.match(/firefox\/([\d.]+)/)){n=i.match(/firefox\/([\d.]+)/)[1];r=parseInt(n.split(".")[0],10);if(r>-1){t=true}}return t}},{key:"isSafari",value:function e(){var t=false;var i=navigator.userAgent.toLowerCase();var n="";var r=-1;if(i.match(/version\/([\d.]+).safari./)){n=i.match(/version\/([\d.]+).safari./)[1];r=parseInt(n.split(".")[0],10);if(r>-1){t=true}}return t}},{key:"isEdge",value:function e(){return navigator.userAgent.toLowerCase().indexOf("edge")>-1}},{key:"dataURLtoBlob",value:function e(t){var i=t.split(",");var n=i[0].match(/:(.*?);/)[1];var r=atob(i[1]);var a=r.length;var o=new Uint8Array(a);while(a--){o[a]=r.charCodeAt(a)}return new Blob([o],{type:n})}},{key:"intToHexString",value:function e(t){var i=t.toString(16);if(i.length===1){i="0"+i}return i}}]);return e}();var o=t.oTool=new a},function(e,t,i){var n=i(15);var r=i(16);var a=r;a.v1=n;a.v4=r;e.exports=a},function(e,t){var i=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(i){var n=new Uint8Array(16);e.exports=function e(){i(n);return n}}else{var r=new Array(16);e.exports=function e(){for(var t=0,i;t<16;t++){if((t&3)===0)i=Math.random()*4294967296;r[t]=i>>>((t&3)<<3)&255}return r}}},function(e,t){var i=[];for(var n=0;n<256;++n){i[n]=(n+256).toString(16).substr(1)}function r(e,t){var n=t||0;var r=i;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}e.exports=r},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var i=0;i>5;this.ntype=this.payload[0]&31}n(e,[{key:"toString",value:function t(){return e.type(this)+": NRI: "+this.getNri()}},{key:"getNri",value:function e(){return this.nri>>6}},{key:"type",value:function e(){return this.ntype}},{key:"isKeyframe",value:function t(){return this.ntype==e.IDR}},{key:"getSize",value:function e(){return 4+this.payload.byteLength}},{key:"getData",value:function e(){var t=new Uint8Array(this.getSize());var i=new DataView(t.buffer);i.setUint32(0,this.getSize()-4);t.set(this.payload,4);return t}}]);return e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.H264Parser=undefined;var n=function(){function e(e,t){for(var i=0;i>>5}},{key:"isAACPattern",value:function e(t){return t[0]===255&&(t[1]&240)===240&&(t[1]&6)===0}},{key:"extractAAC",value:function t(i){var n=0,r=i.byteLength,o=[],s=void 0,u=void 0;if(!e.isAACPattern(i)){a.error("Invalid ADTS audio format");return o}s=e.getHeaderLength(i);if(!l){l=i.subarray(0,s)}while(n>>6)+1;n=(o[2]&60)>>>2;r=(o[2]&1)<<2;r|=(o[3]&192)>>>6;a[0]=i<<3;a[0]|=(n&14)>>1;a[1]|=(n&1)<<7;a[1]|=r<<3;this.track.codec="mp4a.40."+i;this.track.channelCount=r;this.track.config=a;this.remuxer.readyToDecode=true}}]);return e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseRemuxer=undefined;var n=function(){function e(e,t){for(var i=0;i0){r+=(i<10?"0"+i:i)+":"}r+=(n<10?"0"+n:n)+":"+(t<10?"0"+t:t);return r}},function(e,t,i){e.exports=i(13)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.JSPlugin=undefined;var n=function(){function e(e,t){for(var i=0;ithis.options.iMaxSplit){this.options.iCurrentSplit=this.options.iMaxSplit}this.iCurrentPlayRate=1;this.iCurrentSoundWnd=-1;this.iMaxWndNum=this.options.iMaxSplit*this.options.iMaxSplit;this.bPluginFull=false;this.oVideoWindow=null;this.iCurrentWndIndex=-1;this.fDrawCallback=null;this.szPluginVersion="V1.3.0 build20190821";this.isBrowserVisible=true;this.oStorageManager=new f.StorageManager(this.options.szBasePath+"/transform");this.oStreamClient=new s.StreamClient;this.oJSPlugin=(0,a.default)("#"+this.options.szId);this._listenBrowserVisibility();this._createWindows();this.aWndList=[];for(var r=0;r=Math.pow(f,2)?r:0);var h=l+(d%f===f-1?n:0);var p=u+(d+f>=Math.pow(f,2)?r:0);c+='
'+''+''+(d===0?'':"")+'>>24&255;f[u++]=m>>>16&255;f[u++]=m>>>8&255;f[u++]=m&255;var g=p/4294967296*1e4&268435455;f[u++]=g>>>8&255;f[u++]=g&255;f[u++]=g>>>24&15|16;f[u++]=g>>>16&255;f[u++]=d>>>8|128;f[u++]=d&255;for(var b=0;b<6;++b){f[u+b]=c[b]}return t?t:r(f)}e.exports=u},function(e,t,i){var n=i(5);var r=i(6);function a(e,t,i){var a=t&&i||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var o=e.random||(e.rng||n)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){for(var s=0;s<16;++s){t[a+s]=o[s]}}return t||r(o)}e.exports=a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var i=0;i>>0).toString(16).toLocaleUpperCase().toString(16);for(var n=i.length;n<8;n++){i="0"+i}var r=[0,0,0,0];for(var a=0,o=i.length;a=0;){var o=t*this[e++]+i[n]+r,r=Math.floor(o/67108864);i[n++]=o&67108863}return r}function d(e,t,i,n,r,a){var o=t&32767;for(t>>=15;--a>=0;){var s=this[e]&32767,l=this[e++]>>15,u=t*s+l*o,s=o*s+((u&32767)<<15)+i[n]+(r&1073741823),r=(s>>>30)+(u>>>15)+t*l+(r>>>30);i[n++]=s&1073741823}return r}function h(e,t,i,n,r,a){var o=t&16383;for(t>>=14;--a>=0;){var s=this[e]&16383,l=this[e++]>>14,u=t*s+l*o,s=o*s+((u&16383)<<14)+i[n]+r,r=(s>>28)+(u>>14)+t*l;i[n++]=s&268435455}return r}l&&a.appName=="Microsoft Internet Explorer"?(u.prototype.am=d,o=30):l&&a.appName!="Netscape"?(u.prototype.am=c,o=26):(u.prototype.am=h,o=28);u.prototype.DB=o;u.prototype.DM=(1<=0;--t){e[t]=this[t]}e.t=this.t;e.s=this.s}function C(e){this.t=1;this.s=e<0?-1:0;e>0?this[0]=e:e<-1?this[0]=e+DV:this.t=0}function _(e){var t=f();t.fromInt(e);return t}function k(e,t){var i;if(t==16)i=4;else if(t==8)i=3;else if(t==256)i=8;else if(t==2)i=1;else if(t==32)i=5;else if(t==4)i=2;else{this.fromRadix(e,t);return}this.s=this.t=0;for(var n=e.length,r=!1,a=0;--n>=0;){var o=i==8?e[n]&255:w(e,n);o<0?e.charAt(n)=="-"&&(r=!0):(r=!1,a==0?this[this.t++]=o:a+i>this.DB?(this[this.t-1]|=(o&(1<>this.DB-a):this[this.t-1]|=o<=this.DB&&(a-=this.DB))}if(i==8&&(e[0]&128)!=0)this.s=-1,a>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;){--this.t}}function x(e){if(this.s<0)return"-"+this.negate().toString(e);if(e==16)e=4;else if(e==8)e=3;else if(e==2)e=1;else if(e==32)e=5;else if(e==64)e=6;else if(e==4)e=2;else return this.toRadix(e);var t=(1<0){if(o>o)>0)n=!0,r=S(i);for(;a>=0;){o>(o+=this.DB-e)):(i=this[a]>>(o-=e)&t,o<=0&&(o+=this.DB,--a)),i>0&&(n=!0),n&&(r+=S(i))}}return n?r:"0"}function T(){var e=f();u.ZERO.subTo(this,e);return e}function M(){return this.s<0?this.negate():this}function L(e){var t=this.s-e.s;if(t!=0)return t;var i=this.t,t=i-e.t;if(t!=0)return t;for(;--i>=0;){if((t=this[i]-e[i])!=0)return t}return 0}function W(e){var t=1,i;if((i=e>>>16)!=0)e=i,t+=16;if((i=e>>8)!=0)e=i,t+=8;if((i=e>>4)!=0)e=i,t+=4;if((i=e>>2)!=0)e=i,t+=2;e>>1!=0&&(t+=1);return t}function E(){return this.t<=0?0:this.DB*(this.t-1)+W(this[this.t-1]^this.s&this.DM)}function A(e,t){var i;for(i=this.t-1;i>=0;--i){t[i+e]=this[i]}for(i=e-1;i>=0;--i){t[i]=0}t.t=this.t+e;t.s=this.s}function R(e,t){for(var i=e;i=0;--s){t[s+a+1]=this[s]>>n|o,o=(this[s]&r)<=0;--s){t[s]=0}t[a]=o;t.t=this.t+a+1;t.s=this.s;t.clamp()}function I(e,t){t.s=this.s;var i=Math.floor(e/this.DB);if(i>=this.t)t.t=0;else{var n=e%this.DB,r=this.DB-n,a=(1<>n;for(var o=i+1;o>n}n>0&&(t[this.t-i-1]|=(this.s&a)<>=this.DB}if(e.t>=this.DB}n+=this.s}else{for(n+=this.s;i>=this.DB}n-=e.s}t.s=n<0?-1:0;n<-1?t[i++]=this.DV+n:n>0&&(t[i++]=n);t.t=i;t.clamp()}function O(e,t){var i=this.abs(),n=e.abs(),r=i.t;for(t.t=r+n.t;--r>=0;){t[r]=0}for(r=0;r=0;){e[i]=0}for(i=0;i=t.DV)e[i+t.t]-=t.DV,e[i+t.t+1]=1}e.t>0&&(e[e.t-1]+=t.am(i,t[i],e,2*i,0,1));e.s=0;e.clamp()}function N(e,t,i){var n=e.abs();if(!(n.t<=0)){var r=this.abs();if(r.t0?(n.lShiftTo(s,a),r.lShiftTo(s,i)):(n.copyTo(a),r.copyTo(i));n=a.t;r=a[n-1];if(r!=0){var l=r*(1<1?a[n-2]>>this.F2:0),c=this.FV/l,l=(1<=0&&(i[i.t++]=1,i.subTo(y,i));u.ONE.dlShiftTo(n,y);for(y.subTo(a,a);a.t=0;){var v=i[--h]==r?this.DM:Math.floor(i[h]*c+(i[h-1]+d)*l);if((i[h]+=a.am(0,v,i,p,0,n))0&&i.rShiftTo(s,i);o<0&&u.ZERO.subTo(i,i)}}}}function U(e){var t=f();this.abs().divRemTo(e,null,t);this.s<0&&t.compareTo(u.ZERO)>0&&e.subTo(t,t);return t}function j(e){this.m=e}function H(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function q(e){return e}function V(e){e.divRemTo(this.m,null,e)}function J(e,t,i){e.multiplyTo(t,i);this.reduce(i)}function G(e,t){e.squareTo(t);this.reduce(t)}j.prototype.convert=H;j.prototype.revert=q;j.prototype.reduce=V;j.prototype.mulTo=J;j.prototype.sqrTo=G;function Y(){if(this.t<1)return 0;var e=this[0];if((e&1)==0)return 0;var t=e&3,t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV;return t>0?this.DV-t:-t}function X(e){this.m=e;this.mp=e.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<0&&this.m.subTo(t,t);return t}function $(e){var t=f();e.copyTo(t);this.reduce(t);return t}function Z(e){for(;e.t<=this.mt2;){e[e.t++]=0}for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM,i=t+this.m.t;for(e[i]+=this.m.am(0,n,e,t,0,this.m.t);e[i]>=e.DV;){e[i]-=e.DV,e[++i]++}}e.clamp();e.drShiftTo(this.m.t,e);e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function Q(e,t){e.squareTo(t);this.reduce(t)}function ee(e,t,i){e.multiplyTo(t,i);this.reduce(i)}X.prototype.convert=K;X.prototype.revert=$;X.prototype.reduce=Z;X.prototype.mulTo=ee;X.prototype.sqrTo=Q;function te(){return(this.t>0?this[0]&1:this.s)==0}function ie(e,t){if(e>4294967295||e<1)return u.ONE;var i=f(),n=f(),r=t.convert(this),a=W(e)-1;for(r.copyTo(i);--a>=0;){if(t.sqrTo(i,n),(e&1<0)t.mulTo(n,r,i);else var o=i,i=n,n=o}return t.revert(i)}function ne(e,t){var i;i=e<256||t.isEven()?new j(t):new X(t);return this.exp(e,i)}u.prototype.copyTo=P;u.prototype.fromInt=C;u.prototype.fromString=k;u.prototype.clamp=D;u.prototype.dlShiftTo=A;u.prototype.drShiftTo=R;u.prototype.lShiftTo=B;u.prototype.rShiftTo=I;u.prototype.subTo=z;u.prototype.multiplyTo=O;u.prototype.squareTo=F;u.prototype.divRemTo=N;u.prototype.invDigit=Y;u.prototype.isEven=te;u.prototype.exp=ie;u.prototype.toString=x;u.prototype.negate=T;u.prototype.abs=M;u.prototype.compareTo=L;u.prototype.bitLength=E;u.prototype.mod=U;u.prototype.modPowInt=ne;u.ZERO=_(0);u.ONE=_(1);function re(){var e=f();this.copyTo(e);return e}function ae(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else{if(this.t==0)return-1}}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<>24}function se(){return this.t==0?this.s:this[0]<<16>>16}function le(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function ue(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function fe(e){e==null&&(e=10);if(this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),t=Math.pow(e,t),i=_(t),n=f(),r=f(),a="";for(this.divRemTo(i,n,r);n.signum()>0;){a=(t+r.intValue()).toString(e).substr(1)+a,n.divRemTo(i,n,r)}return r.intValue().toString(e)+a}function ce(e,t){this.fromInt(0);t==null&&(t=10);for(var i=this.chunkSize(t),n=Math.pow(t,i),r=!1,a=0,o=0,s=0;s=i&&(this.dMultiply(n),this.dAddOffset(o,0),o=a=0))}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(o,0));r&&u.ZERO.subTo(this,this)}function de(e,t,i){if("number"==typeof t){if(e<2)this.fromInt(1);else{this.fromNumber(e,i);this.testBit(e-1)||this.bitwiseTo(u.ONE.shiftLeft(e-1),Se,this);for(this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);){this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(u.ONE.shiftLeft(e-1),this)}}}else{var i=[],n=e&7;i.length=(e>>3)+1;t.nextBytes(i);n>0?i[0]&=(1<0){if(i>i)!=(this.s&this.DM)>>i)t[r++]=n|this.s<=0;){if(i<8?(n=(this[e]&(1<>(i+=this.DB-8)):(n=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),(n&128)!=0&&(n|=-256),r==0&&(this.s&128)!=(n&128)&&++r,r>0||n!=this.s)t[r++]=n}}return t}function pe(e){return this.compareTo(e)==0}function ye(e){return this.compareTo(e)<0?this:e}function ve(e){return this.compareTo(e)>0?this:e}function me(e,t,i){var n,r,a=Math.min(e.t,this.t);for(n=0;n>=16,t+=16);(e&255)==0&&(e>>=8,t+=8);(e&15)==0&&(e>>=4,t+=4);(e&3)==0&&(e>>=2,t+=2);(e&1)==0&&++t;return t}function Le(){for(var e=0;e=this.t?this.s!=0:(this[t]&1<>=this.DB}if(e.t>=this.DB}n+=this.s}else{for(n+=this.s;i>=this.DB}n+=e.s}t.s=n<0?-1:0;n>0?t[i++]=n:n<-1&&(t[i++]=this.DV+n);t.t=i;t.clamp()}function Fe(e){var t=f();this.addTo(e,t);return t}function Ne(e){var t=f();this.subTo(e,t);return t}function Ue(e){var t=f();this.multiplyTo(e,t);return t}function je(){var e=f();this.squareTo(e);return e}function He(e){var t=f();this.divRemTo(e,t,null);return t}function qe(e){var t=f();this.divRemTo(e,null,t);return t}function Ve(e){var t=f(),i=f();this.divRemTo(e,t,i);return[t,i]}function Je(e){this[this.t]=this.am(0,e-1,this,0,0,this.t);++this.t;this.clamp()}function Ge(e,t){if(e!=0){for(;this.t<=t;){this[this.t++]=0}for(this[t]+=e;this[t]>=this.DV;){this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}}}function Ye(){}function Xe(e){return e}function Ke(e,t,i){e.multiplyTo(t,i)}function $e(e,t){e.squareTo(t)}Ye.prototype.convert=Xe;Ye.prototype.revert=Xe;Ye.prototype.mulTo=Ke;Ye.prototype.sqrTo=$e;function Ze(e){return this.exp(e,new Ye)}function Qe(e,t,i){var n=Math.min(this.t+e.t,t);i.s=0;for(i.t=n;n>0;){i[--n]=0}var r;for(r=i.t-this.t;n=0;){i[n]=0}for(n=Math.max(t-this.t,0);n2*this.m.t)return e.mod(this.m);else if(e.compareTo(this.m)<0)return e;else{var t=f();e.copyTo(t);this.reduce(t);return t}}function nt(e){return e}function rt(e){e.drShiftTo(this.m.t-1,this.r2);if(e.t>this.m.t+1)e.t=this.m.t+1,e.clamp();this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);for(this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;){e.dAddOffset(1,this.m.t+1)}for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;){e.subTo(this.m,e)}}function at(e,t){e.squareTo(t);this.reduce(t)}function ot(e,t,i){e.multiplyTo(t,i);this.reduce(i)}tt.prototype.convert=it;tt.prototype.revert=nt;tt.prototype.reduce=rt;tt.prototype.mulTo=ot;tt.prototype.sqrTo=at;function st(e,t){var i=e.bitLength(),n,r=_(1),a;if(i<=0)return r;else n=i<18?1:i<48?3:i<144?4:i<768?5:6;a=i<8?new j(t):t.isEven()?new tt(t):new X(t);var o=[],s=3,l=n-1,u=(1<1){i=f();for(a.sqrTo(o[1],i);s<=u;){o[s]=f(),a.mulTo(i,o[s-2],o[s]),s+=2}}for(var c=e.t-1,d,h=!0,p=f(),i=W(e[c])-1;c>=0;){i>=l?d=e[c]>>i-l&u:(d=(e[c]&(1<0&&(d|=e[c-1]>>this.DB+i-l));for(s=n;(d&1)==0;){d>>=1,--s}if((i-=s)<0)i+=this.DB,--c;if(h)o[d].copyTo(r),h=!1;else{for(;s>1;){a.sqrTo(r,p),a.sqrTo(p,r),s-=2}s>0?a.sqrTo(r,p):(s=r,r=p,p=s);a.mulTo(p,o[d],r)}for(;c>=0&&(e[c]&1<0&&(t.rShiftTo(n,t),e.rShiftTo(n,e));for(;t.signum()>0;){(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),t.compareTo(e)>=0?(t.subTo(e,t),t.rShiftTo(1,t)):(e.subTo(t,e),e.rShiftTo(1,e))}n>0&&e.lShiftTo(n,e);return e}function ut(e){if(e<=0)return 0;var t=this.DV%e,i=this.s<0?e-1:0;if(this.t>0)if(t==0)i=this[0]%e;else for(var n=this.t-1;n>=0;--n){i=(t*i+this[n])%e}return i}function ft(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return u.ZERO;for(var i=e.clone(),n=this.clone(),r=_(1),a=_(0),o=_(0),s=_(1);i.signum()!=0;){for(;i.isEven();){i.rShiftTo(1,i);if(t){if(!r.isEven()||!a.isEven())r.addTo(this,r),a.subTo(e,a);r.rShiftTo(1,r)}else a.isEven()||a.subTo(e,a);a.rShiftTo(1,a)}for(;n.isEven();){n.rShiftTo(1,n);if(t){if(!o.isEven()||!s.isEven())o.addTo(this,o),s.subTo(e,s);o.rShiftTo(1,o)}else s.isEven()||s.subTo(e,s);s.rShiftTo(1,s)}i.compareTo(n)>=0?(i.subTo(n,i),t&&r.subTo(o,r),a.subTo(s,a)):(n.subTo(i,n),t&&o.subTo(r,o),s.subTo(a,s))}if(n.compareTo(u.ONE)!=0)return u.ZERO;if(s.compareTo(e)>=0)return s.subtract(e);if(s.signum()<0)s.addTo(e,s);else return s;return s.signum()<0?s.add(e):s}var ct=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],dt=67108864/ct[ct.length-1];function ht(e){var t,i=this.abs();if(i.t==1&&i[0]<=ct[ct.length-1]){for(t=0;t>1;if(e>ct.length)e=ct.length;for(var r=f(),a=0;a=o;){e/=2,t/=2,r>>>=1}return(e+r)/t};return r};s=t.pow(i,n);a=t.pow(2,a);o=a*2;f(t.random(),e)})([],Math,256,6,52);function yt(){}function vt(e){var t;for(t=0;t>8&255;Ct[_t++]^=e>>16&255;Ct[_t++]^=e>>24&255;_t>=wt&&(_t-=wt)}function Dt(){kt((new Date).getTime())}if(Ct==null){Ct=[];_t=0;var xt;if(a.appName=="Netscape"&&a.appVersion<"5"&&window.crypto){var Tt=window.crypto.random(32);for(xt=0;xt>>8,Ct[_t++]=xt&255}_t=0;Dt()}function Mt(){if(Pt==null){Dt();Pt=St();Pt.init(Ct);for(_t=0;_t>16)+(t>>16)+(i>>16)<<16|i&65535}function i(e,t){return e>>>t|e<<32-t}e=function(e){for(var e=e.replace(/\r\n/g,"\n"),t="",i=0;i127&&n<2048?t+=String.fromCharCode(n>>6|192):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128)),t+=String.fromCharCode(n&63|128))}return t}(e);return function(e){for(var t="",i=0;i>2]>>(3-i%4)*8+4&15)+"0123456789abcdef".charAt(e[i>>2]>>(3-i%4)*8&15)}return t}(function(e,n){var r=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],o=Array(64),s,l,u,f,c,d,h,p,y,v,m,g;e[n>>5]|=128<<24-n%32;e[(n+64>>9<<4)+15]=n;for(y=0;y>>10,o[v-7]),i(o[v-15],7)^i(o[v-15],18)^o[v-15]>>>3),o[v-16]),m=t(t(t(t(p,i(c,6)^i(c,11)^i(c,25)),c&d^~c&h),r[v]),o[v]),g=t(i(s,2)^i(s,13)^i(s,22),s&l^s&u^l&u),p=h,h=d,d=c,c=t(f,m),f=u,u=l,l=s,s=t(m,g)}a[0]=t(s,a[0]);a[1]=t(l,a[1]);a[2]=t(u,a[2]);a[3]=t(f,a[3]);a[4]=t(c,a[4]);a[5]=t(d,a[5]);a[6]=t(h,a[6]);a[7]=t(p,a[7])}return a}(function(e){for(var t=[],i=0;i>5]|=(e.charCodeAt(i/8)&255)<<24-i%32}return t}(e),e.length*8))}var At={hex:function e(t){return Et(t)}};function Rt(e){function t(e,t){return e<>>32-t}function i(e){var t="",i,n;for(i=7;i>=0;i--){n=e>>>i*4&15,t+=n.toString(16)}return t}var n,r,a=Array(80),o=1732584193,s=4023233417,l=2562383102,u=271733878,f=3285377520,c,d,h,p,y,e=function(e){for(var e=e.replace(/\r\n/g,"\n"),t="",i=0;i127&&n<2048?t+=String.fromCharCode(n>>6|192):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128)),t+=String.fromCharCode(n&63|128))}return t}(e);c=e.length;var v=[];for(n=0;n>>29);v.push(c<<3&4294967295);for(e=0;e>>32-o,t)}function r(e,t,n,r,a,o,s){e=i(e,i(i(t&r|n&~r,a),s));return i(e<>>32-o,t)}function a(e,t,n,r,a,o,s){e=i(e,i(i(t^n^r,a),s));return i(e<>>32-o,t)}function o(e,t,n,r,a,o,s){e=i(e,i(i(n^(t|~r),a),s));return i(e<>>32-o,t)}function s(e){var t="",i="",n;for(n=0;n<=3;n++){i=e>>>n*8&255,i="0"+i.toString(16),t+=i.substr(i.length-2,2)}return t}var l=[],u,f,c,d,h,p,y,v,t=function(e){for(var e=e.replace(/\r\n/g,"\n"),t="",i=0;i127&&n<2048?t+=String.fromCharCode(n>>6|192):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128)),t+=String.fromCharCode(n&63|128))}return t}(t),l=function(e){var t,i=e.length;t=i+8;for(var n=((t-t%64)/64+1)*16,r=Array(n-1),a=0,o=0;o>>29;return r}(t);h=1732584193;p=4023233417;y=2562383102;v=271733878;for(t=0;t=0&&t>0;){var r=e.charCodeAt(n--);r<128?i[--t]=r:r>127&&r<2048?(i[--t]=r&63|128,i[--t]=r>>6|192):(i[--t]=r&63|128,i[--t]=r>>6&63|128,i[--t]=r>>12|224)}i[--t]=0;n=new Wt;for(r=[];t>2;){for(r[0]=0;r[0]==0;){n.nextBytes(r)}i[--t]=r[0]}i[--t]=2;i[--t]=0;return new u(i)}function Ut(){this.n=null;this.e=0;this.coeff=this.dmq1=this.dmp1=this.q=this.p=this.d=null}function jt(e,t){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=zt(e,16),this.e=parseInt(t,16)):alert("Invalid RSA public key")}function Ht(e){return e.modPowInt(this.e,this.n)}function qt(e){e=Nt(e,this.n.bitLength()+7>>3);if(e==null)return null;e=this.doPublic(e);if(e==null)return null;e=e.toString(16);return(e.length&1)==0?e:"0"+e}Ut.prototype.doPublic=Ht;Ut.prototype.setPublic=jt;Ut.prototype.encrypt=qt;function Vt(e,t){for(var i=e.toByteArray(),n=0;n=i.length)return null}for(var r="";++n191&&a<224?(r+=String.fromCharCode((a&31)<<6|i[n+1]&63),++n):(r+=String.fromCharCode((a&15)<<12|(i[n+1]&63)<<6|i[n+2]&63),n+=2)}return r}function Jt(e,t,i){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=zt(e,16),this.e=parseInt(t,16),this.d=zt(i,16)):alert("Invalid RSA private key")}function Gt(e,t,i,n,r,a,o,s){e!=null&&t!=null&&e.length>0&&t.length>0?(this.n=zt(e,16),this.e=parseInt(t,16),this.d=zt(i,16),this.p=zt(n,16),this.q=zt(r,16),this.dmp1=zt(a,16),this.dmq1=zt(o,16),this.coeff=zt(s,16)):alert("Invalid RSA private key")}function Yt(e,t){var i=new yt,n=e>>1;this.e=parseInt(t,16);for(var r=new u(t,16);;){for(;;){if(this.p=new u(e-n,1,i),this.p.subtract(u.ONE).gcd(r).compareTo(u.ONE)==0&&this.p.isProbablePrime(10))break}for(;;){if(this.q=new u(n,1,i),this.q.subtract(u.ONE).gcd(r).compareTo(u.ONE)==0&&this.q.isProbablePrime(10))break}if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q;this.q=a}var a=this.p.subtract(u.ONE),o=this.q.subtract(u.ONE),s=a.multiply(o);if(s.gcd(r).compareTo(u.ONE)==0){this.n=this.p.multiply(this.q);this.d=r.modInverse(s);this.dmp1=this.d.mod(a);this.dmq1=this.d.mod(o);this.coeff=this.q.modInverse(this.p);break}}}function Xt(e){if(this.p==null||this.q==null)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),e=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(e)<0;){t=t.add(this.p)}return t.subtract(e).multiply(this.coeff).mod(this.p).multiply(this.q).add(e)}function Kt(e){e=this.doPrivate(zt(e,16));return e==null?null:Vt(e,this.n.bitLength()+7>>3)}Ut.prototype.doPrivate=Xt;Ut.prototype.setPrivate=Jt;Ut.prototype.setPrivateEx=Gt;Ut.prototype.generate=Yt;Ut.prototype.decrypt=Kt;var $t=[];$t.sha1="3021300906052b0e03021a05000414";$t.sha256="3031300d060960864801650304020105000420";var Zt=[];Zt.sha1=Bt.hex;Zt.sha256=At.hex;function Qt(e,t,i){t/=4;for(var e=(0,Zt[i])(e),i="00"+$t[i]+e,e="",t=t-4-i.length,n=0;n=256)r^=283}else i>24&&a%i==16&&(o=[e.Sbox[o[0]],e.Sbox[o[1]],e.Sbox[o[2]],e.Sbox[o[3]]]);for(var s=0;s<4;s++){t[a+s]=t[a+s-i]^o[s]}}};e.Encrypt=function(t,i){var n=i.length;e.AddRoundKey(t,i.slice(0,16));for(var r=16;r=16;n-=16){e.AddRoundKey(t,i.slice(n,n+16)),e.MixColumns_Inv(t),e.ShiftRows(t,e.ShiftRowTab_Inv),e.SubBytes(t,e.Sbox_Inv)}e.AddRoundKey(t,i.slice(0,16))};e.SubBytes=function(e,t){for(var i=0;i<16;i++){e[i]=t[e[i]]}};e.AddRoundKey=function(e,t){for(var i=0;i<16;i++){e[i]^=t[i]}};e.ShiftRows=function(e,t){for(var i=[].concat(e),n=0;n<16;n++){e[n]=i[t[n]]}};e.MixColumns=function(t){for(var i=0;i<16;i+=4){var n=t[i+0],r=t[i+1],a=t[i+2],o=t[i+3],s=n^r^a^o;t[i+0]^=s^e.xtime[n^r];t[i+1]^=s^e.xtime[r^a];t[i+2]^=s^e.xtime[a^o];t[i+3]^=s^e.xtime[o^n]}};e.MixColumns_Inv=function(t){for(var i=0;i<16;i+=4){var n=t[i+0],r=t[i+1],a=t[i+2],o=t[i+3],s=n^r^a^o,l=e.xtime[s],u=e.xtime[e.xtime[l^n^a]]^s;s^=e.xtime[e.xtime[l^r^o]];t[i+0]^=u^e.xtime[n^r];t[i+1]^=s^e.xtime[r^a];t[i+2]^=u^e.xtime[a^o];t[i+3]^=s^e.xtime[o^n]}};return e}(),fi=function(){var e={};ui.Init();e.b256to64=function(e){var t,i,n,r="",a=0,o=0,s=e.length;for(n=0;n>2&63),t=(i&3)<<4):o==1?(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t|i>>4&15),t=(i&15)<<2):o==2&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t|i>>6&3),a+=1,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i&63)),a+=1,o+=1,o==3&&(o=0)}o>0&&(r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t),r+="=");o==1&&(r+="=");return r};e.b64to256=function(e){var t,i,n="",r=0,a=0,o=e.length;for(i=0;i=0&&(r&&(n+=String.fromCharCode(a|t>>6-r&255)),r=r+2&7,a=t<>6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i&63)}t+1==e.length?(i=parseInt(e.substring(t,t+1),16),n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i<<2)):t+2==e.length&&(i=parseInt(e.substring(t,t+2),16),n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>2)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((i&3)<<4));for(;(n.length&3)>0;){n+="="}return n};e.b64to16=function(e){var t="",i,n=0,r;for(i=0;i>2),r=v&3,n=1):n==1?(t+=S(r<<2|v>>4),r=v&15,n=2):n==2?(t+=S(r),t+=S(v>>2),r=v&3,n=3):(t+=S(r<<2|v>>4),t+=S(v&15),n=0))}n==1&&(t+=S(r<<2));return t};e.string2bytes=function(e){for(var t=[],i=0;i>>2]|=(n[a>>>2]>>>24-8*(a%4)&255)<<24-8*((r+a)%4)}else if(65535>>2]=n[a>>>2]}else i.push.apply(i,n);this.sigBytes+=t;return this},clamp:function t(){var i=this.words,n=this.sigBytes;i[n>>>2]&=4294967295<<32-8*(n%4);i.length=e.ceil(n/4)},clone:function e(){var t=a.clone.call(this);t.words=this.words.slice(0);return t},random:function t(i){for(var n=[],r=0;r>>2]>>>24-8*(r%4)&255;n.push((a>>>4).toString(16));n.push((a&15).toString(16))}return n.join("")},parse:function e(t){for(var i=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-4*(r%8)}return new o.init(n,i/2)}},u=s.Latin1={stringify:function e(t){var i=t.words;t=t.sigBytes;for(var n=[],r=0;r>>2]>>>24-8*(r%4)&255))}return n.join("")},parse:function e(t){for(var i=t.length,n=[],r=0;r>>2]|=(t.charCodeAt(r)&255)<<24-8*(r%4)}return new o.init(n,i)}},f=s.Utf8={stringify:function e(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function e(t){return u.parse(unescape(encodeURIComponent(t)))}},c=n.BufferedBlockAlgorithm=a.extend({reset:function e(){this._data=new o.init;this._nDataBytes=0},_append:function e(t){"string"==typeof t&&(t=f.parse(t));this._data.concat(t);this._nDataBytes+=t.sigBytes},_process:function t(i){var n=this._data,r=n.words,a=n.sigBytes,s=this.blockSize,l=a/(4*s),l=i?e.ceil(l):e.max((l|0)-this._minBufferSize,0);i=l*s;a=e.min(4*i,a);if(i){for(var u=0;u>>2]>>>24-8*(a%4)&255)<<16|(i[a+1>>>2]>>>24-8*((a+1)%4)&255)<<8|i[a+2>>>2]>>>24-8*((a+2)%4)&255,s=0;4>s&&a+.75*s>>6*(3-s)&63))}}if(i=r.charAt(64))for(;t.length%4;){t.push(i)}return t.join("")},parse:function e(i){var n=i.length,r=this._map,a=r.charAt(64);a&&(a=i.indexOf(a),-1!=a&&(n=a));for(var a=[],o=0,s=0;s>>6-2*(s%4);a[o>>>2]|=(l|u)<<24-8*(o%4);o++}}return t.create(a,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();(function(e){function t(e,t,i,n,r,a,o){e=e+(t&i|~t&n)+r+o;return(e<>>32-a)+t}function i(e,t,i,n,r,a,o){e=e+(t&n|i&~n)+r+o;return(e<>>32-a)+t}function r(e,t,i,n,r,a,o){e=e+(t^i^n)+r+o;return(e<>>32-a)+t}function a(e,t,i,n,r,a,o){e=e+(i^(t|~n))+r+o;return(e<>>32-a)+t}for(var o=n,s=o.lib,l=s.WordArray,u=s.Hasher,s=o.algo,f=[],c=0;64>c;c++){f[c]=4294967296*e.abs(e.sin(c+1))|0}s=s.MD5=u.extend({_doReset:function e(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function e(n,o){for(var s=0;16>s;s++){var l=o+s,u=n[l];n[l]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360}var s=this._hash.words,l=n[o+0],u=n[o+1],c=n[o+2],d=n[o+3],h=n[o+4],p=n[o+5],y=n[o+6],v=n[o+7],m=n[o+8],g=n[o+9],b=n[o+10],S=n[o+11],w=n[o+12],P=n[o+13],C=n[o+14],_=n[o+15],k=s[0],D=s[1],x=s[2],T=s[3],k=t(k,D,x,T,l,7,f[0]),T=t(T,k,D,x,u,12,f[1]),x=t(x,T,k,D,c,17,f[2]),D=t(D,x,T,k,d,22,f[3]),k=t(k,D,x,T,h,7,f[4]),T=t(T,k,D,x,p,12,f[5]),x=t(x,T,k,D,y,17,f[6]),D=t(D,x,T,k,v,22,f[7]),k=t(k,D,x,T,m,7,f[8]),T=t(T,k,D,x,g,12,f[9]),x=t(x,T,k,D,b,17,f[10]),D=t(D,x,T,k,S,22,f[11]),k=t(k,D,x,T,w,7,f[12]),T=t(T,k,D,x,P,12,f[13]),x=t(x,T,k,D,C,17,f[14]),D=t(D,x,T,k,_,22,f[15]),k=i(k,D,x,T,u,5,f[16]),T=i(T,k,D,x,y,9,f[17]),x=i(x,T,k,D,S,14,f[18]),D=i(D,x,T,k,l,20,f[19]),k=i(k,D,x,T,p,5,f[20]),T=i(T,k,D,x,b,9,f[21]),x=i(x,T,k,D,_,14,f[22]),D=i(D,x,T,k,h,20,f[23]),k=i(k,D,x,T,g,5,f[24]),T=i(T,k,D,x,C,9,f[25]),x=i(x,T,k,D,d,14,f[26]),D=i(D,x,T,k,m,20,f[27]),k=i(k,D,x,T,P,5,f[28]),T=i(T,k,D,x,c,9,f[29]),x=i(x,T,k,D,v,14,f[30]),D=i(D,x,T,k,w,20,f[31]),k=r(k,D,x,T,p,4,f[32]),T=r(T,k,D,x,m,11,f[33]),x=r(x,T,k,D,S,16,f[34]),D=r(D,x,T,k,C,23,f[35]),k=r(k,D,x,T,u,4,f[36]),T=r(T,k,D,x,h,11,f[37]),x=r(x,T,k,D,v,16,f[38]),D=r(D,x,T,k,b,23,f[39]),k=r(k,D,x,T,P,4,f[40]),T=r(T,k,D,x,l,11,f[41]),x=r(x,T,k,D,d,16,f[42]),D=r(D,x,T,k,y,23,f[43]),k=r(k,D,x,T,g,4,f[44]),T=r(T,k,D,x,w,11,f[45]),x=r(x,T,k,D,_,16,f[46]),D=r(D,x,T,k,c,23,f[47]),k=a(k,D,x,T,l,6,f[48]),T=a(T,k,D,x,v,10,f[49]),x=a(x,T,k,D,C,15,f[50]),D=a(D,x,T,k,p,21,f[51]),k=a(k,D,x,T,w,6,f[52]),T=a(T,k,D,x,d,10,f[53]),x=a(x,T,k,D,b,15,f[54]),D=a(D,x,T,k,u,21,f[55]),k=a(k,D,x,T,m,6,f[56]),T=a(T,k,D,x,_,10,f[57]),x=a(x,T,k,D,y,15,f[58]),D=a(D,x,T,k,P,21,f[59]),k=a(k,D,x,T,h,6,f[60]),T=a(T,k,D,x,S,10,f[61]),x=a(x,T,k,D,c,15,f[62]),D=a(D,x,T,k,g,21,f[63]);s[0]=s[0]+k|0;s[1]=s[1]+D|0;s[2]=s[2]+x|0;s[3]=s[3]+T|0},_doFinalize:function t(){var i=this._data,n=i.words,r=8*this._nDataBytes,a=8*i.sigBytes;n[a>>>5]|=128<<24-a%32;var o=e.floor(r/4294967296);n[(a+64>>>9<<4)+15]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;n[(a+64>>>9<<4)+14]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360;i.sigBytes=4*(n.length+1);this._process();i=this._hash;n=i.words;for(r=0;4>r;r++){a=n[r],n[r]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360}return i},clone:function e(){var t=u.clone.call(this);t._hash=this._hash.clone();return t}});o.MD5=u._createHelper(s);o.HmacMD5=u._createHmacHelper(s)})(Math);(function(){var e=n,t=e.lib,i=t.Base,r=t.WordArray,t=e.algo,a=t.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:t.MD5,iterations:1}),init:function e(t){this.cfg=this.cfg.extend(t)},compute:function e(t,i){for(var n=this.cfg,a=n.hasher.create(),o=r.create(),s=o.words,l=n.keySize,n=n.iterations;s.length>>2]&255}};i.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:d}),reset:function e(){u.reset.call(this);var t=this.cfg,i=t.iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=t.createEncryptor;else n=t.createDecryptor,this._minBufferSize=1;this._mode=n.call(t,this,i&&i.words)},_doProcessBlock:function e(t,i){this._mode.processBlock(t,i)},_doFinalize:function e(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var i=this._process(!0)}else i=this._process(!0),t.unpad(i);return i},blockSize:4});var h=i.CipherParams=r.extend({init:function e(t){this.mixIn(t)},toString:function e(t){return(t||this.formatter).stringify(this)}}),f=(t.format={}).OpenSSL={stringify:function e(t){var i=t.ciphertext;t=t.salt;return(t?a.create([1398893684,1701076831]).concat(t).concat(i):i).toString(s)},parse:function e(t){t=s.parse(t);var i=t.words;if(1398893684==i[0]&&1701076831==i[1]){var n=a.create(i.slice(2,4));i.splice(0,4);t.sigBytes-=16}return h.create({ciphertext:t,salt:n})}},p=i.SerializableCipher=r.extend({cfg:r.extend({format:f}),encrypt:function e(t,i,n,r){r=this.cfg.extend(r);var a=t.createEncryptor(n,r);i=a.finalize(i);a=a.cfg;return h.create({ciphertext:i,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function e(t,i,n,r){r=this.cfg.extend(r);i=this._parse(i,r.format);return t.createDecryptor(n,r).finalize(i.ciphertext)},_parse:function e(t,i){return"string"==typeof t?i.parse(t,this):t}}),t=(t.kdf={}).OpenSSL={execute:function e(t,i,n,r){r||(r=a.random(8));t=l.create({keySize:i+n}).compute(t,r);n=a.create(t.words.slice(i),4*n);t.sigBytes=4*i;return h.create({key:t,iv:n,salt:r})}},y=i.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:t}),encrypt:function e(t,i,n,r){r=this.cfg.extend(r);n=r.kdf.execute(n,t.keySize,t.ivSize);r.iv=n.iv;t=p.encrypt.call(this,t,i,n.key,r);t.mixIn(n);return t},decrypt:function e(t,i,n,r){r=this.cfg.extend(r);i=this._parse(i,r.format);n=r.kdf.execute(n,t.keySize,t.ivSize,i.salt);r.iv=n.iv;return p.decrypt.call(this,t,i,n.key,r)}})}();(function(){for(var e=n,t=e.lib.BlockCipher,i=e.algo,r=[],a=[],o=[],s=[],l=[],u=[],f=[],c=[],d=[],h=[],p=[],y=0;256>y;y++){p[y]=128>y?y<<1:y<<1^283}for(var v=0,m=0,y=0;256>y;y++){var g=m^m<<1^m<<2^m<<3^m<<4,g=g>>>8^g&255^99;r[v]=g;a[g]=v;var b=p[v],S=p[b],w=p[S],P=257*p[g]^16843008*g;o[v]=P<<24|P>>>8;s[v]=P<<16|P>>>16;l[v]=P<<8|P>>>24;u[v]=P;P=16843009*w^65537*S^257*b^16843008*v;f[g]=P<<24|P>>>8;c[g]=P<<16|P>>>16;d[g]=P<<8|P>>>24;h[g]=P;v?(v=b^p[p[p[w^b]]],m^=p[p[m]]):v=m=1}var C=[0,1,2,4,8,16,32,64,128,27,54],i=i.AES=t.extend({_doReset:function e(){for(var t=this._key,i=t.words,n=t.sigBytes/4,t=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],o=0;o>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[s&255]):(s=s<<8|s>>>24,s=r[s>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[s&255],s^=C[o/n|0]<<24);a[o]=a[o-n]^s}}i=this._invKeySchedule=[];for(n=0;nn||4>=o?s:f[r[s>>>24]]^c[r[s>>>16&255]]^d[r[s>>>8&255]]^h[r[s&255]]}},encryptBlock:function e(t,i){this._doCryptBlock(t,i,this._keySchedule,o,s,l,u,r)},decryptBlock:function e(t,i){var n=t[i+1];t[i+1]=t[i+3];t[i+3]=n;this._doCryptBlock(t,i,this._invKeySchedule,f,c,d,h,a);n=t[i+1];t[i+1]=t[i+3];t[i+3]=n},_doCryptBlock:function e(t,i,n,r,a,o,s,l){for(var u=this._nRounds,f=t[i]^n[0],c=t[i+1]^n[1],d=t[i+2]^n[2],h=t[i+3]^n[3],p=4,y=1;y>>24]^a[c>>>16&255]^o[d>>>8&255]^s[h&255]^n[p++],m=r[c>>>24]^a[d>>>16&255]^o[h>>>8&255]^s[f&255]^n[p++],g=r[d>>>24]^a[h>>>16&255]^o[f>>>8&255]^s[c&255]^n[p++],h=r[h>>>24]^a[f>>>16&255]^o[c>>>8&255]^s[d&255]^n[p++],f=v,c=m,d=g}v=(l[f>>>24]<<24|l[c>>>16&255]<<16|l[d>>>8&255]<<8|l[h&255])^n[p++];m=(l[c>>>24]<<24|l[d>>>16&255]<<16|l[h>>>8&255]<<8|l[f&255])^n[p++];g=(l[d>>>24]<<24|l[h>>>16&255]<<16|l[f>>>8&255]<<8|l[c&255])^n[p++];h=(l[h>>>24]<<24|l[f>>>16&255]<<16|l[c>>>8&255]<<8|l[d&255])^n[p++];t[i]=v;t[i+1]=m;t[i+2]=g;t[i+3]=h},keySize:8});e.AES=t._createHelper(i)})();t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var i=0;i>>JS AudioRenderer.js load finish!")}}}}if(!Qe){Qe=true;var c=document.createElement("script");c.type="text/javascript";c.src=l.szBasePath+"SuperRender_10.js";var d=document.getElementsByTagName("head")[0];d.appendChild(c);c.onload=c.onreadystatechange=function(){if(!this.readyState||this.readyState==="loaded"||this.readyState==="complete"){if(et){console.log(">>>JS SuperRender_10.js load finish!")}}}}this.convertErrorCode=function(e){switch(e){case 1:return o;case 98:return a;default:return e}};this.arrayBufferCopy=function(e){var t=e.byteLength;var i=new Uint8Array(t);var n=new Uint8Array(e);var r=0;for(r=0;r>>JS inputDataFun over!")}e=new Uint8Array(1);t=new Uint8Array(e);var n={command:"InputData",data:t.buffer,dataSize:0};l.decodeWorker.postMessage(n,[n.data])}else{if(l.bPlay&&(!l.bPause||l.bOnebyOne)||this.bOnlyPlaySound){while(l.aInputDataLens.length>0){i+=l.aInputDataLens.shift();if(i>l.iInputDataLen){break}}e=l.aInputDataBuffer.splice(0,i);if(et){console.log(">>>JS inputDataFun-len:%d",i)}t=new Uint8Array(e);var n={command:"InputData",data:t.buffer,dataSize:i};l.decodeWorker.postMessage(n,[n.data])}}e=null;t=null};this.getPic=function(e,t){if(this.decodeWorker==null||this.oSuperRender==null){return s}if(!this.bPlay){return s}if(e&&typeof e==="function"){this.dataCallBackFun=e}else{return a}if(0===this.iZoomNum){this.stYUVRect.left=0;this.stYUVRect.top=0;this.stYUVRect.right=0;this.stYUVRect.bottom=0}else{if(0===this.iCanvasWidth||0===this.iCanvasHeight){this.stYUVRect.left=0;this.stYUVRect.top=0;this.stYUVRect.right=0;this.stYUVRect.bottom=0}else{var i=this.nWidth/this.iCanvasWidth;var n=this.nHeight/this.iCanvasHeight;this.stYUVRect.left=Math.round(this.stDisplayRect.left*i);this.stYUVRect.top=Math.round(this.stDisplayRect.top*n);this.stYUVRect.right=Math.round(this.stDisplayRect.right*i);this.stYUVRect.bottom=Math.round(this.stDisplayRect.bottom*n)}if(this.stYUVRect.right-this.stYUVRect.left<32||this.stYUVRect.bottom-this.stYUVRect.top<32){return a}}if(this.aDisplayBuf==null){return s}var r=this.arrayBufferCopy(this.aDisplayBuf);var l={command:t,data:r.buffer,width:this.nWidth,height:this.nHeight,rect:this.stYUVRect};if(et){console.log(">>>JS capture nWidth = %d,nWidth = %d",this.nWidth,this.nHeight)}this.decodeWorker.postMessage(l,[l.data]);return o};this.createWorker=function(e){if(window.Worker){if(this.decodeWorker==null){this.decodeWorker=new Worker(l.szBasePath+"DecodeWorker.js");if(this.decodeWorker==null){return V}}this.decodeWorker.onmessage=function(t){var i=null;var n=t.data;switch(n.function){case"printLog":console.log("print JSPlayerSDK log failed");break;case"loaded":i="loaded";e.setCallBack(e,"loaded",0,0,true);break;case"SetStreamOpenMode":i="SetStreamOpenMode";break;case"OpenStream":i="OpenStream";if(1===n.errorCode){l.bOpenStream=true;return}break;case"InputData":i="InputData";if(n.errorCode===h){l.bIsInputBufOver=true;l.inputDataFun();if(et){console.log(">>>JS InputData PLAYM4_BUF_OVER")}}if(n.errorCode===E){l.bIsInputBufOver=false;if(et){console.log(">>>JS InputData PLAYM4_NEED_MORE_DATA")}}break;case"GetFrameData":i="GetFrameData";if(!l.bOnlyPlaySound){if(et){console.log(">>>JS mainthread display GetFrameData 1-1")}if(n.data!=null&&n.frameInfo!=null){var r=n.frameInfo.width;var s=n.frameInfo.height}if(!l.bPlay){return}if(!l.bIsFirstFrame&&n.errorCode===E){l.bIsInputBufOver=false;setTimeout(l.inputDataFun(),5);break}else if(l.bIsInputBufOver){l.inputDataFun()}else{if(n.type==="videoType"){if(l.aInputDataLens.length>0&&l.bIsInput){l.inputDataFun();l.bIsInput=false}else{l.bIsGetYUV=true}l.bIsFirstFrame=false}}}if(et){console.log(">>>JS mainthread display GetFrameData bVisibility:"+l.bVisibility)}if(l.bVisibility){if(o===n.errorCode){switch(n.type){case"videoType":if(et){console.log(">>>JS mainthread display GetFrameData type:"+n.type)}if(n.data==null||n.frameInfo==null){return a}if(l.DecCallBackFun!=null){if(et){console.log(">>>JS MainThread-GetYUVData")}l.DecInfoYUV.height=n.frameInfo.height;l.DecInfoYUV.width=n.frameInfo.width;l.DecInfoYUV.frameNum=n.frameInfo.frameNum;l.DecInfoYUV.yuvData=new Uint8Array(n.data);l.DecCallBackFun(l.DecInfoYUV)}l.bIsFirstFrame=false;e.nWidth=n.frameInfo.width;e.nHeight=n.frameInfo.height;var u=new Object;u.data=n.data;u.osdTime=n.osd;u.nWidth=n.frameInfo.width;u.nHeight=n.frameInfo.height;u.frameNum=n.frameInfo.frameNum;u.timeStamp=n.frameInfo.timeStamp;if(e.bWriteYUVData){var f=new Uint8Array(n.data);var c=e.aVideoYUVBuffer.length;for(var d=0,p=f.length;d=qe){var y=new Uint8Array(e.aVideoYUVBuffer);e.downloadFile(y,"videoYUV.data");e.aVideoYUVBuffer.splice(0,e.aVideoYUVBuffer.length);e.bWriteYUVData=false;e.iYUV10size=0;y=null}if(et){console.log(">>>JS mainthread getVideoInfo Width:"+u.nWidth+",height:"+u.nHeight+",frameNum:"+u.frameNum)}e.aVideoFrameBuffer.push(u);u=null;var v=e.aVideoFrameBuffer.length;if(v>ze){if(et){console.log(">>>JS render loose frame iYUVNum:%d",v)}if(!e.bOnebyOne){e.aVideoFrameBuffer.splice(0,Oe)}}if(e.SetPlayPositionFlag&&e.bSetPlayPositionType===Je&&(n.frameInfo.frameNum===e.iFrameNumOrTime||n.frameInfo.timeStamp===e.iFrameNumOrTime)){e.setCallBack(e,"SetFrameNum",0,0,false);e.bIsFirstFrame=true;break}if(e.bOnebyOne){if(e.aVideoFrameBuffer.length>=Ae){e.setCallBack(e,"OnebyOne",0,0,false);e.bIsFirstFrame=true;break}}break;case"audioType":if(et){console.log(">>>JS mainthread display GetFrameData 2-3 type:"+n.type+".bOnlyPlaySound:"+l.bOnlyPlaySound)}if(e.bPlaySound&&!e.bPlayRateChange||l.bOnlyPlaySound){if(et){console.log(">>>JS mainthread display GetFrameData 2-4 type"+n.type+"bOnlyPlaySound:"+l.bOnlyPlaySound)}if(l.PCMCallBackFun!=null){if(et){console.log(">>>JS MainThread-GetYUVData")}l.DecInfoPCM.sampleRate=n.frameInfo.samplesPerSec;l.DecInfoPCM.channel=n.frameInfo.channels;l.DecInfoPCM.bitsPerSample=n.frameInfo.bitsPerSample;l.DecInfoPCM.pcmData=new Uint8Array(n.data);l.DecInfoPCM.length=l.DecInfoPCM.pcmData.length;l.PCMCallBackFun(l.DecInfoPCM)}var f=new Uint8Array(n.data);var c=e.aAudioBuffer.length;for(var d=0,p=f.length;d>>JS play sound 1 iAudioBufferNum:%d, BufferLen:%d",e.iAudioBufferSize,e.aAudioBuffer.length)}if(e.bWritePCMData){var f=new Uint8Array(n.data);var c=e.aAudioPCMBuffer.length;for(var d=0,p=f.length;d=He){var m=new Uint8Array(e.aAudioPCMBuffer);e.downloadFile(m,"audioPCM.data");e.aAudioPCMBuffer.splice(0,e.aAudioPCMBuffer.length);e.bWritePCMData=false;e.iAudioBuffer500Size=0;m=null}if(e.iAudioBufferSize>=Ie){if(et){console.log(">>>JS play sound 2 iAudioBufferNum:%d, BufferLen:%d",e.iAudioBufferSize,e.aAudioBuffer.length)}e.audioRenderer.Play(e.aAudioBuffer,e.aAudioBuffer.length,n.frameInfo);if(et){console.log(">>>JS mainthread display Audio push 3 sysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds())}e.aAudioBuffer.splice(0,e.aAudioBuffer.length);e.aAudioBuffer.length=0;e.iAudioBufferSize=0}}break;case"privateType":if(et){console.log(">>>JS mainthread display GetFrameData 2-5 type"+n.type+"bOnlyPlaySound:"+l.bOnlyPlaySound)}break;default:if(et){console.log(">>>JS mainthread display GetFrameData 2-6 type:"+n.type+",bOnlyPlaySound:"+l.bOnlyPlaySound)}break}}else{if(et){console.log(">>>JS mainthread GetFrameData is not Ok,errorCode:"+n.errorCode)}}}break;case"GetRawData":i="GetRawData";if(e.bWriteRawData){var b=new Uint8Array(n.data);var S=e.aRawDataBuffer.length;for(var d=0,p=b.length;d=Ve){var w=new Uint8Array(e.aRawDataBuffer);e.downloadFile(w,"rawBuffer.data");e.aRawDataBuffer.splice(0,e.aRawDataBuffer.length);e.bWriteRawData=false;e.iRawDataSize=0;w=null}break;case"PlaySound":i="PlaySound";break;case"SetPlayPosition":console.log(">>>JS mainthread SetPlayPosition error,errorCode:"+n.errorCode);break;case"GetJPEG":i="GetJPEG";var P=n.data;e.dataCallBackFun(P);break;case"GetBMP":i="GetBMP";var C=n.data;e.dataCallBackFun(C);break;case"GetAudEncodeData":if(et){console.log(">>>JS MainThread-GetAudEncodeData 1")}i="GetAudEncodeData";if(o===n.errorCode){if(l.AudEncodeDataCBFun!=null){if(et){console.log(">>>JS MainThread-GetAudEncodeData 1-2")}l.AudEncodeDataCBFun(new Uint8Array(n.data))}if(this.bWriteAudEnc){var f=new Uint8Array(n.data);var c=e.aAudioEncBuffer.length;for(var d=0,p=f.length;d=je){e.downloadFile(e.aAudioEncBuffer,audioEnc.data);this.bWriteAudEnc=false;e.iAudioEncBufferSize=0}}else{if(et){console.log(">>>JS MainThread-GetAudEncodeData 2 err")}}break;default:break}if("GetFrameData"!==i||"GetAudEncodeData"!==i){e.setCallBack(e,i,0,e.convertErrorCode(n.errorCode),true)}else{if(g===n.errorCode||ae===n.errorCode||re===n.errorCode){e.setCallBack(e,i,0,e.convertErrorCode(n.errorCode),true)}}}}};this.createWorker(l);this.draw=function(){if(l.bPlay){if(!l.bPause||l.bOnebyOne){requestAnimationFrame(l.draw);var e=l.aVideoFrameBuffer.length;if(l.YUVBufSizeCBFun!=null){l.YUVBufSizeCBFun(e)}if(l.bOnebyOne){if(e<=Re){l.setCallBack(l,"OnebyOne",0,E,true)}if(e<=l.FrameForwardLen+1){l.setCallBack(l,"OnebyOne",0,E,true);return}else{var t=l.FrameForwardLen;while(t>1){var i=l.aVideoFrameBuffer.shift();t--}}l.bOnebyOne=false}if(et){console.log(">>>JS Draw aVideoFrameBuffer.length == "+e)}if(e>l.YUVBufferSize){var n=l.aVideoFrameBuffer.shift();if(l.SetPlayPositionFlag){if(et){console.log(">>>JS SetPlayPositionFlag frameNumOrTime:"+l.iFrameNumOrTime+",currentFrameNum:"+n.frameNum)}if(n.frameNum!=l.iFrameNumOrTime){if(et){console.log(">>>JS frameNum!= frameNumOrTime:"+n.frameNum)}return}if(l.bSetPlayPositionType===Je){l.bPause=true}l.SetPlayPositionFlag=false}if(et){console.log(">>>after display frameNum:"+n.frameNum)}l.aDisplayBuf=n.data;var r=new Uint8Array(l.aDisplayBuf);if((l.nWidth==1920&&l.nHeight==1088||l.nWidth==2688&&l.nHeight==1520)&&!l.bDisRect){var a=document.getElementById(l.sCanvasId).getBoundingClientRect();var o=a.width;var s=a.height-8;l.stDisRect={top:0,left:0,right:o,bottom:s};l.oSuperRender.SR_SetDisplayRect(l.stDisRect)}else if(l.nWidth==640&&l.nHeight==368&&!l.bDisRect){var a=document.getElementById(l.sCanvasId).getBoundingClientRect();var o=a.width;var s=Math.floor(a.height*360/368);l.stDisRect={top:0,left:0,right:o,bottom:s};l.oSuperRender.SR_SetDisplayRect(l.stDisRect)}else if(l.nWidth==368&&l.nHeight==640&&!l.bDisRect){var a=document.getElementById(l.sCanvasId).getBoundingClientRect();var o=Math.floor(a.width*360/368);var s=a.height;l.stDisRect={top:0,left:0,right:o,bottom:s};l.oSuperRender.SR_SetDisplayRect(l.stDisRect)}if(et){console.log(">>>JS SR_DisplayFrameData 1 nWidth:%d, nHeight:%d, nWidth1:%d, nHeight1:%d",n.nWidth,n.nHeight,l.nWidth,l.nHeight)}l.oSuperRender.SR_DisplayFrameData(n.nWidth,n.nHeight,r);if(l.DisplayCallBackFun!=null){if(et){console.log(">>>JS MainThread-DisplayCallBackFun")}l.DisplayInfoYUV.height=n.nHeight;l.DisplayInfoYUV.width=n.nWidth;l.DisplayInfoYUV.frameNum=n.frameNum;l.DisplayInfoYUV.yuvData=new Uint8Array(r);l.DisplayCallBackFun(l.DisplayInfoYUV)}if(et&&l.bOnebyOne){console.log("OnebyOne frameNum:"+n.frameNum)}if(et){console.log(">>>JS SR_DisplayFrameData 2 nWidth:%d, nHeight:%d, nWidth1:%d, nHeight1:%d",n.nWidth,n.nHeight,l.nWidth,l.nHeight)}r=null;l.szOSDTime=n.osdTime;n=null}else{l.setCallBack(l,"Play",0,E,true)}}}else{if(!l.bPlay){if(et){console.log(">>>JS mainThread stop play jsplaySDKInterface")}l.aVideoFrameBuffer.splice(0,l.aVideoFrameBuffer.length);l.aAudioBuffer.splice(0,l.aAudioBuffer.length)}}};this.checkAudioType=function(e){var t=function e(t,i){var n=t[i]&255|(t[i+1]&255)<<8|(t[i+2]&255)<<16|(t[i+3]&255)<<24;return n};var i=[e[12],e[13],0,0];var n=t(i,0);switch(n){case Se.AUDIO_G711_A:case Se.AUDIO_G711_U:case Se.AUDIO_G722_1:case Se.AUDIO_G726_2:case Se.AUDIO_G726_A:case Se.AUDIO_G726_U:case Se.AUDIO_AACLC:case Se.AUDIO_MPEG:return o;default:return g}}}n(e,[{key:"PlayM4_SetCurrentFrameNum",value:function e(t,i){if(t<0){return a}this.PlayM4_SetPlayPosition(0,t,i);return o}},{key:"PlayM4_SetPlayPosition",value:function e(t,i,n){this.SetPlayPositionFlag=true;this.iFrameNumOrTime=i;this.bSetPlayPositionType=n;this.decodeWorker.postMessage({command:"SetPlayPosition",data:this.iFrameNumOrTime,type:t});this.aAudioBuffer.splice(0,this.aAudioBuffer.length);this.iAudioBufferSize=0;this.aVideoFrameBuffer.splice(0,this.aVideoFrameBuffer.length);this.aInputDataBuffer.splice(0,this.aInputDataBuffer.length);this.aInputDataLens.splice(0,this.aInputDataLens.length);this.bIsFirstFrame=true;this.bIsInputBufOver=false}},{key:"PlayM4_OpenPlayerSDKPrintLog",value:function e(t){if(t===true){et=true;this.decodeWorker.postMessage({command:"printLog",data:t})}else{et=false;this.decodeWorker.postMessage({command:"printLog",data:t})}return o}},{key:"PlayM4_DownloadYUVdata",value:function e(){this.bWriteYUVData=true;return o}},{key:"PlayM4_DownloadPCMdata",value:function e(){this.bWritePCMData=true;return o}},{key:"PlayM4_SetDecCallBack",value:function e(t){if(et){console.log(">>>JS MainThread-PlayM4_SetDecCallBack")}if(t&&typeof t==="function"){this.DecCallBackFun=t;return o}else{return a}}},{key:"PlayM4_SetDisplayCallBack",value:function e(t){if(et){console.log(">>>JS MainThread-PlayM4_SetDisplayCallBack")}if(t&&typeof t==="function"){this.DisplayCallBackFun=t;return o}else{return a}}},{key:"PlayM4_SetPCMCallBack",value:function e(t){if(et){console.log(">>>JS MainThread-PlayM4_SetDisplayCallBack")}if(t&&typeof t==="function"){this.PCMCallBackFun=t;return o}else{return a}}},{key:"PlayM4_SetStreamOpenMode",value:function e(t){if(t==null||t===undefined){return a}if(t!==xe&&t!==Te){return a}this.streamOpenMode=t;if(et){console.log(">>>JS PlayM4_SetStreamOpenMode nMode:"+t)}return o}},{key:"PlayM4_OpenStream",value:function e(t,i,n){if(et){console.log(">>>JS PlayM4_OpenStream 1 nSysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds())}if(this.decodeWorker==null){return s}if(t==null||i<=0||n<=0){return a}this.bPlay=false;this.bPause=false;this.bOnebyOne=false;this.bIsFirstFrame=true;this.bIsGetYUV=false;this.bIsInput=false;var r=this.checkAudioType(t);if(o!==r){this.bAudioTypeSupport=false}else{this.bAudioTypeSupport=true}this.decodeWorker.postMessage({command:"SetStreamOpenMode",data:this.streamOpenMode});if(et){console.log(">>>JS PlayM4_OpenStream 2 nSysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds())}this.decodeWorker.postMessage({command:"OpenStream",data:t,dataSize:i,bufPoolSize:n});if(et){console.log(">>>JS PlayM4_OpenStream 3 nSysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds())}this.bOpenStream=true;return o}},{key:"PlayM4_CloseStream",value:function e(){if(et){console.log(">>>JS PlayM4_CloseStream 1 nSysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds())}if(this.decodeWorker===null||this.bOpenStream===false){return s}this.bOnlyPlaySound=false;this.PlayM4_Stop();this.decodeWorker.postMessage({command:"CloseStream"});if(this.oSuperRender!==null){this.oSuperRender.SR_Destroy();this.oSuperRender=null}if(this.audioRenderer!==null){this.audioRenderer.Stop();this.audioRenderer=null}this.aAudioBuffer.splice(0,this.aAudioBuffer.length);this.aVideoFrameBuffer.splice(0,this.aVideoFrameBuffer.length);this.aInputDataBuffer.splice(0,this.aInputDataBuffer.length);this.aInputDataLens.splice(0,this.aInputDataLens.length);this.aAudioEncBuffer.splice(0,this.aAudioEncBuffer.length);this.aVideoYUVBuffer.splice(0,this.aVideoYUVBuffer.length);this.aAudioPCMBuffer.splice(0,this.aAudioPCMBuffer.length);this.aRawDataBuffer.splice(0,this.aRawDataBuffer.length);this.bOpenStream=false;this.iAudioBufferSize=0;this.szOSDTime=null;return o}},{key:"PlayM4_Destroy",value:function e(){if(et){console.log(">>>JS PlayM4_Destroy 1 nSysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds())}if(this.decodeWorker===null){return o}this.PlayM4_CloseStream();this.decodeWorker.terminate();this.decodeWorker=null;return o}},{key:"PlayM4_InputData",value:function e(t,i){if(this.decodeWorker===null||this.bOpenStream===false){return s}var n=this.aInputDataBuffer.length;if(i===4){var r=new Uint8Array(t.buffer);if(r[0]===1&&r[1]===2&&r[2]===3&&r[3]===4){if(et){console.log(">>>JS PlaySDKInterface PlayM4_InputData:intput end")}if(this.bIsFirstFrame){if(et){console.log(">>>JS inputData FirstTime")}this.inputDataFun()}else{if(this.bIsGetYUV){this.inputDataFun()}else{this.bIsInput=true}}r=null;return o}}if(n+i>this.iInputMaxBufSize){console.log("input over");this.inputDataFun();return h}var a=null;var l=i;switch(this.streamOpenMode){case Te:a=new Uint8Array(t.buffer);this.aInputDataLens.push(i);break;case xe:l=i+4;var u=new Uint32Array([i]);var f=new Uint8Array(u.buffer);a=new Uint8Array(l);a.set(f,0);a.set(t,4);u=null;f=null;this.aInputDataLens.push(i+4);break;default:return g}for(var c=0;c>>JS PlayM4_InputData 1: nSize:%d, iInputBufLen:%d, iInputMaxBufSize;%d",i,this.aInputDataBuffer.length,this.iInputMaxBufSize)}if(this.bOnlyPlaySound){if(et){console.log(">>>JS PlayM4_InputData: OnlyPlaySound")}this.inputDataFun()}else{if(this.bIsFirstFrame){if(et){console.log(">>>JS PlayM4_InputData is firstFrame")}this.inputDataFun()}else{if(this.bIsGetYUV){if(et){console.log(">>>JS PlayM4_InputData is GetYUV")}this.inputDataFun()}else{if(et){console.log(">>>JS PlayM4_InputData 1-3 sysTime:"+((new Date).getMonth()+1)+"-"+(new Date).getDate()+" "+(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds())}this.bIsInput=true}}}return o}},{key:"PlayM4_Play",value:function e(t){if(this.decodeWorker===null){return s}if(et){console.log(">>>JS PlayM4_Play canvasID: "+t)}if(t===null){this.bOnlyPlaySound=true;this.sCanvasId=null}else{if(typeof t!=="string"){return a}if(this.bOnebyOne){this.bPlayRateChange=false;this.bOnebyOne=false;this.bPause=false;this.draw()}if(this.bPlay){return o}if(this.oSuperRender==null){this.oSuperRender=new SuperRender(t,this.szBasePath);if(this.oSuperRender==null){return J}}this.sCanvasId=t;this.bPlay=true;this.bPause=false;this.bOnebyOne=false;this.bPlaySound=false;this.bPlayRateChange=false;this.bOnlyPlaySound=false;this.draw()}if(this.audioRenderer==null){this.audioRenderer=new AudioRenderer;if(this.audioRenderer==null){return J}}return o}},{key:"PlayM4_Stop",value:function e(){if(et){console.log(">>>JS PlayM4_Stop 1")}if(this.decodeWorker==null||this.oSuperRender==null){return s}if(!this.bPlay){return s}if(this.bPlaySound){this.PlayM4_StopSound();this.bPlaySound=true}this.bPlay=false;this.bOnebyOne=false;this.bPause=false;this.oSuperRender.SR_SetDisplayRect(null);this.iZoomNum=0;this.bDisRect=false;this.oSuperRender.SR_DisplayFrameData(this.nWidth,this.nHeight,null);if(et){console.log(">>>JS PlayM4_Stop 2")}return o}},{key:"PlayM4_PlayRate",value:function e(t){if(this.decodeWorker==null){return s}if(t===1){this.bPlayRateChange=false}else{this.bPlayRateChange=true}if(t<1){t=1}this.iInputDataLen=t*Ue;return o}},{key:"PlayM4_Pause",value:function e(t){if(this.decodeWorker==null||this.oSuperRender==null){return s}if(!this.bPlay){return s}if(this.bOnebyOne){return s}if(typeof t!=="boolean"){return a}this.bPause=t;this.bIsFirstFrame=true;if(et){console.log(">>>JS PlayM4_Pause");console.log(t)}if(t){if(this.bPlaySound){this.PlayM4_StopSound();this.bPlaySound=true}}else{if(this.bPlaySound){this.PlayM4_PlaySound()}this.draw()}return o}},{key:"PlayM4_OneByOne",value:function e(t){if(this.decodeWorker==null||this.oSuperRender==null){return s}if(!this.bPlay){return s}if(t>10||t<=0){return a}this.iInputDataLen=Ue;this.FrameForwardLen=t;this.bPause=true;this.bOnebyOne=true;this.bIsFirstFrame=true;this.draw();return o}},{key:"PlayM4_PlaySound",value:function e(t){if(this.decodeWorker===null||this.bOpenStream===false){return s}if(!this.bAudioTypeSupport){return g}if(t<0||t>16){return a}if(this.audioRenderer==null){this.audioRenderer=new AudioRenderer;if(this.audioRenderer==null){return J}}this.audioRenderer.SetWndNum(t);this.bPlaySound=true;return o}},{key:"PlayM4_StopSound",value:function e(){if(this.decodeWorker==null||this.audioRenderer==null){return s}if(!this.bPlaySound){return s}this.bPlaySound=false;return o}},{key:"PlayM4_SetDisplayBuf",value:function e(t){if(this.decodeWorker==null){return s}if(t<=0){return a}this.YUVBufferSize=t;return o}},{key:"PlayM4_SetSecretKey",value:function e(t,i,n){if(this.decodeWorker==null||this.bOpenStream===false){return s}if(i==null){return a}if(Pe===t){if(128===n){if(i==null||i===undefined){return a}}else{return a}}else if(we===t){}else{return a}this.decodeWorker.postMessage({command:"SetSecretKey",data:i,nKeyType:t,nKeyLen:n});return o}},{key:"PlayM4_SetDecodeFrameType",value:function e(t){if(this.decodeWorker==null||this.oSuperRender==null){return s}if(t!==We&&t!==Ee){return a}if(et){console.log(">>>JS PlayM4_SetDecodeFrameType");console.log(t)}this.nDecFrameType=t;this.decodeWorker.postMessage({command:"SetDecodeFrameType",data:t});return o}},{key:"PlayM4_SetIFrameDecInterval",value:function e(t){if(this.nDecFrameType!==Ee){return s}if(t<0){return a}this.decodeWorker.postMessage({command:"SetIFrameDecInterval",data:t});return o}},{key:"PlayM4_SetDisplayRegion",value:function e(t,i){if(et){console.log("PlayM4_SetDisplayRegion ")}if(this.decodeWorker===null||this.bPlay===false||this.oSuperRender===null){return s}if(this.canvasId===null){return s}if(i===true){if(t===null||t===undefined){if(et){console.log("PlayM4_SetDisplayRegion: dipalyRect is null")}return a}if(typeof t.left==="number"&&typeof t.top==="number"&&typeof t.right==="number"&&typeof t.bottom==="number"){if(t.right<0||t.left<0||t.top<0||t.bottom<0){if(et){console.log("PlayM4_SetDisplayRegion: dipalyRect rectParameter is wrong")}return a}var n=t.left;var r=t.right;var l=t.top;var u=t.bottom;var f=document.getElementById(this.sCanvasId).getBoundingClientRect();this.iCanvasWidth=f.width;this.iCanvasHeight=f.height;if(r-n<16||u-l<16||r-n>this.iCanvasWidth||u-l>this.iCanvasHeight){return a}if(this.iZoomNum!==0){n=Math.round(n/this.iRatio_x)+this.stDisplayRect.left;l=Math.round(l/this.iRatio_y)+this.stDisplayRect.top;r=Math.round(r/this.iRatio_x)+this.stDisplayRect.left;u=Math.round(u/this.iRatio_y)+this.stDisplayRect.top}this.stDisplayRect={top:l,left:n,right:r,bottom:u};this.oSuperRender.SR_SetDisplayRect(this.stDisplayRect);this.bDisRect=true;var c=r-n;var d=u-l;this.iRatio_x=this.iCanvasWidth/c;this.iRatio_y=this.iCanvasHeight/d;this.iZoomNum++}else{return a}}else{this.oSuperRender.SR_SetDisplayRect(null);this.iZoomNum=0;this.bDisRect=false}if(this.bPause||this.bOnebyOne||this.bPlayRateChange){this.oSuperRender.SR_DisplayFrameData(this.nWidth,this.nHeight,new Uint8Array(this.aDisplayBuf))}return o}},{key:"PlayM4_GetBMP",value:function e(t){return this.getPic(t,"GetBMP")}},{key:"PlayM4_GetJPEG",value:function e(t){return this.getPic(t,"GetJPEG")}},{key:"PlayM4_SetVolume",value:function e(t){if(this.decodeWorker==null){return s}if(this.audioRenderer==null){return s}if(t<0||t>100){return a}this.audioRenderer.SetVolume(t/100);return o}},{key:"PlayM4_GetVolume",value:function e(t){if(this.decodeWorker==null){return s}if(this.audioRenderer==null){return s}if(t&&typeof t==="function"){var i=this.audioRenderer.GetVolume();if(i===null){return Y}else{t(Math.round(i*10)*10);return o}}else{return a}}},{key:"PlayM4_GetOSDTime",value:function e(t){if(this.decodeWorker==null){return s}if(!this.bPlay){return s}if(t&&typeof t==="function"){t(this.szOSDTime);return o}else{return a}}},{key:"PlayM4_IsVisible",value:function e(t){this.bVisibility=t;if(et){console.log(">>>JS PlayM4_IsVisible visibility:"+t)}return o}},{key:"PlayM4_GetSdkVersion",value:function e(){return"07020139"}},{key:"PlayM4_GetBuildDate",value:function e(){return"20200409"}},{key:"PlayM4_GetInputBufSize",value:function e(){return this.aInputDataBuffer.length}},{key:"PlayM4_SetInputBufSize",value:function e(t){if(t>0){this.iInputMaxBufSize=t;return o}else{return a}}},{key:"PlayM4_GetYUVBufSize",value:function e(){return this.aVideoFrameBuffer.length}},{key:"PlayM4_GetFrameResolution",value:function e(t){if(this.decodeWorker==null){return s}if(t&&typeof t==="function"){t(this.nWidth,this.nHeight);return o}else{return a}}},{key:"PlayM4_RegisterYUVBufSizeCB",value:function e(t){if(t&&typeof t==="function"){this.YUVBufSizeCBFun=t;return o}else{return a}}},{key:"PlayM4_UnRegisterYUVBufSizeCB",value:function e(){if(this.YUVBufSizeCBFun!=null){this.YUVBufSizeCBFun=null}return o}},{key:"PlayM4_ClearCanvas",value:function e(){if(this.oSuperRender==null){return s}this.oSuperRender.SR_DisplayFrameData(this.nWidth,this.nHeight,null);return o}},{key:"PlayM4_ReleaseInputBuffer",value:function e(){if(this.aInputDataBuffer===null){return s}this.aInputDataBuffer.splice(0,this.aInputDataBuffer.length);this.aInputDataLens.splice(0,this.aInputDataLens.length);return o}},{key:"PlayM4_GetDecodeFrameType",value:function e(){return this.nDecFrameType}},{key:"PlayM4_CreateAudEncode",value:function e(t){if(et){console.log(">>>JS JSMainThread-PlayM4_CreateAudEncode")}if(this.decodeWorker==null){return ne}if(tue){return X}this.decodeWorker.postMessage({command:"CreateAudEncode",encodertype:t});return o}},{key:"PlayM4_SetAudEncodeParam",value:function e(t,i,n,r){if(et){console.log(">>>JS MainThread-PlayM4_SetAudEncodeParam:nSampleRate:%d nChannel:%d nBitRate:%d nBitWidth:%d",t,i,n,r)}if(this.decodeWorker==null){return ne}if(i!=fe||r!=he){return X}this.decodeWorker.postMessage({command:"SetAudEncodeParam",samplerate:t,channel:i,bitrate:n,bitwidth:r});return o}},{key:"PlayM4_InputAudEncodeData",value:function e(t,i){if(et){console.log(">>>JS MainThread-PlayM4_InputAudEncodeData")}if(this.decodeWorker==null){return ne}this.decodeWorker.postMessage({command:"InputAudEncodeData",data:t,dataSize:i});return o}},{key:"PlayM4_DestroyAudEncode",value:function e(){if(et){console.log(">>>JS MainThread-PlayM4_DestroyAudEncode")}if(this.decodeWorker==null){return ne}this.aAudioEncBuffer.splice(0,this.aAudioEncBuffer.length);this.iAudioEncBufferSize=0;this.decodeWorker.postMessage({command:"DestroyAudEncode"});return o}},{key:"PlayM4_GetAudioEmcBuf",value:function e(){return this.aAudioEncBuffer}},{key:"PlayM4_RegisterAudEncodeCB",value:function e(t){if(et){console.log(">>>JS MainThread-PlayM4_RegisterAudEncodeCB")}if(t&&typeof t==="function"){this.AudEncodeDataCBFun=t;return o}else{return a}}},{key:"downloadFile",value:function e(t,i){var n=t;if(!(t instanceof Blob||t instanceof File)){n=new Blob([t])}var r=window.URL.createObjectURL(n);var a=window.document.createElement("a");a.href=r;a.download=i;var o=document.createEvent("MouseEvents");o.initEvent("click",true,true);a.dispatchEvent(o)}}]);return e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.JMuxmer=undefined;var n=function(){function e(e,t){for(var i=0;i0){u.video=this.getVideoFrames(n,o);i=true}}if(t.audio){r=l.AACParser.extractAAC(t.audio);if(r.length>0){u.audio=this.getAudioFrames(r,o);i=true}}if(!i){a.error("Input object must have video and/or audio property. Make sure it is not empty and valid typed array");return}this.remuxController.remux(u)}},{key:"getVideoFrames",value:function e(t,i){var n=void 0,r=[],a=[],s=void 0,l=void 0,u=0,f=[];var c=true;var d=false;var h=undefined;try{for(var p=t[Symbol.iterator](),y;!(c=(y=p.next()).done);c=true){n=y.value;s=new o.NALU(n);r.push(s);if(s.type()===o.NALU.IDR||s.type()===o.NALU.NDR){a.push({units:r});r=[];if(this.options.clearBuffer){if(s.type()===o.NALU.IDR){f.push(this.frameCounter)}this.frameCounter++}}}}catch(e){d=true;h=e}finally{try{if(!c&&p.return){p.return()}}finally{if(d){throw h}}}if(i){l=i/a.length|0;u=i-l*a.length}else{l=this.frameDuration}a.map(function(e){e.duration=u>0?l+1:l;if(u!==0){u--}});if(this.options.clearBuffer){f=f.map(function(e){return e*l/1e3});this.keyframeCache=this.keyframeCache.concat(f)}return a}},{key:"getAudioFrames",value:function e(t,i){var n=[],r=void 0,a=void 0,o=0;var s=true;var l=false;var u=undefined;try{for(var f=t[Symbol.iterator](),c;!(s=(c=f.next()).done);s=true){r=c.value;n.push({units:r})}}catch(e){l=true;u=e}finally{try{if(!s&&f.return){f.return()}}finally{if(l){throw u}}}if(i){a=i/n.length|0;o=i-a*n.length}else{a=this.frameDuration}n.map(function(e){e.duration=o>0?a+1:a;if(o!==0){o--}});return n}},{key:"destroy",value:function e(){this.stopInterval();if(this.mediaSource){try{if(this.bufferControllers){this.mediaSource.endOfStream()}}catch(e){a.error("mediasource is not available to end "+e.message)}this.mediaSource=null}if(this.remuxController){this.remuxController.destroy();this.remuxController=null}if(this.bufferControllers){for(var t in this.bufferControllers){this.bufferControllers[t].destroy()}this.bufferControllers=null}this.node=false;this.mseReady=false;this.videoStarted=false}},{key:"createBuffer",value:function e(){if(!this.mseReady||!this.remuxController||!this.remuxController.isReady()||this.bufferControllers)return;this.bufferControllers={};for(var i in this.remuxController.tracks){var n=this.remuxController.tracks[i];if(!t.isSupported(i+'/mp4; codecs="'+n.mp4track.codec+'"')){a.error("Browser does not support codec");return false}var r=this.mediaSource.addSourceBuffer(i+'/mp4; codecs="'+n.mp4track.codec+'"');this.bufferControllers[i]=new p.default(r,i);this.sourceBuffers[i]=r;this.bufferControllers[i].on("error",this.onBufferError.bind(this))}}},{key:"startInterval",value:function e(){var t=this;this.interval=setInterval(function(){if(t.bufferControllers){t.releaseBuffer();t.clearBuffer()}},this.options.flushingTime)}},{key:"stopInterval",value:function e(){if(this.interval){clearInterval(this.interval)}}},{key:"releaseBuffer",value:function e(){for(var t in this.bufferControllers){this.bufferControllers[t].doAppend()}}},{key:"getSafeBufferClearLimit",value:function e(t){var i=this.options.mode==="audio"&&t||0,n=void 0;for(var r=0;r=t){break}n=this.keyframeCache[r]}if(n){this.keyframeCache=this.keyframeCache.filter(function(e){if(e=n})}return i}},{key:"clearBuffer",value:function e(){if(this.options.clearBuffer&&Date.now()-this.lastCleaningTime>1e4){for(var t in this.bufferControllers){var i=this.getSafeBufferClearLimit(this.node.currentTime);this.bufferControllers[t].initCleanup(i)}this.lastCleaningTime=Date.now()}}},{key:"onBuffer",value:function e(t){if(this.bufferControllers&&this.bufferControllers[t.type]){this.bufferControllers[t.type].feed(t.payload)}}},{key:"onMSEOpen",value:function e(){this.mseReady=true;if(typeof this.options.onReady==="function"){this.options.onReady();this.options.onReady=null}this.createBuffer()}},{key:"onMSEClose",value:function e(){this.mseReady=false;this.videoStarted=false}},{key:"onBufferError",value:function e(t){if(t.name=="QuotaExceeded"){this.bufferControllers[t.type].initCleanup(this.node.currentTime);return}if(this.mediaSource.sourceBuffers.length>0&&this.sourceBuffers[t.type]){this.mediaSource.removeSourceBuffer(this.sourceBuffers[t.type])}if(this.mediaSource.sourceBuffers.length==0){try{this.mediaSource.endOfStream()}catch(e){a.error("mediasource is not available to end")}}}}]);return t}(f.default);t.JMuxmer=P},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:true;var n=this.getBits(t,this.index,i);return n}},{key:"getBits",value:function e(t,i){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;if(this.bitsAvailable>>r;var o=8-r;if(o>=t){if(n){this.index+=t}return a>>o-t}else{if(n){this.index+=o}var s=t-o;return a<>>1}else{return-1*(t>>>1)}}},{key:"readBoolean",value:function e(){return this.readBits(1)===1}},{key:"readUByte",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:1;return this.readBits(t*8)}},{key:"readUShort",value:function e(){return this.readBits(16)}},{key:"readUInt",value:function e(){return this.readBits(32)}},{key:"bitsAvailable",get:function e(){return this.bitLength-this.index}}]);return e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var i=0;i0){this.tracks[s].remux(l)}}}catch(e){n=true;r=e}finally{try{if(!i&&a.return){a.return()}}finally{if(n){throw r}}}this.flush()}}]);return t}(c.default);t.default=m},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var i=0;i1?i-1:0),r=1;r>24&255;l[1]=a>>16&255;l[2]=a>>8&255;l[3]=a&255;l.set(t,4);for(o=0,a=8;o>24&255,i>>16&255,i>>8&255,i&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))}},{key:"mdia",value:function t(i){return e.box(e.types.mdia,e.mdhd(i.timescale,i.duration),e.hdlr(i.type),e.minf(i))}},{key:"mfhd",value:function t(i){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,i&255]))}},{key:"minf",value:function t(i){if(i.type==="audio"){return e.box(e.types.minf,e.box(e.types.smhd,e.SMHD),e.DINF,e.stbl(i))}else{return e.box(e.types.minf,e.box(e.types.vmhd,e.VMHD),e.DINF,e.stbl(i))}}},{key:"moof",value:function t(i,n,r){return e.box(e.types.moof,e.mfhd(i),e.traf(r,n))}},{key:"moov",value:function t(i,n,r){var a=i.length,o=[];while(a--){o[a]=e.trak(i[a])}return e.box.apply(null,[e.types.moov,e.mvhd(r,n)].concat(o).concat(e.mvex(i)))}},{key:"mvex",value:function t(i){var n=i.length,r=[];while(n--){r[n]=e.trex(i[n])}return e.box.apply(null,[e.types.mvex].concat(r))}},{key:"mvhd",value:function t(i,n){var r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,i>>24&255,i>>16&255,i>>8&255,i&255,n>>24&255,n>>16&255,n>>8&255,n&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e.box(e.types.mvhd,r)}},{key:"sdtp",value:function t(i){var n=i.samples||[],r=new Uint8Array(4+n.length),a,o;for(o=0;o>>8&255);n.push(s&255);n=n.concat(Array.prototype.slice.call(o))}for(a=0;a>>8&255);r.push(s&255);r=r.concat(Array.prototype.slice.call(o))}var l=e.box(e.types.avcC,new Uint8Array([1,n[3],n[4],n[5],252|3,224|i.sps.length].concat(n).concat([i.pps.length]).concat(r))),u=i.width,f=i.height;return e.box(e.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,u>>8&255,u&255,f>>8&255,f&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,98,105,110,101,108,112,114,111,46,114,117,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,e.box(e.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))}},{key:"esds",value:function e(t){var i=t.config.byteLength;var n=new Uint8Array(26+i+3);n.set([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5,i]);n.set(t.config,26);n.set([6,1,2],26+i);return n}},{key:"mp4a",value:function t(i){var n=i.audiosamplerate;return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,i.channelCount,0,16,0,0,0,0,n>>8&255,n&255,0,0]),e.box(e.types.esds,e.esds(i)))}},{key:"stsd",value:function t(i){if(i.type==="audio"){return e.box(e.types.stsd,e.STSD,e.mp4a(i))}else{return e.box(e.types.stsd,e.STSD,e.avc1(i))}}},{key:"tkhd",value:function t(i){var n=i.id,r=i.duration,a=i.width,o=i.height,s=i.volume;return e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,n>>24&255,n>>16&255,n>>8&255,n&255,0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,0,0,0,0,0,0,0,0,0,0,0,0,s>>0&255,s%1*10>>0&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,a&255,0,0,o>>8&255,o&255,0,0]))}},{key:"traf",value:function t(i,n){var r=e.sdtp(i),a=i.id;return e.box(e.types.traf,e.box(e.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,a&255])),e.box(e.types.tfdt,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),e.trun(i,r.length+16+16+8+16+8+8),r)}},{key:"trak",value:function t(i){i.duration=i.duration||4294967295;return e.box(e.types.trak,e.tkhd(i),e.mdia(i))}},{key:"trex",value:function t(i){var n=i.id;return e.box(e.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function t(i,n){var r=i.samples||[],a=r.length,o=12+16*a,s=new Uint8Array(o),l,u,f,c,d,h;n+=8+o;s.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,a&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255],0);for(l=0;l>>24&255,f>>>16&255,f>>>8&255,f&255,c>>>24&255,c>>>16&255,c>>>8&255,c&255,d.isLeading<<2|d.dependsOn,d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|d.isNonSync,d.degradPrio&240<<8,d.degradPrio&15,h>>>24&255,h>>>16&255,h>>>8&255,h&255],12+16*l)}return e.box(e.types.trun,s)}},{key:"initSegment",value:function t(i,n,r){if(!e.types){e.init()}var a=e.moov(i,n,r),o;o=new Uint8Array(e.FTYP.byteLength+a.byteLength);o.set(e.FTYP);o.set(a,e.FTYP.byteLength);return o}}]);return e}()},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AACRemuxer=undefined;var n=function(){function e(e,t){for(var i=0;i0&&this.readyToDecode){this.mp4track.len+=a;this.samples.push({units:n,size:a,keyFrame:o,duration:i.duration})}}}catch(e){l=true;u=e}finally{try{if(!s&&f.return){f.return()}}finally{if(l){throw u}}}}},{key:"getPayload",value:function e(){if(!this.isReady()){return null}var t=new Uint8Array(this.mp4track.len);var i=0;var n=this.mp4track.samples;var r=void 0,o=void 0;this.dts=this.nextDts;while(this.samples.length){var s=this.samples.shift(),l=s.units;o=s.duration;if(o<=0){a.log("remuxer: invalid sample duration at DTS: "+this.nextDts+" :"+o);this.mp4track.len-=s.size;continue}this.nextDts+=o;r={size:s.size,duration:o,cts:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,isNonSync:s.keyFrame?0:1,dependsOn:s.keyFrame?2:1}};var u=true;var f=false;var c=undefined;try{for(var d=l[Symbol.iterator](),h;!(u=(h=d.next()).done);u=true){var p=h.value;t.set(p.getData(),i);i+=p.getSize()}}catch(e){f=true;c=e}finally{try{if(!u&&d.return){d.return()}}finally{if(f){throw c}}}n.push(r)}if(!n.length)return null;return new Uint8Array(t.buffer,0,this.mp4track.len)}}]);return t}(s.BaseRemuxer)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=function(){function e(e,t){for(var i=0;i0){n.initCleanup(n.pendingCleaning);n.pendingCleaning=0}n.cleaning=false;if(n.cleanRanges.length){n.doCleanup();return}});n.sourceBuffer.addEventListener("error",function(){n.dispatch("error",{type:n.type,name:"buffer",error:"buffer error"})});return n}n(t,[{key:"destroy",value:function e(){this.queue=null;this.sourceBuffer=null;this.offAll()}},{key:"doCleanup",value:function e(){if(!this.cleanRanges.length){this.cleaning=false;return}var t=this.cleanRanges.shift();a.log(this.type+" remove range ["+t[0]+" - "+t[1]+")");this.cleaning=true;this.sourceBuffer.remove(t[0],t[1])}},{key:"initCleanup",value:function e(t){if(this.sourceBuffer.updating){this.pendingCleaning=t;return}if(this.sourceBuffer.buffered&&this.sourceBuffer.buffered.length&&!this.cleaning){for(var i=0;ithis.cleanOffset){r=t-this.cleanOffset;if(n0){var n=this.aStreamList.shift();t.seek(t.length);if(t.length>=this.options.iFileSize){if(this.options.cbEventHandler){this.options.cbEventHandler(y,this.szUUID)}return}var r=new Blob([n]);t.write(r)}else{setTimeout(function(){i.writeFile(t)},h)}}}},{key:"stopWriteFile",value:function e(){var t=this;this.bStart=false;this.aStreamList.length=0;var i=new Promise(function(e){window.requestFileSystem(window.TEMPORARY,t.options.iFileSize,function(i){i.root.getFile(t.szPath+"/"+t.szFileName,{create:false},function(t){t.file(function(t){e();o.oTool.downloadFile(t,t.name)})},t.errorHandler)},t.errorHandler)});return i}}]);return e}();var m=function(){function e(t,i,n,r,a,o,s){f(this,e);this.szBasePath=t;this.szUUID=i;this.szFileName=n;this.aHeadBuf=new Uint8Array(r);this.iPackType=a;this.iStreamType=o;this.oWorker=null;this.oFileSystem=null;this.options=s;this.bHead=true}n(e,[{key:"init",value:function e(){var t=this;var i=new Promise(function(e,i){t.initFileSystem().then(function(){t.initWorker().then(function(){e(t.szUUID)},function(e){i(e)})},function(e){i(e)})});return i}},{key:"initFileSystem",value:function e(){var t=this;this.oFileSystem=new v(this.szUUID,this.szFileName,this.iStreamType,this.options);var i=new Promise(function(e,i){t.oFileSystem.init().then(function(){e()},function(e){i(e)})});return i}},{key:"initWorker",value:function e(){var t=this;var i=new Promise(function(e){t.oWorker=new Worker(t.szBasePath+"/systemTransform-worker.min.js");t.oWorker.onmessage=function(i){var n=i.data;var r=t.iPackType;if(t.options.iPackage===1){r=12}if("loaded"===n.type){t.oWorker.postMessage({type:"create",buf:t.aHeadBuf.buffer,len:40,packType:r},[t.aHeadBuf.buffer])}else if("created"===n.type){e()}else if("outputData"===n.type){var a=new Uint8Array(n.buf);if(t.options.iPackage===1){if(t.bHead){t.oFileSystem.writeFileHeader(a);t.bHead=false}else{t.oFileSystem.writeFileContent(a)}}else{if(p===n.dType){t.oFileSystem.writeFileHeader(a)}else{t.oFileSystem.writeFileContent(a)}}}}});return i}},{key:"inputData",value:function e(t){if(this.oWorker){var i=new Uint8Array(t);this.oWorker.postMessage({type:"inputData",buf:i.buffer,len:i.length},[i.buffer])}}},{key:"stopRecord",value:function e(){var t=this;var i=new Promise(function(e,i){if(t.oWorker){t.oWorker.postMessage({type:"release"})}else{i()}if(t.oFileSystem){t.oFileSystem.stopWriteFile().then(function(){t.bHead=true;e()},function(){i()})}else{i()}});return i}}]);return e}();var g=function(){var e=function(){function e(t,i){f(this,e);this.szBasePath=t;this.oStorageList={};this.options={iFileSize:1024*1024*1024};l.default.extend(this.options,i)}n(e,[{key:"startRecord",value:function e(t,i,n,r,o){var s=this;var u=a.default.v4();var f=l.default.extend({},this.options,o);var c=new m(this.szBasePath,u,t,i,n,r,f);var d=new Promise(function(e,t){c.init().then(function(t){s.oStorageList[t]=c;e(t)},function(e){t(e)})});return d}},{key:"inputData",value:function e(t,i){var n=this.oStorageList[t];if(n){n.inputData(i)}}},{key:"stopRecord",value:function e(t){var i=this;var n=new Promise(function(e,n){var r=i.oStorageList[t];if(r){r.stopRecord().then(function(){delete i.oStorageList[t];e()},function(){n()})}else{n()}});return n}}]);return e}();return e}();t.StorageManager=g},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ESCanvas=undefined;var n=function(){function e(e,t){for(var i=0;i=s.m_iMinClosed){s.m_bClosed=true;e.bPolygonDrawing=false;s.setPointInfo(s.m_aPoint);i(s);t();n=false;if(!e.bDrawShapeMultiOneTime){e.bDrawStatus=false}window.onDrawShapeEvent&&window.onDrawShapeEvent(s.m_szType,"onDrawEnd",s.m_szId)}}}else if(u.button===0){r=u.offsetX;a=u.offsetY;o="draw";if(!e.bPolygonDrawing){var c=l();if(c!==-1){if(e.aShapes[c].inArc(u.offsetX,u.offsetY,5)){o="stretch"}}if(o!=="stretch"){for(var h=0,v=e.aShapes.length;h-1){if(n){if(o==="drag"){e.aShapes[u].drag(i.offsetX,i.offsetY);window.onDrawShapeEvent&&window.onDrawShapeEvent(e.aShapes[u].m_szType,"onDrag",e.aShapes[u].m_szId)}else if(o==="stretch"){e.aShapes[u].stretch(i.offsetX,i.offsetY);window.onDrawShapeEvent&&window.onDrawShapeEvent(e.aShapes[u].m_szType,"onStretch",e.aShapes[u].m_szId)}}}else{if(e.bDrawStatus){if(n){if(e.szShapeType==="Rect"){s.move([[r,a],[i.offsetX,i.offsetY]])}else if(e.szShapeType==="Grid"){e.aShapes[0].move(r,a,i.offsetX,i.offsetY)}}}}}else{if(e.bDrawStatus){if(n){if(e.szShapeType==="Polygon"&&s.m_iPolygonType===0){s.m_bClosed=true}t();s.move(i.offsetX,i.offsetY,r,a)}}}});e.oCanvas.bind("mouseup",function(l){e.oCanvas[0].style.cursor="default";if(s!==null&&typeof s!=="undefined"&&o==="draw"){if(e.szShapeType==="Rect"){if(Math.abs(l.offsetX-r)>2&&Math.abs(l.offsetY-a)>2){i(s);if(!e.bDrawShapeMultiOneTime){e.bDrawStatus=false}}if(e.oEventCallback){var u={startPos:[],endPos:[]};if(l.offsetX>r&&l.offsetY>a){u.startPos=s.m_aPoint[0]||[l.offsetX,l.offsetY];u.endPos=s.m_aPoint[2]||[l.offsetX,l.offsetY]}else{u.startPos=s.m_aPoint[2]||[l.offsetX,l.offsetY];u.endPos=s.m_aPoint[0]||[l.offsetX,l.offsetY]}e.oEventCallback&&e.oEventCallback(u);e.clearAllShape()}s=null}else if(e.szShapeType==="Polygon"&&s.m_iPolygonType===0&&e.bPolygonDrawing){if(Math.abs(l.offsetX-r)>2&&Math.abs(l.offsetY-a)>2){i(s);e.bPolygonDrawing=false;if(!e.bDrawShapeMultiOneTime){e.bDrawStatus=false}window.onDrawShapeEvent&&window.onDrawShapeEvent(s.m_szType,"onDrawEnd",s.m_szId)}}}if(!e.bPolygonDrawing){n=false}else{n=true}if(!e.bPolygonDrawing){t()}});e.oCanvas.bind("dblclick",function(){if(e.bDrawStatus){if(e.szShapeType==="Grid"){e.aShapes[0].m_szGridMap="fffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffc";t()}}});e.oCanvas.bind("mouseout",function(){e.oCanvas[0].style.cursor="default";if(!e.bPolygonDrawing){n=false}else{n=true}})}var o=function(){function i(){u(this,i);this.m_szId="";this.m_aPoint=[];this.m_bChoosed=false;this.m_szDrawColor=e.oShapeStyle.szDrawColor;this.m_szFillColor=e.oShapeStyle.szFillColor;this.m_iTranslucent=e.oShapeStyle.iTranslucent;this.m_iIndexChoosePoint=-1;this.m_iDriftStartX=0;this.m_iDriftStartY=0;this.m_oEdgePoints={top:{x:0,y:0},left:{x:0,y:0},right:{x:0,y:0},bottom:{x:0,y:0}};this.m_szTips="";this.m_iEditType=0;this.m_iMinClosed=3;this.m_iMaxPointNum=11;this.m_bClosed=false;this.m_iRedrawMode=0}n(i,[{key:"draw",value:function e(){}},{key:"drag",value:function i(n,r){var a=this.m_aPoint.length;var o=0;for(o=0;oe.m_iCanvasWidth||this.m_aPoint[o][1]+r-this.m_iDriftStartY>e.m_iCanvasHeight||this.m_aPoint[o][0]+n-this.m_iDriftStartX<0||this.m_aPoint[o][1]+r-this.m_iDriftStartY<0){this.m_iDriftStartX=n;this.m_iDriftStartY=r;return}}for(o=0;oi!==this.m_aPoint[o][1]>i&&t<(this.m_aPoint[o][0]-this.m_aPoint[a][0])*(i-this.m_aPoint[a][1])/(this.m_aPoint[o][1]-this.m_aPoint[a][1])+this.m_aPoint[a][0]){n=!n}}return n}},{key:"inArc",value:function e(t,i,n){var r=false;for(var a=0,o=this.m_aPoint.length;a0){this.m_aPoint=t;this.setEdgePoints(t)}}},{key:"addPoint",value:function e(t,i){if(this.m_aPoint.lengththis.m_oEdgePoints.right.x){this.m_oEdgePoints.right.x=t[i][0];this.m_oEdgePoints.right.y=t[i][1]}if(t[i][1]>this.m_oEdgePoints.bottom.y){this.m_oEdgePoints.bottom.x=t[i][0];this.m_oEdgePoints.bottom.y=t[i][1]}if(t[i][0]t[o][0]){i=t[o][0]}if(n>t[o][1]){n=t[o][1]}if(rthis.m_aPoint[3][0]&&nthis.m_aPoint[0][0]){this.m_aPoint[1][0]=i;this.m_aPoint[2][0]=i}}else if(this.m_iIndexChoosePoint===5){if(ithis.m_aPoint[1][1]){this.m_aPoint[3][0]=i;this.m_aPoint[3][1]=n;this.m_aPoint[0][0]=i;this.m_aPoint[2][1]=n}}else if(this.m_iIndexChoosePoint===6){if(n>this.m_aPoint[1][1]){this.m_aPoint[2][1]=n;this.m_aPoint[3][1]=n}}else if(this.m_iIndexChoosePoint===7){if(i>this.m_aPoint[0][0]&&n>this.m_aPoint[0][1]){this.m_aPoint[2][0]=i;this.m_aPoint[2][1]=n;this.m_aPoint[1][0]=i;this.m_aPoint[3][1]=n}}t()}}},{key:"move",value:function e(i){t();this.m_bChoosed=true;var n=i[0][0];var r=i[0][1];var a=i[1][0];var o=i[1][1];this.setPointInfo([[n,r],[a,r],[a,o],[n,o]]);this.draw()}},{key:"inArc",value:function e(t,i,n){var r=this.m_aPoint[0][0];var a=this.m_aPoint[0][1];var o=this.m_aPoint[2][0]-r;var s=this.m_aPoint[2][1]-a;var l=Math.round(o/2);var u=Math.round(s/2);var f=[r,r+l,r+o,r,r+o,r,r+l,r+o];var c=[a,a,a,a+u,a+u,a+s,a+s,a+s];for(var d=0;d<8;d++){var h=Math.sqrt((t-f[d])*(t-f[d])+(i-c[d])*(i-c[d]));if(he.m_iCanvasHeight||this.m_aPoint[o][0]+n-this.m_iDriftStartX<0||this.m_aPoint[o][1]+r-this.m_iDriftStartY<0){this.m_iDriftStartX=n;this.m_iDriftStartY=r;return}}for(o=0;oe.m_iCanvasHeight||this.m_aPoint[o][1]+r-this.m_iDriftStartY<0){this.m_iDriftStartX=n;this.m_iDriftStartY=r;return}}for(o=0;o0){d=1}else{d=-1}if(a-n>0){h=1}else{h=-1}var p=[];for(var y=0;y=u&&y<=u+c&&v>=l&&v<=l+f){p[y][v]=1}else{p[y][v]=0}}else{if(y<=u&&y>=u-c&&v>=l&&v<=l+f){p[y][v]=1}else{p[y][v]=0}}}else{if(h===1){if(y>=u&&y<=u+c&&v<=l&&v>=l-f){p[y][v]=1}else{p[y][v]=0}}else{if(y<=u&&y>=u-c&&v<=l&&v>=l-f){p[y][v]=1}else{p[y][v]=0}}}}}this.m_aAddGridMap=p;this.draw()}}]);return i}(o);var h=function(t){l(i,t);function i(){u(this,i);var e=s(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));e.m_szType="Line";e.m_iLineType=0;e.m_iDirection=0;e.m_iArrowType=0;e.m_aCrossArrowPoint=[];return e}n(i,[{key:"draw",value:function e(){if(this.m_iLineType===0){this.drawNormalLine()}else if(this.m_iLineType===1){this.drawArrowLine()}else if(this.m_iLineType===3){this.drawCrossLine()}else if(this.m_iLineType===4){this.drawLineCount()}}},{key:"drawNormalLine",value:function t(){e.oContext.globalAlpha=1;if(this.m_aPoint.length>0){e.oContext.beginPath();e.oContext.strokeStyle=this.m_szDrawColor;e.oContext.lineWidth=2;e.oContext.moveTo(this.m_aPoint[0][0],this.m_aPoint[0][1]);for(var i=1,n=this.m_aPoint.length;it[o][0]){i=t[o][0]}if(n>t[o][1]){n=t[o][1]}if(r0){e.oContext.fillStyle=this.m_szFillColor;e.oContext.strokeStyle=this.m_szDrawColor;e.oContext.globalAlpha=1;var i=0;var n=0;if(this.m_bChoosed){for(i=0,n=this.m_aPoint.length;i0){e.oContext.fillStyle=this.m_szFillColor;e.oContext.strokeStyle=this.m_szDrawColor;e.oContext.globalAlpha=1;var o=0;var s=0;for(o=0,s=this.m_aPoint.length;othis.m_aPoint[3][0]&&nthis.m_aPoint[0][0]&&n>this.m_aPoint[0][1]){this.m_aPoint[2][0]=i;this.m_aPoint[2][1]=n;this.m_aPoint[1][0]=i;this.m_aPoint[3][1]=n}}else if(this.m_iIndexChoosePoint===3){if(ithis.m_aPoint[1][1]){this.m_aPoint[3][0]=i;this.m_aPoint[3][1]=n;this.m_aPoint[0][0]=i;this.m_aPoint[2][1]=n}}}this.setPointInfo(this.m_aPoint);t()}}}]);return r}(o);var y=function(t){l(i,t);function i(){u(this,i);var e=s(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));e.m_szType="Point";e.m_szId="";return e}n(i,[{key:"draw",value:function t(){e.oContext.beginPath();e.oContext.fillStyle=this.m_szDrawColor;e.oContext.globalAlpha=1;e.oContext.arc(this.m_aPoint[0][0],this.m_aPoint[0][1],10,0,Math.PI*2,true);e.oContext.closePath();e.oContext.fill()}},{key:"drag",value:function e(){}},{key:"stretch",value:function e(){}}]);return i}(o);var v=function(){function o(t){u(this,o);e=this;this.oCanvas=(0,a.default)("#"+t);this.oContext=this.oCanvas[0].getContext("2d");this.aShapes=[];this.bDrawStatus=false;this.szShapeType="Rect";this.iMaxShapeNumSupport=10;this.bDrawShapeMultiOneTime=true;this.oCurrentShapeInfo={};this.oEventCallback=null;this.oShapeStyle={szDrawColor:"#ff0000",szFillColor:"#343434",iTranslucent:.7};this.bPolygonDrawing=false;this.m_iCanvasWidth=this.oCanvas.width();this.m_iCanvasHeight=this.oCanvas.height();this.m_iHorizontalResolution=0;this.m_iVerticalResolution=0;this.m_szDisplayMode="";this.m_szVideoFormat="";r();this.aShapes.length=0}n(o,[{key:"setDrawMutiShapeOneTime",value:function e(t){this.bDrawShapeMultiOneTime=t}},{key:"setMaxShapeSupport",value:function e(t){this.iMaxShapeNumSupport=t}},{key:"getMaxShapeSupport",value:function e(){return this.iMaxShapeNumSupport}},{key:"setDrawStatus",value:function e(t,i){this.bDrawStatus=t;if(i&&t){this.oEventCallback=i}if(!t){this.oEventCallback=null}}},{key:"setShapeType",value:function e(i){this.szShapeType=i;t()}},{key:"setCurrentShapeInfo",value:function e(t){this.oCurrentShapeInfo=t||{szId:"",szTips:"",iMinClosed:3,iMaxPointNum:11,iPolygonType:1,iRedrawMode:0}}},{key:"getShapeType",value:function e(){return this.szShapeType}},{key:"getAllShapesInfo",value:function e(){var t=[];for(var i=0,n=this.aShapes.length;i0){for(var r=0;r0&&n>0){this.m_iCanvasWidth=i;this.m_iCanvasHeight=n;t()}}},{key:"setDrawStyle",value:function e(t,i,n){this.oShapeStyle={szDrawColor:t,szFillColor:i,iTranslucent:n}}},{key:"clearAllShape",value:function i(){this.aShapes.length=0;e.bPolygonDrawing=false;t()}},{key:"clearShapeByType",value:function i(n){var r=this.aShapes.length;for(var a=r;a>0;a--){if(this.aShapes[a-1].m_szType===n){if(n==="Grid"){this.aShapes[a-1].m_szGridMap="";this.aShapes[a-1].m_aAddGridMap=[]}else{this.aShapes.splice(a-1,1)}}}if("Polygon"===n){e.bPolygonDrawing=false}t()}},{key:"deleteShape",value:function e(i){if(this.aShapes.length>i){this.aShapes.splice(i,1)}t()}},{key:"updateCanvas",value:function e(t){this.oCanvas=(0,a.default)("#"+t);this.oContext=this.oCanvas[0].getContext("2d");this.m_iCanvasWidth=this.oCanvas.width();this.m_iCanvasHeight=this.oCanvas.height();r()}},{key:"resizeCanvas",value:function e(){this.m_iCanvasWidth=this.oCanvas.width();this.m_iCanvasHeight=this.oCanvas.height()}},{key:"canvasRedraw",value:function e(){t()}}]);return o}();return v}();t.ESCanvas=f}])});