diff --git a/README.MD b/README.MD index 159fbede..c6c5e2b2 100644 --- a/README.MD +++ b/README.MD @@ -58,6 +58,8 @@ | 更新日志 | 内容 | | ---- | ---- | +| 时间 | 2021/05/15 | +| - | 1.修复HLS直播的部分问题 以及嵌套型的HLS | | 时间 | 2021/04/27 | | - | 1.修复部分视频播放中马赛克问题 | | - | 2.修复部分视频第一个GOP马赛克问题 | diff --git a/README_EN.MD b/README_EN.MD index 9641fffe..ae0a58a0 100644 --- a/README_EN.MD +++ b/README_EN.MD @@ -59,6 +59,8 @@ __`~^_^~ For love` if h265web | Update | Content | | ---- | ---- | +| Time | 2021/05/15 | +| - | 1.Fixed: HLS Play(LIVE) | | Time | 2021/04/27 | | - | 1.Fixed: Some video playing with gray block(mosic) | | - | 2.Fixed: Some video when playing first gop with gray block(mosic) | diff --git a/dist/h265webjs-v20210427.js b/dist/h265webjs-v20210515.js similarity index 95% rename from dist/h265webjs-v20210427.js rename to dist/h265webjs-v20210515.js index d4c98c55..8816f18e 100644 --- a/dist/h265webjs-v20210427.js +++ b/dist/h265webjs-v20210515.js @@ -1,4 +1,4 @@ -!function e(t,i,r){function n(s,o){if(!i[s]){if(!t[s]){var l="function"==typeof require&&require;if(!o&&l)return l(s,!0);if(a)return a(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var u=i[s]={exports:{}};t[s][0].call(u.exports,(function(e){return n(t[s][1][e]||e)}),u,u.exports,e,t,i,r)}return i[s].exports}for(var a="function"==typeof require&&require,s=0;s1&&(c=i.argv[1].replace(/\\/g,"/")),u=i.argv.slice(2),void 0!==t&&(t.exports=l),i.on("uncaughtException",(function(e){if(!(e instanceof la))throw e})),i.on("unhandledRejection",Ze),l.inspect=function(){return"[Emscripten Module object]"};else if(m)"undefined"!=typeof read&&(b=function(e){return read(e)}),v=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(N("object"===a(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?u=scriptArgs:void 0!==arguments&&(u=arguments),"function"==typeof quit&&function(e){quit(e)},"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print);else{if(!h&&!d)throw new Error("environment detection error");d?w=self.location.href:document.currentScript&&(w=document.currentScript.src),w=0!==w.indexOf("blob:")?w.substr(0,w.lastIndexOf("/")+1):"",b=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},d&&(v=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),function(e,t,i){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):i()},r.onerror=i,r.send(null)},function(e){document.title=e}}var C=l.print||console.log.bind(console),S=l.printErr||console.warn.bind(console);for(s in f)f.hasOwnProperty(s)&&(l[s]=f[s]);function j(e){N(ye);var t=le[ye>>2],i=t+e+15&-16;return i>Yt()&&Ze("failure to dynamicAlloc - memory growth etc. is not supported there, call malloc/sbrk directly"),le[ye>>2]=i,t}function T(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:if("*"===e[e.length-1])return 4;if("i"===e[0]){var t=parseInt(e.substr(1));return N(t%8==0,"getNativeTypeSize invalid bits "+t+", type "+e),t/8}return 0}}function A(e){A.shown||(A.shown={}),A.shown[e]||(A.shown[e]=1,S(e))}f=null,l.arguments&&(u=l.arguments),Object.getOwnPropertyDescriptor(l,"arguments")||Object.defineProperty(l,"arguments",{configurable:!0,get:function(){Ze("Module.arguments has been replaced with plain arguments_")}}),l.thisProgram&&(c=l.thisProgram),Object.getOwnPropertyDescriptor(l,"thisProgram")||Object.defineProperty(l,"thisProgram",{configurable:!0,get:function(){Ze("Module.thisProgram has been replaced with plain thisProgram")}}),l.quit&&l.quit,Object.getOwnPropertyDescriptor(l,"quit")||Object.defineProperty(l,"quit",{configurable:!0,get:function(){Ze("Module.quit has been replaced with plain quit_")}}),N(void 0===l.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),N(void 0===l.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),N(void 0===l.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),N(void 0===l.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),N(void 0===l.read,"Module.read option was removed (modify read_ in JS)"),N(void 0===l.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),N(void 0===l.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),N(void 0===l.setWindowTitle,"Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),Object.getOwnPropertyDescriptor(l,"read")||Object.defineProperty(l,"read",{configurable:!0,get:function(){Ze("Module.read has been replaced with plain read_")}}),Object.getOwnPropertyDescriptor(l,"readAsync")||Object.defineProperty(l,"readAsync",{configurable:!0,get:function(){Ze("Module.readAsync has been replaced with plain readAsync")}}),Object.getOwnPropertyDescriptor(l,"readBinary")||Object.defineProperty(l,"readBinary",{configurable:!0,get:function(){Ze("Module.readBinary has been replaced with plain readBinary")}}),sa=aa=na=function(){Ze("cannot use the stack before compiled code is ready to run, and has provided stack access")};var x={"f64-rem":function(e,t){return e%t},debugger:function(){}},M=1,k=new Array(35);function P(e,t){N(void 0!==e);for(var i=0;i<35;i++)if(!k[i])return k[i]=e,M+i;throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."}var I,U,R,D=0,O=function(){return D};function F(e,t,i,r){switch("*"===(i=i||"i8").charAt(i.length-1)&&(i="i32"),i){case"i1":case"i8":ne[e>>0]=t;break;case"i16":se[e>>1]=t;break;case"i32":le[e>>2]=t;break;case"i64":tt=[t>>>0,(et=t,+Le(et)>=1?et>0?(0|He(+ze(et/4294967296),4294967295))>>>0:~~+Ne((et-+(~~et>>>0))/4294967296)>>>0:0)],le[e>>2]=tt[0],le[e+4>>2]=tt[1];break;case"float":ue[e>>2]=t;break;case"double":ce[e>>3]=t;break;default:Ze("invalid type for setValue: "+i)}}l.wasmBinary&&(I=l.wasmBinary),Object.getOwnPropertyDescriptor(l,"wasmBinary")||Object.defineProperty(l,"wasmBinary",{configurable:!0,get:function(){Ze("Module.wasmBinary has been replaced with plain wasmBinary")}}),l.noExitRuntime&&(U=l.noExitRuntime),Object.getOwnPropertyDescriptor(l,"noExitRuntime")||Object.defineProperty(l,"noExitRuntime",{configurable:!0,get:function(){Ze("Module.noExitRuntime has been replaced with plain noExitRuntime")}}),"object"!==("undefined"==typeof WebAssembly?"undefined":a(WebAssembly))&&Ze("No WebAssembly support found. Build with -s WASM=0 to target JavaScript instead.");var B=new WebAssembly.Table({initial:4160,element:"anyfunc"}),L=!1;function N(e,t){e||Ze("Assertion failed: "+t)}function z(e){var t=l["_"+e];return N(t,"Cannot call unknown function "+e+", make sure it is exported"),t}function H(e,t,i,r,n){var a={string:function(e){var t=0;if(null!=e&&0!==e){var i=1+(e.length<<2);J(e,t=na(i),i)}return t},array:function(e){var t=na(e.length);return te(e,t),t}};var s=z(e),o=[],l=0;if(N("array"!==t,'Return type should not be "array".'),r)for(var f=0;f>2]=0;for(l=s+a;r>0]=0;return s}if("i8"===o)return e.subarray||e.slice?ae.set(e,s):ae.set(new Uint8Array(e),s),s;for(var f,u,c,h=0;h=r);)++n;if(n-t>16&&e.subarray&&G)return G.decode(e.subarray(t,n));for(var a="";t>10,56320|1023&f)}}else a+=String.fromCharCode((31&s)<<6|o)}else a+=String.fromCharCode(s)}return a}function Q(e,t){return e?K(ae,e,t):""}function Z(e,t,i,r){if(!(r>0))return 0;for(var n=i,a=i+r-1,s=0;s=55296&&o<=57343)o=65536+((1023&o)<<10)|1023&e.charCodeAt(++s);if(o<=127){if(i>=a)break;t[i++]=o}else if(o<=2047){if(i+1>=a)break;t[i++]=192|o>>6,t[i++]=128|63&o}else if(o<=65535){if(i+2>=a)break;t[i++]=224|o>>12,t[i++]=128|o>>6&63,t[i++]=128|63&o}else{if(i+3>=a)break;o>=2097152&&A("Invalid Unicode code point 0x"+o.toString(16)+" encountered when serializing a JS string to an UTF-8 string on the asm.js/wasm heap! (Valid unicode code points should be in range 0-0x1FFFFF)."),t[i++]=240|o>>18,t[i++]=128|o>>12&63,t[i++]=128|o>>6&63,t[i++]=128|63&o}}return t[i]=0,i-n}function J(e,t,i){return N("number"==typeof i,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),Z(e,ae,t,i)}function $(e){for(var t=0,i=0;i=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++i)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");function ee(e){var t=$(e)+1,i=ra(t);return i&&Z(e,ne,i,t),i}function te(e,t){N(e.length>=0,"writeArrayToMemory array must have a length (should be an array or typed array)"),ne.set(e,t)}function ie(e,t,i){for(var r=0;r>0]=e.charCodeAt(r);i||(ne[t>>0]=0)}var re,ne,ae,se,oe,le,fe,ue,ce,he=16384,de=65536;function _e(e,t){return e%t>0&&(e+=t-e%t),e}function pe(e){re=e,l.HEAP8=ne=new Int8Array(e),l.HEAP16=se=new Int16Array(e),l.HEAP32=le=new Int32Array(e),l.HEAPU8=ae=new Uint8Array(e),l.HEAPU16=oe=new Uint16Array(e),l.HEAPU32=fe=new Uint32Array(e),l.HEAPF32=ue=new Float32Array(e),l.HEAPF64=ce=new Float64Array(e)}var me=1124560,be=6367440,ve=6367440,ye=1124336;N(me%16==0,"stack must start aligned"),N(ve%16==0,"heap must start aligned");var ge=5242880;l.TOTAL_STACK&&N(ge===l.TOTAL_STACK,"the stack size can no longer be determined at runtime");var we=l.TOTAL_MEMORY||1073741824;function Ee(){N(0==(3&be)),fe[(be>>2)-1]=34821223,fe[(be>>2)-2]=2310721022,le[0]=1668509029}function Ce(){var e=fe[(be>>2)-1],t=fe[(be>>2)-2];34821223==e&&2310721022==t||Ze("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x02135467, but received 0x"+t.toString(16)+" "+e.toString(16)),1668509029!==le[0]&&Ze("Runtime error: The application has corrupted its heap memory area (address zero)!")}function Se(e){Ze("Stack overflow! Attempted to allocate "+e+" bytes on the stack, but stack has only "+(be-sa()+e)+" bytes available!")}function je(e,t){var i="";for(var r in vr){var n=vr[r];n[e]&&(i+='as sig "'+r+'" pointing to function '+n[e]+", ")}Ze("Invalid function pointer "+e+" called with signature '"+t+"'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this). This pointer might make sense in another type signature: "+i)}function Te(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var i=t.func;"number"==typeof i?void 0===t.arg?l.dynCall_v(i):l.dynCall_vi(i,t.arg):i(void 0===t.arg?null:t.arg)}else t()}}Object.getOwnPropertyDescriptor(l,"TOTAL_MEMORY")||Object.defineProperty(l,"TOTAL_MEMORY",{configurable:!0,get:function(){Ze("Module.TOTAL_MEMORY has been replaced with plain INITIAL_TOTAL_MEMORY")}}),N(we>=ge,"TOTAL_MEMORY should be larger than TOTAL_STACK, was "+we+"! (TOTAL_STACK="+ge+")"),N("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support"),(R=l.wasmMemory?l.wasmMemory:new WebAssembly.Memory({initial:we/de}))&&(re=R.buffer),N((we=re.byteLength)%de==0),pe(re),le[ye>>2]=ve,function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian!"}();var Ae=[],xe=[],Me=[],ke=[],Pe=!1,Ie=!1;function Ue(){if(l.preRun)for("function"==typeof l.preRun&&(l.preRun=[l.preRun]);l.preRun.length;)Fe(l.preRun.shift());Te(Ae)}function Re(){Ce(),N(!Pe),Pe=!0,l.noFSInit||St.init.initialized||St.init(),bt.init(),Te(xe)}function De(){Ce(),St.ignorePermissions=!1,Te(Me)}function Oe(){if(Ce(),l.postRun)for("function"==typeof l.postRun&&(l.postRun=[l.postRun]);l.postRun.length;)Be(l.postRun.shift());Te(ke)}function Fe(e){Ae.unshift(e)}function Be(e){ke.unshift(e)}N(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),N(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),N(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),N(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var Le=Math.abs,Ne=Math.ceil,ze=Math.floor,He=Math.min,Ve=Math.trunc,Ye=0,qe=null,Xe=null,We={};function Ge(e){for(var t=e;;){if(!We[e])return e;e=t+Math.random()}return e}function Ke(e){Ye++,l.monitorRunDependencies&&l.monitorRunDependencies(Ye),e?(N(!We[e]),We[e]=1,null===qe&&"undefined"!=typeof setInterval&&(qe=setInterval((function(){if(L)return clearInterval(qe),void(qe=null);var e=!1;for(var t in We)e||(e=!0,S("still waiting on run dependencies:")),S("dependency: "+t);e&&S("(end of list)")}),1e4))):S("warning: run dependency added without ID")}function Qe(e){if(Ye--,l.monitorRunDependencies&&l.monitorRunDependencies(Ye),e?(N(We[e]),delete We[e]):S("warning: run dependency removed without ID"),0==Ye&&(null!==qe&&(clearInterval(qe),qe=null),Xe)){var t=Xe;Xe=null,t()}}function Ze(e){l.onAbort&&l.onAbort(e),C(e+=""),S(e),L=!0,1;throw"abort("+e+") at "+ut()}l.preloadedImages={},l.preloadedAudios={},o||Fe((function(){"undefined"!=typeof SharedArrayBuffer&&(Ke("pthreads"),PThread.allocateUnusedWorkers(2,(function(){Qe("pthreads")})))}));var Je="data:application/octet-stream;base64,";function $e(e){return String.prototype.startsWith?e.startsWith(Je):0===e.indexOf(Je)}var et,tt,it="missile-v20210422.wasm";function rt(){try{if(I)return new Uint8Array(I);if(v)return v(it);throw"both async and sync fetching of the wasm failed"}catch(e){Ze(e)}}function nt(){return I||!h&&!d||"function"!=typeof fetch?new Promise((function(e,t){e(rt())})):fetch(it,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+it+"'";return e.arrayBuffer()})).catch((function(){return rt()}))}function at(){var e={env:Kn,wasi_unstable:Kn,global:{NaN:NaN,Infinity:1/0},"global.Math":Math,asm2wasm:x};function t(e,t){var i=e.exports;l.asm=i,Qe("wasm-instantiate")}Ke("wasm-instantiate");var i=l;function r(e){N(l===i,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),i=null,t(e.instance)}function n(t){return nt().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){S("failed to asynchronously prepare wasm: "+e),Ze(e)}))}if(l.instantiateWasm)try{return l.instantiateWasm(e,t)}catch(e){return S("Module.instantiateWasm callback failed with error: "+e),!1}return function(){if(I||"function"!=typeof WebAssembly.instantiateStreaming||$e(it)||"function"!=typeof fetch)return n(r);fetch(it,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){S("wasm streaming compile failed: "+e),S("falling back to ArrayBuffer instantiation"),n(r)}))}))}(),{}}$e(it)||(it=E(it)),l.asm=at,xe.push({func:function(){Jn()}});var st=1124544;function ot(e){return A("warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),e}function lt(e){return e.replace(/\b__Z[\w\d_]+/g,(function(e){var t=ot(e);return e===t?e:t+" ["+e+"]"}))}function ft(){var e=new Error;if(!e.stack){try{throw new Error(0)}catch(t){e=t}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}function ut(){var e=ft();return l.extraStackTrace&&(e+="\n"+l.extraStackTrace()),lt(e)}N(st%8==0);var ct={};function ht(e){var t,i;ht.called?(i=le[e>>2],t=le[i>>2]):(ht.called=!0,ct.USER="web_user",ct.LOGNAME="web_user",ct.PATH="/",ct.PWD="/",ct.HOME="/home/web_user",ct.LANG=("object"===("undefined"==typeof navigator?"undefined":a(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",ct._=c,t=W(1024),i=W(256),le[i>>2]=t,le[e>>2]=i);var r=[],n=0;for(var s in ct)if("string"==typeof ct[s]){var o=s+"="+ct[s];r.push(o),n+=o.length}if(n>1024)throw new Error("Environment size exceeded TOTAL_ENV_SIZE!");for(var l=0;l>2]=t,t+=o.length+1}le[i+4*r.length>>2]=0}function dt(){}function _t(e){return l.___errno_location?le[l.___errno_location()>>2]=e:S("failed to set errno from JS"),e}var pt={splitPath:function(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)},normalizeArray:function(e,t){for(var i=0,r=e.length-1;r>=0;r--){var n=e[r];"."===n?e.splice(r,1):".."===n?(e.splice(r,1),i++):i&&(e.splice(r,1),i--)}if(t)for(;i;i--)e.unshift("..");return e},normalize:function(e){var t="/"===e.charAt(0),i="/"===e.substr(-1);return(e=pt.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||t||(e="."),e&&i&&(e+="/"),(t?"/":"")+e},dirname:function(e){var t=pt.splitPath(e),i=t[0],r=t[1];return i||r?(r&&(r=r.substr(0,r.length-1)),i+r):"."},basename:function(e){if("/"===e)return"/";var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+1)},extname:function(e){return pt.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return pt.normalize(e.join("/"))},join2:function(e,t){return pt.normalize(e+"/"+t)}},mt={resolve:function(){for(var e="",t=!1,i=arguments.length-1;i>=-1&&!t;i--){var r=i>=0?arguments[i]:St.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";e=r+"/"+e,t="/"===r.charAt(0)}return(t?"/":"")+(e=pt.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||"."},relative:function(e,t){function i(e){for(var t=0;t=0&&""===e[i];i--);return t>i?[]:e.slice(t,i-t+1)}e=mt.resolve(e).substr(1),t=mt.resolve(t).substr(1);for(var r=i(e.split("/")),n=i(t.split("/")),a=Math.min(r.length,n.length),s=a,o=0;o0?n.slice(0,a).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n");if(!t)return null;e.input=ki(t,!0)}return e.input.shift()},put_char:function(e,t){null===t||10===t?(C(K(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(C(K(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(S(K(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(S(K(e.output,0)),e.output=[])}}},vt={ops_table:null,mount:function(e){return vt.createNode(null,"/",16895,0)},createNode:function(e,t,i,r){if(St.isBlkdev(i)||St.isFIFO(i))throw new St.ErrnoError(63);vt.ops_table||(vt.ops_table={dir:{node:{getattr:vt.node_ops.getattr,setattr:vt.node_ops.setattr,lookup:vt.node_ops.lookup,mknod:vt.node_ops.mknod,rename:vt.node_ops.rename,unlink:vt.node_ops.unlink,rmdir:vt.node_ops.rmdir,readdir:vt.node_ops.readdir,symlink:vt.node_ops.symlink},stream:{llseek:vt.stream_ops.llseek}},file:{node:{getattr:vt.node_ops.getattr,setattr:vt.node_ops.setattr},stream:{llseek:vt.stream_ops.llseek,read:vt.stream_ops.read,write:vt.stream_ops.write,allocate:vt.stream_ops.allocate,mmap:vt.stream_ops.mmap,msync:vt.stream_ops.msync}},link:{node:{getattr:vt.node_ops.getattr,setattr:vt.node_ops.setattr,readlink:vt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:vt.node_ops.getattr,setattr:vt.node_ops.setattr},stream:St.chrdev_stream_ops}});var n=St.createNode(e,t,i,r);return St.isDir(n.mode)?(n.node_ops=vt.ops_table.dir.node,n.stream_ops=vt.ops_table.dir.stream,n.contents={}):St.isFile(n.mode)?(n.node_ops=vt.ops_table.file.node,n.stream_ops=vt.ops_table.file.stream,n.usedBytes=0,n.contents=null):St.isLink(n.mode)?(n.node_ops=vt.ops_table.link.node,n.stream_ops=vt.ops_table.link.stream):St.isChrdev(n.mode)&&(n.node_ops=vt.ops_table.chrdev.node,n.stream_ops=vt.ops_table.chrdev.stream),n.timestamp=Date.now(),e&&(e.contents[t]=n),n},getFileDataAsRegularArray:function(e){if(e.contents&&e.contents.subarray){for(var t=[],i=0;i=t)){t=Math.max(t,i*(i<1048576?2:1.125)|0),0!=i&&(t=Math.max(t,256));var r=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(r.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,t){if(e.usedBytes!=t){if(0==t)return e.contents=null,void(e.usedBytes=0);if(!e.contents||e.contents.subarray){var i=e.contents;return e.contents=new Uint8Array(new ArrayBuffer(t)),i&&e.contents.set(i.subarray(0,Math.min(t,e.usedBytes))),void(e.usedBytes=t)}if(e.contents||(e.contents=[]),e.contents.length>t)e.contents.length=t;else for(;e.contents.length=e.node.usedBytes)return 0;var s=Math.min(e.node.usedBytes-n,r);if(N(s>=0),s>8&&a.subarray)t.set(a.subarray(n,n+s),i);else for(var o=0;o0||n+rs.timestamp)&&(n.push(i),r++)}));var a=[];if(Object.keys(t.entries).forEach((function(i){t.entries[i];e.entries[i]||(a.push(i),r++)})),!r)return i(null);var s=!1,o=("remote"===e.type?e.db:t.db).transaction([yt.DB_STORE_NAME],"readwrite"),l=o.objectStore(yt.DB_STORE_NAME);function f(e){if(e&&!s)return s=!0,i(e)}o.onerror=function(e){f(this.error),e.preventDefault()},o.oncomplete=function(e){s||i(null)},n.sort().forEach((function(e){"local"===t.type?yt.loadRemoteEntry(l,e,(function(t,i){if(t)return f(t);yt.storeLocalEntry(e,i,f)})):yt.loadLocalEntry(e,(function(t,i){if(t)return f(t);yt.storeRemoteEntry(l,e,i,f)}))})),a.sort().reverse().forEach((function(e){"local"===t.type?yt.removeLocalEntry(e,f):yt.removeRemoteEntry(l,e,f)}))}},gt={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},wt={isWindows:!1,staticInit:function(){wt.isWindows=!!i.platform.match(/^win/);var e=i.binding("constants");e.fs&&(e=e.fs),wt.flagsForNodeMap={1024:e.O_APPEND,64:e.O_CREAT,128:e.O_EXCL,0:e.O_RDONLY,2:e.O_RDWR,4096:e.O_SYNC,512:e.O_TRUNC,1:e.O_WRONLY}},bufferFrom:function(e){return r.alloc?r.from(e):new r(e)},convertNodeCode:function(e){var t=e.code;return N(t in gt),gt[t]},mount:function(e){return N(p),wt.createNode(null,"/",wt.getMode(e.opts.root),0)},createNode:function(e,t,i,r){if(!St.isDir(i)&&!St.isFile(i)&&!St.isLink(i))throw new St.ErrnoError(28);var n=St.createNode(e,t,i);return n.node_ops=wt.node_ops,n.stream_ops=wt.stream_ops,n},getMode:function(e){var t;try{t=xi.lstatSync(e),wt.isWindows&&(t.mode=t.mode|(292&t.mode)>>2)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}return t.mode},realPath:function(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.mount.opts.root),t.reverse(),pt.join.apply(null,t)},flagsForNode:function(e){e&=-2097153,e&=-2049,e&=-32769,e&=-524289;var t=0;for(var i in wt.flagsForNodeMap)e&i&&(t|=wt.flagsForNodeMap[i],e^=i);if(e)throw new St.ErrnoError(28);return t},node_ops:{getattr:function(e){var t,i=wt.realPath(e);try{t=xi.lstatSync(i)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}return wt.isWindows&&!t.blksize&&(t.blksize=4096),wt.isWindows&&!t.blocks&&(t.blocks=(t.size+t.blksize-1)/t.blksize|0),{dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,size:t.size,atime:t.atime,mtime:t.mtime,ctime:t.ctime,blksize:t.blksize,blocks:t.blocks}},setattr:function(e,t){var i=wt.realPath(e);try{if(void 0!==t.mode&&(xi.chmodSync(i,t.mode),e.mode=t.mode),void 0!==t.timestamp){var r=new Date(t.timestamp);xi.utimesSync(i,r,r)}void 0!==t.size&&xi.truncateSync(i,t.size)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},lookup:function(e,t){var i=pt.join2(wt.realPath(e),t),r=wt.getMode(i);return wt.createNode(e,t,r)},mknod:function(e,t,i,r){var n=wt.createNode(e,t,i,r),a=wt.realPath(n);try{St.isDir(n.mode)?xi.mkdirSync(a,n.mode):xi.writeFileSync(a,"",{mode:n.mode})}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}return n},rename:function(e,t,i){var r=wt.realPath(e),n=pt.join2(wt.realPath(t),i);try{xi.renameSync(r,n)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},unlink:function(e,t){var i=pt.join2(wt.realPath(e),t);try{xi.unlinkSync(i)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},rmdir:function(e,t){var i=pt.join2(wt.realPath(e),t);try{xi.rmdirSync(i)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},readdir:function(e){var t=wt.realPath(e);try{return xi.readdirSync(t)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},symlink:function(e,t,i){var r=pt.join2(wt.realPath(e),t);try{xi.symlinkSync(i,r)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},readlink:function(e){var t=wt.realPath(e);try{return t=xi.readlinkSync(t),t=Mi.relative(Mi.resolve(e.mount.opts.root),t)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}}},stream_ops:{open:function(e){var t=wt.realPath(e.node);try{St.isFile(e.node.mode)&&(e.nfd=xi.openSync(t,wt.flagsForNode(e.flags)))}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},close:function(e){try{St.isFile(e.node.mode)&&e.nfd&&xi.closeSync(e.nfd)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},read:function(e,t,i,r,n){if(0===r)return 0;try{return xi.readSync(e.nfd,wt.bufferFrom(t.buffer),i,r,n)}catch(e){throw new St.ErrnoError(wt.convertNodeCode(e))}},write:function(e,t,i,r,n){try{return xi.writeSync(e.nfd,wt.bufferFrom(t.buffer),i,r,n)}catch(e){throw new St.ErrnoError(wt.convertNodeCode(e))}},llseek:function(e,t,i){var r=t;if(1===i)r+=e.position;else if(2===i&&St.isFile(e.node.mode))try{r+=xi.fstatSync(e.nfd).size}catch(e){throw new St.ErrnoError(wt.convertNodeCode(e))}if(r<0)throw new St.ErrnoError(28);return r}}},Et={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function(e){N(d),Et.reader||(Et.reader=new FileReaderSync);var t=Et.createNode(null,"/",Et.DIR_MODE,0),i={};function r(e){for(var r=e.split("/"),n=t,a=0;a=e.node.size)return 0;var a=e.node.contents.slice(n,n+r),s=Et.reader.readAsArrayBuffer(a);return t.set(new Uint8Array(s),i),a.size},write:function(e,t,i,r,n){throw new St.ErrnoError(29)},llseek:function(e,t,i){var r=t;if(1===i?r+=e.position:2===i&&St.isFile(e.node.mode)&&(r+=e.node.size),r<0)throw new St.ErrnoError(28);return r}}},Ct={0:"Success",1:"Arg list too long",2:"Permission denied",3:"Address already in use",4:"Address not available",5:"Address family not supported by protocol family",6:"No more processes",7:"Socket already connected",8:"Bad file number",9:"Trying to read unreadable message",10:"Mount device busy",11:"Operation canceled",12:"No children",13:"Connection aborted",14:"Connection refused",15:"Connection reset by peer",16:"File locking deadlock error",17:"Destination address required",18:"Math arg out of domain of func",19:"Quota exceeded",20:"File exists",21:"Bad address",22:"File too large",23:"Host is unreachable",24:"Identifier removed",25:"Illegal byte sequence",26:"Connection already in progress",27:"Interrupted system call",28:"Invalid argument",29:"I/O error",30:"Socket is already connected",31:"Is a directory",32:"Too many symbolic links",33:"Too many open files",34:"Too many links",35:"Message too long",36:"Multihop attempted",37:"File or path name too long",38:"Network interface is not configured",39:"Connection reset by network",40:"Network is unreachable",41:"Too many open files in system",42:"No buffer space available",43:"No such device",44:"No such file or directory",45:"Exec format error",46:"No record locks available",47:"The link has been severed",48:"Not enough core",49:"No message of desired type",50:"Protocol not available",51:"No space left on device",52:"Function not implemented",53:"Socket is not connected",54:"Not a directory",55:"Directory not empty",56:"State not recoverable",57:"Socket operation on non-socket",59:"Not a typewriter",60:"No such device or address",61:"Value too large for defined data type",62:"Previous owner died",63:"Not super-user",64:"Broken pipe",65:"Protocol error",66:"Unknown protocol",67:"Protocol wrong type for socket",68:"Math result not representable",69:"Read only file system",70:"Illegal seek",71:"No such process",72:"Stale file handle",73:"Connection timed out",74:"Text file busy",75:"Cross-device link",100:"Device not a stream",101:"Bad font file fmt",102:"Invalid slot",103:"Invalid request code",104:"No anode",105:"Block device required",106:"Channel number out of range",107:"Level 3 halted",108:"Level 3 reset",109:"Link number out of range",110:"Protocol driver not attached",111:"No CSI structure available",112:"Level 2 halted",113:"Invalid exchange",114:"Invalid request descriptor",115:"Exchange full",116:"No data (for no delay io)",117:"Timer expired",118:"Out of streams resources",119:"Machine is not on the network",120:"Package not installed",121:"The object is remote",122:"Advertise error",123:"Srmount error",124:"Communication error on send",125:"Cross mount point (not really error)",126:"Given log. name not unique",127:"f.d. invalid for this operation",128:"Remote address changed",129:"Can access a needed shared lib",130:"Accessing a corrupted shared lib",131:".lib section in a.out corrupted",132:"Attempting to link in too many libs",133:"Attempting to exec a shared library",135:"Streams pipe error",136:"Too many users",137:"Socket type not supported",138:"Not supported",139:"Protocol family not supported",140:"Can't send after socket shutdown",141:"Too many references",142:"Host is down",148:"No medium (in tape drive)",156:"Level 2 not synchronized"},St={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,handleFSError:function(e){if(!(e instanceof St.ErrnoError))throw e+" : "+ut();return _t(e.errno)},lookupPath:function(e,t){if(t=t||{},!(e=mt.resolve(St.cwd(),e)))return{path:"",node:null};var i={follow_mount:!0,recurse_count:0};for(var r in i)void 0===t[r]&&(t[r]=i[r]);if(t.recurse_count>8)throw new St.ErrnoError(32);for(var n=pt.normalizeArray(e.split("/").filter((function(e){return!!e})),!1),a=St.root,s="/",o=0;o40)throw new St.ErrnoError(32)}}return{path:s,node:a}},getPath:function(e){for(var t;;){if(St.isRoot(e)){var i=e.mount.mountpoint;return t?"/"!==i[i.length-1]?i+"/"+t:i+t:i}t=t?e.name+"/"+t:e.name,e=e.parent}},hashName:function(e,t){for(var i=0,r=0;r>>0)%St.nameTable.length},hashAddNode:function(e){var t=St.hashName(e.parent.id,e.name);e.name_next=St.nameTable[t],St.nameTable[t]=e},hashRemoveNode:function(e){var t=St.hashName(e.parent.id,e.name);if(St.nameTable[t]===e)St.nameTable[t]=e.name_next;else for(var i=St.nameTable[t];i;){if(i.name_next===e){i.name_next=e.name_next;break}i=i.name_next}},lookupNode:function(e,t){var i=St.mayLookup(e);if(i)throw new St.ErrnoError(i,e);for(var r=St.hashName(e.id,t),n=St.nameTable[r];n;n=n.name_next){var a=n.name;if(n.parent.id===e.id&&a===t)return n}return St.lookup(e,t)},createNode:function(e,t,i,r){if(!St.FSNode){St.FSNode=function(e,t,i,r){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=St.nextInode++,this.name=t,this.mode=i,this.node_ops={},this.stream_ops={},this.rdev=r},St.FSNode.prototype={};Object.defineProperties(St.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return St.isDir(this.mode)}},isDevice:{get:function(){return St.isChrdev(this.mode)}}})}var n=new St.FSNode(e,t,i,r);return St.hashAddNode(n),n},destroyNode:function(e){St.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768==(61440&e)},isDir:function(e){return 16384==(61440&e)},isLink:function(e){return 40960==(61440&e)},isChrdev:function(e){return 8192==(61440&e)},isBlkdev:function(e){return 24576==(61440&e)},isFIFO:function(e){return 4096==(61440&e)},isSocket:function(e){return 49152==(49152&e)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(e){var t=St.flagModes[e];if(void 0===t)throw new Error("Unknown file open mode: "+e);return t},flagsToPermissionString:function(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:function(e,t){return St.ignorePermissions||(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:2},mayLookup:function(e){var t=St.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate:function(e,t){try{St.lookupNode(e,t);return 20}catch(e){}return St.nodePermissions(e,"wx")},mayDelete:function(e,t,i){var r;try{r=St.lookupNode(e,t)}catch(e){return e.errno}var n=St.nodePermissions(e,"wx");if(n)return n;if(i){if(!St.isDir(r.mode))return 54;if(St.isRoot(r)||St.getPath(r)===St.cwd())return 10}else if(St.isDir(r.mode))return 31;return 0},mayOpen:function(e,t){return e?St.isLink(e.mode)?32:St.isDir(e.mode)&&("r"!==St.flagsToPermissionString(t)||512&t)?31:St.nodePermissions(e,St.flagsToPermissionString(t)):44},MAX_OPEN_FDS:4096,nextfd:function(e,t){e=e||0,t=t||St.MAX_OPEN_FDS;for(var i=e;i<=t;i++)if(!St.streams[i])return i;throw new St.ErrnoError(33)},getStream:function(e){return St.streams[e]},createStream:function(e,t,i){St.FSStream||(St.FSStream=function(){},St.FSStream.prototype={},Object.defineProperties(St.FSStream.prototype,{object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new St.FSStream;for(var n in e)r[n]=e[n];e=r;var a=St.nextfd(t,i);return e.fd=a,St.streams[a]=e,e},closeStream:function(e){St.streams[e]=null},chrdev_stream_ops:{open:function(e){var t=St.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new St.ErrnoError(70)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,t){return e<<8|t},registerDevice:function(e,t){St.devices[e]={stream_ops:t}},getDevice:function(e){return St.devices[e]},getMounts:function(e){for(var t=[],i=[e];i.length;){var r=i.pop();t.push(r),i.push.apply(i,r.mounts)}return t},syncfs:function(e,t){"function"==typeof e&&(t=e,e=!1),St.syncFSRequests++,St.syncFSRequests>1&&St.syncFSRequests;var i=St.getMounts(St.root.mount),r=0;function n(e){return N(St.syncFSRequests>0),St.syncFSRequests--,t(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,n(e));++r>=i.length&&n(null)}i.forEach((function(t){if(!t.type.syncfs)return a(null);t.type.syncfs(t,e,a)}))},mount:function(e,t,i){var r,n="/"===i,a=!i;if(n&&St.root)throw new St.ErrnoError(10);if(!n&&!a){var s=St.lookupPath(i,{follow_mount:!1});if(i=s.path,r=s.node,St.isMountpoint(r))throw new St.ErrnoError(10);if(!St.isDir(r.mode))throw new St.ErrnoError(54)}var o={type:e,opts:t,mountpoint:i,mounts:[]},l=e.mount(o);return l.mount=o,o.root=l,n?St.root=l:r&&(r.mounted=o,r.mount&&r.mount.mounts.push(o)),l},unmount:function(e){var t=St.lookupPath(e,{follow_mount:!1});if(!St.isMountpoint(t.node))throw new St.ErrnoError(28);var i=t.node,r=i.mounted,n=St.getMounts(r);Object.keys(St.nameTable).forEach((function(e){for(var t=St.nameTable[e];t;){var i=t.name_next;-1!==n.indexOf(t.mount)&&St.destroyNode(t),t=i}})),i.mounted=null;var a=i.mount.mounts.indexOf(r);N(-1!==a),i.mount.mounts.splice(a,1)},lookup:function(e,t){return e.node_ops.lookup(e,t)},mknod:function(e,t,i){var r=St.lookupPath(e,{parent:!0}).node,n=pt.basename(e);if(!n||"."===n||".."===n)throw new St.ErrnoError(28);var a=St.mayCreate(r,n);if(a)throw new St.ErrnoError(a);if(!r.node_ops.mknod)throw new St.ErrnoError(63);return r.node_ops.mknod(r,n,t,i)},create:function(e,t){return t=void 0!==t?t:438,t&=4095,t|=32768,St.mknod(e,t,0)},mkdir:function(e,t){return t=void 0!==t?t:511,t&=1023,t|=16384,St.mknod(e,t,0)},mkdirTree:function(e,t){for(var i=e.split("/"),r="",n=0;nthis.length-1||e<0)){var t=e%this.chunkSize,i=e/this.chunkSize|0;return this.getter(i)[t]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",i,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+i+". Status: "+e.status);var t,r=Number(e.getResponseHeader("Content-length")),n=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,a=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,s=1048576;n||(s=r);var o=this;o.setDataGetter((function(e){var t=e*s,n=(e+1)*s-1;if(n=Math.min(n,r-1),void 0===o.chunks[e]&&(o.chunks[e]=function(e,t){if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>r-1)throw new Error("only "+r+" bytes available! programmer error!");var n=new XMLHttpRequest;if(n.open("GET",i,!1),r!==s&&n.setRequestHeader("Range","bytes="+e+"-"+t),"undefined"!=typeof Uint8Array&&(n.responseType="arraybuffer"),n.overrideMimeType&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.send(null),!(n.status>=200&&n.status<300||304===n.status))throw new Error("Couldn't load "+i+". Status: "+n.status);return void 0!==n.response?new Uint8Array(n.response||[]):ki(n.responseText||"",!0)}(t,n)),void 0===o.chunks[e])throw new Error("doXHR failed!");return o.chunks[e]})),!a&&r||(s=r=1,r=this.getter(0).length,s=r),this._length=r,this._chunkSize=s,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!d)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s=new a;Object.defineProperties(s,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var o={isDevice:!1,contents:s}}else o={isDevice:!1,url:i};var l=St.createFile(e,t,o,r,n);o.contents?l.contents=o.contents:o.url&&(l.contents=null,l.url=o.url),Object.defineProperties(l,{usedBytes:{get:function(){return this.contents.length}}});var f={};return Object.keys(l.stream_ops).forEach((function(e){var t=l.stream_ops[e];f[e]=function(){if(!St.forceLoadFile(l))throw new St.ErrnoError(29);return t.apply(null,arguments)}})),f.read=function(e,t,i,r,n){if(!St.forceLoadFile(l))throw new St.ErrnoError(29);var a=e.node.contents;if(n>=a.length)return 0;var s=Math.min(a.length-n,r);if(N(s>=0),a.slice)for(var o=0;o>2]=r.dev,le[i+4>>2]=0,le[i+8>>2]=r.ino,le[i+12>>2]=r.mode,le[i+16>>2]=r.nlink,le[i+20>>2]=r.uid,le[i+24>>2]=r.gid,le[i+28>>2]=r.rdev,le[i+32>>2]=0,tt=[r.size>>>0,(et=r.size,+Le(et)>=1?et>0?(0|He(+ze(et/4294967296),4294967295))>>>0:~~+Ne((et-+(~~et>>>0))/4294967296)>>>0:0)],le[i+40>>2]=tt[0],le[i+44>>2]=tt[1],le[i+48>>2]=4096,le[i+52>>2]=r.blocks,le[i+56>>2]=r.atime.getTime()/1e3|0,le[i+60>>2]=0,le[i+64>>2]=r.mtime.getTime()/1e3|0,le[i+68>>2]=0,le[i+72>>2]=r.ctime.getTime()/1e3|0,le[i+76>>2]=0,tt=[r.ino>>>0,(et=r.ino,+Le(et)>=1?et>0?(0|He(+ze(et/4294967296),4294967295))>>>0:~~+Ne((et-+(~~et>>>0))/4294967296)>>>0:0)],le[i+80>>2]=tt[0],le[i+84>>2]=tt[1],0},doMsync:function(e,t,i,r){var n=new Uint8Array(ae.subarray(e,e+i));St.msync(t,n,0,i,r)},doMkdir:function(e,t){return"/"===(e=pt.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),St.mkdir(e,t,0),0},doMknod:function(e,t,i){switch(61440&t){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return St.mknod(e,t,i),0},doReadlink:function(e,t,i){if(i<=0)return-28;var r=St.readlink(e),n=Math.min(i,$(r)),a=ne[t+n];return J(r,t,i+1),ne[t+n]=a,n},doAccess:function(e,t){if(-8&t)return-28;var i;if(!(i=St.lookupPath(e,{follow:!0}).node))return-44;var r="";return 4&t&&(r+="r"),2&t&&(r+="w"),1&t&&(r+="x"),r&&St.nodePermissions(i,r)?-2:0},doDup:function(e,t,i){var r=St.getStream(i);return r&&St.close(r),St.open(e,t,0,i,i).fd},doReadv:function(e,t,i,r){for(var n=0,a=0;a>2],o=le[t+(8*a+4)>>2],l=St.read(e,ne,s,o,r);if(l<0)return-1;if(n+=l,l>2],o=le[t+(8*a+4)>>2],l=St.write(e,ne,s,o,r);if(l<0)return-1;n+=l}return n},varargs:0,get:function(e){return jt.varargs+=4,le[jt.varargs-4>>2]},getStr:function(){return Q(jt.get())},getStreamFromFD:function(e){void 0===e&&(e=jt.get());var t=St.getStream(e);if(!t)throw new St.ErrnoError(8);return t},get64:function(){var e=jt.get(),t=jt.get();return N(e>=0?0===t:-1===t),e},getZero:function(){N(0===jt.get())}};function Tt(e,t){jt.varargs=t;try{var i=jt.getStreamFromFD();switch(jt.get()){case 0:return(r=jt.get())<0?-28:St.open(i.path,i.flags,0,r).fd;case 1:case 2:return 0;case 3:return i.flags;case 4:var r=jt.get();return i.flags|=r,0;case 12:r=jt.get();return se[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return _t(28),-1;default:return-28}}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),-e.errno}}function At(e,t){jt.varargs=t;try{var i=jt.getStreamFromFD(),r=jt.get(),n=jt.get();return St.read(i,ne,r,n)}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),-e.errno}}function xt(e,t){jt.varargs=t;try{var i=jt.getStr(),r=jt.get(),n=jt.get();return St.open(i,r,n).fd}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),-e.errno}}function Mt(){}function kt(e){try{var t=jt.getStreamFromFD(e);return St.close(t),0}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),e.errno}}function Pt(){return kt.apply(null,arguments)}function It(e,t){try{var i=jt.getStreamFromFD(e),r=i.tty?2:St.isDir(i.mode)?3:St.isLink(i.mode)?7:4;return ne[t>>0]=r,0}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),e.errno}}function Ut(){return It.apply(null,arguments)}function Rt(e,t,i,r,n){try{var a=jt.getStreamFromFD(e),s=4294967296*i+(t>>>0);return s<=-9007199254740992||s>=9007199254740992?-61:(St.llseek(a,s,r),tt=[a.position>>>0,(et=a.position,+Le(et)>=1?et>0?(0|He(+ze(et/4294967296),4294967295))>>>0:~~+Ne((et-+(~~et>>>0))/4294967296)>>>0:0)],le[n>>2]=tt[0],le[n+4>>2]=tt[1],a.getdents&&0===s&&0===r&&(a.getdents=null),0)}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),e.errno}}function Dt(){return Rt.apply(null,arguments)}function Ot(e,t,i,r){try{var n=jt.getStreamFromFD(e),a=jt.doWritev(n,t,i);return le[r>>2]=a,0}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),e.errno}}function Ft(){return Ot.apply(null,arguments)}function Bt(e){delete Gt.xhrs[e-1]}function Lt(){Ze()}function Nt(){return void 0===Nt.start&&(Nt.start=Date.now()),1e3*(Date.now()-Nt.start)|0}function zt(){Ze()}function Ht(){return _||"undefined"!=typeof dateNow||"object"===("undefined"==typeof performance?"undefined":a(performance))&&performance&&"function"==typeof performance.now}function Vt(e,t){var i;if(0===e)i=Date.now();else{if(1!==e||!Ht())return _t(28),-1;i=zt()}return le[t>>2]=i/1e3|0,le[t+4>>2]=i%1e3*1e3*1e3|0,0}function Yt(){return ne.length}function qt(){return!d}function Xt(e){try{return R.grow(e-re.byteLength+65535>>16),pe(R.buffer),1}catch(t){console.error("emscripten_realloc_buffer: Attempted to grow heap from "+re.byteLength+" bytes to "+e+" bytes, but got error: "+t)}}function Wt(e){var t=Yt();N(e>t);if(e>2147418112)return S("Cannot enlarge memory, asked to go up to "+e+" bytes, but the limit is 2147418112 bytes!"),!1;for(var i=Math.max(t,16777216);i>2]=t,fe[e+4>>2]=t/4294967296|0},openDatabase:function(e,t,i,r){try{var n=indexedDB.open(e,t)}catch(e){return r(e)}n.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains("FILES")&&t.deleteObjectStore("FILES"),t.createObjectStore("FILES")},n.onsuccess=function(e){i(e.target.result)},n.onerror=function(e){r(e)}},staticInit:function(){var e="undefined"==typeof ENVIRONMENT_IS_FETCH_WORKER;Gt.openDatabase("emscripten_filesystem",1,(function(t){Gt.dbInstance=t,e&&Qe("library_fetch_init")}),(function(){Gt.dbInstance=!1,e&&Qe("library_fetch_init")})),"undefined"!=typeof ENVIRONMENT_IS_FETCH_WORKER&&ENVIRONMENT_IS_FETCH_WORKER||Ke("library_fetch_init")}};function Kt(e,t,i,r,n){var a=fe[e+8>>2];if(a){var s=Q(a),o=e+112,l=Q(o);l||(l="GET");fe[o+32>>2];var f=fe[o+52>>2],u=fe[o+56>>2],c=!!fe[o+60>>2],h=(fe[o+64>>2],fe[o+68>>2]),d=fe[o+72>>2],_=fe[o+76>>2],p=fe[o+80>>2],m=fe[o+84>>2],b=fe[o+88>>2],v=!!(1&f),y=!!(2&f),g=!!(64&f),w=h?Q(h):void 0,E=d?Q(d):void 0,C=p?Q(p):void 0,S=new XMLHttpRequest;if(S.withCredentials=c,S.open(l,s,!g,w,E),g||(S.timeout=u),S.url_=s,N(!y,"streaming uses moz-chunked-arraybuffer which is no longer supported; TODO: rewrite using fetch()"),S.responseType="arraybuffer",p&&S.overrideMimeType(C),_)for(;;){var j=fe[_>>2];if(!j)break;var T=fe[_+4>>2];if(!T)break;_+=8;var A=Q(j),x=Q(T);S.setRequestHeader(A,x)}Gt.xhrs.push(S);var M=Gt.xhrs.length;fe[e+0>>2]=M;var k=m&&b?ae.slice(m,m+b):null;S.onload=function(r){var n=S.response?S.response.byteLength:0,a=0,s=0;v&&!y&&(a=ra(s=n),ae.set(new Uint8Array(S.response),a)),fe[e+12>>2]=a,Gt.setu64(e+16,s),Gt.setu64(e+24,0),n&&Gt.setu64(e+32,n),oe[e+40>>1]=S.readyState,4===S.readyState&&0===S.status&&(S.status=n>0?200:404),oe[e+42>>1]=S.status,S.statusText&&J(S.statusText,e+44,64),S.status>=200&&S.status<300?t&&t(e,S,r):i&&i(e,S,r)},S.onerror=function(t){var r=S.status;4===S.readyState&&0===r&&(r=404),fe[e+12>>2]=0,Gt.setu64(e+16,0),Gt.setu64(e+24,0),Gt.setu64(e+32,0),oe[e+40>>1]=S.readyState,oe[e+42>>1]=r,i&&i(e,S,t)},S.ontimeout=function(t){i&&i(e,S,t)},S.onprogress=function(t){var i=v&&y&&S.response?S.response.byteLength:0,n=0;v&&y&&(n=ra(i),ae.set(new Uint8Array(S.response),n)),fe[e+12>>2]=n,Gt.setu64(e+16,i),Gt.setu64(e+24,t.loaded-i),Gt.setu64(e+32,t.total),oe[e+40>>1]=S.readyState,S.readyState>=3&&0===S.status&&t.loaded>0&&(S.status=200),oe[e+42>>1]=S.status,S.statusText&&J(S.statusText,e+44,64),r&&r(e,S,t)},S.onreadystatechange=function(t){oe[e+40>>1]=S.readyState,S.readyState>=2&&(oe[e+42>>1]=S.status),n&&n(e,S,t)};try{S.send(k)}catch(t){i&&i(e,S,t)}}else i(e,0,"no url specified!")}function Qt(e,t,i,r,n){if(e){var a=fe[t+112+64>>2];a||(a=fe[t+8>>2]);var s=Q(a);try{var o=e.transaction(["FILES"],"readwrite").objectStore("FILES").put(i,s);o.onsuccess=function(e){oe[t+40>>1]=4,oe[t+42>>1]=200,J("OK",t+44,64),r(t,0,s)},o.onerror=function(e){oe[t+40>>1]=4,oe[t+42>>1]=413,J("Payload Too Large",t+44,64),n(t,0,e)}}catch(e){n(t,0,e)}}else n(t,0,"IndexedDB not available!")}function Zt(e,t,i,r){if(e){var n=fe[t+112+64>>2];n||(n=fe[t+8>>2]);var a=Q(n);try{var s=e.transaction(["FILES"],"readonly").objectStore("FILES").get(a);s.onsuccess=function(e){if(e.target.result){var n=e.target.result,a=n.byteLength||n.length,s=ra(a);ae.set(new Uint8Array(n),s),fe[t+12>>2]=s,Gt.setu64(t+16,a),Gt.setu64(t+24,0),Gt.setu64(t+32,a),oe[t+40>>1]=4,oe[t+42>>1]=200,J("OK",t+44,64),i(t,0,n)}else oe[t+40>>1]=4,oe[t+42>>1]=404,J("Not Found",t+44,64),r(t,0,"no data")},s.onerror=function(e){oe[t+40>>1]=4,oe[t+42>>1]=404,J("Not Found",t+44,64),r(t,0,e)}}catch(e){r(t,0,e)}}else r(t,0,"IndexedDB not available!")}function Jt(e,t,i,r){if(e){var n=fe[t+112+64>>2];n||(n=fe[t+8>>2]);var a=Q(n);try{var s=e.transaction(["FILES"],"readwrite").objectStore("FILES").delete(a);s.onsuccess=function(e){var r=e.target.result;fe[t+12>>2]=0,Gt.setu64(t+16,0),Gt.setu64(t+24,0),Gt.setu64(t+32,0),oe[t+40>>1]=4,oe[t+42>>1]=200,J("OK",t+44,64),i(t,0,r)},s.onerror=function(e){oe[t+40>>1]=4,oe[t+42>>1]=404,J("Not Found",t+44,64),r(t,0,e)}}catch(e){r(t,0,e)}}else r(t,0,"IndexedDB not available!")}function $t(e,t,i,r,n){void 0!==U&&(U=!0);var a=e+112,s=Q(a),o=fe[a+36>>2],l=fe[a+40>>2],f=fe[a+44>>2],u=fe[a+48>>2],c=fe[a+52>>2],h=!!(4&c),d=!!(32&c),_=!!(16&c),p=function(e,i,r){o?oa(o,e):t&&t(e)},m=function(e,t,i){f?oa(f,e):r&&r(e)},b=function(e,t,r){l?oa(l,e):i&&i(e)},v=function(e,t,i){u?oa(u,e):n&&n(e)},y=function(e,i,r){Qt(Gt.dbInstance,e,i.response,(function(e,i,r){o?oa(o,e):t&&t(e)}),(function(e,i,r){o?oa(o,e):t&&t(e)}))};if("EM_IDB_STORE"===s){var g=fe[a+84>>2];Qt(Gt.dbInstance,e,ae.slice(g,g+fe[a+88>>2]),p,b)}else if("EM_IDB_DELETE"===s)Jt(Gt.dbInstance,e,p,b);else if(_){if(d)return 0;Kt(e,h?y:p,b,m,v)}else Zt(Gt.dbInstance,e,p,d?b:h?function(e,t,i){Kt(e,y,b,m,v)}:function(e,t,i){Kt(e,p,b,m,v)});return e}var ei=Le;function ti(e){return 0===e?0:(e=Q(e),ct.hasOwnProperty(e)?(ti.ret&&ia(ti.ret),ti.ret=ee(ct[e]),ti.ret):0)}function ii(e){var t=Date.now();return le[e>>2]=t/1e3|0,le[e+4>>2]=t%1e3*1e3|0,0}var ri=(J("GMT",1124432,4),1124432);function ni(e,t){var i=new Date(1e3*le[e>>2]);le[t>>2]=i.getUTCSeconds(),le[t+4>>2]=i.getUTCMinutes(),le[t+8>>2]=i.getUTCHours(),le[t+12>>2]=i.getUTCDate(),le[t+16>>2]=i.getUTCMonth(),le[t+20>>2]=i.getUTCFullYear()-1900,le[t+24>>2]=i.getUTCDay(),le[t+36>>2]=0,le[t+32>>2]=0;var r=Date.UTC(i.getUTCFullYear(),0,1,0,0,0,0),n=(i.getTime()-r)/864e5|0;return le[t+28>>2]=n,le[t+40>>2]=ri,t}function ai(e){return Math.pow(2,e)}function si(e){return ai(e)}function oi(e){return Math.log(e)/Math.LN2}function li(e){var t=fi,i=t.LLVM_SAVEDSTACKS[e];t.LLVM_SAVEDSTACKS.splice(e,1),aa(i)}function fi(){var e=fi;return e.LLVM_SAVEDSTACKS||(e.LLVM_SAVEDSTACKS=[]),e.LLVM_SAVEDSTACKS.push(sa()),e.LLVM_SAVEDSTACKS.length-1}var ui=Ve;function ci(){if(!ci.called){ci.called=!0,le[ea()>>2]=60*(new Date).getTimezoneOffset();var e=(new Date).getFullYear(),t=new Date(e,0,1),i=new Date(e,6,1);le[$n()>>2]=Number(t.getTimezoneOffset()!=i.getTimezoneOffset());var r=o(t),n=o(i),a=X(ki(r),"i8",Y),s=X(ki(n),"i8",Y);i.getTimezoneOffset()>2]=a,le[ta()+4>>2]=s):(le[ta()>>2]=s,le[ta()+4>>2]=a)}function o(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}}function hi(e,t){ci();var i=new Date(1e3*le[e>>2]);le[t>>2]=i.getSeconds(),le[t+4>>2]=i.getMinutes(),le[t+8>>2]=i.getHours(),le[t+12>>2]=i.getDate(),le[t+16>>2]=i.getMonth(),le[t+20>>2]=i.getFullYear()-1900,le[t+24>>2]=i.getDay();var r=new Date(i.getFullYear(),0,1),n=(i.getTime()-r.getTime())/864e5|0;le[t+28>>2]=n,le[t+36>>2]=-60*i.getTimezoneOffset();var a=new Date(i.getFullYear(),6,1).getTimezoneOffset(),s=r.getTimezoneOffset(),o=0|(a!=s&&i.getTimezoneOffset()==Math.min(s,a));le[t+32>>2]=o;var l=le[ta()+(o?4:0)>>2];return le[t+40>>2]=l,t}function di(e,t,i){ae.set(ae.subarray(t,t+i),e)}function _i(e){var t=e/1e3;if((h||d)&&self.performance&&self.performance.now)for(var i=self.performance.now();self.performance.now()-i>2],r=le[e+4>>2];return r<0||r>999999999||i<0?(_t(28),-1):(0!==t&&(le[t>>2]=0,le[t+4>>2]=0),_i(1e6*i+r/1e3))}function mi(){return 0}function bi(){return 0}function vi(){return 6}function yi(){}function gi(e){return e%4==0&&(e%100!=0||e%400==0)}function wi(e,t){for(var i=0,r=0;r<=t;i+=e[r++]);return i}var Ei=[31,29,31,30,31,30,31,31,30,31,30,31],Ci=[31,28,31,30,31,30,31,31,30,31,30,31];function Si(e,t){for(var i=new Date(e.getTime());t>0;){var r=gi(i.getFullYear()),n=i.getMonth(),a=(r?Ei:Ci)[n];if(!(t>a-i.getDate()))return i.setDate(i.getDate()+t),i;t-=a-i.getDate()+1,i.setDate(1),n<11?i.setMonth(n+1):(i.setMonth(0),i.setFullYear(i.getFullYear()+1))}return i}function ji(e,t,i,r){var n=le[r+40>>2],a={tm_sec:le[r>>2],tm_min:le[r+4>>2],tm_hour:le[r+8>>2],tm_mday:le[r+12>>2],tm_mon:le[r+16>>2],tm_year:le[r+20>>2],tm_wday:le[r+24>>2],tm_yday:le[r+28>>2],tm_isdst:le[r+32>>2],tm_gmtoff:le[r+36>>2],tm_zone:n?Q(n):""},s=Q(i),o={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in o)s=s.replace(new RegExp(l,"g"),o[l]);var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],u=["January","February","March","April","May","June","July","August","September","October","November","December"];function c(e,t,i){for(var r="number"==typeof e?e.toString():e||"";r.length0?1:0}var r;return 0===(r=i(e.getFullYear()-t.getFullYear()))&&0===(r=i(e.getMonth()-t.getMonth()))&&(r=i(e.getDate()-t.getDate())),r}function _(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function p(e){var t=Si(new Date(e.tm_year+1900,0,1),e.tm_yday),i=new Date(t.getFullYear(),0,4),r=new Date(t.getFullYear()+1,0,4),n=_(i),a=_(r);return d(n,t)<=0?d(a,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var m={"%a":function(e){return f[e.tm_wday].substring(0,3)},"%A":function(e){return f[e.tm_wday]},"%b":function(e){return u[e.tm_mon].substring(0,3)},"%B":function(e){return u[e.tm_mon]},"%C":function(e){return h((e.tm_year+1900)/100|0,2)},"%d":function(e){return h(e.tm_mday,2)},"%e":function(e){return c(e.tm_mday,2," ")},"%g":function(e){return p(e).toString().substring(2)},"%G":function(e){return p(e)},"%H":function(e){return h(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),h(t,2)},"%j":function(e){return h(e.tm_mday+wi(gi(e.tm_year+1900)?Ei:Ci,e.tm_mon-1),3)},"%m":function(e){return h(e.tm_mon+1,2)},"%M":function(e){return h(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return h(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var t=new Date(e.tm_year+1900,0,1),i=0===t.getDay()?t:Si(t,7-t.getDay()),r=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(d(i,r)<0){var n=wi(gi(r.getFullYear())?Ei:Ci,r.getMonth()-1)-31,a=31-i.getDate()+n+r.getDate();return h(Math.ceil(a/7),2)}return 0===d(i,t)?"01":"00"},"%V":function(e){var t,i=new Date(e.tm_year+1900,0,4),r=new Date(e.tm_year+1901,0,4),n=_(i),a=_(r),s=Si(new Date(e.tm_year+1900,0,1),e.tm_yday);return d(s,n)<0?"53":d(a,s)<=0?"01":(t=n.getFullYear()=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(i?"+":"-")+String("0000"+t).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var l in m)s.indexOf(l)>=0&&(s=s.replace(new RegExp(l,"g"),m[l](a)));var b=ki(s,!1);return b.length>t?0:(te(b,e),b.length-1)}function Ti(e){switch(e){case 30:return he;case 85:return 2147418112/he;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"===("undefined"==typeof navigator?"undefined":a(navigator))&&navigator.hardwareConcurrency||1}return _t(28),-1}function Ai(e){var t=Date.now()/1e3|0;return e&&(le[e>>2]=t),t}if(St.staticInit(),p){var xi=e("fs"),Mi=e("path");wt.staticInit()}function ki(e,t,i){var r=i>0?i:$(e)+1,n=new Array(r),a=Z(e,n,0,n.length);return t&&(n.length=a),n}zt=_?function(){var e=i.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:"object"===("undefined"==typeof performance?"undefined":a(performance))&&performance&&"function"==typeof performance.now?function(){return performance.now()}:Date.now,Gt.staticInit();var Pi=[0,"jsCall_dd_0","jsCall_dd_1","jsCall_dd_2","jsCall_dd_3","jsCall_dd_4","jsCall_dd_5","jsCall_dd_6","jsCall_dd_7","jsCall_dd_8","jsCall_dd_9","jsCall_dd_10","jsCall_dd_11","jsCall_dd_12","jsCall_dd_13","jsCall_dd_14","jsCall_dd_15","jsCall_dd_16","jsCall_dd_17","jsCall_dd_18","jsCall_dd_19","jsCall_dd_20","jsCall_dd_21","jsCall_dd_22","jsCall_dd_23","jsCall_dd_24","jsCall_dd_25","jsCall_dd_26","jsCall_dd_27","jsCall_dd_28","jsCall_dd_29","jsCall_dd_30","jsCall_dd_31","jsCall_dd_32","jsCall_dd_33","jsCall_dd_34","_sinh","_cosh","_tanh","_sin","_cos","_tan","_atan","_asin","_acos","_exp","_log","_fabs","_etime",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ii=[0,"jsCall_did_0","jsCall_did_1","jsCall_did_2","jsCall_did_3","jsCall_did_4","jsCall_did_5","jsCall_did_6","jsCall_did_7","jsCall_did_8","jsCall_did_9","jsCall_did_10","jsCall_did_11","jsCall_did_12","jsCall_did_13","jsCall_did_14","jsCall_did_15","jsCall_did_16","jsCall_did_17","jsCall_did_18","jsCall_did_19","jsCall_did_20","jsCall_did_21","jsCall_did_22","jsCall_did_23","jsCall_did_24","jsCall_did_25","jsCall_did_26","jsCall_did_27","jsCall_did_28","jsCall_did_29","jsCall_did_30","jsCall_did_31","jsCall_did_32","jsCall_did_33","jsCall_did_34",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,0],Ui=[0,"jsCall_didd_0","jsCall_didd_1","jsCall_didd_2","jsCall_didd_3","jsCall_didd_4","jsCall_didd_5","jsCall_didd_6","jsCall_didd_7","jsCall_didd_8","jsCall_didd_9","jsCall_didd_10","jsCall_didd_11","jsCall_didd_12","jsCall_didd_13","jsCall_didd_14","jsCall_didd_15","jsCall_didd_16","jsCall_didd_17","jsCall_didd_18","jsCall_didd_19","jsCall_didd_20","jsCall_didd_21","jsCall_didd_22","jsCall_didd_23","jsCall_didd_24","jsCall_didd_25","jsCall_didd_26","jsCall_didd_27","jsCall_didd_28","jsCall_didd_29","jsCall_didd_30","jsCall_didd_31","jsCall_didd_32","jsCall_didd_33","jsCall_didd_34",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,0],Ri=[0,"jsCall_fii_0","jsCall_fii_1","jsCall_fii_2","jsCall_fii_3","jsCall_fii_4","jsCall_fii_5","jsCall_fii_6","jsCall_fii_7","jsCall_fii_8","jsCall_fii_9","jsCall_fii_10","jsCall_fii_11","jsCall_fii_12","jsCall_fii_13","jsCall_fii_14","jsCall_fii_15","jsCall_fii_16","jsCall_fii_17","jsCall_fii_18","jsCall_fii_19","jsCall_fii_20","jsCall_fii_21","jsCall_fii_22","jsCall_fii_23","jsCall_fii_24","jsCall_fii_25","jsCall_fii_26","jsCall_fii_27","jsCall_fii_28","jsCall_fii_29","jsCall_fii_30","jsCall_fii_31","jsCall_fii_32","jsCall_fii_33","jsCall_fii_34","_sbr_sum_square_c",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],Di=[0,"jsCall_fiii_0","jsCall_fiii_1","jsCall_fiii_2","jsCall_fiii_3","jsCall_fiii_4","jsCall_fiii_5","jsCall_fiii_6","jsCall_fiii_7","jsCall_fiii_8","jsCall_fiii_9","jsCall_fiii_10","jsCall_fiii_11","jsCall_fiii_12","jsCall_fiii_13","jsCall_fiii_14","jsCall_fiii_15","jsCall_fiii_16","jsCall_fiii_17","jsCall_fiii_18","jsCall_fiii_19","jsCall_fiii_20","jsCall_fiii_21","jsCall_fiii_22","jsCall_fiii_23","jsCall_fiii_24","jsCall_fiii_25","jsCall_fiii_26","jsCall_fiii_27","jsCall_fiii_28","jsCall_fiii_29","jsCall_fiii_30","jsCall_fiii_31","jsCall_fiii_32","jsCall_fiii_33","jsCall_fiii_34","_avpriv_scalarproduct_float_c",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],Oi=[0,"jsCall_ii_0","jsCall_ii_1","jsCall_ii_2","jsCall_ii_3","jsCall_ii_4","jsCall_ii_5","jsCall_ii_6","jsCall_ii_7","jsCall_ii_8","jsCall_ii_9","jsCall_ii_10","jsCall_ii_11","jsCall_ii_12","jsCall_ii_13","jsCall_ii_14","jsCall_ii_15","jsCall_ii_16","jsCall_ii_17","jsCall_ii_18","jsCall_ii_19","jsCall_ii_20","jsCall_ii_21","jsCall_ii_22","jsCall_ii_23","jsCall_ii_24","jsCall_ii_25","jsCall_ii_26","jsCall_ii_27","jsCall_ii_28","jsCall_ii_29","jsCall_ii_30","jsCall_ii_31","jsCall_ii_32","jsCall_ii_33","jsCall_ii_34","_av_default_item_name","_ff_avio_child_class_next","_flv_probe","_flv_read_header","_flv_read_close","_live_flv_probe","_mov_probe","_mov_read_header","_mov_read_close","_mpegts_probe","_mpegts_read_header","_mpegts_read_close","_format_to_name","_format_child_class_next","_get_category","_urlcontext_to_name","_ff_urlcontext_child_class_next","_sws_context_to_name","_ff_bsf_child_class_next","_hevc_mp4toannexb_init","_hevc_init_thread_copy","_hevc_decode_init","_hevc_decode_free","_context_to_name","_codec_child_class_next","_get_category_2087","_aac_decode_init","_aac_decode_close","_init","___stdio_close","___emscripten_stdout_close","_initSniffStreamFunc","_releaseSniffStreamFunc","_initializeDecoderFunc","__getFrame","_closeVideoFunc","_releaseFunc","_initializeDemuxerFunc","_getPacketFunc","_releaseDemuxerFunc","_io_short_seek","_avio_rb16","_avio_rl16","_av_buffer_allocz","_frame_worker_thread","_av_buffer_alloc","_thread_worker",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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Fi=[0,"jsCall_iidiiii_0","jsCall_iidiiii_1","jsCall_iidiiii_2","jsCall_iidiiii_3","jsCall_iidiiii_4","jsCall_iidiiii_5","jsCall_iidiiii_6","jsCall_iidiiii_7","jsCall_iidiiii_8","jsCall_iidiiii_9","jsCall_iidiiii_10","jsCall_iidiiii_11","jsCall_iidiiii_12","jsCall_iidiiii_13","jsCall_iidiiii_14","jsCall_iidiiii_15","jsCall_iidiiii_16","jsCall_iidiiii_17","jsCall_iidiiii_18","jsCall_iidiiii_19","jsCall_iidiiii_20","jsCall_iidiiii_21","jsCall_iidiiii_22","jsCall_iidiiii_23","jsCall_iidiiii_24","jsCall_iidiiii_25","jsCall_iidiiii_26","jsCall_iidiiii_27","jsCall_iidiiii_28","jsCall_iidiiii_29","jsCall_iidiiii_30","jsCall_iidiiii_31","jsCall_iidiiii_32","jsCall_iidiiii_33","jsCall_iidiiii_34","_fmt_fp",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],Bi=[0,"jsCall_iii_0","jsCall_iii_1","jsCall_iii_2","jsCall_iii_3","jsCall_iii_4","jsCall_iii_5","jsCall_iii_6","jsCall_iii_7","jsCall_iii_8","jsCall_iii_9","jsCall_iii_10","jsCall_iii_11","jsCall_iii_12","jsCall_iii_13","jsCall_iii_14","jsCall_iii_15","jsCall_iii_16","jsCall_iii_17","jsCall_iii_18","jsCall_iii_19","jsCall_iii_20","jsCall_iii_21","jsCall_iii_22","jsCall_iii_23","jsCall_iii_24","jsCall_iii_25","jsCall_iii_26","jsCall_iii_27","jsCall_iii_28","jsCall_iii_29","jsCall_iii_30","jsCall_iii_31","jsCall_iii_32","jsCall_iii_33","jsCall_iii_34","_ff_avio_child_next","_flv_read_packet","_mov_read_packet","_mpegts_read_packet","_mpegts_raw_read_packet","_format_child_next","_urlcontext_child_next","_bsf_child_next","_hevc_mp4toannexb_filter","_hevc_update_thread_context","_null_filter","_codec_child_next","_getSniffStreamPacketFunc","_io_read_pause","_descriptor_compare","_hls_decode_entry","_avcodec_default_get_format","_ff_startcode_find_candidate_c","_color_table_compare",0,0,0,0,0,0,0,0,0],Li=[0,"jsCall_iiii_0","jsCall_iiii_1","jsCall_iiii_2","jsCall_iiii_3","jsCall_iiii_4","jsCall_iiii_5","jsCall_iiii_6","jsCall_iiii_7","jsCall_iiii_8","jsCall_iiii_9","jsCall_iiii_10","jsCall_iiii_11","jsCall_iiii_12","jsCall_iiii_13","jsCall_iiii_14","jsCall_iiii_15","jsCall_iiii_16","jsCall_iiii_17","jsCall_iiii_18","jsCall_iiii_19","jsCall_iiii_20","jsCall_iiii_21","jsCall_iiii_22","jsCall_iiii_23","jsCall_iiii_24","jsCall_iiii_25","jsCall_iiii_26","jsCall_iiii_27","jsCall_iiii_28","jsCall_iiii_29","jsCall_iiii_30","jsCall_iiii_31","jsCall_iiii_32","jsCall_iiii_33","jsCall_iiii_34","_mov_read_aclr","_mov_read_avid","_mov_read_ares","_mov_read_avss","_mov_read_av1c","_mov_read_chpl","_mov_read_stco","_mov_read_colr","_mov_read_ctts","_mov_read_default","_mov_read_dpxe","_mov_read_dref","_mov_read_elst","_mov_read_enda","_mov_read_fiel","_mov_read_adrm","_mov_read_ftyp","_mov_read_glbl","_mov_read_hdlr","_mov_read_ilst","_mov_read_jp2h","_mov_read_mdat","_mov_read_mdhd","_mov_read_meta","_mov_read_moof","_mov_read_moov","_mov_read_mvhd","_mov_read_svq3","_mov_read_alac","_mov_read_pasp","_mov_read_sidx","_mov_read_stps","_mov_read_strf","_mov_read_stsc","_mov_read_stsd","_mov_read_stss","_mov_read_stsz","_mov_read_stts","_mov_read_tkhd","_mov_read_tfdt","_mov_read_tfhd","_mov_read_trak","_mov_read_tmcd","_mov_read_chap","_mov_read_trex","_mov_read_trun","_mov_read_wave","_mov_read_esds","_mov_read_dac3","_mov_read_dec3","_mov_read_ddts","_mov_read_wide","_mov_read_wfex","_mov_read_cmov","_mov_read_chan","_mov_read_dvc1","_mov_read_sbgp","_mov_read_uuid","_mov_read_targa_y216","_mov_read_free","_mov_read_custom","_mov_read_frma","_mov_read_senc","_mov_read_saiz","_mov_read_saio","_mov_read_pssh","_mov_read_schm","_mov_read_tenc","_mov_read_dfla","_mov_read_st3d","_mov_read_sv3d","_mov_read_dops","_mov_read_smdm","_mov_read_coll","_mov_read_vpcc","_mov_read_mdcv","_mov_read_clli","_h264_split","_hevc_split","___stdio_write","_sn_write","_read_stream","_setCodecTypeFunc","_read_packet","_demuxBoxFunc","_io_write_packet","_io_read_packet","_dyn_buf_write","_mov_read_keys","_mov_read_udta_string","_avcodec_default_get_buffer2","_do_read"],Ni=[0,"jsCall_iiiii_0","jsCall_iiiii_1","jsCall_iiiii_2","jsCall_iiiii_3","jsCall_iiiii_4","jsCall_iiiii_5","jsCall_iiiii_6","jsCall_iiiii_7","jsCall_iiiii_8","jsCall_iiiii_9","jsCall_iiiii_10","jsCall_iiiii_11","jsCall_iiiii_12","jsCall_iiiii_13","jsCall_iiiii_14","jsCall_iiiii_15","jsCall_iiiii_16","jsCall_iiiii_17","jsCall_iiiii_18","jsCall_iiiii_19","jsCall_iiiii_20","jsCall_iiiii_21","jsCall_iiiii_22","jsCall_iiiii_23","jsCall_iiiii_24","jsCall_iiiii_25","jsCall_iiiii_26","jsCall_iiiii_27","jsCall_iiiii_28","jsCall_iiiii_29","jsCall_iiiii_30","jsCall_iiiii_31","jsCall_iiiii_32","jsCall_iiiii_33","jsCall_iiiii_34","_hevc_decode_frame","_aac_decode_frame","_pushBufferFunc","_decodeCodecContextFunc","_mov_metadata_int8_no_padding","_mov_metadata_track_or_disc_number","_mov_metadata_gnre","_mov_metadata_int8_bypass_padding","_lum_planar_vscale","_chr_planar_vscale","_any_vscale","_packed_vscale","_gamma_convert","_lum_convert","_lum_h_scale","_chr_convert","_chr_h_scale","_no_chr_scale","_hls_decode_entry_wpp",0,0,0,0,0,0,0,0,0],zi=[0,"jsCall_iiiiii_0","jsCall_iiiiii_1","jsCall_iiiiii_2","jsCall_iiiiii_3","jsCall_iiiiii_4","jsCall_iiiiii_5","jsCall_iiiiii_6","jsCall_iiiiii_7","jsCall_iiiiii_8","jsCall_iiiiii_9","jsCall_iiiiii_10","jsCall_iiiiii_11","jsCall_iiiiii_12","jsCall_iiiiii_13","jsCall_iiiiii_14","jsCall_iiiiii_15","jsCall_iiiiii_16","jsCall_iiiiii_17","jsCall_iiiiii_18","jsCall_iiiiii_19","jsCall_iiiiii_20","jsCall_iiiiii_21","jsCall_iiiiii_22","jsCall_iiiiii_23","jsCall_iiiiii_24","jsCall_iiiiii_25","jsCall_iiiiii_26","jsCall_iiiiii_27","jsCall_iiiiii_28","jsCall_iiiiii_29","jsCall_iiiiii_30","jsCall_iiiiii_31","jsCall_iiiiii_32","jsCall_iiiiii_33","jsCall_iiiiii_34","_io_open_default","_avcodec_default_execute2","_thread_execute2","_sbr_lf_gen",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Hi=[0,"jsCall_iiiiiii_0","jsCall_iiiiiii_1","jsCall_iiiiiii_2","jsCall_iiiiiii_3","jsCall_iiiiiii_4","jsCall_iiiiiii_5","jsCall_iiiiiii_6","jsCall_iiiiiii_7","jsCall_iiiiiii_8","jsCall_iiiiiii_9","jsCall_iiiiiii_10","jsCall_iiiiiii_11","jsCall_iiiiiii_12","jsCall_iiiiiii_13","jsCall_iiiiiii_14","jsCall_iiiiiii_15","jsCall_iiiiiii_16","jsCall_iiiiiii_17","jsCall_iiiiiii_18","jsCall_iiiiiii_19","jsCall_iiiiiii_20","jsCall_iiiiiii_21","jsCall_iiiiiii_22","jsCall_iiiiiii_23","jsCall_iiiiiii_24","jsCall_iiiiiii_25","jsCall_iiiiiii_26","jsCall_iiiiiii_27","jsCall_iiiiiii_28","jsCall_iiiiiii_29","jsCall_iiiiiii_30","jsCall_iiiiiii_31","jsCall_iiiiiii_32","jsCall_iiiiiii_33","jsCall_iiiiiii_34","_h264_parse","_hevc_parse","_decodeVideoFrameFunc","_avcodec_default_execute","_thread_execute","_sbr_x_gen",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Vi=[0,"jsCall_iiiiiiii_0","jsCall_iiiiiiii_1","jsCall_iiiiiiii_2","jsCall_iiiiiiii_3","jsCall_iiiiiiii_4","jsCall_iiiiiiii_5","jsCall_iiiiiiii_6","jsCall_iiiiiiii_7","jsCall_iiiiiiii_8","jsCall_iiiiiiii_9","jsCall_iiiiiiii_10","jsCall_iiiiiiii_11","jsCall_iiiiiiii_12","jsCall_iiiiiiii_13","jsCall_iiiiiiii_14","jsCall_iiiiiiii_15","jsCall_iiiiiiii_16","jsCall_iiiiiiii_17","jsCall_iiiiiiii_18","jsCall_iiiiiiii_19","jsCall_iiiiiiii_20","jsCall_iiiiiiii_21","jsCall_iiiiiiii_22","jsCall_iiiiiiii_23","jsCall_iiiiiiii_24","jsCall_iiiiiiii_25","jsCall_iiiiiiii_26","jsCall_iiiiiiii_27","jsCall_iiiiiiii_28","jsCall_iiiiiiii_29","jsCall_iiiiiiii_30","jsCall_iiiiiiii_31","jsCall_iiiiiiii_32","jsCall_iiiiiiii_33","jsCall_iiiiiiii_34","_setSniffStreamCodecTypeFunc","_swscale","_ff_sws_alphablendaway","_yuv2rgb_c_32","_yuva2rgba_c","_yuv2rgb_c_bgr48","_yuv2rgb_c_48","_yuva2argb_c","_yuv2rgb_c_24_rgb","_yuv2rgb_c_24_bgr","_yuv2rgb_c_16_ordered_dither","_yuv2rgb_c_15_ordered_dither","_yuv2rgb_c_12_ordered_dither","_yuv2rgb_c_8_ordered_dither","_yuv2rgb_c_4_ordered_dither","_yuv2rgb_c_4b_ordered_dither","_yuv2rgb_c_1_ordered_dither","_planarToP01xWrapper","_planar8ToP01xleWrapper","_yvu9ToYv12Wrapper","_bgr24ToYv12Wrapper","_rgbToRgbWrapper","_planarRgbToplanarRgbWrapper","_planarRgbToRgbWrapper","_planarRgbaToRgbWrapper","_Rgb16ToPlanarRgb16Wrapper","_planarRgb16ToRgb16Wrapper","_rgbToPlanarRgbWrapper","_bayer_to_rgb24_wrapper","_bayer_to_yv12_wrapper","_bswap_16bpc","_palToRgbWrapper","_yuv422pToYuy2Wrapper","_yuv422pToUyvyWrapper","_uint_y_to_float_y_wrapper","_float_y_to_uint_y_wrapper","_planarToYuy2Wrapper","_planarToUyvyWrapper","_yuyvToYuv420Wrapper","_uyvyToYuv420Wrapper","_yuyvToYuv422Wrapper","_uyvyToYuv422Wrapper","_packedCopyWrapper","_planarCopyWrapper","_planarToNv12Wrapper","_planarToNv24Wrapper","_nv12ToPlanarWrapper","_nv24ToPlanarWrapper",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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Yi=[0,"jsCall_iiiiij_0","jsCall_iiiiij_1","jsCall_iiiiij_2","jsCall_iiiiij_3","jsCall_iiiiij_4","jsCall_iiiiij_5","jsCall_iiiiij_6","jsCall_iiiiij_7","jsCall_iiiiij_8","jsCall_iiiiij_9","jsCall_iiiiij_10","jsCall_iiiiij_11","jsCall_iiiiij_12","jsCall_iiiiij_13","jsCall_iiiiij_14","jsCall_iiiiij_15","jsCall_iiiiij_16","jsCall_iiiiij_17","jsCall_iiiiij_18","jsCall_iiiiij_19","jsCall_iiiiij_20","jsCall_iiiiij_21","jsCall_iiiiij_22","jsCall_iiiiij_23","jsCall_iiiiij_24","jsCall_iiiiij_25","jsCall_iiiiij_26","jsCall_iiiiij_27","jsCall_iiiiij_28","jsCall_iiiiij_29","jsCall_iiiiij_30","jsCall_iiiiij_31","jsCall_iiiiij_32","jsCall_iiiiij_33","jsCall_iiiiij_34","_mpegts_push_data",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],qi=[0,"jsCall_iiiji_0","jsCall_iiiji_1","jsCall_iiiji_2","jsCall_iiiji_3","jsCall_iiiji_4","jsCall_iiiji_5","jsCall_iiiji_6","jsCall_iiiji_7","jsCall_iiiji_8","jsCall_iiiji_9","jsCall_iiiji_10","jsCall_iiiji_11","jsCall_iiiji_12","jsCall_iiiji_13","jsCall_iiiji_14","jsCall_iiiji_15","jsCall_iiiji_16","jsCall_iiiji_17","jsCall_iiiji_18","jsCall_iiiji_19","jsCall_iiiji_20","jsCall_iiiji_21","jsCall_iiiji_22","jsCall_iiiji_23","jsCall_iiiji_24","jsCall_iiiji_25","jsCall_iiiji_26","jsCall_iiiji_27","jsCall_iiiji_28","jsCall_iiiji_29","jsCall_iiiji_30","jsCall_iiiji_31","jsCall_iiiji_32","jsCall_iiiji_33","jsCall_iiiji_34","_flv_read_seek","_mov_read_seek",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],Xi=[0,"jsCall_jiiij_0","jsCall_jiiij_1","jsCall_jiiij_2","jsCall_jiiij_3","jsCall_jiiij_4","jsCall_jiiij_5","jsCall_jiiij_6","jsCall_jiiij_7","jsCall_jiiij_8","jsCall_jiiij_9","jsCall_jiiij_10","jsCall_jiiij_11","jsCall_jiiij_12","jsCall_jiiij_13","jsCall_jiiij_14","jsCall_jiiij_15","jsCall_jiiij_16","jsCall_jiiij_17","jsCall_jiiij_18","jsCall_jiiij_19","jsCall_jiiij_20","jsCall_jiiij_21","jsCall_jiiij_22","jsCall_jiiij_23","jsCall_jiiij_24","jsCall_jiiij_25","jsCall_jiiij_26","jsCall_jiiij_27","jsCall_jiiij_28","jsCall_jiiij_29","jsCall_jiiij_30","jsCall_jiiij_31","jsCall_jiiij_32","jsCall_jiiij_33","jsCall_jiiij_34","_mpegts_get_dts",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],Wi=[0,"jsCall_jiiji_0","jsCall_jiiji_1","jsCall_jiiji_2","jsCall_jiiji_3","jsCall_jiiji_4","jsCall_jiiji_5","jsCall_jiiji_6","jsCall_jiiji_7","jsCall_jiiji_8","jsCall_jiiji_9","jsCall_jiiji_10","jsCall_jiiji_11","jsCall_jiiji_12","jsCall_jiiji_13","jsCall_jiiji_14","jsCall_jiiji_15","jsCall_jiiji_16","jsCall_jiiji_17","jsCall_jiiji_18","jsCall_jiiji_19","jsCall_jiiji_20","jsCall_jiiji_21","jsCall_jiiji_22","jsCall_jiiji_23","jsCall_jiiji_24","jsCall_jiiji_25","jsCall_jiiji_26","jsCall_jiiji_27","jsCall_jiiji_28","jsCall_jiiji_29","jsCall_jiiji_30","jsCall_jiiji_31","jsCall_jiiji_32","jsCall_jiiji_33","jsCall_jiiji_34","_io_read_seek",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],Gi=[0,"jsCall_jiji_0","jsCall_jiji_1","jsCall_jiji_2","jsCall_jiji_3","jsCall_jiji_4","jsCall_jiji_5","jsCall_jiji_6","jsCall_jiji_7","jsCall_jiji_8","jsCall_jiji_9","jsCall_jiji_10","jsCall_jiji_11","jsCall_jiji_12","jsCall_jiji_13","jsCall_jiji_14","jsCall_jiji_15","jsCall_jiji_16","jsCall_jiji_17","jsCall_jiji_18","jsCall_jiji_19","jsCall_jiji_20","jsCall_jiji_21","jsCall_jiji_22","jsCall_jiji_23","jsCall_jiji_24","jsCall_jiji_25","jsCall_jiji_26","jsCall_jiji_27","jsCall_jiji_28","jsCall_jiji_29","jsCall_jiji_30","jsCall_jiji_31","jsCall_jiji_32","jsCall_jiji_33","jsCall_jiji_34","___stdio_seek","___emscripten_stdout_seek","_io_seek","_dyn_buf_seek",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ki=[0,"jsCall_v_0","jsCall_v_1","jsCall_v_2","jsCall_v_3","jsCall_v_4","jsCall_v_5","jsCall_v_6","jsCall_v_7","jsCall_v_8","jsCall_v_9","jsCall_v_10","jsCall_v_11","jsCall_v_12","jsCall_v_13","jsCall_v_14","jsCall_v_15","jsCall_v_16","jsCall_v_17","jsCall_v_18","jsCall_v_19","jsCall_v_20","jsCall_v_21","jsCall_v_22","jsCall_v_23","jsCall_v_24","jsCall_v_25","jsCall_v_26","jsCall_v_27","jsCall_v_28","jsCall_v_29","jsCall_v_30","jsCall_v_31","jsCall_v_32","jsCall_v_33","jsCall_v_34","_init_ff_cos_tabs_16","_init_ff_cos_tabs_32","_init_ff_cos_tabs_64","_init_ff_cos_tabs_128","_init_ff_cos_tabs_256","_init_ff_cos_tabs_512","_init_ff_cos_tabs_1024","_init_ff_cos_tabs_2048","_init_ff_cos_tabs_4096","_init_ff_cos_tabs_8192","_init_ff_cos_tabs_16384","_init_ff_cos_tabs_32768","_init_ff_cos_tabs_65536","_init_ff_cos_tabs_131072","_introduce_mine","_introduceMineFunc","_av_format_init_next","_av_codec_init_static","_av_codec_init_next","_aac_static_table_init","_AV_CRC_8_ATM_init_table_once","_AV_CRC_8_EBU_init_table_once","_AV_CRC_16_ANSI_init_table_once","_AV_CRC_16_CCITT_init_table_once","_AV_CRC_24_IEEE_init_table_once","_AV_CRC_32_IEEE_init_table_once","_AV_CRC_32_IEEE_LE_init_table_once","_AV_CRC_16_ANSI_LE_init_table_once"],Qi=[0,"jsCall_vdiidiiiii_0","jsCall_vdiidiiiii_1","jsCall_vdiidiiiii_2","jsCall_vdiidiiiii_3","jsCall_vdiidiiiii_4","jsCall_vdiidiiiii_5","jsCall_vdiidiiiii_6","jsCall_vdiidiiiii_7","jsCall_vdiidiiiii_8","jsCall_vdiidiiiii_9","jsCall_vdiidiiiii_10","jsCall_vdiidiiiii_11","jsCall_vdiidiiiii_12","jsCall_vdiidiiiii_13","jsCall_vdiidiiiii_14","jsCall_vdiidiiiii_15","jsCall_vdiidiiiii_16","jsCall_vdiidiiiii_17","jsCall_vdiidiiiii_18","jsCall_vdiidiiiii_19","jsCall_vdiidiiiii_20","jsCall_vdiidiiiii_21","jsCall_vdiidiiiii_22","jsCall_vdiidiiiii_23","jsCall_vdiidiiiii_24","jsCall_vdiidiiiii_25","jsCall_vdiidiiiii_26","jsCall_vdiidiiiii_27","jsCall_vdiidiiiii_28","jsCall_vdiidiiiii_29","jsCall_vdiidiiiii_30","jsCall_vdiidiiiii_31","jsCall_vdiidiiiii_32","jsCall_vdiidiiiii_33","jsCall_vdiidiiiii_34",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,0],Zi=[0,"jsCall_vi_0","jsCall_vi_1","jsCall_vi_2","jsCall_vi_3","jsCall_vi_4","jsCall_vi_5","jsCall_vi_6","jsCall_vi_7","jsCall_vi_8","jsCall_vi_9","jsCall_vi_10","jsCall_vi_11","jsCall_vi_12","jsCall_vi_13","jsCall_vi_14","jsCall_vi_15","jsCall_vi_16","jsCall_vi_17","jsCall_vi_18","jsCall_vi_19","jsCall_vi_20","jsCall_vi_21","jsCall_vi_22","jsCall_vi_23","jsCall_vi_24","jsCall_vi_25","jsCall_vi_26","jsCall_vi_27","jsCall_vi_28","jsCall_vi_29","jsCall_vi_30","jsCall_vi_31","jsCall_vi_32","jsCall_vi_33","jsCall_vi_34","_free_geobtag","_free_apic","_free_chapter","_free_priv","_hevc_decode_flush","_flush","_h264_close","_hevc_parser_close","_fft4","_fft8","_fft16","_fft32","_fft64","_fft128","_fft256","_fft512","_fft1024","_fft2048","_fft4096","_fft8192","_fft16384","_fft32768","_fft65536","_fft131072","_logRequest_downloadSucceeded","_logRequest_downloadFailed","_downloadSucceeded","_downloadFailed","_transform_4x4_luma_9","_idct_4x4_dc_9","_idct_8x8_dc_9","_idct_16x16_dc_9","_idct_32x32_dc_9","_transform_4x4_luma_10","_idct_4x4_dc_10","_idct_8x8_dc_10","_idct_16x16_dc_10","_idct_32x32_dc_10","_transform_4x4_luma_12","_idct_4x4_dc_12","_idct_8x8_dc_12","_idct_16x16_dc_12","_idct_32x32_dc_12","_transform_4x4_luma_8","_idct_4x4_dc_8","_idct_8x8_dc_8","_idct_16x16_dc_8","_idct_32x32_dc_8","_main_function","_sbr_sum64x5_c","_sbr_neg_odd_64_c","_sbr_qmf_pre_shuffle_c",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,0,0,0,0,0,0,0,0,0,0,0,0,0],Ji=[0,"jsCall_vii_0","jsCall_vii_1","jsCall_vii_2","jsCall_vii_3","jsCall_vii_4","jsCall_vii_5","jsCall_vii_6","jsCall_vii_7","jsCall_vii_8","jsCall_vii_9","jsCall_vii_10","jsCall_vii_11","jsCall_vii_12","jsCall_vii_13","jsCall_vii_14","jsCall_vii_15","jsCall_vii_16","jsCall_vii_17","jsCall_vii_18","jsCall_vii_19","jsCall_vii_20","jsCall_vii_21","jsCall_vii_22","jsCall_vii_23","jsCall_vii_24","jsCall_vii_25","jsCall_vii_26","jsCall_vii_27","jsCall_vii_28","jsCall_vii_29","jsCall_vii_30","jsCall_vii_31","jsCall_vii_32","jsCall_vii_33","jsCall_vii_34","_io_close_default","_lumRangeFromJpeg_c","_lumRangeToJpeg_c","_lumRangeFromJpeg16_c","_lumRangeToJpeg16_c","_decode_data_free","_dequant_9","_idct_4x4_9","_idct_8x8_9","_idct_16x16_9","_idct_32x32_9","_dequant_10","_idct_4x4_10","_idct_8x8_10","_idct_16x16_10","_idct_32x32_10","_dequant_12","_idct_4x4_12","_idct_8x8_12","_idct_16x16_12","_idct_32x32_12","_dequant_8","_idct_4x4_8","_idct_8x8_8","_idct_16x16_8","_idct_32x32_8","_imdct_and_windowing","_apply_ltp","_update_ltp","_imdct_and_windowing_ld","_imdct_and_windowing_eld","_imdct_and_windowing_960","_ff_h264_chroma_dc_dequant_idct_9_c","_ff_h264_chroma422_dc_dequant_idct_9_c","_ff_h264_chroma_dc_dequant_idct_10_c","_ff_h264_chroma422_dc_dequant_idct_10_c","_ff_h264_chroma_dc_dequant_idct_12_c","_ff_h264_chroma422_dc_dequant_idct_12_c","_ff_h264_chroma_dc_dequant_idct_14_c","_ff_h264_chroma422_dc_dequant_idct_14_c","_ff_h264_chroma_dc_dequant_idct_8_c","_ff_h264_chroma422_dc_dequant_idct_8_c","_hevc_pps_free","_sbr_qmf_post_shuffle_c","_sbr_qmf_deint_neg_c","_sbr_autocorrelate_c","_fft_permute_c","_fft_calc_c","_av_buffer_default_free","_pool_release_buffer","_sha1_transform","_sha256_transform","_pop_arg_long_double",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,0,0,0,0,0,0,0,0,0,0,0,0],$i=[0,"jsCall_viidi_0","jsCall_viidi_1","jsCall_viidi_2","jsCall_viidi_3","jsCall_viidi_4","jsCall_viidi_5","jsCall_viidi_6","jsCall_viidi_7","jsCall_viidi_8","jsCall_viidi_9","jsCall_viidi_10","jsCall_viidi_11","jsCall_viidi_12","jsCall_viidi_13","jsCall_viidi_14","jsCall_viidi_15","jsCall_viidi_16","jsCall_viidi_17","jsCall_viidi_18","jsCall_viidi_19","jsCall_viidi_20","jsCall_viidi_21","jsCall_viidi_22","jsCall_viidi_23","jsCall_viidi_24","jsCall_viidi_25","jsCall_viidi_26","jsCall_viidi_27","jsCall_viidi_28","jsCall_viidi_29","jsCall_viidi_30","jsCall_viidi_31","jsCall_viidi_32","jsCall_viidi_33","jsCall_viidi_34","_vector_dmac_scalar_c","_vector_dmul_scalar_c",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],er=[0,"jsCall_viifi_0","jsCall_viifi_1","jsCall_viifi_2","jsCall_viifi_3","jsCall_viifi_4","jsCall_viifi_5","jsCall_viifi_6","jsCall_viifi_7","jsCall_viifi_8","jsCall_viifi_9","jsCall_viifi_10","jsCall_viifi_11","jsCall_viifi_12","jsCall_viifi_13","jsCall_viifi_14","jsCall_viifi_15","jsCall_viifi_16","jsCall_viifi_17","jsCall_viifi_18","jsCall_viifi_19","jsCall_viifi_20","jsCall_viifi_21","jsCall_viifi_22","jsCall_viifi_23","jsCall_viifi_24","jsCall_viifi_25","jsCall_viifi_26","jsCall_viifi_27","jsCall_viifi_28","jsCall_viifi_29","jsCall_viifi_30","jsCall_viifi_31","jsCall_viifi_32","jsCall_viifi_33","jsCall_viifi_34","_vector_fmac_scalar_c","_vector_fmul_scalar_c",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],tr=[0,"jsCall_viii_0","jsCall_viii_1","jsCall_viii_2","jsCall_viii_3","jsCall_viii_4","jsCall_viii_5","jsCall_viii_6","jsCall_viii_7","jsCall_viii_8","jsCall_viii_9","jsCall_viii_10","jsCall_viii_11","jsCall_viii_12","jsCall_viii_13","jsCall_viii_14","jsCall_viii_15","jsCall_viii_16","jsCall_viii_17","jsCall_viii_18","jsCall_viii_19","jsCall_viii_20","jsCall_viii_21","jsCall_viii_22","jsCall_viii_23","jsCall_viii_24","jsCall_viii_25","jsCall_viii_26","jsCall_viii_27","jsCall_viii_28","jsCall_viii_29","jsCall_viii_30","jsCall_viii_31","jsCall_viii_32","jsCall_viii_33","jsCall_viii_34","_avcHandleFrame","_handleFrame","_sdt_cb","_pat_cb","_pmt_cb","_scte_data_cb","_m4sl_cb","_chrRangeFromJpeg_c","_chrRangeToJpeg_c","_chrRangeFromJpeg16_c","_chrRangeToJpeg16_c","_rgb15to16_c","_rgb15tobgr24_c","_rgb15to32_c","_rgb16tobgr24_c","_rgb16to32_c","_rgb16to15_c","_rgb24tobgr16_c","_rgb24tobgr15_c","_rgb24tobgr32_c","_rgb32to16_c","_rgb32to15_c","_rgb32tobgr24_c","_rgb24to15_c","_rgb24to16_c","_rgb24tobgr24_c","_shuffle_bytes_0321_c","_shuffle_bytes_2103_c","_shuffle_bytes_1230_c","_shuffle_bytes_3012_c","_shuffle_bytes_3210_c","_rgb32tobgr16_c","_rgb32tobgr15_c","_rgb48tobgr48_bswap","_rgb48tobgr64_bswap","_rgb48to64_bswap","_rgb64to48_bswap","_rgb48tobgr48_nobswap","_rgb48tobgr64_nobswap","_rgb48to64_nobswap","_rgb64tobgr48_nobswap","_rgb64tobgr48_bswap","_rgb64to48_nobswap","_rgb12to15","_rgb15to24","_rgb16to24","_rgb32to24","_rgb24to32","_rgb12tobgr12","_rgb15tobgr15","_rgb16tobgr15","_rgb15tobgr16","_rgb16tobgr16","_rgb15tobgr32","_rgb16tobgr32","_add_residual4x4_9","_add_residual8x8_9","_add_residual16x16_9","_add_residual32x32_9","_transform_rdpcm_9","_add_residual4x4_10","_add_residual8x8_10","_add_residual16x16_10","_add_residual32x32_10","_transform_rdpcm_10","_add_residual4x4_12","_add_residual8x8_12","_add_residual16x16_12","_add_residual32x32_12","_transform_rdpcm_12","_add_residual4x4_8","_add_residual8x8_8","_add_residual16x16_8","_add_residual32x32_8","_transform_rdpcm_8","_just_return","_bswap_buf","_bswap16_buf","_ff_h264_add_pixels4_16_c","_ff_h264_add_pixels4_8_c","_ff_h264_add_pixels8_16_c","_ff_h264_add_pixels8_8_c","_ff_h264_idct_add_9_c","_ff_h264_idct8_add_9_c","_ff_h264_idct_dc_add_9_c","_ff_h264_idct8_dc_add_9_c","_ff_h264_luma_dc_dequant_idct_9_c","_ff_h264_idct_add_10_c","_ff_h264_idct8_add_10_c","_ff_h264_idct_dc_add_10_c","_ff_h264_idct8_dc_add_10_c","_ff_h264_luma_dc_dequant_idct_10_c","_ff_h264_idct_add_12_c","_ff_h264_idct8_add_12_c","_ff_h264_idct_dc_add_12_c","_ff_h264_idct8_dc_add_12_c","_ff_h264_luma_dc_dequant_idct_12_c","_ff_h264_idct_add_14_c","_ff_h264_idct8_add_14_c","_ff_h264_idct_dc_add_14_c","_ff_h264_idct8_dc_add_14_c","_ff_h264_luma_dc_dequant_idct_14_c","_ff_h264_idct_add_8_c","_ff_h264_idct8_add_8_c","_ff_h264_idct_dc_add_8_c","_ff_h264_idct8_dc_add_8_c","_ff_h264_luma_dc_dequant_idct_8_c","_sbr_qmf_deint_bfly_c","_ps_add_squares_c","_ff_imdct_calc_c","_ff_imdct_half_c","_ff_mdct_calc_c","_butterflies_float_c",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,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,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,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],ir=[0,"jsCall_viiii_0","jsCall_viiii_1","jsCall_viiii_2","jsCall_viiii_3","jsCall_viiii_4","jsCall_viiii_5","jsCall_viiii_6","jsCall_viiii_7","jsCall_viiii_8","jsCall_viiii_9","jsCall_viiii_10","jsCall_viiii_11","jsCall_viiii_12","jsCall_viiii_13","jsCall_viiii_14","jsCall_viiii_15","jsCall_viiii_16","jsCall_viiii_17","jsCall_viiii_18","jsCall_viiii_19","jsCall_viiii_20","jsCall_viiii_21","jsCall_viiii_22","jsCall_viiii_23","jsCall_viiii_24","jsCall_viiii_25","jsCall_viiii_26","jsCall_viiii_27","jsCall_viiii_28","jsCall_viiii_29","jsCall_viiii_30","jsCall_viiii_31","jsCall_viiii_32","jsCall_viiii_33","jsCall_viiii_34","_planar_rgb9le_to_y","_planar_rgb10le_to_a","_planar_rgb10le_to_y","_planar_rgb12le_to_a","_planar_rgb12le_to_y","_planar_rgb14le_to_y","_planar_rgb16le_to_a","_planar_rgb16le_to_y","_planar_rgb9be_to_y","_planar_rgb10be_to_a","_planar_rgb10be_to_y","_planar_rgb12be_to_a","_planar_rgb12be_to_y","_planar_rgb14be_to_y","_planar_rgb16be_to_a","_planar_rgb16be_to_y","_planar_rgb_to_a","_planar_rgb_to_y","_gray8aToPacked32","_gray8aToPacked32_1","_gray8aToPacked24","_sws_convertPalette8ToPacked32","_sws_convertPalette8ToPacked24","_intra_pred_2_9","_intra_pred_3_9","_intra_pred_4_9","_intra_pred_5_9","_pred_planar_0_9","_pred_planar_1_9","_pred_planar_2_9","_pred_planar_3_9","_intra_pred_2_10","_intra_pred_3_10","_intra_pred_4_10","_intra_pred_5_10","_pred_planar_0_10","_pred_planar_1_10","_pred_planar_2_10","_pred_planar_3_10","_intra_pred_2_12","_intra_pred_3_12","_intra_pred_4_12","_intra_pred_5_12","_pred_planar_0_12","_pred_planar_1_12","_pred_planar_2_12","_pred_planar_3_12","_intra_pred_2_8","_intra_pred_3_8","_intra_pred_4_8","_intra_pred_5_8","_pred_planar_0_8","_pred_planar_1_8","_pred_planar_2_8","_pred_planar_3_8","_apply_tns","_windowing_and_mdct_ltp","_h264_v_loop_filter_luma_intra_9_c","_h264_h_loop_filter_luma_intra_9_c","_h264_h_loop_filter_luma_mbaff_intra_9_c","_h264_v_loop_filter_chroma_intra_9_c","_h264_h_loop_filter_chroma_intra_9_c","_h264_h_loop_filter_chroma422_intra_9_c","_h264_h_loop_filter_chroma_mbaff_intra_9_c","_h264_h_loop_filter_chroma422_mbaff_intra_9_c","_h264_v_loop_filter_luma_intra_10_c","_h264_h_loop_filter_luma_intra_10_c","_h264_h_loop_filter_luma_mbaff_intra_10_c","_h264_v_loop_filter_chroma_intra_10_c","_h264_h_loop_filter_chroma_intra_10_c","_h264_h_loop_filter_chroma422_intra_10_c","_h264_h_loop_filter_chroma_mbaff_intra_10_c","_h264_h_loop_filter_chroma422_mbaff_intra_10_c","_h264_v_loop_filter_luma_intra_12_c","_h264_h_loop_filter_luma_intra_12_c","_h264_h_loop_filter_luma_mbaff_intra_12_c","_h264_v_loop_filter_chroma_intra_12_c","_h264_h_loop_filter_chroma_intra_12_c","_h264_h_loop_filter_chroma422_intra_12_c","_h264_h_loop_filter_chroma_mbaff_intra_12_c","_h264_h_loop_filter_chroma422_mbaff_intra_12_c","_h264_v_loop_filter_luma_intra_14_c","_h264_h_loop_filter_luma_intra_14_c","_h264_h_loop_filter_luma_mbaff_intra_14_c","_h264_v_loop_filter_chroma_intra_14_c","_h264_h_loop_filter_chroma_intra_14_c","_h264_h_loop_filter_chroma422_intra_14_c","_h264_h_loop_filter_chroma_mbaff_intra_14_c","_h264_h_loop_filter_chroma422_mbaff_intra_14_c","_h264_v_loop_filter_luma_intra_8_c","_h264_h_loop_filter_luma_intra_8_c","_h264_h_loop_filter_luma_mbaff_intra_8_c","_h264_v_loop_filter_chroma_intra_8_c","_h264_h_loop_filter_chroma_intra_8_c","_h264_h_loop_filter_chroma422_intra_8_c","_h264_h_loop_filter_chroma_mbaff_intra_8_c","_h264_h_loop_filter_chroma422_mbaff_intra_8_c","_fft15_c","_mdct15","_imdct15_half","_ps_mul_pair_single_c","_ps_hybrid_analysis_ileave_c","_ps_hybrid_synthesis_deint_c","_vector_fmul_c","_vector_dmul_c","_vector_fmul_reverse_c","_av_log_default_callback",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,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,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,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,0,0,0,0,0],rr=[0,"jsCall_viiiid_0","jsCall_viiiid_1","jsCall_viiiid_2","jsCall_viiiid_3","jsCall_viiiid_4","jsCall_viiiid_5","jsCall_viiiid_6","jsCall_viiiid_7","jsCall_viiiid_8","jsCall_viiiid_9","jsCall_viiiid_10","jsCall_viiiid_11","jsCall_viiiid_12","jsCall_viiiid_13","jsCall_viiiid_14","jsCall_viiiid_15","jsCall_viiiid_16","jsCall_viiiid_17","jsCall_viiiid_18","jsCall_viiiid_19","jsCall_viiiid_20","jsCall_viiiid_21","jsCall_viiiid_22","jsCall_viiiid_23","jsCall_viiiid_24","jsCall_viiiid_25","jsCall_viiiid_26","jsCall_viiiid_27","jsCall_viiiid_28","jsCall_viiiid_29","jsCall_viiiid_30","jsCall_viiiid_31","jsCall_viiiid_32","jsCall_viiiid_33","jsCall_viiiid_34",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,0],nr=[0,"jsCall_viiiifii_0","jsCall_viiiifii_1","jsCall_viiiifii_2","jsCall_viiiifii_3","jsCall_viiiifii_4","jsCall_viiiifii_5","jsCall_viiiifii_6","jsCall_viiiifii_7","jsCall_viiiifii_8","jsCall_viiiifii_9","jsCall_viiiifii_10","jsCall_viiiifii_11","jsCall_viiiifii_12","jsCall_viiiifii_13","jsCall_viiiifii_14","jsCall_viiiifii_15","jsCall_viiiifii_16","jsCall_viiiifii_17","jsCall_viiiifii_18","jsCall_viiiifii_19","jsCall_viiiifii_20","jsCall_viiiifii_21","jsCall_viiiifii_22","jsCall_viiiifii_23","jsCall_viiiifii_24","jsCall_viiiifii_25","jsCall_viiiifii_26","jsCall_viiiifii_27","jsCall_viiiifii_28","jsCall_viiiifii_29","jsCall_viiiifii_30","jsCall_viiiifii_31","jsCall_viiiifii_32","jsCall_viiiifii_33","jsCall_viiiifii_34","_sbr_hf_gen_c",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],ar=[0,"jsCall_viiiii_0","jsCall_viiiii_1","jsCall_viiiii_2","jsCall_viiiii_3","jsCall_viiiii_4","jsCall_viiiii_5","jsCall_viiiii_6","jsCall_viiiii_7","jsCall_viiiii_8","jsCall_viiiii_9","jsCall_viiiii_10","jsCall_viiiii_11","jsCall_viiiii_12","jsCall_viiiii_13","jsCall_viiiii_14","jsCall_viiiii_15","jsCall_viiiii_16","jsCall_viiiii_17","jsCall_viiiii_18","jsCall_viiiii_19","jsCall_viiiii_20","jsCall_viiiii_21","jsCall_viiiii_22","jsCall_viiiii_23","jsCall_viiiii_24","jsCall_viiiii_25","jsCall_viiiii_26","jsCall_viiiii_27","jsCall_viiiii_28","jsCall_viiiii_29","jsCall_viiiii_30","jsCall_viiiii_31","jsCall_viiiii_32","jsCall_viiiii_33","jsCall_viiiii_34","_planar_rgb9le_to_uv","_planar_rgb10le_to_uv","_planar_rgb12le_to_uv","_planar_rgb14le_to_uv","_planar_rgb16le_to_uv","_planar_rgb9be_to_uv","_planar_rgb10be_to_uv","_planar_rgb12be_to_uv","_planar_rgb14be_to_uv","_planar_rgb16be_to_uv","_planar_rgb_to_uv","_yuv2p010l1_LE_c","_yuv2p010l1_BE_c","_yuv2plane1_16LE_c","_yuv2plane1_16BE_c","_yuv2plane1_9LE_c","_yuv2plane1_9BE_c","_yuv2plane1_10LE_c","_yuv2plane1_10BE_c","_yuv2plane1_12LE_c","_yuv2plane1_12BE_c","_yuv2plane1_14LE_c","_yuv2plane1_14BE_c","_yuv2plane1_floatBE_c","_yuv2plane1_floatLE_c","_yuv2plane1_8_c","_bayer_bggr8_to_rgb24_copy","_bayer_bggr8_to_rgb24_interpolate","_bayer_bggr16le_to_rgb24_copy","_bayer_bggr16le_to_rgb24_interpolate","_bayer_bggr16be_to_rgb24_copy","_bayer_bggr16be_to_rgb24_interpolate","_bayer_rggb8_to_rgb24_copy","_bayer_rggb8_to_rgb24_interpolate","_bayer_rggb16le_to_rgb24_copy","_bayer_rggb16le_to_rgb24_interpolate","_bayer_rggb16be_to_rgb24_copy","_bayer_rggb16be_to_rgb24_interpolate","_bayer_gbrg8_to_rgb24_copy","_bayer_gbrg8_to_rgb24_interpolate","_bayer_gbrg16le_to_rgb24_copy","_bayer_gbrg16le_to_rgb24_interpolate","_bayer_gbrg16be_to_rgb24_copy","_bayer_gbrg16be_to_rgb24_interpolate","_bayer_grbg8_to_rgb24_copy","_bayer_grbg8_to_rgb24_interpolate","_bayer_grbg16le_to_rgb24_copy","_bayer_grbg16le_to_rgb24_interpolate","_bayer_grbg16be_to_rgb24_copy","_bayer_grbg16be_to_rgb24_interpolate","_hevc_h_loop_filter_chroma_9","_hevc_v_loop_filter_chroma_9","_hevc_h_loop_filter_chroma_10","_hevc_v_loop_filter_chroma_10","_hevc_h_loop_filter_chroma_12","_hevc_v_loop_filter_chroma_12","_hevc_h_loop_filter_chroma_8","_hevc_v_loop_filter_chroma_8","_worker_func","_sbr_hf_assemble","_sbr_hf_inverse_filter","_ff_h264_idct_add16_9_c","_ff_h264_idct8_add4_9_c","_ff_h264_idct_add8_9_c","_ff_h264_idct_add8_422_9_c","_ff_h264_idct_add16intra_9_c","_h264_v_loop_filter_luma_9_c","_h264_h_loop_filter_luma_9_c","_h264_h_loop_filter_luma_mbaff_9_c","_h264_v_loop_filter_chroma_9_c","_h264_h_loop_filter_chroma_9_c","_h264_h_loop_filter_chroma422_9_c","_h264_h_loop_filter_chroma_mbaff_9_c","_h264_h_loop_filter_chroma422_mbaff_9_c","_ff_h264_idct_add16_10_c","_ff_h264_idct8_add4_10_c","_ff_h264_idct_add8_10_c","_ff_h264_idct_add8_422_10_c","_ff_h264_idct_add16intra_10_c","_h264_v_loop_filter_luma_10_c","_h264_h_loop_filter_luma_10_c","_h264_h_loop_filter_luma_mbaff_10_c","_h264_v_loop_filter_chroma_10_c","_h264_h_loop_filter_chroma_10_c","_h264_h_loop_filter_chroma422_10_c","_h264_h_loop_filter_chroma_mbaff_10_c","_h264_h_loop_filter_chroma422_mbaff_10_c","_ff_h264_idct_add16_12_c","_ff_h264_idct8_add4_12_c","_ff_h264_idct_add8_12_c","_ff_h264_idct_add8_422_12_c","_ff_h264_idct_add16intra_12_c","_h264_v_loop_filter_luma_12_c","_h264_h_loop_filter_luma_12_c","_h264_h_loop_filter_luma_mbaff_12_c","_h264_v_loop_filter_chroma_12_c","_h264_h_loop_filter_chroma_12_c","_h264_h_loop_filter_chroma422_12_c","_h264_h_loop_filter_chroma_mbaff_12_c","_h264_h_loop_filter_chroma422_mbaff_12_c","_ff_h264_idct_add16_14_c","_ff_h264_idct8_add4_14_c","_ff_h264_idct_add8_14_c","_ff_h264_idct_add8_422_14_c","_ff_h264_idct_add16intra_14_c","_h264_v_loop_filter_luma_14_c","_h264_h_loop_filter_luma_14_c","_h264_h_loop_filter_luma_mbaff_14_c","_h264_v_loop_filter_chroma_14_c","_h264_h_loop_filter_chroma_14_c","_h264_h_loop_filter_chroma422_14_c","_h264_h_loop_filter_chroma_mbaff_14_c","_h264_h_loop_filter_chroma422_mbaff_14_c","_ff_h264_idct_add16_8_c","_ff_h264_idct8_add4_8_c","_ff_h264_idct_add8_8_c","_ff_h264_idct_add8_422_8_c","_ff_h264_idct_add16intra_8_c","_h264_v_loop_filter_luma_8_c","_h264_h_loop_filter_luma_8_c","_h264_h_loop_filter_luma_mbaff_8_c","_h264_v_loop_filter_chroma_8_c","_h264_h_loop_filter_chroma_8_c","_h264_h_loop_filter_chroma422_8_c","_h264_h_loop_filter_chroma_mbaff_8_c","_h264_h_loop_filter_chroma422_mbaff_8_c","_postrotate_c","_sbr_hf_g_filt_c","_ps_hybrid_analysis_c","_ps_stereo_interpolate_c","_ps_stereo_interpolate_ipdopd_c","_vector_fmul_window_c","_vector_fmul_add_c",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,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,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,0,0,0,0,0,0],sr=[0,"jsCall_viiiiidd_0","jsCall_viiiiidd_1","jsCall_viiiiidd_2","jsCall_viiiiidd_3","jsCall_viiiiidd_4","jsCall_viiiiidd_5","jsCall_viiiiidd_6","jsCall_viiiiidd_7","jsCall_viiiiidd_8","jsCall_viiiiidd_9","jsCall_viiiiidd_10","jsCall_viiiiidd_11","jsCall_viiiiidd_12","jsCall_viiiiidd_13","jsCall_viiiiidd_14","jsCall_viiiiidd_15","jsCall_viiiiidd_16","jsCall_viiiiidd_17","jsCall_viiiiidd_18","jsCall_viiiiidd_19","jsCall_viiiiidd_20","jsCall_viiiiidd_21","jsCall_viiiiidd_22","jsCall_viiiiidd_23","jsCall_viiiiidd_24","jsCall_viiiiidd_25","jsCall_viiiiidd_26","jsCall_viiiiidd_27","jsCall_viiiiidd_28","jsCall_viiiiidd_29","jsCall_viiiiidd_30","jsCall_viiiiidd_31","jsCall_viiiiidd_32","jsCall_viiiiidd_33","jsCall_viiiiidd_34",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,0],or=[0,"jsCall_viiiiii_0","jsCall_viiiiii_1","jsCall_viiiiii_2","jsCall_viiiiii_3","jsCall_viiiiii_4","jsCall_viiiiii_5","jsCall_viiiiii_6","jsCall_viiiiii_7","jsCall_viiiiii_8","jsCall_viiiiii_9","jsCall_viiiiii_10","jsCall_viiiiii_11","jsCall_viiiiii_12","jsCall_viiiiii_13","jsCall_viiiiii_14","jsCall_viiiiii_15","jsCall_viiiiii_16","jsCall_viiiiii_17","jsCall_viiiiii_18","jsCall_viiiiii_19","jsCall_viiiiii_20","jsCall_viiiiii_21","jsCall_viiiiii_22","jsCall_viiiiii_23","jsCall_viiiiii_24","jsCall_viiiiii_25","jsCall_viiiiii_26","jsCall_viiiiii_27","jsCall_viiiiii_28","jsCall_viiiiii_29","jsCall_viiiiii_30","jsCall_viiiiii_31","jsCall_viiiiii_32","jsCall_viiiiii_33","jsCall_viiiiii_34","_read_geobtag","_read_apic","_read_chapter","_read_priv","_ff_hyscale_fast_c","_bswap16Y_c","_read_ya16le_gray_c","_read_ya16be_gray_c","_read_ayuv64le_Y_c","_yuy2ToY_c","_uyvyToY_c","_bgr24ToY_c","_bgr16leToY_c","_bgr16beToY_c","_bgr15leToY_c","_bgr15beToY_c","_bgr12leToY_c","_bgr12beToY_c","_rgb24ToY_c","_rgb16leToY_c","_rgb16beToY_c","_rgb15leToY_c","_rgb15beToY_c","_rgb12leToY_c","_rgb12beToY_c","_palToY_c","_monoblack2Y_c","_monowhite2Y_c","_bgr32ToY_c","_bgr321ToY_c","_rgb32ToY_c","_rgb321ToY_c","_rgb48BEToY_c","_rgb48LEToY_c","_bgr48BEToY_c","_bgr48LEToY_c","_rgb64BEToY_c","_rgb64LEToY_c","_bgr64BEToY_c","_bgr64LEToY_c","_p010LEToY_c","_p010BEToY_c","_grayf32ToY16_c","_grayf32ToY16_bswap_c","_rgba64leToA_c","_rgba64beToA_c","_rgbaToA_c","_abgrToA_c","_read_ya16le_alpha_c","_read_ya16be_alpha_c","_read_ayuv64le_A_c","_palToA_c","_put_pcm_9","_hevc_h_loop_filter_luma_9","_hevc_v_loop_filter_luma_9","_put_pcm_10","_hevc_h_loop_filter_luma_10","_hevc_v_loop_filter_luma_10","_put_pcm_12","_hevc_h_loop_filter_luma_12","_hevc_v_loop_filter_luma_12","_put_pcm_8","_hevc_h_loop_filter_luma_8","_hevc_v_loop_filter_luma_8","_pred_dc_9","_pred_angular_0_9","_pred_angular_1_9","_pred_angular_2_9","_pred_angular_3_9","_pred_dc_10","_pred_angular_0_10","_pred_angular_1_10","_pred_angular_2_10","_pred_angular_3_10","_pred_dc_12","_pred_angular_0_12","_pred_angular_1_12","_pred_angular_2_12","_pred_angular_3_12","_pred_dc_8","_pred_angular_0_8","_pred_angular_1_8","_pred_angular_2_8","_pred_angular_3_8","_weight_h264_pixels16_9_c","_weight_h264_pixels8_9_c","_weight_h264_pixels4_9_c","_weight_h264_pixels2_9_c","_weight_h264_pixels16_10_c","_weight_h264_pixels8_10_c","_weight_h264_pixels4_10_c","_weight_h264_pixels2_10_c","_weight_h264_pixels16_12_c","_weight_h264_pixels8_12_c","_weight_h264_pixels4_12_c","_weight_h264_pixels2_12_c","_weight_h264_pixels16_14_c","_weight_h264_pixels8_14_c","_weight_h264_pixels4_14_c","_weight_h264_pixels2_14_c","_weight_h264_pixels16_8_c","_weight_h264_pixels8_8_c","_weight_h264_pixels4_8_c","_weight_h264_pixels2_8_c","_sbr_hf_apply_noise_0","_sbr_hf_apply_noise_1","_sbr_hf_apply_noise_2","_sbr_hf_apply_noise_3","_aes_decrypt","_aes_encrypt","_image_copy_plane",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,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,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,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,0],lr=[0,"jsCall_viiiiiifi_0","jsCall_viiiiiifi_1","jsCall_viiiiiifi_2","jsCall_viiiiiifi_3","jsCall_viiiiiifi_4","jsCall_viiiiiifi_5","jsCall_viiiiiifi_6","jsCall_viiiiiifi_7","jsCall_viiiiiifi_8","jsCall_viiiiiifi_9","jsCall_viiiiiifi_10","jsCall_viiiiiifi_11","jsCall_viiiiiifi_12","jsCall_viiiiiifi_13","jsCall_viiiiiifi_14","jsCall_viiiiiifi_15","jsCall_viiiiiifi_16","jsCall_viiiiiifi_17","jsCall_viiiiiifi_18","jsCall_viiiiiifi_19","jsCall_viiiiiifi_20","jsCall_viiiiiifi_21","jsCall_viiiiiifi_22","jsCall_viiiiiifi_23","jsCall_viiiiiifi_24","jsCall_viiiiiifi_25","jsCall_viiiiiifi_26","jsCall_viiiiiifi_27","jsCall_viiiiiifi_28","jsCall_viiiiiifi_29","jsCall_viiiiiifi_30","jsCall_viiiiiifi_31","jsCall_viiiiiifi_32","jsCall_viiiiiifi_33","jsCall_viiiiiifi_34","_ps_decorrelate_c",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],fr=[0,"jsCall_viiiiiii_0","jsCall_viiiiiii_1","jsCall_viiiiiii_2","jsCall_viiiiiii_3","jsCall_viiiiiii_4","jsCall_viiiiiii_5","jsCall_viiiiiii_6","jsCall_viiiiiii_7","jsCall_viiiiiii_8","jsCall_viiiiiii_9","jsCall_viiiiiii_10","jsCall_viiiiiii_11","jsCall_viiiiiii_12","jsCall_viiiiiii_13","jsCall_viiiiiii_14","jsCall_viiiiiii_15","jsCall_viiiiiii_16","jsCall_viiiiiii_17","jsCall_viiiiiii_18","jsCall_viiiiiii_19","jsCall_viiiiiii_20","jsCall_viiiiiii_21","jsCall_viiiiiii_22","jsCall_viiiiiii_23","jsCall_viiiiiii_24","jsCall_viiiiiii_25","jsCall_viiiiiii_26","jsCall_viiiiiii_27","jsCall_viiiiiii_28","jsCall_viiiiiii_29","jsCall_viiiiiii_30","jsCall_viiiiiii_31","jsCall_viiiiiii_32","jsCall_viiiiiii_33","jsCall_viiiiiii_34","_hScale8To15_c","_hScale8To19_c","_hScale16To19_c","_hScale16To15_c","_yuy2ToUV_c","_yvy2ToUV_c","_uyvyToUV_c","_nv12ToUV_c","_nv21ToUV_c","_palToUV_c","_bswap16UV_c","_read_ayuv64le_UV_c","_p010LEToUV_c","_p010BEToUV_c","_p016LEToUV_c","_p016BEToUV_c","_gbr24pToUV_half_c","_rgb64BEToUV_half_c","_rgb64LEToUV_half_c","_bgr64BEToUV_half_c","_bgr64LEToUV_half_c","_rgb48BEToUV_half_c","_rgb48LEToUV_half_c","_bgr48BEToUV_half_c","_bgr48LEToUV_half_c","_bgr32ToUV_half_c","_bgr321ToUV_half_c","_bgr24ToUV_half_c","_bgr16leToUV_half_c","_bgr16beToUV_half_c","_bgr15leToUV_half_c","_bgr15beToUV_half_c","_bgr12leToUV_half_c","_bgr12beToUV_half_c","_rgb32ToUV_half_c","_rgb321ToUV_half_c","_rgb24ToUV_half_c","_rgb16leToUV_half_c","_rgb16beToUV_half_c","_rgb15leToUV_half_c","_rgb15beToUV_half_c","_rgb12leToUV_half_c","_rgb12beToUV_half_c","_rgb64BEToUV_c","_rgb64LEToUV_c","_bgr64BEToUV_c","_bgr64LEToUV_c","_rgb48BEToUV_c","_rgb48LEToUV_c","_bgr48BEToUV_c","_bgr48LEToUV_c","_bgr32ToUV_c","_bgr321ToUV_c","_bgr24ToUV_c","_bgr16leToUV_c","_bgr16beToUV_c","_bgr15leToUV_c","_bgr15beToUV_c","_bgr12leToUV_c","_bgr12beToUV_c","_rgb32ToUV_c","_rgb321ToUV_c","_rgb24ToUV_c","_rgb16leToUV_c","_rgb16beToUV_c","_rgb15leToUV_c","_rgb15beToUV_c","_rgb12leToUV_c","_rgb12beToUV_c","_yuv2p010lX_LE_c","_yuv2p010lX_BE_c","_yuv2p010cX_c","_yuv2planeX_16LE_c","_yuv2planeX_16BE_c","_yuv2p016cX_c","_yuv2planeX_9LE_c","_yuv2planeX_9BE_c","_yuv2planeX_10LE_c","_yuv2planeX_10BE_c","_yuv2planeX_12LE_c","_yuv2planeX_12BE_c","_yuv2planeX_14LE_c","_yuv2planeX_14BE_c","_yuv2planeX_floatBE_c","_yuv2planeX_floatLE_c","_yuv2planeX_8_c","_yuv2nv12cX_c","_sao_edge_filter_9","_put_hevc_pel_pixels_9","_put_hevc_qpel_h_9","_put_hevc_qpel_v_9","_put_hevc_qpel_hv_9","_put_hevc_epel_h_9","_put_hevc_epel_v_9","_put_hevc_epel_hv_9","_sao_edge_filter_10","_put_hevc_pel_pixels_10","_put_hevc_qpel_h_10","_put_hevc_qpel_v_10","_put_hevc_qpel_hv_10","_put_hevc_epel_h_10","_put_hevc_epel_v_10","_put_hevc_epel_hv_10","_sao_edge_filter_12","_put_hevc_pel_pixels_12","_put_hevc_qpel_h_12","_put_hevc_qpel_v_12","_put_hevc_qpel_hv_12","_put_hevc_epel_h_12","_put_hevc_epel_v_12","_put_hevc_epel_hv_12","_sao_edge_filter_8","_put_hevc_pel_pixels_8","_put_hevc_qpel_h_8","_put_hevc_qpel_v_8","_put_hevc_qpel_hv_8","_put_hevc_epel_h_8","_put_hevc_epel_v_8","_put_hevc_epel_hv_8",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,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ur=[0,"jsCall_viiiiiiii_0","jsCall_viiiiiiii_1","jsCall_viiiiiiii_2","jsCall_viiiiiiii_3","jsCall_viiiiiiii_4","jsCall_viiiiiiii_5","jsCall_viiiiiiii_6","jsCall_viiiiiiii_7","jsCall_viiiiiiii_8","jsCall_viiiiiiii_9","jsCall_viiiiiiii_10","jsCall_viiiiiiii_11","jsCall_viiiiiiii_12","jsCall_viiiiiiii_13","jsCall_viiiiiiii_14","jsCall_viiiiiiii_15","jsCall_viiiiiiii_16","jsCall_viiiiiiii_17","jsCall_viiiiiiii_18","jsCall_viiiiiiii_19","jsCall_viiiiiiii_20","jsCall_viiiiiiii_21","jsCall_viiiiiiii_22","jsCall_viiiiiiii_23","jsCall_viiiiiiii_24","jsCall_viiiiiiii_25","jsCall_viiiiiiii_26","jsCall_viiiiiiii_27","jsCall_viiiiiiii_28","jsCall_viiiiiiii_29","jsCall_viiiiiiii_30","jsCall_viiiiiiii_31","jsCall_viiiiiiii_32","jsCall_viiiiiiii_33","jsCall_viiiiiiii_34","_ff_hcscale_fast_c","_bayer_bggr8_to_yv12_copy","_bayer_bggr8_to_yv12_interpolate","_bayer_bggr16le_to_yv12_copy","_bayer_bggr16le_to_yv12_interpolate","_bayer_bggr16be_to_yv12_copy","_bayer_bggr16be_to_yv12_interpolate","_bayer_rggb8_to_yv12_copy","_bayer_rggb8_to_yv12_interpolate","_bayer_rggb16le_to_yv12_copy","_bayer_rggb16le_to_yv12_interpolate","_bayer_rggb16be_to_yv12_copy","_bayer_rggb16be_to_yv12_interpolate","_bayer_gbrg8_to_yv12_copy","_bayer_gbrg8_to_yv12_interpolate","_bayer_gbrg16le_to_yv12_copy","_bayer_gbrg16le_to_yv12_interpolate","_bayer_gbrg16be_to_yv12_copy","_bayer_gbrg16be_to_yv12_interpolate","_bayer_grbg8_to_yv12_copy","_bayer_grbg8_to_yv12_interpolate","_bayer_grbg16le_to_yv12_copy","_bayer_grbg16le_to_yv12_interpolate","_bayer_grbg16be_to_yv12_copy","_bayer_grbg16be_to_yv12_interpolate","_sao_band_filter_9","_put_hevc_pel_uni_pixels_9","_put_hevc_qpel_uni_h_9","_put_hevc_qpel_uni_v_9","_put_hevc_qpel_uni_hv_9","_put_hevc_epel_uni_h_9","_put_hevc_epel_uni_v_9","_put_hevc_epel_uni_hv_9","_sao_band_filter_10","_put_hevc_pel_uni_pixels_10","_put_hevc_qpel_uni_h_10","_put_hevc_qpel_uni_v_10","_put_hevc_qpel_uni_hv_10","_put_hevc_epel_uni_h_10","_put_hevc_epel_uni_v_10","_put_hevc_epel_uni_hv_10","_sao_band_filter_12","_put_hevc_pel_uni_pixels_12","_put_hevc_qpel_uni_h_12","_put_hevc_qpel_uni_v_12","_put_hevc_qpel_uni_hv_12","_put_hevc_epel_uni_h_12","_put_hevc_epel_uni_v_12","_put_hevc_epel_uni_hv_12","_sao_band_filter_8","_put_hevc_pel_uni_pixels_8","_put_hevc_qpel_uni_h_8","_put_hevc_qpel_uni_v_8","_put_hevc_qpel_uni_hv_8","_put_hevc_epel_uni_h_8","_put_hevc_epel_uni_v_8","_put_hevc_epel_uni_hv_8","_biweight_h264_pixels16_9_c","_biweight_h264_pixels8_9_c","_biweight_h264_pixels4_9_c","_biweight_h264_pixels2_9_c","_biweight_h264_pixels16_10_c","_biweight_h264_pixels8_10_c","_biweight_h264_pixels4_10_c","_biweight_h264_pixels2_10_c","_biweight_h264_pixels16_12_c","_biweight_h264_pixels8_12_c","_biweight_h264_pixels4_12_c","_biweight_h264_pixels2_12_c","_biweight_h264_pixels16_14_c","_biweight_h264_pixels8_14_c","_biweight_h264_pixels4_14_c","_biweight_h264_pixels2_14_c","_biweight_h264_pixels16_8_c","_biweight_h264_pixels8_8_c","_biweight_h264_pixels4_8_c","_biweight_h264_pixels2_8_c",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],cr=[0,"jsCall_viiiiiiiid_0","jsCall_viiiiiiiid_1","jsCall_viiiiiiiid_2","jsCall_viiiiiiiid_3","jsCall_viiiiiiiid_4","jsCall_viiiiiiiid_5","jsCall_viiiiiiiid_6","jsCall_viiiiiiiid_7","jsCall_viiiiiiiid_8","jsCall_viiiiiiiid_9","jsCall_viiiiiiiid_10","jsCall_viiiiiiiid_11","jsCall_viiiiiiiid_12","jsCall_viiiiiiiid_13","jsCall_viiiiiiiid_14","jsCall_viiiiiiiid_15","jsCall_viiiiiiiid_16","jsCall_viiiiiiiid_17","jsCall_viiiiiiiid_18","jsCall_viiiiiiiid_19","jsCall_viiiiiiiid_20","jsCall_viiiiiiiid_21","jsCall_viiiiiiiid_22","jsCall_viiiiiiiid_23","jsCall_viiiiiiiid_24","jsCall_viiiiiiiid_25","jsCall_viiiiiiiid_26","jsCall_viiiiiiiid_27","jsCall_viiiiiiiid_28","jsCall_viiiiiiiid_29","jsCall_viiiiiiiid_30","jsCall_viiiiiiiid_31","jsCall_viiiiiiiid_32","jsCall_viiiiiiiid_33","jsCall_viiiiiiiid_34",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,0],hr=[0,"jsCall_viiiiiiiidi_0","jsCall_viiiiiiiidi_1","jsCall_viiiiiiiidi_2","jsCall_viiiiiiiidi_3","jsCall_viiiiiiiidi_4","jsCall_viiiiiiiidi_5","jsCall_viiiiiiiidi_6","jsCall_viiiiiiiidi_7","jsCall_viiiiiiiidi_8","jsCall_viiiiiiiidi_9","jsCall_viiiiiiiidi_10","jsCall_viiiiiiiidi_11","jsCall_viiiiiiiidi_12","jsCall_viiiiiiiidi_13","jsCall_viiiiiiiidi_14","jsCall_viiiiiiiidi_15","jsCall_viiiiiiiidi_16","jsCall_viiiiiiiidi_17","jsCall_viiiiiiiidi_18","jsCall_viiiiiiiidi_19","jsCall_viiiiiiiidi_20","jsCall_viiiiiiiidi_21","jsCall_viiiiiiiidi_22","jsCall_viiiiiiiidi_23","jsCall_viiiiiiiidi_24","jsCall_viiiiiiiidi_25","jsCall_viiiiiiiidi_26","jsCall_viiiiiiiidi_27","jsCall_viiiiiiiidi_28","jsCall_viiiiiiiidi_29","jsCall_viiiiiiiidi_30","jsCall_viiiiiiiidi_31","jsCall_viiiiiiiidi_32","jsCall_viiiiiiiidi_33","jsCall_viiiiiiiidi_34",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,0],dr=[0,"jsCall_viiiiiiiii_0","jsCall_viiiiiiiii_1","jsCall_viiiiiiiii_2","jsCall_viiiiiiiii_3","jsCall_viiiiiiiii_4","jsCall_viiiiiiiii_5","jsCall_viiiiiiiii_6","jsCall_viiiiiiiii_7","jsCall_viiiiiiiii_8","jsCall_viiiiiiiii_9","jsCall_viiiiiiiii_10","jsCall_viiiiiiiii_11","jsCall_viiiiiiiii_12","jsCall_viiiiiiiii_13","jsCall_viiiiiiiii_14","jsCall_viiiiiiiii_15","jsCall_viiiiiiiii_16","jsCall_viiiiiiiii_17","jsCall_viiiiiiiii_18","jsCall_viiiiiiiii_19","jsCall_viiiiiiiii_20","jsCall_viiiiiiiii_21","jsCall_viiiiiiiii_22","jsCall_viiiiiiiii_23","jsCall_viiiiiiiii_24","jsCall_viiiiiiiii_25","jsCall_viiiiiiiii_26","jsCall_viiiiiiiii_27","jsCall_viiiiiiiii_28","jsCall_viiiiiiiii_29","jsCall_viiiiiiiii_30","jsCall_viiiiiiiii_31","jsCall_viiiiiiiii_32","jsCall_viiiiiiiii_33","jsCall_viiiiiiiii_34","_yuv2rgba32_full_1_c","_yuv2rgbx32_full_1_c","_yuv2argb32_full_1_c","_yuv2xrgb32_full_1_c","_yuv2bgra32_full_1_c","_yuv2bgrx32_full_1_c","_yuv2abgr32_full_1_c","_yuv2xbgr32_full_1_c","_yuv2rgba64le_full_1_c","_yuv2rgbx64le_full_1_c","_yuv2rgba64be_full_1_c","_yuv2rgbx64be_full_1_c","_yuv2bgra64le_full_1_c","_yuv2bgrx64le_full_1_c","_yuv2bgra64be_full_1_c","_yuv2bgrx64be_full_1_c","_yuv2rgb24_full_1_c","_yuv2bgr24_full_1_c","_yuv2rgb48le_full_1_c","_yuv2bgr48le_full_1_c","_yuv2rgb48be_full_1_c","_yuv2bgr48be_full_1_c","_yuv2bgr4_byte_full_1_c","_yuv2rgb4_byte_full_1_c","_yuv2bgr8_full_1_c","_yuv2rgb8_full_1_c","_yuv2rgbx64le_1_c","_yuv2rgba64le_1_c","_yuv2rgbx64be_1_c","_yuv2rgba64be_1_c","_yuv2bgrx64le_1_c","_yuv2bgra64le_1_c","_yuv2bgrx64be_1_c","_yuv2bgra64be_1_c","_yuv2rgba32_1_c","_yuv2rgbx32_1_c","_yuv2rgba32_1_1_c","_yuv2rgbx32_1_1_c","_yuv2rgb16_1_c","_yuv2rgb15_1_c","_yuv2rgb12_1_c","_yuv2rgb8_1_c","_yuv2rgb4_1_c","_yuv2rgb4b_1_c","_yuv2rgb48le_1_c","_yuv2rgb48be_1_c","_yuv2bgr48le_1_c","_yuv2bgr48be_1_c","_yuv2rgb24_1_c","_yuv2bgr24_1_c","_yuv2monowhite_1_c","_yuv2monoblack_1_c","_yuv2yuyv422_1_c","_yuv2yvyu422_1_c","_yuv2uyvy422_1_c","_yuv2ya8_1_c","_yuv2ya16le_1_c","_yuv2ya16be_1_c","_yuy2toyv12_c","_put_hevc_pel_bi_pixels_9","_put_hevc_qpel_bi_h_9","_put_hevc_qpel_bi_v_9","_put_hevc_qpel_bi_hv_9","_put_hevc_epel_bi_h_9","_put_hevc_epel_bi_v_9","_put_hevc_epel_bi_hv_9","_put_hevc_pel_bi_pixels_10","_put_hevc_qpel_bi_h_10","_put_hevc_qpel_bi_v_10","_put_hevc_qpel_bi_hv_10","_put_hevc_epel_bi_h_10","_put_hevc_epel_bi_v_10","_put_hevc_epel_bi_hv_10","_put_hevc_pel_bi_pixels_12","_put_hevc_qpel_bi_h_12","_put_hevc_qpel_bi_v_12","_put_hevc_qpel_bi_hv_12","_put_hevc_epel_bi_h_12","_put_hevc_epel_bi_v_12","_put_hevc_epel_bi_hv_12","_put_hevc_pel_bi_pixels_8","_put_hevc_qpel_bi_h_8","_put_hevc_qpel_bi_v_8","_put_hevc_qpel_bi_hv_8","_put_hevc_epel_bi_h_8","_put_hevc_epel_bi_v_8","_put_hevc_epel_bi_hv_8",0,0,0,0,0],_r=[0,"jsCall_viiiiiiiiii_0","jsCall_viiiiiiiiii_1","jsCall_viiiiiiiiii_2","jsCall_viiiiiiiiii_3","jsCall_viiiiiiiiii_4","jsCall_viiiiiiiiii_5","jsCall_viiiiiiiiii_6","jsCall_viiiiiiiiii_7","jsCall_viiiiiiiiii_8","jsCall_viiiiiiiiii_9","jsCall_viiiiiiiiii_10","jsCall_viiiiiiiiii_11","jsCall_viiiiiiiiii_12","jsCall_viiiiiiiiii_13","jsCall_viiiiiiiiii_14","jsCall_viiiiiiiiii_15","jsCall_viiiiiiiiii_16","jsCall_viiiiiiiiii_17","jsCall_viiiiiiiiii_18","jsCall_viiiiiiiiii_19","jsCall_viiiiiiiiii_20","jsCall_viiiiiiiiii_21","jsCall_viiiiiiiiii_22","jsCall_viiiiiiiiii_23","jsCall_viiiiiiiiii_24","jsCall_viiiiiiiiii_25","jsCall_viiiiiiiiii_26","jsCall_viiiiiiiiii_27","jsCall_viiiiiiiiii_28","jsCall_viiiiiiiiii_29","jsCall_viiiiiiiiii_30","jsCall_viiiiiiiiii_31","jsCall_viiiiiiiiii_32","jsCall_viiiiiiiiii_33","jsCall_viiiiiiiiii_34","_yuv2rgba32_full_2_c","_yuv2rgbx32_full_2_c","_yuv2argb32_full_2_c","_yuv2xrgb32_full_2_c","_yuv2bgra32_full_2_c","_yuv2bgrx32_full_2_c","_yuv2abgr32_full_2_c","_yuv2xbgr32_full_2_c","_yuv2rgba64le_full_2_c","_yuv2rgbx64le_full_2_c","_yuv2rgba64be_full_2_c","_yuv2rgbx64be_full_2_c","_yuv2bgra64le_full_2_c","_yuv2bgrx64le_full_2_c","_yuv2bgra64be_full_2_c","_yuv2bgrx64be_full_2_c","_yuv2rgb24_full_2_c","_yuv2bgr24_full_2_c","_yuv2rgb48le_full_2_c","_yuv2bgr48le_full_2_c","_yuv2rgb48be_full_2_c","_yuv2bgr48be_full_2_c","_yuv2bgr4_byte_full_2_c","_yuv2rgb4_byte_full_2_c","_yuv2bgr8_full_2_c","_yuv2rgb8_full_2_c","_yuv2rgbx64le_2_c","_yuv2rgba64le_2_c","_yuv2rgbx64be_2_c","_yuv2rgba64be_2_c","_yuv2bgrx64le_2_c","_yuv2bgra64le_2_c","_yuv2bgrx64be_2_c","_yuv2bgra64be_2_c","_yuv2rgba32_2_c","_yuv2rgbx32_2_c","_yuv2rgba32_1_2_c","_yuv2rgbx32_1_2_c","_yuv2rgb16_2_c","_yuv2rgb15_2_c","_yuv2rgb12_2_c","_yuv2rgb8_2_c","_yuv2rgb4_2_c","_yuv2rgb4b_2_c","_yuv2rgb48le_2_c","_yuv2rgb48be_2_c","_yuv2bgr48le_2_c","_yuv2bgr48be_2_c","_yuv2rgb24_2_c","_yuv2bgr24_2_c","_yuv2monowhite_2_c","_yuv2monoblack_2_c","_yuv2yuyv422_2_c","_yuv2yvyu422_2_c","_yuv2uyvy422_2_c","_yuv2ya8_2_c","_yuv2ya16le_2_c","_yuv2ya16be_2_c","_vu9_to_vu12_c","_yvu9_to_yuy2_c","_ff_emulated_edge_mc_8","_ff_emulated_edge_mc_16",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,0,0,0],pr=[0,"jsCall_viiiiiiiiiii_0","jsCall_viiiiiiiiiii_1","jsCall_viiiiiiiiiii_2","jsCall_viiiiiiiiiii_3","jsCall_viiiiiiiiiii_4","jsCall_viiiiiiiiiii_5","jsCall_viiiiiiiiiii_6","jsCall_viiiiiiiiiii_7","jsCall_viiiiiiiiiii_8","jsCall_viiiiiiiiiii_9","jsCall_viiiiiiiiiii_10","jsCall_viiiiiiiiiii_11","jsCall_viiiiiiiiiii_12","jsCall_viiiiiiiiiii_13","jsCall_viiiiiiiiiii_14","jsCall_viiiiiiiiiii_15","jsCall_viiiiiiiiiii_16","jsCall_viiiiiiiiiii_17","jsCall_viiiiiiiiiii_18","jsCall_viiiiiiiiiii_19","jsCall_viiiiiiiiiii_20","jsCall_viiiiiiiiiii_21","jsCall_viiiiiiiiiii_22","jsCall_viiiiiiiiiii_23","jsCall_viiiiiiiiiii_24","jsCall_viiiiiiiiiii_25","jsCall_viiiiiiiiiii_26","jsCall_viiiiiiiiiii_27","jsCall_viiiiiiiiiii_28","jsCall_viiiiiiiiiii_29","jsCall_viiiiiiiiiii_30","jsCall_viiiiiiiiiii_31","jsCall_viiiiiiiiiii_32","jsCall_viiiiiiiiiii_33","jsCall_viiiiiiiiiii_34","_put_hevc_pel_uni_w_pixels_9","_put_hevc_qpel_uni_w_h_9","_put_hevc_qpel_uni_w_v_9","_put_hevc_qpel_uni_w_hv_9","_put_hevc_epel_uni_w_h_9","_put_hevc_epel_uni_w_v_9","_put_hevc_epel_uni_w_hv_9","_put_hevc_pel_uni_w_pixels_10","_put_hevc_qpel_uni_w_h_10","_put_hevc_qpel_uni_w_v_10","_put_hevc_qpel_uni_w_hv_10","_put_hevc_epel_uni_w_h_10","_put_hevc_epel_uni_w_v_10","_put_hevc_epel_uni_w_hv_10","_put_hevc_pel_uni_w_pixels_12","_put_hevc_qpel_uni_w_h_12","_put_hevc_qpel_uni_w_v_12","_put_hevc_qpel_uni_w_hv_12","_put_hevc_epel_uni_w_h_12","_put_hevc_epel_uni_w_v_12","_put_hevc_epel_uni_w_hv_12","_put_hevc_pel_uni_w_pixels_8","_put_hevc_qpel_uni_w_h_8","_put_hevc_qpel_uni_w_v_8","_put_hevc_qpel_uni_w_hv_8","_put_hevc_epel_uni_w_h_8","_put_hevc_epel_uni_w_v_8","_put_hevc_epel_uni_w_hv_8"],mr=[0,"jsCall_viiiiiiiiiiii_0","jsCall_viiiiiiiiiiii_1","jsCall_viiiiiiiiiiii_2","jsCall_viiiiiiiiiiii_3","jsCall_viiiiiiiiiiii_4","jsCall_viiiiiiiiiiii_5","jsCall_viiiiiiiiiiii_6","jsCall_viiiiiiiiiiii_7","jsCall_viiiiiiiiiiii_8","jsCall_viiiiiiiiiiii_9","jsCall_viiiiiiiiiiii_10","jsCall_viiiiiiiiiiii_11","jsCall_viiiiiiiiiiii_12","jsCall_viiiiiiiiiiii_13","jsCall_viiiiiiiiiiii_14","jsCall_viiiiiiiiiiii_15","jsCall_viiiiiiiiiiii_16","jsCall_viiiiiiiiiiii_17","jsCall_viiiiiiiiiiii_18","jsCall_viiiiiiiiiiii_19","jsCall_viiiiiiiiiiii_20","jsCall_viiiiiiiiiiii_21","jsCall_viiiiiiiiiiii_22","jsCall_viiiiiiiiiiii_23","jsCall_viiiiiiiiiiii_24","jsCall_viiiiiiiiiiii_25","jsCall_viiiiiiiiiiii_26","jsCall_viiiiiiiiiiii_27","jsCall_viiiiiiiiiiii_28","jsCall_viiiiiiiiiiii_29","jsCall_viiiiiiiiiiii_30","jsCall_viiiiiiiiiiii_31","jsCall_viiiiiiiiiiii_32","jsCall_viiiiiiiiiiii_33","jsCall_viiiiiiiiiiii_34","_yuv2rgba32_full_X_c","_yuv2rgbx32_full_X_c","_yuv2argb32_full_X_c","_yuv2xrgb32_full_X_c","_yuv2bgra32_full_X_c","_yuv2bgrx32_full_X_c","_yuv2abgr32_full_X_c","_yuv2xbgr32_full_X_c","_yuv2rgba64le_full_X_c","_yuv2rgbx64le_full_X_c","_yuv2rgba64be_full_X_c","_yuv2rgbx64be_full_X_c","_yuv2bgra64le_full_X_c","_yuv2bgrx64le_full_X_c","_yuv2bgra64be_full_X_c","_yuv2bgrx64be_full_X_c","_yuv2rgb24_full_X_c","_yuv2bgr24_full_X_c","_yuv2rgb48le_full_X_c","_yuv2bgr48le_full_X_c","_yuv2rgb48be_full_X_c","_yuv2bgr48be_full_X_c","_yuv2bgr4_byte_full_X_c","_yuv2rgb4_byte_full_X_c","_yuv2bgr8_full_X_c","_yuv2rgb8_full_X_c","_yuv2gbrp_full_X_c","_yuv2gbrp16_full_X_c","_yuv2rgbx64le_X_c","_yuv2rgba64le_X_c","_yuv2rgbx64be_X_c","_yuv2rgba64be_X_c","_yuv2bgrx64le_X_c","_yuv2bgra64le_X_c","_yuv2bgrx64be_X_c","_yuv2bgra64be_X_c","_yuv2rgba32_X_c","_yuv2rgbx32_X_c","_yuv2rgba32_1_X_c","_yuv2rgbx32_1_X_c","_yuv2rgb16_X_c","_yuv2rgb15_X_c","_yuv2rgb12_X_c","_yuv2rgb8_X_c","_yuv2rgb4_X_c","_yuv2rgb4b_X_c","_yuv2rgb48le_X_c","_yuv2rgb48be_X_c","_yuv2bgr48le_X_c","_yuv2bgr48be_X_c","_yuv2rgb24_X_c","_yuv2bgr24_X_c","_yuv2monowhite_X_c","_yuv2ayuv64le_X_c","_yuv2monoblack_X_c","_yuv2yuyv422_X_c","_yuv2yvyu422_X_c","_yuv2uyvy422_X_c","_yuv2ya8_X_c","_yuv2ya16le_X_c","_yuv2ya16be_X_c","_sao_edge_restore_0_9","_sao_edge_restore_1_9","_sao_edge_restore_0_10","_sao_edge_restore_1_10","_sao_edge_restore_0_12","_sao_edge_restore_1_12","_sao_edge_restore_0_8","_sao_edge_restore_1_8",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],br=[0,"jsCall_viiiiiiiiiiiiii_0","jsCall_viiiiiiiiiiiiii_1","jsCall_viiiiiiiiiiiiii_2","jsCall_viiiiiiiiiiiiii_3","jsCall_viiiiiiiiiiiiii_4","jsCall_viiiiiiiiiiiiii_5","jsCall_viiiiiiiiiiiiii_6","jsCall_viiiiiiiiiiiiii_7","jsCall_viiiiiiiiiiiiii_8","jsCall_viiiiiiiiiiiiii_9","jsCall_viiiiiiiiiiiiii_10","jsCall_viiiiiiiiiiiiii_11","jsCall_viiiiiiiiiiiiii_12","jsCall_viiiiiiiiiiiiii_13","jsCall_viiiiiiiiiiiiii_14","jsCall_viiiiiiiiiiiiii_15","jsCall_viiiiiiiiiiiiii_16","jsCall_viiiiiiiiiiiiii_17","jsCall_viiiiiiiiiiiiii_18","jsCall_viiiiiiiiiiiiii_19","jsCall_viiiiiiiiiiiiii_20","jsCall_viiiiiiiiiiiiii_21","jsCall_viiiiiiiiiiiiii_22","jsCall_viiiiiiiiiiiiii_23","jsCall_viiiiiiiiiiiiii_24","jsCall_viiiiiiiiiiiiii_25","jsCall_viiiiiiiiiiiiii_26","jsCall_viiiiiiiiiiiiii_27","jsCall_viiiiiiiiiiiiii_28","jsCall_viiiiiiiiiiiiii_29","jsCall_viiiiiiiiiiiiii_30","jsCall_viiiiiiiiiiiiii_31","jsCall_viiiiiiiiiiiiii_32","jsCall_viiiiiiiiiiiiii_33","jsCall_viiiiiiiiiiiiii_34","_put_hevc_pel_bi_w_pixels_9","_put_hevc_qpel_bi_w_h_9","_put_hevc_qpel_bi_w_v_9","_put_hevc_qpel_bi_w_hv_9","_put_hevc_epel_bi_w_h_9","_put_hevc_epel_bi_w_v_9","_put_hevc_epel_bi_w_hv_9","_put_hevc_pel_bi_w_pixels_10","_put_hevc_qpel_bi_w_h_10","_put_hevc_qpel_bi_w_v_10","_put_hevc_qpel_bi_w_hv_10","_put_hevc_epel_bi_w_h_10","_put_hevc_epel_bi_w_v_10","_put_hevc_epel_bi_w_hv_10","_put_hevc_pel_bi_w_pixels_12","_put_hevc_qpel_bi_w_h_12","_put_hevc_qpel_bi_w_v_12","_put_hevc_qpel_bi_w_hv_12","_put_hevc_epel_bi_w_h_12","_put_hevc_epel_bi_w_v_12","_put_hevc_epel_bi_w_hv_12","_put_hevc_pel_bi_w_pixels_8","_put_hevc_qpel_bi_w_h_8","_put_hevc_qpel_bi_w_v_8","_put_hevc_qpel_bi_w_hv_8","_put_hevc_epel_bi_w_h_8","_put_hevc_epel_bi_w_v_8","_put_hevc_epel_bi_w_hv_8"],vr={dd:Pi,did:Ii,didd:Ui,fii:Ri,fiii:Di,ii:Oi,iidiiii:Fi,iii:Bi,iiii:Li,iiiii:Ni,iiiiii:zi,iiiiiii:Hi,iiiiiiii:Vi,iiiiij:Yi,iiiji:qi,jiiij:Xi,jiiji:Wi,jiji:Gi,v:Ki,vdiidiiiii:Qi,vi:Zi,vii:Ji,viidi:$i,viifi:er,viii:tr,viiii:ir,viiiid:rr,viiiifii:nr,viiiii:ar,viiiiidd:sr,viiiiii:or,viiiiiifi:lr,viiiiiii:fr,viiiiiiii:ur,viiiiiiiid:cr,viiiiiiiidi:hr,viiiiiiiii:dr,viiiiiiiiii:_r,viiiiiiiiiii:pr,viiiiiiiiiiii:mr,viiiiiiiiiiiiii:br};function yr(e){je(e,"dd")}function gr(e){je(e,"did")}function wr(e){je(e,"didd")}function Er(e){je(e,"fii")}function Cr(e){je(e,"fiii")}function Sr(e){je(e,"ii")}function jr(e){je(e,"iidiiii")}function Tr(e){je(e,"iii")}function Ar(e){je(e,"iiii")}function xr(e){je(e,"iiiii")}function Mr(e){je(e,"iiiiii")}function kr(e){je(e,"iiiiiii")}function Pr(e){je(e,"iiiiiiii")}function Ir(e){je(e,"iiiiij")}function Ur(e){je(e,"iiiji")}function Rr(e){je(e,"jiiij")}function Dr(e){je(e,"jiiji")}function Or(e){je(e,"jiji")}function Fr(e){je(e,"v")}function Br(e){je(e,"vdiidiiiii")}function Lr(e){je(e,"vi")}function Nr(e){je(e,"vii")}function zr(e){je(e,"viidi")}function Hr(e){je(e,"viifi")}function Vr(e){je(e,"viii")}function Yr(e){je(e,"viiii")}function qr(e){je(e,"viiiid")}function Xr(e){je(e,"viiiifii")}function Wr(e){je(e,"viiiii")}function Gr(e){je(e,"viiiiidd")}function Kr(e){je(e,"viiiiii")}function Qr(e){je(e,"viiiiiifi")}function Zr(e){je(e,"viiiiiii")}function Jr(e){je(e,"viiiiiiii")}function $r(e){je(e,"viiiiiiiid")}function en(e){je(e,"viiiiiiiidi")}function tn(e){je(e,"viiiiiiiii")}function rn(e){je(e,"viiiiiiiiii")}function nn(e){je(e,"viiiiiiiiiii")}function an(e){je(e,"viiiiiiiiiiii")}function sn(e){je(e,"viiiiiiiiiiiiii")}function on(e,t){return k[e](t)}function ln(e,t,i){return k[e](t,i)}function fn(e,t,i,r){return k[e](t,i,r)}function un(e,t,i){return k[e](t,i)}function cn(e,t,i,r){return k[e](t,i,r)}function hn(e,t){return k[e](t)}function dn(e,t,i,r,n,a,s){return k[e](t,i,r,n,a,s)}function _n(e,t,i){return k[e](t,i)}function pn(e,t,i,r){return k[e](t,i,r)}function mn(e,t,i,r,n){return k[e](t,i,r,n)}function bn(e,t,i,r,n,a){return k[e](t,i,r,n,a)}function vn(e,t,i,r,n,a,s){return k[e](t,i,r,n,a,s)}function yn(e,t,i,r,n,a,s,o){return k[e](t,i,r,n,a,s,o)}function gn(e,t,i,r,n,a){return k[e](t,i,r,n,a)}function wn(e,t,i,r,n){return k[e](t,i,r,n)}function En(e,t,i,r,n){return k[e](t,i,r,n)}function Cn(e,t,i,r,n){return k[e](t,i,r,n)}function Sn(e,t,i,r){return k[e](t,i,r)}function jn(e){k[e]()}function Tn(e,t,i,r,n,a,s,o,l,f){k[e](t,i,r,n,a,s,o,l,f)}function An(e,t){k[e](t)}function xn(e,t,i){k[e](t,i)}function Mn(e,t,i,r,n){k[e](t,i,r,n)}function kn(e,t,i,r,n){k[e](t,i,r,n)}function Pn(e,t,i,r){k[e](t,i,r)}function In(e,t,i,r,n){k[e](t,i,r,n)}function Un(e,t,i,r,n,a){k[e](t,i,r,n,a)}function Rn(e,t,i,r,n,a,s,o){k[e](t,i,r,n,a,s,o)}function Dn(e,t,i,r,n,a){k[e](t,i,r,n,a)}function On(e,t,i,r,n,a,s,o){k[e](t,i,r,n,a,s,o)}function Fn(e,t,i,r,n,a,s){k[e](t,i,r,n,a,s)}function Bn(e,t,i,r,n,a,s,o,l){k[e](t,i,r,n,a,s,o,l)}function Ln(e,t,i,r,n,a,s,o){k[e](t,i,r,n,a,s,o)}function Nn(e,t,i,r,n,a,s,o,l){k[e](t,i,r,n,a,s,o,l)}function zn(e,t,i,r,n,a,s,o,l,f){k[e](t,i,r,n,a,s,o,l,f)}function Hn(e,t,i,r,n,a,s,o,l,f,u){k[e](t,i,r,n,a,s,o,l,f,u)}function Vn(e,t,i,r,n,a,s,o,l,f){k[e](t,i,r,n,a,s,o,l,f)}function Yn(e,t,i,r,n,a,s,o,l,f,u){k[e](t,i,r,n,a,s,o,l,f,u)}function qn(e,t,i,r,n,a,s,o,l,f,u,c){k[e](t,i,r,n,a,s,o,l,f,u,c)}function Xn(e,t,i,r,n,a,s,o,l,f,u,c,h){k[e](t,i,r,n,a,s,o,l,f,u,c,h)}function Wn(e,t,i,r,n,a,s,o,l,f,u,c,h,d,_){k[e](t,i,r,n,a,s,o,l,f,u,c,h,d,_)}var Gn={},Kn={___buildEnvironment:ht,___lock:dt,___syscall221:Tt,___syscall3:At,___syscall5:xt,___unlock:Mt,___wasi_fd_close:Pt,___wasi_fd_fdstat_get:Ut,___wasi_fd_seek:Dt,___wasi_fd_write:Ft,__emscripten_fetch_free:Bt,__memory_base:1024,__table_base:0,_abort:Lt,_clock:Nt,_clock_gettime:Vt,_emscripten_get_heap_size:Yt,_emscripten_is_main_browser_thread:qt,_emscripten_memcpy_big:di,_emscripten_resize_heap:Wt,_emscripten_start_fetch:$t,_fabs:ei,_getenv:ti,_gettimeofday:ii,_gmtime_r:ni,_llvm_exp2_f64:si,_llvm_log2_f32:oi,_llvm_stackrestore:li,_llvm_stacksave:fi,_llvm_trunc_f64:ui,_localtime_r:hi,_nanosleep:pi,_pthread_cond_destroy:mi,_pthread_cond_init:bi,_pthread_create:vi,_pthread_join:yi,_strftime:ji,_sysconf:Ti,_time:Ai,abortStackOverflow:Se,getTempRet0:O,jsCall_dd:on,jsCall_did:ln,jsCall_didd:fn,jsCall_fii:un,jsCall_fiii:cn,jsCall_ii:hn,jsCall_iidiiii:dn,jsCall_iii:_n,jsCall_iiii:pn,jsCall_iiiii:mn,jsCall_iiiiii:bn,jsCall_iiiiiii:vn,jsCall_iiiiiiii:yn,jsCall_iiiiij:gn,jsCall_iiiji:wn,jsCall_jiiij:En,jsCall_jiiji:Cn,jsCall_jiji:Sn,jsCall_v:jn,jsCall_vdiidiiiii:Tn,jsCall_vi:An,jsCall_vii:xn,jsCall_viidi:Mn,jsCall_viifi:kn,jsCall_viii:Pn,jsCall_viiii:In,jsCall_viiiid:Un,jsCall_viiiifii:Rn,jsCall_viiiii:Dn,jsCall_viiiiidd:On,jsCall_viiiiii:Fn,jsCall_viiiiiifi:Bn,jsCall_viiiiiii:Ln,jsCall_viiiiiiii:Nn,jsCall_viiiiiiiid:zn,jsCall_viiiiiiiidi:Hn,jsCall_viiiiiiiii:Vn,jsCall_viiiiiiiiii:Yn,jsCall_viiiiiiiiiii:qn,jsCall_viiiiiiiiiiii:Xn,jsCall_viiiiiiiiiiiiii:Wn,memory:R,nullFunc_dd:yr,nullFunc_did:gr,nullFunc_didd:wr,nullFunc_fii:Er,nullFunc_fiii:Cr,nullFunc_ii:Sr,nullFunc_iidiiii:jr,nullFunc_iii:Tr,nullFunc_iiii:Ar,nullFunc_iiiii:xr,nullFunc_iiiiii:Mr,nullFunc_iiiiiii:kr,nullFunc_iiiiiiii:Pr,nullFunc_iiiiij:Ir,nullFunc_iiiji:Ur,nullFunc_jiiij:Rr,nullFunc_jiiji:Dr,nullFunc_jiji:Or,nullFunc_v:Fr,nullFunc_vdiidiiiii:Br,nullFunc_vi:Lr,nullFunc_vii:Nr,nullFunc_viidi:zr,nullFunc_viifi:Hr,nullFunc_viii:Vr,nullFunc_viiii:Yr,nullFunc_viiiid:qr,nullFunc_viiiifii:Xr,nullFunc_viiiii:Wr,nullFunc_viiiiidd:Gr,nullFunc_viiiiii:Kr,nullFunc_viiiiiifi:Qr,nullFunc_viiiiiii:Zr,nullFunc_viiiiiiii:Jr,nullFunc_viiiiiiiid:$r,nullFunc_viiiiiiiidi:en,nullFunc_viiiiiiiii:tn,nullFunc_viiiiiiiiii:rn,nullFunc_viiiiiiiiiii:nn,nullFunc_viiiiiiiiiiii:an,nullFunc_viiiiiiiiiiiiii:sn,table:B},Qn=l.asm(Gn,Kn,re);l.asm=Qn;l._AVSniffStreamInit=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._AVSniffStreamInit.apply(null,arguments)};var Zn,Jn=l.___emscripten_environ_constructor=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.___emscripten_environ_constructor.apply(null,arguments)},$n=(l.___errno_location=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.___errno_location.apply(null,arguments)},l.__get_daylight=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.__get_daylight.apply(null,arguments)}),ea=l.__get_timezone=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.__get_timezone.apply(null,arguments)},ta=l.__get_tzname=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.__get_tzname.apply(null,arguments)},ia=(l._closeVideo=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._closeVideo.apply(null,arguments)},l._decodeCodecContext=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._decodeCodecContext.apply(null,arguments)},l._decodeVideoFrame=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._decodeVideoFrame.apply(null,arguments)},l._demuxBox=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._demuxBox.apply(null,arguments)},l._exitMissile=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._exitMissile.apply(null,arguments)},l._exitTsMissile=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._exitTsMissile.apply(null,arguments)},l._fflush=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._fflush.apply(null,arguments)},l._free=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._free.apply(null,arguments)}),ra=(l._getAudioCodecID=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getAudioCodecID.apply(null,arguments)},l._getExtensionInfo=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getExtensionInfo.apply(null,arguments)},l._getMediaInfo=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getMediaInfo.apply(null,arguments)},l._getPPS=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getPPS.apply(null,arguments)},l._getPPSLen=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getPPSLen.apply(null,arguments)},l._getPacket=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getPacket.apply(null,arguments)},l._getSEI=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getSEI.apply(null,arguments)},l._getSEILen=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getSEILen.apply(null,arguments)},l._getSPS=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getSPS.apply(null,arguments)},l._getSPSLen=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getSPSLen.apply(null,arguments)},l._getSniffStreamPkg=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getSniffStreamPkg.apply(null,arguments)},l._getSniffStreamPkgNoCheckProbe=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getSniffStreamPkgNoCheckProbe.apply(null,arguments)},l._getVLC=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getVLC.apply(null,arguments)},l._getVLCLen=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getVLCLen.apply(null,arguments)},l._getVPS=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getVPS.apply(null,arguments)},l._getVPSLen=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getVPSLen.apply(null,arguments)},l._getVideoCodecID=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getVideoCodecID.apply(null,arguments)},l._initMissile=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._initMissile.apply(null,arguments)},l._initTsMissile=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._initTsMissile.apply(null,arguments)},l._initializeDecoder=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._initializeDecoder.apply(null,arguments)},l._initializeDemuxer=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._initializeDemuxer.apply(null,arguments)},l._initializeSniffStreamModule=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._initializeSniffStreamModule.apply(null,arguments)},l._initializeSniffStreamModuleWithAOpt=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._initializeSniffStreamModuleWithAOpt.apply(null,arguments)},l._malloc=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._malloc.apply(null,arguments)}),na=(l._pushSniffStreamData=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._pushSniffStreamData.apply(null,arguments)},l._registerPlayer=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._registerPlayer.apply(null,arguments)},l._release=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._release.apply(null,arguments)},l._releaseSniffStream=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._releaseSniffStream.apply(null,arguments)},l._setCodecType=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._setCodecType.apply(null,arguments)},l.establishStackSpace=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.establishStackSpace.apply(null,arguments)},l.stackAlloc=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.stackAlloc.apply(null,arguments)}),aa=l.stackRestore=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.stackRestore.apply(null,arguments)},sa=l.stackSave=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.stackSave.apply(null,arguments)},oa=(l.dynCall_v=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.dynCall_v.apply(null,arguments)},l.dynCall_vi=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.dynCall_vi.apply(null,arguments)});function la(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function fa(e){function t(){Zn||(Zn=!0,L||(Re(),De(),l.onRuntimeInitialized&&l.onRuntimeInitialized(),N(!l._main,'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]'),Oe()))}e=e||u,Ye>0||(Ee(),Ue(),Ye>0||(l.setStatus?(l.setStatus("Running..."),setTimeout((function(){setTimeout((function(){l.setStatus("")}),1),t()}),1)):t(),Ce()))}if(l.asm=Qn,Object.getOwnPropertyDescriptor(l,"intArrayFromString")||(l.intArrayFromString=function(){Ze("'intArrayFromString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"intArrayToString")||(l.intArrayToString=function(){Ze("'intArrayToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),l.ccall=H,l.cwrap=V,Object.getOwnPropertyDescriptor(l,"setValue")||(l.setValue=function(){Ze("'setValue' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getValue")||(l.getValue=function(){Ze("'getValue' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"allocate")||(l.allocate=function(){Ze("'allocate' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getMemory")||(l.getMemory=function(){Ze("'getMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"AsciiToString")||(l.AsciiToString=function(){Ze("'AsciiToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stringToAscii")||(l.stringToAscii=function(){Ze("'stringToAscii' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"UTF8ArrayToString")||(l.UTF8ArrayToString=function(){Ze("'UTF8ArrayToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"UTF8ToString")||(l.UTF8ToString=function(){Ze("'UTF8ToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stringToUTF8Array")||(l.stringToUTF8Array=function(){Ze("'stringToUTF8Array' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stringToUTF8")||(l.stringToUTF8=function(){Ze("'stringToUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"lengthBytesUTF8")||(l.lengthBytesUTF8=function(){Ze("'lengthBytesUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"UTF16ToString")||(l.UTF16ToString=function(){Ze("'UTF16ToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stringToUTF16")||(l.stringToUTF16=function(){Ze("'stringToUTF16' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"lengthBytesUTF16")||(l.lengthBytesUTF16=function(){Ze("'lengthBytesUTF16' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"UTF32ToString")||(l.UTF32ToString=function(){Ze("'UTF32ToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stringToUTF32")||(l.stringToUTF32=function(){Ze("'stringToUTF32' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"lengthBytesUTF32")||(l.lengthBytesUTF32=function(){Ze("'lengthBytesUTF32' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"allocateUTF8")||(l.allocateUTF8=function(){Ze("'allocateUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stackTrace")||(l.stackTrace=function(){Ze("'stackTrace' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"addOnPreRun")||(l.addOnPreRun=function(){Ze("'addOnPreRun' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"addOnInit")||(l.addOnInit=function(){Ze("'addOnInit' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"addOnPreMain")||(l.addOnPreMain=function(){Ze("'addOnPreMain' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"addOnExit")||(l.addOnExit=function(){Ze("'addOnExit' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"addOnPostRun")||(l.addOnPostRun=function(){Ze("'addOnPostRun' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"writeStringToMemory")||(l.writeStringToMemory=function(){Ze("'writeStringToMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"writeArrayToMemory")||(l.writeArrayToMemory=function(){Ze("'writeArrayToMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"writeAsciiToMemory")||(l.writeAsciiToMemory=function(){Ze("'writeAsciiToMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"addRunDependency")||(l.addRunDependency=function(){Ze("'addRunDependency' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"removeRunDependency")||(l.removeRunDependency=function(){Ze("'removeRunDependency' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"ENV")||(l.ENV=function(){Ze("'ENV' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"FS")||(l.FS=function(){Ze("'FS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"FS_createFolder")||(l.FS_createFolder=function(){Ze("'FS_createFolder' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_createPath")||(l.FS_createPath=function(){Ze("'FS_createPath' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_createDataFile")||(l.FS_createDataFile=function(){Ze("'FS_createDataFile' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_createPreloadedFile")||(l.FS_createPreloadedFile=function(){Ze("'FS_createPreloadedFile' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_createLazyFile")||(l.FS_createLazyFile=function(){Ze("'FS_createLazyFile' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_createLink")||(l.FS_createLink=function(){Ze("'FS_createLink' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_createDevice")||(l.FS_createDevice=function(){Ze("'FS_createDevice' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_unlink")||(l.FS_unlink=function(){Ze("'FS_unlink' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"GL")||(l.GL=function(){Ze("'GL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"dynamicAlloc")||(l.dynamicAlloc=function(){Ze("'dynamicAlloc' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"loadDynamicLibrary")||(l.loadDynamicLibrary=function(){Ze("'loadDynamicLibrary' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"loadWebAssemblyModule")||(l.loadWebAssemblyModule=function(){Ze("'loadWebAssemblyModule' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getLEB")||(l.getLEB=function(){Ze("'getLEB' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getFunctionTables")||(l.getFunctionTables=function(){Ze("'getFunctionTables' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"alignFunctionTables")||(l.alignFunctionTables=function(){Ze("'alignFunctionTables' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"registerFunctions")||(l.registerFunctions=function(){Ze("'registerFunctions' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),l.addFunction=P,Object.getOwnPropertyDescriptor(l,"removeFunction")||(l.removeFunction=function(){Ze("'removeFunction' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getFuncWrapper")||(l.getFuncWrapper=function(){Ze("'getFuncWrapper' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"prettyPrint")||(l.prettyPrint=function(){Ze("'prettyPrint' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"makeBigInt")||(l.makeBigInt=function(){Ze("'makeBigInt' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"dynCall")||(l.dynCall=function(){Ze("'dynCall' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getCompilerSetting")||(l.getCompilerSetting=function(){Ze("'getCompilerSetting' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stackSave")||(l.stackSave=function(){Ze("'stackSave' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stackRestore")||(l.stackRestore=function(){Ze("'stackRestore' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stackAlloc")||(l.stackAlloc=function(){Ze("'stackAlloc' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"establishStackSpace")||(l.establishStackSpace=function(){Ze("'establishStackSpace' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"print")||(l.print=function(){Ze("'print' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"printErr")||(l.printErr=function(){Ze("'printErr' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getTempRet0")||(l.getTempRet0=function(){Ze("'getTempRet0' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"setTempRet0")||(l.setTempRet0=function(){Ze("'setTempRet0' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"callMain")||(l.callMain=function(){Ze("'callMain' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"abort")||(l.abort=function(){Ze("'abort' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"Pointer_stringify")||(l.Pointer_stringify=function(){Ze("'Pointer_stringify' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"warnOnce")||(l.warnOnce=function(){Ze("'warnOnce' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"ALLOC_NORMAL")||Object.defineProperty(l,"ALLOC_NORMAL",{configurable:!0,get:function(){Ze("'ALLOC_NORMAL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(l,"ALLOC_STACK")||Object.defineProperty(l,"ALLOC_STACK",{configurable:!0,get:function(){Ze("'ALLOC_STACK' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(l,"ALLOC_DYNAMIC")||Object.defineProperty(l,"ALLOC_DYNAMIC",{configurable:!0,get:function(){Ze("'ALLOC_DYNAMIC' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(l,"ALLOC_NONE")||Object.defineProperty(l,"ALLOC_NONE",{configurable:!0,get:function(){Ze("'ALLOC_NONE' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(l,"calledRun")||Object.defineProperty(l,"calledRun",{configurable:!0,get:function(){Ze("'calledRun' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}}),Xe=function e(){Zn||fa(),Zn||(Xe=e)},l.run=fa,l.preInit)for("function"==typeof l.preInit&&(l.preInit=[l.preInit]);l.preInit.length>0;)l.preInit.pop()();U=!0,fa(),t.exports=l}).call(this,e("_process"),e("buffer").Buffer,"/src/decoder")},{_process:158,buffer:66,crypto:75,fs:64,path:150}],2:[function(e,t,i){"use strict";const r=i;r.bignum=e("bn.js"),r.define=e("./asn1/api").define,r.base=e("./asn1/base"),r.constants=e("./asn1/constants"),r.decoders=e("./asn1/decoders"),r.encoders=e("./asn1/encoders")},{"./asn1/api":3,"./asn1/base":5,"./asn1/constants":9,"./asn1/decoders":11,"./asn1/encoders":14,"bn.js":16}],3:[function(e,t,i){"use strict";const r=e("./encoders"),n=e("./decoders"),a=e("inherits");function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}i.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){const t=this.name;function i(e){this._initNamed(e,t)}return a(i,e),i.prototype._initNamed=function(t,i){e.call(this,t,i)},new i(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n[e])),this.decoders[e]},s.prototype.decode=function(e,t,i){return this._getDecoder(t).decode(e,i)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},s.prototype.encode=function(e,t,i){return this._getEncoder(t).encode(e,i)}},{"./decoders":11,"./encoders":14,inherits:136}],4:[function(e,t,i){"use strict";const r=e("inherits"),n=e("../base/reporter").Reporter,a=e("safer-buffer").Buffer;function s(e,t){n.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function o(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return o.isEncoderBuffer(e)||(e=new o(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(s,n),i.DecoderBuffer=s,s.isDecoderBuffer=function(e){if(e instanceof s)return!0;return"object"==typeof e&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},s.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},s.prototype.restore=function(e){const t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,n.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const i=new s(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},i.EncoderBuffer=o,o.isEncoderBuffer=function(e){if(e instanceof o)return!0;return"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},o.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(e,t),t+=i.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":7,inherits:136,"safer-buffer":185}],5:[function(e,t,i){"use strict";const r=i;r.Reporter=e("./reporter").Reporter,r.DecoderBuffer=e("./buffer").DecoderBuffer,r.EncoderBuffer=e("./buffer").EncoderBuffer,r.Node=e("./node")},{"./buffer":4,"./node":6,"./reporter":7}],6:[function(e,t,i){"use strict";const r=e("../base/reporter").Reporter,n=e("../base/buffer").EncoderBuffer,a=e("../base/buffer").DecoderBuffer,s=e("minimalistic-assert"),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function f(e,t,i){const r={};this._baseState=r,r.name=i,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=f;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){const e=this._baseState,t={};u.forEach((function(i){t[i]=e[i]}));const i=new this.constructor(t.parent);return i._baseState=t,i},f.prototype._wrap=function(){const e=this._baseState;l.forEach((function(t){this[t]=function(){const i=new this.constructor(this);return e.children.push(i),i[t].apply(i,arguments)}}),this)},f.prototype._init=function(e){const t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(e){const t=this._baseState,i=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==i.length&&(s(null===t.children),t.children=i,i.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(i){i==(0|i)&&(i|=0);const r=e[i];t[r]=i})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){f.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),o.forEach((function(e){f.prototype[e]=function(){const t=this._baseState,i=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(i),this}})),f.prototype.use=function(e){s(e);const t=this._baseState;return s(null===t.use),t.use=e,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(e){const t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},f.prototype.explicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},f.prototype.implicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},f.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},f.prototype.key=function(e){const t=this._baseState;return s(null===t.key),t.key=e,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(e){const t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},f.prototype.contains=function(e){const t=this._baseState;return s(null===t.use),t.contains=e,this},f.prototype._decode=function(e,t){const i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));let r,n=i.default,s=!0,o=null;if(null!==i.key&&(o=e.enterKey(i.key)),i.optional){let r=null;if(null!==i.explicit?r=i.explicit:null!==i.implicit?r=i.implicit:null!==i.tag&&(r=i.tag),null!==r||i.any){if(s=this._peekTag(e,r,i.any),e.isError(s))return s}else{const r=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(r)}}if(i.obj&&s&&(r=e.enterObject()),s){if(null!==i.explicit){const t=this._decodeTag(e,i.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===i.use&&null===i.choice){let t;i.any&&(t=e.save());const r=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(r))return r;i.any?n=e.raw(t):e=r}if(t&&t.track&&null!==i.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(n=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(n))return n;if(i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(e,t)})),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){const r=new a(n);n=this._getUse(i.contains,e._reporterState.obj)._decode(r,t)}}return i.obj&&s&&(n=e.leaveObject(r)),null===i.key||null===n&&!0!==s?null!==o&&e.exitKey(o):e.leaveKey(o,i.key,n),n},f.prototype._decodeGeneric=function(e,t,i){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],i):/str$/.test(e)?this._decodeStr(t,e,i):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],i):"objid"===e?this._decodeObjid(t,null,null,i):"gentime"===e||"utctime"===e?this._decodeTime(t,e,i):"null_"===e?this._decodeNull(t,i):"bool"===e?this._decodeBool(t,i):"objDesc"===e?this._decodeStr(t,e,i):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],i):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,i):t.error("unknown tag: "+e)},f.prototype._getUse=function(e,t){const i=this._baseState;return i.useDecoder=this._use(e,t),s(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},f.prototype._decodeChoice=function(e,t){const i=this._baseState;let r=null,n=!1;return Object.keys(i.choice).some((function(a){const s=e.save(),o=i.choice[a];try{const i=o._decode(e,t);if(e.isError(i))return!1;r={type:a,value:i},n=!0}catch(t){return e.restore(s),!1}return!0}),this),n?r:e.error("Choice not matched")},f.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},f.prototype._encode=function(e,t,i){const r=this._baseState;if(null!==r.default&&r.default===e)return;const n=this._encodeValue(e,t,i);return void 0===n||this._skipDefault(n,t,i)?void 0:n},f.prototype._encodeValue=function(e,t,i){const n=this._baseState;if(null===n.parent)return n.children[0]._encode(e,t||new r);let a=null;if(this.reporter=t,n.optional&&void 0===e){if(null===n.default)return;e=n.default}let s=null,o=!1;if(n.any)a=this._createEncoderBuffer(e);else if(n.choice)a=this._encodeChoice(e,t);else if(n.contains)s=this._getUse(n.contains,i)._encode(e,t),o=!0;else if(n.children)s=n.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,t,e);if(null===i._baseState.key)return t.error("Child should have a key");const r=t.enterKey(i._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const n=i._encode(e[i._baseState.key],t,e);return t.leaveKey(r),n}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return t.error("Too many args for : "+n.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const i=this.clone();i._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(i){const r=this._baseState;return this._getUse(r.args[0],e)._encode(i,t)}),i))}else null!==n.use?a=this._getUse(n.use,i)._encode(e,t):(s=this._encodePrimitive(n.tag,e),o=!0);if(!n.any&&null===n.choice){const e=null!==n.implicit?n.implicit:n.tag,i=null===n.implicit?"universal":"context";null===e?null===n.use&&t.error("Tag could be omitted only for .use()"):null===n.use&&(a=this._encodeComposite(e,o,i,s))}return null!==n.explicit&&(a=this._encodeComposite(n.explicit,!1,"context",a)),a},f.prototype._encodeChoice=function(e,t){const i=this._baseState,r=i.choice[e.type];return r||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(e.value,t)},f.prototype._encodePrimitive=function(e,t){const i=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&i.args)return this._encodeObjid(t,i.reverseArgs[0],i.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,i.args&&i.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},f.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},f.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":4,"../base/reporter":7,"minimalistic-assert":142}],7:[function(e,t,i){"use strict";const r=e("inherits");function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}i.Reporter=n,n.prototype.isError=function(e){return e instanceof a},n.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,i){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=i)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){const t=this._reporterState,i=t.obj;return t.obj=e,i},n.prototype.error=function(e){let t;const i=this._reporterState,r=e instanceof a;if(t=r?e:new a(i.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!i.options.partial)throw t;return r||i.errors.push(t),t},n.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:136}],8:[function(e,t,i){"use strict";function r(e){const t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);const r=e[i];t[r]=i})),t}i.tagClass={0:"universal",1:"application",2:"context",3:"private"},i.tagClassByName=r(i.tagClass),i.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},i.tagByName=r(i.tag)},{}],9:[function(e,t,i){"use strict";const r=i;r._reverse=function(e){const t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);const r=e[i];t[r]=i})),t},r.der=e("./der")},{"./der":8}],10:[function(e,t,i){"use strict";const r=e("inherits"),n=e("bn.js"),a=e("../base/buffer").DecoderBuffer,s=e("../base/node"),o=e("../constants/der");function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){s.call(this,"der",e)}function u(e,t){let i=e.readUInt8(t);if(e.isError(i))return i;const r=o.tagClass[i>>6],n=0==(32&i);if(31==(31&i)){let r=i;for(i=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;i<<=7,i|=127&r}}else i&=31;return{cls:r,primitive:n,tag:i,tagStr:o.tag[i]}}function c(e,t,i){let r=e.readUInt8(i);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;const n=127&r;if(n>4)return e.error("length octect is too long");r=0;for(let t=0;t=31)return r.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=s.tagClassByName[i||"universal"]<<6,n}(e,t,i,this.reporter);if(r.length<128){const e=n.alloc(2);return e[0]=a,e[1]=r.length,this._createEncoderBuffer([e,r])}let o=1;for(let e=r.length;e>=256;e>>=8)o++;const l=n.alloc(2+o);l[0]=a,l[1]=128|o;for(let e=1+o,t=r.length;t>0;e--,t>>=8)l[e]=255&t;return this._createEncoderBuffer([l,r])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=n.alloc(2*e.length);for(let i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let t=0;t=128;i>>=7)r++}const a=n.alloc(r);let s=a.length-1;for(let t=e.length-1;t>=0;t--){let i=e[t];for(a[s--]=127&i;(i>>=7)>0;)a[s--]=128|127&i}return this._createEncoderBuffer(a)},l.prototype._encodeTime=function(e,t){let i;const r=new Date(e);return"gentime"===t?i=[f(r.getUTCFullYear()),f(r.getUTCMonth()+1),f(r.getUTCDate()),f(r.getUTCHours()),f(r.getUTCMinutes()),f(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?i=[f(r.getUTCFullYear()%100),f(r.getUTCMonth()+1),f(r.getUTCDate()),f(r.getUTCHours()),f(r.getUTCMinutes()),f(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(i,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!n.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=n.from(t)}if(n.isBuffer(e)){let t=e.length;0===e.length&&t++;const i=n.alloc(t);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let i=1;for(let t=e;t>=256;t>>=8)i++;const r=new Array(i);for(let t=r.length-1;t>=0;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(n.from(r))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,i){const r=this._baseState;let n;if(null===r.default)return!1;const a=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,i).join()),a.length!==r.defaultBuffer.length)return!1;for(n=0;n=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return r}function l(e,t,i,r){for(var n=0,a=Math.min(e.length,i),s=t;s=49?o-49+10:o>=17?o-17+10:o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),t,i)},a.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},a.prototype._initArray=function(e,t,i){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)s=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[a]|=s<>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);else if("le"===i)for(n=0,a=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i=t;i-=6)n=o(e,i,i+6),this.words[r]|=n<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);i+6!==t&&(n=o(e,t,i+6),this.words[r]|=n<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var a=e.length-i,s=a%r,o=Math.min(a,a-s)+i,f=0,u=i;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],c=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,i){i.negative=t.negative^e.negative;var r=e.length+t.length|0;i.length=r,r=r-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,l=s/67108864|0;i.words[0]=o;for(var f=1;f>>26,c=67108863&l,h=Math.min(f,t.length-1),d=Math.max(0,f-e.length+1);d<=h;d++){var _=f-d|0;u+=(s=(n=0|e.words[_])*(a=0|t.words[d])+c)/67108864|0,c=67108863&s}i.words[f]=0|c,l=0|u}return 0!==l?i.words[f]=0|l:i.length--,i.strip()}a.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?f[6-l.length]+l+i:l+i,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(i=a.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],d=c[e];i="";var _=this.clone();for(_.negative=0;!_.isZero();){var p=_.modn(d).toString(e);i=(_=_.idivn(d)).isZero()?p+i:f[h-p.length]+p+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==s),this.toArrayLike(s,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,i){var n=this.byteLength(),a=i||Math.max(1,n);r(n<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var s,o,l="le"===t,f=new e(a),u=this.clone();if(l){for(o=0;!u.isZero();o++)s=u.andln(255),u.iushrn(8),f[o]=s;for(;o=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<e.length?(i=this,r=e):(i=e,r=this);for(var n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=e):(i=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&t;for(;0!==a&&s>26,this.words[s]=67108863&t;if(0===a&&s>>13,d=0|s[1],_=8191&d,p=d>>>13,m=0|s[2],b=8191&m,v=m>>>13,y=0|s[3],g=8191&y,w=y>>>13,E=0|s[4],C=8191&E,S=E>>>13,j=0|s[5],T=8191&j,A=j>>>13,x=0|s[6],M=8191&x,k=x>>>13,P=0|s[7],I=8191&P,U=P>>>13,R=0|s[8],D=8191&R,O=R>>>13,F=0|s[9],B=8191&F,L=F>>>13,N=0|o[0],z=8191&N,H=N>>>13,V=0|o[1],Y=8191&V,q=V>>>13,X=0|o[2],W=8191&X,G=X>>>13,K=0|o[3],Q=8191&K,Z=K>>>13,J=0|o[4],$=8191&J,ee=J>>>13,te=0|o[5],ie=8191&te,re=te>>>13,ne=0|o[6],ae=8191&ne,se=ne>>>13,oe=0|o[7],le=8191&oe,fe=oe>>>13,ue=0|o[8],ce=8191&ue,he=ue>>>13,de=0|o[9],_e=8191&de,pe=de>>>13;i.negative=e.negative^t.negative,i.length=19;var me=(f+(r=Math.imul(c,z))|0)+((8191&(n=(n=Math.imul(c,H))+Math.imul(h,z)|0))<<13)|0;f=((a=Math.imul(h,H))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(_,z),n=(n=Math.imul(_,H))+Math.imul(p,z)|0,a=Math.imul(p,H);var be=(f+(r=r+Math.imul(c,Y)|0)|0)+((8191&(n=(n=n+Math.imul(c,q)|0)+Math.imul(h,Y)|0))<<13)|0;f=((a=a+Math.imul(h,q)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,z),n=(n=Math.imul(b,H))+Math.imul(v,z)|0,a=Math.imul(v,H),r=r+Math.imul(_,Y)|0,n=(n=n+Math.imul(_,q)|0)+Math.imul(p,Y)|0,a=a+Math.imul(p,q)|0;var ve=(f+(r=r+Math.imul(c,W)|0)|0)+((8191&(n=(n=n+Math.imul(c,G)|0)+Math.imul(h,W)|0))<<13)|0;f=((a=a+Math.imul(h,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(g,z),n=(n=Math.imul(g,H))+Math.imul(w,z)|0,a=Math.imul(w,H),r=r+Math.imul(b,Y)|0,n=(n=n+Math.imul(b,q)|0)+Math.imul(v,Y)|0,a=a+Math.imul(v,q)|0,r=r+Math.imul(_,W)|0,n=(n=n+Math.imul(_,G)|0)+Math.imul(p,W)|0,a=a+Math.imul(p,G)|0;var ye=(f+(r=r+Math.imul(c,Q)|0)|0)+((8191&(n=(n=n+Math.imul(c,Z)|0)+Math.imul(h,Q)|0))<<13)|0;f=((a=a+Math.imul(h,Z)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,z),n=(n=Math.imul(C,H))+Math.imul(S,z)|0,a=Math.imul(S,H),r=r+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,q)|0)+Math.imul(w,Y)|0,a=a+Math.imul(w,q)|0,r=r+Math.imul(b,W)|0,n=(n=n+Math.imul(b,G)|0)+Math.imul(v,W)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,Z)|0)+Math.imul(p,Q)|0,a=a+Math.imul(p,Z)|0;var ge=(f+(r=r+Math.imul(c,$)|0)|0)+((8191&(n=(n=n+Math.imul(c,ee)|0)+Math.imul(h,$)|0))<<13)|0;f=((a=a+Math.imul(h,ee)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(T,z),n=(n=Math.imul(T,H))+Math.imul(A,z)|0,a=Math.imul(A,H),r=r+Math.imul(C,Y)|0,n=(n=n+Math.imul(C,q)|0)+Math.imul(S,Y)|0,a=a+Math.imul(S,q)|0,r=r+Math.imul(g,W)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(w,W)|0,a=a+Math.imul(w,G)|0,r=r+Math.imul(b,Q)|0,n=(n=n+Math.imul(b,Z)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,Z)|0,r=r+Math.imul(_,$)|0,n=(n=n+Math.imul(_,ee)|0)+Math.imul(p,$)|0,a=a+Math.imul(p,ee)|0;var we=(f+(r=r+Math.imul(c,ie)|0)|0)+((8191&(n=(n=n+Math.imul(c,re)|0)+Math.imul(h,ie)|0))<<13)|0;f=((a=a+Math.imul(h,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(M,z),n=(n=Math.imul(M,H))+Math.imul(k,z)|0,a=Math.imul(k,H),r=r+Math.imul(T,Y)|0,n=(n=n+Math.imul(T,q)|0)+Math.imul(A,Y)|0,a=a+Math.imul(A,q)|0,r=r+Math.imul(C,W)|0,n=(n=n+Math.imul(C,G)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,G)|0,r=r+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,Z)|0)+Math.imul(w,Q)|0,a=a+Math.imul(w,Z)|0,r=r+Math.imul(b,$)|0,n=(n=n+Math.imul(b,ee)|0)+Math.imul(v,$)|0,a=a+Math.imul(v,ee)|0,r=r+Math.imul(_,ie)|0,n=(n=n+Math.imul(_,re)|0)+Math.imul(p,ie)|0,a=a+Math.imul(p,re)|0;var Ee=(f+(r=r+Math.imul(c,ae)|0)|0)+((8191&(n=(n=n+Math.imul(c,se)|0)+Math.imul(h,ae)|0))<<13)|0;f=((a=a+Math.imul(h,se)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(I,z),n=(n=Math.imul(I,H))+Math.imul(U,z)|0,a=Math.imul(U,H),r=r+Math.imul(M,Y)|0,n=(n=n+Math.imul(M,q)|0)+Math.imul(k,Y)|0,a=a+Math.imul(k,q)|0,r=r+Math.imul(T,W)|0,n=(n=n+Math.imul(T,G)|0)+Math.imul(A,W)|0,a=a+Math.imul(A,G)|0,r=r+Math.imul(C,Q)|0,n=(n=n+Math.imul(C,Z)|0)+Math.imul(S,Q)|0,a=a+Math.imul(S,Z)|0,r=r+Math.imul(g,$)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(w,$)|0,a=a+Math.imul(w,ee)|0,r=r+Math.imul(b,ie)|0,n=(n=n+Math.imul(b,re)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,re)|0,r=r+Math.imul(_,ae)|0,n=(n=n+Math.imul(_,se)|0)+Math.imul(p,ae)|0,a=a+Math.imul(p,se)|0;var Ce=(f+(r=r+Math.imul(c,le)|0)|0)+((8191&(n=(n=n+Math.imul(c,fe)|0)+Math.imul(h,le)|0))<<13)|0;f=((a=a+Math.imul(h,fe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,z),n=(n=Math.imul(D,H))+Math.imul(O,z)|0,a=Math.imul(O,H),r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,q)|0)+Math.imul(U,Y)|0,a=a+Math.imul(U,q)|0,r=r+Math.imul(M,W)|0,n=(n=n+Math.imul(M,G)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,G)|0,r=r+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,Z)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,Z)|0,r=r+Math.imul(C,$)|0,n=(n=n+Math.imul(C,ee)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,ee)|0,r=r+Math.imul(g,ie)|0,n=(n=n+Math.imul(g,re)|0)+Math.imul(w,ie)|0,a=a+Math.imul(w,re)|0,r=r+Math.imul(b,ae)|0,n=(n=n+Math.imul(b,se)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,se)|0,r=r+Math.imul(_,le)|0,n=(n=n+Math.imul(_,fe)|0)+Math.imul(p,le)|0,a=a+Math.imul(p,fe)|0;var Se=(f+(r=r+Math.imul(c,ce)|0)|0)+((8191&(n=(n=n+Math.imul(c,he)|0)+Math.imul(h,ce)|0))<<13)|0;f=((a=a+Math.imul(h,he)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,z),n=(n=Math.imul(B,H))+Math.imul(L,z)|0,a=Math.imul(L,H),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,q)|0)+Math.imul(O,Y)|0,a=a+Math.imul(O,q)|0,r=r+Math.imul(I,W)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(U,W)|0,a=a+Math.imul(U,G)|0,r=r+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,Z)|0)+Math.imul(k,Q)|0,a=a+Math.imul(k,Z)|0,r=r+Math.imul(T,$)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(A,$)|0,a=a+Math.imul(A,ee)|0,r=r+Math.imul(C,ie)|0,n=(n=n+Math.imul(C,re)|0)+Math.imul(S,ie)|0,a=a+Math.imul(S,re)|0,r=r+Math.imul(g,ae)|0,n=(n=n+Math.imul(g,se)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,se)|0,r=r+Math.imul(b,le)|0,n=(n=n+Math.imul(b,fe)|0)+Math.imul(v,le)|0,a=a+Math.imul(v,fe)|0,r=r+Math.imul(_,ce)|0,n=(n=n+Math.imul(_,he)|0)+Math.imul(p,ce)|0,a=a+Math.imul(p,he)|0;var je=(f+(r=r+Math.imul(c,_e)|0)|0)+((8191&(n=(n=n+Math.imul(c,pe)|0)+Math.imul(h,_e)|0))<<13)|0;f=((a=a+Math.imul(h,pe)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,Y),n=(n=Math.imul(B,q))+Math.imul(L,Y)|0,a=Math.imul(L,q),r=r+Math.imul(D,W)|0,n=(n=n+Math.imul(D,G)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,G)|0,r=r+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(U,Q)|0,a=a+Math.imul(U,Z)|0,r=r+Math.imul(M,$)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(T,ie)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(A,ie)|0,a=a+Math.imul(A,re)|0,r=r+Math.imul(C,ae)|0,n=(n=n+Math.imul(C,se)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,se)|0,r=r+Math.imul(g,le)|0,n=(n=n+Math.imul(g,fe)|0)+Math.imul(w,le)|0,a=a+Math.imul(w,fe)|0,r=r+Math.imul(b,ce)|0,n=(n=n+Math.imul(b,he)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,he)|0;var Te=(f+(r=r+Math.imul(_,_e)|0)|0)+((8191&(n=(n=n+Math.imul(_,pe)|0)+Math.imul(p,_e)|0))<<13)|0;f=((a=a+Math.imul(p,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,W),n=(n=Math.imul(B,G))+Math.imul(L,W)|0,a=Math.imul(L,G),r=r+Math.imul(D,Q)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,Z)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(U,$)|0,a=a+Math.imul(U,ee)|0,r=r+Math.imul(M,ie)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(k,ie)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,se)|0)+Math.imul(A,ae)|0,a=a+Math.imul(A,se)|0,r=r+Math.imul(C,le)|0,n=(n=n+Math.imul(C,fe)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,fe)|0,r=r+Math.imul(g,ce)|0,n=(n=n+Math.imul(g,he)|0)+Math.imul(w,ce)|0,a=a+Math.imul(w,he)|0;var Ae=(f+(r=r+Math.imul(b,_e)|0)|0)+((8191&(n=(n=n+Math.imul(b,pe)|0)+Math.imul(v,_e)|0))<<13)|0;f=((a=a+Math.imul(v,pe)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,Q),n=(n=Math.imul(B,Z))+Math.imul(L,Q)|0,a=Math.imul(L,Z),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,ee)|0,r=r+Math.imul(I,ie)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(U,ie)|0,a=a+Math.imul(U,re)|0,r=r+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,se)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,se)|0,r=r+Math.imul(T,le)|0,n=(n=n+Math.imul(T,fe)|0)+Math.imul(A,le)|0,a=a+Math.imul(A,fe)|0,r=r+Math.imul(C,ce)|0,n=(n=n+Math.imul(C,he)|0)+Math.imul(S,ce)|0,a=a+Math.imul(S,he)|0;var xe=(f+(r=r+Math.imul(g,_e)|0)|0)+((8191&(n=(n=n+Math.imul(g,pe)|0)+Math.imul(w,_e)|0))<<13)|0;f=((a=a+Math.imul(w,pe)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(B,$),n=(n=Math.imul(B,ee))+Math.imul(L,$)|0,a=Math.imul(L,ee),r=r+Math.imul(D,ie)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(O,ie)|0,a=a+Math.imul(O,re)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,se)|0)+Math.imul(U,ae)|0,a=a+Math.imul(U,se)|0,r=r+Math.imul(M,le)|0,n=(n=n+Math.imul(M,fe)|0)+Math.imul(k,le)|0,a=a+Math.imul(k,fe)|0,r=r+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,he)|0)+Math.imul(A,ce)|0,a=a+Math.imul(A,he)|0;var Me=(f+(r=r+Math.imul(C,_e)|0)|0)+((8191&(n=(n=n+Math.imul(C,pe)|0)+Math.imul(S,_e)|0))<<13)|0;f=((a=a+Math.imul(S,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(B,ie),n=(n=Math.imul(B,re))+Math.imul(L,ie)|0,a=Math.imul(L,re),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,se)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,se)|0,r=r+Math.imul(I,le)|0,n=(n=n+Math.imul(I,fe)|0)+Math.imul(U,le)|0,a=a+Math.imul(U,fe)|0,r=r+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,he)|0)+Math.imul(k,ce)|0,a=a+Math.imul(k,he)|0;var ke=(f+(r=r+Math.imul(T,_e)|0)|0)+((8191&(n=(n=n+Math.imul(T,pe)|0)+Math.imul(A,_e)|0))<<13)|0;f=((a=a+Math.imul(A,pe)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(B,ae),n=(n=Math.imul(B,se))+Math.imul(L,ae)|0,a=Math.imul(L,se),r=r+Math.imul(D,le)|0,n=(n=n+Math.imul(D,fe)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,fe)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,he)|0)+Math.imul(U,ce)|0,a=a+Math.imul(U,he)|0;var Pe=(f+(r=r+Math.imul(M,_e)|0)|0)+((8191&(n=(n=n+Math.imul(M,pe)|0)+Math.imul(k,_e)|0))<<13)|0;f=((a=a+Math.imul(k,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(B,le),n=(n=Math.imul(B,fe))+Math.imul(L,le)|0,a=Math.imul(L,fe),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,he)|0)+Math.imul(O,ce)|0,a=a+Math.imul(O,he)|0;var Ie=(f+(r=r+Math.imul(I,_e)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(U,_e)|0))<<13)|0;f=((a=a+Math.imul(U,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,ce),n=(n=Math.imul(B,he))+Math.imul(L,ce)|0,a=Math.imul(L,he);var Ue=(f+(r=r+Math.imul(D,_e)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(O,_e)|0))<<13)|0;f=((a=a+Math.imul(O,pe)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var Re=(f+(r=Math.imul(B,_e))|0)+((8191&(n=(n=Math.imul(B,pe))+Math.imul(L,_e)|0))<<13)|0;return f=((a=Math.imul(L,pe))+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,l[0]=me,l[1]=be,l[2]=ve,l[3]=ye,l[4]=ge,l[5]=we,l[6]=Ee,l[7]=Ce,l[8]=Se,l[9]=je,l[10]=Te,l[11]=Ae,l[12]=xe,l[13]=Me,l[14]=ke,l[15]=Pe,l[16]=Ie,l[17]=Ue,l[18]=Re,0!==f&&(l[19]=f,i.length++),i};function _(e,t,i){return(new p).mulp(e,t,i)}function p(e,t){this.x=e,this.y=t}Math.imul||(d=h),a.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?d(this,e,t):i<63?h(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var r=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}i.words[a]=o,r=s,s=n}return 0!==r?i.words[a]=r:i.length--,i.strip()}(this,e,t):_(this,e,t)},p.prototype.makeRBT=function(e){for(var t=new Array(e),i=a.prototype._countBits(e)-1,r=0;r>=1;return r},p.prototype.permute=function(e,t,i,r,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,i[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=n/67108864|0,t+=a>>>26,this.words[i]=67108863&a}return 0!==t&&(this.words[i]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i>>n}return t}(e);if(0===t.length)return new a(1);for(var i=this,r=0;r=0);var t,i=e%26,n=(e-i)/26,a=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(t=0;t>>26-i}s&&(this.words[t]=s,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==u||f>=n);f--){var c=0|this.words[f];this.words[f]=u<<26-a|c>>>a,u=c&o}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,i){return r(0===this.negative),this.iushrn(e,t,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,n=1<=0);var t=e%26,i=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[n+i]=67108863&a}for(;n>26,this.words[n+i]=67108863&a;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var i=(this.length,e.length),r=this.clone(),n=e,s=0|n.words[n.length-1];0!==(i=26-this._countBits(s))&&(n=n.ushln(i),r.iushln(i),s=0|n.words[n.length-1]);var o,l=r.length-n.length;if("mod"!==t){(o=new a(null)).length=l+1,o.words=new Array(o.length);for(var f=0;f=0;c--){var h=67108864*(0|r.words[n.length+c])+(0|r.words[n.length+c-1]);for(h=Math.min(h/s|0,67108863),r._ishlnsubmul(n,h,c);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(n,1,c),r.isZero()||(r.negative^=1);o&&(o.words[c]=h)}return o&&o.strip(),r.strip(),"div"!==t&&0!==i&&r.iushrn(i),{div:o||null,mod:r}},a.prototype.divmod=function(e,t,i){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),i&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),i&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,s,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),a=i.cmp(r);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,i=0,n=this.length-1;n>=0;n--)i=(t*i+(0|this.words[n]))%e;return i},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*t;this.words[i]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),l=new a(1),f=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++f;for(var u=i.clone(),c=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(u),s.isub(c)),n.iushrn(1),s.iushrn(1);for(var _=0,p=1;0==(i.words[0]&p)&&_<26;++_,p<<=1);if(_>0)for(i.iushrn(_);_-- >0;)(o.isOdd()||l.isOdd())&&(o.iadd(u),l.isub(c)),o.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(o),s.isub(l)):(i.isub(t),o.isub(n),l.isub(s))}return{a:o,b:l,gcd:i.iushln(f)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,s=new a(1),o=new a(0),l=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;0==(t.words[0]&u)&&f<26;++f,u<<=1);if(f>0)for(t.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var c=0,h=1;0==(i.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(i.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);t.cmp(i)>=0?(t.isub(i),s.isub(o)):(i.isub(t),o.isub(s))}return(n=0===t.cmpn(1)?s:o).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var r=0;t.isEven()&&i.isEven();r++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=t.cmp(i);if(n<0){var a=t;t=i,i=a}else if(0===n||0===i.cmpn(1))break;t.isub(i)}return i.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,i=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;i--){var r=0|this.words[i],n=0|e.words[i];if(r!==n){rn&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},n(v,b),v.prototype.split=function(e,t){for(var i=Math.min(e.length,9),r=0;r>>22,n=a}n>>>=22,e.words[r-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new g;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return m[e]=t,t},E.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},E.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);r(!n.isZero());var o=new a(1).toRed(this),l=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(l);)u.redIAdd(l);for(var c=this.pow(u,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),_=s;0!==d.cmp(o);){for(var p=d,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m<_);var b=this.pow(c,new a(1).iushln(_-m-1));h=h.redMul(b),c=b.redSqr(),d=d.redMul(c),_=m}return h},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var r=2;r=0;r--){for(var f=t.words[r],u=l-1;u>=0;u--){var c=f>>u&1;n!==i[0]&&(n=this.sqr(n)),0!==c||0!==s?(s<<=1,s|=c,(4===++o||0===r&&0===u)&&(n=this.mul(n,i[s]),o=0,s=0)):o=0}l=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new C(e)},n(C,E),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var i=e.mul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:20}],17:[function(e,t,i){"use strict";i.byteLength=function(e){var t=f(e),i=t[0],r=t[1];return 3*(i+r)/4-r},i.toByteArray=function(e){var t,i,r=f(e),s=r[0],o=r[1],l=new a(function(e,t,i){return 3*(t+i)/4-i}(0,s,o)),u=0,c=o>0?s-4:s;for(i=0;i>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===o&&(t=n[e.charCodeAt(i)]<<2|n[e.charCodeAt(i+1)]>>4,l[u++]=255&t);1===o&&(t=n[e.charCodeAt(i)]<<10|n[e.charCodeAt(i+1)]<<4|n[e.charCodeAt(i+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},i.fromByteArray=function(e){for(var t,i=e.length,n=i%3,a=[],s=0,o=i-n;so?o:s+16383));1===n?(t=e[i-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=s.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function u(e,t,i){for(var n,a,s=[],o=t;o>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},{}],18:[function(e,t,i){!function(t,i){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function a(e,t,i){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var s;"object"==typeof t?t.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{s=e("buffer").Buffer}catch(e){}function o(e,t,i){for(var n=0,a=Math.min(e.length,i),s=0,o=t;o=49&&f<=54?f-49+10:f>=17&&f<=22?f-17+10:f,s|=l}return r(!(240&s),"Invalid character in "+e),n}function l(e,t,i,n){for(var a=0,s=0,o=Math.min(e.length,i),l=t;l=49?f-49+10:f>=17?f-17+10:f,r(f>=0&&s0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this._strip(),"le"===i&&this._initArray(this.toArray(),t,i)},a.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},a.prototype._initArray=function(e,t,i){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)s=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[a]|=s<>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);else if("le"===i)for(n=0,a=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);return this._strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i=t;i-=6)n=o(e,i,i+6),this.words[r]|=n<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);i+6!==t&&(n=o(e,t,i+6),this.words[r]|=n<>>26-a&4194303),this._strip()},a.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var a=e.length-i,s=a%r,o=Math.min(a,a-s)+i,f=0,u=i;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){a.prototype.inspect=u}else a.prototype.inspect=u;function u(){return(this.red?""}var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-l.length]+l+i:l+i,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(i=a.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var f=h[e],u=d[e];i="";var _=this.clone();for(_.negative=0;!_.isZero();){var p=_.modrn(u).toString(e);i=(_=_.idivn(u)).isZero()?p+i:c[f-p.length]+p+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},s&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function _(e,t,i){i.negative=t.negative^e.negative;var r=e.length+t.length|0;i.length=r,r=r-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,l=s/67108864|0;i.words[0]=o;for(var f=1;f>>26,c=67108863&l,h=Math.min(f,t.length-1),d=Math.max(0,f-e.length+1);d<=h;d++){var _=f-d|0;u+=(s=(n=0|e.words[_])*(a=0|t.words[d])+c)/67108864|0,c=67108863&s}i.words[f]=0|c,l=0|u}return 0!==l?i.words[f]=0|l:i.length--,i._strip()}a.prototype.toArrayLike=function(e,t,i){this._strip();var n=this.byteLength(),a=i||Math.max(1,n);r(n<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,n),s},a.prototype._toArrayLikeLE=function(e,t){for(var i=0,r=0,n=0,a=0;n>8&255),i>16&255),6===a?(i>24&255),r=0,a=0):(r=s>>>24,a+=2)}if(i=0&&(e[i--]=s>>8&255),i>=0&&(e[i--]=s>>16&255),6===a?(i>=0&&(e[i--]=s>>24&255),r=0,a=0):(r=s>>>24,a+=2)}if(i>=0)for(e[i--]=r;i>=0;)e[i--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-i),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<e.length?(i=this,r=e):(i=e,r=this);for(var n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=e):(i=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&t;for(;0!==a&&s>26,this.words[s]=67108863&t;if(0===a&&s>>13,d=0|s[1],_=8191&d,p=d>>>13,m=0|s[2],b=8191&m,v=m>>>13,y=0|s[3],g=8191&y,w=y>>>13,E=0|s[4],C=8191&E,S=E>>>13,j=0|s[5],T=8191&j,A=j>>>13,x=0|s[6],M=8191&x,k=x>>>13,P=0|s[7],I=8191&P,U=P>>>13,R=0|s[8],D=8191&R,O=R>>>13,F=0|s[9],B=8191&F,L=F>>>13,N=0|o[0],z=8191&N,H=N>>>13,V=0|o[1],Y=8191&V,q=V>>>13,X=0|o[2],W=8191&X,G=X>>>13,K=0|o[3],Q=8191&K,Z=K>>>13,J=0|o[4],$=8191&J,ee=J>>>13,te=0|o[5],ie=8191&te,re=te>>>13,ne=0|o[6],ae=8191&ne,se=ne>>>13,oe=0|o[7],le=8191&oe,fe=oe>>>13,ue=0|o[8],ce=8191&ue,he=ue>>>13,de=0|o[9],_e=8191&de,pe=de>>>13;i.negative=e.negative^t.negative,i.length=19;var me=(f+(r=Math.imul(c,z))|0)+((8191&(n=(n=Math.imul(c,H))+Math.imul(h,z)|0))<<13)|0;f=((a=Math.imul(h,H))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(_,z),n=(n=Math.imul(_,H))+Math.imul(p,z)|0,a=Math.imul(p,H);var be=(f+(r=r+Math.imul(c,Y)|0)|0)+((8191&(n=(n=n+Math.imul(c,q)|0)+Math.imul(h,Y)|0))<<13)|0;f=((a=a+Math.imul(h,q)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,z),n=(n=Math.imul(b,H))+Math.imul(v,z)|0,a=Math.imul(v,H),r=r+Math.imul(_,Y)|0,n=(n=n+Math.imul(_,q)|0)+Math.imul(p,Y)|0,a=a+Math.imul(p,q)|0;var ve=(f+(r=r+Math.imul(c,W)|0)|0)+((8191&(n=(n=n+Math.imul(c,G)|0)+Math.imul(h,W)|0))<<13)|0;f=((a=a+Math.imul(h,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(g,z),n=(n=Math.imul(g,H))+Math.imul(w,z)|0,a=Math.imul(w,H),r=r+Math.imul(b,Y)|0,n=(n=n+Math.imul(b,q)|0)+Math.imul(v,Y)|0,a=a+Math.imul(v,q)|0,r=r+Math.imul(_,W)|0,n=(n=n+Math.imul(_,G)|0)+Math.imul(p,W)|0,a=a+Math.imul(p,G)|0;var ye=(f+(r=r+Math.imul(c,Q)|0)|0)+((8191&(n=(n=n+Math.imul(c,Z)|0)+Math.imul(h,Q)|0))<<13)|0;f=((a=a+Math.imul(h,Z)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,z),n=(n=Math.imul(C,H))+Math.imul(S,z)|0,a=Math.imul(S,H),r=r+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,q)|0)+Math.imul(w,Y)|0,a=a+Math.imul(w,q)|0,r=r+Math.imul(b,W)|0,n=(n=n+Math.imul(b,G)|0)+Math.imul(v,W)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,Z)|0)+Math.imul(p,Q)|0,a=a+Math.imul(p,Z)|0;var ge=(f+(r=r+Math.imul(c,$)|0)|0)+((8191&(n=(n=n+Math.imul(c,ee)|0)+Math.imul(h,$)|0))<<13)|0;f=((a=a+Math.imul(h,ee)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(T,z),n=(n=Math.imul(T,H))+Math.imul(A,z)|0,a=Math.imul(A,H),r=r+Math.imul(C,Y)|0,n=(n=n+Math.imul(C,q)|0)+Math.imul(S,Y)|0,a=a+Math.imul(S,q)|0,r=r+Math.imul(g,W)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(w,W)|0,a=a+Math.imul(w,G)|0,r=r+Math.imul(b,Q)|0,n=(n=n+Math.imul(b,Z)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,Z)|0,r=r+Math.imul(_,$)|0,n=(n=n+Math.imul(_,ee)|0)+Math.imul(p,$)|0,a=a+Math.imul(p,ee)|0;var we=(f+(r=r+Math.imul(c,ie)|0)|0)+((8191&(n=(n=n+Math.imul(c,re)|0)+Math.imul(h,ie)|0))<<13)|0;f=((a=a+Math.imul(h,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(M,z),n=(n=Math.imul(M,H))+Math.imul(k,z)|0,a=Math.imul(k,H),r=r+Math.imul(T,Y)|0,n=(n=n+Math.imul(T,q)|0)+Math.imul(A,Y)|0,a=a+Math.imul(A,q)|0,r=r+Math.imul(C,W)|0,n=(n=n+Math.imul(C,G)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,G)|0,r=r+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,Z)|0)+Math.imul(w,Q)|0,a=a+Math.imul(w,Z)|0,r=r+Math.imul(b,$)|0,n=(n=n+Math.imul(b,ee)|0)+Math.imul(v,$)|0,a=a+Math.imul(v,ee)|0,r=r+Math.imul(_,ie)|0,n=(n=n+Math.imul(_,re)|0)+Math.imul(p,ie)|0,a=a+Math.imul(p,re)|0;var Ee=(f+(r=r+Math.imul(c,ae)|0)|0)+((8191&(n=(n=n+Math.imul(c,se)|0)+Math.imul(h,ae)|0))<<13)|0;f=((a=a+Math.imul(h,se)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(I,z),n=(n=Math.imul(I,H))+Math.imul(U,z)|0,a=Math.imul(U,H),r=r+Math.imul(M,Y)|0,n=(n=n+Math.imul(M,q)|0)+Math.imul(k,Y)|0,a=a+Math.imul(k,q)|0,r=r+Math.imul(T,W)|0,n=(n=n+Math.imul(T,G)|0)+Math.imul(A,W)|0,a=a+Math.imul(A,G)|0,r=r+Math.imul(C,Q)|0,n=(n=n+Math.imul(C,Z)|0)+Math.imul(S,Q)|0,a=a+Math.imul(S,Z)|0,r=r+Math.imul(g,$)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(w,$)|0,a=a+Math.imul(w,ee)|0,r=r+Math.imul(b,ie)|0,n=(n=n+Math.imul(b,re)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,re)|0,r=r+Math.imul(_,ae)|0,n=(n=n+Math.imul(_,se)|0)+Math.imul(p,ae)|0,a=a+Math.imul(p,se)|0;var Ce=(f+(r=r+Math.imul(c,le)|0)|0)+((8191&(n=(n=n+Math.imul(c,fe)|0)+Math.imul(h,le)|0))<<13)|0;f=((a=a+Math.imul(h,fe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,z),n=(n=Math.imul(D,H))+Math.imul(O,z)|0,a=Math.imul(O,H),r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,q)|0)+Math.imul(U,Y)|0,a=a+Math.imul(U,q)|0,r=r+Math.imul(M,W)|0,n=(n=n+Math.imul(M,G)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,G)|0,r=r+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,Z)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,Z)|0,r=r+Math.imul(C,$)|0,n=(n=n+Math.imul(C,ee)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,ee)|0,r=r+Math.imul(g,ie)|0,n=(n=n+Math.imul(g,re)|0)+Math.imul(w,ie)|0,a=a+Math.imul(w,re)|0,r=r+Math.imul(b,ae)|0,n=(n=n+Math.imul(b,se)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,se)|0,r=r+Math.imul(_,le)|0,n=(n=n+Math.imul(_,fe)|0)+Math.imul(p,le)|0,a=a+Math.imul(p,fe)|0;var Se=(f+(r=r+Math.imul(c,ce)|0)|0)+((8191&(n=(n=n+Math.imul(c,he)|0)+Math.imul(h,ce)|0))<<13)|0;f=((a=a+Math.imul(h,he)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,z),n=(n=Math.imul(B,H))+Math.imul(L,z)|0,a=Math.imul(L,H),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,q)|0)+Math.imul(O,Y)|0,a=a+Math.imul(O,q)|0,r=r+Math.imul(I,W)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(U,W)|0,a=a+Math.imul(U,G)|0,r=r+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,Z)|0)+Math.imul(k,Q)|0,a=a+Math.imul(k,Z)|0,r=r+Math.imul(T,$)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(A,$)|0,a=a+Math.imul(A,ee)|0,r=r+Math.imul(C,ie)|0,n=(n=n+Math.imul(C,re)|0)+Math.imul(S,ie)|0,a=a+Math.imul(S,re)|0,r=r+Math.imul(g,ae)|0,n=(n=n+Math.imul(g,se)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,se)|0,r=r+Math.imul(b,le)|0,n=(n=n+Math.imul(b,fe)|0)+Math.imul(v,le)|0,a=a+Math.imul(v,fe)|0,r=r+Math.imul(_,ce)|0,n=(n=n+Math.imul(_,he)|0)+Math.imul(p,ce)|0,a=a+Math.imul(p,he)|0;var je=(f+(r=r+Math.imul(c,_e)|0)|0)+((8191&(n=(n=n+Math.imul(c,pe)|0)+Math.imul(h,_e)|0))<<13)|0;f=((a=a+Math.imul(h,pe)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,Y),n=(n=Math.imul(B,q))+Math.imul(L,Y)|0,a=Math.imul(L,q),r=r+Math.imul(D,W)|0,n=(n=n+Math.imul(D,G)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,G)|0,r=r+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(U,Q)|0,a=a+Math.imul(U,Z)|0,r=r+Math.imul(M,$)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(T,ie)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(A,ie)|0,a=a+Math.imul(A,re)|0,r=r+Math.imul(C,ae)|0,n=(n=n+Math.imul(C,se)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,se)|0,r=r+Math.imul(g,le)|0,n=(n=n+Math.imul(g,fe)|0)+Math.imul(w,le)|0,a=a+Math.imul(w,fe)|0,r=r+Math.imul(b,ce)|0,n=(n=n+Math.imul(b,he)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,he)|0;var Te=(f+(r=r+Math.imul(_,_e)|0)|0)+((8191&(n=(n=n+Math.imul(_,pe)|0)+Math.imul(p,_e)|0))<<13)|0;f=((a=a+Math.imul(p,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,W),n=(n=Math.imul(B,G))+Math.imul(L,W)|0,a=Math.imul(L,G),r=r+Math.imul(D,Q)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,Z)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(U,$)|0,a=a+Math.imul(U,ee)|0,r=r+Math.imul(M,ie)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(k,ie)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,se)|0)+Math.imul(A,ae)|0,a=a+Math.imul(A,se)|0,r=r+Math.imul(C,le)|0,n=(n=n+Math.imul(C,fe)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,fe)|0,r=r+Math.imul(g,ce)|0,n=(n=n+Math.imul(g,he)|0)+Math.imul(w,ce)|0,a=a+Math.imul(w,he)|0;var Ae=(f+(r=r+Math.imul(b,_e)|0)|0)+((8191&(n=(n=n+Math.imul(b,pe)|0)+Math.imul(v,_e)|0))<<13)|0;f=((a=a+Math.imul(v,pe)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,Q),n=(n=Math.imul(B,Z))+Math.imul(L,Q)|0,a=Math.imul(L,Z),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,ee)|0,r=r+Math.imul(I,ie)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(U,ie)|0,a=a+Math.imul(U,re)|0,r=r+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,se)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,se)|0,r=r+Math.imul(T,le)|0,n=(n=n+Math.imul(T,fe)|0)+Math.imul(A,le)|0,a=a+Math.imul(A,fe)|0,r=r+Math.imul(C,ce)|0,n=(n=n+Math.imul(C,he)|0)+Math.imul(S,ce)|0,a=a+Math.imul(S,he)|0;var xe=(f+(r=r+Math.imul(g,_e)|0)|0)+((8191&(n=(n=n+Math.imul(g,pe)|0)+Math.imul(w,_e)|0))<<13)|0;f=((a=a+Math.imul(w,pe)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(B,$),n=(n=Math.imul(B,ee))+Math.imul(L,$)|0,a=Math.imul(L,ee),r=r+Math.imul(D,ie)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(O,ie)|0,a=a+Math.imul(O,re)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,se)|0)+Math.imul(U,ae)|0,a=a+Math.imul(U,se)|0,r=r+Math.imul(M,le)|0,n=(n=n+Math.imul(M,fe)|0)+Math.imul(k,le)|0,a=a+Math.imul(k,fe)|0,r=r+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,he)|0)+Math.imul(A,ce)|0,a=a+Math.imul(A,he)|0;var Me=(f+(r=r+Math.imul(C,_e)|0)|0)+((8191&(n=(n=n+Math.imul(C,pe)|0)+Math.imul(S,_e)|0))<<13)|0;f=((a=a+Math.imul(S,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(B,ie),n=(n=Math.imul(B,re))+Math.imul(L,ie)|0,a=Math.imul(L,re),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,se)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,se)|0,r=r+Math.imul(I,le)|0,n=(n=n+Math.imul(I,fe)|0)+Math.imul(U,le)|0,a=a+Math.imul(U,fe)|0,r=r+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,he)|0)+Math.imul(k,ce)|0,a=a+Math.imul(k,he)|0;var ke=(f+(r=r+Math.imul(T,_e)|0)|0)+((8191&(n=(n=n+Math.imul(T,pe)|0)+Math.imul(A,_e)|0))<<13)|0;f=((a=a+Math.imul(A,pe)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(B,ae),n=(n=Math.imul(B,se))+Math.imul(L,ae)|0,a=Math.imul(L,se),r=r+Math.imul(D,le)|0,n=(n=n+Math.imul(D,fe)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,fe)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,he)|0)+Math.imul(U,ce)|0,a=a+Math.imul(U,he)|0;var Pe=(f+(r=r+Math.imul(M,_e)|0)|0)+((8191&(n=(n=n+Math.imul(M,pe)|0)+Math.imul(k,_e)|0))<<13)|0;f=((a=a+Math.imul(k,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(B,le),n=(n=Math.imul(B,fe))+Math.imul(L,le)|0,a=Math.imul(L,fe),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,he)|0)+Math.imul(O,ce)|0,a=a+Math.imul(O,he)|0;var Ie=(f+(r=r+Math.imul(I,_e)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(U,_e)|0))<<13)|0;f=((a=a+Math.imul(U,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,ce),n=(n=Math.imul(B,he))+Math.imul(L,ce)|0,a=Math.imul(L,he);var Ue=(f+(r=r+Math.imul(D,_e)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(O,_e)|0))<<13)|0;f=((a=a+Math.imul(O,pe)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var Re=(f+(r=Math.imul(B,_e))|0)+((8191&(n=(n=Math.imul(B,pe))+Math.imul(L,_e)|0))<<13)|0;return f=((a=Math.imul(L,pe))+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,l[0]=me,l[1]=be,l[2]=ve,l[3]=ye,l[4]=ge,l[5]=we,l[6]=Ee,l[7]=Ce,l[8]=Se,l[9]=je,l[10]=Te,l[11]=Ae,l[12]=xe,l[13]=Me,l[14]=ke,l[15]=Pe,l[16]=Ie,l[17]=Ue,l[18]=Re,0!==f&&(l[19]=f,i.length++),i};function m(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var r=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}i.words[a]=o,r=s,s=n}return 0!==r?i.words[a]=r:i.length--,i._strip()}function b(e,t,i){return m(e,t,i)}function v(e,t){this.x=e,this.y=t}Math.imul||(p=_),a.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):i<63?_(this,e,t):i<1024?m(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),i=a.prototype._countBits(e)-1,r=0;r>=1;return r},v.prototype.permute=function(e,t,i,r,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,i[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,i+=a/67108864|0,i+=s>>>26,this.words[n]=67108863&s}return 0!==i&&(this.words[n]=i,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i>>n&1}return t}(e);if(0===t.length)return new a(1);for(var i=this,r=0;r=0);var t,i=e%26,n=(e-i)/26,a=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(t=0;t>>26-i}s&&(this.words[t]=s,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==u||f>=n);f--){var c=0|this.words[f];this.words[f]=u<<26-a|c>>>a,u=c&o}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,i){return r(0===this.negative),this.iushrn(e,t,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,n=1<=0);var t=e%26,i=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[n+i]=67108863&a}for(;n>26,this.words[n+i]=67108863&a;if(0===o)return this._strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var i=(this.length,e.length),r=this.clone(),n=e,s=0|n.words[n.length-1];0!==(i=26-this._countBits(s))&&(n=n.ushln(i),r.iushln(i),s=0|n.words[n.length-1]);var o,l=r.length-n.length;if("mod"!==t){(o=new a(null)).length=l+1,o.words=new Array(o.length);for(var f=0;f=0;c--){var h=67108864*(0|r.words[n.length+c])+(0|r.words[n.length+c-1]);for(h=Math.min(h/s|0,67108863),r._ishlnsubmul(n,h,c);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(n,1,c),r.isZero()||(r.negative^=1);o&&(o.words[c]=h)}return o&&o._strip(),r._strip(),"div"!==t&&0!==i&&r.iushrn(i),{div:o||null,mod:r}},a.prototype.divmod=function(e,t,i){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),i&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),i&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,s,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),a=i.cmp(r);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var i=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(i*n+(0|this.words[a]))%e;return t?-n:n},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var i=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*i;this.words[n]=a/e|0,i=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),l=new a(1),f=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++f;for(var u=i.clone(),c=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(u),s.isub(c)),n.iushrn(1),s.iushrn(1);for(var _=0,p=1;0==(i.words[0]&p)&&_<26;++_,p<<=1);if(_>0)for(i.iushrn(_);_-- >0;)(o.isOdd()||l.isOdd())&&(o.iadd(u),l.isub(c)),o.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(o),s.isub(l)):(i.isub(t),o.isub(n),l.isub(s))}return{a:o,b:l,gcd:i.iushln(f)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,s=new a(1),o=new a(0),l=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;0==(t.words[0]&u)&&f<26;++f,u<<=1);if(f>0)for(t.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var c=0,h=1;0==(i.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(i.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);t.cmp(i)>=0?(t.isub(i),s.isub(o)):(i.isub(t),o.isub(s))}return(n=0===t.cmpn(1)?s:o).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var r=0;t.isEven()&&i.isEven();r++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=t.cmp(i);if(n<0){var a=t;t=i,i=a}else if(0===n||0===i.cmpn(1))break;t.isub(i)}return i.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,i=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)t=1;else{i&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;i--){var r=0|this.words[i],n=0|e.words[i];if(r!==n){rn&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new j(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function j(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){j.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(w,g),w.prototype.split=function(e,t){for(var i=Math.min(e.length,9),r=0;r>>22,n=a}n>>>=22,e.words[r-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new E;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return y[e]=t,t},j.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},j.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},j.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},j.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},j.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},j.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},j.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},j.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},j.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},j.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},j.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},j.prototype.isqr=function(e){return this.imul(e,e.clone())},j.prototype.sqr=function(e){return this.mul(e,e)},j.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);r(!n.isZero());var o=new a(1).toRed(this),l=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(l);)u.redIAdd(l);for(var c=this.pow(u,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),_=s;0!==d.cmp(o);){for(var p=d,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m<_);var b=this.pow(c,new a(1).iushln(_-m-1));h=h.redMul(b),c=b.redSqr(),d=d.redMul(c),_=m}return h},j.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},j.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var r=2;r=0;r--){for(var f=t.words[r],u=l-1;u>=0;u--){var c=f>>u&1;n!==i[0]&&(n=this.sqr(n)),0!==c||0!==s?(s<<=1,s|=c,(4===++o||0===r&&0===u)&&(n=this.mul(n,i[s]),o=0,s=0)):o=0}l=26}return n},j.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},j.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new T(e)},n(T,j),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var i=e.mul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:20}],19:[function(e,t,i){var r;function n(e){this.rand=e}if(t.exports=function(e){return r||(r=new n(null)),r.generate(e)},t.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i>>24]^u[_>>>16&255]^c[p>>>8&255]^h[255&m]^t[b++],s=f[_>>>24]^u[p>>>16&255]^c[m>>>8&255]^h[255&d]^t[b++],o=f[p>>>24]^u[m>>>16&255]^c[d>>>8&255]^h[255&_]^t[b++],l=f[m>>>24]^u[d>>>16&255]^c[_>>>8&255]^h[255&p]^t[b++],d=a,_=s,p=o,m=l;return a=(r[d>>>24]<<24|r[_>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[b++],s=(r[_>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&d])^t[b++],o=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[d>>>8&255]<<8|r[255&_])^t[b++],l=(r[m>>>24]<<24|r[d>>>16&255]<<16|r[_>>>8&255]<<8|r[255&p])^t[b++],[a>>>=0,s>>>=0,o>>>=0,l>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],r=[],n=[[],[],[],[]],a=[[],[],[],[]],s=0,o=0,l=0;l<256;++l){var f=o^o<<1^o<<2^o<<3^o<<4;f=f>>>8^255&f^99,i[s]=f,r[f]=s;var u=e[s],c=e[u],h=e[c],d=257*e[f]^16843008*f;n[0][s]=d<<24|d>>>8,n[1][s]=d<<16|d>>>16,n[2][s]=d<<8|d>>>24,n[3][s]=d,d=16843009*h^65537*c^257*u^16843008*s,a[0][f]=d<<24|d>>>8,a[1][f]=d<<16|d>>>16,a[2][f]=d<<8|d>>>24,a[3][f]=d,0===s?s=o=1:(s=u^e[e[e[h^u]]],o^=e[e[o]])}return{SBOX:i,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:a}}();function f(e){this._key=n(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,i=t+6,r=4*(i+1),n=[],a=0;a>>24,s=l.SBOX[s>>>24]<<24|l.SBOX[s>>>16&255]<<16|l.SBOX[s>>>8&255]<<8|l.SBOX[255&s],s^=o[a/t|0]<<24):t>6&&a%t==4&&(s=l.SBOX[s>>>24]<<24|l.SBOX[s>>>16&255]<<16|l.SBOX[s>>>8&255]<<8|l.SBOX[255&s]),n[a]=n[a-t]^s}for(var f=[],u=0;u>>24]]^l.INV_SUB_MIX[1][l.SBOX[h>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[h>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&h]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return s(e=n(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=r.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},f.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var i=s(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(i[0],0),a.writeUInt32BE(i[3],4),a.writeUInt32BE(i[2],8),a.writeUInt32BE(i[1],12),a},f.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=f},{"safe-buffer":184}],22:[function(e,t,i){var r=e("./aes"),n=e("safe-buffer").Buffer,a=e("cipher-base"),s=e("inherits"),o=e("./ghash"),l=e("buffer-xor"),f=e("./incr32");function u(e,t,i,s){a.call(this);var l=n.alloc(4,0);this._cipher=new r.AES(t);var u=this._cipher.encryptBlock(l);this._ghash=new o(u),i=function(e,t,i){if(12===t.length)return e._finID=n.concat([t,n.from([0,0,0,1])]),n.concat([t,n.from([0,0,0,2])]);var r=new o(i),a=t.length,s=a%16;r.update(t),s&&(s=16-s,r.update(n.alloc(s,0))),r.update(n.alloc(8,0));var l=8*a,u=n.alloc(8);u.writeUIntBE(l,0,8),r.update(u),e._finID=r.state;var c=n.from(e._finID);return f(c),c}(this,i,u),this._prev=n.from(i),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}s(u,a),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=n.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var i=0;e.length!==t.length&&i++;for(var r=Math.min(e.length,t.length),n=0;n16)throw new Error("unable to decrypt data");var i=-1;for(;++i16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},c.prototype.flush=function(){if(this.cache.length)return this.cache},i.createDecipher=function(e,t){var i=a[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var r=f(t,!1,i.key,i.iv);return h(e,r.key,r.iv)},i.createDecipheriv=h},{"./aes":21,"./authCipher":22,"./modes":34,"./streamCipher":37,"cipher-base":67,evp_bytestokey:105,inherits:136,"safe-buffer":184}],25:[function(e,t,i){var r=e("./modes"),n=e("./authCipher"),a=e("safe-buffer").Buffer,s=e("./streamCipher"),o=e("cipher-base"),l=e("./aes"),f=e("evp_bytestokey");function u(e,t,i){o.call(this),this._cache=new h,this._cipher=new l.AES(t),this._prev=a.from(i),this._mode=e,this._autopadding=!0}e("inherits")(u,o),u.prototype._update=function(e){var t,i;this._cache.add(e);for(var r=[];t=this._cache.get();)i=this._mode.encrypt(this,t),r.push(i);return a.concat(r)};var c=a.alloc(16,16);function h(){this.cache=a.allocUnsafe(0)}function d(e,t,i){var o=r[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==o.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof i&&(i=a.from(i)),"GCM"!==o.mode&&i.length!==o.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===o.type?new s(o.module,t,i):"auth"===o.type?new n(o.module,t,i):new u(o.module,t,i)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(c))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=a.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),i=-1;++i>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=a(n)},s.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=s},{"safe-buffer":184}],27:[function(e,t,i){t.exports=function(e){for(var t,i=e.length;i--;){if(255!==(t=e.readUInt8(i))){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}},{}],28:[function(e,t,i){var r=e("buffer-xor");i.encrypt=function(e,t){var i=r(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},i.decrypt=function(e,t){var i=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return r(n,i)}},{"buffer-xor":65}],29:[function(e,t,i){var r=e("safe-buffer").Buffer,n=e("buffer-xor");function a(e,t,i){var a=t.length,s=n(t,e._cache);return e._cache=e._cache.slice(a),e._prev=r.concat([e._prev,i?t:s]),s}i.encrypt=function(e,t,i){for(var n,s=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){s=r.concat([s,a(e,t,i)]);break}n=e._cache.length,s=r.concat([s,a(e,t.slice(0,n),i)]),t=t.slice(n)}return s}},{"buffer-xor":65,"safe-buffer":184}],30:[function(e,t,i){var r=e("safe-buffer").Buffer;function n(e,t,i){for(var r,n,s=-1,o=0;++s<8;)r=t&1<<7-s?128:0,o+=(128&(n=e._cipher.encryptBlock(e._prev)[0]^r))>>s%8,e._prev=a(e._prev,i?r:n);return o}function a(e,t){var i=e.length,n=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++n>7;return a}i.encrypt=function(e,t,i){for(var a=t.length,s=r.allocUnsafe(a),o=-1;++o=0||!i.umod(e.prime1)||!i.umod(e.prime2);)i=new r(n(t));return i}t.exports=a,a.getr=s}).call(this,e("buffer").Buffer)},{"bn.js":42,buffer:66,randombytes:166}],42:[function(e,t,i){arguments[4][16][0].apply(i,arguments)},{buffer:20,dup:16}],43:[function(e,t,i){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":44}],44:[function(e,t,i){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],45:[function(e,t,i){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],46:[function(e,t,i){var r=e("safe-buffer").Buffer,n=e("create-hash"),a=e("readable-stream"),s=e("inherits"),o=e("./sign"),l=e("./verify"),f=e("./algorithms.json");function u(e){a.Writable.call(this);var t=f[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function c(e){a.Writable.call(this);var t=f[e];if(!t)throw new Error("Unknown message digest");this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new u(e)}function d(e){return new c(e)}Object.keys(f).forEach((function(e){f[e].id=r.from(f[e].id,"hex"),f[e.toLowerCase()]=f[e]})),s(u,a.Writable),u.prototype._write=function(e,t,i){this._hash.update(e),i()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),r=o(i,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},s(c,a.Writable),c.prototype._write=function(e,t,i){this._hash.update(e),i()},c.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},c.prototype.verify=function(e,t,i){"string"==typeof t&&(t=r.from(t,i)),this.end();var n=this._hash.digest();return l(t,n,e,this._signType,this._tag)},t.exports={Sign:h,Verify:d,createSign:h,createVerify:d}},{"./algorithms.json":44,"./sign":47,"./verify":48,"create-hash":71,inherits:136,"readable-stream":63,"safe-buffer":184}],47:[function(e,t,i){var r=e("safe-buffer").Buffer,n=e("create-hmac"),a=e("browserify-rsa"),s=e("elliptic").ec,o=e("bn.js"),l=e("parse-asn1"),f=e("./curves.json");function u(e,t,i,a){if((e=r.from(e.toArray())).length0&&i.ishrn(r),i}function h(e,t,i){var a,s;do{for(a=r.alloc(0);8*a.length=t)throw new Error("invalid sig")}t.exports=function(e,t,i,f,u){var c=s(i);if("ec"===c.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(e,t,i){var r=o[i.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var n=new a(r),s=i.data.subjectPrivateKey.data;return n.verify(t,e,s)}(e,t,c)}if("dsa"===c.type){if("dsa"!==f)throw new Error("wrong public key type");return function(e,t,i){var r=i.data.p,a=i.data.q,o=i.data.g,f=i.data.pub_key,u=s.signature.decode(e,"der"),c=u.s,h=u.r;l(c,a),l(h,a);var d=n.mont(r),_=c.invm(a);return 0===o.toRed(d).redPow(new n(t).mul(_).mod(a)).fromRed().mul(f.toRed(d).redPow(h.mul(_).mod(a)).fromRed()).mod(r).mod(a).cmp(h)}(e,t,c)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");t=r.concat([u,t]);for(var h=c.modulus.byteLength(),d=[1],_=0;t.length+d.length+22?"one of ".concat(t," ").concat(e.slice(0,i-1).join(", "),", or ")+e[i-1]:2===i?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,i){var r,n,s,o;if("string"==typeof t&&(n="not ",t.substr(!s||s<0?0:+s,n.length)===n)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,i){return(void 0===i||i>e.length)&&(i=e.length),e.substring(i-t.length,i)===t}(e," argument"))o="The ".concat(e," ").concat(r," ").concat(a(t,"type"));else{var l=function(e,t,i){return"number"!=typeof i&&(i=0),!(i+t.length>e.length)&&-1!==e.indexOf(t,i)}(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(l," ").concat(r," ").concat(a(t,"type"))}return o+=". Received type ".concat(typeof i)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},{}],50:[function(e,t,i){(function(i){"use strict";var r=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};t.exports=f;var n=e("./_stream_readable"),a=e("./_stream_writable");e("inherits")(f,n);for(var s=r(a.prototype),o=0;o0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===o.prototype||(t=function(e){return o.from(e)}(t)),r)s.endEmitted?E(e,new w):A(e,s,t,!0);else if(s.ended)E(e,new y);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!i?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):P(e,s)):A(e,s,t,!1)}else r||(s.reading=!1,P(e,s));return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;f("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(k,e))}function k(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,O(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function R(e){f("readable nexttick read 0"),e.read(0)}function D(e,t){f("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),O(e),t.flowing&&!t.reading&&e.read(0)}function O(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):i=t.buffer.consume(e,t.decoder),i);var i}function B(e){var t=e._readableState;f("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(L,t,e))}function L(e,t){if(f("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var i=t._writableState;(!i||i.autoDestroy&&i.finished)&&t.destroy()}}function N(e,t){for(var i=0,r=e.length;i=t.highWaterMark:t.length>0)||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):M(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&B(this),null;var r,n=t.needReadable;return f("need readable",n),(0===t.length||t.length-e0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&B(this)),null!==r&&this.emit("data",r),r},j.prototype._read=function(e){E(this,new g("_read()"))},j.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,f("pipe count=%d opts=%j",n.pipesCount,t);var s=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?l:m;function o(t,i){f("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),e.removeListener("close",_),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",o),r.removeListener("end",l),r.removeListener("end",m),r.removeListener("data",h),c=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function l(){f("onend"),e.end()}n.endEmitted?i.nextTick(s):r.once("end",s),e.on("unpipe",o);var u=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,O(e))}}(r);e.on("drain",u);var c=!1;function h(t){f("ondata");var i=e.write(t);f("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==N(n.pipes,e))&&!c&&(f("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(t){f("onerror",t),m(),e.removeListener("error",d),0===a(e,"error")&&E(e,t)}function _(){e.removeListener("finish",p),m()}function p(){f("onfinish"),e.removeListener("close",_),m()}function m(){f("unpipe"),r.unpipe(e)}return r.on("data",h),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",d),e.once("close",_),e.once("finish",p),e.emit("pipe",r),n.flowing||(f("pipe resume"),r.resume()),e},j.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,f("on readable",n.length,n.reading),n.length?M(this):n.reading||i.nextTick(R,this))),r},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(U,this),r},j.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(U,this),t},j.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(D,e,t))}(this,e)),e.paused=!1,this},j.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(e){var t=this,i=this._readableState,r=!1;for(var n in e.on("end",(function(){if(f("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(n){(f("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n)||(i.objectMode||n&&n.length)&&(t.push(n)||(r=!0,e.pause()))})),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var a=0;a-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),j.prototype._write=function(e,t,i){i(new p("_write()"))},j.prototype._writev=null,j.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,P(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),j.prototype.destroy=c.destroy,j.prototype._undestroy=c.undestroy,j.prototype._destroy=function(e,t){t(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":49,"./_stream_duplex":50,"./internal/streams/destroy":57,"./internal/streams/state":61,"./internal/streams/stream":62,_process:158,buffer:66,inherits:136,"util-deprecate":197}],55:[function(e,t,i){(function(i){"use strict";var r;function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var a=e("./end-of-stream"),s=Symbol("lastResolve"),o=Symbol("lastReject"),l=Symbol("error"),f=Symbol("ended"),u=Symbol("lastPromise"),c=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function _(e){var t=e[s];if(null!==t){var i=e[h].read();null!==i&&(e[u]=null,e[s]=null,e[o]=null,t(d(i,!1)))}}function p(e){i.nextTick(_,e)}var m=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((n(r={get stream(){return this[h]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[f])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[l]?r(e[l]):t(d(void 0,!0))}))}));var r,n=this[u];if(n)r=new Promise(function(e,t){return function(i,r){e.then((function(){t[f]?i(d(void 0,!0)):t[c](i,r)}),r)}}(n,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(d(a,!1));r=new Promise(this[c])}return this[u]=r,r}},Symbol.asyncIterator,(function(){return this})),n(r,"return",(function(){var e=this;return new Promise((function(t,i){e[h].destroy(null,(function(e){e?i(e):t(d(void 0,!0))}))}))})),r),m);t.exports=function(e){var t,i=Object.create(b,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,o,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,f,{value:e._readableState.endEmitted,writable:!0}),n(t,c,{value:function(e,t){var r=i[h].read();r?(i[u]=null,i[s]=null,i[o]=null,e(d(r,!1))):(i[s]=e,i[o]=t)},writable:!0}),t));return i[u]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=i[o];return null!==t&&(i[u]=null,i[s]=null,i[o]=null,t(e)),void(i[l]=e)}var r=i[s];null!==r&&(i[u]=null,i[s]=null,i[o]=null,r(d(void 0,!0))),i[f]=!0})),e.on("readable",p.bind(null,i)),i}}).call(this,e("_process"))},{"./end-of-stream":58,_process:158}],56:[function(e,t,i){"use strict";function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function a(e,t){for(var i=0;i0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,i,r,n=s.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,i=n,r=o,s.prototype.copy.call(t,i,r),o+=a.data.length,a=a.next;return n}},{key:"consume",value:function(e,t){var i;return en.length?n.length:e;if(a===n.length?r+=n:r+=n.slice(0,e),0==(e-=a)){a===n.length?(++i,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(a));break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),i=this.head,r=1;for(i.data.copy(t),e-=i.data.length;i=i.next;){var n=i.data,a=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,a),0==(e-=a)){a===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=n.slice(a));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return o(this,function(e){for(var t=1;t0,(function(e){r||(r=e),e&&s.forEach(f),a||(s.forEach(f),n(r))}))}));return t.reduce(u)}},{"../../../errors":49,"./end-of-stream":58}],61:[function(e,t,i){"use strict";var r=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,i,n){var a=function(e,t,i){return null!=e.highWaterMark?e.highWaterMark:t?e[i]:null}(t,n,i);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(n?i:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},{"../../../errors":49}],62:[function(e,t,i){t.exports=e("events").EventEmitter},{events:104}],63:[function(e,t,i){(i=t.exports=e("./lib/_stream_readable.js")).Stream=i,i.Readable=i,i.Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js"),i.finished=e("./lib/internal/streams/end-of-stream.js"),i.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":50,"./lib/_stream_passthrough.js":51,"./lib/_stream_readable.js":52,"./lib/_stream_transform.js":53,"./lib/_stream_writable.js":54,"./lib/internal/streams/end-of-stream.js":58,"./lib/internal/streams/pipeline.js":60}],64:[function(e,t,i){arguments[4][20][0].apply(i,arguments)},{dup:20}],65:[function(e,t,i){(function(e){t.exports=function(t,i){for(var r=Math.min(t.length,i.length),n=new e(r),a=0;a1&&(c=i.argv[1].replace(/\\/g,"/")),u=i.argv.slice(2),void 0!==t&&(t.exports=l),i.on("uncaughtException",(function(e){if(!(e instanceof la))throw e})),i.on("unhandledRejection",Ze),l.inspect=function(){return"[Emscripten Module object]"};else if(m)"undefined"!=typeof read&&(b=function(e){return read(e)}),v=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(N("object"===a(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?u=scriptArgs:void 0!==arguments&&(u=arguments),"function"==typeof quit&&function(e){quit(e)},"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print);else{if(!h&&!d)throw new Error("environment detection error");d?w=self.location.href:document.currentScript&&(w=document.currentScript.src),w=0!==w.indexOf("blob:")?w.substr(0,w.lastIndexOf("/")+1):"",b=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},d&&(v=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),function(e,t,i){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):i()},r.onerror=i,r.send(null)},function(e){document.title=e}}var C=l.print||console.log.bind(console),S=l.printErr||console.warn.bind(console);for(s in f)f.hasOwnProperty(s)&&(l[s]=f[s]);function j(e){N(ye);var t=le[ye>>2],i=t+e+15&-16;return i>Yt()&&Ze("failure to dynamicAlloc - memory growth etc. is not supported there, call malloc/sbrk directly"),le[ye>>2]=i,t}function T(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:if("*"===e[e.length-1])return 4;if("i"===e[0]){var t=parseInt(e.substr(1));return N(t%8==0,"getNativeTypeSize invalid bits "+t+", type "+e),t/8}return 0}}function A(e){A.shown||(A.shown={}),A.shown[e]||(A.shown[e]=1,S(e))}f=null,l.arguments&&(u=l.arguments),Object.getOwnPropertyDescriptor(l,"arguments")||Object.defineProperty(l,"arguments",{configurable:!0,get:function(){Ze("Module.arguments has been replaced with plain arguments_")}}),l.thisProgram&&(c=l.thisProgram),Object.getOwnPropertyDescriptor(l,"thisProgram")||Object.defineProperty(l,"thisProgram",{configurable:!0,get:function(){Ze("Module.thisProgram has been replaced with plain thisProgram")}}),l.quit&&l.quit,Object.getOwnPropertyDescriptor(l,"quit")||Object.defineProperty(l,"quit",{configurable:!0,get:function(){Ze("Module.quit has been replaced with plain quit_")}}),N(void 0===l.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),N(void 0===l.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),N(void 0===l.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),N(void 0===l.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),N(void 0===l.read,"Module.read option was removed (modify read_ in JS)"),N(void 0===l.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),N(void 0===l.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),N(void 0===l.setWindowTitle,"Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),Object.getOwnPropertyDescriptor(l,"read")||Object.defineProperty(l,"read",{configurable:!0,get:function(){Ze("Module.read has been replaced with plain read_")}}),Object.getOwnPropertyDescriptor(l,"readAsync")||Object.defineProperty(l,"readAsync",{configurable:!0,get:function(){Ze("Module.readAsync has been replaced with plain readAsync")}}),Object.getOwnPropertyDescriptor(l,"readBinary")||Object.defineProperty(l,"readBinary",{configurable:!0,get:function(){Ze("Module.readBinary has been replaced with plain readBinary")}}),sa=aa=na=function(){Ze("cannot use the stack before compiled code is ready to run, and has provided stack access")};var x={"f64-rem":function(e,t){return e%t},debugger:function(){}},M=1,k=new Array(35);function P(e,t){N(void 0!==e);for(var i=0;i<35;i++)if(!k[i])return k[i]=e,M+i;throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."}var I,U,R,D=0,O=function(){return D};function F(e,t,i,r){switch("*"===(i=i||"i8").charAt(i.length-1)&&(i="i32"),i){case"i1":case"i8":ne[e>>0]=t;break;case"i16":se[e>>1]=t;break;case"i32":le[e>>2]=t;break;case"i64":tt=[t>>>0,(et=t,+Le(et)>=1?et>0?(0|He(+ze(et/4294967296),4294967295))>>>0:~~+Ne((et-+(~~et>>>0))/4294967296)>>>0:0)],le[e>>2]=tt[0],le[e+4>>2]=tt[1];break;case"float":ue[e>>2]=t;break;case"double":ce[e>>3]=t;break;default:Ze("invalid type for setValue: "+i)}}l.wasmBinary&&(I=l.wasmBinary),Object.getOwnPropertyDescriptor(l,"wasmBinary")||Object.defineProperty(l,"wasmBinary",{configurable:!0,get:function(){Ze("Module.wasmBinary has been replaced with plain wasmBinary")}}),l.noExitRuntime&&(U=l.noExitRuntime),Object.getOwnPropertyDescriptor(l,"noExitRuntime")||Object.defineProperty(l,"noExitRuntime",{configurable:!0,get:function(){Ze("Module.noExitRuntime has been replaced with plain noExitRuntime")}}),"object"!==("undefined"==typeof WebAssembly?"undefined":a(WebAssembly))&&Ze("No WebAssembly support found. Build with -s WASM=0 to target JavaScript instead.");var B=new WebAssembly.Table({initial:4160,element:"anyfunc"}),L=!1;function N(e,t){e||Ze("Assertion failed: "+t)}function z(e){var t=l["_"+e];return N(t,"Cannot call unknown function "+e+", make sure it is exported"),t}function H(e,t,i,r,n){var a={string:function(e){var t=0;if(null!=e&&0!==e){var i=1+(e.length<<2);J(e,t=na(i),i)}return t},array:function(e){var t=na(e.length);return te(e,t),t}};var s=z(e),o=[],l=0;if(N("array"!==t,'Return type should not be "array".'),r)for(var f=0;f>2]=0;for(l=s+a;r>0]=0;return s}if("i8"===o)return e.subarray||e.slice?ae.set(e,s):ae.set(new Uint8Array(e),s),s;for(var f,u,c,h=0;h=r);)++n;if(n-t>16&&e.subarray&&G)return G.decode(e.subarray(t,n));for(var a="";t>10,56320|1023&f)}}else a+=String.fromCharCode((31&s)<<6|o)}else a+=String.fromCharCode(s)}return a}function Q(e,t){return e?K(ae,e,t):""}function Z(e,t,i,r){if(!(r>0))return 0;for(var n=i,a=i+r-1,s=0;s=55296&&o<=57343)o=65536+((1023&o)<<10)|1023&e.charCodeAt(++s);if(o<=127){if(i>=a)break;t[i++]=o}else if(o<=2047){if(i+1>=a)break;t[i++]=192|o>>6,t[i++]=128|63&o}else if(o<=65535){if(i+2>=a)break;t[i++]=224|o>>12,t[i++]=128|o>>6&63,t[i++]=128|63&o}else{if(i+3>=a)break;o>=2097152&&A("Invalid Unicode code point 0x"+o.toString(16)+" encountered when serializing a JS string to an UTF-8 string on the asm.js/wasm heap! (Valid unicode code points should be in range 0-0x1FFFFF)."),t[i++]=240|o>>18,t[i++]=128|o>>12&63,t[i++]=128|o>>6&63,t[i++]=128|63&o}}return t[i]=0,i-n}function J(e,t,i){return N("number"==typeof i,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),Z(e,ae,t,i)}function $(e){for(var t=0,i=0;i=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++i)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");function ee(e){var t=$(e)+1,i=ra(t);return i&&Z(e,ne,i,t),i}function te(e,t){N(e.length>=0,"writeArrayToMemory array must have a length (should be an array or typed array)"),ne.set(e,t)}function ie(e,t,i){for(var r=0;r>0]=e.charCodeAt(r);i||(ne[t>>0]=0)}var re,ne,ae,se,oe,le,fe,ue,ce,he=16384,de=65536;function _e(e,t){return e%t>0&&(e+=t-e%t),e}function pe(e){re=e,l.HEAP8=ne=new Int8Array(e),l.HEAP16=se=new Int16Array(e),l.HEAP32=le=new Int32Array(e),l.HEAPU8=ae=new Uint8Array(e),l.HEAPU16=oe=new Uint16Array(e),l.HEAPU32=fe=new Uint32Array(e),l.HEAPF32=ue=new Float32Array(e),l.HEAPF64=ce=new Float64Array(e)}var me=1124560,be=6367440,ve=6367440,ye=1124336;N(me%16==0,"stack must start aligned"),N(ve%16==0,"heap must start aligned");var ge=5242880;l.TOTAL_STACK&&N(ge===l.TOTAL_STACK,"the stack size can no longer be determined at runtime");var we=l.TOTAL_MEMORY||1073741824;function Ee(){N(0==(3&be)),fe[(be>>2)-1]=34821223,fe[(be>>2)-2]=2310721022,le[0]=1668509029}function Ce(){var e=fe[(be>>2)-1],t=fe[(be>>2)-2];34821223==e&&2310721022==t||Ze("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x02135467, but received 0x"+t.toString(16)+" "+e.toString(16)),1668509029!==le[0]&&Ze("Runtime error: The application has corrupted its heap memory area (address zero)!")}function Se(e){Ze("Stack overflow! Attempted to allocate "+e+" bytes on the stack, but stack has only "+(be-sa()+e)+" bytes available!")}function je(e,t){var i="";for(var r in vr){var n=vr[r];n[e]&&(i+='as sig "'+r+'" pointing to function '+n[e]+", ")}Ze("Invalid function pointer "+e+" called with signature '"+t+"'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this). This pointer might make sense in another type signature: "+i)}function Te(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var i=t.func;"number"==typeof i?void 0===t.arg?l.dynCall_v(i):l.dynCall_vi(i,t.arg):i(void 0===t.arg?null:t.arg)}else t()}}Object.getOwnPropertyDescriptor(l,"TOTAL_MEMORY")||Object.defineProperty(l,"TOTAL_MEMORY",{configurable:!0,get:function(){Ze("Module.TOTAL_MEMORY has been replaced with plain INITIAL_TOTAL_MEMORY")}}),N(we>=ge,"TOTAL_MEMORY should be larger than TOTAL_STACK, was "+we+"! (TOTAL_STACK="+ge+")"),N("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&void 0!==Int32Array.prototype.subarray&&void 0!==Int32Array.prototype.set,"JS engine does not provide full typed array support"),(R=l.wasmMemory?l.wasmMemory:new WebAssembly.Memory({initial:we/de}))&&(re=R.buffer),N((we=re.byteLength)%de==0),pe(re),le[ye>>2]=ve,function(){var e=new Int16Array(1),t=new Int8Array(e.buffer);if(e[0]=25459,115!==t[0]||99!==t[1])throw"Runtime error: expected the system to be little-endian!"}();var Ae=[],xe=[],Me=[],ke=[],Pe=!1,Ie=!1;function Ue(){if(l.preRun)for("function"==typeof l.preRun&&(l.preRun=[l.preRun]);l.preRun.length;)Fe(l.preRun.shift());Te(Ae)}function Re(){Ce(),N(!Pe),Pe=!0,l.noFSInit||St.init.initialized||St.init(),bt.init(),Te(xe)}function De(){Ce(),St.ignorePermissions=!1,Te(Me)}function Oe(){if(Ce(),l.postRun)for("function"==typeof l.postRun&&(l.postRun=[l.postRun]);l.postRun.length;)Be(l.postRun.shift());Te(ke)}function Fe(e){Ae.unshift(e)}function Be(e){ke.unshift(e)}N(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),N(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),N(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),N(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var Le=Math.abs,Ne=Math.ceil,ze=Math.floor,He=Math.min,Ve=Math.trunc,Ye=0,qe=null,Xe=null,We={};function Ge(e){for(var t=e;;){if(!We[e])return e;e=t+Math.random()}return e}function Ke(e){Ye++,l.monitorRunDependencies&&l.monitorRunDependencies(Ye),e?(N(!We[e]),We[e]=1,null===qe&&"undefined"!=typeof setInterval&&(qe=setInterval((function(){if(L)return clearInterval(qe),void(qe=null);var e=!1;for(var t in We)e||(e=!0,S("still waiting on run dependencies:")),S("dependency: "+t);e&&S("(end of list)")}),1e4))):S("warning: run dependency added without ID")}function Qe(e){if(Ye--,l.monitorRunDependencies&&l.monitorRunDependencies(Ye),e?(N(We[e]),delete We[e]):S("warning: run dependency removed without ID"),0==Ye&&(null!==qe&&(clearInterval(qe),qe=null),Xe)){var t=Xe;Xe=null,t()}}function Ze(e){l.onAbort&&l.onAbort(e),C(e+=""),S(e),L=!0,1;throw"abort("+e+") at "+ut()}l.preloadedImages={},l.preloadedAudios={},o||Fe((function(){"undefined"!=typeof SharedArrayBuffer&&(Ke("pthreads"),PThread.allocateUnusedWorkers(2,(function(){Qe("pthreads")})))}));var Je="data:application/octet-stream;base64,";function $e(e){return String.prototype.startsWith?e.startsWith(Je):0===e.indexOf(Je)}var et,tt,it="missile-v20210515.wasm";function rt(){try{if(I)return new Uint8Array(I);if(v)return v(it);throw"both async and sync fetching of the wasm failed"}catch(e){Ze(e)}}function nt(){return I||!h&&!d||"function"!=typeof fetch?new Promise((function(e,t){e(rt())})):fetch(it,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+it+"'";return e.arrayBuffer()})).catch((function(){return rt()}))}function at(){var e={env:Kn,wasi_unstable:Kn,global:{NaN:NaN,Infinity:1/0},"global.Math":Math,asm2wasm:x};function t(e,t){var i=e.exports;l.asm=i,Qe("wasm-instantiate")}Ke("wasm-instantiate");var i=l;function r(e){N(l===i,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),i=null,t(e.instance)}function n(t){return nt().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){S("failed to asynchronously prepare wasm: "+e),Ze(e)}))}if(l.instantiateWasm)try{return l.instantiateWasm(e,t)}catch(e){return S("Module.instantiateWasm callback failed with error: "+e),!1}return function(){if(I||"function"!=typeof WebAssembly.instantiateStreaming||$e(it)||"function"!=typeof fetch)return n(r);fetch(it,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){S("wasm streaming compile failed: "+e),S("falling back to ArrayBuffer instantiation"),n(r)}))}))}(),{}}$e(it)||(it=E(it)),l.asm=at,xe.push({func:function(){Jn()}});var st=1124544;function ot(e){return A("warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),e}function lt(e){return e.replace(/\b__Z[\w\d_]+/g,(function(e){var t=ot(e);return e===t?e:t+" ["+e+"]"}))}function ft(){var e=new Error;if(!e.stack){try{throw new Error(0)}catch(t){e=t}if(!e.stack)return"(no stack trace available)"}return e.stack.toString()}function ut(){var e=ft();return l.extraStackTrace&&(e+="\n"+l.extraStackTrace()),lt(e)}N(st%8==0);var ct={};function ht(e){var t,i;ht.called?(i=le[e>>2],t=le[i>>2]):(ht.called=!0,ct.USER="web_user",ct.LOGNAME="web_user",ct.PATH="/",ct.PWD="/",ct.HOME="/home/web_user",ct.LANG=("object"===("undefined"==typeof navigator?"undefined":a(navigator))&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",ct._=c,t=W(1024),i=W(256),le[i>>2]=t,le[e>>2]=i);var r=[],n=0;for(var s in ct)if("string"==typeof ct[s]){var o=s+"="+ct[s];r.push(o),n+=o.length}if(n>1024)throw new Error("Environment size exceeded TOTAL_ENV_SIZE!");for(var l=0;l>2]=t,t+=o.length+1}le[i+4*r.length>>2]=0}function dt(){}function _t(e){return l.___errno_location?le[l.___errno_location()>>2]=e:S("failed to set errno from JS"),e}var pt={splitPath:function(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)},normalizeArray:function(e,t){for(var i=0,r=e.length-1;r>=0;r--){var n=e[r];"."===n?e.splice(r,1):".."===n?(e.splice(r,1),i++):i&&(e.splice(r,1),i--)}if(t)for(;i;i--)e.unshift("..");return e},normalize:function(e){var t="/"===e.charAt(0),i="/"===e.substr(-1);return(e=pt.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||t||(e="."),e&&i&&(e+="/"),(t?"/":"")+e},dirname:function(e){var t=pt.splitPath(e),i=t[0],r=t[1];return i||r?(r&&(r=r.substr(0,r.length-1)),i+r):"."},basename:function(e){if("/"===e)return"/";var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+1)},extname:function(e){return pt.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return pt.normalize(e.join("/"))},join2:function(e,t){return pt.normalize(e+"/"+t)}},mt={resolve:function(){for(var e="",t=!1,i=arguments.length-1;i>=-1&&!t;i--){var r=i>=0?arguments[i]:St.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";e=r+"/"+e,t="/"===r.charAt(0)}return(t?"/":"")+(e=pt.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||"."},relative:function(e,t){function i(e){for(var t=0;t=0&&""===e[i];i--);return t>i?[]:e.slice(t,i-t+1)}e=mt.resolve(e).substr(1),t=mt.resolve(t).substr(1);for(var r=i(e.split("/")),n=i(t.split("/")),a=Math.min(r.length,n.length),s=a,o=0;o0?n.slice(0,a).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n");if(!t)return null;e.input=ki(t,!0)}return e.input.shift()},put_char:function(e,t){null===t||10===t?(C(K(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(C(K(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(S(K(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(S(K(e.output,0)),e.output=[])}}},vt={ops_table:null,mount:function(e){return vt.createNode(null,"/",16895,0)},createNode:function(e,t,i,r){if(St.isBlkdev(i)||St.isFIFO(i))throw new St.ErrnoError(63);vt.ops_table||(vt.ops_table={dir:{node:{getattr:vt.node_ops.getattr,setattr:vt.node_ops.setattr,lookup:vt.node_ops.lookup,mknod:vt.node_ops.mknod,rename:vt.node_ops.rename,unlink:vt.node_ops.unlink,rmdir:vt.node_ops.rmdir,readdir:vt.node_ops.readdir,symlink:vt.node_ops.symlink},stream:{llseek:vt.stream_ops.llseek}},file:{node:{getattr:vt.node_ops.getattr,setattr:vt.node_ops.setattr},stream:{llseek:vt.stream_ops.llseek,read:vt.stream_ops.read,write:vt.stream_ops.write,allocate:vt.stream_ops.allocate,mmap:vt.stream_ops.mmap,msync:vt.stream_ops.msync}},link:{node:{getattr:vt.node_ops.getattr,setattr:vt.node_ops.setattr,readlink:vt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:vt.node_ops.getattr,setattr:vt.node_ops.setattr},stream:St.chrdev_stream_ops}});var n=St.createNode(e,t,i,r);return St.isDir(n.mode)?(n.node_ops=vt.ops_table.dir.node,n.stream_ops=vt.ops_table.dir.stream,n.contents={}):St.isFile(n.mode)?(n.node_ops=vt.ops_table.file.node,n.stream_ops=vt.ops_table.file.stream,n.usedBytes=0,n.contents=null):St.isLink(n.mode)?(n.node_ops=vt.ops_table.link.node,n.stream_ops=vt.ops_table.link.stream):St.isChrdev(n.mode)&&(n.node_ops=vt.ops_table.chrdev.node,n.stream_ops=vt.ops_table.chrdev.stream),n.timestamp=Date.now(),e&&(e.contents[t]=n),n},getFileDataAsRegularArray:function(e){if(e.contents&&e.contents.subarray){for(var t=[],i=0;i=t)){t=Math.max(t,i*(i<1048576?2:1.125)|0),0!=i&&(t=Math.max(t,256));var r=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(r.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,t){if(e.usedBytes!=t){if(0==t)return e.contents=null,void(e.usedBytes=0);if(!e.contents||e.contents.subarray){var i=e.contents;return e.contents=new Uint8Array(new ArrayBuffer(t)),i&&e.contents.set(i.subarray(0,Math.min(t,e.usedBytes))),void(e.usedBytes=t)}if(e.contents||(e.contents=[]),e.contents.length>t)e.contents.length=t;else for(;e.contents.length=e.node.usedBytes)return 0;var s=Math.min(e.node.usedBytes-n,r);if(N(s>=0),s>8&&a.subarray)t.set(a.subarray(n,n+s),i);else for(var o=0;o0||n+rs.timestamp)&&(n.push(i),r++)}));var a=[];if(Object.keys(t.entries).forEach((function(i){t.entries[i];e.entries[i]||(a.push(i),r++)})),!r)return i(null);var s=!1,o=("remote"===e.type?e.db:t.db).transaction([yt.DB_STORE_NAME],"readwrite"),l=o.objectStore(yt.DB_STORE_NAME);function f(e){if(e&&!s)return s=!0,i(e)}o.onerror=function(e){f(this.error),e.preventDefault()},o.oncomplete=function(e){s||i(null)},n.sort().forEach((function(e){"local"===t.type?yt.loadRemoteEntry(l,e,(function(t,i){if(t)return f(t);yt.storeLocalEntry(e,i,f)})):yt.loadLocalEntry(e,(function(t,i){if(t)return f(t);yt.storeRemoteEntry(l,e,i,f)}))})),a.sort().reverse().forEach((function(e){"local"===t.type?yt.removeLocalEntry(e,f):yt.removeRemoteEntry(l,e,f)}))}},gt={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},wt={isWindows:!1,staticInit:function(){wt.isWindows=!!i.platform.match(/^win/);var e=i.binding("constants");e.fs&&(e=e.fs),wt.flagsForNodeMap={1024:e.O_APPEND,64:e.O_CREAT,128:e.O_EXCL,0:e.O_RDONLY,2:e.O_RDWR,4096:e.O_SYNC,512:e.O_TRUNC,1:e.O_WRONLY}},bufferFrom:function(e){return r.alloc?r.from(e):new r(e)},convertNodeCode:function(e){var t=e.code;return N(t in gt),gt[t]},mount:function(e){return N(p),wt.createNode(null,"/",wt.getMode(e.opts.root),0)},createNode:function(e,t,i,r){if(!St.isDir(i)&&!St.isFile(i)&&!St.isLink(i))throw new St.ErrnoError(28);var n=St.createNode(e,t,i);return n.node_ops=wt.node_ops,n.stream_ops=wt.stream_ops,n},getMode:function(e){var t;try{t=xi.lstatSync(e),wt.isWindows&&(t.mode=t.mode|(292&t.mode)>>2)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}return t.mode},realPath:function(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.mount.opts.root),t.reverse(),pt.join.apply(null,t)},flagsForNode:function(e){e&=-2097153,e&=-2049,e&=-32769,e&=-524289;var t=0;for(var i in wt.flagsForNodeMap)e&i&&(t|=wt.flagsForNodeMap[i],e^=i);if(e)throw new St.ErrnoError(28);return t},node_ops:{getattr:function(e){var t,i=wt.realPath(e);try{t=xi.lstatSync(i)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}return wt.isWindows&&!t.blksize&&(t.blksize=4096),wt.isWindows&&!t.blocks&&(t.blocks=(t.size+t.blksize-1)/t.blksize|0),{dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,size:t.size,atime:t.atime,mtime:t.mtime,ctime:t.ctime,blksize:t.blksize,blocks:t.blocks}},setattr:function(e,t){var i=wt.realPath(e);try{if(void 0!==t.mode&&(xi.chmodSync(i,t.mode),e.mode=t.mode),void 0!==t.timestamp){var r=new Date(t.timestamp);xi.utimesSync(i,r,r)}void 0!==t.size&&xi.truncateSync(i,t.size)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},lookup:function(e,t){var i=pt.join2(wt.realPath(e),t),r=wt.getMode(i);return wt.createNode(e,t,r)},mknod:function(e,t,i,r){var n=wt.createNode(e,t,i,r),a=wt.realPath(n);try{St.isDir(n.mode)?xi.mkdirSync(a,n.mode):xi.writeFileSync(a,"",{mode:n.mode})}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}return n},rename:function(e,t,i){var r=wt.realPath(e),n=pt.join2(wt.realPath(t),i);try{xi.renameSync(r,n)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},unlink:function(e,t){var i=pt.join2(wt.realPath(e),t);try{xi.unlinkSync(i)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},rmdir:function(e,t){var i=pt.join2(wt.realPath(e),t);try{xi.rmdirSync(i)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},readdir:function(e){var t=wt.realPath(e);try{return xi.readdirSync(t)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},symlink:function(e,t,i){var r=pt.join2(wt.realPath(e),t);try{xi.symlinkSync(i,r)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},readlink:function(e){var t=wt.realPath(e);try{return t=xi.readlinkSync(t),t=Mi.relative(Mi.resolve(e.mount.opts.root),t)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}}},stream_ops:{open:function(e){var t=wt.realPath(e.node);try{St.isFile(e.node.mode)&&(e.nfd=xi.openSync(t,wt.flagsForNode(e.flags)))}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},close:function(e){try{St.isFile(e.node.mode)&&e.nfd&&xi.closeSync(e.nfd)}catch(e){if(!e.code)throw e;throw new St.ErrnoError(wt.convertNodeCode(e))}},read:function(e,t,i,r,n){if(0===r)return 0;try{return xi.readSync(e.nfd,wt.bufferFrom(t.buffer),i,r,n)}catch(e){throw new St.ErrnoError(wt.convertNodeCode(e))}},write:function(e,t,i,r,n){try{return xi.writeSync(e.nfd,wt.bufferFrom(t.buffer),i,r,n)}catch(e){throw new St.ErrnoError(wt.convertNodeCode(e))}},llseek:function(e,t,i){var r=t;if(1===i)r+=e.position;else if(2===i&&St.isFile(e.node.mode))try{r+=xi.fstatSync(e.nfd).size}catch(e){throw new St.ErrnoError(wt.convertNodeCode(e))}if(r<0)throw new St.ErrnoError(28);return r}}},Et={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:function(e){N(d),Et.reader||(Et.reader=new FileReaderSync);var t=Et.createNode(null,"/",Et.DIR_MODE,0),i={};function r(e){for(var r=e.split("/"),n=t,a=0;a=e.node.size)return 0;var a=e.node.contents.slice(n,n+r),s=Et.reader.readAsArrayBuffer(a);return t.set(new Uint8Array(s),i),a.size},write:function(e,t,i,r,n){throw new St.ErrnoError(29)},llseek:function(e,t,i){var r=t;if(1===i?r+=e.position:2===i&&St.isFile(e.node.mode)&&(r+=e.node.size),r<0)throw new St.ErrnoError(28);return r}}},Ct={0:"Success",1:"Arg list too long",2:"Permission denied",3:"Address already in use",4:"Address not available",5:"Address family not supported by protocol family",6:"No more processes",7:"Socket already connected",8:"Bad file number",9:"Trying to read unreadable message",10:"Mount device busy",11:"Operation canceled",12:"No children",13:"Connection aborted",14:"Connection refused",15:"Connection reset by peer",16:"File locking deadlock error",17:"Destination address required",18:"Math arg out of domain of func",19:"Quota exceeded",20:"File exists",21:"Bad address",22:"File too large",23:"Host is unreachable",24:"Identifier removed",25:"Illegal byte sequence",26:"Connection already in progress",27:"Interrupted system call",28:"Invalid argument",29:"I/O error",30:"Socket is already connected",31:"Is a directory",32:"Too many symbolic links",33:"Too many open files",34:"Too many links",35:"Message too long",36:"Multihop attempted",37:"File or path name too long",38:"Network interface is not configured",39:"Connection reset by network",40:"Network is unreachable",41:"Too many open files in system",42:"No buffer space available",43:"No such device",44:"No such file or directory",45:"Exec format error",46:"No record locks available",47:"The link has been severed",48:"Not enough core",49:"No message of desired type",50:"Protocol not available",51:"No space left on device",52:"Function not implemented",53:"Socket is not connected",54:"Not a directory",55:"Directory not empty",56:"State not recoverable",57:"Socket operation on non-socket",59:"Not a typewriter",60:"No such device or address",61:"Value too large for defined data type",62:"Previous owner died",63:"Not super-user",64:"Broken pipe",65:"Protocol error",66:"Unknown protocol",67:"Protocol wrong type for socket",68:"Math result not representable",69:"Read only file system",70:"Illegal seek",71:"No such process",72:"Stale file handle",73:"Connection timed out",74:"Text file busy",75:"Cross-device link",100:"Device not a stream",101:"Bad font file fmt",102:"Invalid slot",103:"Invalid request code",104:"No anode",105:"Block device required",106:"Channel number out of range",107:"Level 3 halted",108:"Level 3 reset",109:"Link number out of range",110:"Protocol driver not attached",111:"No CSI structure available",112:"Level 2 halted",113:"Invalid exchange",114:"Invalid request descriptor",115:"Exchange full",116:"No data (for no delay io)",117:"Timer expired",118:"Out of streams resources",119:"Machine is not on the network",120:"Package not installed",121:"The object is remote",122:"Advertise error",123:"Srmount error",124:"Communication error on send",125:"Cross mount point (not really error)",126:"Given log. name not unique",127:"f.d. invalid for this operation",128:"Remote address changed",129:"Can access a needed shared lib",130:"Accessing a corrupted shared lib",131:".lib section in a.out corrupted",132:"Attempting to link in too many libs",133:"Attempting to exec a shared library",135:"Streams pipe error",136:"Too many users",137:"Socket type not supported",138:"Not supported",139:"Protocol family not supported",140:"Can't send after socket shutdown",141:"Too many references",142:"Host is down",148:"No medium (in tape drive)",156:"Level 2 not synchronized"},St={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,handleFSError:function(e){if(!(e instanceof St.ErrnoError))throw e+" : "+ut();return _t(e.errno)},lookupPath:function(e,t){if(t=t||{},!(e=mt.resolve(St.cwd(),e)))return{path:"",node:null};var i={follow_mount:!0,recurse_count:0};for(var r in i)void 0===t[r]&&(t[r]=i[r]);if(t.recurse_count>8)throw new St.ErrnoError(32);for(var n=pt.normalizeArray(e.split("/").filter((function(e){return!!e})),!1),a=St.root,s="/",o=0;o40)throw new St.ErrnoError(32)}}return{path:s,node:a}},getPath:function(e){for(var t;;){if(St.isRoot(e)){var i=e.mount.mountpoint;return t?"/"!==i[i.length-1]?i+"/"+t:i+t:i}t=t?e.name+"/"+t:e.name,e=e.parent}},hashName:function(e,t){for(var i=0,r=0;r>>0)%St.nameTable.length},hashAddNode:function(e){var t=St.hashName(e.parent.id,e.name);e.name_next=St.nameTable[t],St.nameTable[t]=e},hashRemoveNode:function(e){var t=St.hashName(e.parent.id,e.name);if(St.nameTable[t]===e)St.nameTable[t]=e.name_next;else for(var i=St.nameTable[t];i;){if(i.name_next===e){i.name_next=e.name_next;break}i=i.name_next}},lookupNode:function(e,t){var i=St.mayLookup(e);if(i)throw new St.ErrnoError(i,e);for(var r=St.hashName(e.id,t),n=St.nameTable[r];n;n=n.name_next){var a=n.name;if(n.parent.id===e.id&&a===t)return n}return St.lookup(e,t)},createNode:function(e,t,i,r){if(!St.FSNode){St.FSNode=function(e,t,i,r){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=St.nextInode++,this.name=t,this.mode=i,this.node_ops={},this.stream_ops={},this.rdev=r},St.FSNode.prototype={};Object.defineProperties(St.FSNode.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return St.isDir(this.mode)}},isDevice:{get:function(){return St.isChrdev(this.mode)}}})}var n=new St.FSNode(e,t,i,r);return St.hashAddNode(n),n},destroyNode:function(e){St.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768==(61440&e)},isDir:function(e){return 16384==(61440&e)},isLink:function(e){return 40960==(61440&e)},isChrdev:function(e){return 8192==(61440&e)},isBlkdev:function(e){return 24576==(61440&e)},isFIFO:function(e){return 4096==(61440&e)},isSocket:function(e){return 49152==(49152&e)},flagModes:{r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:function(e){var t=St.flagModes[e];if(void 0===t)throw new Error("Unknown file open mode: "+e);return t},flagsToPermissionString:function(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:function(e,t){return St.ignorePermissions||(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:2},mayLookup:function(e){var t=St.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate:function(e,t){try{St.lookupNode(e,t);return 20}catch(e){}return St.nodePermissions(e,"wx")},mayDelete:function(e,t,i){var r;try{r=St.lookupNode(e,t)}catch(e){return e.errno}var n=St.nodePermissions(e,"wx");if(n)return n;if(i){if(!St.isDir(r.mode))return 54;if(St.isRoot(r)||St.getPath(r)===St.cwd())return 10}else if(St.isDir(r.mode))return 31;return 0},mayOpen:function(e,t){return e?St.isLink(e.mode)?32:St.isDir(e.mode)&&("r"!==St.flagsToPermissionString(t)||512&t)?31:St.nodePermissions(e,St.flagsToPermissionString(t)):44},MAX_OPEN_FDS:4096,nextfd:function(e,t){e=e||0,t=t||St.MAX_OPEN_FDS;for(var i=e;i<=t;i++)if(!St.streams[i])return i;throw new St.ErrnoError(33)},getStream:function(e){return St.streams[e]},createStream:function(e,t,i){St.FSStream||(St.FSStream=function(){},St.FSStream.prototype={},Object.defineProperties(St.FSStream.prototype,{object:{get:function(){return this.node},set:function(e){this.node=e}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}));var r=new St.FSStream;for(var n in e)r[n]=e[n];e=r;var a=St.nextfd(t,i);return e.fd=a,St.streams[a]=e,e},closeStream:function(e){St.streams[e]=null},chrdev_stream_ops:{open:function(e){var t=St.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:function(){throw new St.ErrnoError(70)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,t){return e<<8|t},registerDevice:function(e,t){St.devices[e]={stream_ops:t}},getDevice:function(e){return St.devices[e]},getMounts:function(e){for(var t=[],i=[e];i.length;){var r=i.pop();t.push(r),i.push.apply(i,r.mounts)}return t},syncfs:function(e,t){"function"==typeof e&&(t=e,e=!1),St.syncFSRequests++,St.syncFSRequests>1&&St.syncFSRequests;var i=St.getMounts(St.root.mount),r=0;function n(e){return N(St.syncFSRequests>0),St.syncFSRequests--,t(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,n(e));++r>=i.length&&n(null)}i.forEach((function(t){if(!t.type.syncfs)return a(null);t.type.syncfs(t,e,a)}))},mount:function(e,t,i){var r,n="/"===i,a=!i;if(n&&St.root)throw new St.ErrnoError(10);if(!n&&!a){var s=St.lookupPath(i,{follow_mount:!1});if(i=s.path,r=s.node,St.isMountpoint(r))throw new St.ErrnoError(10);if(!St.isDir(r.mode))throw new St.ErrnoError(54)}var o={type:e,opts:t,mountpoint:i,mounts:[]},l=e.mount(o);return l.mount=o,o.root=l,n?St.root=l:r&&(r.mounted=o,r.mount&&r.mount.mounts.push(o)),l},unmount:function(e){var t=St.lookupPath(e,{follow_mount:!1});if(!St.isMountpoint(t.node))throw new St.ErrnoError(28);var i=t.node,r=i.mounted,n=St.getMounts(r);Object.keys(St.nameTable).forEach((function(e){for(var t=St.nameTable[e];t;){var i=t.name_next;-1!==n.indexOf(t.mount)&&St.destroyNode(t),t=i}})),i.mounted=null;var a=i.mount.mounts.indexOf(r);N(-1!==a),i.mount.mounts.splice(a,1)},lookup:function(e,t){return e.node_ops.lookup(e,t)},mknod:function(e,t,i){var r=St.lookupPath(e,{parent:!0}).node,n=pt.basename(e);if(!n||"."===n||".."===n)throw new St.ErrnoError(28);var a=St.mayCreate(r,n);if(a)throw new St.ErrnoError(a);if(!r.node_ops.mknod)throw new St.ErrnoError(63);return r.node_ops.mknod(r,n,t,i)},create:function(e,t){return t=void 0!==t?t:438,t&=4095,t|=32768,St.mknod(e,t,0)},mkdir:function(e,t){return t=void 0!==t?t:511,t&=1023,t|=16384,St.mknod(e,t,0)},mkdirTree:function(e,t){for(var i=e.split("/"),r="",n=0;nthis.length-1||e<0)){var t=e%this.chunkSize,i=e/this.chunkSize|0;return this.getter(i)[t]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",i,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+i+". Status: "+e.status);var t,r=Number(e.getResponseHeader("Content-length")),n=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,a=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,s=1048576;n||(s=r);var o=this;o.setDataGetter((function(e){var t=e*s,n=(e+1)*s-1;if(n=Math.min(n,r-1),void 0===o.chunks[e]&&(o.chunks[e]=function(e,t){if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>r-1)throw new Error("only "+r+" bytes available! programmer error!");var n=new XMLHttpRequest;if(n.open("GET",i,!1),r!==s&&n.setRequestHeader("Range","bytes="+e+"-"+t),"undefined"!=typeof Uint8Array&&(n.responseType="arraybuffer"),n.overrideMimeType&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.send(null),!(n.status>=200&&n.status<300||304===n.status))throw new Error("Couldn't load "+i+". Status: "+n.status);return void 0!==n.response?new Uint8Array(n.response||[]):ki(n.responseText||"",!0)}(t,n)),void 0===o.chunks[e])throw new Error("doXHR failed!");return o.chunks[e]})),!a&&r||(s=r=1,r=this.getter(0).length,s=r),this._length=r,this._chunkSize=s,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){if(!d)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s=new a;Object.defineProperties(s,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var o={isDevice:!1,contents:s}}else o={isDevice:!1,url:i};var l=St.createFile(e,t,o,r,n);o.contents?l.contents=o.contents:o.url&&(l.contents=null,l.url=o.url),Object.defineProperties(l,{usedBytes:{get:function(){return this.contents.length}}});var f={};return Object.keys(l.stream_ops).forEach((function(e){var t=l.stream_ops[e];f[e]=function(){if(!St.forceLoadFile(l))throw new St.ErrnoError(29);return t.apply(null,arguments)}})),f.read=function(e,t,i,r,n){if(!St.forceLoadFile(l))throw new St.ErrnoError(29);var a=e.node.contents;if(n>=a.length)return 0;var s=Math.min(a.length-n,r);if(N(s>=0),a.slice)for(var o=0;o>2]=r.dev,le[i+4>>2]=0,le[i+8>>2]=r.ino,le[i+12>>2]=r.mode,le[i+16>>2]=r.nlink,le[i+20>>2]=r.uid,le[i+24>>2]=r.gid,le[i+28>>2]=r.rdev,le[i+32>>2]=0,tt=[r.size>>>0,(et=r.size,+Le(et)>=1?et>0?(0|He(+ze(et/4294967296),4294967295))>>>0:~~+Ne((et-+(~~et>>>0))/4294967296)>>>0:0)],le[i+40>>2]=tt[0],le[i+44>>2]=tt[1],le[i+48>>2]=4096,le[i+52>>2]=r.blocks,le[i+56>>2]=r.atime.getTime()/1e3|0,le[i+60>>2]=0,le[i+64>>2]=r.mtime.getTime()/1e3|0,le[i+68>>2]=0,le[i+72>>2]=r.ctime.getTime()/1e3|0,le[i+76>>2]=0,tt=[r.ino>>>0,(et=r.ino,+Le(et)>=1?et>0?(0|He(+ze(et/4294967296),4294967295))>>>0:~~+Ne((et-+(~~et>>>0))/4294967296)>>>0:0)],le[i+80>>2]=tt[0],le[i+84>>2]=tt[1],0},doMsync:function(e,t,i,r){var n=new Uint8Array(ae.subarray(e,e+i));St.msync(t,n,0,i,r)},doMkdir:function(e,t){return"/"===(e=pt.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),St.mkdir(e,t,0),0},doMknod:function(e,t,i){switch(61440&t){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return St.mknod(e,t,i),0},doReadlink:function(e,t,i){if(i<=0)return-28;var r=St.readlink(e),n=Math.min(i,$(r)),a=ne[t+n];return J(r,t,i+1),ne[t+n]=a,n},doAccess:function(e,t){if(-8&t)return-28;var i;if(!(i=St.lookupPath(e,{follow:!0}).node))return-44;var r="";return 4&t&&(r+="r"),2&t&&(r+="w"),1&t&&(r+="x"),r&&St.nodePermissions(i,r)?-2:0},doDup:function(e,t,i){var r=St.getStream(i);return r&&St.close(r),St.open(e,t,0,i,i).fd},doReadv:function(e,t,i,r){for(var n=0,a=0;a>2],o=le[t+(8*a+4)>>2],l=St.read(e,ne,s,o,r);if(l<0)return-1;if(n+=l,l>2],o=le[t+(8*a+4)>>2],l=St.write(e,ne,s,o,r);if(l<0)return-1;n+=l}return n},varargs:0,get:function(e){return jt.varargs+=4,le[jt.varargs-4>>2]},getStr:function(){return Q(jt.get())},getStreamFromFD:function(e){void 0===e&&(e=jt.get());var t=St.getStream(e);if(!t)throw new St.ErrnoError(8);return t},get64:function(){var e=jt.get(),t=jt.get();return N(e>=0?0===t:-1===t),e},getZero:function(){N(0===jt.get())}};function Tt(e,t){jt.varargs=t;try{var i=jt.getStreamFromFD();switch(jt.get()){case 0:return(r=jt.get())<0?-28:St.open(i.path,i.flags,0,r).fd;case 1:case 2:return 0;case 3:return i.flags;case 4:var r=jt.get();return i.flags|=r,0;case 12:r=jt.get();return se[r+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return _t(28),-1;default:return-28}}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),-e.errno}}function At(e,t){jt.varargs=t;try{var i=jt.getStreamFromFD(),r=jt.get(),n=jt.get();return St.read(i,ne,r,n)}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),-e.errno}}function xt(e,t){jt.varargs=t;try{var i=jt.getStr(),r=jt.get(),n=jt.get();return St.open(i,r,n).fd}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),-e.errno}}function Mt(){}function kt(e){try{var t=jt.getStreamFromFD(e);return St.close(t),0}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),e.errno}}function Pt(){return kt.apply(null,arguments)}function It(e,t){try{var i=jt.getStreamFromFD(e),r=i.tty?2:St.isDir(i.mode)?3:St.isLink(i.mode)?7:4;return ne[t>>0]=r,0}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),e.errno}}function Ut(){return It.apply(null,arguments)}function Rt(e,t,i,r,n){try{var a=jt.getStreamFromFD(e),s=4294967296*i+(t>>>0);return s<=-9007199254740992||s>=9007199254740992?-61:(St.llseek(a,s,r),tt=[a.position>>>0,(et=a.position,+Le(et)>=1?et>0?(0|He(+ze(et/4294967296),4294967295))>>>0:~~+Ne((et-+(~~et>>>0))/4294967296)>>>0:0)],le[n>>2]=tt[0],le[n+4>>2]=tt[1],a.getdents&&0===s&&0===r&&(a.getdents=null),0)}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),e.errno}}function Dt(){return Rt.apply(null,arguments)}function Ot(e,t,i,r){try{var n=jt.getStreamFromFD(e),a=jt.doWritev(n,t,i);return le[r>>2]=a,0}catch(e){return void 0!==St&&e instanceof St.ErrnoError||Ze(e),e.errno}}function Ft(){return Ot.apply(null,arguments)}function Bt(e){delete Gt.xhrs[e-1]}function Lt(){Ze()}function Nt(){return void 0===Nt.start&&(Nt.start=Date.now()),1e3*(Date.now()-Nt.start)|0}function zt(){Ze()}function Ht(){return _||"undefined"!=typeof dateNow||"object"===("undefined"==typeof performance?"undefined":a(performance))&&performance&&"function"==typeof performance.now}function Vt(e,t){var i;if(0===e)i=Date.now();else{if(1!==e||!Ht())return _t(28),-1;i=zt()}return le[t>>2]=i/1e3|0,le[t+4>>2]=i%1e3*1e3*1e3|0,0}function Yt(){return ne.length}function qt(){return!d}function Xt(e){try{return R.grow(e-re.byteLength+65535>>16),pe(R.buffer),1}catch(t){console.error("emscripten_realloc_buffer: Attempted to grow heap from "+re.byteLength+" bytes to "+e+" bytes, but got error: "+t)}}function Wt(e){var t=Yt();N(e>t);if(e>2147418112)return S("Cannot enlarge memory, asked to go up to "+e+" bytes, but the limit is 2147418112 bytes!"),!1;for(var i=Math.max(t,16777216);i>2]=t,fe[e+4>>2]=t/4294967296|0},openDatabase:function(e,t,i,r){try{var n=indexedDB.open(e,t)}catch(e){return r(e)}n.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains("FILES")&&t.deleteObjectStore("FILES"),t.createObjectStore("FILES")},n.onsuccess=function(e){i(e.target.result)},n.onerror=function(e){r(e)}},staticInit:function(){var e="undefined"==typeof ENVIRONMENT_IS_FETCH_WORKER;Gt.openDatabase("emscripten_filesystem",1,(function(t){Gt.dbInstance=t,e&&Qe("library_fetch_init")}),(function(){Gt.dbInstance=!1,e&&Qe("library_fetch_init")})),"undefined"!=typeof ENVIRONMENT_IS_FETCH_WORKER&&ENVIRONMENT_IS_FETCH_WORKER||Ke("library_fetch_init")}};function Kt(e,t,i,r,n){var a=fe[e+8>>2];if(a){var s=Q(a),o=e+112,l=Q(o);l||(l="GET");fe[o+32>>2];var f=fe[o+52>>2],u=fe[o+56>>2],c=!!fe[o+60>>2],h=(fe[o+64>>2],fe[o+68>>2]),d=fe[o+72>>2],_=fe[o+76>>2],p=fe[o+80>>2],m=fe[o+84>>2],b=fe[o+88>>2],v=!!(1&f),y=!!(2&f),g=!!(64&f),w=h?Q(h):void 0,E=d?Q(d):void 0,C=p?Q(p):void 0,S=new XMLHttpRequest;if(S.withCredentials=c,S.open(l,s,!g,w,E),g||(S.timeout=u),S.url_=s,N(!y,"streaming uses moz-chunked-arraybuffer which is no longer supported; TODO: rewrite using fetch()"),S.responseType="arraybuffer",p&&S.overrideMimeType(C),_)for(;;){var j=fe[_>>2];if(!j)break;var T=fe[_+4>>2];if(!T)break;_+=8;var A=Q(j),x=Q(T);S.setRequestHeader(A,x)}Gt.xhrs.push(S);var M=Gt.xhrs.length;fe[e+0>>2]=M;var k=m&&b?ae.slice(m,m+b):null;S.onload=function(r){var n=S.response?S.response.byteLength:0,a=0,s=0;v&&!y&&(a=ra(s=n),ae.set(new Uint8Array(S.response),a)),fe[e+12>>2]=a,Gt.setu64(e+16,s),Gt.setu64(e+24,0),n&&Gt.setu64(e+32,n),oe[e+40>>1]=S.readyState,4===S.readyState&&0===S.status&&(S.status=n>0?200:404),oe[e+42>>1]=S.status,S.statusText&&J(S.statusText,e+44,64),S.status>=200&&S.status<300?t&&t(e,S,r):i&&i(e,S,r)},S.onerror=function(t){var r=S.status;4===S.readyState&&0===r&&(r=404),fe[e+12>>2]=0,Gt.setu64(e+16,0),Gt.setu64(e+24,0),Gt.setu64(e+32,0),oe[e+40>>1]=S.readyState,oe[e+42>>1]=r,i&&i(e,S,t)},S.ontimeout=function(t){i&&i(e,S,t)},S.onprogress=function(t){var i=v&&y&&S.response?S.response.byteLength:0,n=0;v&&y&&(n=ra(i),ae.set(new Uint8Array(S.response),n)),fe[e+12>>2]=n,Gt.setu64(e+16,i),Gt.setu64(e+24,t.loaded-i),Gt.setu64(e+32,t.total),oe[e+40>>1]=S.readyState,S.readyState>=3&&0===S.status&&t.loaded>0&&(S.status=200),oe[e+42>>1]=S.status,S.statusText&&J(S.statusText,e+44,64),r&&r(e,S,t)},S.onreadystatechange=function(t){oe[e+40>>1]=S.readyState,S.readyState>=2&&(oe[e+42>>1]=S.status),n&&n(e,S,t)};try{S.send(k)}catch(t){i&&i(e,S,t)}}else i(e,0,"no url specified!")}function Qt(e,t,i,r,n){if(e){var a=fe[t+112+64>>2];a||(a=fe[t+8>>2]);var s=Q(a);try{var o=e.transaction(["FILES"],"readwrite").objectStore("FILES").put(i,s);o.onsuccess=function(e){oe[t+40>>1]=4,oe[t+42>>1]=200,J("OK",t+44,64),r(t,0,s)},o.onerror=function(e){oe[t+40>>1]=4,oe[t+42>>1]=413,J("Payload Too Large",t+44,64),n(t,0,e)}}catch(e){n(t,0,e)}}else n(t,0,"IndexedDB not available!")}function Zt(e,t,i,r){if(e){var n=fe[t+112+64>>2];n||(n=fe[t+8>>2]);var a=Q(n);try{var s=e.transaction(["FILES"],"readonly").objectStore("FILES").get(a);s.onsuccess=function(e){if(e.target.result){var n=e.target.result,a=n.byteLength||n.length,s=ra(a);ae.set(new Uint8Array(n),s),fe[t+12>>2]=s,Gt.setu64(t+16,a),Gt.setu64(t+24,0),Gt.setu64(t+32,a),oe[t+40>>1]=4,oe[t+42>>1]=200,J("OK",t+44,64),i(t,0,n)}else oe[t+40>>1]=4,oe[t+42>>1]=404,J("Not Found",t+44,64),r(t,0,"no data")},s.onerror=function(e){oe[t+40>>1]=4,oe[t+42>>1]=404,J("Not Found",t+44,64),r(t,0,e)}}catch(e){r(t,0,e)}}else r(t,0,"IndexedDB not available!")}function Jt(e,t,i,r){if(e){var n=fe[t+112+64>>2];n||(n=fe[t+8>>2]);var a=Q(n);try{var s=e.transaction(["FILES"],"readwrite").objectStore("FILES").delete(a);s.onsuccess=function(e){var r=e.target.result;fe[t+12>>2]=0,Gt.setu64(t+16,0),Gt.setu64(t+24,0),Gt.setu64(t+32,0),oe[t+40>>1]=4,oe[t+42>>1]=200,J("OK",t+44,64),i(t,0,r)},s.onerror=function(e){oe[t+40>>1]=4,oe[t+42>>1]=404,J("Not Found",t+44,64),r(t,0,e)}}catch(e){r(t,0,e)}}else r(t,0,"IndexedDB not available!")}function $t(e,t,i,r,n){void 0!==U&&(U=!0);var a=e+112,s=Q(a),o=fe[a+36>>2],l=fe[a+40>>2],f=fe[a+44>>2],u=fe[a+48>>2],c=fe[a+52>>2],h=!!(4&c),d=!!(32&c),_=!!(16&c),p=function(e,i,r){o?oa(o,e):t&&t(e)},m=function(e,t,i){f?oa(f,e):r&&r(e)},b=function(e,t,r){l?oa(l,e):i&&i(e)},v=function(e,t,i){u?oa(u,e):n&&n(e)},y=function(e,i,r){Qt(Gt.dbInstance,e,i.response,(function(e,i,r){o?oa(o,e):t&&t(e)}),(function(e,i,r){o?oa(o,e):t&&t(e)}))};if("EM_IDB_STORE"===s){var g=fe[a+84>>2];Qt(Gt.dbInstance,e,ae.slice(g,g+fe[a+88>>2]),p,b)}else if("EM_IDB_DELETE"===s)Jt(Gt.dbInstance,e,p,b);else if(_){if(d)return 0;Kt(e,h?y:p,b,m,v)}else Zt(Gt.dbInstance,e,p,d?b:h?function(e,t,i){Kt(e,y,b,m,v)}:function(e,t,i){Kt(e,p,b,m,v)});return e}var ei=Le;function ti(e){return 0===e?0:(e=Q(e),ct.hasOwnProperty(e)?(ti.ret&&ia(ti.ret),ti.ret=ee(ct[e]),ti.ret):0)}function ii(e){var t=Date.now();return le[e>>2]=t/1e3|0,le[e+4>>2]=t%1e3*1e3|0,0}var ri=(J("GMT",1124432,4),1124432);function ni(e,t){var i=new Date(1e3*le[e>>2]);le[t>>2]=i.getUTCSeconds(),le[t+4>>2]=i.getUTCMinutes(),le[t+8>>2]=i.getUTCHours(),le[t+12>>2]=i.getUTCDate(),le[t+16>>2]=i.getUTCMonth(),le[t+20>>2]=i.getUTCFullYear()-1900,le[t+24>>2]=i.getUTCDay(),le[t+36>>2]=0,le[t+32>>2]=0;var r=Date.UTC(i.getUTCFullYear(),0,1,0,0,0,0),n=(i.getTime()-r)/864e5|0;return le[t+28>>2]=n,le[t+40>>2]=ri,t}function ai(e){return Math.pow(2,e)}function si(e){return ai(e)}function oi(e){return Math.log(e)/Math.LN2}function li(e){var t=fi,i=t.LLVM_SAVEDSTACKS[e];t.LLVM_SAVEDSTACKS.splice(e,1),aa(i)}function fi(){var e=fi;return e.LLVM_SAVEDSTACKS||(e.LLVM_SAVEDSTACKS=[]),e.LLVM_SAVEDSTACKS.push(sa()),e.LLVM_SAVEDSTACKS.length-1}var ui=Ve;function ci(){if(!ci.called){ci.called=!0,le[ea()>>2]=60*(new Date).getTimezoneOffset();var e=(new Date).getFullYear(),t=new Date(e,0,1),i=new Date(e,6,1);le[$n()>>2]=Number(t.getTimezoneOffset()!=i.getTimezoneOffset());var r=o(t),n=o(i),a=X(ki(r),"i8",Y),s=X(ki(n),"i8",Y);i.getTimezoneOffset()>2]=a,le[ta()+4>>2]=s):(le[ta()>>2]=s,le[ta()+4>>2]=a)}function o(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}}function hi(e,t){ci();var i=new Date(1e3*le[e>>2]);le[t>>2]=i.getSeconds(),le[t+4>>2]=i.getMinutes(),le[t+8>>2]=i.getHours(),le[t+12>>2]=i.getDate(),le[t+16>>2]=i.getMonth(),le[t+20>>2]=i.getFullYear()-1900,le[t+24>>2]=i.getDay();var r=new Date(i.getFullYear(),0,1),n=(i.getTime()-r.getTime())/864e5|0;le[t+28>>2]=n,le[t+36>>2]=-60*i.getTimezoneOffset();var a=new Date(i.getFullYear(),6,1).getTimezoneOffset(),s=r.getTimezoneOffset(),o=0|(a!=s&&i.getTimezoneOffset()==Math.min(s,a));le[t+32>>2]=o;var l=le[ta()+(o?4:0)>>2];return le[t+40>>2]=l,t}function di(e,t,i){ae.set(ae.subarray(t,t+i),e)}function _i(e){var t=e/1e3;if((h||d)&&self.performance&&self.performance.now)for(var i=self.performance.now();self.performance.now()-i>2],r=le[e+4>>2];return r<0||r>999999999||i<0?(_t(28),-1):(0!==t&&(le[t>>2]=0,le[t+4>>2]=0),_i(1e6*i+r/1e3))}function mi(){return 0}function bi(){return 0}function vi(){return 6}function yi(){}function gi(e){return e%4==0&&(e%100!=0||e%400==0)}function wi(e,t){for(var i=0,r=0;r<=t;i+=e[r++]);return i}var Ei=[31,29,31,30,31,30,31,31,30,31,30,31],Ci=[31,28,31,30,31,30,31,31,30,31,30,31];function Si(e,t){for(var i=new Date(e.getTime());t>0;){var r=gi(i.getFullYear()),n=i.getMonth(),a=(r?Ei:Ci)[n];if(!(t>a-i.getDate()))return i.setDate(i.getDate()+t),i;t-=a-i.getDate()+1,i.setDate(1),n<11?i.setMonth(n+1):(i.setMonth(0),i.setFullYear(i.getFullYear()+1))}return i}function ji(e,t,i,r){var n=le[r+40>>2],a={tm_sec:le[r>>2],tm_min:le[r+4>>2],tm_hour:le[r+8>>2],tm_mday:le[r+12>>2],tm_mon:le[r+16>>2],tm_year:le[r+20>>2],tm_wday:le[r+24>>2],tm_yday:le[r+28>>2],tm_isdst:le[r+32>>2],tm_gmtoff:le[r+36>>2],tm_zone:n?Q(n):""},s=Q(i),o={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in o)s=s.replace(new RegExp(l,"g"),o[l]);var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],u=["January","February","March","April","May","June","July","August","September","October","November","December"];function c(e,t,i){for(var r="number"==typeof e?e.toString():e||"";r.length0?1:0}var r;return 0===(r=i(e.getFullYear()-t.getFullYear()))&&0===(r=i(e.getMonth()-t.getMonth()))&&(r=i(e.getDate()-t.getDate())),r}function _(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function p(e){var t=Si(new Date(e.tm_year+1900,0,1),e.tm_yday),i=new Date(t.getFullYear(),0,4),r=new Date(t.getFullYear()+1,0,4),n=_(i),a=_(r);return d(n,t)<=0?d(a,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var m={"%a":function(e){return f[e.tm_wday].substring(0,3)},"%A":function(e){return f[e.tm_wday]},"%b":function(e){return u[e.tm_mon].substring(0,3)},"%B":function(e){return u[e.tm_mon]},"%C":function(e){return h((e.tm_year+1900)/100|0,2)},"%d":function(e){return h(e.tm_mday,2)},"%e":function(e){return c(e.tm_mday,2," ")},"%g":function(e){return p(e).toString().substring(2)},"%G":function(e){return p(e)},"%H":function(e){return h(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),h(t,2)},"%j":function(e){return h(e.tm_mday+wi(gi(e.tm_year+1900)?Ei:Ci,e.tm_mon-1),3)},"%m":function(e){return h(e.tm_mon+1,2)},"%M":function(e){return h(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return h(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var t=new Date(e.tm_year+1900,0,1),i=0===t.getDay()?t:Si(t,7-t.getDay()),r=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(d(i,r)<0){var n=wi(gi(r.getFullYear())?Ei:Ci,r.getMonth()-1)-31,a=31-i.getDate()+n+r.getDate();return h(Math.ceil(a/7),2)}return 0===d(i,t)?"01":"00"},"%V":function(e){var t,i=new Date(e.tm_year+1900,0,4),r=new Date(e.tm_year+1901,0,4),n=_(i),a=_(r),s=Si(new Date(e.tm_year+1900,0,1),e.tm_yday);return d(s,n)<0?"53":d(a,s)<=0?"01":(t=n.getFullYear()=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(i?"+":"-")+String("0000"+t).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var l in m)s.indexOf(l)>=0&&(s=s.replace(new RegExp(l,"g"),m[l](a)));var b=ki(s,!1);return b.length>t?0:(te(b,e),b.length-1)}function Ti(e){switch(e){case 30:return he;case 85:return 2147418112/he;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"===("undefined"==typeof navigator?"undefined":a(navigator))&&navigator.hardwareConcurrency||1}return _t(28),-1}function Ai(e){var t=Date.now()/1e3|0;return e&&(le[e>>2]=t),t}if(St.staticInit(),p){var xi=e("fs"),Mi=e("path");wt.staticInit()}function ki(e,t,i){var r=i>0?i:$(e)+1,n=new Array(r),a=Z(e,n,0,n.length);return t&&(n.length=a),n}zt=_?function(){var e=i.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:"object"===("undefined"==typeof performance?"undefined":a(performance))&&performance&&"function"==typeof performance.now?function(){return performance.now()}:Date.now,Gt.staticInit();var Pi=[0,"jsCall_dd_0","jsCall_dd_1","jsCall_dd_2","jsCall_dd_3","jsCall_dd_4","jsCall_dd_5","jsCall_dd_6","jsCall_dd_7","jsCall_dd_8","jsCall_dd_9","jsCall_dd_10","jsCall_dd_11","jsCall_dd_12","jsCall_dd_13","jsCall_dd_14","jsCall_dd_15","jsCall_dd_16","jsCall_dd_17","jsCall_dd_18","jsCall_dd_19","jsCall_dd_20","jsCall_dd_21","jsCall_dd_22","jsCall_dd_23","jsCall_dd_24","jsCall_dd_25","jsCall_dd_26","jsCall_dd_27","jsCall_dd_28","jsCall_dd_29","jsCall_dd_30","jsCall_dd_31","jsCall_dd_32","jsCall_dd_33","jsCall_dd_34","_sinh","_cosh","_tanh","_sin","_cos","_tan","_atan","_asin","_acos","_exp","_log","_fabs","_etime",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ii=[0,"jsCall_did_0","jsCall_did_1","jsCall_did_2","jsCall_did_3","jsCall_did_4","jsCall_did_5","jsCall_did_6","jsCall_did_7","jsCall_did_8","jsCall_did_9","jsCall_did_10","jsCall_did_11","jsCall_did_12","jsCall_did_13","jsCall_did_14","jsCall_did_15","jsCall_did_16","jsCall_did_17","jsCall_did_18","jsCall_did_19","jsCall_did_20","jsCall_did_21","jsCall_did_22","jsCall_did_23","jsCall_did_24","jsCall_did_25","jsCall_did_26","jsCall_did_27","jsCall_did_28","jsCall_did_29","jsCall_did_30","jsCall_did_31","jsCall_did_32","jsCall_did_33","jsCall_did_34",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,0],Ui=[0,"jsCall_didd_0","jsCall_didd_1","jsCall_didd_2","jsCall_didd_3","jsCall_didd_4","jsCall_didd_5","jsCall_didd_6","jsCall_didd_7","jsCall_didd_8","jsCall_didd_9","jsCall_didd_10","jsCall_didd_11","jsCall_didd_12","jsCall_didd_13","jsCall_didd_14","jsCall_didd_15","jsCall_didd_16","jsCall_didd_17","jsCall_didd_18","jsCall_didd_19","jsCall_didd_20","jsCall_didd_21","jsCall_didd_22","jsCall_didd_23","jsCall_didd_24","jsCall_didd_25","jsCall_didd_26","jsCall_didd_27","jsCall_didd_28","jsCall_didd_29","jsCall_didd_30","jsCall_didd_31","jsCall_didd_32","jsCall_didd_33","jsCall_didd_34",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,0],Ri=[0,"jsCall_fii_0","jsCall_fii_1","jsCall_fii_2","jsCall_fii_3","jsCall_fii_4","jsCall_fii_5","jsCall_fii_6","jsCall_fii_7","jsCall_fii_8","jsCall_fii_9","jsCall_fii_10","jsCall_fii_11","jsCall_fii_12","jsCall_fii_13","jsCall_fii_14","jsCall_fii_15","jsCall_fii_16","jsCall_fii_17","jsCall_fii_18","jsCall_fii_19","jsCall_fii_20","jsCall_fii_21","jsCall_fii_22","jsCall_fii_23","jsCall_fii_24","jsCall_fii_25","jsCall_fii_26","jsCall_fii_27","jsCall_fii_28","jsCall_fii_29","jsCall_fii_30","jsCall_fii_31","jsCall_fii_32","jsCall_fii_33","jsCall_fii_34","_sbr_sum_square_c",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],Di=[0,"jsCall_fiii_0","jsCall_fiii_1","jsCall_fiii_2","jsCall_fiii_3","jsCall_fiii_4","jsCall_fiii_5","jsCall_fiii_6","jsCall_fiii_7","jsCall_fiii_8","jsCall_fiii_9","jsCall_fiii_10","jsCall_fiii_11","jsCall_fiii_12","jsCall_fiii_13","jsCall_fiii_14","jsCall_fiii_15","jsCall_fiii_16","jsCall_fiii_17","jsCall_fiii_18","jsCall_fiii_19","jsCall_fiii_20","jsCall_fiii_21","jsCall_fiii_22","jsCall_fiii_23","jsCall_fiii_24","jsCall_fiii_25","jsCall_fiii_26","jsCall_fiii_27","jsCall_fiii_28","jsCall_fiii_29","jsCall_fiii_30","jsCall_fiii_31","jsCall_fiii_32","jsCall_fiii_33","jsCall_fiii_34","_avpriv_scalarproduct_float_c",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],Oi=[0,"jsCall_ii_0","jsCall_ii_1","jsCall_ii_2","jsCall_ii_3","jsCall_ii_4","jsCall_ii_5","jsCall_ii_6","jsCall_ii_7","jsCall_ii_8","jsCall_ii_9","jsCall_ii_10","jsCall_ii_11","jsCall_ii_12","jsCall_ii_13","jsCall_ii_14","jsCall_ii_15","jsCall_ii_16","jsCall_ii_17","jsCall_ii_18","jsCall_ii_19","jsCall_ii_20","jsCall_ii_21","jsCall_ii_22","jsCall_ii_23","jsCall_ii_24","jsCall_ii_25","jsCall_ii_26","jsCall_ii_27","jsCall_ii_28","jsCall_ii_29","jsCall_ii_30","jsCall_ii_31","jsCall_ii_32","jsCall_ii_33","jsCall_ii_34","_av_default_item_name","_ff_avio_child_class_next","_flv_probe","_flv_read_header","_flv_read_close","_live_flv_probe","_mov_probe","_mov_read_header","_mov_read_close","_mpegts_probe","_mpegts_read_header","_mpegts_read_close","_format_to_name","_format_child_class_next","_get_category","_urlcontext_to_name","_ff_urlcontext_child_class_next","_sws_context_to_name","_ff_bsf_child_class_next","_hevc_mp4toannexb_init","_hevc_init_thread_copy","_hevc_decode_init","_hevc_decode_free","_context_to_name","_codec_child_class_next","_get_category_2087","_aac_decode_init","_aac_decode_close","_init","___stdio_close","___emscripten_stdout_close","_initSniffStreamFunc","_releaseSniffStreamFunc","_initializeDecoderFunc","__getFrame","_closeVideoFunc","_releaseFunc","_initializeDemuxerFunc","_getPacketFunc","_releaseDemuxerFunc","_io_short_seek","_avio_rb16","_avio_rl16","_av_buffer_allocz","_frame_worker_thread","_av_buffer_alloc","_thread_worker",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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Fi=[0,"jsCall_iidiiii_0","jsCall_iidiiii_1","jsCall_iidiiii_2","jsCall_iidiiii_3","jsCall_iidiiii_4","jsCall_iidiiii_5","jsCall_iidiiii_6","jsCall_iidiiii_7","jsCall_iidiiii_8","jsCall_iidiiii_9","jsCall_iidiiii_10","jsCall_iidiiii_11","jsCall_iidiiii_12","jsCall_iidiiii_13","jsCall_iidiiii_14","jsCall_iidiiii_15","jsCall_iidiiii_16","jsCall_iidiiii_17","jsCall_iidiiii_18","jsCall_iidiiii_19","jsCall_iidiiii_20","jsCall_iidiiii_21","jsCall_iidiiii_22","jsCall_iidiiii_23","jsCall_iidiiii_24","jsCall_iidiiii_25","jsCall_iidiiii_26","jsCall_iidiiii_27","jsCall_iidiiii_28","jsCall_iidiiii_29","jsCall_iidiiii_30","jsCall_iidiiii_31","jsCall_iidiiii_32","jsCall_iidiiii_33","jsCall_iidiiii_34","_fmt_fp",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],Bi=[0,"jsCall_iii_0","jsCall_iii_1","jsCall_iii_2","jsCall_iii_3","jsCall_iii_4","jsCall_iii_5","jsCall_iii_6","jsCall_iii_7","jsCall_iii_8","jsCall_iii_9","jsCall_iii_10","jsCall_iii_11","jsCall_iii_12","jsCall_iii_13","jsCall_iii_14","jsCall_iii_15","jsCall_iii_16","jsCall_iii_17","jsCall_iii_18","jsCall_iii_19","jsCall_iii_20","jsCall_iii_21","jsCall_iii_22","jsCall_iii_23","jsCall_iii_24","jsCall_iii_25","jsCall_iii_26","jsCall_iii_27","jsCall_iii_28","jsCall_iii_29","jsCall_iii_30","jsCall_iii_31","jsCall_iii_32","jsCall_iii_33","jsCall_iii_34","_ff_avio_child_next","_flv_read_packet","_mov_read_packet","_mpegts_read_packet","_mpegts_raw_read_packet","_format_child_next","_urlcontext_child_next","_bsf_child_next","_hevc_mp4toannexb_filter","_hevc_update_thread_context","_null_filter","_codec_child_next","_getSniffStreamPacketFunc","_io_read_pause","_descriptor_compare","_hls_decode_entry","_avcodec_default_get_format","_ff_startcode_find_candidate_c","_color_table_compare",0,0,0,0,0,0,0,0,0],Li=[0,"jsCall_iiii_0","jsCall_iiii_1","jsCall_iiii_2","jsCall_iiii_3","jsCall_iiii_4","jsCall_iiii_5","jsCall_iiii_6","jsCall_iiii_7","jsCall_iiii_8","jsCall_iiii_9","jsCall_iiii_10","jsCall_iiii_11","jsCall_iiii_12","jsCall_iiii_13","jsCall_iiii_14","jsCall_iiii_15","jsCall_iiii_16","jsCall_iiii_17","jsCall_iiii_18","jsCall_iiii_19","jsCall_iiii_20","jsCall_iiii_21","jsCall_iiii_22","jsCall_iiii_23","jsCall_iiii_24","jsCall_iiii_25","jsCall_iiii_26","jsCall_iiii_27","jsCall_iiii_28","jsCall_iiii_29","jsCall_iiii_30","jsCall_iiii_31","jsCall_iiii_32","jsCall_iiii_33","jsCall_iiii_34","_mov_read_aclr","_mov_read_avid","_mov_read_ares","_mov_read_avss","_mov_read_av1c","_mov_read_chpl","_mov_read_stco","_mov_read_colr","_mov_read_ctts","_mov_read_default","_mov_read_dpxe","_mov_read_dref","_mov_read_elst","_mov_read_enda","_mov_read_fiel","_mov_read_adrm","_mov_read_ftyp","_mov_read_glbl","_mov_read_hdlr","_mov_read_ilst","_mov_read_jp2h","_mov_read_mdat","_mov_read_mdhd","_mov_read_meta","_mov_read_moof","_mov_read_moov","_mov_read_mvhd","_mov_read_svq3","_mov_read_alac","_mov_read_pasp","_mov_read_sidx","_mov_read_stps","_mov_read_strf","_mov_read_stsc","_mov_read_stsd","_mov_read_stss","_mov_read_stsz","_mov_read_stts","_mov_read_tkhd","_mov_read_tfdt","_mov_read_tfhd","_mov_read_trak","_mov_read_tmcd","_mov_read_chap","_mov_read_trex","_mov_read_trun","_mov_read_wave","_mov_read_esds","_mov_read_dac3","_mov_read_dec3","_mov_read_ddts","_mov_read_wide","_mov_read_wfex","_mov_read_cmov","_mov_read_chan","_mov_read_dvc1","_mov_read_sbgp","_mov_read_uuid","_mov_read_targa_y216","_mov_read_free","_mov_read_custom","_mov_read_frma","_mov_read_senc","_mov_read_saiz","_mov_read_saio","_mov_read_pssh","_mov_read_schm","_mov_read_tenc","_mov_read_dfla","_mov_read_st3d","_mov_read_sv3d","_mov_read_dops","_mov_read_smdm","_mov_read_coll","_mov_read_vpcc","_mov_read_mdcv","_mov_read_clli","_h264_split","_hevc_split","___stdio_write","_sn_write","_read_stream","_setCodecTypeFunc","_read_packet","_demuxBoxFunc","_io_write_packet","_io_read_packet","_dyn_buf_write","_mov_read_keys","_mov_read_udta_string","_avcodec_default_get_buffer2","_do_read"],Ni=[0,"jsCall_iiiii_0","jsCall_iiiii_1","jsCall_iiiii_2","jsCall_iiiii_3","jsCall_iiiii_4","jsCall_iiiii_5","jsCall_iiiii_6","jsCall_iiiii_7","jsCall_iiiii_8","jsCall_iiiii_9","jsCall_iiiii_10","jsCall_iiiii_11","jsCall_iiiii_12","jsCall_iiiii_13","jsCall_iiiii_14","jsCall_iiiii_15","jsCall_iiiii_16","jsCall_iiiii_17","jsCall_iiiii_18","jsCall_iiiii_19","jsCall_iiiii_20","jsCall_iiiii_21","jsCall_iiiii_22","jsCall_iiiii_23","jsCall_iiiii_24","jsCall_iiiii_25","jsCall_iiiii_26","jsCall_iiiii_27","jsCall_iiiii_28","jsCall_iiiii_29","jsCall_iiiii_30","jsCall_iiiii_31","jsCall_iiiii_32","jsCall_iiiii_33","jsCall_iiiii_34","_hevc_decode_frame","_aac_decode_frame","_pushBufferFunc","_decodeCodecContextFunc","_mov_metadata_int8_no_padding","_mov_metadata_track_or_disc_number","_mov_metadata_gnre","_mov_metadata_int8_bypass_padding","_lum_planar_vscale","_chr_planar_vscale","_any_vscale","_packed_vscale","_gamma_convert","_lum_convert","_lum_h_scale","_chr_convert","_chr_h_scale","_no_chr_scale","_hls_decode_entry_wpp",0,0,0,0,0,0,0,0,0],zi=[0,"jsCall_iiiiii_0","jsCall_iiiiii_1","jsCall_iiiiii_2","jsCall_iiiiii_3","jsCall_iiiiii_4","jsCall_iiiiii_5","jsCall_iiiiii_6","jsCall_iiiiii_7","jsCall_iiiiii_8","jsCall_iiiiii_9","jsCall_iiiiii_10","jsCall_iiiiii_11","jsCall_iiiiii_12","jsCall_iiiiii_13","jsCall_iiiiii_14","jsCall_iiiiii_15","jsCall_iiiiii_16","jsCall_iiiiii_17","jsCall_iiiiii_18","jsCall_iiiiii_19","jsCall_iiiiii_20","jsCall_iiiiii_21","jsCall_iiiiii_22","jsCall_iiiiii_23","jsCall_iiiiii_24","jsCall_iiiiii_25","jsCall_iiiiii_26","jsCall_iiiiii_27","jsCall_iiiiii_28","jsCall_iiiiii_29","jsCall_iiiiii_30","jsCall_iiiiii_31","jsCall_iiiiii_32","jsCall_iiiiii_33","jsCall_iiiiii_34","_io_open_default","_avcodec_default_execute2","_thread_execute2","_sbr_lf_gen",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Hi=[0,"jsCall_iiiiiii_0","jsCall_iiiiiii_1","jsCall_iiiiiii_2","jsCall_iiiiiii_3","jsCall_iiiiiii_4","jsCall_iiiiiii_5","jsCall_iiiiiii_6","jsCall_iiiiiii_7","jsCall_iiiiiii_8","jsCall_iiiiiii_9","jsCall_iiiiiii_10","jsCall_iiiiiii_11","jsCall_iiiiiii_12","jsCall_iiiiiii_13","jsCall_iiiiiii_14","jsCall_iiiiiii_15","jsCall_iiiiiii_16","jsCall_iiiiiii_17","jsCall_iiiiiii_18","jsCall_iiiiiii_19","jsCall_iiiiiii_20","jsCall_iiiiiii_21","jsCall_iiiiiii_22","jsCall_iiiiiii_23","jsCall_iiiiiii_24","jsCall_iiiiiii_25","jsCall_iiiiiii_26","jsCall_iiiiiii_27","jsCall_iiiiiii_28","jsCall_iiiiiii_29","jsCall_iiiiiii_30","jsCall_iiiiiii_31","jsCall_iiiiiii_32","jsCall_iiiiiii_33","jsCall_iiiiiii_34","_h264_parse","_hevc_parse","_decodeVideoFrameFunc","_avcodec_default_execute","_thread_execute","_sbr_x_gen",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Vi=[0,"jsCall_iiiiiiii_0","jsCall_iiiiiiii_1","jsCall_iiiiiiii_2","jsCall_iiiiiiii_3","jsCall_iiiiiiii_4","jsCall_iiiiiiii_5","jsCall_iiiiiiii_6","jsCall_iiiiiiii_7","jsCall_iiiiiiii_8","jsCall_iiiiiiii_9","jsCall_iiiiiiii_10","jsCall_iiiiiiii_11","jsCall_iiiiiiii_12","jsCall_iiiiiiii_13","jsCall_iiiiiiii_14","jsCall_iiiiiiii_15","jsCall_iiiiiiii_16","jsCall_iiiiiiii_17","jsCall_iiiiiiii_18","jsCall_iiiiiiii_19","jsCall_iiiiiiii_20","jsCall_iiiiiiii_21","jsCall_iiiiiiii_22","jsCall_iiiiiiii_23","jsCall_iiiiiiii_24","jsCall_iiiiiiii_25","jsCall_iiiiiiii_26","jsCall_iiiiiiii_27","jsCall_iiiiiiii_28","jsCall_iiiiiiii_29","jsCall_iiiiiiii_30","jsCall_iiiiiiii_31","jsCall_iiiiiiii_32","jsCall_iiiiiiii_33","jsCall_iiiiiiii_34","_setSniffStreamCodecTypeFunc","_swscale","_ff_sws_alphablendaway","_yuv2rgb_c_32","_yuva2rgba_c","_yuv2rgb_c_bgr48","_yuv2rgb_c_48","_yuva2argb_c","_yuv2rgb_c_24_rgb","_yuv2rgb_c_24_bgr","_yuv2rgb_c_16_ordered_dither","_yuv2rgb_c_15_ordered_dither","_yuv2rgb_c_12_ordered_dither","_yuv2rgb_c_8_ordered_dither","_yuv2rgb_c_4_ordered_dither","_yuv2rgb_c_4b_ordered_dither","_yuv2rgb_c_1_ordered_dither","_planarToP01xWrapper","_planar8ToP01xleWrapper","_yvu9ToYv12Wrapper","_bgr24ToYv12Wrapper","_rgbToRgbWrapper","_planarRgbToplanarRgbWrapper","_planarRgbToRgbWrapper","_planarRgbaToRgbWrapper","_Rgb16ToPlanarRgb16Wrapper","_planarRgb16ToRgb16Wrapper","_rgbToPlanarRgbWrapper","_bayer_to_rgb24_wrapper","_bayer_to_yv12_wrapper","_bswap_16bpc","_palToRgbWrapper","_yuv422pToYuy2Wrapper","_yuv422pToUyvyWrapper","_uint_y_to_float_y_wrapper","_float_y_to_uint_y_wrapper","_planarToYuy2Wrapper","_planarToUyvyWrapper","_yuyvToYuv420Wrapper","_uyvyToYuv420Wrapper","_yuyvToYuv422Wrapper","_uyvyToYuv422Wrapper","_packedCopyWrapper","_planarCopyWrapper","_planarToNv12Wrapper","_planarToNv24Wrapper","_nv12ToPlanarWrapper","_nv24ToPlanarWrapper",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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Yi=[0,"jsCall_iiiiij_0","jsCall_iiiiij_1","jsCall_iiiiij_2","jsCall_iiiiij_3","jsCall_iiiiij_4","jsCall_iiiiij_5","jsCall_iiiiij_6","jsCall_iiiiij_7","jsCall_iiiiij_8","jsCall_iiiiij_9","jsCall_iiiiij_10","jsCall_iiiiij_11","jsCall_iiiiij_12","jsCall_iiiiij_13","jsCall_iiiiij_14","jsCall_iiiiij_15","jsCall_iiiiij_16","jsCall_iiiiij_17","jsCall_iiiiij_18","jsCall_iiiiij_19","jsCall_iiiiij_20","jsCall_iiiiij_21","jsCall_iiiiij_22","jsCall_iiiiij_23","jsCall_iiiiij_24","jsCall_iiiiij_25","jsCall_iiiiij_26","jsCall_iiiiij_27","jsCall_iiiiij_28","jsCall_iiiiij_29","jsCall_iiiiij_30","jsCall_iiiiij_31","jsCall_iiiiij_32","jsCall_iiiiij_33","jsCall_iiiiij_34","_mpegts_push_data",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],qi=[0,"jsCall_iiiji_0","jsCall_iiiji_1","jsCall_iiiji_2","jsCall_iiiji_3","jsCall_iiiji_4","jsCall_iiiji_5","jsCall_iiiji_6","jsCall_iiiji_7","jsCall_iiiji_8","jsCall_iiiji_9","jsCall_iiiji_10","jsCall_iiiji_11","jsCall_iiiji_12","jsCall_iiiji_13","jsCall_iiiji_14","jsCall_iiiji_15","jsCall_iiiji_16","jsCall_iiiji_17","jsCall_iiiji_18","jsCall_iiiji_19","jsCall_iiiji_20","jsCall_iiiji_21","jsCall_iiiji_22","jsCall_iiiji_23","jsCall_iiiji_24","jsCall_iiiji_25","jsCall_iiiji_26","jsCall_iiiji_27","jsCall_iiiji_28","jsCall_iiiji_29","jsCall_iiiji_30","jsCall_iiiji_31","jsCall_iiiji_32","jsCall_iiiji_33","jsCall_iiiji_34","_flv_read_seek","_mov_read_seek",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],Xi=[0,"jsCall_jiiij_0","jsCall_jiiij_1","jsCall_jiiij_2","jsCall_jiiij_3","jsCall_jiiij_4","jsCall_jiiij_5","jsCall_jiiij_6","jsCall_jiiij_7","jsCall_jiiij_8","jsCall_jiiij_9","jsCall_jiiij_10","jsCall_jiiij_11","jsCall_jiiij_12","jsCall_jiiij_13","jsCall_jiiij_14","jsCall_jiiij_15","jsCall_jiiij_16","jsCall_jiiij_17","jsCall_jiiij_18","jsCall_jiiij_19","jsCall_jiiij_20","jsCall_jiiij_21","jsCall_jiiij_22","jsCall_jiiij_23","jsCall_jiiij_24","jsCall_jiiij_25","jsCall_jiiij_26","jsCall_jiiij_27","jsCall_jiiij_28","jsCall_jiiij_29","jsCall_jiiij_30","jsCall_jiiij_31","jsCall_jiiij_32","jsCall_jiiij_33","jsCall_jiiij_34","_mpegts_get_dts",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],Wi=[0,"jsCall_jiiji_0","jsCall_jiiji_1","jsCall_jiiji_2","jsCall_jiiji_3","jsCall_jiiji_4","jsCall_jiiji_5","jsCall_jiiji_6","jsCall_jiiji_7","jsCall_jiiji_8","jsCall_jiiji_9","jsCall_jiiji_10","jsCall_jiiji_11","jsCall_jiiji_12","jsCall_jiiji_13","jsCall_jiiji_14","jsCall_jiiji_15","jsCall_jiiji_16","jsCall_jiiji_17","jsCall_jiiji_18","jsCall_jiiji_19","jsCall_jiiji_20","jsCall_jiiji_21","jsCall_jiiji_22","jsCall_jiiji_23","jsCall_jiiji_24","jsCall_jiiji_25","jsCall_jiiji_26","jsCall_jiiji_27","jsCall_jiiji_28","jsCall_jiiji_29","jsCall_jiiji_30","jsCall_jiiji_31","jsCall_jiiji_32","jsCall_jiiji_33","jsCall_jiiji_34","_io_read_seek",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],Gi=[0,"jsCall_jiji_0","jsCall_jiji_1","jsCall_jiji_2","jsCall_jiji_3","jsCall_jiji_4","jsCall_jiji_5","jsCall_jiji_6","jsCall_jiji_7","jsCall_jiji_8","jsCall_jiji_9","jsCall_jiji_10","jsCall_jiji_11","jsCall_jiji_12","jsCall_jiji_13","jsCall_jiji_14","jsCall_jiji_15","jsCall_jiji_16","jsCall_jiji_17","jsCall_jiji_18","jsCall_jiji_19","jsCall_jiji_20","jsCall_jiji_21","jsCall_jiji_22","jsCall_jiji_23","jsCall_jiji_24","jsCall_jiji_25","jsCall_jiji_26","jsCall_jiji_27","jsCall_jiji_28","jsCall_jiji_29","jsCall_jiji_30","jsCall_jiji_31","jsCall_jiji_32","jsCall_jiji_33","jsCall_jiji_34","___stdio_seek","___emscripten_stdout_seek","_io_seek","_dyn_buf_seek",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ki=[0,"jsCall_v_0","jsCall_v_1","jsCall_v_2","jsCall_v_3","jsCall_v_4","jsCall_v_5","jsCall_v_6","jsCall_v_7","jsCall_v_8","jsCall_v_9","jsCall_v_10","jsCall_v_11","jsCall_v_12","jsCall_v_13","jsCall_v_14","jsCall_v_15","jsCall_v_16","jsCall_v_17","jsCall_v_18","jsCall_v_19","jsCall_v_20","jsCall_v_21","jsCall_v_22","jsCall_v_23","jsCall_v_24","jsCall_v_25","jsCall_v_26","jsCall_v_27","jsCall_v_28","jsCall_v_29","jsCall_v_30","jsCall_v_31","jsCall_v_32","jsCall_v_33","jsCall_v_34","_init_ff_cos_tabs_16","_init_ff_cos_tabs_32","_init_ff_cos_tabs_64","_init_ff_cos_tabs_128","_init_ff_cos_tabs_256","_init_ff_cos_tabs_512","_init_ff_cos_tabs_1024","_init_ff_cos_tabs_2048","_init_ff_cos_tabs_4096","_init_ff_cos_tabs_8192","_init_ff_cos_tabs_16384","_init_ff_cos_tabs_32768","_init_ff_cos_tabs_65536","_init_ff_cos_tabs_131072","_introduce_mine","_introduceMineFunc","_av_format_init_next","_av_codec_init_static","_av_codec_init_next","_aac_static_table_init","_AV_CRC_8_ATM_init_table_once","_AV_CRC_8_EBU_init_table_once","_AV_CRC_16_ANSI_init_table_once","_AV_CRC_16_CCITT_init_table_once","_AV_CRC_24_IEEE_init_table_once","_AV_CRC_32_IEEE_init_table_once","_AV_CRC_32_IEEE_LE_init_table_once","_AV_CRC_16_ANSI_LE_init_table_once"],Qi=[0,"jsCall_vdiidiiiii_0","jsCall_vdiidiiiii_1","jsCall_vdiidiiiii_2","jsCall_vdiidiiiii_3","jsCall_vdiidiiiii_4","jsCall_vdiidiiiii_5","jsCall_vdiidiiiii_6","jsCall_vdiidiiiii_7","jsCall_vdiidiiiii_8","jsCall_vdiidiiiii_9","jsCall_vdiidiiiii_10","jsCall_vdiidiiiii_11","jsCall_vdiidiiiii_12","jsCall_vdiidiiiii_13","jsCall_vdiidiiiii_14","jsCall_vdiidiiiii_15","jsCall_vdiidiiiii_16","jsCall_vdiidiiiii_17","jsCall_vdiidiiiii_18","jsCall_vdiidiiiii_19","jsCall_vdiidiiiii_20","jsCall_vdiidiiiii_21","jsCall_vdiidiiiii_22","jsCall_vdiidiiiii_23","jsCall_vdiidiiiii_24","jsCall_vdiidiiiii_25","jsCall_vdiidiiiii_26","jsCall_vdiidiiiii_27","jsCall_vdiidiiiii_28","jsCall_vdiidiiiii_29","jsCall_vdiidiiiii_30","jsCall_vdiidiiiii_31","jsCall_vdiidiiiii_32","jsCall_vdiidiiiii_33","jsCall_vdiidiiiii_34",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,0],Zi=[0,"jsCall_vi_0","jsCall_vi_1","jsCall_vi_2","jsCall_vi_3","jsCall_vi_4","jsCall_vi_5","jsCall_vi_6","jsCall_vi_7","jsCall_vi_8","jsCall_vi_9","jsCall_vi_10","jsCall_vi_11","jsCall_vi_12","jsCall_vi_13","jsCall_vi_14","jsCall_vi_15","jsCall_vi_16","jsCall_vi_17","jsCall_vi_18","jsCall_vi_19","jsCall_vi_20","jsCall_vi_21","jsCall_vi_22","jsCall_vi_23","jsCall_vi_24","jsCall_vi_25","jsCall_vi_26","jsCall_vi_27","jsCall_vi_28","jsCall_vi_29","jsCall_vi_30","jsCall_vi_31","jsCall_vi_32","jsCall_vi_33","jsCall_vi_34","_free_geobtag","_free_apic","_free_chapter","_free_priv","_hevc_decode_flush","_flush","_h264_close","_hevc_parser_close","_fft4","_fft8","_fft16","_fft32","_fft64","_fft128","_fft256","_fft512","_fft1024","_fft2048","_fft4096","_fft8192","_fft16384","_fft32768","_fft65536","_fft131072","_logRequest_downloadSucceeded","_logRequest_downloadFailed","_downloadSucceeded","_downloadFailed","_transform_4x4_luma_9","_idct_4x4_dc_9","_idct_8x8_dc_9","_idct_16x16_dc_9","_idct_32x32_dc_9","_transform_4x4_luma_10","_idct_4x4_dc_10","_idct_8x8_dc_10","_idct_16x16_dc_10","_idct_32x32_dc_10","_transform_4x4_luma_12","_idct_4x4_dc_12","_idct_8x8_dc_12","_idct_16x16_dc_12","_idct_32x32_dc_12","_transform_4x4_luma_8","_idct_4x4_dc_8","_idct_8x8_dc_8","_idct_16x16_dc_8","_idct_32x32_dc_8","_main_function","_sbr_sum64x5_c","_sbr_neg_odd_64_c","_sbr_qmf_pre_shuffle_c",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,0,0,0,0,0,0,0,0,0,0,0,0,0],Ji=[0,"jsCall_vii_0","jsCall_vii_1","jsCall_vii_2","jsCall_vii_3","jsCall_vii_4","jsCall_vii_5","jsCall_vii_6","jsCall_vii_7","jsCall_vii_8","jsCall_vii_9","jsCall_vii_10","jsCall_vii_11","jsCall_vii_12","jsCall_vii_13","jsCall_vii_14","jsCall_vii_15","jsCall_vii_16","jsCall_vii_17","jsCall_vii_18","jsCall_vii_19","jsCall_vii_20","jsCall_vii_21","jsCall_vii_22","jsCall_vii_23","jsCall_vii_24","jsCall_vii_25","jsCall_vii_26","jsCall_vii_27","jsCall_vii_28","jsCall_vii_29","jsCall_vii_30","jsCall_vii_31","jsCall_vii_32","jsCall_vii_33","jsCall_vii_34","_io_close_default","_lumRangeFromJpeg_c","_lumRangeToJpeg_c","_lumRangeFromJpeg16_c","_lumRangeToJpeg16_c","_decode_data_free","_dequant_9","_idct_4x4_9","_idct_8x8_9","_idct_16x16_9","_idct_32x32_9","_dequant_10","_idct_4x4_10","_idct_8x8_10","_idct_16x16_10","_idct_32x32_10","_dequant_12","_idct_4x4_12","_idct_8x8_12","_idct_16x16_12","_idct_32x32_12","_dequant_8","_idct_4x4_8","_idct_8x8_8","_idct_16x16_8","_idct_32x32_8","_imdct_and_windowing","_apply_ltp","_update_ltp","_imdct_and_windowing_ld","_imdct_and_windowing_eld","_imdct_and_windowing_960","_ff_h264_chroma_dc_dequant_idct_9_c","_ff_h264_chroma422_dc_dequant_idct_9_c","_ff_h264_chroma_dc_dequant_idct_10_c","_ff_h264_chroma422_dc_dequant_idct_10_c","_ff_h264_chroma_dc_dequant_idct_12_c","_ff_h264_chroma422_dc_dequant_idct_12_c","_ff_h264_chroma_dc_dequant_idct_14_c","_ff_h264_chroma422_dc_dequant_idct_14_c","_ff_h264_chroma_dc_dequant_idct_8_c","_ff_h264_chroma422_dc_dequant_idct_8_c","_hevc_pps_free","_sbr_qmf_post_shuffle_c","_sbr_qmf_deint_neg_c","_sbr_autocorrelate_c","_fft_permute_c","_fft_calc_c","_av_buffer_default_free","_pool_release_buffer","_sha1_transform","_sha256_transform","_pop_arg_long_double",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,0,0,0,0,0,0,0,0,0,0,0,0],$i=[0,"jsCall_viidi_0","jsCall_viidi_1","jsCall_viidi_2","jsCall_viidi_3","jsCall_viidi_4","jsCall_viidi_5","jsCall_viidi_6","jsCall_viidi_7","jsCall_viidi_8","jsCall_viidi_9","jsCall_viidi_10","jsCall_viidi_11","jsCall_viidi_12","jsCall_viidi_13","jsCall_viidi_14","jsCall_viidi_15","jsCall_viidi_16","jsCall_viidi_17","jsCall_viidi_18","jsCall_viidi_19","jsCall_viidi_20","jsCall_viidi_21","jsCall_viidi_22","jsCall_viidi_23","jsCall_viidi_24","jsCall_viidi_25","jsCall_viidi_26","jsCall_viidi_27","jsCall_viidi_28","jsCall_viidi_29","jsCall_viidi_30","jsCall_viidi_31","jsCall_viidi_32","jsCall_viidi_33","jsCall_viidi_34","_vector_dmac_scalar_c","_vector_dmul_scalar_c",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],er=[0,"jsCall_viifi_0","jsCall_viifi_1","jsCall_viifi_2","jsCall_viifi_3","jsCall_viifi_4","jsCall_viifi_5","jsCall_viifi_6","jsCall_viifi_7","jsCall_viifi_8","jsCall_viifi_9","jsCall_viifi_10","jsCall_viifi_11","jsCall_viifi_12","jsCall_viifi_13","jsCall_viifi_14","jsCall_viifi_15","jsCall_viifi_16","jsCall_viifi_17","jsCall_viifi_18","jsCall_viifi_19","jsCall_viifi_20","jsCall_viifi_21","jsCall_viifi_22","jsCall_viifi_23","jsCall_viifi_24","jsCall_viifi_25","jsCall_viifi_26","jsCall_viifi_27","jsCall_viifi_28","jsCall_viifi_29","jsCall_viifi_30","jsCall_viifi_31","jsCall_viifi_32","jsCall_viifi_33","jsCall_viifi_34","_vector_fmac_scalar_c","_vector_fmul_scalar_c",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],tr=[0,"jsCall_viii_0","jsCall_viii_1","jsCall_viii_2","jsCall_viii_3","jsCall_viii_4","jsCall_viii_5","jsCall_viii_6","jsCall_viii_7","jsCall_viii_8","jsCall_viii_9","jsCall_viii_10","jsCall_viii_11","jsCall_viii_12","jsCall_viii_13","jsCall_viii_14","jsCall_viii_15","jsCall_viii_16","jsCall_viii_17","jsCall_viii_18","jsCall_viii_19","jsCall_viii_20","jsCall_viii_21","jsCall_viii_22","jsCall_viii_23","jsCall_viii_24","jsCall_viii_25","jsCall_viii_26","jsCall_viii_27","jsCall_viii_28","jsCall_viii_29","jsCall_viii_30","jsCall_viii_31","jsCall_viii_32","jsCall_viii_33","jsCall_viii_34","_avcHandleFrame","_handleFrame","_sdt_cb","_pat_cb","_pmt_cb","_scte_data_cb","_m4sl_cb","_chrRangeFromJpeg_c","_chrRangeToJpeg_c","_chrRangeFromJpeg16_c","_chrRangeToJpeg16_c","_rgb15to16_c","_rgb15tobgr24_c","_rgb15to32_c","_rgb16tobgr24_c","_rgb16to32_c","_rgb16to15_c","_rgb24tobgr16_c","_rgb24tobgr15_c","_rgb24tobgr32_c","_rgb32to16_c","_rgb32to15_c","_rgb32tobgr24_c","_rgb24to15_c","_rgb24to16_c","_rgb24tobgr24_c","_shuffle_bytes_0321_c","_shuffle_bytes_2103_c","_shuffle_bytes_1230_c","_shuffle_bytes_3012_c","_shuffle_bytes_3210_c","_rgb32tobgr16_c","_rgb32tobgr15_c","_rgb48tobgr48_bswap","_rgb48tobgr64_bswap","_rgb48to64_bswap","_rgb64to48_bswap","_rgb48tobgr48_nobswap","_rgb48tobgr64_nobswap","_rgb48to64_nobswap","_rgb64tobgr48_nobswap","_rgb64tobgr48_bswap","_rgb64to48_nobswap","_rgb12to15","_rgb15to24","_rgb16to24","_rgb32to24","_rgb24to32","_rgb12tobgr12","_rgb15tobgr15","_rgb16tobgr15","_rgb15tobgr16","_rgb16tobgr16","_rgb15tobgr32","_rgb16tobgr32","_add_residual4x4_9","_add_residual8x8_9","_add_residual16x16_9","_add_residual32x32_9","_transform_rdpcm_9","_add_residual4x4_10","_add_residual8x8_10","_add_residual16x16_10","_add_residual32x32_10","_transform_rdpcm_10","_add_residual4x4_12","_add_residual8x8_12","_add_residual16x16_12","_add_residual32x32_12","_transform_rdpcm_12","_add_residual4x4_8","_add_residual8x8_8","_add_residual16x16_8","_add_residual32x32_8","_transform_rdpcm_8","_just_return","_bswap_buf","_bswap16_buf","_ff_h264_add_pixels4_16_c","_ff_h264_add_pixels4_8_c","_ff_h264_add_pixels8_16_c","_ff_h264_add_pixels8_8_c","_ff_h264_idct_add_9_c","_ff_h264_idct8_add_9_c","_ff_h264_idct_dc_add_9_c","_ff_h264_idct8_dc_add_9_c","_ff_h264_luma_dc_dequant_idct_9_c","_ff_h264_idct_add_10_c","_ff_h264_idct8_add_10_c","_ff_h264_idct_dc_add_10_c","_ff_h264_idct8_dc_add_10_c","_ff_h264_luma_dc_dequant_idct_10_c","_ff_h264_idct_add_12_c","_ff_h264_idct8_add_12_c","_ff_h264_idct_dc_add_12_c","_ff_h264_idct8_dc_add_12_c","_ff_h264_luma_dc_dequant_idct_12_c","_ff_h264_idct_add_14_c","_ff_h264_idct8_add_14_c","_ff_h264_idct_dc_add_14_c","_ff_h264_idct8_dc_add_14_c","_ff_h264_luma_dc_dequant_idct_14_c","_ff_h264_idct_add_8_c","_ff_h264_idct8_add_8_c","_ff_h264_idct_dc_add_8_c","_ff_h264_idct8_dc_add_8_c","_ff_h264_luma_dc_dequant_idct_8_c","_sbr_qmf_deint_bfly_c","_ps_add_squares_c","_ff_imdct_calc_c","_ff_imdct_half_c","_ff_mdct_calc_c","_butterflies_float_c",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,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,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,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],ir=[0,"jsCall_viiii_0","jsCall_viiii_1","jsCall_viiii_2","jsCall_viiii_3","jsCall_viiii_4","jsCall_viiii_5","jsCall_viiii_6","jsCall_viiii_7","jsCall_viiii_8","jsCall_viiii_9","jsCall_viiii_10","jsCall_viiii_11","jsCall_viiii_12","jsCall_viiii_13","jsCall_viiii_14","jsCall_viiii_15","jsCall_viiii_16","jsCall_viiii_17","jsCall_viiii_18","jsCall_viiii_19","jsCall_viiii_20","jsCall_viiii_21","jsCall_viiii_22","jsCall_viiii_23","jsCall_viiii_24","jsCall_viiii_25","jsCall_viiii_26","jsCall_viiii_27","jsCall_viiii_28","jsCall_viiii_29","jsCall_viiii_30","jsCall_viiii_31","jsCall_viiii_32","jsCall_viiii_33","jsCall_viiii_34","_planar_rgb9le_to_y","_planar_rgb10le_to_a","_planar_rgb10le_to_y","_planar_rgb12le_to_a","_planar_rgb12le_to_y","_planar_rgb14le_to_y","_planar_rgb16le_to_a","_planar_rgb16le_to_y","_planar_rgb9be_to_y","_planar_rgb10be_to_a","_planar_rgb10be_to_y","_planar_rgb12be_to_a","_planar_rgb12be_to_y","_planar_rgb14be_to_y","_planar_rgb16be_to_a","_planar_rgb16be_to_y","_planar_rgb_to_a","_planar_rgb_to_y","_gray8aToPacked32","_gray8aToPacked32_1","_gray8aToPacked24","_sws_convertPalette8ToPacked32","_sws_convertPalette8ToPacked24","_intra_pred_2_9","_intra_pred_3_9","_intra_pred_4_9","_intra_pred_5_9","_pred_planar_0_9","_pred_planar_1_9","_pred_planar_2_9","_pred_planar_3_9","_intra_pred_2_10","_intra_pred_3_10","_intra_pred_4_10","_intra_pred_5_10","_pred_planar_0_10","_pred_planar_1_10","_pred_planar_2_10","_pred_planar_3_10","_intra_pred_2_12","_intra_pred_3_12","_intra_pred_4_12","_intra_pred_5_12","_pred_planar_0_12","_pred_planar_1_12","_pred_planar_2_12","_pred_planar_3_12","_intra_pred_2_8","_intra_pred_3_8","_intra_pred_4_8","_intra_pred_5_8","_pred_planar_0_8","_pred_planar_1_8","_pred_planar_2_8","_pred_planar_3_8","_apply_tns","_windowing_and_mdct_ltp","_h264_v_loop_filter_luma_intra_9_c","_h264_h_loop_filter_luma_intra_9_c","_h264_h_loop_filter_luma_mbaff_intra_9_c","_h264_v_loop_filter_chroma_intra_9_c","_h264_h_loop_filter_chroma_intra_9_c","_h264_h_loop_filter_chroma422_intra_9_c","_h264_h_loop_filter_chroma_mbaff_intra_9_c","_h264_h_loop_filter_chroma422_mbaff_intra_9_c","_h264_v_loop_filter_luma_intra_10_c","_h264_h_loop_filter_luma_intra_10_c","_h264_h_loop_filter_luma_mbaff_intra_10_c","_h264_v_loop_filter_chroma_intra_10_c","_h264_h_loop_filter_chroma_intra_10_c","_h264_h_loop_filter_chroma422_intra_10_c","_h264_h_loop_filter_chroma_mbaff_intra_10_c","_h264_h_loop_filter_chroma422_mbaff_intra_10_c","_h264_v_loop_filter_luma_intra_12_c","_h264_h_loop_filter_luma_intra_12_c","_h264_h_loop_filter_luma_mbaff_intra_12_c","_h264_v_loop_filter_chroma_intra_12_c","_h264_h_loop_filter_chroma_intra_12_c","_h264_h_loop_filter_chroma422_intra_12_c","_h264_h_loop_filter_chroma_mbaff_intra_12_c","_h264_h_loop_filter_chroma422_mbaff_intra_12_c","_h264_v_loop_filter_luma_intra_14_c","_h264_h_loop_filter_luma_intra_14_c","_h264_h_loop_filter_luma_mbaff_intra_14_c","_h264_v_loop_filter_chroma_intra_14_c","_h264_h_loop_filter_chroma_intra_14_c","_h264_h_loop_filter_chroma422_intra_14_c","_h264_h_loop_filter_chroma_mbaff_intra_14_c","_h264_h_loop_filter_chroma422_mbaff_intra_14_c","_h264_v_loop_filter_luma_intra_8_c","_h264_h_loop_filter_luma_intra_8_c","_h264_h_loop_filter_luma_mbaff_intra_8_c","_h264_v_loop_filter_chroma_intra_8_c","_h264_h_loop_filter_chroma_intra_8_c","_h264_h_loop_filter_chroma422_intra_8_c","_h264_h_loop_filter_chroma_mbaff_intra_8_c","_h264_h_loop_filter_chroma422_mbaff_intra_8_c","_fft15_c","_mdct15","_imdct15_half","_ps_mul_pair_single_c","_ps_hybrid_analysis_ileave_c","_ps_hybrid_synthesis_deint_c","_vector_fmul_c","_vector_dmul_c","_vector_fmul_reverse_c","_av_log_default_callback",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,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,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,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,0,0,0,0,0],rr=[0,"jsCall_viiiid_0","jsCall_viiiid_1","jsCall_viiiid_2","jsCall_viiiid_3","jsCall_viiiid_4","jsCall_viiiid_5","jsCall_viiiid_6","jsCall_viiiid_7","jsCall_viiiid_8","jsCall_viiiid_9","jsCall_viiiid_10","jsCall_viiiid_11","jsCall_viiiid_12","jsCall_viiiid_13","jsCall_viiiid_14","jsCall_viiiid_15","jsCall_viiiid_16","jsCall_viiiid_17","jsCall_viiiid_18","jsCall_viiiid_19","jsCall_viiiid_20","jsCall_viiiid_21","jsCall_viiiid_22","jsCall_viiiid_23","jsCall_viiiid_24","jsCall_viiiid_25","jsCall_viiiid_26","jsCall_viiiid_27","jsCall_viiiid_28","jsCall_viiiid_29","jsCall_viiiid_30","jsCall_viiiid_31","jsCall_viiiid_32","jsCall_viiiid_33","jsCall_viiiid_34",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,0],nr=[0,"jsCall_viiiifii_0","jsCall_viiiifii_1","jsCall_viiiifii_2","jsCall_viiiifii_3","jsCall_viiiifii_4","jsCall_viiiifii_5","jsCall_viiiifii_6","jsCall_viiiifii_7","jsCall_viiiifii_8","jsCall_viiiifii_9","jsCall_viiiifii_10","jsCall_viiiifii_11","jsCall_viiiifii_12","jsCall_viiiifii_13","jsCall_viiiifii_14","jsCall_viiiifii_15","jsCall_viiiifii_16","jsCall_viiiifii_17","jsCall_viiiifii_18","jsCall_viiiifii_19","jsCall_viiiifii_20","jsCall_viiiifii_21","jsCall_viiiifii_22","jsCall_viiiifii_23","jsCall_viiiifii_24","jsCall_viiiifii_25","jsCall_viiiifii_26","jsCall_viiiifii_27","jsCall_viiiifii_28","jsCall_viiiifii_29","jsCall_viiiifii_30","jsCall_viiiifii_31","jsCall_viiiifii_32","jsCall_viiiifii_33","jsCall_viiiifii_34","_sbr_hf_gen_c",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],ar=[0,"jsCall_viiiii_0","jsCall_viiiii_1","jsCall_viiiii_2","jsCall_viiiii_3","jsCall_viiiii_4","jsCall_viiiii_5","jsCall_viiiii_6","jsCall_viiiii_7","jsCall_viiiii_8","jsCall_viiiii_9","jsCall_viiiii_10","jsCall_viiiii_11","jsCall_viiiii_12","jsCall_viiiii_13","jsCall_viiiii_14","jsCall_viiiii_15","jsCall_viiiii_16","jsCall_viiiii_17","jsCall_viiiii_18","jsCall_viiiii_19","jsCall_viiiii_20","jsCall_viiiii_21","jsCall_viiiii_22","jsCall_viiiii_23","jsCall_viiiii_24","jsCall_viiiii_25","jsCall_viiiii_26","jsCall_viiiii_27","jsCall_viiiii_28","jsCall_viiiii_29","jsCall_viiiii_30","jsCall_viiiii_31","jsCall_viiiii_32","jsCall_viiiii_33","jsCall_viiiii_34","_planar_rgb9le_to_uv","_planar_rgb10le_to_uv","_planar_rgb12le_to_uv","_planar_rgb14le_to_uv","_planar_rgb16le_to_uv","_planar_rgb9be_to_uv","_planar_rgb10be_to_uv","_planar_rgb12be_to_uv","_planar_rgb14be_to_uv","_planar_rgb16be_to_uv","_planar_rgb_to_uv","_yuv2p010l1_LE_c","_yuv2p010l1_BE_c","_yuv2plane1_16LE_c","_yuv2plane1_16BE_c","_yuv2plane1_9LE_c","_yuv2plane1_9BE_c","_yuv2plane1_10LE_c","_yuv2plane1_10BE_c","_yuv2plane1_12LE_c","_yuv2plane1_12BE_c","_yuv2plane1_14LE_c","_yuv2plane1_14BE_c","_yuv2plane1_floatBE_c","_yuv2plane1_floatLE_c","_yuv2plane1_8_c","_bayer_bggr8_to_rgb24_copy","_bayer_bggr8_to_rgb24_interpolate","_bayer_bggr16le_to_rgb24_copy","_bayer_bggr16le_to_rgb24_interpolate","_bayer_bggr16be_to_rgb24_copy","_bayer_bggr16be_to_rgb24_interpolate","_bayer_rggb8_to_rgb24_copy","_bayer_rggb8_to_rgb24_interpolate","_bayer_rggb16le_to_rgb24_copy","_bayer_rggb16le_to_rgb24_interpolate","_bayer_rggb16be_to_rgb24_copy","_bayer_rggb16be_to_rgb24_interpolate","_bayer_gbrg8_to_rgb24_copy","_bayer_gbrg8_to_rgb24_interpolate","_bayer_gbrg16le_to_rgb24_copy","_bayer_gbrg16le_to_rgb24_interpolate","_bayer_gbrg16be_to_rgb24_copy","_bayer_gbrg16be_to_rgb24_interpolate","_bayer_grbg8_to_rgb24_copy","_bayer_grbg8_to_rgb24_interpolate","_bayer_grbg16le_to_rgb24_copy","_bayer_grbg16le_to_rgb24_interpolate","_bayer_grbg16be_to_rgb24_copy","_bayer_grbg16be_to_rgb24_interpolate","_hevc_h_loop_filter_chroma_9","_hevc_v_loop_filter_chroma_9","_hevc_h_loop_filter_chroma_10","_hevc_v_loop_filter_chroma_10","_hevc_h_loop_filter_chroma_12","_hevc_v_loop_filter_chroma_12","_hevc_h_loop_filter_chroma_8","_hevc_v_loop_filter_chroma_8","_worker_func","_sbr_hf_assemble","_sbr_hf_inverse_filter","_ff_h264_idct_add16_9_c","_ff_h264_idct8_add4_9_c","_ff_h264_idct_add8_9_c","_ff_h264_idct_add8_422_9_c","_ff_h264_idct_add16intra_9_c","_h264_v_loop_filter_luma_9_c","_h264_h_loop_filter_luma_9_c","_h264_h_loop_filter_luma_mbaff_9_c","_h264_v_loop_filter_chroma_9_c","_h264_h_loop_filter_chroma_9_c","_h264_h_loop_filter_chroma422_9_c","_h264_h_loop_filter_chroma_mbaff_9_c","_h264_h_loop_filter_chroma422_mbaff_9_c","_ff_h264_idct_add16_10_c","_ff_h264_idct8_add4_10_c","_ff_h264_idct_add8_10_c","_ff_h264_idct_add8_422_10_c","_ff_h264_idct_add16intra_10_c","_h264_v_loop_filter_luma_10_c","_h264_h_loop_filter_luma_10_c","_h264_h_loop_filter_luma_mbaff_10_c","_h264_v_loop_filter_chroma_10_c","_h264_h_loop_filter_chroma_10_c","_h264_h_loop_filter_chroma422_10_c","_h264_h_loop_filter_chroma_mbaff_10_c","_h264_h_loop_filter_chroma422_mbaff_10_c","_ff_h264_idct_add16_12_c","_ff_h264_idct8_add4_12_c","_ff_h264_idct_add8_12_c","_ff_h264_idct_add8_422_12_c","_ff_h264_idct_add16intra_12_c","_h264_v_loop_filter_luma_12_c","_h264_h_loop_filter_luma_12_c","_h264_h_loop_filter_luma_mbaff_12_c","_h264_v_loop_filter_chroma_12_c","_h264_h_loop_filter_chroma_12_c","_h264_h_loop_filter_chroma422_12_c","_h264_h_loop_filter_chroma_mbaff_12_c","_h264_h_loop_filter_chroma422_mbaff_12_c","_ff_h264_idct_add16_14_c","_ff_h264_idct8_add4_14_c","_ff_h264_idct_add8_14_c","_ff_h264_idct_add8_422_14_c","_ff_h264_idct_add16intra_14_c","_h264_v_loop_filter_luma_14_c","_h264_h_loop_filter_luma_14_c","_h264_h_loop_filter_luma_mbaff_14_c","_h264_v_loop_filter_chroma_14_c","_h264_h_loop_filter_chroma_14_c","_h264_h_loop_filter_chroma422_14_c","_h264_h_loop_filter_chroma_mbaff_14_c","_h264_h_loop_filter_chroma422_mbaff_14_c","_ff_h264_idct_add16_8_c","_ff_h264_idct8_add4_8_c","_ff_h264_idct_add8_8_c","_ff_h264_idct_add8_422_8_c","_ff_h264_idct_add16intra_8_c","_h264_v_loop_filter_luma_8_c","_h264_h_loop_filter_luma_8_c","_h264_h_loop_filter_luma_mbaff_8_c","_h264_v_loop_filter_chroma_8_c","_h264_h_loop_filter_chroma_8_c","_h264_h_loop_filter_chroma422_8_c","_h264_h_loop_filter_chroma_mbaff_8_c","_h264_h_loop_filter_chroma422_mbaff_8_c","_postrotate_c","_sbr_hf_g_filt_c","_ps_hybrid_analysis_c","_ps_stereo_interpolate_c","_ps_stereo_interpolate_ipdopd_c","_vector_fmul_window_c","_vector_fmul_add_c",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,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,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,0,0,0,0,0,0],sr=[0,"jsCall_viiiiidd_0","jsCall_viiiiidd_1","jsCall_viiiiidd_2","jsCall_viiiiidd_3","jsCall_viiiiidd_4","jsCall_viiiiidd_5","jsCall_viiiiidd_6","jsCall_viiiiidd_7","jsCall_viiiiidd_8","jsCall_viiiiidd_9","jsCall_viiiiidd_10","jsCall_viiiiidd_11","jsCall_viiiiidd_12","jsCall_viiiiidd_13","jsCall_viiiiidd_14","jsCall_viiiiidd_15","jsCall_viiiiidd_16","jsCall_viiiiidd_17","jsCall_viiiiidd_18","jsCall_viiiiidd_19","jsCall_viiiiidd_20","jsCall_viiiiidd_21","jsCall_viiiiidd_22","jsCall_viiiiidd_23","jsCall_viiiiidd_24","jsCall_viiiiidd_25","jsCall_viiiiidd_26","jsCall_viiiiidd_27","jsCall_viiiiidd_28","jsCall_viiiiidd_29","jsCall_viiiiidd_30","jsCall_viiiiidd_31","jsCall_viiiiidd_32","jsCall_viiiiidd_33","jsCall_viiiiidd_34",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,0],or=[0,"jsCall_viiiiii_0","jsCall_viiiiii_1","jsCall_viiiiii_2","jsCall_viiiiii_3","jsCall_viiiiii_4","jsCall_viiiiii_5","jsCall_viiiiii_6","jsCall_viiiiii_7","jsCall_viiiiii_8","jsCall_viiiiii_9","jsCall_viiiiii_10","jsCall_viiiiii_11","jsCall_viiiiii_12","jsCall_viiiiii_13","jsCall_viiiiii_14","jsCall_viiiiii_15","jsCall_viiiiii_16","jsCall_viiiiii_17","jsCall_viiiiii_18","jsCall_viiiiii_19","jsCall_viiiiii_20","jsCall_viiiiii_21","jsCall_viiiiii_22","jsCall_viiiiii_23","jsCall_viiiiii_24","jsCall_viiiiii_25","jsCall_viiiiii_26","jsCall_viiiiii_27","jsCall_viiiiii_28","jsCall_viiiiii_29","jsCall_viiiiii_30","jsCall_viiiiii_31","jsCall_viiiiii_32","jsCall_viiiiii_33","jsCall_viiiiii_34","_read_geobtag","_read_apic","_read_chapter","_read_priv","_ff_hyscale_fast_c","_bswap16Y_c","_read_ya16le_gray_c","_read_ya16be_gray_c","_read_ayuv64le_Y_c","_yuy2ToY_c","_uyvyToY_c","_bgr24ToY_c","_bgr16leToY_c","_bgr16beToY_c","_bgr15leToY_c","_bgr15beToY_c","_bgr12leToY_c","_bgr12beToY_c","_rgb24ToY_c","_rgb16leToY_c","_rgb16beToY_c","_rgb15leToY_c","_rgb15beToY_c","_rgb12leToY_c","_rgb12beToY_c","_palToY_c","_monoblack2Y_c","_monowhite2Y_c","_bgr32ToY_c","_bgr321ToY_c","_rgb32ToY_c","_rgb321ToY_c","_rgb48BEToY_c","_rgb48LEToY_c","_bgr48BEToY_c","_bgr48LEToY_c","_rgb64BEToY_c","_rgb64LEToY_c","_bgr64BEToY_c","_bgr64LEToY_c","_p010LEToY_c","_p010BEToY_c","_grayf32ToY16_c","_grayf32ToY16_bswap_c","_rgba64leToA_c","_rgba64beToA_c","_rgbaToA_c","_abgrToA_c","_read_ya16le_alpha_c","_read_ya16be_alpha_c","_read_ayuv64le_A_c","_palToA_c","_put_pcm_9","_hevc_h_loop_filter_luma_9","_hevc_v_loop_filter_luma_9","_put_pcm_10","_hevc_h_loop_filter_luma_10","_hevc_v_loop_filter_luma_10","_put_pcm_12","_hevc_h_loop_filter_luma_12","_hevc_v_loop_filter_luma_12","_put_pcm_8","_hevc_h_loop_filter_luma_8","_hevc_v_loop_filter_luma_8","_pred_dc_9","_pred_angular_0_9","_pred_angular_1_9","_pred_angular_2_9","_pred_angular_3_9","_pred_dc_10","_pred_angular_0_10","_pred_angular_1_10","_pred_angular_2_10","_pred_angular_3_10","_pred_dc_12","_pred_angular_0_12","_pred_angular_1_12","_pred_angular_2_12","_pred_angular_3_12","_pred_dc_8","_pred_angular_0_8","_pred_angular_1_8","_pred_angular_2_8","_pred_angular_3_8","_weight_h264_pixels16_9_c","_weight_h264_pixels8_9_c","_weight_h264_pixels4_9_c","_weight_h264_pixels2_9_c","_weight_h264_pixels16_10_c","_weight_h264_pixels8_10_c","_weight_h264_pixels4_10_c","_weight_h264_pixels2_10_c","_weight_h264_pixels16_12_c","_weight_h264_pixels8_12_c","_weight_h264_pixels4_12_c","_weight_h264_pixels2_12_c","_weight_h264_pixels16_14_c","_weight_h264_pixels8_14_c","_weight_h264_pixels4_14_c","_weight_h264_pixels2_14_c","_weight_h264_pixels16_8_c","_weight_h264_pixels8_8_c","_weight_h264_pixels4_8_c","_weight_h264_pixels2_8_c","_sbr_hf_apply_noise_0","_sbr_hf_apply_noise_1","_sbr_hf_apply_noise_2","_sbr_hf_apply_noise_3","_aes_decrypt","_aes_encrypt","_image_copy_plane",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,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,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,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,0],lr=[0,"jsCall_viiiiiifi_0","jsCall_viiiiiifi_1","jsCall_viiiiiifi_2","jsCall_viiiiiifi_3","jsCall_viiiiiifi_4","jsCall_viiiiiifi_5","jsCall_viiiiiifi_6","jsCall_viiiiiifi_7","jsCall_viiiiiifi_8","jsCall_viiiiiifi_9","jsCall_viiiiiifi_10","jsCall_viiiiiifi_11","jsCall_viiiiiifi_12","jsCall_viiiiiifi_13","jsCall_viiiiiifi_14","jsCall_viiiiiifi_15","jsCall_viiiiiifi_16","jsCall_viiiiiifi_17","jsCall_viiiiiifi_18","jsCall_viiiiiifi_19","jsCall_viiiiiifi_20","jsCall_viiiiiifi_21","jsCall_viiiiiifi_22","jsCall_viiiiiifi_23","jsCall_viiiiiifi_24","jsCall_viiiiiifi_25","jsCall_viiiiiifi_26","jsCall_viiiiiifi_27","jsCall_viiiiiifi_28","jsCall_viiiiiifi_29","jsCall_viiiiiifi_30","jsCall_viiiiiifi_31","jsCall_viiiiiifi_32","jsCall_viiiiiifi_33","jsCall_viiiiiifi_34","_ps_decorrelate_c",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],fr=[0,"jsCall_viiiiiii_0","jsCall_viiiiiii_1","jsCall_viiiiiii_2","jsCall_viiiiiii_3","jsCall_viiiiiii_4","jsCall_viiiiiii_5","jsCall_viiiiiii_6","jsCall_viiiiiii_7","jsCall_viiiiiii_8","jsCall_viiiiiii_9","jsCall_viiiiiii_10","jsCall_viiiiiii_11","jsCall_viiiiiii_12","jsCall_viiiiiii_13","jsCall_viiiiiii_14","jsCall_viiiiiii_15","jsCall_viiiiiii_16","jsCall_viiiiiii_17","jsCall_viiiiiii_18","jsCall_viiiiiii_19","jsCall_viiiiiii_20","jsCall_viiiiiii_21","jsCall_viiiiiii_22","jsCall_viiiiiii_23","jsCall_viiiiiii_24","jsCall_viiiiiii_25","jsCall_viiiiiii_26","jsCall_viiiiiii_27","jsCall_viiiiiii_28","jsCall_viiiiiii_29","jsCall_viiiiiii_30","jsCall_viiiiiii_31","jsCall_viiiiiii_32","jsCall_viiiiiii_33","jsCall_viiiiiii_34","_hScale8To15_c","_hScale8To19_c","_hScale16To19_c","_hScale16To15_c","_yuy2ToUV_c","_yvy2ToUV_c","_uyvyToUV_c","_nv12ToUV_c","_nv21ToUV_c","_palToUV_c","_bswap16UV_c","_read_ayuv64le_UV_c","_p010LEToUV_c","_p010BEToUV_c","_p016LEToUV_c","_p016BEToUV_c","_gbr24pToUV_half_c","_rgb64BEToUV_half_c","_rgb64LEToUV_half_c","_bgr64BEToUV_half_c","_bgr64LEToUV_half_c","_rgb48BEToUV_half_c","_rgb48LEToUV_half_c","_bgr48BEToUV_half_c","_bgr48LEToUV_half_c","_bgr32ToUV_half_c","_bgr321ToUV_half_c","_bgr24ToUV_half_c","_bgr16leToUV_half_c","_bgr16beToUV_half_c","_bgr15leToUV_half_c","_bgr15beToUV_half_c","_bgr12leToUV_half_c","_bgr12beToUV_half_c","_rgb32ToUV_half_c","_rgb321ToUV_half_c","_rgb24ToUV_half_c","_rgb16leToUV_half_c","_rgb16beToUV_half_c","_rgb15leToUV_half_c","_rgb15beToUV_half_c","_rgb12leToUV_half_c","_rgb12beToUV_half_c","_rgb64BEToUV_c","_rgb64LEToUV_c","_bgr64BEToUV_c","_bgr64LEToUV_c","_rgb48BEToUV_c","_rgb48LEToUV_c","_bgr48BEToUV_c","_bgr48LEToUV_c","_bgr32ToUV_c","_bgr321ToUV_c","_bgr24ToUV_c","_bgr16leToUV_c","_bgr16beToUV_c","_bgr15leToUV_c","_bgr15beToUV_c","_bgr12leToUV_c","_bgr12beToUV_c","_rgb32ToUV_c","_rgb321ToUV_c","_rgb24ToUV_c","_rgb16leToUV_c","_rgb16beToUV_c","_rgb15leToUV_c","_rgb15beToUV_c","_rgb12leToUV_c","_rgb12beToUV_c","_yuv2p010lX_LE_c","_yuv2p010lX_BE_c","_yuv2p010cX_c","_yuv2planeX_16LE_c","_yuv2planeX_16BE_c","_yuv2p016cX_c","_yuv2planeX_9LE_c","_yuv2planeX_9BE_c","_yuv2planeX_10LE_c","_yuv2planeX_10BE_c","_yuv2planeX_12LE_c","_yuv2planeX_12BE_c","_yuv2planeX_14LE_c","_yuv2planeX_14BE_c","_yuv2planeX_floatBE_c","_yuv2planeX_floatLE_c","_yuv2planeX_8_c","_yuv2nv12cX_c","_sao_edge_filter_9","_put_hevc_pel_pixels_9","_put_hevc_qpel_h_9","_put_hevc_qpel_v_9","_put_hevc_qpel_hv_9","_put_hevc_epel_h_9","_put_hevc_epel_v_9","_put_hevc_epel_hv_9","_sao_edge_filter_10","_put_hevc_pel_pixels_10","_put_hevc_qpel_h_10","_put_hevc_qpel_v_10","_put_hevc_qpel_hv_10","_put_hevc_epel_h_10","_put_hevc_epel_v_10","_put_hevc_epel_hv_10","_sao_edge_filter_12","_put_hevc_pel_pixels_12","_put_hevc_qpel_h_12","_put_hevc_qpel_v_12","_put_hevc_qpel_hv_12","_put_hevc_epel_h_12","_put_hevc_epel_v_12","_put_hevc_epel_hv_12","_sao_edge_filter_8","_put_hevc_pel_pixels_8","_put_hevc_qpel_h_8","_put_hevc_qpel_v_8","_put_hevc_qpel_hv_8","_put_hevc_epel_h_8","_put_hevc_epel_v_8","_put_hevc_epel_hv_8",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,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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],ur=[0,"jsCall_viiiiiiii_0","jsCall_viiiiiiii_1","jsCall_viiiiiiii_2","jsCall_viiiiiiii_3","jsCall_viiiiiiii_4","jsCall_viiiiiiii_5","jsCall_viiiiiiii_6","jsCall_viiiiiiii_7","jsCall_viiiiiiii_8","jsCall_viiiiiiii_9","jsCall_viiiiiiii_10","jsCall_viiiiiiii_11","jsCall_viiiiiiii_12","jsCall_viiiiiiii_13","jsCall_viiiiiiii_14","jsCall_viiiiiiii_15","jsCall_viiiiiiii_16","jsCall_viiiiiiii_17","jsCall_viiiiiiii_18","jsCall_viiiiiiii_19","jsCall_viiiiiiii_20","jsCall_viiiiiiii_21","jsCall_viiiiiiii_22","jsCall_viiiiiiii_23","jsCall_viiiiiiii_24","jsCall_viiiiiiii_25","jsCall_viiiiiiii_26","jsCall_viiiiiiii_27","jsCall_viiiiiiii_28","jsCall_viiiiiiii_29","jsCall_viiiiiiii_30","jsCall_viiiiiiii_31","jsCall_viiiiiiii_32","jsCall_viiiiiiii_33","jsCall_viiiiiiii_34","_ff_hcscale_fast_c","_bayer_bggr8_to_yv12_copy","_bayer_bggr8_to_yv12_interpolate","_bayer_bggr16le_to_yv12_copy","_bayer_bggr16le_to_yv12_interpolate","_bayer_bggr16be_to_yv12_copy","_bayer_bggr16be_to_yv12_interpolate","_bayer_rggb8_to_yv12_copy","_bayer_rggb8_to_yv12_interpolate","_bayer_rggb16le_to_yv12_copy","_bayer_rggb16le_to_yv12_interpolate","_bayer_rggb16be_to_yv12_copy","_bayer_rggb16be_to_yv12_interpolate","_bayer_gbrg8_to_yv12_copy","_bayer_gbrg8_to_yv12_interpolate","_bayer_gbrg16le_to_yv12_copy","_bayer_gbrg16le_to_yv12_interpolate","_bayer_gbrg16be_to_yv12_copy","_bayer_gbrg16be_to_yv12_interpolate","_bayer_grbg8_to_yv12_copy","_bayer_grbg8_to_yv12_interpolate","_bayer_grbg16le_to_yv12_copy","_bayer_grbg16le_to_yv12_interpolate","_bayer_grbg16be_to_yv12_copy","_bayer_grbg16be_to_yv12_interpolate","_sao_band_filter_9","_put_hevc_pel_uni_pixels_9","_put_hevc_qpel_uni_h_9","_put_hevc_qpel_uni_v_9","_put_hevc_qpel_uni_hv_9","_put_hevc_epel_uni_h_9","_put_hevc_epel_uni_v_9","_put_hevc_epel_uni_hv_9","_sao_band_filter_10","_put_hevc_pel_uni_pixels_10","_put_hevc_qpel_uni_h_10","_put_hevc_qpel_uni_v_10","_put_hevc_qpel_uni_hv_10","_put_hevc_epel_uni_h_10","_put_hevc_epel_uni_v_10","_put_hevc_epel_uni_hv_10","_sao_band_filter_12","_put_hevc_pel_uni_pixels_12","_put_hevc_qpel_uni_h_12","_put_hevc_qpel_uni_v_12","_put_hevc_qpel_uni_hv_12","_put_hevc_epel_uni_h_12","_put_hevc_epel_uni_v_12","_put_hevc_epel_uni_hv_12","_sao_band_filter_8","_put_hevc_pel_uni_pixels_8","_put_hevc_qpel_uni_h_8","_put_hevc_qpel_uni_v_8","_put_hevc_qpel_uni_hv_8","_put_hevc_epel_uni_h_8","_put_hevc_epel_uni_v_8","_put_hevc_epel_uni_hv_8","_biweight_h264_pixels16_9_c","_biweight_h264_pixels8_9_c","_biweight_h264_pixels4_9_c","_biweight_h264_pixels2_9_c","_biweight_h264_pixels16_10_c","_biweight_h264_pixels8_10_c","_biweight_h264_pixels4_10_c","_biweight_h264_pixels2_10_c","_biweight_h264_pixels16_12_c","_biweight_h264_pixels8_12_c","_biweight_h264_pixels4_12_c","_biweight_h264_pixels2_12_c","_biweight_h264_pixels16_14_c","_biweight_h264_pixels8_14_c","_biweight_h264_pixels4_14_c","_biweight_h264_pixels2_14_c","_biweight_h264_pixels16_8_c","_biweight_h264_pixels8_8_c","_biweight_h264_pixels4_8_c","_biweight_h264_pixels2_8_c",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],cr=[0,"jsCall_viiiiiiiid_0","jsCall_viiiiiiiid_1","jsCall_viiiiiiiid_2","jsCall_viiiiiiiid_3","jsCall_viiiiiiiid_4","jsCall_viiiiiiiid_5","jsCall_viiiiiiiid_6","jsCall_viiiiiiiid_7","jsCall_viiiiiiiid_8","jsCall_viiiiiiiid_9","jsCall_viiiiiiiid_10","jsCall_viiiiiiiid_11","jsCall_viiiiiiiid_12","jsCall_viiiiiiiid_13","jsCall_viiiiiiiid_14","jsCall_viiiiiiiid_15","jsCall_viiiiiiiid_16","jsCall_viiiiiiiid_17","jsCall_viiiiiiiid_18","jsCall_viiiiiiiid_19","jsCall_viiiiiiiid_20","jsCall_viiiiiiiid_21","jsCall_viiiiiiiid_22","jsCall_viiiiiiiid_23","jsCall_viiiiiiiid_24","jsCall_viiiiiiiid_25","jsCall_viiiiiiiid_26","jsCall_viiiiiiiid_27","jsCall_viiiiiiiid_28","jsCall_viiiiiiiid_29","jsCall_viiiiiiiid_30","jsCall_viiiiiiiid_31","jsCall_viiiiiiiid_32","jsCall_viiiiiiiid_33","jsCall_viiiiiiiid_34",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,0],hr=[0,"jsCall_viiiiiiiidi_0","jsCall_viiiiiiiidi_1","jsCall_viiiiiiiidi_2","jsCall_viiiiiiiidi_3","jsCall_viiiiiiiidi_4","jsCall_viiiiiiiidi_5","jsCall_viiiiiiiidi_6","jsCall_viiiiiiiidi_7","jsCall_viiiiiiiidi_8","jsCall_viiiiiiiidi_9","jsCall_viiiiiiiidi_10","jsCall_viiiiiiiidi_11","jsCall_viiiiiiiidi_12","jsCall_viiiiiiiidi_13","jsCall_viiiiiiiidi_14","jsCall_viiiiiiiidi_15","jsCall_viiiiiiiidi_16","jsCall_viiiiiiiidi_17","jsCall_viiiiiiiidi_18","jsCall_viiiiiiiidi_19","jsCall_viiiiiiiidi_20","jsCall_viiiiiiiidi_21","jsCall_viiiiiiiidi_22","jsCall_viiiiiiiidi_23","jsCall_viiiiiiiidi_24","jsCall_viiiiiiiidi_25","jsCall_viiiiiiiidi_26","jsCall_viiiiiiiidi_27","jsCall_viiiiiiiidi_28","jsCall_viiiiiiiidi_29","jsCall_viiiiiiiidi_30","jsCall_viiiiiiiidi_31","jsCall_viiiiiiiidi_32","jsCall_viiiiiiiidi_33","jsCall_viiiiiiiidi_34",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,0],dr=[0,"jsCall_viiiiiiiii_0","jsCall_viiiiiiiii_1","jsCall_viiiiiiiii_2","jsCall_viiiiiiiii_3","jsCall_viiiiiiiii_4","jsCall_viiiiiiiii_5","jsCall_viiiiiiiii_6","jsCall_viiiiiiiii_7","jsCall_viiiiiiiii_8","jsCall_viiiiiiiii_9","jsCall_viiiiiiiii_10","jsCall_viiiiiiiii_11","jsCall_viiiiiiiii_12","jsCall_viiiiiiiii_13","jsCall_viiiiiiiii_14","jsCall_viiiiiiiii_15","jsCall_viiiiiiiii_16","jsCall_viiiiiiiii_17","jsCall_viiiiiiiii_18","jsCall_viiiiiiiii_19","jsCall_viiiiiiiii_20","jsCall_viiiiiiiii_21","jsCall_viiiiiiiii_22","jsCall_viiiiiiiii_23","jsCall_viiiiiiiii_24","jsCall_viiiiiiiii_25","jsCall_viiiiiiiii_26","jsCall_viiiiiiiii_27","jsCall_viiiiiiiii_28","jsCall_viiiiiiiii_29","jsCall_viiiiiiiii_30","jsCall_viiiiiiiii_31","jsCall_viiiiiiiii_32","jsCall_viiiiiiiii_33","jsCall_viiiiiiiii_34","_yuv2rgba32_full_1_c","_yuv2rgbx32_full_1_c","_yuv2argb32_full_1_c","_yuv2xrgb32_full_1_c","_yuv2bgra32_full_1_c","_yuv2bgrx32_full_1_c","_yuv2abgr32_full_1_c","_yuv2xbgr32_full_1_c","_yuv2rgba64le_full_1_c","_yuv2rgbx64le_full_1_c","_yuv2rgba64be_full_1_c","_yuv2rgbx64be_full_1_c","_yuv2bgra64le_full_1_c","_yuv2bgrx64le_full_1_c","_yuv2bgra64be_full_1_c","_yuv2bgrx64be_full_1_c","_yuv2rgb24_full_1_c","_yuv2bgr24_full_1_c","_yuv2rgb48le_full_1_c","_yuv2bgr48le_full_1_c","_yuv2rgb48be_full_1_c","_yuv2bgr48be_full_1_c","_yuv2bgr4_byte_full_1_c","_yuv2rgb4_byte_full_1_c","_yuv2bgr8_full_1_c","_yuv2rgb8_full_1_c","_yuv2rgbx64le_1_c","_yuv2rgba64le_1_c","_yuv2rgbx64be_1_c","_yuv2rgba64be_1_c","_yuv2bgrx64le_1_c","_yuv2bgra64le_1_c","_yuv2bgrx64be_1_c","_yuv2bgra64be_1_c","_yuv2rgba32_1_c","_yuv2rgbx32_1_c","_yuv2rgba32_1_1_c","_yuv2rgbx32_1_1_c","_yuv2rgb16_1_c","_yuv2rgb15_1_c","_yuv2rgb12_1_c","_yuv2rgb8_1_c","_yuv2rgb4_1_c","_yuv2rgb4b_1_c","_yuv2rgb48le_1_c","_yuv2rgb48be_1_c","_yuv2bgr48le_1_c","_yuv2bgr48be_1_c","_yuv2rgb24_1_c","_yuv2bgr24_1_c","_yuv2monowhite_1_c","_yuv2monoblack_1_c","_yuv2yuyv422_1_c","_yuv2yvyu422_1_c","_yuv2uyvy422_1_c","_yuv2ya8_1_c","_yuv2ya16le_1_c","_yuv2ya16be_1_c","_yuy2toyv12_c","_put_hevc_pel_bi_pixels_9","_put_hevc_qpel_bi_h_9","_put_hevc_qpel_bi_v_9","_put_hevc_qpel_bi_hv_9","_put_hevc_epel_bi_h_9","_put_hevc_epel_bi_v_9","_put_hevc_epel_bi_hv_9","_put_hevc_pel_bi_pixels_10","_put_hevc_qpel_bi_h_10","_put_hevc_qpel_bi_v_10","_put_hevc_qpel_bi_hv_10","_put_hevc_epel_bi_h_10","_put_hevc_epel_bi_v_10","_put_hevc_epel_bi_hv_10","_put_hevc_pel_bi_pixels_12","_put_hevc_qpel_bi_h_12","_put_hevc_qpel_bi_v_12","_put_hevc_qpel_bi_hv_12","_put_hevc_epel_bi_h_12","_put_hevc_epel_bi_v_12","_put_hevc_epel_bi_hv_12","_put_hevc_pel_bi_pixels_8","_put_hevc_qpel_bi_h_8","_put_hevc_qpel_bi_v_8","_put_hevc_qpel_bi_hv_8","_put_hevc_epel_bi_h_8","_put_hevc_epel_bi_v_8","_put_hevc_epel_bi_hv_8",0,0,0,0,0],_r=[0,"jsCall_viiiiiiiiii_0","jsCall_viiiiiiiiii_1","jsCall_viiiiiiiiii_2","jsCall_viiiiiiiiii_3","jsCall_viiiiiiiiii_4","jsCall_viiiiiiiiii_5","jsCall_viiiiiiiiii_6","jsCall_viiiiiiiiii_7","jsCall_viiiiiiiiii_8","jsCall_viiiiiiiiii_9","jsCall_viiiiiiiiii_10","jsCall_viiiiiiiiii_11","jsCall_viiiiiiiiii_12","jsCall_viiiiiiiiii_13","jsCall_viiiiiiiiii_14","jsCall_viiiiiiiiii_15","jsCall_viiiiiiiiii_16","jsCall_viiiiiiiiii_17","jsCall_viiiiiiiiii_18","jsCall_viiiiiiiiii_19","jsCall_viiiiiiiiii_20","jsCall_viiiiiiiiii_21","jsCall_viiiiiiiiii_22","jsCall_viiiiiiiiii_23","jsCall_viiiiiiiiii_24","jsCall_viiiiiiiiii_25","jsCall_viiiiiiiiii_26","jsCall_viiiiiiiiii_27","jsCall_viiiiiiiiii_28","jsCall_viiiiiiiiii_29","jsCall_viiiiiiiiii_30","jsCall_viiiiiiiiii_31","jsCall_viiiiiiiiii_32","jsCall_viiiiiiiiii_33","jsCall_viiiiiiiiii_34","_yuv2rgba32_full_2_c","_yuv2rgbx32_full_2_c","_yuv2argb32_full_2_c","_yuv2xrgb32_full_2_c","_yuv2bgra32_full_2_c","_yuv2bgrx32_full_2_c","_yuv2abgr32_full_2_c","_yuv2xbgr32_full_2_c","_yuv2rgba64le_full_2_c","_yuv2rgbx64le_full_2_c","_yuv2rgba64be_full_2_c","_yuv2rgbx64be_full_2_c","_yuv2bgra64le_full_2_c","_yuv2bgrx64le_full_2_c","_yuv2bgra64be_full_2_c","_yuv2bgrx64be_full_2_c","_yuv2rgb24_full_2_c","_yuv2bgr24_full_2_c","_yuv2rgb48le_full_2_c","_yuv2bgr48le_full_2_c","_yuv2rgb48be_full_2_c","_yuv2bgr48be_full_2_c","_yuv2bgr4_byte_full_2_c","_yuv2rgb4_byte_full_2_c","_yuv2bgr8_full_2_c","_yuv2rgb8_full_2_c","_yuv2rgbx64le_2_c","_yuv2rgba64le_2_c","_yuv2rgbx64be_2_c","_yuv2rgba64be_2_c","_yuv2bgrx64le_2_c","_yuv2bgra64le_2_c","_yuv2bgrx64be_2_c","_yuv2bgra64be_2_c","_yuv2rgba32_2_c","_yuv2rgbx32_2_c","_yuv2rgba32_1_2_c","_yuv2rgbx32_1_2_c","_yuv2rgb16_2_c","_yuv2rgb15_2_c","_yuv2rgb12_2_c","_yuv2rgb8_2_c","_yuv2rgb4_2_c","_yuv2rgb4b_2_c","_yuv2rgb48le_2_c","_yuv2rgb48be_2_c","_yuv2bgr48le_2_c","_yuv2bgr48be_2_c","_yuv2rgb24_2_c","_yuv2bgr24_2_c","_yuv2monowhite_2_c","_yuv2monoblack_2_c","_yuv2yuyv422_2_c","_yuv2yvyu422_2_c","_yuv2uyvy422_2_c","_yuv2ya8_2_c","_yuv2ya16le_2_c","_yuv2ya16be_2_c","_vu9_to_vu12_c","_yvu9_to_yuy2_c","_ff_emulated_edge_mc_8","_ff_emulated_edge_mc_16",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,0,0,0],pr=[0,"jsCall_viiiiiiiiiii_0","jsCall_viiiiiiiiiii_1","jsCall_viiiiiiiiiii_2","jsCall_viiiiiiiiiii_3","jsCall_viiiiiiiiiii_4","jsCall_viiiiiiiiiii_5","jsCall_viiiiiiiiiii_6","jsCall_viiiiiiiiiii_7","jsCall_viiiiiiiiiii_8","jsCall_viiiiiiiiiii_9","jsCall_viiiiiiiiiii_10","jsCall_viiiiiiiiiii_11","jsCall_viiiiiiiiiii_12","jsCall_viiiiiiiiiii_13","jsCall_viiiiiiiiiii_14","jsCall_viiiiiiiiiii_15","jsCall_viiiiiiiiiii_16","jsCall_viiiiiiiiiii_17","jsCall_viiiiiiiiiii_18","jsCall_viiiiiiiiiii_19","jsCall_viiiiiiiiiii_20","jsCall_viiiiiiiiiii_21","jsCall_viiiiiiiiiii_22","jsCall_viiiiiiiiiii_23","jsCall_viiiiiiiiiii_24","jsCall_viiiiiiiiiii_25","jsCall_viiiiiiiiiii_26","jsCall_viiiiiiiiiii_27","jsCall_viiiiiiiiiii_28","jsCall_viiiiiiiiiii_29","jsCall_viiiiiiiiiii_30","jsCall_viiiiiiiiiii_31","jsCall_viiiiiiiiiii_32","jsCall_viiiiiiiiiii_33","jsCall_viiiiiiiiiii_34","_put_hevc_pel_uni_w_pixels_9","_put_hevc_qpel_uni_w_h_9","_put_hevc_qpel_uni_w_v_9","_put_hevc_qpel_uni_w_hv_9","_put_hevc_epel_uni_w_h_9","_put_hevc_epel_uni_w_v_9","_put_hevc_epel_uni_w_hv_9","_put_hevc_pel_uni_w_pixels_10","_put_hevc_qpel_uni_w_h_10","_put_hevc_qpel_uni_w_v_10","_put_hevc_qpel_uni_w_hv_10","_put_hevc_epel_uni_w_h_10","_put_hevc_epel_uni_w_v_10","_put_hevc_epel_uni_w_hv_10","_put_hevc_pel_uni_w_pixels_12","_put_hevc_qpel_uni_w_h_12","_put_hevc_qpel_uni_w_v_12","_put_hevc_qpel_uni_w_hv_12","_put_hevc_epel_uni_w_h_12","_put_hevc_epel_uni_w_v_12","_put_hevc_epel_uni_w_hv_12","_put_hevc_pel_uni_w_pixels_8","_put_hevc_qpel_uni_w_h_8","_put_hevc_qpel_uni_w_v_8","_put_hevc_qpel_uni_w_hv_8","_put_hevc_epel_uni_w_h_8","_put_hevc_epel_uni_w_v_8","_put_hevc_epel_uni_w_hv_8"],mr=[0,"jsCall_viiiiiiiiiiii_0","jsCall_viiiiiiiiiiii_1","jsCall_viiiiiiiiiiii_2","jsCall_viiiiiiiiiiii_3","jsCall_viiiiiiiiiiii_4","jsCall_viiiiiiiiiiii_5","jsCall_viiiiiiiiiiii_6","jsCall_viiiiiiiiiiii_7","jsCall_viiiiiiiiiiii_8","jsCall_viiiiiiiiiiii_9","jsCall_viiiiiiiiiiii_10","jsCall_viiiiiiiiiiii_11","jsCall_viiiiiiiiiiii_12","jsCall_viiiiiiiiiiii_13","jsCall_viiiiiiiiiiii_14","jsCall_viiiiiiiiiiii_15","jsCall_viiiiiiiiiiii_16","jsCall_viiiiiiiiiiii_17","jsCall_viiiiiiiiiiii_18","jsCall_viiiiiiiiiiii_19","jsCall_viiiiiiiiiiii_20","jsCall_viiiiiiiiiiii_21","jsCall_viiiiiiiiiiii_22","jsCall_viiiiiiiiiiii_23","jsCall_viiiiiiiiiiii_24","jsCall_viiiiiiiiiiii_25","jsCall_viiiiiiiiiiii_26","jsCall_viiiiiiiiiiii_27","jsCall_viiiiiiiiiiii_28","jsCall_viiiiiiiiiiii_29","jsCall_viiiiiiiiiiii_30","jsCall_viiiiiiiiiiii_31","jsCall_viiiiiiiiiiii_32","jsCall_viiiiiiiiiiii_33","jsCall_viiiiiiiiiiii_34","_yuv2rgba32_full_X_c","_yuv2rgbx32_full_X_c","_yuv2argb32_full_X_c","_yuv2xrgb32_full_X_c","_yuv2bgra32_full_X_c","_yuv2bgrx32_full_X_c","_yuv2abgr32_full_X_c","_yuv2xbgr32_full_X_c","_yuv2rgba64le_full_X_c","_yuv2rgbx64le_full_X_c","_yuv2rgba64be_full_X_c","_yuv2rgbx64be_full_X_c","_yuv2bgra64le_full_X_c","_yuv2bgrx64le_full_X_c","_yuv2bgra64be_full_X_c","_yuv2bgrx64be_full_X_c","_yuv2rgb24_full_X_c","_yuv2bgr24_full_X_c","_yuv2rgb48le_full_X_c","_yuv2bgr48le_full_X_c","_yuv2rgb48be_full_X_c","_yuv2bgr48be_full_X_c","_yuv2bgr4_byte_full_X_c","_yuv2rgb4_byte_full_X_c","_yuv2bgr8_full_X_c","_yuv2rgb8_full_X_c","_yuv2gbrp_full_X_c","_yuv2gbrp16_full_X_c","_yuv2rgbx64le_X_c","_yuv2rgba64le_X_c","_yuv2rgbx64be_X_c","_yuv2rgba64be_X_c","_yuv2bgrx64le_X_c","_yuv2bgra64le_X_c","_yuv2bgrx64be_X_c","_yuv2bgra64be_X_c","_yuv2rgba32_X_c","_yuv2rgbx32_X_c","_yuv2rgba32_1_X_c","_yuv2rgbx32_1_X_c","_yuv2rgb16_X_c","_yuv2rgb15_X_c","_yuv2rgb12_X_c","_yuv2rgb8_X_c","_yuv2rgb4_X_c","_yuv2rgb4b_X_c","_yuv2rgb48le_X_c","_yuv2rgb48be_X_c","_yuv2bgr48le_X_c","_yuv2bgr48be_X_c","_yuv2rgb24_X_c","_yuv2bgr24_X_c","_yuv2monowhite_X_c","_yuv2ayuv64le_X_c","_yuv2monoblack_X_c","_yuv2yuyv422_X_c","_yuv2yvyu422_X_c","_yuv2uyvy422_X_c","_yuv2ya8_X_c","_yuv2ya16le_X_c","_yuv2ya16be_X_c","_sao_edge_restore_0_9","_sao_edge_restore_1_9","_sao_edge_restore_0_10","_sao_edge_restore_1_10","_sao_edge_restore_0_12","_sao_edge_restore_1_12","_sao_edge_restore_0_8","_sao_edge_restore_1_8",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],br=[0,"jsCall_viiiiiiiiiiiiii_0","jsCall_viiiiiiiiiiiiii_1","jsCall_viiiiiiiiiiiiii_2","jsCall_viiiiiiiiiiiiii_3","jsCall_viiiiiiiiiiiiii_4","jsCall_viiiiiiiiiiiiii_5","jsCall_viiiiiiiiiiiiii_6","jsCall_viiiiiiiiiiiiii_7","jsCall_viiiiiiiiiiiiii_8","jsCall_viiiiiiiiiiiiii_9","jsCall_viiiiiiiiiiiiii_10","jsCall_viiiiiiiiiiiiii_11","jsCall_viiiiiiiiiiiiii_12","jsCall_viiiiiiiiiiiiii_13","jsCall_viiiiiiiiiiiiii_14","jsCall_viiiiiiiiiiiiii_15","jsCall_viiiiiiiiiiiiii_16","jsCall_viiiiiiiiiiiiii_17","jsCall_viiiiiiiiiiiiii_18","jsCall_viiiiiiiiiiiiii_19","jsCall_viiiiiiiiiiiiii_20","jsCall_viiiiiiiiiiiiii_21","jsCall_viiiiiiiiiiiiii_22","jsCall_viiiiiiiiiiiiii_23","jsCall_viiiiiiiiiiiiii_24","jsCall_viiiiiiiiiiiiii_25","jsCall_viiiiiiiiiiiiii_26","jsCall_viiiiiiiiiiiiii_27","jsCall_viiiiiiiiiiiiii_28","jsCall_viiiiiiiiiiiiii_29","jsCall_viiiiiiiiiiiiii_30","jsCall_viiiiiiiiiiiiii_31","jsCall_viiiiiiiiiiiiii_32","jsCall_viiiiiiiiiiiiii_33","jsCall_viiiiiiiiiiiiii_34","_put_hevc_pel_bi_w_pixels_9","_put_hevc_qpel_bi_w_h_9","_put_hevc_qpel_bi_w_v_9","_put_hevc_qpel_bi_w_hv_9","_put_hevc_epel_bi_w_h_9","_put_hevc_epel_bi_w_v_9","_put_hevc_epel_bi_w_hv_9","_put_hevc_pel_bi_w_pixels_10","_put_hevc_qpel_bi_w_h_10","_put_hevc_qpel_bi_w_v_10","_put_hevc_qpel_bi_w_hv_10","_put_hevc_epel_bi_w_h_10","_put_hevc_epel_bi_w_v_10","_put_hevc_epel_bi_w_hv_10","_put_hevc_pel_bi_w_pixels_12","_put_hevc_qpel_bi_w_h_12","_put_hevc_qpel_bi_w_v_12","_put_hevc_qpel_bi_w_hv_12","_put_hevc_epel_bi_w_h_12","_put_hevc_epel_bi_w_v_12","_put_hevc_epel_bi_w_hv_12","_put_hevc_pel_bi_w_pixels_8","_put_hevc_qpel_bi_w_h_8","_put_hevc_qpel_bi_w_v_8","_put_hevc_qpel_bi_w_hv_8","_put_hevc_epel_bi_w_h_8","_put_hevc_epel_bi_w_v_8","_put_hevc_epel_bi_w_hv_8"],vr={dd:Pi,did:Ii,didd:Ui,fii:Ri,fiii:Di,ii:Oi,iidiiii:Fi,iii:Bi,iiii:Li,iiiii:Ni,iiiiii:zi,iiiiiii:Hi,iiiiiiii:Vi,iiiiij:Yi,iiiji:qi,jiiij:Xi,jiiji:Wi,jiji:Gi,v:Ki,vdiidiiiii:Qi,vi:Zi,vii:Ji,viidi:$i,viifi:er,viii:tr,viiii:ir,viiiid:rr,viiiifii:nr,viiiii:ar,viiiiidd:sr,viiiiii:or,viiiiiifi:lr,viiiiiii:fr,viiiiiiii:ur,viiiiiiiid:cr,viiiiiiiidi:hr,viiiiiiiii:dr,viiiiiiiiii:_r,viiiiiiiiiii:pr,viiiiiiiiiiii:mr,viiiiiiiiiiiiii:br};function yr(e){je(e,"dd")}function gr(e){je(e,"did")}function wr(e){je(e,"didd")}function Er(e){je(e,"fii")}function Cr(e){je(e,"fiii")}function Sr(e){je(e,"ii")}function jr(e){je(e,"iidiiii")}function Tr(e){je(e,"iii")}function Ar(e){je(e,"iiii")}function xr(e){je(e,"iiiii")}function Mr(e){je(e,"iiiiii")}function kr(e){je(e,"iiiiiii")}function Pr(e){je(e,"iiiiiiii")}function Ir(e){je(e,"iiiiij")}function Ur(e){je(e,"iiiji")}function Rr(e){je(e,"jiiij")}function Dr(e){je(e,"jiiji")}function Or(e){je(e,"jiji")}function Fr(e){je(e,"v")}function Br(e){je(e,"vdiidiiiii")}function Lr(e){je(e,"vi")}function Nr(e){je(e,"vii")}function zr(e){je(e,"viidi")}function Hr(e){je(e,"viifi")}function Vr(e){je(e,"viii")}function Yr(e){je(e,"viiii")}function qr(e){je(e,"viiiid")}function Xr(e){je(e,"viiiifii")}function Wr(e){je(e,"viiiii")}function Gr(e){je(e,"viiiiidd")}function Kr(e){je(e,"viiiiii")}function Qr(e){je(e,"viiiiiifi")}function Zr(e){je(e,"viiiiiii")}function Jr(e){je(e,"viiiiiiii")}function $r(e){je(e,"viiiiiiiid")}function en(e){je(e,"viiiiiiiidi")}function tn(e){je(e,"viiiiiiiii")}function rn(e){je(e,"viiiiiiiiii")}function nn(e){je(e,"viiiiiiiiiii")}function an(e){je(e,"viiiiiiiiiiii")}function sn(e){je(e,"viiiiiiiiiiiiii")}function on(e,t){return k[e](t)}function ln(e,t,i){return k[e](t,i)}function fn(e,t,i,r){return k[e](t,i,r)}function un(e,t,i){return k[e](t,i)}function cn(e,t,i,r){return k[e](t,i,r)}function hn(e,t){return k[e](t)}function dn(e,t,i,r,n,a,s){return k[e](t,i,r,n,a,s)}function _n(e,t,i){return k[e](t,i)}function pn(e,t,i,r){return k[e](t,i,r)}function mn(e,t,i,r,n){return k[e](t,i,r,n)}function bn(e,t,i,r,n,a){return k[e](t,i,r,n,a)}function vn(e,t,i,r,n,a,s){return k[e](t,i,r,n,a,s)}function yn(e,t,i,r,n,a,s,o){return k[e](t,i,r,n,a,s,o)}function gn(e,t,i,r,n,a){return k[e](t,i,r,n,a)}function wn(e,t,i,r,n){return k[e](t,i,r,n)}function En(e,t,i,r,n){return k[e](t,i,r,n)}function Cn(e,t,i,r,n){return k[e](t,i,r,n)}function Sn(e,t,i,r){return k[e](t,i,r)}function jn(e){k[e]()}function Tn(e,t,i,r,n,a,s,o,l,f){k[e](t,i,r,n,a,s,o,l,f)}function An(e,t){k[e](t)}function xn(e,t,i){k[e](t,i)}function Mn(e,t,i,r,n){k[e](t,i,r,n)}function kn(e,t,i,r,n){k[e](t,i,r,n)}function Pn(e,t,i,r){k[e](t,i,r)}function In(e,t,i,r,n){k[e](t,i,r,n)}function Un(e,t,i,r,n,a){k[e](t,i,r,n,a)}function Rn(e,t,i,r,n,a,s,o){k[e](t,i,r,n,a,s,o)}function Dn(e,t,i,r,n,a){k[e](t,i,r,n,a)}function On(e,t,i,r,n,a,s,o){k[e](t,i,r,n,a,s,o)}function Fn(e,t,i,r,n,a,s){k[e](t,i,r,n,a,s)}function Bn(e,t,i,r,n,a,s,o,l){k[e](t,i,r,n,a,s,o,l)}function Ln(e,t,i,r,n,a,s,o){k[e](t,i,r,n,a,s,o)}function Nn(e,t,i,r,n,a,s,o,l){k[e](t,i,r,n,a,s,o,l)}function zn(e,t,i,r,n,a,s,o,l,f){k[e](t,i,r,n,a,s,o,l,f)}function Hn(e,t,i,r,n,a,s,o,l,f,u){k[e](t,i,r,n,a,s,o,l,f,u)}function Vn(e,t,i,r,n,a,s,o,l,f){k[e](t,i,r,n,a,s,o,l,f)}function Yn(e,t,i,r,n,a,s,o,l,f,u){k[e](t,i,r,n,a,s,o,l,f,u)}function qn(e,t,i,r,n,a,s,o,l,f,u,c){k[e](t,i,r,n,a,s,o,l,f,u,c)}function Xn(e,t,i,r,n,a,s,o,l,f,u,c,h){k[e](t,i,r,n,a,s,o,l,f,u,c,h)}function Wn(e,t,i,r,n,a,s,o,l,f,u,c,h,d,_){k[e](t,i,r,n,a,s,o,l,f,u,c,h,d,_)}var Gn={},Kn={___buildEnvironment:ht,___lock:dt,___syscall221:Tt,___syscall3:At,___syscall5:xt,___unlock:Mt,___wasi_fd_close:Pt,___wasi_fd_fdstat_get:Ut,___wasi_fd_seek:Dt,___wasi_fd_write:Ft,__emscripten_fetch_free:Bt,__memory_base:1024,__table_base:0,_abort:Lt,_clock:Nt,_clock_gettime:Vt,_emscripten_get_heap_size:Yt,_emscripten_is_main_browser_thread:qt,_emscripten_memcpy_big:di,_emscripten_resize_heap:Wt,_emscripten_start_fetch:$t,_fabs:ei,_getenv:ti,_gettimeofday:ii,_gmtime_r:ni,_llvm_exp2_f64:si,_llvm_log2_f32:oi,_llvm_stackrestore:li,_llvm_stacksave:fi,_llvm_trunc_f64:ui,_localtime_r:hi,_nanosleep:pi,_pthread_cond_destroy:mi,_pthread_cond_init:bi,_pthread_create:vi,_pthread_join:yi,_strftime:ji,_sysconf:Ti,_time:Ai,abortStackOverflow:Se,getTempRet0:O,jsCall_dd:on,jsCall_did:ln,jsCall_didd:fn,jsCall_fii:un,jsCall_fiii:cn,jsCall_ii:hn,jsCall_iidiiii:dn,jsCall_iii:_n,jsCall_iiii:pn,jsCall_iiiii:mn,jsCall_iiiiii:bn,jsCall_iiiiiii:vn,jsCall_iiiiiiii:yn,jsCall_iiiiij:gn,jsCall_iiiji:wn,jsCall_jiiij:En,jsCall_jiiji:Cn,jsCall_jiji:Sn,jsCall_v:jn,jsCall_vdiidiiiii:Tn,jsCall_vi:An,jsCall_vii:xn,jsCall_viidi:Mn,jsCall_viifi:kn,jsCall_viii:Pn,jsCall_viiii:In,jsCall_viiiid:Un,jsCall_viiiifii:Rn,jsCall_viiiii:Dn,jsCall_viiiiidd:On,jsCall_viiiiii:Fn,jsCall_viiiiiifi:Bn,jsCall_viiiiiii:Ln,jsCall_viiiiiiii:Nn,jsCall_viiiiiiiid:zn,jsCall_viiiiiiiidi:Hn,jsCall_viiiiiiiii:Vn,jsCall_viiiiiiiiii:Yn,jsCall_viiiiiiiiiii:qn,jsCall_viiiiiiiiiiii:Xn,jsCall_viiiiiiiiiiiiii:Wn,memory:R,nullFunc_dd:yr,nullFunc_did:gr,nullFunc_didd:wr,nullFunc_fii:Er,nullFunc_fiii:Cr,nullFunc_ii:Sr,nullFunc_iidiiii:jr,nullFunc_iii:Tr,nullFunc_iiii:Ar,nullFunc_iiiii:xr,nullFunc_iiiiii:Mr,nullFunc_iiiiiii:kr,nullFunc_iiiiiiii:Pr,nullFunc_iiiiij:Ir,nullFunc_iiiji:Ur,nullFunc_jiiij:Rr,nullFunc_jiiji:Dr,nullFunc_jiji:Or,nullFunc_v:Fr,nullFunc_vdiidiiiii:Br,nullFunc_vi:Lr,nullFunc_vii:Nr,nullFunc_viidi:zr,nullFunc_viifi:Hr,nullFunc_viii:Vr,nullFunc_viiii:Yr,nullFunc_viiiid:qr,nullFunc_viiiifii:Xr,nullFunc_viiiii:Wr,nullFunc_viiiiidd:Gr,nullFunc_viiiiii:Kr,nullFunc_viiiiiifi:Qr,nullFunc_viiiiiii:Zr,nullFunc_viiiiiiii:Jr,nullFunc_viiiiiiiid:$r,nullFunc_viiiiiiiidi:en,nullFunc_viiiiiiiii:tn,nullFunc_viiiiiiiiii:rn,nullFunc_viiiiiiiiiii:nn,nullFunc_viiiiiiiiiiii:an,nullFunc_viiiiiiiiiiiiii:sn,table:B},Qn=l.asm(Gn,Kn,re);l.asm=Qn;l._AVSniffStreamInit=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._AVSniffStreamInit.apply(null,arguments)};var Zn,Jn=l.___emscripten_environ_constructor=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.___emscripten_environ_constructor.apply(null,arguments)},$n=(l.___errno_location=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.___errno_location.apply(null,arguments)},l.__get_daylight=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.__get_daylight.apply(null,arguments)}),ea=l.__get_timezone=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.__get_timezone.apply(null,arguments)},ta=l.__get_tzname=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.__get_tzname.apply(null,arguments)},ia=(l._closeVideo=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._closeVideo.apply(null,arguments)},l._decodeCodecContext=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._decodeCodecContext.apply(null,arguments)},l._decodeVideoFrame=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._decodeVideoFrame.apply(null,arguments)},l._demuxBox=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._demuxBox.apply(null,arguments)},l._exitMissile=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._exitMissile.apply(null,arguments)},l._exitTsMissile=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._exitTsMissile.apply(null,arguments)},l._fflush=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._fflush.apply(null,arguments)},l._free=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._free.apply(null,arguments)}),ra=(l._getAudioCodecID=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getAudioCodecID.apply(null,arguments)},l._getExtensionInfo=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getExtensionInfo.apply(null,arguments)},l._getMediaInfo=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getMediaInfo.apply(null,arguments)},l._getPPS=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getPPS.apply(null,arguments)},l._getPPSLen=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getPPSLen.apply(null,arguments)},l._getPacket=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getPacket.apply(null,arguments)},l._getSEI=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getSEI.apply(null,arguments)},l._getSEILen=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getSEILen.apply(null,arguments)},l._getSPS=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getSPS.apply(null,arguments)},l._getSPSLen=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getSPSLen.apply(null,arguments)},l._getSniffStreamPkg=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getSniffStreamPkg.apply(null,arguments)},l._getSniffStreamPkgNoCheckProbe=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getSniffStreamPkgNoCheckProbe.apply(null,arguments)},l._getVLC=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getVLC.apply(null,arguments)},l._getVLCLen=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getVLCLen.apply(null,arguments)},l._getVPS=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getVPS.apply(null,arguments)},l._getVPSLen=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getVPSLen.apply(null,arguments)},l._getVideoCodecID=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._getVideoCodecID.apply(null,arguments)},l._initMissile=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._initMissile.apply(null,arguments)},l._initTsMissile=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._initTsMissile.apply(null,arguments)},l._initializeDecoder=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._initializeDecoder.apply(null,arguments)},l._initializeDemuxer=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._initializeDemuxer.apply(null,arguments)},l._initializeSniffStreamModule=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._initializeSniffStreamModule.apply(null,arguments)},l._initializeSniffStreamModuleWithAOpt=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._initializeSniffStreamModuleWithAOpt.apply(null,arguments)},l._malloc=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._malloc.apply(null,arguments)}),na=(l._pushSniffStreamData=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._pushSniffStreamData.apply(null,arguments)},l._registerPlayer=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._registerPlayer.apply(null,arguments)},l._release=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._release.apply(null,arguments)},l._releaseSniffStream=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._releaseSniffStream.apply(null,arguments)},l._setCodecType=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm._setCodecType.apply(null,arguments)},l.establishStackSpace=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.establishStackSpace.apply(null,arguments)},l.stackAlloc=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.stackAlloc.apply(null,arguments)}),aa=l.stackRestore=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.stackRestore.apply(null,arguments)},sa=l.stackSave=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.stackSave.apply(null,arguments)},oa=(l.dynCall_v=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.dynCall_v.apply(null,arguments)},l.dynCall_vi=function(){return N(Pe,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)"),N(!Ie,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),l.asm.dynCall_vi.apply(null,arguments)});function la(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function fa(e){function t(){Zn||(Zn=!0,L||(Re(),De(),l.onRuntimeInitialized&&l.onRuntimeInitialized(),N(!l._main,'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]'),Oe()))}e=e||u,Ye>0||(Ee(),Ue(),Ye>0||(l.setStatus?(l.setStatus("Running..."),setTimeout((function(){setTimeout((function(){l.setStatus("")}),1),t()}),1)):t(),Ce()))}if(l.asm=Qn,Object.getOwnPropertyDescriptor(l,"intArrayFromString")||(l.intArrayFromString=function(){Ze("'intArrayFromString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"intArrayToString")||(l.intArrayToString=function(){Ze("'intArrayToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),l.ccall=H,l.cwrap=V,Object.getOwnPropertyDescriptor(l,"setValue")||(l.setValue=function(){Ze("'setValue' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getValue")||(l.getValue=function(){Ze("'getValue' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"allocate")||(l.allocate=function(){Ze("'allocate' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getMemory")||(l.getMemory=function(){Ze("'getMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"AsciiToString")||(l.AsciiToString=function(){Ze("'AsciiToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stringToAscii")||(l.stringToAscii=function(){Ze("'stringToAscii' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"UTF8ArrayToString")||(l.UTF8ArrayToString=function(){Ze("'UTF8ArrayToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"UTF8ToString")||(l.UTF8ToString=function(){Ze("'UTF8ToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stringToUTF8Array")||(l.stringToUTF8Array=function(){Ze("'stringToUTF8Array' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stringToUTF8")||(l.stringToUTF8=function(){Ze("'stringToUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"lengthBytesUTF8")||(l.lengthBytesUTF8=function(){Ze("'lengthBytesUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"UTF16ToString")||(l.UTF16ToString=function(){Ze("'UTF16ToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stringToUTF16")||(l.stringToUTF16=function(){Ze("'stringToUTF16' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"lengthBytesUTF16")||(l.lengthBytesUTF16=function(){Ze("'lengthBytesUTF16' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"UTF32ToString")||(l.UTF32ToString=function(){Ze("'UTF32ToString' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stringToUTF32")||(l.stringToUTF32=function(){Ze("'stringToUTF32' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"lengthBytesUTF32")||(l.lengthBytesUTF32=function(){Ze("'lengthBytesUTF32' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"allocateUTF8")||(l.allocateUTF8=function(){Ze("'allocateUTF8' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stackTrace")||(l.stackTrace=function(){Ze("'stackTrace' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"addOnPreRun")||(l.addOnPreRun=function(){Ze("'addOnPreRun' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"addOnInit")||(l.addOnInit=function(){Ze("'addOnInit' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"addOnPreMain")||(l.addOnPreMain=function(){Ze("'addOnPreMain' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"addOnExit")||(l.addOnExit=function(){Ze("'addOnExit' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"addOnPostRun")||(l.addOnPostRun=function(){Ze("'addOnPostRun' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"writeStringToMemory")||(l.writeStringToMemory=function(){Ze("'writeStringToMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"writeArrayToMemory")||(l.writeArrayToMemory=function(){Ze("'writeArrayToMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"writeAsciiToMemory")||(l.writeAsciiToMemory=function(){Ze("'writeAsciiToMemory' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"addRunDependency")||(l.addRunDependency=function(){Ze("'addRunDependency' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"removeRunDependency")||(l.removeRunDependency=function(){Ze("'removeRunDependency' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"ENV")||(l.ENV=function(){Ze("'ENV' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"FS")||(l.FS=function(){Ze("'FS' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"FS_createFolder")||(l.FS_createFolder=function(){Ze("'FS_createFolder' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_createPath")||(l.FS_createPath=function(){Ze("'FS_createPath' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_createDataFile")||(l.FS_createDataFile=function(){Ze("'FS_createDataFile' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_createPreloadedFile")||(l.FS_createPreloadedFile=function(){Ze("'FS_createPreloadedFile' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_createLazyFile")||(l.FS_createLazyFile=function(){Ze("'FS_createLazyFile' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_createLink")||(l.FS_createLink=function(){Ze("'FS_createLink' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_createDevice")||(l.FS_createDevice=function(){Ze("'FS_createDevice' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"FS_unlink")||(l.FS_unlink=function(){Ze("'FS_unlink' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}),Object.getOwnPropertyDescriptor(l,"GL")||(l.GL=function(){Ze("'GL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"dynamicAlloc")||(l.dynamicAlloc=function(){Ze("'dynamicAlloc' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"loadDynamicLibrary")||(l.loadDynamicLibrary=function(){Ze("'loadDynamicLibrary' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"loadWebAssemblyModule")||(l.loadWebAssemblyModule=function(){Ze("'loadWebAssemblyModule' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getLEB")||(l.getLEB=function(){Ze("'getLEB' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getFunctionTables")||(l.getFunctionTables=function(){Ze("'getFunctionTables' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"alignFunctionTables")||(l.alignFunctionTables=function(){Ze("'alignFunctionTables' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"registerFunctions")||(l.registerFunctions=function(){Ze("'registerFunctions' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),l.addFunction=P,Object.getOwnPropertyDescriptor(l,"removeFunction")||(l.removeFunction=function(){Ze("'removeFunction' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getFuncWrapper")||(l.getFuncWrapper=function(){Ze("'getFuncWrapper' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"prettyPrint")||(l.prettyPrint=function(){Ze("'prettyPrint' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"makeBigInt")||(l.makeBigInt=function(){Ze("'makeBigInt' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"dynCall")||(l.dynCall=function(){Ze("'dynCall' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getCompilerSetting")||(l.getCompilerSetting=function(){Ze("'getCompilerSetting' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stackSave")||(l.stackSave=function(){Ze("'stackSave' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stackRestore")||(l.stackRestore=function(){Ze("'stackRestore' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"stackAlloc")||(l.stackAlloc=function(){Ze("'stackAlloc' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"establishStackSpace")||(l.establishStackSpace=function(){Ze("'establishStackSpace' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"print")||(l.print=function(){Ze("'print' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"printErr")||(l.printErr=function(){Ze("'printErr' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"getTempRet0")||(l.getTempRet0=function(){Ze("'getTempRet0' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"setTempRet0")||(l.setTempRet0=function(){Ze("'setTempRet0' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"callMain")||(l.callMain=function(){Ze("'callMain' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"abort")||(l.abort=function(){Ze("'abort' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"Pointer_stringify")||(l.Pointer_stringify=function(){Ze("'Pointer_stringify' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"warnOnce")||(l.warnOnce=function(){Ze("'warnOnce' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}),Object.getOwnPropertyDescriptor(l,"ALLOC_NORMAL")||Object.defineProperty(l,"ALLOC_NORMAL",{configurable:!0,get:function(){Ze("'ALLOC_NORMAL' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(l,"ALLOC_STACK")||Object.defineProperty(l,"ALLOC_STACK",{configurable:!0,get:function(){Ze("'ALLOC_STACK' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(l,"ALLOC_DYNAMIC")||Object.defineProperty(l,"ALLOC_DYNAMIC",{configurable:!0,get:function(){Ze("'ALLOC_DYNAMIC' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(l,"ALLOC_NONE")||Object.defineProperty(l,"ALLOC_NONE",{configurable:!0,get:function(){Ze("'ALLOC_NONE' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(l,"calledRun")||Object.defineProperty(l,"calledRun",{configurable:!0,get:function(){Ze("'calledRun' was not exported. add it to EXTRA_EXPORTED_RUNTIME_METHODS (see the FAQ). Alternatively, forcing filesystem support (-s FORCE_FILESYSTEM=1) can export this for you")}}),Xe=function e(){Zn||fa(),Zn||(Xe=e)},l.run=fa,l.preInit)for("function"==typeof l.preInit&&(l.preInit=[l.preInit]);l.preInit.length>0;)l.preInit.pop()();U=!0,fa(),t.exports=l}).call(this,e("_process"),e("buffer").Buffer,"/src/decoder")},{_process:158,buffer:66,crypto:75,fs:64,path:150}],2:[function(e,t,i){"use strict";const r=i;r.bignum=e("bn.js"),r.define=e("./asn1/api").define,r.base=e("./asn1/base"),r.constants=e("./asn1/constants"),r.decoders=e("./asn1/decoders"),r.encoders=e("./asn1/encoders")},{"./asn1/api":3,"./asn1/base":5,"./asn1/constants":9,"./asn1/decoders":11,"./asn1/encoders":14,"bn.js":16}],3:[function(e,t,i){"use strict";const r=e("./encoders"),n=e("./decoders"),a=e("inherits");function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}i.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){const t=this.name;function i(e){this._initNamed(e,t)}return a(i,e),i.prototype._initNamed=function(t,i){e.call(this,t,i)},new i(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n[e])),this.decoders[e]},s.prototype.decode=function(e,t,i){return this._getDecoder(t).decode(e,i)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},s.prototype.encode=function(e,t,i){return this._getEncoder(t).encode(e,i)}},{"./decoders":11,"./encoders":14,inherits:136}],4:[function(e,t,i){"use strict";const r=e("inherits"),n=e("../base/reporter").Reporter,a=e("safer-buffer").Buffer;function s(e,t){n.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function o(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return o.isEncoderBuffer(e)||(e=new o(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(s,n),i.DecoderBuffer=s,s.isDecoderBuffer=function(e){if(e instanceof s)return!0;return"object"==typeof e&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},s.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},s.prototype.restore=function(e){const t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,n.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const i=new s(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},i.EncoderBuffer=o,o.isEncoderBuffer=function(e){if(e instanceof o)return!0;return"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},o.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(e,t),t+=i.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":7,inherits:136,"safer-buffer":185}],5:[function(e,t,i){"use strict";const r=i;r.Reporter=e("./reporter").Reporter,r.DecoderBuffer=e("./buffer").DecoderBuffer,r.EncoderBuffer=e("./buffer").EncoderBuffer,r.Node=e("./node")},{"./buffer":4,"./node":6,"./reporter":7}],6:[function(e,t,i){"use strict";const r=e("../base/reporter").Reporter,n=e("../base/buffer").EncoderBuffer,a=e("../base/buffer").DecoderBuffer,s=e("minimalistic-assert"),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function f(e,t,i){const r={};this._baseState=r,r.name=i,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=f;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){const e=this._baseState,t={};u.forEach((function(i){t[i]=e[i]}));const i=new this.constructor(t.parent);return i._baseState=t,i},f.prototype._wrap=function(){const e=this._baseState;l.forEach((function(t){this[t]=function(){const i=new this.constructor(this);return e.children.push(i),i[t].apply(i,arguments)}}),this)},f.prototype._init=function(e){const t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(e){const t=this._baseState,i=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==i.length&&(s(null===t.children),t.children=i,i.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(i){i==(0|i)&&(i|=0);const r=e[i];t[r]=i})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){f.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),o.forEach((function(e){f.prototype[e]=function(){const t=this._baseState,i=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(i),this}})),f.prototype.use=function(e){s(e);const t=this._baseState;return s(null===t.use),t.use=e,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(e){const t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},f.prototype.explicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},f.prototype.implicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},f.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},f.prototype.key=function(e){const t=this._baseState;return s(null===t.key),t.key=e,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(e){const t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},f.prototype.contains=function(e){const t=this._baseState;return s(null===t.use),t.contains=e,this},f.prototype._decode=function(e,t){const i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));let r,n=i.default,s=!0,o=null;if(null!==i.key&&(o=e.enterKey(i.key)),i.optional){let r=null;if(null!==i.explicit?r=i.explicit:null!==i.implicit?r=i.implicit:null!==i.tag&&(r=i.tag),null!==r||i.any){if(s=this._peekTag(e,r,i.any),e.isError(s))return s}else{const r=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(r)}}if(i.obj&&s&&(r=e.enterObject()),s){if(null!==i.explicit){const t=this._decodeTag(e,i.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===i.use&&null===i.choice){let t;i.any&&(t=e.save());const r=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(r))return r;i.any?n=e.raw(t):e=r}if(t&&t.track&&null!==i.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(n=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(n))return n;if(i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(e,t)})),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){const r=new a(n);n=this._getUse(i.contains,e._reporterState.obj)._decode(r,t)}}return i.obj&&s&&(n=e.leaveObject(r)),null===i.key||null===n&&!0!==s?null!==o&&e.exitKey(o):e.leaveKey(o,i.key,n),n},f.prototype._decodeGeneric=function(e,t,i){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],i):/str$/.test(e)?this._decodeStr(t,e,i):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],i):"objid"===e?this._decodeObjid(t,null,null,i):"gentime"===e||"utctime"===e?this._decodeTime(t,e,i):"null_"===e?this._decodeNull(t,i):"bool"===e?this._decodeBool(t,i):"objDesc"===e?this._decodeStr(t,e,i):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],i):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,i):t.error("unknown tag: "+e)},f.prototype._getUse=function(e,t){const i=this._baseState;return i.useDecoder=this._use(e,t),s(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},f.prototype._decodeChoice=function(e,t){const i=this._baseState;let r=null,n=!1;return Object.keys(i.choice).some((function(a){const s=e.save(),o=i.choice[a];try{const i=o._decode(e,t);if(e.isError(i))return!1;r={type:a,value:i},n=!0}catch(t){return e.restore(s),!1}return!0}),this),n?r:e.error("Choice not matched")},f.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},f.prototype._encode=function(e,t,i){const r=this._baseState;if(null!==r.default&&r.default===e)return;const n=this._encodeValue(e,t,i);return void 0===n||this._skipDefault(n,t,i)?void 0:n},f.prototype._encodeValue=function(e,t,i){const n=this._baseState;if(null===n.parent)return n.children[0]._encode(e,t||new r);let a=null;if(this.reporter=t,n.optional&&void 0===e){if(null===n.default)return;e=n.default}let s=null,o=!1;if(n.any)a=this._createEncoderBuffer(e);else if(n.choice)a=this._encodeChoice(e,t);else if(n.contains)s=this._getUse(n.contains,i)._encode(e,t),o=!0;else if(n.children)s=n.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,t,e);if(null===i._baseState.key)return t.error("Child should have a key");const r=t.enterKey(i._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const n=i._encode(e[i._baseState.key],t,e);return t.leaveKey(r),n}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return t.error("Too many args for : "+n.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const i=this.clone();i._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(i){const r=this._baseState;return this._getUse(r.args[0],e)._encode(i,t)}),i))}else null!==n.use?a=this._getUse(n.use,i)._encode(e,t):(s=this._encodePrimitive(n.tag,e),o=!0);if(!n.any&&null===n.choice){const e=null!==n.implicit?n.implicit:n.tag,i=null===n.implicit?"universal":"context";null===e?null===n.use&&t.error("Tag could be omitted only for .use()"):null===n.use&&(a=this._encodeComposite(e,o,i,s))}return null!==n.explicit&&(a=this._encodeComposite(n.explicit,!1,"context",a)),a},f.prototype._encodeChoice=function(e,t){const i=this._baseState,r=i.choice[e.type];return r||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(e.value,t)},f.prototype._encodePrimitive=function(e,t){const i=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&i.args)return this._encodeObjid(t,i.reverseArgs[0],i.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,i.args&&i.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},f.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},f.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":4,"../base/reporter":7,"minimalistic-assert":142}],7:[function(e,t,i){"use strict";const r=e("inherits");function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}i.Reporter=n,n.prototype.isError=function(e){return e instanceof a},n.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,i){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=i)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){const t=this._reporterState,i=t.obj;return t.obj=e,i},n.prototype.error=function(e){let t;const i=this._reporterState,r=e instanceof a;if(t=r?e:new a(i.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!i.options.partial)throw t;return r||i.errors.push(t),t},n.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:136}],8:[function(e,t,i){"use strict";function r(e){const t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);const r=e[i];t[r]=i})),t}i.tagClass={0:"universal",1:"application",2:"context",3:"private"},i.tagClassByName=r(i.tagClass),i.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},i.tagByName=r(i.tag)},{}],9:[function(e,t,i){"use strict";const r=i;r._reverse=function(e){const t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);const r=e[i];t[r]=i})),t},r.der=e("./der")},{"./der":8}],10:[function(e,t,i){"use strict";const r=e("inherits"),n=e("bn.js"),a=e("../base/buffer").DecoderBuffer,s=e("../base/node"),o=e("../constants/der");function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){s.call(this,"der",e)}function u(e,t){let i=e.readUInt8(t);if(e.isError(i))return i;const r=o.tagClass[i>>6],n=0==(32&i);if(31==(31&i)){let r=i;for(i=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;i<<=7,i|=127&r}}else i&=31;return{cls:r,primitive:n,tag:i,tagStr:o.tag[i]}}function c(e,t,i){let r=e.readUInt8(i);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;const n=127&r;if(n>4)return e.error("length octect is too long");r=0;for(let t=0;t=31)return r.error("Multi-octet tag encoding unsupported");t||(n|=32);return n|=s.tagClassByName[i||"universal"]<<6,n}(e,t,i,this.reporter);if(r.length<128){const e=n.alloc(2);return e[0]=a,e[1]=r.length,this._createEncoderBuffer([e,r])}let o=1;for(let e=r.length;e>=256;e>>=8)o++;const l=n.alloc(2+o);l[0]=a,l[1]=128|o;for(let e=1+o,t=r.length;t>0;e--,t>>=8)l[e]=255&t;return this._createEncoderBuffer([l,r])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=n.alloc(2*e.length);for(let i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let t=0;t=128;i>>=7)r++}const a=n.alloc(r);let s=a.length-1;for(let t=e.length-1;t>=0;t--){let i=e[t];for(a[s--]=127&i;(i>>=7)>0;)a[s--]=128|127&i}return this._createEncoderBuffer(a)},l.prototype._encodeTime=function(e,t){let i;const r=new Date(e);return"gentime"===t?i=[f(r.getUTCFullYear()),f(r.getUTCMonth()+1),f(r.getUTCDate()),f(r.getUTCHours()),f(r.getUTCMinutes()),f(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?i=[f(r.getUTCFullYear()%100),f(r.getUTCMonth()+1),f(r.getUTCDate()),f(r.getUTCHours()),f(r.getUTCMinutes()),f(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(i,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!n.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=n.from(t)}if(n.isBuffer(e)){let t=e.length;0===e.length&&t++;const i=n.alloc(t);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let i=1;for(let t=e;t>=256;t>>=8)i++;const r=new Array(i);for(let t=r.length-1;t>=0;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(n.from(r))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,i){const r=this._baseState;let n;if(null===r.default)return!1;const a=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,i).join()),a.length!==r.defaultBuffer.length)return!1;for(n=0;n=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return r}function l(e,t,i,r){for(var n=0,a=Math.min(e.length,i),s=t;s=49?o-49+10:o>=17?o-17+10:o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),t,i)},a.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},a.prototype._initArray=function(e,t,i){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)s=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[a]|=s<>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);else if("le"===i)for(n=0,a=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i=t;i-=6)n=o(e,i,i+6),this.words[r]|=n<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);i+6!==t&&(n=o(e,t,i+6),this.words[r]|=n<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var a=e.length-i,s=a%r,o=Math.min(a,a-s)+i,f=0,u=i;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],c=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,i){i.negative=t.negative^e.negative;var r=e.length+t.length|0;i.length=r,r=r-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,l=s/67108864|0;i.words[0]=o;for(var f=1;f>>26,c=67108863&l,h=Math.min(f,t.length-1),d=Math.max(0,f-e.length+1);d<=h;d++){var _=f-d|0;u+=(s=(n=0|e.words[_])*(a=0|t.words[d])+c)/67108864|0,c=67108863&s}i.words[f]=0|c,l=0|u}return 0!==l?i.words[f]=0|l:i.length--,i.strip()}a.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?f[6-l.length]+l+i:l+i,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(i=a.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],d=c[e];i="";var _=this.clone();for(_.negative=0;!_.isZero();){var p=_.modn(d).toString(e);i=(_=_.idivn(d)).isZero()?p+i:f[h-p.length]+p+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==s),this.toArrayLike(s,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,i){var n=this.byteLength(),a=i||Math.max(1,n);r(n<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var s,o,l="le"===t,f=new e(a),u=this.clone();if(l){for(o=0;!u.isZero();o++)s=u.andln(255),u.iushrn(8),f[o]=s;for(;o=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<e.length?(i=this,r=e):(i=e,r=this);for(var n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=e):(i=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&t;for(;0!==a&&s>26,this.words[s]=67108863&t;if(0===a&&s>>13,d=0|s[1],_=8191&d,p=d>>>13,m=0|s[2],b=8191&m,v=m>>>13,y=0|s[3],g=8191&y,w=y>>>13,E=0|s[4],C=8191&E,S=E>>>13,j=0|s[5],T=8191&j,A=j>>>13,x=0|s[6],M=8191&x,k=x>>>13,P=0|s[7],I=8191&P,U=P>>>13,R=0|s[8],D=8191&R,O=R>>>13,F=0|s[9],B=8191&F,L=F>>>13,N=0|o[0],z=8191&N,H=N>>>13,V=0|o[1],Y=8191&V,q=V>>>13,X=0|o[2],W=8191&X,G=X>>>13,K=0|o[3],Q=8191&K,Z=K>>>13,J=0|o[4],$=8191&J,ee=J>>>13,te=0|o[5],ie=8191&te,re=te>>>13,ne=0|o[6],ae=8191&ne,se=ne>>>13,oe=0|o[7],le=8191&oe,fe=oe>>>13,ue=0|o[8],ce=8191&ue,he=ue>>>13,de=0|o[9],_e=8191&de,pe=de>>>13;i.negative=e.negative^t.negative,i.length=19;var me=(f+(r=Math.imul(c,z))|0)+((8191&(n=(n=Math.imul(c,H))+Math.imul(h,z)|0))<<13)|0;f=((a=Math.imul(h,H))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(_,z),n=(n=Math.imul(_,H))+Math.imul(p,z)|0,a=Math.imul(p,H);var be=(f+(r=r+Math.imul(c,Y)|0)|0)+((8191&(n=(n=n+Math.imul(c,q)|0)+Math.imul(h,Y)|0))<<13)|0;f=((a=a+Math.imul(h,q)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,z),n=(n=Math.imul(b,H))+Math.imul(v,z)|0,a=Math.imul(v,H),r=r+Math.imul(_,Y)|0,n=(n=n+Math.imul(_,q)|0)+Math.imul(p,Y)|0,a=a+Math.imul(p,q)|0;var ve=(f+(r=r+Math.imul(c,W)|0)|0)+((8191&(n=(n=n+Math.imul(c,G)|0)+Math.imul(h,W)|0))<<13)|0;f=((a=a+Math.imul(h,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(g,z),n=(n=Math.imul(g,H))+Math.imul(w,z)|0,a=Math.imul(w,H),r=r+Math.imul(b,Y)|0,n=(n=n+Math.imul(b,q)|0)+Math.imul(v,Y)|0,a=a+Math.imul(v,q)|0,r=r+Math.imul(_,W)|0,n=(n=n+Math.imul(_,G)|0)+Math.imul(p,W)|0,a=a+Math.imul(p,G)|0;var ye=(f+(r=r+Math.imul(c,Q)|0)|0)+((8191&(n=(n=n+Math.imul(c,Z)|0)+Math.imul(h,Q)|0))<<13)|0;f=((a=a+Math.imul(h,Z)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,z),n=(n=Math.imul(C,H))+Math.imul(S,z)|0,a=Math.imul(S,H),r=r+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,q)|0)+Math.imul(w,Y)|0,a=a+Math.imul(w,q)|0,r=r+Math.imul(b,W)|0,n=(n=n+Math.imul(b,G)|0)+Math.imul(v,W)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,Z)|0)+Math.imul(p,Q)|0,a=a+Math.imul(p,Z)|0;var ge=(f+(r=r+Math.imul(c,$)|0)|0)+((8191&(n=(n=n+Math.imul(c,ee)|0)+Math.imul(h,$)|0))<<13)|0;f=((a=a+Math.imul(h,ee)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(T,z),n=(n=Math.imul(T,H))+Math.imul(A,z)|0,a=Math.imul(A,H),r=r+Math.imul(C,Y)|0,n=(n=n+Math.imul(C,q)|0)+Math.imul(S,Y)|0,a=a+Math.imul(S,q)|0,r=r+Math.imul(g,W)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(w,W)|0,a=a+Math.imul(w,G)|0,r=r+Math.imul(b,Q)|0,n=(n=n+Math.imul(b,Z)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,Z)|0,r=r+Math.imul(_,$)|0,n=(n=n+Math.imul(_,ee)|0)+Math.imul(p,$)|0,a=a+Math.imul(p,ee)|0;var we=(f+(r=r+Math.imul(c,ie)|0)|0)+((8191&(n=(n=n+Math.imul(c,re)|0)+Math.imul(h,ie)|0))<<13)|0;f=((a=a+Math.imul(h,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(M,z),n=(n=Math.imul(M,H))+Math.imul(k,z)|0,a=Math.imul(k,H),r=r+Math.imul(T,Y)|0,n=(n=n+Math.imul(T,q)|0)+Math.imul(A,Y)|0,a=a+Math.imul(A,q)|0,r=r+Math.imul(C,W)|0,n=(n=n+Math.imul(C,G)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,G)|0,r=r+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,Z)|0)+Math.imul(w,Q)|0,a=a+Math.imul(w,Z)|0,r=r+Math.imul(b,$)|0,n=(n=n+Math.imul(b,ee)|0)+Math.imul(v,$)|0,a=a+Math.imul(v,ee)|0,r=r+Math.imul(_,ie)|0,n=(n=n+Math.imul(_,re)|0)+Math.imul(p,ie)|0,a=a+Math.imul(p,re)|0;var Ee=(f+(r=r+Math.imul(c,ae)|0)|0)+((8191&(n=(n=n+Math.imul(c,se)|0)+Math.imul(h,ae)|0))<<13)|0;f=((a=a+Math.imul(h,se)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(I,z),n=(n=Math.imul(I,H))+Math.imul(U,z)|0,a=Math.imul(U,H),r=r+Math.imul(M,Y)|0,n=(n=n+Math.imul(M,q)|0)+Math.imul(k,Y)|0,a=a+Math.imul(k,q)|0,r=r+Math.imul(T,W)|0,n=(n=n+Math.imul(T,G)|0)+Math.imul(A,W)|0,a=a+Math.imul(A,G)|0,r=r+Math.imul(C,Q)|0,n=(n=n+Math.imul(C,Z)|0)+Math.imul(S,Q)|0,a=a+Math.imul(S,Z)|0,r=r+Math.imul(g,$)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(w,$)|0,a=a+Math.imul(w,ee)|0,r=r+Math.imul(b,ie)|0,n=(n=n+Math.imul(b,re)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,re)|0,r=r+Math.imul(_,ae)|0,n=(n=n+Math.imul(_,se)|0)+Math.imul(p,ae)|0,a=a+Math.imul(p,se)|0;var Ce=(f+(r=r+Math.imul(c,le)|0)|0)+((8191&(n=(n=n+Math.imul(c,fe)|0)+Math.imul(h,le)|0))<<13)|0;f=((a=a+Math.imul(h,fe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,z),n=(n=Math.imul(D,H))+Math.imul(O,z)|0,a=Math.imul(O,H),r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,q)|0)+Math.imul(U,Y)|0,a=a+Math.imul(U,q)|0,r=r+Math.imul(M,W)|0,n=(n=n+Math.imul(M,G)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,G)|0,r=r+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,Z)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,Z)|0,r=r+Math.imul(C,$)|0,n=(n=n+Math.imul(C,ee)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,ee)|0,r=r+Math.imul(g,ie)|0,n=(n=n+Math.imul(g,re)|0)+Math.imul(w,ie)|0,a=a+Math.imul(w,re)|0,r=r+Math.imul(b,ae)|0,n=(n=n+Math.imul(b,se)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,se)|0,r=r+Math.imul(_,le)|0,n=(n=n+Math.imul(_,fe)|0)+Math.imul(p,le)|0,a=a+Math.imul(p,fe)|0;var Se=(f+(r=r+Math.imul(c,ce)|0)|0)+((8191&(n=(n=n+Math.imul(c,he)|0)+Math.imul(h,ce)|0))<<13)|0;f=((a=a+Math.imul(h,he)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,z),n=(n=Math.imul(B,H))+Math.imul(L,z)|0,a=Math.imul(L,H),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,q)|0)+Math.imul(O,Y)|0,a=a+Math.imul(O,q)|0,r=r+Math.imul(I,W)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(U,W)|0,a=a+Math.imul(U,G)|0,r=r+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,Z)|0)+Math.imul(k,Q)|0,a=a+Math.imul(k,Z)|0,r=r+Math.imul(T,$)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(A,$)|0,a=a+Math.imul(A,ee)|0,r=r+Math.imul(C,ie)|0,n=(n=n+Math.imul(C,re)|0)+Math.imul(S,ie)|0,a=a+Math.imul(S,re)|0,r=r+Math.imul(g,ae)|0,n=(n=n+Math.imul(g,se)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,se)|0,r=r+Math.imul(b,le)|0,n=(n=n+Math.imul(b,fe)|0)+Math.imul(v,le)|0,a=a+Math.imul(v,fe)|0,r=r+Math.imul(_,ce)|0,n=(n=n+Math.imul(_,he)|0)+Math.imul(p,ce)|0,a=a+Math.imul(p,he)|0;var je=(f+(r=r+Math.imul(c,_e)|0)|0)+((8191&(n=(n=n+Math.imul(c,pe)|0)+Math.imul(h,_e)|0))<<13)|0;f=((a=a+Math.imul(h,pe)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,Y),n=(n=Math.imul(B,q))+Math.imul(L,Y)|0,a=Math.imul(L,q),r=r+Math.imul(D,W)|0,n=(n=n+Math.imul(D,G)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,G)|0,r=r+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(U,Q)|0,a=a+Math.imul(U,Z)|0,r=r+Math.imul(M,$)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(T,ie)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(A,ie)|0,a=a+Math.imul(A,re)|0,r=r+Math.imul(C,ae)|0,n=(n=n+Math.imul(C,se)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,se)|0,r=r+Math.imul(g,le)|0,n=(n=n+Math.imul(g,fe)|0)+Math.imul(w,le)|0,a=a+Math.imul(w,fe)|0,r=r+Math.imul(b,ce)|0,n=(n=n+Math.imul(b,he)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,he)|0;var Te=(f+(r=r+Math.imul(_,_e)|0)|0)+((8191&(n=(n=n+Math.imul(_,pe)|0)+Math.imul(p,_e)|0))<<13)|0;f=((a=a+Math.imul(p,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,W),n=(n=Math.imul(B,G))+Math.imul(L,W)|0,a=Math.imul(L,G),r=r+Math.imul(D,Q)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,Z)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(U,$)|0,a=a+Math.imul(U,ee)|0,r=r+Math.imul(M,ie)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(k,ie)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,se)|0)+Math.imul(A,ae)|0,a=a+Math.imul(A,se)|0,r=r+Math.imul(C,le)|0,n=(n=n+Math.imul(C,fe)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,fe)|0,r=r+Math.imul(g,ce)|0,n=(n=n+Math.imul(g,he)|0)+Math.imul(w,ce)|0,a=a+Math.imul(w,he)|0;var Ae=(f+(r=r+Math.imul(b,_e)|0)|0)+((8191&(n=(n=n+Math.imul(b,pe)|0)+Math.imul(v,_e)|0))<<13)|0;f=((a=a+Math.imul(v,pe)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,Q),n=(n=Math.imul(B,Z))+Math.imul(L,Q)|0,a=Math.imul(L,Z),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,ee)|0,r=r+Math.imul(I,ie)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(U,ie)|0,a=a+Math.imul(U,re)|0,r=r+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,se)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,se)|0,r=r+Math.imul(T,le)|0,n=(n=n+Math.imul(T,fe)|0)+Math.imul(A,le)|0,a=a+Math.imul(A,fe)|0,r=r+Math.imul(C,ce)|0,n=(n=n+Math.imul(C,he)|0)+Math.imul(S,ce)|0,a=a+Math.imul(S,he)|0;var xe=(f+(r=r+Math.imul(g,_e)|0)|0)+((8191&(n=(n=n+Math.imul(g,pe)|0)+Math.imul(w,_e)|0))<<13)|0;f=((a=a+Math.imul(w,pe)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(B,$),n=(n=Math.imul(B,ee))+Math.imul(L,$)|0,a=Math.imul(L,ee),r=r+Math.imul(D,ie)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(O,ie)|0,a=a+Math.imul(O,re)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,se)|0)+Math.imul(U,ae)|0,a=a+Math.imul(U,se)|0,r=r+Math.imul(M,le)|0,n=(n=n+Math.imul(M,fe)|0)+Math.imul(k,le)|0,a=a+Math.imul(k,fe)|0,r=r+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,he)|0)+Math.imul(A,ce)|0,a=a+Math.imul(A,he)|0;var Me=(f+(r=r+Math.imul(C,_e)|0)|0)+((8191&(n=(n=n+Math.imul(C,pe)|0)+Math.imul(S,_e)|0))<<13)|0;f=((a=a+Math.imul(S,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(B,ie),n=(n=Math.imul(B,re))+Math.imul(L,ie)|0,a=Math.imul(L,re),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,se)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,se)|0,r=r+Math.imul(I,le)|0,n=(n=n+Math.imul(I,fe)|0)+Math.imul(U,le)|0,a=a+Math.imul(U,fe)|0,r=r+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,he)|0)+Math.imul(k,ce)|0,a=a+Math.imul(k,he)|0;var ke=(f+(r=r+Math.imul(T,_e)|0)|0)+((8191&(n=(n=n+Math.imul(T,pe)|0)+Math.imul(A,_e)|0))<<13)|0;f=((a=a+Math.imul(A,pe)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(B,ae),n=(n=Math.imul(B,se))+Math.imul(L,ae)|0,a=Math.imul(L,se),r=r+Math.imul(D,le)|0,n=(n=n+Math.imul(D,fe)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,fe)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,he)|0)+Math.imul(U,ce)|0,a=a+Math.imul(U,he)|0;var Pe=(f+(r=r+Math.imul(M,_e)|0)|0)+((8191&(n=(n=n+Math.imul(M,pe)|0)+Math.imul(k,_e)|0))<<13)|0;f=((a=a+Math.imul(k,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(B,le),n=(n=Math.imul(B,fe))+Math.imul(L,le)|0,a=Math.imul(L,fe),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,he)|0)+Math.imul(O,ce)|0,a=a+Math.imul(O,he)|0;var Ie=(f+(r=r+Math.imul(I,_e)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(U,_e)|0))<<13)|0;f=((a=a+Math.imul(U,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,ce),n=(n=Math.imul(B,he))+Math.imul(L,ce)|0,a=Math.imul(L,he);var Ue=(f+(r=r+Math.imul(D,_e)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(O,_e)|0))<<13)|0;f=((a=a+Math.imul(O,pe)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var Re=(f+(r=Math.imul(B,_e))|0)+((8191&(n=(n=Math.imul(B,pe))+Math.imul(L,_e)|0))<<13)|0;return f=((a=Math.imul(L,pe))+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,l[0]=me,l[1]=be,l[2]=ve,l[3]=ye,l[4]=ge,l[5]=we,l[6]=Ee,l[7]=Ce,l[8]=Se,l[9]=je,l[10]=Te,l[11]=Ae,l[12]=xe,l[13]=Me,l[14]=ke,l[15]=Pe,l[16]=Ie,l[17]=Ue,l[18]=Re,0!==f&&(l[19]=f,i.length++),i};function _(e,t,i){return(new p).mulp(e,t,i)}function p(e,t){this.x=e,this.y=t}Math.imul||(d=h),a.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?d(this,e,t):i<63?h(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var r=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}i.words[a]=o,r=s,s=n}return 0!==r?i.words[a]=r:i.length--,i.strip()}(this,e,t):_(this,e,t)},p.prototype.makeRBT=function(e){for(var t=new Array(e),i=a.prototype._countBits(e)-1,r=0;r>=1;return r},p.prototype.permute=function(e,t,i,r,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,i[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=n/67108864|0,t+=a>>>26,this.words[i]=67108863&a}return 0!==t&&(this.words[i]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i>>n}return t}(e);if(0===t.length)return new a(1);for(var i=this,r=0;r=0);var t,i=e%26,n=(e-i)/26,a=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(t=0;t>>26-i}s&&(this.words[t]=s,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==u||f>=n);f--){var c=0|this.words[f];this.words[f]=u<<26-a|c>>>a,u=c&o}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,i){return r(0===this.negative),this.iushrn(e,t,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,n=1<=0);var t=e%26,i=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[n+i]=67108863&a}for(;n>26,this.words[n+i]=67108863&a;if(0===o)return this.strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var i=(this.length,e.length),r=this.clone(),n=e,s=0|n.words[n.length-1];0!==(i=26-this._countBits(s))&&(n=n.ushln(i),r.iushln(i),s=0|n.words[n.length-1]);var o,l=r.length-n.length;if("mod"!==t){(o=new a(null)).length=l+1,o.words=new Array(o.length);for(var f=0;f=0;c--){var h=67108864*(0|r.words[n.length+c])+(0|r.words[n.length+c-1]);for(h=Math.min(h/s|0,67108863),r._ishlnsubmul(n,h,c);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(n,1,c),r.isZero()||(r.negative^=1);o&&(o.words[c]=h)}return o&&o.strip(),r.strip(),"div"!==t&&0!==i&&r.iushrn(i),{div:o||null,mod:r}},a.prototype.divmod=function(e,t,i){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),i&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),i&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,s,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),a=i.cmp(r);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,i=0,n=this.length-1;n>=0;n--)i=(t*i+(0|this.words[n]))%e;return i},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*t;this.words[i]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),l=new a(1),f=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++f;for(var u=i.clone(),c=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(u),s.isub(c)),n.iushrn(1),s.iushrn(1);for(var _=0,p=1;0==(i.words[0]&p)&&_<26;++_,p<<=1);if(_>0)for(i.iushrn(_);_-- >0;)(o.isOdd()||l.isOdd())&&(o.iadd(u),l.isub(c)),o.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(o),s.isub(l)):(i.isub(t),o.isub(n),l.isub(s))}return{a:o,b:l,gcd:i.iushln(f)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,s=new a(1),o=new a(0),l=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;0==(t.words[0]&u)&&f<26;++f,u<<=1);if(f>0)for(t.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var c=0,h=1;0==(i.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(i.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);t.cmp(i)>=0?(t.isub(i),s.isub(o)):(i.isub(t),o.isub(s))}return(n=0===t.cmpn(1)?s:o).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var r=0;t.isEven()&&i.isEven();r++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=t.cmp(i);if(n<0){var a=t;t=i,i=a}else if(0===n||0===i.cmpn(1))break;t.isub(i)}return i.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,i=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;i--){var r=0|this.words[i],n=0|e.words[i];if(r!==n){rn&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},n(v,b),v.prototype.split=function(e,t){for(var i=Math.min(e.length,9),r=0;r>>22,n=a}n>>>=22,e.words[r-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new y;else if("p192"===e)t=new g;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return m[e]=t,t},E.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},E.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);r(!n.isZero());var o=new a(1).toRed(this),l=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(l);)u.redIAdd(l);for(var c=this.pow(u,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),_=s;0!==d.cmp(o);){for(var p=d,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m<_);var b=this.pow(c,new a(1).iushln(_-m-1));h=h.redMul(b),c=b.redSqr(),d=d.redMul(c),_=m}return h},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var r=2;r=0;r--){for(var f=t.words[r],u=l-1;u>=0;u--){var c=f>>u&1;n!==i[0]&&(n=this.sqr(n)),0!==c||0!==s?(s<<=1,s|=c,(4===++o||0===r&&0===u)&&(n=this.mul(n,i[s]),o=0,s=0)):o=0}l=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new C(e)},n(C,E),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var i=e.mul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:20}],17:[function(e,t,i){"use strict";i.byteLength=function(e){var t=f(e),i=t[0],r=t[1];return 3*(i+r)/4-r},i.toByteArray=function(e){var t,i,r=f(e),s=r[0],o=r[1],l=new a(function(e,t,i){return 3*(t+i)/4-i}(0,s,o)),u=0,c=o>0?s-4:s;for(i=0;i>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===o&&(t=n[e.charCodeAt(i)]<<2|n[e.charCodeAt(i+1)]>>4,l[u++]=255&t);1===o&&(t=n[e.charCodeAt(i)]<<10|n[e.charCodeAt(i+1)]<<4|n[e.charCodeAt(i+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},i.fromByteArray=function(e){for(var t,i=e.length,n=i%3,a=[],s=0,o=i-n;so?o:s+16383));1===n?(t=e[i-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return a.join("")};for(var r=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=s.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function u(e,t,i){for(var n,a,s=[],o=t;o>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},{}],18:[function(e,t,i){!function(t,i){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function a(e,t,i){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var s;"object"==typeof t?t.exports=a:i.BN=a,a.BN=a,a.wordSize=26;try{s=e("buffer").Buffer}catch(e){}function o(e,t,i){for(var n=0,a=Math.min(e.length,i),s=0,o=t;o=49&&f<=54?f-49+10:f>=17&&f<=22?f-17+10:f,s|=l}return r(!(240&s),"Invalid character in "+e),n}function l(e,t,i,n){for(var a=0,s=0,o=Math.min(e.length,i),l=t;l=49?f-49+10:f>=17?f-17+10:f,r(f>=0&&s0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this._strip(),"le"===i&&this._initArray(this.toArray(),t,i)},a.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},a.prototype._initArray=function(e,t,i){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)s=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[a]|=s<>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);else if("le"===i)for(n=0,a=0;n>>26-o&67108863,(o+=24)>=26&&(o-=26,a++);return this._strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i=t;i-=6)n=o(e,i,i+6),this.words[r]|=n<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);i+6!==t&&(n=o(e,t,i+6),this.words[r]|=n<>>26-a&4194303),this._strip()},a.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var a=e.length-i,s=a%r,o=Math.min(a,a-s)+i,f=0,u=i;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){a.prototype.inspect=u}else a.prototype.inspect=u;function u(){return(this.red?""}var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-l.length]+l+i:l+i,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(i=a.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var f=h[e],u=d[e];i="";var _=this.clone();for(_.negative=0;!_.isZero();){var p=_.modrn(u).toString(e);i=(_=_.idivn(u)).isZero()?p+i:c[f-p.length]+p+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},s&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function _(e,t,i){i.negative=t.negative^e.negative;var r=e.length+t.length|0;i.length=r,r=r-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,l=s/67108864|0;i.words[0]=o;for(var f=1;f>>26,c=67108863&l,h=Math.min(f,t.length-1),d=Math.max(0,f-e.length+1);d<=h;d++){var _=f-d|0;u+=(s=(n=0|e.words[_])*(a=0|t.words[d])+c)/67108864|0,c=67108863&s}i.words[f]=0|c,l=0|u}return 0!==l?i.words[f]=0|l:i.length--,i._strip()}a.prototype.toArrayLike=function(e,t,i){this._strip();var n=this.byteLength(),a=i||Math.max(1,n);r(n<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,a);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,n),s},a.prototype._toArrayLikeLE=function(e,t){for(var i=0,r=0,n=0,a=0;n>8&255),i>16&255),6===a?(i>24&255),r=0,a=0):(r=s>>>24,a+=2)}if(i=0&&(e[i--]=s>>8&255),i>=0&&(e[i--]=s>>16&255),6===a?(i>=0&&(e[i--]=s>>24&255),r=0,a=0):(r=s>>>24,a+=2)}if(i>=0)for(e[i--]=r;i>=0;)e[i--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-i),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<e.length?(i=this,r=e):(i=e,r=this);for(var n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=e):(i=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&t;for(;0!==a&&s>26,this.words[s]=67108863&t;if(0===a&&s>>13,d=0|s[1],_=8191&d,p=d>>>13,m=0|s[2],b=8191&m,v=m>>>13,y=0|s[3],g=8191&y,w=y>>>13,E=0|s[4],C=8191&E,S=E>>>13,j=0|s[5],T=8191&j,A=j>>>13,x=0|s[6],M=8191&x,k=x>>>13,P=0|s[7],I=8191&P,U=P>>>13,R=0|s[8],D=8191&R,O=R>>>13,F=0|s[9],B=8191&F,L=F>>>13,N=0|o[0],z=8191&N,H=N>>>13,V=0|o[1],Y=8191&V,q=V>>>13,X=0|o[2],W=8191&X,G=X>>>13,K=0|o[3],Q=8191&K,Z=K>>>13,J=0|o[4],$=8191&J,ee=J>>>13,te=0|o[5],ie=8191&te,re=te>>>13,ne=0|o[6],ae=8191&ne,se=ne>>>13,oe=0|o[7],le=8191&oe,fe=oe>>>13,ue=0|o[8],ce=8191&ue,he=ue>>>13,de=0|o[9],_e=8191&de,pe=de>>>13;i.negative=e.negative^t.negative,i.length=19;var me=(f+(r=Math.imul(c,z))|0)+((8191&(n=(n=Math.imul(c,H))+Math.imul(h,z)|0))<<13)|0;f=((a=Math.imul(h,H))+(n>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(_,z),n=(n=Math.imul(_,H))+Math.imul(p,z)|0,a=Math.imul(p,H);var be=(f+(r=r+Math.imul(c,Y)|0)|0)+((8191&(n=(n=n+Math.imul(c,q)|0)+Math.imul(h,Y)|0))<<13)|0;f=((a=a+Math.imul(h,q)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,z),n=(n=Math.imul(b,H))+Math.imul(v,z)|0,a=Math.imul(v,H),r=r+Math.imul(_,Y)|0,n=(n=n+Math.imul(_,q)|0)+Math.imul(p,Y)|0,a=a+Math.imul(p,q)|0;var ve=(f+(r=r+Math.imul(c,W)|0)|0)+((8191&(n=(n=n+Math.imul(c,G)|0)+Math.imul(h,W)|0))<<13)|0;f=((a=a+Math.imul(h,G)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(g,z),n=(n=Math.imul(g,H))+Math.imul(w,z)|0,a=Math.imul(w,H),r=r+Math.imul(b,Y)|0,n=(n=n+Math.imul(b,q)|0)+Math.imul(v,Y)|0,a=a+Math.imul(v,q)|0,r=r+Math.imul(_,W)|0,n=(n=n+Math.imul(_,G)|0)+Math.imul(p,W)|0,a=a+Math.imul(p,G)|0;var ye=(f+(r=r+Math.imul(c,Q)|0)|0)+((8191&(n=(n=n+Math.imul(c,Z)|0)+Math.imul(h,Q)|0))<<13)|0;f=((a=a+Math.imul(h,Z)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(C,z),n=(n=Math.imul(C,H))+Math.imul(S,z)|0,a=Math.imul(S,H),r=r+Math.imul(g,Y)|0,n=(n=n+Math.imul(g,q)|0)+Math.imul(w,Y)|0,a=a+Math.imul(w,q)|0,r=r+Math.imul(b,W)|0,n=(n=n+Math.imul(b,G)|0)+Math.imul(v,W)|0,a=a+Math.imul(v,G)|0,r=r+Math.imul(_,Q)|0,n=(n=n+Math.imul(_,Z)|0)+Math.imul(p,Q)|0,a=a+Math.imul(p,Z)|0;var ge=(f+(r=r+Math.imul(c,$)|0)|0)+((8191&(n=(n=n+Math.imul(c,ee)|0)+Math.imul(h,$)|0))<<13)|0;f=((a=a+Math.imul(h,ee)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(T,z),n=(n=Math.imul(T,H))+Math.imul(A,z)|0,a=Math.imul(A,H),r=r+Math.imul(C,Y)|0,n=(n=n+Math.imul(C,q)|0)+Math.imul(S,Y)|0,a=a+Math.imul(S,q)|0,r=r+Math.imul(g,W)|0,n=(n=n+Math.imul(g,G)|0)+Math.imul(w,W)|0,a=a+Math.imul(w,G)|0,r=r+Math.imul(b,Q)|0,n=(n=n+Math.imul(b,Z)|0)+Math.imul(v,Q)|0,a=a+Math.imul(v,Z)|0,r=r+Math.imul(_,$)|0,n=(n=n+Math.imul(_,ee)|0)+Math.imul(p,$)|0,a=a+Math.imul(p,ee)|0;var we=(f+(r=r+Math.imul(c,ie)|0)|0)+((8191&(n=(n=n+Math.imul(c,re)|0)+Math.imul(h,ie)|0))<<13)|0;f=((a=a+Math.imul(h,re)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(M,z),n=(n=Math.imul(M,H))+Math.imul(k,z)|0,a=Math.imul(k,H),r=r+Math.imul(T,Y)|0,n=(n=n+Math.imul(T,q)|0)+Math.imul(A,Y)|0,a=a+Math.imul(A,q)|0,r=r+Math.imul(C,W)|0,n=(n=n+Math.imul(C,G)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,G)|0,r=r+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,Z)|0)+Math.imul(w,Q)|0,a=a+Math.imul(w,Z)|0,r=r+Math.imul(b,$)|0,n=(n=n+Math.imul(b,ee)|0)+Math.imul(v,$)|0,a=a+Math.imul(v,ee)|0,r=r+Math.imul(_,ie)|0,n=(n=n+Math.imul(_,re)|0)+Math.imul(p,ie)|0,a=a+Math.imul(p,re)|0;var Ee=(f+(r=r+Math.imul(c,ae)|0)|0)+((8191&(n=(n=n+Math.imul(c,se)|0)+Math.imul(h,ae)|0))<<13)|0;f=((a=a+Math.imul(h,se)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(I,z),n=(n=Math.imul(I,H))+Math.imul(U,z)|0,a=Math.imul(U,H),r=r+Math.imul(M,Y)|0,n=(n=n+Math.imul(M,q)|0)+Math.imul(k,Y)|0,a=a+Math.imul(k,q)|0,r=r+Math.imul(T,W)|0,n=(n=n+Math.imul(T,G)|0)+Math.imul(A,W)|0,a=a+Math.imul(A,G)|0,r=r+Math.imul(C,Q)|0,n=(n=n+Math.imul(C,Z)|0)+Math.imul(S,Q)|0,a=a+Math.imul(S,Z)|0,r=r+Math.imul(g,$)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(w,$)|0,a=a+Math.imul(w,ee)|0,r=r+Math.imul(b,ie)|0,n=(n=n+Math.imul(b,re)|0)+Math.imul(v,ie)|0,a=a+Math.imul(v,re)|0,r=r+Math.imul(_,ae)|0,n=(n=n+Math.imul(_,se)|0)+Math.imul(p,ae)|0,a=a+Math.imul(p,se)|0;var Ce=(f+(r=r+Math.imul(c,le)|0)|0)+((8191&(n=(n=n+Math.imul(c,fe)|0)+Math.imul(h,le)|0))<<13)|0;f=((a=a+Math.imul(h,fe)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,z),n=(n=Math.imul(D,H))+Math.imul(O,z)|0,a=Math.imul(O,H),r=r+Math.imul(I,Y)|0,n=(n=n+Math.imul(I,q)|0)+Math.imul(U,Y)|0,a=a+Math.imul(U,q)|0,r=r+Math.imul(M,W)|0,n=(n=n+Math.imul(M,G)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,G)|0,r=r+Math.imul(T,Q)|0,n=(n=n+Math.imul(T,Z)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,Z)|0,r=r+Math.imul(C,$)|0,n=(n=n+Math.imul(C,ee)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,ee)|0,r=r+Math.imul(g,ie)|0,n=(n=n+Math.imul(g,re)|0)+Math.imul(w,ie)|0,a=a+Math.imul(w,re)|0,r=r+Math.imul(b,ae)|0,n=(n=n+Math.imul(b,se)|0)+Math.imul(v,ae)|0,a=a+Math.imul(v,se)|0,r=r+Math.imul(_,le)|0,n=(n=n+Math.imul(_,fe)|0)+Math.imul(p,le)|0,a=a+Math.imul(p,fe)|0;var Se=(f+(r=r+Math.imul(c,ce)|0)|0)+((8191&(n=(n=n+Math.imul(c,he)|0)+Math.imul(h,ce)|0))<<13)|0;f=((a=a+Math.imul(h,he)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(B,z),n=(n=Math.imul(B,H))+Math.imul(L,z)|0,a=Math.imul(L,H),r=r+Math.imul(D,Y)|0,n=(n=n+Math.imul(D,q)|0)+Math.imul(O,Y)|0,a=a+Math.imul(O,q)|0,r=r+Math.imul(I,W)|0,n=(n=n+Math.imul(I,G)|0)+Math.imul(U,W)|0,a=a+Math.imul(U,G)|0,r=r+Math.imul(M,Q)|0,n=(n=n+Math.imul(M,Z)|0)+Math.imul(k,Q)|0,a=a+Math.imul(k,Z)|0,r=r+Math.imul(T,$)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(A,$)|0,a=a+Math.imul(A,ee)|0,r=r+Math.imul(C,ie)|0,n=(n=n+Math.imul(C,re)|0)+Math.imul(S,ie)|0,a=a+Math.imul(S,re)|0,r=r+Math.imul(g,ae)|0,n=(n=n+Math.imul(g,se)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,se)|0,r=r+Math.imul(b,le)|0,n=(n=n+Math.imul(b,fe)|0)+Math.imul(v,le)|0,a=a+Math.imul(v,fe)|0,r=r+Math.imul(_,ce)|0,n=(n=n+Math.imul(_,he)|0)+Math.imul(p,ce)|0,a=a+Math.imul(p,he)|0;var je=(f+(r=r+Math.imul(c,_e)|0)|0)+((8191&(n=(n=n+Math.imul(c,pe)|0)+Math.imul(h,_e)|0))<<13)|0;f=((a=a+Math.imul(h,pe)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(B,Y),n=(n=Math.imul(B,q))+Math.imul(L,Y)|0,a=Math.imul(L,q),r=r+Math.imul(D,W)|0,n=(n=n+Math.imul(D,G)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,G)|0,r=r+Math.imul(I,Q)|0,n=(n=n+Math.imul(I,Z)|0)+Math.imul(U,Q)|0,a=a+Math.imul(U,Z)|0,r=r+Math.imul(M,$)|0,n=(n=n+Math.imul(M,ee)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,ee)|0,r=r+Math.imul(T,ie)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(A,ie)|0,a=a+Math.imul(A,re)|0,r=r+Math.imul(C,ae)|0,n=(n=n+Math.imul(C,se)|0)+Math.imul(S,ae)|0,a=a+Math.imul(S,se)|0,r=r+Math.imul(g,le)|0,n=(n=n+Math.imul(g,fe)|0)+Math.imul(w,le)|0,a=a+Math.imul(w,fe)|0,r=r+Math.imul(b,ce)|0,n=(n=n+Math.imul(b,he)|0)+Math.imul(v,ce)|0,a=a+Math.imul(v,he)|0;var Te=(f+(r=r+Math.imul(_,_e)|0)|0)+((8191&(n=(n=n+Math.imul(_,pe)|0)+Math.imul(p,_e)|0))<<13)|0;f=((a=a+Math.imul(p,pe)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,W),n=(n=Math.imul(B,G))+Math.imul(L,W)|0,a=Math.imul(L,G),r=r+Math.imul(D,Q)|0,n=(n=n+Math.imul(D,Z)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,Z)|0,r=r+Math.imul(I,$)|0,n=(n=n+Math.imul(I,ee)|0)+Math.imul(U,$)|0,a=a+Math.imul(U,ee)|0,r=r+Math.imul(M,ie)|0,n=(n=n+Math.imul(M,re)|0)+Math.imul(k,ie)|0,a=a+Math.imul(k,re)|0,r=r+Math.imul(T,ae)|0,n=(n=n+Math.imul(T,se)|0)+Math.imul(A,ae)|0,a=a+Math.imul(A,se)|0,r=r+Math.imul(C,le)|0,n=(n=n+Math.imul(C,fe)|0)+Math.imul(S,le)|0,a=a+Math.imul(S,fe)|0,r=r+Math.imul(g,ce)|0,n=(n=n+Math.imul(g,he)|0)+Math.imul(w,ce)|0,a=a+Math.imul(w,he)|0;var Ae=(f+(r=r+Math.imul(b,_e)|0)|0)+((8191&(n=(n=n+Math.imul(b,pe)|0)+Math.imul(v,_e)|0))<<13)|0;f=((a=a+Math.imul(v,pe)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,Q),n=(n=Math.imul(B,Z))+Math.imul(L,Q)|0,a=Math.imul(L,Z),r=r+Math.imul(D,$)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,ee)|0,r=r+Math.imul(I,ie)|0,n=(n=n+Math.imul(I,re)|0)+Math.imul(U,ie)|0,a=a+Math.imul(U,re)|0,r=r+Math.imul(M,ae)|0,n=(n=n+Math.imul(M,se)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,se)|0,r=r+Math.imul(T,le)|0,n=(n=n+Math.imul(T,fe)|0)+Math.imul(A,le)|0,a=a+Math.imul(A,fe)|0,r=r+Math.imul(C,ce)|0,n=(n=n+Math.imul(C,he)|0)+Math.imul(S,ce)|0,a=a+Math.imul(S,he)|0;var xe=(f+(r=r+Math.imul(g,_e)|0)|0)+((8191&(n=(n=n+Math.imul(g,pe)|0)+Math.imul(w,_e)|0))<<13)|0;f=((a=a+Math.imul(w,pe)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(B,$),n=(n=Math.imul(B,ee))+Math.imul(L,$)|0,a=Math.imul(L,ee),r=r+Math.imul(D,ie)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(O,ie)|0,a=a+Math.imul(O,re)|0,r=r+Math.imul(I,ae)|0,n=(n=n+Math.imul(I,se)|0)+Math.imul(U,ae)|0,a=a+Math.imul(U,se)|0,r=r+Math.imul(M,le)|0,n=(n=n+Math.imul(M,fe)|0)+Math.imul(k,le)|0,a=a+Math.imul(k,fe)|0,r=r+Math.imul(T,ce)|0,n=(n=n+Math.imul(T,he)|0)+Math.imul(A,ce)|0,a=a+Math.imul(A,he)|0;var Me=(f+(r=r+Math.imul(C,_e)|0)|0)+((8191&(n=(n=n+Math.imul(C,pe)|0)+Math.imul(S,_e)|0))<<13)|0;f=((a=a+Math.imul(S,pe)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(B,ie),n=(n=Math.imul(B,re))+Math.imul(L,ie)|0,a=Math.imul(L,re),r=r+Math.imul(D,ae)|0,n=(n=n+Math.imul(D,se)|0)+Math.imul(O,ae)|0,a=a+Math.imul(O,se)|0,r=r+Math.imul(I,le)|0,n=(n=n+Math.imul(I,fe)|0)+Math.imul(U,le)|0,a=a+Math.imul(U,fe)|0,r=r+Math.imul(M,ce)|0,n=(n=n+Math.imul(M,he)|0)+Math.imul(k,ce)|0,a=a+Math.imul(k,he)|0;var ke=(f+(r=r+Math.imul(T,_e)|0)|0)+((8191&(n=(n=n+Math.imul(T,pe)|0)+Math.imul(A,_e)|0))<<13)|0;f=((a=a+Math.imul(A,pe)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(B,ae),n=(n=Math.imul(B,se))+Math.imul(L,ae)|0,a=Math.imul(L,se),r=r+Math.imul(D,le)|0,n=(n=n+Math.imul(D,fe)|0)+Math.imul(O,le)|0,a=a+Math.imul(O,fe)|0,r=r+Math.imul(I,ce)|0,n=(n=n+Math.imul(I,he)|0)+Math.imul(U,ce)|0,a=a+Math.imul(U,he)|0;var Pe=(f+(r=r+Math.imul(M,_e)|0)|0)+((8191&(n=(n=n+Math.imul(M,pe)|0)+Math.imul(k,_e)|0))<<13)|0;f=((a=a+Math.imul(k,pe)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(B,le),n=(n=Math.imul(B,fe))+Math.imul(L,le)|0,a=Math.imul(L,fe),r=r+Math.imul(D,ce)|0,n=(n=n+Math.imul(D,he)|0)+Math.imul(O,ce)|0,a=a+Math.imul(O,he)|0;var Ie=(f+(r=r+Math.imul(I,_e)|0)|0)+((8191&(n=(n=n+Math.imul(I,pe)|0)+Math.imul(U,_e)|0))<<13)|0;f=((a=a+Math.imul(U,pe)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,ce),n=(n=Math.imul(B,he))+Math.imul(L,ce)|0,a=Math.imul(L,he);var Ue=(f+(r=r+Math.imul(D,_e)|0)|0)+((8191&(n=(n=n+Math.imul(D,pe)|0)+Math.imul(O,_e)|0))<<13)|0;f=((a=a+Math.imul(O,pe)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863;var Re=(f+(r=Math.imul(B,_e))|0)+((8191&(n=(n=Math.imul(B,pe))+Math.imul(L,_e)|0))<<13)|0;return f=((a=Math.imul(L,pe))+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,l[0]=me,l[1]=be,l[2]=ve,l[3]=ye,l[4]=ge,l[5]=we,l[6]=Ee,l[7]=Ce,l[8]=Se,l[9]=je,l[10]=Te,l[11]=Ae,l[12]=xe,l[13]=Me,l[14]=ke,l[15]=Pe,l[16]=Ie,l[17]=Ue,l[18]=Re,0!==f&&(l[19]=f,i.length++),i};function m(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var r=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}i.words[a]=o,r=s,s=n}return 0!==r?i.words[a]=r:i.length--,i._strip()}function b(e,t,i){return m(e,t,i)}function v(e,t){this.x=e,this.y=t}Math.imul||(p=_),a.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):i<63?_(this,e,t):i<1024?m(this,e,t):b(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),i=a.prototype._countBits(e)-1,r=0;r>=1;return r},v.prototype.permute=function(e,t,i,r,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,i[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,i+=a/67108864|0,i+=s>>>26,this.words[n]=67108863&s}return 0!==i&&(this.words[n]=i,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i>>n&1}return t}(e);if(0===t.length)return new a(1);for(var i=this,r=0;r=0);var t,i=e%26,n=(e-i)/26,a=67108863>>>26-i<<26-i;if(0!==i){var s=0;for(t=0;t>>26-i}s&&(this.words[t]=s,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==u||f>=n);f--){var c=0|this.words[f];this.words[f]=u<<26-a|c>>>a,u=c&o}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,i){return r(0===this.negative),this.iushrn(e,t,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,n=1<=0);var t=e%26,i=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(l/67108864|0),this.words[n+i]=67108863&a}for(;n>26,this.words[n+i]=67108863&a;if(0===o)return this._strip();for(r(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var i=(this.length,e.length),r=this.clone(),n=e,s=0|n.words[n.length-1];0!==(i=26-this._countBits(s))&&(n=n.ushln(i),r.iushln(i),s=0|n.words[n.length-1]);var o,l=r.length-n.length;if("mod"!==t){(o=new a(null)).length=l+1,o.words=new Array(o.length);for(var f=0;f=0;c--){var h=67108864*(0|r.words[n.length+c])+(0|r.words[n.length+c-1]);for(h=Math.min(h/s|0,67108863),r._ishlnsubmul(n,h,c);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(n,1,c),r.isZero()||(r.negative^=1);o&&(o.words[c]=h)}return o&&o._strip(),r._strip(),"div"!==t&&0!==i&&r.iushrn(i),{div:o||null,mod:r}},a.prototype.divmod=function(e,t,i){return r(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),i&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),i&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,s,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),a=i.cmp(r);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var i=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(i*n+(0|this.words[a]))%e;return t?-n:n},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var i=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*i;this.words[n]=a/e|0,i=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),l=new a(1),f=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++f;for(var u=i.clone(),c=t.clone();!t.isZero();){for(var h=0,d=1;0==(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(u),s.isub(c)),n.iushrn(1),s.iushrn(1);for(var _=0,p=1;0==(i.words[0]&p)&&_<26;++_,p<<=1);if(_>0)for(i.iushrn(_);_-- >0;)(o.isOdd()||l.isOdd())&&(o.iadd(u),l.isub(c)),o.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(o),s.isub(l)):(i.isub(t),o.isub(n),l.isub(s))}return{a:o,b:l,gcd:i.iushln(f)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,s=new a(1),o=new a(0),l=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var f=0,u=1;0==(t.words[0]&u)&&f<26;++f,u<<=1);if(f>0)for(t.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var c=0,h=1;0==(i.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(i.iushrn(c);c-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);t.cmp(i)>=0?(t.isub(i),s.isub(o)):(i.isub(t),o.isub(s))}return(n=0===t.cmpn(1)?s:o).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var r=0;t.isEven()&&i.isEven();r++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=t.cmp(i);if(n<0){var a=t;t=i,i=a}else if(0===n||0===i.cmpn(1))break;t.isub(i)}return i.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,i=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)t=1;else{i&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;i--){var r=0|this.words[i],n=0|e.words[i];if(r!==n){rn&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new j(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function j(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function T(e){j.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(w,g),w.prototype.split=function(e,t){for(var i=Math.min(e.length,9),r=0;r>>22,n=a}n>>>=22,e.words[r-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new E;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return y[e]=t,t},j.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},j.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},j.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},j.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},j.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},j.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},j.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},j.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},j.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},j.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},j.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},j.prototype.isqr=function(e){return this.imul(e,e.clone())},j.prototype.sqr=function(e){return this.mul(e,e)},j.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);r(!n.isZero());var o=new a(1).toRed(this),l=o.redNeg(),f=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,f).cmp(l);)u.redIAdd(l);for(var c=this.pow(u,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),_=s;0!==d.cmp(o);){for(var p=d,m=0;0!==p.cmp(o);m++)p=p.redSqr();r(m<_);var b=this.pow(c,new a(1).iushln(_-m-1));h=h.redMul(b),c=b.redSqr(),d=d.redMul(c),_=m}return h},j.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},j.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var r=2;r=0;r--){for(var f=t.words[r],u=l-1;u>=0;u--){var c=f>>u&1;n!==i[0]&&(n=this.sqr(n)),0!==c||0!==s?(s<<=1,s|=c,(4===++o||0===r&&0===u)&&(n=this.mul(n,i[s]),o=0,s=0)):o=0}l=26}return n},j.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},j.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new T(e)},n(T,j),T.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},T.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},T.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var i=e.mul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},T.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:20}],19:[function(e,t,i){var r;function n(e){this.rand=e}if(t.exports=function(e){return r||(r=new n(null)),r.generate(e)},t.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i>>24]^u[_>>>16&255]^c[p>>>8&255]^h[255&m]^t[b++],s=f[_>>>24]^u[p>>>16&255]^c[m>>>8&255]^h[255&d]^t[b++],o=f[p>>>24]^u[m>>>16&255]^c[d>>>8&255]^h[255&_]^t[b++],l=f[m>>>24]^u[d>>>16&255]^c[_>>>8&255]^h[255&p]^t[b++],d=a,_=s,p=o,m=l;return a=(r[d>>>24]<<24|r[_>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[b++],s=(r[_>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&d])^t[b++],o=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[d>>>8&255]<<8|r[255&_])^t[b++],l=(r[m>>>24]<<24|r[d>>>16&255]<<16|r[_>>>8&255]<<8|r[255&p])^t[b++],[a>>>=0,s>>>=0,o>>>=0,l>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],r=[],n=[[],[],[],[]],a=[[],[],[],[]],s=0,o=0,l=0;l<256;++l){var f=o^o<<1^o<<2^o<<3^o<<4;f=f>>>8^255&f^99,i[s]=f,r[f]=s;var u=e[s],c=e[u],h=e[c],d=257*e[f]^16843008*f;n[0][s]=d<<24|d>>>8,n[1][s]=d<<16|d>>>16,n[2][s]=d<<8|d>>>24,n[3][s]=d,d=16843009*h^65537*c^257*u^16843008*s,a[0][f]=d<<24|d>>>8,a[1][f]=d<<16|d>>>16,a[2][f]=d<<8|d>>>24,a[3][f]=d,0===s?s=o=1:(s=u^e[e[e[h^u]]],o^=e[e[o]])}return{SBOX:i,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:a}}();function f(e){this._key=n(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,i=t+6,r=4*(i+1),n=[],a=0;a>>24,s=l.SBOX[s>>>24]<<24|l.SBOX[s>>>16&255]<<16|l.SBOX[s>>>8&255]<<8|l.SBOX[255&s],s^=o[a/t|0]<<24):t>6&&a%t==4&&(s=l.SBOX[s>>>24]<<24|l.SBOX[s>>>16&255]<<16|l.SBOX[s>>>8&255]<<8|l.SBOX[255&s]),n[a]=n[a-t]^s}for(var f=[],u=0;u>>24]]^l.INV_SUB_MIX[1][l.SBOX[h>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[h>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&h]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return s(e=n(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=r.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},f.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var i=s(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),a=r.allocUnsafe(16);return a.writeUInt32BE(i[0],0),a.writeUInt32BE(i[3],4),a.writeUInt32BE(i[2],8),a.writeUInt32BE(i[1],12),a},f.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=f},{"safe-buffer":184}],22:[function(e,t,i){var r=e("./aes"),n=e("safe-buffer").Buffer,a=e("cipher-base"),s=e("inherits"),o=e("./ghash"),l=e("buffer-xor"),f=e("./incr32");function u(e,t,i,s){a.call(this);var l=n.alloc(4,0);this._cipher=new r.AES(t);var u=this._cipher.encryptBlock(l);this._ghash=new o(u),i=function(e,t,i){if(12===t.length)return e._finID=n.concat([t,n.from([0,0,0,1])]),n.concat([t,n.from([0,0,0,2])]);var r=new o(i),a=t.length,s=a%16;r.update(t),s&&(s=16-s,r.update(n.alloc(s,0))),r.update(n.alloc(8,0));var l=8*a,u=n.alloc(8);u.writeUIntBE(l,0,8),r.update(u),e._finID=r.state;var c=n.from(e._finID);return f(c),c}(this,i,u),this._prev=n.from(i),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}s(u,a),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=n.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var i=0;e.length!==t.length&&i++;for(var r=Math.min(e.length,t.length),n=0;n16)throw new Error("unable to decrypt data");var i=-1;for(;++i16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},c.prototype.flush=function(){if(this.cache.length)return this.cache},i.createDecipher=function(e,t){var i=a[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var r=f(t,!1,i.key,i.iv);return h(e,r.key,r.iv)},i.createDecipheriv=h},{"./aes":21,"./authCipher":22,"./modes":34,"./streamCipher":37,"cipher-base":67,evp_bytestokey:105,inherits:136,"safe-buffer":184}],25:[function(e,t,i){var r=e("./modes"),n=e("./authCipher"),a=e("safe-buffer").Buffer,s=e("./streamCipher"),o=e("cipher-base"),l=e("./aes"),f=e("evp_bytestokey");function u(e,t,i){o.call(this),this._cache=new h,this._cipher=new l.AES(t),this._prev=a.from(i),this._mode=e,this._autopadding=!0}e("inherits")(u,o),u.prototype._update=function(e){var t,i;this._cache.add(e);for(var r=[];t=this._cache.get();)i=this._mode.encrypt(this,t),r.push(i);return a.concat(r)};var c=a.alloc(16,16);function h(){this.cache=a.allocUnsafe(0)}function d(e,t,i){var o=r[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==o.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof i&&(i=a.from(i)),"GCM"!==o.mode&&i.length!==o.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===o.type?new s(o.module,t,i):"auth"===o.type?new n(o.module,t,i):new u(o.module,t,i)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(c))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=a.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),i=-1;++i>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=a(n)},s.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=s},{"safe-buffer":184}],27:[function(e,t,i){t.exports=function(e){for(var t,i=e.length;i--;){if(255!==(t=e.readUInt8(i))){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}},{}],28:[function(e,t,i){var r=e("buffer-xor");i.encrypt=function(e,t){var i=r(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},i.decrypt=function(e,t){var i=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return r(n,i)}},{"buffer-xor":65}],29:[function(e,t,i){var r=e("safe-buffer").Buffer,n=e("buffer-xor");function a(e,t,i){var a=t.length,s=n(t,e._cache);return e._cache=e._cache.slice(a),e._prev=r.concat([e._prev,i?t:s]),s}i.encrypt=function(e,t,i){for(var n,s=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){s=r.concat([s,a(e,t,i)]);break}n=e._cache.length,s=r.concat([s,a(e,t.slice(0,n),i)]),t=t.slice(n)}return s}},{"buffer-xor":65,"safe-buffer":184}],30:[function(e,t,i){var r=e("safe-buffer").Buffer;function n(e,t,i){for(var r,n,s=-1,o=0;++s<8;)r=t&1<<7-s?128:0,o+=(128&(n=e._cipher.encryptBlock(e._prev)[0]^r))>>s%8,e._prev=a(e._prev,i?r:n);return o}function a(e,t){var i=e.length,n=-1,a=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++n>7;return a}i.encrypt=function(e,t,i){for(var a=t.length,s=r.allocUnsafe(a),o=-1;++o=0||!i.umod(e.prime1)||!i.umod(e.prime2);)i=new r(n(t));return i}t.exports=a,a.getr=s}).call(this,e("buffer").Buffer)},{"bn.js":42,buffer:66,randombytes:166}],42:[function(e,t,i){arguments[4][16][0].apply(i,arguments)},{buffer:20,dup:16}],43:[function(e,t,i){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":44}],44:[function(e,t,i){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],45:[function(e,t,i){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],46:[function(e,t,i){var r=e("safe-buffer").Buffer,n=e("create-hash"),a=e("readable-stream"),s=e("inherits"),o=e("./sign"),l=e("./verify"),f=e("./algorithms.json");function u(e){a.Writable.call(this);var t=f[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function c(e){a.Writable.call(this);var t=f[e];if(!t)throw new Error("Unknown message digest");this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new u(e)}function d(e){return new c(e)}Object.keys(f).forEach((function(e){f[e].id=r.from(f[e].id,"hex"),f[e.toLowerCase()]=f[e]})),s(u,a.Writable),u.prototype._write=function(e,t,i){this._hash.update(e),i()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),r=o(i,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},s(c,a.Writable),c.prototype._write=function(e,t,i){this._hash.update(e),i()},c.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},c.prototype.verify=function(e,t,i){"string"==typeof t&&(t=r.from(t,i)),this.end();var n=this._hash.digest();return l(t,n,e,this._signType,this._tag)},t.exports={Sign:h,Verify:d,createSign:h,createVerify:d}},{"./algorithms.json":44,"./sign":47,"./verify":48,"create-hash":71,inherits:136,"readable-stream":63,"safe-buffer":184}],47:[function(e,t,i){var r=e("safe-buffer").Buffer,n=e("create-hmac"),a=e("browserify-rsa"),s=e("elliptic").ec,o=e("bn.js"),l=e("parse-asn1"),f=e("./curves.json");function u(e,t,i,a){if((e=r.from(e.toArray())).length0&&i.ishrn(r),i}function h(e,t,i){var a,s;do{for(a=r.alloc(0);8*a.length=t)throw new Error("invalid sig")}t.exports=function(e,t,i,f,u){var c=s(i);if("ec"===c.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(e,t,i){var r=o[i.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var n=new a(r),s=i.data.subjectPrivateKey.data;return n.verify(t,e,s)}(e,t,c)}if("dsa"===c.type){if("dsa"!==f)throw new Error("wrong public key type");return function(e,t,i){var r=i.data.p,a=i.data.q,o=i.data.g,f=i.data.pub_key,u=s.signature.decode(e,"der"),c=u.s,h=u.r;l(c,a),l(h,a);var d=n.mont(r),_=c.invm(a);return 0===o.toRed(d).redPow(new n(t).mul(_).mod(a)).fromRed().mul(f.toRed(d).redPow(h.mul(_).mod(a)).fromRed()).mod(r).mod(a).cmp(h)}(e,t,c)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");t=r.concat([u,t]);for(var h=c.modulus.byteLength(),d=[1],_=0;t.length+d.length+22?"one of ".concat(t," ").concat(e.slice(0,i-1).join(", "),", or ")+e[i-1]:2===i?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,i){var r,n,s,o;if("string"==typeof t&&(n="not ",t.substr(!s||s<0?0:+s,n.length)===n)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,i){return(void 0===i||i>e.length)&&(i=e.length),e.substring(i-t.length,i)===t}(e," argument"))o="The ".concat(e," ").concat(r," ").concat(a(t,"type"));else{var l=function(e,t,i){return"number"!=typeof i&&(i=0),!(i+t.length>e.length)&&-1!==e.indexOf(t,i)}(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(l," ").concat(r," ").concat(a(t,"type"))}return o+=". Received type ".concat(typeof i)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},{}],50:[function(e,t,i){(function(i){"use strict";var r=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};t.exports=f;var n=e("./_stream_readable"),a=e("./_stream_writable");e("inherits")(f,n);for(var s=r(a.prototype),o=0;o0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===o.prototype||(t=function(e){return o.from(e)}(t)),r)s.endEmitted?E(e,new w):A(e,s,t,!0);else if(s.ended)E(e,new y);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!i?(t=s.decoder.write(t),s.objectMode||0!==t.length?A(e,s,t,!1):P(e,s)):A(e,s,t,!1)}else r||(s.reading=!1,P(e,s));return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;f("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(k,e))}function k(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,O(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function R(e){f("readable nexttick read 0"),e.read(0)}function D(e,t){f("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),O(e),t.flowing&&!t.reading&&e.read(0)}function O(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function F(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):i=t.buffer.consume(e,t.decoder),i);var i}function B(e){var t=e._readableState;f("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(L,t,e))}function L(e,t){if(f("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var i=t._writableState;(!i||i.autoDestroy&&i.finished)&&t.destroy()}}function N(e,t){for(var i=0,r=e.length;i=t.highWaterMark:t.length>0)||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):M(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&B(this),null;var r,n=t.needReadable;return f("need readable",n),(0===t.length||t.length-e0?F(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&B(this)),null!==r&&this.emit("data",r),r},j.prototype._read=function(e){E(this,new g("_read()"))},j.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,f("pipe count=%d opts=%j",n.pipesCount,t);var s=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?l:m;function o(t,i){f("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),e.removeListener("close",_),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",o),r.removeListener("end",l),r.removeListener("end",m),r.removeListener("data",h),c=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function l(){f("onend"),e.end()}n.endEmitted?i.nextTick(s):r.once("end",s),e.on("unpipe",o);var u=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,O(e))}}(r);e.on("drain",u);var c=!1;function h(t){f("ondata");var i=e.write(t);f("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==N(n.pipes,e))&&!c&&(f("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function d(t){f("onerror",t),m(),e.removeListener("error",d),0===a(e,"error")&&E(e,t)}function _(){e.removeListener("finish",p),m()}function p(){f("onfinish"),e.removeListener("close",_),m()}function m(){f("unpipe"),r.unpipe(e)}return r.on("data",h),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",d),e.once("close",_),e.once("finish",p),e.emit("pipe",r),n.flowing||(f("pipe resume"),r.resume()),e},j.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,f("on readable",n.length,n.reading),n.length?M(this):n.reading||i.nextTick(R,this))),r},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(e,t){var r=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(U,this),r},j.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(U,this),t},j.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(D,e,t))}(this,e)),e.paused=!1,this},j.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(e){var t=this,i=this._readableState,r=!1;for(var n in e.on("end",(function(){if(f("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(n){(f("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n)||(i.objectMode||n&&n.length)&&(t.push(n)||(r=!0,e.pause()))})),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var a=0;a-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),j.prototype._write=function(e,t,i){i(new p("_write()"))},j.prototype._writev=null,j.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,P(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),j.prototype.destroy=c.destroy,j.prototype._undestroy=c.undestroy,j.prototype._destroy=function(e,t){t(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":49,"./_stream_duplex":50,"./internal/streams/destroy":57,"./internal/streams/state":61,"./internal/streams/stream":62,_process:158,buffer:66,inherits:136,"util-deprecate":197}],55:[function(e,t,i){(function(i){"use strict";var r;function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var a=e("./end-of-stream"),s=Symbol("lastResolve"),o=Symbol("lastReject"),l=Symbol("error"),f=Symbol("ended"),u=Symbol("lastPromise"),c=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function _(e){var t=e[s];if(null!==t){var i=e[h].read();null!==i&&(e[u]=null,e[s]=null,e[o]=null,t(d(i,!1)))}}function p(e){i.nextTick(_,e)}var m=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((n(r={get stream(){return this[h]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[f])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[l]?r(e[l]):t(d(void 0,!0))}))}));var r,n=this[u];if(n)r=new Promise(function(e,t){return function(i,r){e.then((function(){t[f]?i(d(void 0,!0)):t[c](i,r)}),r)}}(n,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(d(a,!1));r=new Promise(this[c])}return this[u]=r,r}},Symbol.asyncIterator,(function(){return this})),n(r,"return",(function(){var e=this;return new Promise((function(t,i){e[h].destroy(null,(function(e){e?i(e):t(d(void 0,!0))}))}))})),r),m);t.exports=function(e){var t,i=Object.create(b,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,o,{value:null,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,f,{value:e._readableState.endEmitted,writable:!0}),n(t,c,{value:function(e,t){var r=i[h].read();r?(i[u]=null,i[s]=null,i[o]=null,e(d(r,!1))):(i[s]=e,i[o]=t)},writable:!0}),t));return i[u]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=i[o];return null!==t&&(i[u]=null,i[s]=null,i[o]=null,t(e)),void(i[l]=e)}var r=i[s];null!==r&&(i[u]=null,i[s]=null,i[o]=null,r(d(void 0,!0))),i[f]=!0})),e.on("readable",p.bind(null,i)),i}}).call(this,e("_process"))},{"./end-of-stream":58,_process:158}],56:[function(e,t,i){"use strict";function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function a(e,t){for(var i=0;i0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,i,r,n=s.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,i=n,r=o,s.prototype.copy.call(t,i,r),o+=a.data.length,a=a.next;return n}},{key:"consume",value:function(e,t){var i;return en.length?n.length:e;if(a===n.length?r+=n:r+=n.slice(0,e),0==(e-=a)){a===n.length?(++i,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(a));break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),i=this.head,r=1;for(i.data.copy(t),e-=i.data.length;i=i.next;){var n=i.data,a=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,a),0==(e-=a)){a===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=n.slice(a));break}++r}return this.length-=r,t}},{key:l,value:function(e,t){return o(this,function(e){for(var t=1;t0,(function(e){r||(r=e),e&&s.forEach(f),a||(s.forEach(f),n(r))}))}));return t.reduce(u)}},{"../../../errors":49,"./end-of-stream":58}],61:[function(e,t,i){"use strict";var r=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,i,n){var a=function(e,t,i){return null!=e.highWaterMark?e.highWaterMark:t?e[i]:null}(t,n,i);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(n?i:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}}},{"../../../errors":49}],62:[function(e,t,i){t.exports=e("events").EventEmitter},{events:104}],63:[function(e,t,i){(i=t.exports=e("./lib/_stream_readable.js")).Stream=i,i.Readable=i,i.Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js"),i.finished=e("./lib/internal/streams/end-of-stream.js"),i.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":50,"./lib/_stream_passthrough.js":51,"./lib/_stream_readable.js":52,"./lib/_stream_transform.js":53,"./lib/_stream_writable.js":54,"./lib/internal/streams/end-of-stream.js":58,"./lib/internal/streams/pipeline.js":60}],64:[function(e,t,i){arguments[4][20][0].apply(i,arguments)},{dup:20}],65:[function(e,t,i){(function(e){t.exports=function(t,i){for(var r=Math.min(t.length,i.length),n=new e(r),a=0;a>>32-t}function f(e,t,i,r,n,a,s){return l(e+(t&i|~t&r)+n+a|0,s)+t|0}function u(e,t,i,r,n,a,s){return l(e+(t&r|i&~r)+n+a|0,s)+t|0}function c(e,t,i,r,n,a,s){return l(e+(t^i^r)+n+a|0,s)+t|0}function h(e,t,i,r,n,a,s){return l(e+(i^(t|~r))+n+a|0,s)+t|0}r(o,n),o.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var i=this._a,r=this._b,n=this._c,a=this._d;i=f(i,r,n,a,e[0],3614090360,7),a=f(a,i,r,n,e[1],3905402710,12),n=f(n,a,i,r,e[2],606105819,17),r=f(r,n,a,i,e[3],3250441966,22),i=f(i,r,n,a,e[4],4118548399,7),a=f(a,i,r,n,e[5],1200080426,12),n=f(n,a,i,r,e[6],2821735955,17),r=f(r,n,a,i,e[7],4249261313,22),i=f(i,r,n,a,e[8],1770035416,7),a=f(a,i,r,n,e[9],2336552879,12),n=f(n,a,i,r,e[10],4294925233,17),r=f(r,n,a,i,e[11],2304563134,22),i=f(i,r,n,a,e[12],1804603682,7),a=f(a,i,r,n,e[13],4254626195,12),n=f(n,a,i,r,e[14],2792965006,17),i=u(i,r=f(r,n,a,i,e[15],1236535329,22),n,a,e[1],4129170786,5),a=u(a,i,r,n,e[6],3225465664,9),n=u(n,a,i,r,e[11],643717713,14),r=u(r,n,a,i,e[0],3921069994,20),i=u(i,r,n,a,e[5],3593408605,5),a=u(a,i,r,n,e[10],38016083,9),n=u(n,a,i,r,e[15],3634488961,14),r=u(r,n,a,i,e[4],3889429448,20),i=u(i,r,n,a,e[9],568446438,5),a=u(a,i,r,n,e[14],3275163606,9),n=u(n,a,i,r,e[3],4107603335,14),r=u(r,n,a,i,e[8],1163531501,20),i=u(i,r,n,a,e[13],2850285829,5),a=u(a,i,r,n,e[2],4243563512,9),n=u(n,a,i,r,e[7],1735328473,14),i=c(i,r=u(r,n,a,i,e[12],2368359562,20),n,a,e[5],4294588738,4),a=c(a,i,r,n,e[8],2272392833,11),n=c(n,a,i,r,e[11],1839030562,16),r=c(r,n,a,i,e[14],4259657740,23),i=c(i,r,n,a,e[1],2763975236,4),a=c(a,i,r,n,e[4],1272893353,11),n=c(n,a,i,r,e[7],4139469664,16),r=c(r,n,a,i,e[10],3200236656,23),i=c(i,r,n,a,e[13],681279174,4),a=c(a,i,r,n,e[0],3936430074,11),n=c(n,a,i,r,e[3],3572445317,16),r=c(r,n,a,i,e[6],76029189,23),i=c(i,r,n,a,e[9],3654602809,4),a=c(a,i,r,n,e[12],3873151461,11),n=c(n,a,i,r,e[15],530742520,16),i=h(i,r=c(r,n,a,i,e[2],3299628645,23),n,a,e[0],4096336452,6),a=h(a,i,r,n,e[7],1126891415,10),n=h(n,a,i,r,e[14],2878612391,15),r=h(r,n,a,i,e[5],4237533241,21),i=h(i,r,n,a,e[12],1700485571,6),a=h(a,i,r,n,e[3],2399980690,10),n=h(n,a,i,r,e[10],4293915773,15),r=h(r,n,a,i,e[1],2240044497,21),i=h(i,r,n,a,e[8],1873313359,6),a=h(a,i,r,n,e[15],4264355552,10),n=h(n,a,i,r,e[6],2734768916,15),r=h(r,n,a,i,e[13],1309151649,21),i=h(i,r,n,a,e[4],4149444226,6),a=h(a,i,r,n,e[11],3174756917,10),n=h(n,a,i,r,e[2],718787259,15),r=h(r,n,a,i,e[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+r|0,this._c=this._c+n|0,this._d=this._d+a|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=o},{"hash-base":106,inherits:136,"safe-buffer":184}],140:[function(e,t,i){var r=e("bn.js"),n=e("brorand");function a(e){this.rand=e||new n.Rand}t.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),i=Math.ceil(t/8);do{var n=new r(this.rand.generate(i))}while(n.cmp(e)>=0);return n},a.prototype._randrange=function(e,t){var i=t.sub(e);return e.add(this._randbelow(i))},a.prototype.test=function(e,t,i){var n=e.bitLength(),a=r.mont(e),s=new r(1).toRed(a);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),l=0;!o.testn(l);l++);for(var f=e.shrn(l),u=o.toRed(a);t>0;t--){var c=this._randrange(new r(2),o);i&&i(c);var h=c.toRed(a).redPow(f);if(0!==h.cmp(s)&&0!==h.cmp(u)){for(var d=1;d0;t--){var u=this._randrange(new r(2),s),c=e.gcd(u);if(0!==c.cmpn(1))return c;var h=u.toRed(n).redPow(l);if(0!==h.cmp(a)&&0!==h.cmp(f)){for(var d=1;d>8,s=255&n;a?i.push(a,s):i.push(s)}return i},r.zero2=n,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},{}],144:[function(e,t,i){var r,n,a=(r=new Date,n=4,{setLogLevel:function(e){n=e==this.debug?1:e==this.info?2:e==this.warn?3:(this.error,4)},debug:function(e,t){void 0===console.debug&&(console.debug=console.log),1>=n&&console.debug("["+a.getDurationString(new Date-r,1e3)+"]","["+e+"]",t)},log:function(e,t){this.debug(e.msg)},info:function(e,t){2>=n&&console.info("["+a.getDurationString(new Date-r,1e3)+"]","["+e+"]",t)},warn:function(e,t){3>=n&&console.warn("["+a.getDurationString(new Date-r,1e3)+"]","["+e+"]",t)},error:function(e,t){4>=n&&console.error("["+a.getDurationString(new Date-r,1e3)+"]","["+e+"]",t)}});a.getDurationString=function(e,t){var i;function r(e,t){for(var i=(""+e).split(".");i[0].length0){for(var i="",r=0;r0&&(i+=","),i+="["+a.getDurationString(e.start(r))+","+a.getDurationString(e.end(r))+"]";return i}return"(empty)"},void 0!==i&&(i.Log=a);var s=function(e){if(!(e instanceof ArrayBuffer))throw"Needs an array buffer";this.buffer=e,this.dataview=new DataView(e),this.position=0};s.prototype.getPosition=function(){return this.position},s.prototype.getEndPosition=function(){return this.buffer.byteLength},s.prototype.getLength=function(){return this.buffer.byteLength},s.prototype.seek=function(e){var t=Math.max(0,Math.min(this.buffer.byteLength,e));return this.position=isNaN(t)||!isFinite(t)?0:t,!0},s.prototype.isEos=function(){return this.getPosition()>=this.getEndPosition()},s.prototype.readAnyInt=function(e,t){var i=0;if(this.position+e<=this.buffer.byteLength){switch(e){case 1:i=t?this.dataview.getInt8(this.position):this.dataview.getUint8(this.position);break;case 2:i=t?this.dataview.getInt16(this.position):this.dataview.getUint16(this.position);break;case 3:if(t)throw"No method for reading signed 24 bits values";i=this.dataview.getUint8(this.position)<<16,i|=this.dataview.getUint8(this.position)<<8,i|=this.dataview.getUint8(this.position);break;case 4:i=t?this.dataview.getInt32(this.position):this.dataview.getUint32(this.position);break;case 8:if(t)throw"No method for reading signed 64 bits values";i=this.dataview.getUint32(this.position)<<32,i|=this.dataview.getUint32(this.position);break;default:throw"readInt method not implemented for size: "+e}return this.position+=e,i}throw"Not enough bytes in buffer"},s.prototype.readUint8=function(){return this.readAnyInt(1,!1)},s.prototype.readUint16=function(){return this.readAnyInt(2,!1)},s.prototype.readUint24=function(){return this.readAnyInt(3,!1)},s.prototype.readUint32=function(){return this.readAnyInt(4,!1)},s.prototype.readUint64=function(){return this.readAnyInt(8,!1)},s.prototype.readString=function(e){if(this.position+e<=this.buffer.byteLength){for(var t="",i=0;ithis._byteLength&&(this._byteLength=t);else{for(i<1&&(i=1);t>i;)i*=2;var r=new ArrayBuffer(i),n=new Uint8Array(this._buffer);new Uint8Array(r,0,n.length).set(n),this.buffer=r,this._byteLength=t}}},o.prototype._trimAlloc=function(){if(this._byteLength!=this._buffer.byteLength){var e=new ArrayBuffer(this._byteLength),t=new Uint8Array(e),i=new Uint8Array(this._buffer,0,t.length);t.set(i),this.buffer=e}},o.BIG_ENDIAN=!1,o.LITTLE_ENDIAN=!0,o.prototype._byteLength=0,Object.defineProperty(o.prototype,"byteLength",{get:function(){return this._byteLength-this._byteOffset}}),Object.defineProperty(o.prototype,"buffer",{get:function(){return this._trimAlloc(),this._buffer},set:function(e){this._buffer=e,this._dataView=new DataView(this._buffer,this._byteOffset),this._byteLength=this._buffer.byteLength}}),Object.defineProperty(o.prototype,"byteOffset",{get:function(){return this._byteOffset},set:function(e){this._byteOffset=e,this._dataView=new DataView(this._buffer,this._byteOffset),this._byteLength=this._buffer.byteLength}}),Object.defineProperty(o.prototype,"dataView",{get:function(){return this._dataView},set:function(e){this._byteOffset=e.byteOffset,this._buffer=e.buffer,this._dataView=new DataView(this._buffer,this._byteOffset),this._byteLength=this._byteOffset+e.byteLength}}),o.prototype.seek=function(e){var t=Math.max(0,Math.min(this.byteLength,e));this.position=isNaN(t)||!isFinite(t)?0:t},o.prototype.isEof=function(){return this.position>=this._byteLength},o.prototype.mapUint8Array=function(e){this._realloc(1*e);var t=new Uint8Array(this._buffer,this.byteOffset+this.position,e);return this.position+=1*e,t},o.prototype.readInt32Array=function(e,t){e=null==e?this.byteLength-this.position/4:e;var i=new Int32Array(e);return o.memcpy(i.buffer,0,this.buffer,this.byteOffset+this.position,e*i.BYTES_PER_ELEMENT),o.arrayToNative(i,null==t?this.endianness:t),this.position+=i.byteLength,i},o.prototype.readInt16Array=function(e,t){e=null==e?this.byteLength-this.position/2:e;var i=new Int16Array(e);return o.memcpy(i.buffer,0,this.buffer,this.byteOffset+this.position,e*i.BYTES_PER_ELEMENT),o.arrayToNative(i,null==t?this.endianness:t),this.position+=i.byteLength,i},o.prototype.readInt8Array=function(e){e=null==e?this.byteLength-this.position:e;var t=new Int8Array(e);return o.memcpy(t.buffer,0,this.buffer,this.byteOffset+this.position,e*t.BYTES_PER_ELEMENT),this.position+=t.byteLength,t},o.prototype.readUint32Array=function(e,t){e=null==e?this.byteLength-this.position/4:e;var i=new Uint32Array(e);return o.memcpy(i.buffer,0,this.buffer,this.byteOffset+this.position,e*i.BYTES_PER_ELEMENT),o.arrayToNative(i,null==t?this.endianness:t),this.position+=i.byteLength,i},o.prototype.readUint16Array=function(e,t){e=null==e?this.byteLength-this.position/2:e;var i=new Uint16Array(e);return o.memcpy(i.buffer,0,this.buffer,this.byteOffset+this.position,e*i.BYTES_PER_ELEMENT),o.arrayToNative(i,null==t?this.endianness:t),this.position+=i.byteLength,i},o.prototype.readUint8Array=function(e){e=null==e?this.byteLength-this.position:e;var t=new Uint8Array(e);return o.memcpy(t.buffer,0,this.buffer,this.byteOffset+this.position,e*t.BYTES_PER_ELEMENT),this.position+=t.byteLength,t},o.prototype.readFloat64Array=function(e,t){e=null==e?this.byteLength-this.position/8:e;var i=new Float64Array(e);return o.memcpy(i.buffer,0,this.buffer,this.byteOffset+this.position,e*i.BYTES_PER_ELEMENT),o.arrayToNative(i,null==t?this.endianness:t),this.position+=i.byteLength,i},o.prototype.readFloat32Array=function(e,t){e=null==e?this.byteLength-this.position/4:e;var i=new Float32Array(e);return o.memcpy(i.buffer,0,this.buffer,this.byteOffset+this.position,e*i.BYTES_PER_ELEMENT),o.arrayToNative(i,null==t?this.endianness:t),this.position+=i.byteLength,i},o.prototype.readInt32=function(e){var t=this._dataView.getInt32(this.position,null==e?this.endianness:e);return this.position+=4,t},o.prototype.readInt16=function(e){var t=this._dataView.getInt16(this.position,null==e?this.endianness:e);return this.position+=2,t},o.prototype.readInt8=function(){var e=this._dataView.getInt8(this.position);return this.position+=1,e},o.prototype.readUint32=function(e){var t=this._dataView.getUint32(this.position,null==e?this.endianness:e);return this.position+=4,t},o.prototype.readUint16=function(e){var t=this._dataView.getUint16(this.position,null==e?this.endianness:e);return this.position+=2,t},o.prototype.readUint8=function(){var e=this._dataView.getUint8(this.position);return this.position+=1,e},o.prototype.readFloat32=function(e){var t=this._dataView.getFloat32(this.position,null==e?this.endianness:e);return this.position+=4,t},o.prototype.readFloat64=function(e){var t=this._dataView.getFloat64(this.position,null==e?this.endianness:e);return this.position+=8,t},o.endianness=new Int8Array(new Int16Array([1]).buffer)[0]>0,o.memcpy=function(e,t,i,r,n){var a=new Uint8Array(e,t,n),s=new Uint8Array(i,r,n);a.set(s)},o.arrayToNative=function(e,t){return t==this.endianness?e:this.flipArrayEndianness(e)},o.nativeToEndian=function(e,t){return this.endianness==t?e:this.flipArrayEndianness(e)},o.flipArrayEndianness=function(e){for(var t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),i=0;in;r--,n++){var a=t[n];t[n]=t[r],t[r]=a}return e},o.prototype.failurePosition=0,String.fromCharCodeUint8=function(e){for(var t=[],i=0;i>16),this.writeUint8((65280&e)>>8),this.writeUint8(255&e)},o.prototype.adjustUint32=function(e,t){var i=this.position;this.seek(e),this.writeUint32(t),this.seek(i)},o.prototype.mapInt32Array=function(e,t){this._realloc(4*e);var i=new Int32Array(this._buffer,this.byteOffset+this.position,e);return o.arrayToNative(i,null==t?this.endianness:t),this.position+=4*e,i},o.prototype.mapInt16Array=function(e,t){this._realloc(2*e);var i=new Int16Array(this._buffer,this.byteOffset+this.position,e);return o.arrayToNative(i,null==t?this.endianness:t),this.position+=2*e,i},o.prototype.mapInt8Array=function(e){this._realloc(1*e);var t=new Int8Array(this._buffer,this.byteOffset+this.position,e);return this.position+=1*e,t},o.prototype.mapUint32Array=function(e,t){this._realloc(4*e);var i=new Uint32Array(this._buffer,this.byteOffset+this.position,e);return o.arrayToNative(i,null==t?this.endianness:t),this.position+=4*e,i},o.prototype.mapUint16Array=function(e,t){this._realloc(2*e);var i=new Uint16Array(this._buffer,this.byteOffset+this.position,e);return o.arrayToNative(i,null==t?this.endianness:t),this.position+=2*e,i},o.prototype.mapFloat64Array=function(e,t){this._realloc(8*e);var i=new Float64Array(this._buffer,this.byteOffset+this.position,e);return o.arrayToNative(i,null==t?this.endianness:t),this.position+=8*e,i},o.prototype.mapFloat32Array=function(e,t){this._realloc(4*e);var i=new Float32Array(this._buffer,this.byteOffset+this.position,e);return o.arrayToNative(i,null==t?this.endianness:t),this.position+=4*e,i};var f=function(e){this.buffers=[],this.bufferIndex=-1,e&&(this.insertBuffer(e),this.bufferIndex=0)};(f.prototype=new o(new ArrayBuffer,0,o.BIG_ENDIAN)).initialized=function(){var e;return this.bufferIndex>-1||(this.buffers.length>0?0===(e=this.buffers[0]).fileStart?(this.buffer=e,this.bufferIndex=0,a.debug("MultiBufferStream","Stream ready for parsing"),!0):(a.warn("MultiBufferStream","The first buffer should have a fileStart of 0"),this.logBufferLevel(),!1):(a.warn("MultiBufferStream","No buffer to start parsing from"),this.logBufferLevel(),!1))},ArrayBuffer.concat=function(e,t){a.debug("ArrayBuffer","Trying to create a new buffer of size: "+(e.byteLength+t.byteLength));var i=new Uint8Array(e.byteLength+t.byteLength);return i.set(new Uint8Array(e),0),i.set(new Uint8Array(t),e.byteLength),i.buffer},f.prototype.reduceBuffer=function(e,t,i){var r;return(r=new Uint8Array(i)).set(new Uint8Array(e,t,i)),r.buffer.fileStart=e.fileStart+t,r.buffer.usedBytes=0,r.buffer},f.prototype.insertBuffer=function(e){for(var t=!0,i=0;ir.byteLength){this.buffers.splice(i,1),i--;continue}a.warn("MultiBufferStream","Buffer (fileStart: "+e.fileStart+" - Length: "+e.byteLength+") already appended, ignoring")}else e.fileStart+e.byteLength<=r.fileStart||(e=this.reduceBuffer(e,0,r.fileStart-e.fileStart)),a.debug("MultiBufferStream","Appending new buffer (fileStart: "+e.fileStart+" - Length: "+e.byteLength+")"),this.buffers.splice(i,0,e),0===i&&(this.buffer=e);t=!1;break}if(e.fileStart0)){t=!1;break}e=this.reduceBuffer(e,n,s)}}t&&(a.debug("MultiBufferStream","Appending new buffer (fileStart: "+e.fileStart+" - Length: "+e.byteLength+")"),this.buffers.push(e),0===i&&(this.buffer=e))},f.prototype.logBufferLevel=function(e){var t,i,r,n,s,o=[],l="";for(r=0,n=0,t=0;t0&&(l+=s.end-1+"]");var f=e?a.info:a.debug;0===this.buffers.length?f("MultiBufferStream","No more buffer in memory"):f("MultiBufferStream",this.buffers.length+" stored buffer(s) ("+r+"/"+n+" bytes): "+l)},f.prototype.cleanBuffers=function(){var e,t;for(e=0;e"+this.buffer.byteLength+")"),!0}return!1}return!1},f.prototype.findPosition=function(e,t,i){var r,n=null,s=-1;for(r=!0===e?0:this.bufferIndex;r=t?(a.debug("MultiBufferStream","Found position in existing buffer #"+s),s):-1},f.prototype.findEndContiguousBuf=function(e){var t,i,r,n=void 0!==e?e:this.bufferIndex;if(i=this.buffers[n],this.buffers.length>n+1)for(t=n+1;t>3;return 31===r&&i.data.length>=2&&(r=32+((7&i.data[0])<<3)+((224&i.data[1])>>5)),r}return null},i.DecoderConfigDescriptor=function(e){i.Descriptor.call(this,4,e)},i.DecoderConfigDescriptor.prototype=new i.Descriptor,i.DecoderConfigDescriptor.prototype.parse=function(e){this.oti=e.readUint8(),this.streamType=e.readUint8(),this.bufferSize=e.readUint24(),this.maxBitrate=e.readUint32(),this.avgBitrate=e.readUint32(),this.size-=13,this.parseRemainingDescriptors(e)},i.DecoderSpecificInfo=function(e){i.Descriptor.call(this,5,e)},i.DecoderSpecificInfo.prototype=new i.Descriptor,i.SLConfigDescriptor=function(e){i.Descriptor.call(this,6,e)},i.SLConfigDescriptor.prototype=new i.Descriptor,this};void 0!==i&&(i.MPEG4DescriptorParser=u);var c={ERR_INVALID_DATA:-1,ERR_NOT_ENOUGH_DATA:0,OK:1,BASIC_BOXES:["mdat","idat","free","skip","meco","strk"],FULL_BOXES:["hmhd","nmhd","iods","xml ","bxml","ipro","mere"],CONTAINER_BOXES:[["moov",["trak","pssh"]],["trak"],["edts"],["mdia"],["minf"],["dinf"],["stbl",["sgpd","sbgp"]],["mvex",["trex"]],["moof",["traf"]],["traf",["trun","sgpd","sbgp"]],["vttc"],["tref"],["iref"],["mfra",["tfra"]],["meco"],["hnti"],["hinf"],["strk"],["strd"],["sinf"],["rinf"],["schi"],["trgr"],["udta",["kind"]],["iprp",["ipma"]],["ipco"]],boxCodes:[],fullBoxCodes:[],containerBoxCodes:[],sampleEntryCodes:{},sampleGroupEntryCodes:[],trackGroupTypes:[],UUIDBoxes:{},UUIDs:[],initialize:function(){c.FullBox.prototype=new c.Box,c.ContainerBox.prototype=new c.Box,c.SampleEntry.prototype=new c.Box,c.TrackGroupTypeBox.prototype=new c.FullBox,c.BASIC_BOXES.forEach((function(e){c.createBoxCtor(e)})),c.FULL_BOXES.forEach((function(e){c.createFullBoxCtor(e)})),c.CONTAINER_BOXES.forEach((function(e){c.createContainerBoxCtor(e[0],null,e[1])}))},Box:function(e,t,i){this.type=e,this.size=t,this.uuid=i},FullBox:function(e,t,i){c.Box.call(this,e,t,i),this.flags=0,this.version=0},ContainerBox:function(e,t,i){c.Box.call(this,e,t,i),this.boxes=[]},SampleEntry:function(e,t,i,r){c.ContainerBox.call(this,e,t),this.hdr_size=i,this.start=r},SampleGroupEntry:function(e){this.grouping_type=e},TrackGroupTypeBox:function(e,t){c.FullBox.call(this,e,t)},createBoxCtor:function(e,t){c.boxCodes.push(e),c[e+"Box"]=function(t){c.Box.call(this,e,t)},c[e+"Box"].prototype=new c.Box,t&&(c[e+"Box"].prototype.parse=t)},createFullBoxCtor:function(e,t){c[e+"Box"]=function(t){c.FullBox.call(this,e,t)},c[e+"Box"].prototype=new c.FullBox,c[e+"Box"].prototype.parse=function(e){this.parseFullHeader(e),t&&t.call(this,e)}},addSubBoxArrays:function(e){if(e){this.subBoxNames=e;for(var t=e.length,i=0;ii?(a.error("BoxParser","Box of type '"+u+"' has a size "+f+" greater than its container size "+i),{code:c.ERR_NOT_ENOUGH_DATA,type:u,size:f,hdr_size:l,start:o}):o+f>e.getEndPosition()?(e.seek(o),a.info("BoxParser","Not enough data in stream to parse the entire '"+u+"' box"),{code:c.ERR_NOT_ENOUGH_DATA,type:u,size:f,hdr_size:l,start:o}):t?{code:c.OK,type:u,size:f,hdr_size:l,start:o}:(c[u+"Box"]?r=new c[u+"Box"](f):"uuid"!==u?(a.warn("BoxParser","Unknown box type: '"+u+"'"),(r=new c.Box(u,f)).has_unparsed_data=!0):c.UUIDBoxes[s]?r=new c.UUIDBoxes[s](f):(a.warn("BoxParser","Unknown uuid type: '"+s+"'"),(r=new c.Box(u,f)).uuid=s,r.has_unparsed_data=!0),r.hdr_size=l,r.start=o,r.write===c.Box.prototype.write&&"mdat"!==r.type&&(a.info("BoxParser","'"+h+"' box writing not yet implemented, keeping unparsed data in memory for later write"),r.parseDataAndRewind(e)),r.parse(e),(n=e.getPosition()-(r.start+r.size))<0?(a.warn("BoxParser","Parsing of box '"+h+"' did not read the entire indicated box data size (missing "+-n+" bytes), seeking forward"),e.seek(r.start+r.size)):n>0&&(a.error("BoxParser","Parsing of box '"+h+"' read "+n+" more bytes than the indicated box data size, seeking backwards"),e.seek(r.start+r.size)),{code:c.OK,box:r,size:r.size})},c.Box.prototype.parse=function(e){"mdat"!=this.type?this.data=e.readUint8Array(this.size-this.hdr_size):0===this.size?e.seek(e.getEndPosition()):e.seek(this.start+this.size)},c.Box.prototype.parseDataAndRewind=function(e){this.data=e.readUint8Array(this.size-this.hdr_size),e.position-=this.size-this.hdr_size},c.FullBox.prototype.parseDataAndRewind=function(e){this.parseFullHeader(e),this.data=e.readUint8Array(this.size-this.hdr_size),this.hdr_size-=4,e.position-=this.size-this.hdr_size},c.FullBox.prototype.parseFullHeader=function(e){this.version=e.readUint8(),this.flags=e.readUint24(),this.hdr_size+=4},c.FullBox.prototype.parse=function(e){this.parseFullHeader(e),this.data=e.readUint8Array(this.size-this.hdr_size)},c.ContainerBox.prototype.parse=function(e){for(var t,i;e.getPosition()>10&31,t[1]=this.language>>5&31,t[2]=31&this.language,this.languageString=String.fromCharCode(t[0]+96,t[1]+96,t[2]+96)},c.SAMPLE_ENTRY_TYPE_VISUAL="Visual",c.SAMPLE_ENTRY_TYPE_AUDIO="Audio",c.SAMPLE_ENTRY_TYPE_HINT="Hint",c.SAMPLE_ENTRY_TYPE_METADATA="Metadata",c.SAMPLE_ENTRY_TYPE_SUBTITLE="Subtitle",c.SAMPLE_ENTRY_TYPE_SYSTEM="System",c.SAMPLE_ENTRY_TYPE_TEXT="Text",c.SampleEntry.prototype.parseHeader=function(e){e.readUint8Array(6),this.data_reference_index=e.readUint16(),this.hdr_size+=8},c.SampleEntry.prototype.parse=function(e){this.parseHeader(e),this.data=e.readUint8Array(this.size-this.hdr_size)},c.SampleEntry.prototype.parseDataAndRewind=function(e){this.parseHeader(e),this.data=e.readUint8Array(this.size-this.hdr_size),this.hdr_size-=8,e.position-=this.size-this.hdr_size},c.SampleEntry.prototype.parseFooter=function(e){c.ContainerBox.prototype.parse.call(this,e)},c.createMediaSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_HINT),c.createMediaSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_METADATA),c.createMediaSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_SUBTITLE),c.createMediaSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_SYSTEM),c.createMediaSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_TEXT),c.createMediaSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_VISUAL,(function(e){var t;this.parseHeader(e),e.readUint16(),e.readUint16(),e.readUint32Array(3),this.width=e.readUint16(),this.height=e.readUint16(),this.horizresolution=e.readUint32(),this.vertresolution=e.readUint32(),e.readUint32(),this.frame_count=e.readUint16(),t=Math.min(31,e.readUint8()),this.compressorname=e.readString(t),t<31&&e.readString(31-t),this.depth=e.readUint16(),e.readUint16(),this.parseFooter(e)})),c.createMediaSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_AUDIO,(function(e){this.parseHeader(e),e.readUint32Array(2),this.channel_count=e.readUint16(),this.samplesize=e.readUint16(),e.readUint16(),e.readUint16(),this.samplerate=e.readUint32()/65536,this.parseFooter(e)})),c.createSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_VISUAL,"avc1"),c.createSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_VISUAL,"avc2"),c.createSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_VISUAL,"avc3"),c.createSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_VISUAL,"avc4"),c.createSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_VISUAL,"av01"),c.createSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_VISUAL,"hvc1"),c.createSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_VISUAL,"hev1"),c.createSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_AUDIO,"mp4a"),c.createSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_AUDIO,"ac-3"),c.createSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_AUDIO,"ec-3"),c.createEncryptedSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_VISUAL,"encv"),c.createEncryptedSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_AUDIO,"enca"),c.createEncryptedSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_SUBTITLE,"encu"),c.createEncryptedSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_SYSTEM,"encs"),c.createEncryptedSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_TEXT,"enct"),c.createEncryptedSampleEntryCtor(c.SAMPLE_ENTRY_TYPE_METADATA,"encm"),c.createBoxCtor("av1C",(function(e){var t=e.readUint8();if(t>>7&!1)a.error("av1C marker problem");else if(this.version=127&t,1===this.version)if(t=e.readUint8(),this.seq_profile=t>>5&7,this.seq_level_idx_0=31&t,t=e.readUint8(),this.seq_tier_0=t>>7&1,this.high_bitdepth=t>>6&1,this.twelve_bit=t>>5&1,this.monochrome=t>>4&1,this.chroma_subsampling_x=t>>3&1,this.chroma_subsampling_y=t>>2&1,this.chroma_sample_position=3&t,t=e.readUint8(),this.reserved_1=t>>5&7,0===this.reserved_1){if(this.initial_presentation_delay_present=t>>4&1,1===this.initial_presentation_delay_present)this.initial_presentation_delay_minus_one=15&t;else if(this.reserved_2=15&t,0!==this.reserved_2)return void a.error("av1C reserved_2 parsing problem");var i=this.size-this.hdr_size-4;this.configOBUs=e.readUint8Array(i)}else a.error("av1C reserved_1 parsing problem");else a.error("av1C version "+this.version+" not supported")})),c.createBoxCtor("avcC",(function(e){var t,i;for(this.configurationVersion=e.readUint8(),this.AVCProfileIndication=e.readUint8(),this.profile_compatibility=e.readUint8(),this.AVCLevelIndication=e.readUint8(),this.lengthSizeMinusOne=3&e.readUint8(),this.nb_SPS_nalus=31&e.readUint8(),i=this.size-this.hdr_size-6,this.SPS=[],t=0;t0&&(this.ext=e.readUint8Array(i))})),c.createBoxCtor("btrt",(function(e){this.bufferSizeDB=e.readUint32(),this.maxBitrate=e.readUint32(),this.avgBitrate=e.readUint32()})),c.createBoxCtor("clap",(function(e){this.cleanApertureWidthN=e.readUint32(),this.cleanApertureWidthD=e.readUint32(),this.cleanApertureHeightN=e.readUint32(),this.cleanApertureHeightD=e.readUint32(),this.horizOffN=e.readUint32(),this.horizOffD=e.readUint32(),this.vertOffN=e.readUint32(),this.vertOffD=e.readUint32()})),c.createBoxCtor("clli",(function(e){this.max_content_light_level=e.readUint16(),this.max_pic_average_light_level=e.readUint16()})),c.createFullBoxCtor("co64",(function(e){var t,i;if(t=e.readUint32(),this.chunk_offsets=[],0===this.version)for(i=0;i>7}else("rICC"===this.colour_type||"prof"===this.colour_type)&&(this.ICC_profile=e.readUint8Array(this.size-4))})),c.createFullBoxCtor("cprt",(function(e){this.parseLanguage(e),this.notice=e.readCString()})),c.createFullBoxCtor("cslg",(function(e){0===this.version&&(this.compositionToDTSShift=e.readInt32(),this.leastDecodeToDisplayDelta=e.readInt32(),this.greatestDecodeToDisplayDelta=e.readInt32(),this.compositionStartTime=e.readInt32(),this.compositionEndTime=e.readInt32())})),c.createFullBoxCtor("ctts",(function(e){var t,i;if(t=e.readUint32(),this.sample_counts=[],this.sample_offsets=[],0===this.version)for(i=0;i>6,this.bsid=t>>1&31,this.bsmod=(1&t)<<2|i>>6&3,this.acmod=i>>3&7,this.lfeon=i>>2&1,this.bit_rate_code=3&i|r>>5&7})),c.createBoxCtor("dec3",(function(e){var t=e.readUint16();this.data_rate=t>>3,this.num_ind_sub=7&t,this.ind_subs=[];for(var i=0;i>6,r.bsid=n>>1&31,r.bsmod=(1&n)<<4|a>>4&15,r.acmod=a>>1&7,r.lfeon=1&a,r.num_dep_sub=s>>1&15,r.num_dep_sub>0&&(r.chan_loc=(1&s)<<8|e.readUint8())}})),c.createFullBoxCtor("dfLa",(function(e){var t=[],i=["STREAMINFO","PADDING","APPLICATION","SEEKTABLE","VORBIS_COMMENT","CUESHEET","PICTURE","RESERVED"];for(this.parseFullHeader(e);;){var r=e.readUint8(),n=Math.min(127&r,i.length-1);if(n?e.readUint8Array(e.readUint24()):(e.readUint8Array(13),this.samplerate=e.readUint32()>>12,e.readUint8Array(20)),t.push(i[n]),128&r)break}this.numMetadataBlocks=t.length+" ("+t.join(", ")+")"})),c.createBoxCtor("dimm",(function(e){this.bytessent=e.readUint64()})),c.createBoxCtor("dmax",(function(e){this.time=e.readUint32()})),c.createBoxCtor("dmed",(function(e){this.bytessent=e.readUint64()})),c.createFullBoxCtor("dref",(function(e){var t,i;this.entries=[];for(var r=e.readUint32(),n=0;n=4;)this.compatible_brands[i]=e.readString(4),t-=4,i++})),c.createFullBoxCtor("hdlr",(function(e){0===this.version&&(e.readUint32(),this.handler=e.readString(4),e.readUint32Array(3),this.name=e.readString(this.size-this.hdr_size-20),"\0"===this.name[this.name.length-1]&&(this.name=this.name.slice(0,-1)))})),c.createBoxCtor("hvcC",(function(e){var t,i,r,n;this.configurationVersion=e.readUint8(),n=e.readUint8(),this.general_profile_space=n>>6,this.general_tier_flag=(32&n)>>5,this.general_profile_idc=31&n,this.general_profile_compatibility=e.readUint32(),this.general_constraint_indicator=e.readUint8Array(6),this.general_level_idc=e.readUint8(),this.min_spatial_segmentation_idc=4095&e.readUint16(),this.parallelismType=3&e.readUint8(),this.chroma_format_idc=3&e.readUint8(),this.bit_depth_luma_minus8=7&e.readUint8(),this.bit_depth_chroma_minus8=7&e.readUint8(),this.avgFrameRate=e.readUint16(),n=e.readUint8(),this.constantFrameRate=n>>6,this.numTemporalLayers=(13&n)>>3,this.temporalIdNested=(4&n)>>2,this.lengthSizeMinusOne=3&n,this.nalu_arrays=[];var a=e.readUint8();for(t=0;t>7,s.nalu_type=63&n;var o=e.readUint16();for(i=0;i>4&15,this.length_size=15&t,t=e.readUint8(),this.base_offset_size=t>>4&15,1===this.version||2===this.version?this.index_size=15&t:this.index_size=0,this.items=[];var i=0;if(this.version<2)i=e.readUint16();else{if(2!==this.version)throw"version of iloc box not supported";i=e.readUint32()}for(var r=0;r=2&&(2===this.version?this.item_ID=e.readUint16():3===this.version&&(this.item_ID=e.readUint32()),this.item_protection_index=e.readUint16(),this.item_type=e.readString(4),this.item_name=e.readCString(),"mime"===this.item_type?(this.content_type=e.readCString(),this.content_encoding=e.readCString()):"uri "===this.item_type&&(this.item_uri_type=e.readCString()))})),c.createFullBoxCtor("ipma",(function(e){var t,i;for(entry_count=e.readUint32(),this.associations=[],t=0;t>7==1,1&this.flags?s.property_index=(127&a)<<8|e.readUint8():s.property_index=127&a}}})),c.createFullBoxCtor("iref",(function(e){var t,i;for(this.references=[];e.getPosition()>7,r.assignment_type=127&n,r.assignment_type){case 0:r.grouping_type=e.readString(4);break;case 1:r.grouping_type=e.readString(4),r.grouping_type_parameter=e.readUint32();break;case 2:case 3:break;case 4:r.sub_track_id=e.readUint32();break;default:a.warn("BoxParser","Unknown leva assignement type")}}})),c.createBoxCtor("maxr",(function(e){this.period=e.readUint32(),this.bytes=e.readUint32()})),c.createBoxCtor("mdcv",(function(e){this.display_primaries=[],this.display_primaries[0]={},this.display_primaries[0].x=e.readUint16(),this.display_primaries[0].y=e.readUint16(),this.display_primaries[1]={},this.display_primaries[1].x=e.readUint16(),this.display_primaries[1].y=e.readUint16(),this.display_primaries[2]={},this.display_primaries[2].x=e.readUint16(),this.display_primaries[2].y=e.readUint16(),this.white_point={},this.white_point.x=e.readUint16(),this.white_point.y=e.readUint16(),this.max_display_mastering_luminance=e.readUint32(),this.min_display_mastering_luminance=e.readUint32()})),c.createFullBoxCtor("mdhd",(function(e){1==this.version?(this.creation_time=e.readUint64(),this.modification_time=e.readUint64(),this.timescale=e.readUint32(),this.duration=e.readUint64()):(this.creation_time=e.readUint32(),this.modification_time=e.readUint32(),this.timescale=e.readUint32(),this.duration=e.readUint32()),this.parseLanguage(e),e.readUint16()})),c.createFullBoxCtor("mehd",(function(e){1&this.flags&&(a.warn("BoxParser","mehd box incorrectly uses flags set to 1, converting version to 1"),this.version=1),1==this.version?this.fragment_duration=e.readUint64():this.fragment_duration=e.readUint32()})),c.createFullBoxCtor("meta",(function(e){this.boxes=[],c.ContainerBox.prototype.parse.call(this,e)})),c.createFullBoxCtor("mfhd",(function(e){this.sequence_number=e.readUint32()})),c.createFullBoxCtor("mfro",(function(e){this._size=e.readUint32()})),c.createFullBoxCtor("mvhd",(function(e){1==this.version?(this.creation_time=e.readUint64(),this.modification_time=e.readUint64(),this.timescale=e.readUint32(),this.duration=e.readUint64()):(this.creation_time=e.readUint32(),this.modification_time=e.readUint32(),this.timescale=e.readUint32(),this.duration=e.readUint32()),this.rate=e.readUint32(),this.volume=e.readUint16()>>8,e.readUint16(),e.readUint32Array(2),this.matrix=e.readUint32Array(9),e.readUint32Array(6),this.next_track_id=e.readUint32()})),c.createBoxCtor("npck",(function(e){this.packetssent=e.readUint32()})),c.createBoxCtor("nump",(function(e){this.packetssent=e.readUint64()})),c.createFullBoxCtor("padb",(function(e){var t=e.readUint32();this.padbits=[];for(var i=0;i0){var t=e.readUint32();this.kid=[];for(var i=0;i0&&(this.data=e.readUint8Array(r))})),c.createFullBoxCtor("clef",(function(e){this.width=e.readUint32(),this.height=e.readUint32()})),c.createFullBoxCtor("enof",(function(e){this.width=e.readUint32(),this.height=e.readUint32()})),c.createFullBoxCtor("prof",(function(e){this.width=e.readUint32(),this.height=e.readUint32()})),c.createContainerBoxCtor("tapt",null,["clef","prof","enof"]),c.createBoxCtor("rtp ",(function(e){this.descriptionformat=e.readString(4),this.sdptext=e.readString(this.size-this.hdr_size-4)})),c.createFullBoxCtor("saio",(function(e){1&this.flags&&(this.aux_info_type=e.readUint32(),this.aux_info_type_parameter=e.readUint32());var t=e.readUint32();this.offset=[];for(var i=0;i>7,this.avgRateFlag=t>>6&1,this.durationFlag&&(this.duration=e.readUint32()),this.avgRateFlag&&(this.accurateStatisticsFlag=e.readUint8(),this.avgBitRate=e.readUint16(),this.avgFrameRate=e.readUint16()),this.dependency=[];for(var i=e.readUint8(),r=0;r>7,this.num_leading_samples=127&t})),c.createSampleGroupCtor("rash",(function(e){if(this.operation_point_count=e.readUint16(),this.description_length!==2+(1===this.operation_point_count?2:6*this.operation_point_count)+9)a.warn("BoxParser","Mismatch in "+this.grouping_type+" sample group length"),this.data=e.readUint8Array(this.description_length-2);else{if(1===this.operation_point_count)this.target_rate_share=e.readUint16();else{this.target_rate_share=[],this.available_bitrate=[];for(var t=0;t>4,this.skip_byte_block=15&t,this.isProtected=e.readUint8(),this.Per_Sample_IV_Size=e.readUint8(),this.KID=c.parseHex16(e),this.constant_IV_size=0,this.constant_IV=0,1===this.isProtected&&0===this.Per_Sample_IV_Size&&(this.constant_IV_size=e.readUint8(),this.constant_IV=e.readUint8Array(this.constant_IV_size))})),c.createSampleGroupCtor("stsa",(function(e){a.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")})),c.createSampleGroupCtor("sync",(function(e){var t=e.readUint8();this.NAL_unit_type=63&t})),c.createSampleGroupCtor("tele",(function(e){var t=e.readUint8();this.level_independently_decodable=t>>7})),c.createSampleGroupCtor("tsas",(function(e){a.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")})),c.createSampleGroupCtor("tscl",(function(e){a.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")})),c.createSampleGroupCtor("vipr",(function(e){a.warn("BoxParser","Sample Group type: "+this.grouping_type+" not fully parsed")})),c.createFullBoxCtor("sbgp",(function(e){this.grouping_type=e.readString(4),1===this.version?this.grouping_type_parameter=e.readUint32():this.grouping_type_parameter=0,this.entries=[];for(var t=e.readUint32(),i=0;i>6,this.sample_depends_on[r]=t>>4&3,this.sample_is_depended_on[r]=t>>2&3,this.sample_has_redundancy[r]=3&t})),c.createFullBoxCtor("senc"),c.createFullBoxCtor("sgpd",(function(e){this.grouping_type=e.readString(4),a.debug("BoxParser","Found Sample Groups of type "+this.grouping_type),1===this.version?this.default_length=e.readUint32():this.default_length=0,this.version>=2&&(this.default_group_description_index=e.readUint32()),this.entries=[];for(var t=e.readUint32(),i=0;i>31&1,r.referenced_size=2147483647&n,r.subsegment_duration=e.readUint32(),n=e.readUint32(),r.starts_with_SAP=n>>31&1,r.SAP_type=n>>28&7,r.SAP_delta_time=268435455&n}})),c.SingleItemTypeReferenceBox=function(e,t,i,r){c.Box.call(this,e,t),this.hdr_size=i,this.start=r},c.SingleItemTypeReferenceBox.prototype=new c.Box,c.SingleItemTypeReferenceBox.prototype.parse=function(e){this.from_item_ID=e.readUint16();var t=e.readUint16();this.references=[];for(var i=0;i>4&15,this.sample_sizes[t+1]=15&r}else if(8===this.field_size)for(t=0;t0)for(i=0;i>4&15,this.default_skip_byte_block=15&t}this.default_isProtected=e.readUint8(),this.default_Per_Sample_IV_Size=e.readUint8(),this.default_KID=c.parseHex16(e),1===this.default_isProtected&&0===this.default_Per_Sample_IV_Size&&(this.default_constant_IV_size=e.readUint8(),this.default_constant_IV=e.readUint8Array(this.default_constant_IV_size))})),c.createFullBoxCtor("tfdt",(function(e){1==this.version?this.baseMediaDecodeTime=e.readUint64():this.baseMediaDecodeTime=e.readUint32()})),c.createFullBoxCtor("tfhd",(function(e){var t=0;this.track_id=e.readUint32(),this.size-this.hdr_size>t&&this.flags&c.TFHD_FLAG_BASE_DATA_OFFSET?(this.base_data_offset=e.readUint64(),t+=8):this.base_data_offset=0,this.size-this.hdr_size>t&&this.flags&c.TFHD_FLAG_SAMPLE_DESC?(this.default_sample_description_index=e.readUint32(),t+=4):this.default_sample_description_index=0,this.size-this.hdr_size>t&&this.flags&c.TFHD_FLAG_SAMPLE_DUR?(this.default_sample_duration=e.readUint32(),t+=4):this.default_sample_duration=0,this.size-this.hdr_size>t&&this.flags&c.TFHD_FLAG_SAMPLE_SIZE?(this.default_sample_size=e.readUint32(),t+=4):this.default_sample_size=0,this.size-this.hdr_size>t&&this.flags&c.TFHD_FLAG_SAMPLE_FLAGS?(this.default_sample_flags=e.readUint32(),t+=4):this.default_sample_flags=0})),c.createFullBoxCtor("tfra",(function(e){this.track_ID=e.readUint32(),e.readUint24();var t=e.readUint8();this.length_size_of_traf_num=t>>4&3,this.length_size_of_trun_num=t>>2&3,this.length_size_of_sample_num=3&t,this.entries=[];for(var i=e.readUint32(),r=0;r>8,e.readUint16(),this.matrix=e.readInt32Array(9),this.width=e.readUint32(),this.height=e.readUint32()})),c.createBoxCtor("tmax",(function(e){this.time=e.readUint32()})),c.createBoxCtor("tmin",(function(e){this.time=e.readUint32()})),c.createBoxCtor("totl",(function(e){this.bytessent=e.readUint32()})),c.createBoxCtor("tpay",(function(e){this.bytessent=e.readUint32()})),c.createBoxCtor("tpyl",(function(e){this.bytessent=e.readUint64()})),c.TrackGroupTypeBox.prototype.parse=function(e){this.parseFullHeader(e),this.track_group_id=e.readUint32()},c.createTrackGroupCtor("msrc"),c.TrackReferenceTypeBox=function(e,t,i,r){c.Box.call(this,e,t),this.hdr_size=i,this.start=r},c.TrackReferenceTypeBox.prototype=new c.Box,c.TrackReferenceTypeBox.prototype.parse=function(e){this.track_ids=e.readUint32Array((this.size-this.hdr_size)/4)},c.trefBox.prototype.parse=function(e){for(var t,i;e.getPosition()t&&this.flags&c.TRUN_FLAGS_DATA_OFFSET?(this.data_offset=e.readInt32(),t+=4):this.data_offset=0,this.size-this.hdr_size>t&&this.flags&c.TRUN_FLAGS_FIRST_FLAG?(this.first_sample_flags=e.readUint32(),t+=4):this.first_sample_flags=0,this.sample_duration=[],this.sample_size=[],this.sample_flags=[],this.sample_composition_time_offset=[],this.size-this.hdr_size>t)for(var i=0;i0&&(this.location=e.readCString())})),c.createUUIDBox("a5d40b30e81411ddba2f0800200c9a66",!0,!1,(function(e){this.LiveServerManifest=e.readString(this.size-this.hdr_size).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")})),c.createUUIDBox("d08a4f1810f34a82b6c832d8aba183d3",!0,!1,(function(e){this.system_id=c.parseHex16(e);var t=e.readUint32();t>0&&(this.data=e.readUint8Array(t))})),c.createUUIDBox("a2394f525a9b4f14a2446c427c648df4",!0,!1),c.createUUIDBox("8974dbce7be74c5184f97148f9882554",!0,!1,(function(e){this.default_AlgorithmID=e.readUint24(),this.default_IV_size=e.readUint8(),this.default_KID=c.parseHex16(e)})),c.createUUIDBox("d4807ef2ca3946958e5426cb9e46a79f",!0,!1,(function(e){this.fragment_count=e.readUint8(),this.entries=[];for(var t=0;t>4,this.chromaSubsampling=t>>1&7,this.videoFullRangeFlag=1&t,this.colourPrimaries=e.readUint8(),this.transferCharacteristics=e.readUint8(),this.matrixCoefficients=e.readUint8(),this.codecIntializationDataSize=e.readUint16(),this.codecIntializationData=e.readUint8Array(this.codecIntializationDataSize)):(this.profile=e.readUint8(),this.level=e.readUint8(),t=e.readUint8(),this.bitDepth=t>>4&15,this.colorSpace=15&t,t=e.readUint8(),this.chromaSubsampling=t>>4&15,this.transferFunction=t>>1&7,this.videoFullRangeFlag=1&t,this.codecIntializationDataSize=e.readUint16(),this.codecIntializationData=e.readUint8Array(this.codecIntializationDataSize))})),c.createBoxCtor("vttC",(function(e){this.text=e.readString(this.size-this.hdr_size)})),c.SampleEntry.prototype.isVideo=function(){return!1},c.SampleEntry.prototype.isAudio=function(){return!1},c.SampleEntry.prototype.isSubtitle=function(){return!1},c.SampleEntry.prototype.isMetadata=function(){return!1},c.SampleEntry.prototype.isHint=function(){return!1},c.SampleEntry.prototype.getCodec=function(){return this.type.replace(".","")},c.SampleEntry.prototype.getWidth=function(){return""},c.SampleEntry.prototype.getHeight=function(){return""},c.SampleEntry.prototype.getChannelCount=function(){return""},c.SampleEntry.prototype.getSampleRate=function(){return""},c.SampleEntry.prototype.getSampleSize=function(){return""},c.VisualSampleEntry.prototype.isVideo=function(){return!0},c.VisualSampleEntry.prototype.getWidth=function(){return this.width},c.VisualSampleEntry.prototype.getHeight=function(){return this.height},c.AudioSampleEntry.prototype.isAudio=function(){return!0},c.AudioSampleEntry.prototype.getChannelCount=function(){return this.channel_count},c.AudioSampleEntry.prototype.getSampleRate=function(){return this.samplerate},c.AudioSampleEntry.prototype.getSampleSize=function(){return this.samplesize},c.SubtitleSampleEntry.prototype.isSubtitle=function(){return!0},c.MetadataSampleEntry.prototype.isMetadata=function(){return!0},c.decimalToHex=function(e,t){var i=Number(e).toString(16);for(t=null==t?t=2:t;i.length>=1;t+=c.decimalToHex(r,0),t+=".",0===this.hvcC.general_tier_flag?t+="L":t+="H",t+=this.hvcC.general_level_idc;var n=!1,a="";for(e=5;e>=0;e--)(this.hvcC.general_constraint_indicator[e]||n)&&(a="."+c.decimalToHex(this.hvcC.general_constraint_indicator[e],0)+a,n=!0);t+=a}return t},c.mp4aSampleEntry.prototype.getCodec=function(){var e=c.SampleEntry.prototype.getCodec.call(this);if(this.esds&&this.esds.esd){var t=this.esds.esd.getOTI(),i=this.esds.esd.getAudioConfig();return e+"."+c.decimalToHex(t)+(i?"."+i:"")}return e},c.stxtSampleEntry.prototype.getCodec=function(){var e=c.SampleEntry.prototype.getCodec.call(this);return this.mime_format?e+"."+this.mime_format:e},c.av01SampleEntry.prototype.getCodec=function(){var e,t=c.SampleEntry.prototype.getCodec.call(this);return 2===this.av1C.seq_profile&&1===this.av1C.high_bitdepth?e=1===this.av1C.twelve_bit?"12":"10":this.av1C.seq_profile<=2&&(e=1===this.av1C.high_bitdepth?"10":"08"),t+"."+this.av1C.seq_profile+"."+this.av1C.seq_level_idx_0+(this.av1C.seq_tier_0?"H":"M")+"."+e},c.Box.prototype.writeHeader=function(e,t){this.size+=8,this.size>l&&(this.size+=8),"uuid"===this.type&&(this.size+=16),a.debug("BoxWriter","Writing box "+this.type+" of size: "+this.size+" at position "+e.getPosition()+(t||"")),this.size>l?e.writeUint32(1):(this.sizePosition=e.getPosition(),e.writeUint32(this.size)),e.writeString(this.type,null,4),"uuid"===this.type&&e.writeUint8Array(this.uuid),this.size>l&&e.writeUint64(this.size)},c.FullBox.prototype.writeHeader=function(e){this.size+=4,c.Box.prototype.writeHeader.call(this,e," v="+this.version+" f="+this.flags),e.writeUint8(this.version),e.writeUint24(this.flags)},c.Box.prototype.write=function(e){"mdat"===this.type?this.data&&(this.size=this.data.length,this.writeHeader(e),e.writeUint8Array(this.data)):(this.size=this.data?this.data.length:0,this.writeHeader(e),this.data&&e.writeUint8Array(this.data))},c.ContainerBox.prototype.write=function(e){this.size=0,this.writeHeader(e);for(var t=0;t=2&&e.writeUint32(this.default_sample_description_index),e.writeUint32(this.entries.length),t=0;t0)for(t=0;t+1-1||e[i]instanceof c.Box||t[i]instanceof c.Box||void 0===e[i]||void 0===t[i]||"function"==typeof e[i]||"function"==typeof t[i]||e.subBoxNames&&e.subBoxNames.indexOf(i.slice(0,4))>-1||t.subBoxNames&&t.subBoxNames.indexOf(i.slice(0,4))>-1||"data"===i||"start"===i||"size"===i||"creation_time"===i||"modification_time"===i||c.DIFF_PRIMITIVE_ARRAY_PROP_NAMES.indexOf(i)>-1||e[i]===t[i]))return!1;return!0},c.boxEqual=function(e,t){if(!c.boxEqualFields(e,t))return!1;for(var i=0;i=t?e:new Array(t-e.length+1).join(i)+e}function n(e){var t=Math.floor(e/3600),i=Math.floor((e-3600*t)/60),n=Math.floor(e-3600*t-60*i),a=Math.floor(1e3*(e-3600*t-60*i-n));return r(t,2)+":"+r(i,2)+":"+r(n,2)+"."+r(a,3)}for(var a=this.parseSample(i),s="",o=0;o1)for(t=1;t-1&&this.fragmentedTracks.splice(t,1)},p.prototype.setExtractionOptions=function(e,t,i){var r=this.getTrackById(e);if(r){var n={};this.extractedTracks.push(n),n.id=e,n.user=t,n.trak=r,r.nextSample=0,n.nb_samples=1e3,n.samples=[],i&&i.nbSamples&&(n.nb_samples=i.nbSamples)}},p.prototype.unsetExtractionOptions=function(e){for(var t=-1,i=0;i-1&&this.extractedTracks.splice(t,1)},p.prototype.parse=function(){var e,t;if(!this.restoreParsePosition||this.restoreParsePosition())for(;;){if(this.hasIncompleteMdat&&this.hasIncompleteMdat()){if(this.processIncompleteMdat())continue;return}if(this.saveParsePosition&&this.saveParsePosition(),(e=c.parseOneBox(this.stream,!1)).code===c.ERR_NOT_ENOUGH_DATA){if(this.processIncompleteBox){if(this.processIncompleteBox(e))continue;return}return}var i;switch(i="uuid"!==(t=e.box).type?t.type:t.uuid,this.boxes.push(t),i){case"mdat":this.mdats.push(t);break;case"moof":this.moofs.push(t);break;case"moov":this.moovStartFound=!0,0===this.mdats.length&&(this.isProgressive=!0);default:void 0!==this[i]&&a.warn("ISOFile","Duplicate Box of type: "+i+", overriding previous occurrence"),this[i]=t}this.updateUsedBytes&&this.updateUsedBytes(t,e)}},p.prototype.checkBuffer=function(e){if(null==e)throw"Buffer must be defined and non empty";if(void 0===e.fileStart)throw"Buffer must have a fileStart property";return 0===e.byteLength?(a.warn("ISOFile","Ignoring empty buffer (fileStart: "+e.fileStart+")"),this.stream.logBufferLevel(),!1):(a.info("ISOFile","Processing buffer (fileStart: "+e.fileStart+")"),e.usedBytes=0,this.stream.insertBuffer(e),this.stream.logBufferLevel(),!!this.stream.initialized()||(a.warn("ISOFile","Not ready to start parsing"),!1))},p.prototype.appendBuffer=function(e,t){var i;if(this.checkBuffer(e))return this.parse(),this.moovStartFound&&!this.moovStartSent&&(this.moovStartSent=!0,this.onMoovStart&&this.onMoovStart()),this.moov?(this.sampleListBuilt||(this.buildSampleLists(),this.sampleListBuilt=!0),this.updateSampleLists(),this.onReady&&!this.readySent&&(this.readySent=!0,this.onReady(this.getInfo())),this.processSamples(t),this.nextSeekPosition?(i=this.nextSeekPosition,this.nextSeekPosition=void 0):i=this.nextParsePosition,this.stream.getEndFilePositionAfter&&(i=this.stream.getEndFilePositionAfter(i))):i=this.nextParsePosition?this.nextParsePosition:0,this.sidx&&this.onSidx&&!this.sidxSent&&(this.onSidx(this.sidx),this.sidxSent=!0),this.meta&&(this.flattenItemInfo&&!this.itemListBuilt&&(this.flattenItemInfo(),this.itemListBuilt=!0),this.processItems&&this.processItems(this.onItem)),this.stream.cleanBuffers&&(a.info("ISOFile","Done processing buffer (fileStart: "+e.fileStart+") - next buffer to fetch should have a fileStart position of "+i),this.stream.logBufferLevel(),this.stream.cleanBuffers(),this.stream.logBufferLevel(!0),a.info("ISOFile","Sample data size in memory: "+this.getAllocatedSampleDataSize())),i},p.prototype.getInfo=function(){var e,t,i,r,n,a={},s=new Date("1904-01-01T00:00:00Z").getTime();if(this.moov)for(a.hasMoov=!0,a.duration=this.moov.mvhd.duration,a.timescale=this.moov.mvhd.timescale,a.isFragmented=null!=this.moov.mvex,a.isFragmented&&this.moov.mvex.mehd&&(a.fragment_duration=this.moov.mvex.mehd.fragment_duration),a.isProgressive=this.isProgressive,a.hasIOD=null!=this.moov.iods,a.brands=[],a.brands.push(this.ftyp.major_brand),a.brands=a.brands.concat(this.ftyp.compatible_brands),a.created=new Date(s+1e3*this.moov.mvhd.creation_time),a.modified=new Date(s+1e3*this.moov.mvhd.modification_time),a.tracks=[],a.audioTracks=[],a.videoTracks=[],a.subtitleTracks=[],a.metadataTracks=[],a.hintTracks=[],a.otherTracks=[],e=0;e0?a.mime+='video/mp4; codecs="':a.audioTracks&&a.audioTracks.length>0?a.mime+='audio/mp4; codecs="':a.mime+='application/mp4; codecs="',e=0;e=i.samples.length)&&(a.info("ISOFile","Sending fragmented data on track #"+r.id+" for samples ["+Math.max(0,i.nextSample-r.nb_samples)+","+(i.nextSample-1)+"]"),a.info("ISOFile","Sample data size in memory: "+this.getAllocatedSampleDataSize()),this.onSegment&&this.onSegment(r.id,r.user,r.segmentStream.buffer,i.nextSample,e||i.nextSample>=i.samples.length),r.segmentStream=null,r!==this.fragmentedTracks[t]))break}}if(null!==this.onSamples)for(t=0;t=i.samples.length)&&(a.debug("ISOFile","Sending samples on track #"+s.id+" for sample "+i.nextSample),this.onSamples&&this.onSamples(s.id,s.user,s.samples),s.samples=[],s!==this.extractedTracks[t]))break}}}},p.prototype.getBox=function(e){var t=this.getBoxes(e,!0);return t.length?t[0]:null},p.prototype.getBoxes=function(e,t){var i=[];return p._sweep.call(this,e,i,t),i},p._sweep=function(e,t,i){for(var r in this.type&&this.type==e&&t.push(this),this.boxes){if(t.length&&i)return;p._sweep.call(this.boxes[r],e,t,i)}},p.prototype.getTrackSamplesInfo=function(e){var t=this.getTrackById(e);return t?t.samples:void 0},p.prototype.getTrackSample=function(e,t){var i=this.getTrackById(e);return this.getSample(i,t)},p.prototype.releaseUsedSamples=function(e,t){var i=0,r=this.getTrackById(e);r.lastValidSample||(r.lastValidSample=0);for(var n=r.lastValidSample;ne*n.timescale){f=r-1;break}t&&n.is_sync&&(l=r)}for(t&&(f=l),e=i.samples[f].cts,i.nextSample=f;i.samples[f].alreadyRead===i.samples[f].size&&i.samples[f+1];)f++;return s=i.samples[f].offset+i.samples[f].alreadyRead,a.info("ISOFile","Seeking to "+(t?"RAP":"")+" sample #"+i.nextSample+" on track "+i.tkhd.track_id+", time "+a.getDurationString(e,o)+" and offset: "+s),{offset:s,time:e/o}},p.prototype.seek=function(e,t){var i,r,n,s=this.moov,o={offset:1/0,time:1/0};if(this.moov){for(n=0;n-1){s=o;break}switch(s){case"Visual":n.add("vmhd").set("graphicsmode",0).set("opcolor",[0,0,0]),a.set("width",t.width).set("height",t.height).set("horizresolution",72<<16).set("vertresolution",72<<16).set("frame_count",1).set("compressorname",t.type+" Compressor").set("depth",24);break;case"Audio":n.add("smhd").set("balance",t.balance||0),a.set("channel_count",t.channel_count||2).set("samplesize",t.samplesize||16).set("samplerate",t.samplerate||65536);break;case"Hint":n.add("hmhd");break;case"Subtitle":switch(n.add("sthd"),t.type){case"stpp":a.set("namespace",t.namespace||"nonamespace").set("schema_location",t.schema_location||"").set("auxiliary_mime_types",t.auxiliary_mime_types||"")}break;case"Metadata":case"System":default:n.add("nmhd")}t.description&&a.addBox(t.description),t.description_boxes&&t.description_boxes.forEach((function(e){a.addBox(e)})),n.add("dinf").add("dref").addEntry((new c["url Box"]).set("flags",1));var u=n.add("stbl");return u.add("stsd").addEntry(a),u.add("stts").set("sample_counts",[]).set("sample_deltas",[]),u.add("stsc").set("first_chunk",[]).set("samples_per_chunk",[]).set("sample_description_index",[]),u.add("stco").set("chunk_offsets",[]),u.add("stsz").set("sample_sizes",[]),this.moov.mvex.add("trex").set("track_id",t.id).set("default_sample_description_index",t.default_sample_description_index||1).set("default_sample_duration",t.default_sample_duration||0).set("default_sample_size",t.default_sample_size||0).set("default_sample_flags",t.default_sample_flags||0),this.buildTrakSampleLists(i),t.id}},c.Box.prototype.computeSize=function(e){var t=e||new o;t.endianness=o.BIG_ENDIAN,this.write(t)},p.prototype.addSample=function(e,t,i){var r=i||{},n={},a=this.getTrackById(e);if(null!==a){n.number=a.samples.length,n.track_id=a.tkhd.track_id,n.timescale=a.mdia.mdhd.timescale,n.description_index=r.sample_description_index?r.sample_description_index-1:0,n.description=a.mdia.minf.stbl.stsd.entries[n.description_index],n.data=t,n.size=t.length,n.alreadyRead=n.size,n.duration=r.duration||1,n.cts=r.cts||0,n.dts=r.dts||0,n.is_sync=r.is_sync||!1,n.is_leading=r.is_leading||0,n.depends_on=r.depends_on||0,n.is_depended_on=r.is_depended_on||0,n.has_redundancy=r.has_redundancy||0,n.degradation_priority=r.degradation_priority||0,n.offset=0,n.subsamples=r.subsamples,a.samples.push(n),a.samples_size+=n.size,a.samples_duration+=n.duration,this.processSamples();var s=p.createSingleSampleMoof(n);return this.addBox(s),s.computeSize(),s.trafs[0].truns[0].data_offset=s.size+8,this.add("mdat").data=t,n}},p.createSingleSampleMoof=function(e){var t=new c.moofBox;t.add("mfhd").set("sequence_number",this.nextMoofNumber),this.nextMoofNumber++;var i=t.add("traf");return i.add("tfhd").set("track_id",e.track_id).set("flags",c.TFHD_FLAG_DEFAULT_BASE_IS_MOOF),i.add("tfdt").set("baseMediaDecodeTime",e.dts),i.add("trun").set("flags",c.TRUN_FLAGS_DATA_OFFSET|c.TRUN_FLAGS_DURATION|c.TRUN_FLAGS_SIZE|c.TRUN_FLAGS_FLAGS|c.TRUN_FLAGS_CTS_OFFSET).set("data_offset",0).set("first_sample_flags",0).set("sample_count",1).set("sample_duration",[e.duration]).set("sample_size",[e.size]).set("sample_flags",[0]).set("sample_composition_time_offset",[e.cts-e.dts]),t},p.prototype.lastMoofIndex=0,p.prototype.samplesDataSize=0,p.prototype.resetTables=function(){var e,t,i,r,n,a;for(this.initial_duration=this.moov.mvhd.duration,this.moov.mvhd.duration=0,e=0;e=2&&(l=n[s].grouping_type+"/0",(o=new f(n[s].grouping_type,0)).is_fragment=!0,t.sample_groups_info[l]||(t.sample_groups_info[l]=o))}else for(s=0;s=2&&(l=r[s].grouping_type+"/0",o=new f(r[s].grouping_type,0),e.sample_groups_info[l]||(e.sample_groups_info[l]=o))},p.setSampleGroupProperties=function(e,t,i,r){var n,a;for(n in t.sample_groups=[],r){var s;if(t.sample_groups[n]={},t.sample_groups[n].grouping_type=r[n].grouping_type,t.sample_groups[n].grouping_type_parameter=r[n].grouping_type_parameter,i>=r[n].last_sample_in_run&&(r[n].last_sample_in_run<0&&(r[n].last_sample_in_run=0),r[n].entry_index++,r[n].entry_index<=r[n].sbgp.entries.length-1&&(r[n].last_sample_in_run+=r[n].sbgp.entries[r[n].entry_index].sample_count)),r[n].entry_index<=r[n].sbgp.entries.length-1?t.sample_groups[n].group_description_index=r[n].sbgp.entries[r[n].entry_index].group_description_index:t.sample_groups[n].group_description_index=-1,0!==t.sample_groups[n].group_description_index)s=r[n].fragment_description?r[n].fragment_description:r[n].description,t.sample_groups[n].group_description_index>0?(a=t.sample_groups[n].group_description_index>65535?(t.sample_groups[n].group_description_index>>16)-1:t.sample_groups[n].group_description_index-1,s&&a>=0&&(t.sample_groups[n].description=s.entries[a])):s&&s.version>=2&&s.default_group_description_index>0&&(t.sample_groups[n].description=s.entries[s.default_group_description_index-1])}},p.process_sdtp=function(e,t,i){t&&(e?(t.is_leading=e.is_leading[i],t.depends_on=e.sample_depends_on[i],t.is_depended_on=e.sample_is_depended_on[i],t.has_redundancy=e.sample_has_redundancy[i]):(t.is_leading=0,t.depends_on=0,t.is_depended_on=0,t.has_redundancy=0))},p.prototype.buildSampleLists=function(){var e,t;for(e=0;ey&&(g++,y<0&&(y=0),y+=a.sample_counts[g]),t>0?(e.samples[t-1].duration=a.sample_deltas[g],e.samples_duration+=e.samples[t-1].duration,T.dts=e.samples[t-1].dts+e.samples[t-1].duration):T.dts=0,s?(t>=w&&(E++,w<0&&(w=0),w+=s.sample_counts[E]),T.cts=e.samples[t].dts+s.sample_offsets[E]):T.cts=T.dts,o?(t==o.sample_numbers[C]-1?(T.is_sync=!0,C++):(T.is_sync=!1,T.degradation_priority=0),f&&f.entries[S].sample_delta+j==t+1&&(T.subsamples=f.entries[S].subsamples,j+=f.entries[S].sample_delta,S++)):T.is_sync=!0,p.process_sdtp(e.mdia.minf.stbl.sdtp,T,T.number),T.degradation_priority=h?h.priority[t]:0,f&&f.entries[S].sample_delta+j==t&&(T.subsamples=f.entries[S].subsamples,j+=f.entries[S].sample_delta),(u.length>0||c.length>0)&&p.setSampleGroupProperties(e,T,t,e.sample_groups_info)}t>0&&(e.samples[t-1].duration=Math.max(e.mdia.mdhd.duration-e.samples[t-1].dts,0),e.samples_duration+=e.samples[t-1].duration)}},p.prototype.updateSampleLists=function(){var e,t,i,r,n,a,s,o,l,f,u,h,d,_,m;if(void 0!==this.moov)for(;this.lastMoofIndex0&&p.initSampleGroups(h,u,u.sbgps,h.mdia.minf.stbl.sgpds,u.sgpds),t=0;t0?_.dts=h.samples[h.samples.length-2].dts+h.samples[h.samples.length-2].duration:(u.tfdt?_.dts=u.tfdt.baseMediaDecodeTime:_.dts=0,h.first_traf_merged=!0),_.cts=_.dts,b.flags&c.TRUN_FLAGS_CTS_OFFSET&&(_.cts=_.dts+b.sample_composition_time_offset[i]),m=s,b.flags&c.TRUN_FLAGS_FLAGS?m=b.sample_flags[i]:0===i&&b.flags&c.TRUN_FLAGS_FIRST_FLAG&&(m=b.first_sample_flags),_.is_sync=!(m>>16&1),_.is_leading=m>>26&3,_.depends_on=m>>24&3,_.is_depended_on=m>>22&3,_.has_redundancy=m>>20&3,_.degradation_priority=65535&m;var v=!!(u.tfhd.flags&c.TFHD_FLAG_BASE_DATA_OFFSET),y=!!(u.tfhd.flags&c.TFHD_FLAG_DEFAULT_BASE_IS_MOOF),g=!!(b.flags&c.TRUN_FLAGS_DATA_OFFSET),w=0;w=v?u.tfhd.base_data_offset:y||0===t?f.start:o,_.offset=0===t&&0===i?g?w+b.data_offset:w:o,o=_.offset+_.size,(u.sbgps.length>0||u.sgpds.length>0||h.mdia.minf.stbl.sbgps.length>0||h.mdia.minf.stbl.sgpds.length>0)&&p.setSampleGroupProperties(h,_,_.number_in_traf,u.sample_groups_info)}}if(u.subs){h.has_fragment_subsamples=!0;var E=u.first_sample_index;for(t=0;t-1))return null;var s=(i=this.stream.buffers[n]).byteLength-(r.offset+r.alreadyRead-i.fileStart);if(r.size-r.alreadyRead<=s)return a.debug("ISOFile","Getting sample #"+t+" data (alreadyRead: "+r.alreadyRead+" offset: "+(r.offset+r.alreadyRead-i.fileStart)+" read size: "+(r.size-r.alreadyRead)+" full size: "+r.size+")"),o.memcpy(r.data.buffer,r.alreadyRead,i,r.offset+r.alreadyRead-i.fileStart,r.size-r.alreadyRead),i.usedBytes+=r.size-r.alreadyRead,this.stream.logBufferLevel(),r.alreadyRead=r.size,r;if(0===s)return null;a.debug("ISOFile","Getting sample #"+t+" partial data (alreadyRead: "+r.alreadyRead+" offset: "+(r.offset+r.alreadyRead-i.fileStart)+" read size: "+s+" full size: "+r.size+")"),o.memcpy(r.data.buffer,r.alreadyRead,i,r.offset+r.alreadyRead-i.fileStart,s),r.alreadyRead+=s,i.usedBytes+=s,this.stream.logBufferLevel()}},p.prototype.releaseSample=function(e,t){var i=e.samples[t];return i.data?(this.samplesDataSize-=i.size,i.data=null,i.alreadyRead=0,i.size):0},p.prototype.getAllocatedSampleDataSize=function(){return this.samplesDataSize},p.prototype.getCodecs=function(){var e,t="";for(e=0;e0&&(t+=","),t+=this.moov.traks[e].mdia.minf.stbl.stsd.entries[0].getCodec()}return t},p.prototype.getTrexById=function(e){var t;if(!this.moov||!this.moov.mvex)return null;for(t=0;t0&&(i.protection=n.ipro.protections[n.iinf.item_infos[e].protection_index-1]),n.iinf.item_infos[e].item_type?i.type=n.iinf.item_infos[e].item_type:i.type="mime",i.content_type=n.iinf.item_infos[e].content_type,i.content_encoding=n.iinf.item_infos[e].content_encoding;if(n.iloc)for(e=0;e0){var h=n.iprp.ipco.boxes[c.property_index-1];i.properties[h.type]=h,i.properties.boxes.push(h)}}}}}},p.prototype.getItem=function(e){var t,i;if(!this.meta)return null;if(!(i=this.items[e]).data&&i.size)i.data=new Uint8Array(i.size),i.alreadyRead=0,this.itemsDataSize+=i.size,a.debug("ISOFile","Allocating item #"+e+" of size "+i.size+" (total: "+this.itemsDataSize+")");else if(i.alreadyRead===i.size)return i;for(var r=0;r-1))return null;var l=(t=this.stream.buffers[s]).byteLength-(n.offset+n.alreadyRead-t.fileStart);if(!(n.length-n.alreadyRead<=l))return a.debug("ISOFile","Getting item #"+e+" extent #"+r+" partial data (alreadyRead: "+n.alreadyRead+" offset: "+(n.offset+n.alreadyRead-t.fileStart)+" read size: "+l+" full extent size: "+n.length+" full item size: "+i.size+")"),o.memcpy(i.data.buffer,i.alreadyRead,t,n.offset+n.alreadyRead-t.fileStart,l),n.alreadyRead+=l,i.alreadyRead+=l,t.usedBytes+=l,this.stream.logBufferLevel(),null;a.debug("ISOFile","Getting item #"+e+" extent #"+r+" data (alreadyRead: "+n.alreadyRead+" offset: "+(n.offset+n.alreadyRead-t.fileStart)+" read size: "+(n.length-n.alreadyRead)+" full extent size: "+n.length+" full item size: "+i.size+")"),o.memcpy(i.data.buffer,i.alreadyRead,t,n.offset+n.alreadyRead-t.fileStart,n.length-n.alreadyRead),t.usedBytes+=n.length-n.alreadyRead,this.stream.logBufferLevel(),i.alreadyRead+=n.length-n.alreadyRead,n.alreadyRead=n.length}}return i.alreadyRead===i.size?i:null},p.prototype.releaseItem=function(e){var t=this.items[e];if(t.data){this.itemsDataSize-=t.size,t.data=null,t.alreadyRead=0;for(var i=0;i0?this.moov.traks[e].samples[0].duration:0),t.push(r)}return t},c.Box.prototype.printHeader=function(e){this.size+=8,this.size>l&&(this.size+=8),"uuid"===this.type&&(this.size+=16),e.log(e.indent+"size:"+this.size),e.log(e.indent+"type:"+this.type)},c.FullBox.prototype.printHeader=function(e){this.size+=4,c.Box.prototype.printHeader.call(this,e),e.log(e.indent+"version:"+this.version),e.log(e.indent+"flags:"+this.flags)},c.Box.prototype.print=function(e){this.printHeader(e)},c.ContainerBox.prototype.print=function(e){this.printHeader(e);for(var t=0;t>8)),e.log(e.indent+"matrix: "+this.matrix.join(", ")),e.log(e.indent+"next_track_id: "+this.next_track_id)},c.tkhdBox.prototype.print=function(e){c.FullBox.prototype.printHeader.call(this,e),e.log(e.indent+"creation_time: "+this.creation_time),e.log(e.indent+"modification_time: "+this.modification_time),e.log(e.indent+"track_id: "+this.track_id),e.log(e.indent+"duration: "+this.duration),e.log(e.indent+"volume: "+(this.volume>>8)),e.log(e.indent+"matrix: "+this.matrix.join(", ")),e.log(e.indent+"layer: "+this.layer),e.log(e.indent+"alternate_group: "+this.alternate_group),e.log(e.indent+"width: "+this.width),e.log(e.indent+"height: "+this.height)};var m={createFile:function(e,t){var i=void 0===e||e,r=new p(t);return r.discardMdatData=!i,r}};void 0!==i&&(i.createFile=m.createFile)},{}],145:[function(e,t,i){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],146:[function(e,t,i){"use strict";var r=e("asn1.js");i.certificate=e("./certificate");var n=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));i.RSAPrivateKey=n;var a=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));i.RSAPublicKey=a;var s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}));i.PublicKey=s;var o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),l=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(o),this.key("subjectPrivateKey").octstr())}));i.PrivateKey=l;var f=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));i.EncryptedPrivateKey=f;var u=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));i.DSAPrivateKey=u,i.DSAparam=r.define("DSAparam",(function(){this.int()}));var c=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));i.ECPrivateKey=c;var h=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));i.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":147,"asn1.js":2}],147:[function(e,t,i){"use strict";var r=e("asn1.js"),n=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),a=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),s=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())})),l=r.define("RelativeDistinguishedName",(function(){this.setof(a)})),f=r.define("RDNSequence",(function(){this.seqof(l)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(f)})})),c=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(n),this.key("notAfter").use(n))})),h=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(u),this.key("validity").use(c),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),_=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())}));t.exports=_},{"asn1.js":2}],148:[function(e,t,i){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=e("evp_bytestokey"),o=e("browserify-aes"),l=e("safe-buffer").Buffer;t.exports=function(e,t){var i,f=e.toString(),u=f.match(r);if(u){var c="aes"+u[1],h=l.from(u[2],"hex"),d=l.from(u[3].replace(/[\r\n]/g,""),"base64"),_=s(t,h.slice(0,8),parseInt(u[1],10)).key,p=[],m=o.createDecipheriv(c,_,h);p.push(m.update(d)),p.push(m.final()),i=l.concat(p)}else{var b=f.match(a);i=l.from(b[2].replace(/[\r\n]/g,""),"base64")}return{tag:f.match(n)[1],data:i}}},{"browserify-aes":23,evp_bytestokey:105,"safe-buffer":184}],149:[function(e,t,i){var r=e("./asn1"),n=e("./aesid.json"),a=e("./fixProc"),s=e("browserify-aes"),o=e("pbkdf2"),l=e("safe-buffer").Buffer;function f(e){var t;"object"!=typeof e||l.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=l.from(e));var i,f,u=a(e,t),c=u.tag,h=u.data;switch(c){case"CERTIFICATE":f=r.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=r.PublicKey.decode(h,"der")),i=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=r.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":h=function(e,t){var i=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=n[e.algorithm.decrypt.cipher.algo.join(".")],f=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,c=parseInt(a.split("-")[1],10)/8,h=o.pbkdf2Sync(t,i,r,c,"sha1"),d=s.createDecipheriv(a,h,f),_=[];return _.push(d.update(u)),_.push(d.final()),l.concat(_)}(h=r.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(i=(f=r.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:r.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=r.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=r.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+c)}}t.exports=f,f.signature=r.signature},{"./aesid.json":145,"./asn1":146,"./fixProc":148,"browserify-aes":23,pbkdf2:151,"safe-buffer":184}],150:[function(e,t,i){(function(e){function t(e,t){for(var i=0,r=e.length-1;r>=0;r--){var n=e[r];"."===n?e.splice(r,1):".."===n?(e.splice(r,1),i++):i&&(e.splice(r,1),i--)}if(t)for(;i--;i)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var i=[],r=0;r=-1&&!n;a--){var s=a>=0?arguments[a]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(i=s+"/"+i,n="/"===s.charAt(0))}return(n?"/":"")+(i=t(r(i.split("/"),(function(e){return!!e})),!n).join("/"))||"."},i.normalize=function(e){var a=i.isAbsolute(e),s="/"===n(e,-1);return(e=t(r(e.split("/"),(function(e){return!!e})),!a).join("/"))||a||(e="."),e&&s&&(e+="/"),(a?"/":"")+e},i.isAbsolute=function(e){return"/"===e.charAt(0)},i.join=function(){var e=Array.prototype.slice.call(arguments,0);return i.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},i.relative=function(e,t){function r(e){for(var t=0;t=0&&""===e[i];i--);return t>i?[]:e.slice(t,i-t+1)}e=i.resolve(e).substr(1),t=i.resolve(t).substr(1);for(var n=r(e.split("/")),a=r(t.split("/")),s=Math.min(n.length,a.length),o=s,l=0;l=1;--a)if(47===(t=e.charCodeAt(a))){if(!n){r=a;break}}else n=!1;return-1===r?i?"/":".":i&&1===r?"/":e.slice(0,r)},i.basename=function(e,t){var i=function(e){"string"!=typeof e&&(e+="");var t,i=0,r=-1,n=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!n){i=t+1;break}}else-1===r&&(n=!1,r=t+1);return-1===r?"":e.slice(i,r)}(e);return t&&i.substr(-1*t.length)===t&&(i=i.substr(0,i.length-t.length)),i},i.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,i=0,r=-1,n=!0,a=0,s=e.length-1;s>=0;--s){var o=e.charCodeAt(s);if(47!==o)-1===r&&(n=!1,r=s+1),46===o?-1===t?t=s:1!==a&&(a=1):-1!==t&&(a=-1);else if(!n){i=s+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===i+1?"":e.slice(t,r)};var n="b"==="ab".substr(-1)?function(e,t,i){return e.substr(t,i)}:function(e,t,i){return t<0&&(t=e.length+t),e.substr(t,i)}}).call(this,e("_process"))},{_process:158}],151:[function(e,t,i){i.pbkdf2=e("./lib/async"),i.pbkdf2Sync=e("./lib/sync")},{"./lib/async":152,"./lib/sync":155}],152:[function(e,t,i){(function(i,r){var n,a=e("safe-buffer").Buffer,s=e("./precondition"),o=e("./default-encoding"),l=e("./sync"),f=e("./to-buffer"),u=r.crypto&&r.crypto.subtle,c={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function d(e,t,i,r,n){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:i,hash:{name:n}},e,r<<3)})).then((function(e){return a.from(e)}))}t.exports=function(e,t,_,p,m,b){"function"==typeof m&&(b=m,m=void 0);var v=c[(m=m||"sha1").toLowerCase()];if(!v||"function"!=typeof r.Promise)return i.nextTick((function(){var i;try{i=l(e,t,_,p,m)}catch(e){return b(e)}b(null,i)}));if(s(_,p),e=f(e,o,"Password"),t=f(t,o,"Salt"),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){i.nextTick((function(){t(null,e)}))}),(function(e){i.nextTick((function(){t(e)}))}))}(function(e){if(r.process&&!r.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=d(n=n||a.alloc(8),n,10,128,e).then((function(){return!0})).catch((function(){return!1}));return h[e]=t,t}(v).then((function(i){return i?d(e,t,_,p,v):l(e,t,_,p,m)})),b)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":153,"./precondition":154,"./sync":155,"./to-buffer":156,_process:158,"safe-buffer":184}],153:[function(e,t,i){(function(e){var i;if(e.browser)i="utf-8";else if(e.version){i=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else i="utf-8";t.exports=i}).call(this,e("_process"))},{_process:158}],154:[function(e,t,i){var r=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!=t)throw new TypeError("Bad key length")}},{}],155:[function(e,t,i){var r=e("create-hash/md5"),n=e("ripemd160"),a=e("sha.js"),s=e("safe-buffer").Buffer,o=e("./precondition"),l=e("./default-encoding"),f=e("./to-buffer"),u=s.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,i){var o=function(e){function t(t){return a(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new n).update(e).digest()}:"md5"===e?r:t}(e),l="sha512"===e||"sha384"===e?128:64;t.length>l?t=o(t):t.length1)for(var i=1;i_||new s(t).cmp(d.modulus)>=0)throw new Error("decryption error");h=i?f(new s(t),d):o(t,d);var p=u.alloc(_-h.length);if(h=u.concat([p,h],_),4===c)return function(e,t){var i=e.modulus.byteLength(),r=l("sha1").update(u.alloc(0)).digest(),s=r.length;if(0!==t[0])throw new Error("decryption error");var o=t.slice(1,s+1),f=t.slice(s+1),c=a(o,n(f,s)),h=a(f,n(c,i-s-1));if(function(e,t){e=u.from(e),t=u.from(t);var i=0,r=e.length;e.length!==t.length&&(i++,r=Math.min(e.length,t.length));var n=-1;for(;++n=t.length){a++;break}var s=t.slice(2,n-1);("0002"!==r.toString("hex")&&!i||"0001"!==r.toString("hex")&&i)&&a++;s.length<8&&a++;if(a)throw new Error("decryption error");return t.slice(n)}(0,h,i);if(3===c)return h;throw new Error("unknown padding")}},{"./mgf":160,"./withPublic":164,"./xor":165,"bn.js":161,"browserify-rsa":41,"create-hash":71,"parse-asn1":149,"safe-buffer":184}],163:[function(e,t,i){var r=e("parse-asn1"),n=e("randombytes"),a=e("create-hash"),s=e("./mgf"),o=e("./xor"),l=e("bn.js"),f=e("./withPublic"),u=e("browserify-rsa"),c=e("safe-buffer").Buffer;t.exports=function(e,t,i){var h;h=e.padding?e.padding:i?1:4;var d,_=r(e);if(4===h)d=function(e,t){var i=e.modulus.byteLength(),r=t.length,f=a("sha1").update(c.alloc(0)).digest(),u=f.length,h=2*u;if(r>i-h-2)throw new Error("message too long");var d=c.alloc(i-r-h-2),_=i-u-1,p=n(u),m=o(c.concat([f,d,c.alloc(1,1),t],_),s(p,_)),b=o(p,s(m,u));return new l(c.concat([c.alloc(1),b,m],i))}(_,t);else if(1===h)d=function(e,t,i){var r,a=t.length,s=e.modulus.byteLength();if(a>s-11)throw new Error("message too long");r=i?c.alloc(s-a-3,255):function(e){var t,i=c.allocUnsafe(e),r=0,a=n(2*e),s=0;for(;r=0)throw new Error("data too long for modulus")}return i?u(d,_):f(d,_)}},{"./mgf":160,"./withPublic":164,"./xor":165,"bn.js":161,"browserify-rsa":41,"create-hash":71,"parse-asn1":149,randombytes:166,"safe-buffer":184}],164:[function(e,t,i){var r=e("bn.js"),n=e("safe-buffer").Buffer;t.exports=function(e,t){return n.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},{"bn.js":161,"safe-buffer":184}],165:[function(e,t,i){t.exports=function(e,t){for(var i=e.length,r=-1;++r4294967295)throw new RangeError("requested too many random bytes");var r=n.allocUnsafe(e);if(e>0)if(e>65536)for(var s=0;su||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function h(e,t,i){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>i||e>l)throw new RangeError("buffer too small")}function d(e,i,r,n){if(t.browser){var a=e.buffer,o=new Uint8Array(a,i,r);return f.getRandomValues(o),n?void t.nextTick((function(){n(null,e)})):e}if(!n)return s(r).copy(e,i),e;s(r,(function(t,r){if(t)return n(t);r.copy(e,i),n(null,e)}))}f&&f.getRandomValues||!t.browser?(i.randomFill=function(e,t,i,n){if(!(o.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,i=e.length;else if("function"==typeof i)n=i,i=e.length-t;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return c(t,e.length),h(i,t,e.length),d(e,t,i,n)},i.randomFillSync=function(e,t,i){void 0===t&&(t=0);if(!(o.isBuffer(e)||e instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');c(t,e.length),void 0===i&&(i=e.length-t);return h(i,t,e.length),d(e,t,i)}):(i.randomFill=n,i.randomFillSync=n)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:158,randombytes:166,"safe-buffer":184}],168:[function(e,t,i){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":169}],169:[function(e,t,i){"use strict";var r=e("process-nextick-args"),n=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};t.exports=c;var a=Object.create(e("core-util-is"));a.inherits=e("inherits");var s=e("./_stream_readable"),o=e("./_stream_writable");a.inherits(c,s);for(var l=n(o.prototype),f=0;f0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!i?(t=s.decoder.write(t),s.objectMode||0!==t.length?w(e,s,t,!1):j(e,s)):w(e,s,t,!1))):r||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(S,e):S(e))}function S(e){d("emit readable"),e.emit("readable"),M(e)}function j(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(T,e,t))}function T(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):i=function(e,t,i){var r;ea.length?a.length:e;if(s===a.length?n+=a:n+=a.slice(0,e),0===(e-=s)){s===a.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=a.slice(s));break}++r}return t.length-=r,n}(e,t):function(e,t){var i=f.allocUnsafe(e),r=t.head,n=1;r.data.copy(i),e-=r.data.length;for(;r=r.next;){var a=r.data,s=e>a.length?a.length:e;if(a.copy(i,i.length-e,0,s),0===(e-=s)){s===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(s));break}++n}return t.length-=n,i}(e,t);return r}(e,t.buffer,t.decoder),i);var i}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function U(e,t){for(var i=0,r=e.length;i=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):C(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,n=t.needReadable;return d("need readable",n),(0===t.length||t.length-e0?k(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,d("pipe count=%d opts=%j",a.pipesCount,t);var l=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?u:y;function f(t,i){d("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,d("cleanup"),e.removeListener("close",b),e.removeListener("finish",v),e.removeListener("drain",c),e.removeListener("error",m),e.removeListener("unpipe",f),r.removeListener("end",u),r.removeListener("end",y),r.removeListener("data",p),h=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}function u(){d("onend"),e.end()}a.endEmitted?n.nextTick(l):r.once("end",l),e.on("unpipe",f);var c=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,M(e))}}(r);e.on("drain",c);var h=!1;var _=!1;function p(t){d("ondata"),_=!1,!1!==e.write(t)||_||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==U(a.pipes,e))&&!h&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,_=!0),r.pause())}function m(t){d("onerror",t),y(),e.removeListener("error",m),0===o(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",v),y()}function v(){d("onfinish"),e.removeListener("close",b),y()}function y(){d("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",m),e.once("close",b),e.once("finish",v),e.emit("pipe",r),a.flowing||(d("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a-1?n:a.nextTick;v.WritableState=b;var f=Object.create(e("core-util-is"));f.inherits=e("inherits");var u={deprecate:e("util-deprecate")},c=e("./internal/streams/stream"),h=e("safe-buffer").Buffer,d=r.Uint8Array||function(){};var _,p=e("./internal/streams/destroy");function m(){}function b(t,i){o=o||e("./_stream_duplex"),t=t||{};var r=i instanceof o;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,f=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(f||0===f)?f:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===t.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var i=e._writableState,r=i.sync,n=i.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),t)!function(e,t,i,r,n){--t.pendingcb,i?(a.nextTick(n,r),a.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(n(r),e._writableState.errorEmitted=!0,e.emit("error",r),S(e,t))}(e,i,r,t,n);else{var s=E(i);s||i.corked||i.bufferProcessing||!i.bufferedRequest||w(e,i),r?l(g,e,i,s,n):g(e,i,s,n)}}(i,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function v(t){if(o=o||e("./_stream_duplex"),!(_.call(v,this)||this instanceof o))return new v(t);this._writableState=new b(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function y(e,t,i,r,n,a,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,i?e._writev(n,t.onwrite):e._write(n,a,t.onwrite),t.sync=!1}function g(e,t,i,r){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function w(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var r=t.bufferedRequestCount,n=new Array(r),a=t.corkedRequestsFree;a.entry=i;for(var o=0,l=!0;i;)n[o]=i,i.isBuf||(l=!1),i=i.next,o+=1;n.allBuffers=l,y(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;i;){var f=i.chunk,u=i.encoding,c=i.callback;if(y(e,t,!1,t.objectMode?1:f.length,f,u,c),i=i.next,t.bufferedRequestCount--,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequest=i,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final((function(i){t.pendingcb--,i&&e.emit("error",i),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var i=E(t);return i&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(C,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),i}f.inherits(v,c),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(_=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!_.call(this,e)||this===v&&(e&&e._writableState instanceof b)}})):_=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,i){var r,n=this._writableState,s=!1,o=!n.objectMode&&(r=e,h.isBuffer(r)||r instanceof d);return o&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(i=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof i&&(i=m),n.ended?function(e,t){var i=new Error("write after end");e.emit("error",i),a.nextTick(t,i)}(this,i):(o||function(e,t,i,r){var n=!0,s=!1;return null===i?s=new TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),a.nextTick(r,s),n=!1),n}(this,n,e,i))&&(n.pendingcb++,s=function(e,t,i,r,n,a){if(!i){var s=function(e,t,i){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,i));return t}(t,r,n);r!==s&&(i=!0,n="buffer",r=s)}var o=t.objectMode?1:r.length;t.length+=o;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,i){i(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,i){var r=this._writableState;"function"==typeof e?(i=e,e=null,t=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,i){t.ending=!0,S(e,t),i&&(t.finished?a.nextTick(i):e.once("finish",i));t.ended=!0,e.writable=!1}(this,r,i)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=p.destroy,v.prototype._undestroy=p.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":169,"./internal/streams/destroy":175,"./internal/streams/stream":176,_process:158,"core-util-is":68,inherits:136,"process-nextick-args":157,"safe-buffer":177,timers:196,"util-deprecate":197}],174:[function(e,t,i){"use strict";var r=e("safe-buffer").Buffer,n=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,i,n,a=r.allocUnsafe(e>>>0),s=this.head,o=0;s;)t=s.data,i=a,n=o,t.copy(i,n),o+=s.data.length,s=s.next;return a},e}(),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":177,util:20}],175:[function(e,t,i){"use strict";var r=e("process-nextick-args");function n(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var i=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(n,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(n,i,e),i._writableState&&(i._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":157}],176:[function(e,t,i){arguments[4][62][0].apply(i,arguments)},{dup:62,events:104}],177:[function(e,t,i){var r=e("buffer"),n=r.Buffer;function a(e,t){for(var i in e)t[i]=e[i]}function s(e,t,i){return n(e,t,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(a(r,i),i.Buffer=s),a(n,s),s.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,i)},s.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"==typeof i?r.fill(t,i):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:66}],178:[function(e,t,i){"use strict";var r=e("safe-buffer").Buffer,n=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=f,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=u,this.end=c,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,i=function(e,t,i){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var i=e.toString("utf16le",t);if(i){var r=i.charCodeAt(i.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function u(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}i.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i=0)return n>0&&(e.lastNeed=n-1),n;if(--r=0)return n>0&&(e.lastNeed=n-2),n;if(--r=0)return n>0&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var r=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":177}],179:[function(e,t,i){t.exports=e("./readable").PassThrough},{"./readable":180}],180:[function(e,t,i){(i=t.exports=e("./lib/_stream_readable.js")).Stream=i,i.Readable=i,i.Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":169,"./lib/_stream_passthrough.js":170,"./lib/_stream_readable.js":171,"./lib/_stream_transform.js":172,"./lib/_stream_writable.js":173}],181:[function(e,t,i){t.exports=e("./readable").Transform},{"./readable":180}],182:[function(e,t,i){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":173}],183:[function(e,t,i){"use strict";var r=e("buffer").Buffer,n=e("inherits"),a=e("hash-base"),s=new Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],c=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function d(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function _(e,t){return e<>>32-t}function p(e,t,i,r,n,a,s,o){return _(e+(t^i^r)+a+s|0,o)+n|0}function m(e,t,i,r,n,a,s,o){return _(e+(t&i|~t&r)+a+s|0,o)+n|0}function b(e,t,i,r,n,a,s,o){return _(e+((t|~i)^r)+a+s|0,o)+n|0}function v(e,t,i,r,n,a,s,o){return _(e+(t&r|i&~r)+a+s|0,o)+n|0}function y(e,t,i,r,n,a,s,o){return _(e+(t^(i|~r))+a+s|0,o)+n|0}n(d,a),d.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var i=0|this._a,r=0|this._b,n=0|this._c,a=0|this._d,d=0|this._e,g=0|this._a,w=0|this._b,E=0|this._c,C=0|this._d,S=0|this._e,j=0;j<80;j+=1){var T,A;j<16?(T=p(i,r,n,a,d,e[o[j]],c[0],f[j]),A=y(g,w,E,C,S,e[l[j]],h[0],u[j])):j<32?(T=m(i,r,n,a,d,e[o[j]],c[1],f[j]),A=v(g,w,E,C,S,e[l[j]],h[1],u[j])):j<48?(T=b(i,r,n,a,d,e[o[j]],c[2],f[j]),A=b(g,w,E,C,S,e[l[j]],h[2],u[j])):j<64?(T=v(i,r,n,a,d,e[o[j]],c[3],f[j]),A=m(g,w,E,C,S,e[l[j]],h[3],u[j])):(T=y(i,r,n,a,d,e[o[j]],c[4],f[j]),A=p(g,w,E,C,S,e[l[j]],h[4],u[j])),i=d,d=a,a=_(n,10),n=r,r=T,g=S,S=C,C=_(E,10),E=w,w=A}var x=this._b+n+C|0;this._b=this._c+a+S|0,this._c=this._d+d+g|0,this._d=this._e+i+w|0,this._e=this._a+r+E|0,this._a=x},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=d},{buffer:66,"hash-base":106,inherits:136}],184:[function(e,t,i){ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ -var r=e("buffer"),n=r.Buffer;function a(e,t){for(var i in e)t[i]=e[i]}function s(e,t,i){return n(e,t,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(a(r,i),i.Buffer=s),s.prototype=Object.create(n.prototype),a(n,s),s.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,i)},s.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"==typeof i?r.fill(t,i):r.fill(t):r.fill(0),r},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},{buffer:66}],185:[function(e,t,i){(function(i){"use strict";var r,n=e("buffer"),a=n.Buffer,s={};for(r in n)n.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(s[r]=n[r]);var o=s.Buffer={};for(r in a)a.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(o[r]=a[r]);if(s.Buffer.prototype=a.prototype,o.from&&o.from!==Uint8Array.from||(o.from=function(e,t,i){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return a(e,t,i)}),o.alloc||(o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=a(e);return t&&0!==t.length?"string"==typeof i?r.fill(t,i):r.fill(t):r.fill(0),r}),!s.kStringMaxLength)try{s.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(e){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),t.exports=s}).call(this,e("_process"))},{_process:158,buffer:66}],186:[function(e,t,i){var r=e("safe-buffer").Buffer;function n(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var i=this._block,n=this._blockSize,a=e.length,s=this._len,o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var r=(4294967295&i)>>>0,n=(i-r)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=n},{"safe-buffer":184}],187:[function(e,t,i){(i=t.exports=function(e){e=e.toLowerCase();var t=i[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),i.sha1=e("./sha1"),i.sha224=e("./sha224"),i.sha256=e("./sha256"),i.sha384=e("./sha384"),i.sha512=e("./sha512")},{"./sha":188,"./sha1":189,"./sha224":190,"./sha256":191,"./sha384":192,"./sha512":193}],188:[function(e,t,i){var r=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function l(){this.init(),this._w=o,n.call(this,64,56)}function f(e){return e<<30|e>>>2}function u(e,t,i,r){return 0===e?t&i|~t&r:2===e?t&i|t&r|i&r:t^i^r}r(l,n),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,i=this._w,r=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,l=0|this._e,c=0;c<16;++c)i[c]=e.readInt32BE(4*c);for(;c<80;++c)i[c]=i[c-3]^i[c-8]^i[c-14]^i[c-16];for(var h=0;h<80;++h){var d=~~(h/20),_=0|((t=r)<<5|t>>>27)+u(d,n,a,o)+l+i[h]+s[d];l=o,o=a,a=f(n),n=r,r=_}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":186,inherits:136,"safe-buffer":184}],189:[function(e,t,i){var r=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function l(){this.init(),this._w=o,n.call(this,64,56)}function f(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function c(e,t,i,r){return 0===e?t&i|~t&r:2===e?t&i|t&r|i&r:t^i^r}r(l,n),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,i=this._w,r=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,l=0|this._e,h=0;h<16;++h)i[h]=e.readInt32BE(4*h);for(;h<80;++h)i[h]=(t=i[h-3]^i[h-8]^i[h-14]^i[h-16])<<1|t>>>31;for(var d=0;d<80;++d){var _=~~(d/20),p=f(r)+c(_,n,a,o)+l+i[d]+s[_]|0;l=o,o=a,a=u(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":186,inherits:136,"safe-buffer":184}],190:[function(e,t,i){var r=e("inherits"),n=e("./sha256"),a=e("./hash"),s=e("safe-buffer").Buffer,o=new Array(64);function l(){this.init(),this._w=o,a.call(this,64,56)}r(l,n),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=l},{"./hash":186,"./sha256":191,inherits:136,"safe-buffer":184}],191:[function(e,t,i){var r=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,s=[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],o=new Array(64);function l(){this.init(),this._w=o,n.call(this,64,56)}function f(e,t,i){return i^e&(t^i)}function u(e,t,i){return e&t|i&(e|t)}function c(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(l,n),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t,i=this._w,r=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,l=0|this._e,_=0|this._f,p=0|this._g,m=0|this._h,b=0;b<16;++b)i[b]=e.readInt32BE(4*b);for(;b<64;++b)i[b]=0|(((t=i[b-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+i[b-7]+d(i[b-15])+i[b-16];for(var v=0;v<64;++v){var y=m+h(l)+f(l,_,p)+s[v]+i[v]|0,g=c(r)+u(r,n,a)|0;m=p,p=_,_=l,l=o+y|0,o=a,a=n,n=r,r=y+g|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=l+this._e|0,this._f=_+this._f|0,this._g=p+this._g|0,this._h=m+this._h|0},l.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=l},{"./hash":186,inherits:136,"safe-buffer":184}],192:[function(e,t,i){var r=e("inherits"),n=e("./sha512"),a=e("./hash"),s=e("safe-buffer").Buffer,o=new Array(160);function l(){this.init(),this._w=o,a.call(this,128,112)}r(l,n),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,i,r){e.writeInt32BE(t,r),e.writeInt32BE(i,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=l},{"./hash":186,"./sha512":193,inherits:136,"safe-buffer":184}],193:[function(e,t,i){var r=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function l(){this.init(),this._w=o,n.call(this,128,112)}function f(e,t,i){return i^e&(t^i)}function u(e,t,i){return e&t|i&(e|t)}function c(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function _(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return e>>>0>>0?1:0}r(l,n),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,i=0|this._ah,r=0|this._bh,n=0|this._ch,a=0|this._dh,o=0|this._eh,l=0|this._fh,v=0|this._gh,y=0|this._hh,g=0|this._al,w=0|this._bl,E=0|this._cl,C=0|this._dl,S=0|this._el,j=0|this._fl,T=0|this._gl,A=0|this._hl,x=0;x<32;x+=2)t[x]=e.readInt32BE(4*x),t[x+1]=e.readInt32BE(4*x+4);for(;x<160;x+=2){var M=t[x-30],k=t[x-30+1],P=d(M,k),I=_(k,M),U=p(M=t[x-4],k=t[x-4+1]),R=m(k,M),D=t[x-14],O=t[x-14+1],F=t[x-32],B=t[x-32+1],L=I+O|0,N=P+D+b(L,I)|0;N=(N=N+U+b(L=L+R|0,R)|0)+F+b(L=L+B|0,B)|0,t[x]=N,t[x+1]=L}for(var z=0;z<160;z+=2){N=t[z],L=t[z+1];var H=u(i,r,n),V=u(g,w,E),Y=c(i,g),q=c(g,i),X=h(o,S),W=h(S,o),G=s[z],K=s[z+1],Q=f(o,l,v),Z=f(S,j,T),J=A+W|0,$=y+X+b(J,A)|0;$=($=($=$+Q+b(J=J+Z|0,Z)|0)+G+b(J=J+K|0,K)|0)+N+b(J=J+L|0,L)|0;var ee=q+V|0,te=Y+H+b(ee,q)|0;y=v,A=T,v=l,T=j,l=o,j=S,o=a+$+b(S=C+J|0,C)|0,a=n,C=E,n=r,E=w,r=i,w=g,i=$+te+b(g=J+ee|0,J)|0}this._al=this._al+g|0,this._bl=this._bl+w|0,this._cl=this._cl+E|0,this._dl=this._dl+C|0,this._el=this._el+S|0,this._fl=this._fl+j|0,this._gl=this._gl+T|0,this._hl=this._hl+A|0,this._ah=this._ah+i+b(this._al,g)|0,this._bh=this._bh+r+b(this._bl,w)|0,this._ch=this._ch+n+b(this._cl,E)|0,this._dh=this._dh+a+b(this._dl,C)|0,this._eh=this._eh+o+b(this._el,S)|0,this._fh=this._fh+l+b(this._fl,j)|0,this._gh=this._gh+v+b(this._gl,T)|0,this._hh=this._hh+y+b(this._hl,A)|0},l.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,i,r){e.writeInt32BE(t,r),e.writeInt32BE(i,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=l},{"./hash":186,inherits:136,"safe-buffer":184}],194:[function(e,t,i){t.exports=n;var r=e("events").EventEmitter;function n(){r.call(this)}e("inherits")(n,r),n.Readable=e("readable-stream/readable.js"),n.Writable=e("readable-stream/writable.js"),n.Duplex=e("readable-stream/duplex.js"),n.Transform=e("readable-stream/transform.js"),n.PassThrough=e("readable-stream/passthrough.js"),n.Stream=n,n.prototype.pipe=function(e,t){var i=this;function n(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function a(){i.readable&&i.resume&&i.resume()}i.on("data",n),e.on("drain",a),e._isStdio||t&&!1===t.end||(i.on("end",o),i.on("close",l));var s=!1;function o(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){i.removeListener("data",n),e.removeListener("drain",a),i.removeListener("end",o),i.removeListener("close",l),i.removeListener("error",f),e.removeListener("error",f),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",f),e.on("error",f),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e}},{events:104,inherits:136,"readable-stream/duplex.js":168,"readable-stream/passthrough.js":179,"readable-stream/readable.js":180,"readable-stream/transform.js":181,"readable-stream/writable.js":182}],195:[function(e,t,i){arguments[4][178][0].apply(i,arguments)},{dup:178,"safe-buffer":184}],196:[function(e,t,i){(function(t,r){var n=e("process/browser.js").nextTick,a=Function.prototype.apply,s=Array.prototype.slice,o={},l=0;function f(e,t){this._id=e,this._clearFn=t}i.setTimeout=function(){return new f(a.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new f(a.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(e){e.close()},f.prototype.unref=f.prototype.ref=function(){},f.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},i.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},i._unrefActive=i.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},i.setImmediate="function"==typeof t?t:function(e){var t=l++,r=!(arguments.length<2)&&s.call(arguments,1);return o[t]=!0,n((function(){o[t]&&(r?e.apply(null,r):e.call(null),i.clearImmediate(t))})),t},i.clearImmediate="function"==typeof r?r:function(e){delete o[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":158,timers:196}],197:[function(e,t,i){(function(e){function i(t){try{if(!e.localStorage)return!1}catch(e){return!1}var i=e.localStorage[t];return null!=i&&"true"===String(i).toLowerCase()}t.exports=function(e,t){if(i("noDeprecation"))return e;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],198:[function(e,t,i){"use strict";t.exports={DEFAILT_WEBGL_PLAY_ID:"glplayer",PLAYER_IN_TYPE_MP4:"mp4",PLAYER_IN_TYPE_RAW_265:"raw265",PLAYER_IN_TYPE_TS:"ts",PLAYER_IN_TYPE_MPEGTS:"mpegts",PLAYER_IN_TYPE_M3U8:"hls",PLAYER_IN_TYPE_M3U8_VOD:"m3u8",PLAYER_IN_TYPE_M3U8_LIVE:"hls",APPEND_TYPE_STREAM:0,APPEND_TYPE_FRAME:1,APPEND_TYPE_SEQUENCE:2,DEFAULT_WIDTH:600,DEFAULT_HEIGHT:600,DEFAULT_FPS:25,DEFAULT_FRAME_DUR:40,DEFAULT_FIXED:!1,DEFAULT_SAMPLERATE:44100,DEFAULT_CHANNELS:2,DEFAULT_CONSU_SAMPLE_LEN:20,PLAYER_MODE_VOD:"vod",PLAYER_MODE_NOTIME_LIVE:"live",AUDIO_MODE_ONCE:"ONCE",AUDIO_MODE_SWAP:"SWAP",DEFAULT_STRING_LIVE:"LIVE",CODEC_H265:0,CODEC_H264:1,PLAYER_CORE_TYPE_DEFAULT:0,PLAYER_CORE_TYPE_CNATIVE:1,V_CODEC_NAME_HEVC:265,V_CODEC_NAME_AVC:264,V_CODEC_NAME_UNKN:500,A_CODEC_NAME_AAC:112,A_CODEC_NAME_MP3:113,A_CODEC_NAME_UNKN:500}},{}],199:[function(e,t,i){"use strict";var r=window.AudioContext||window.webkitAudioContext,n=e("../consts"),a=function(){return(new Date).getTime()};t.exports=function(e){var t={options:{sampleRate:e.sampleRate||n.DEFAULT_SAMPLERATE,appendType:e.appendType||n.APPEND_TYPE_STREAM,playMode:e.playMode||n.AUDIO_MODE_SWAP},sourceChannel:-1,audioCtx:new r({latencyHint:"interactive",sampleRate:e.sampleRate}),gainNode:null,sourceList:[],startStatus:!1,sampleQueue:[],nextBuffer:null,playTimestamp:0,playStartTime:0,durationMs:-1,voice:1,onLoadCache:null,setOnLoadCache:function(e){t.onLoadCache=e},setDurationMs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;t.durationMs=e},setVoice:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.voice=e,t.gainNode.gain.value=e},getAlignVPTS:function(){return t.playTimestamp+(a()-t.playStartTime)/1e3},swapSource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0==t.startStatus)return null;if(e<0||e>=t.sourceList.length)return null;if(i<0||i>=t.sourceList.length)return null;try{t.sourceChannel===e&&null!==t.sourceList[e]&&(t.sourceList[e].disconnect(t.gainNode),t.sourceList[e]=null)}catch(e){}t.sourceChannel=i;var r=t.decodeSample(i,e);-2==r&&(t.getAlignVPTS()>=t.durationMs/1e3-.04?t.pause():null!==t.onLoadCache&&t.onLoadCache())},addSample:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!(null==e||!e||null==e)&&(0==t.sampleQueue.length&&(t.seekPos=e.pts),t.sampleQueue.push(e),!0)},runNextBuffer:function(){window.setInterval((function(){if(!(null!=t.nextBuffer||t.sampleQueue.length0&&void 0!==arguments[0]?arguments[0]:-1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(e<0||e>=t.sourceList.length)return-1;if(null!=t.sourceList[e]&&null!=t.sourceList[e]&&t.sourceList[e]||(t.sourceList[e]=t.audioCtx.createBufferSource(),t.sourceList[e].onended=function(){t.swapSource(e,i)}),0==t.sampleQueue.length)return-2;if(t.sourceList[e].buffer)return t.sourceList[e],t.sourceList[i],t.gainNode,t.swapSource(e,i),0;if(null==t.nextBuffer||t.nextBuffer.data.length<1)return t.sourceList[e].connect(t.gainNode),t.sourceList[e].start(),t.sourceList[e].startState=!0,t.sourceList[e].stop(),1;var r=t.nextBuffer.data.buffer;t.playTimestamp=t.nextBuffer.pts,t.playStartTime=a();try{t.audioCtx.decodeAudioData(r,(function(i){t.sourceList[e].buffer=i,t.sourceList[e].connect(t.gainNode),t.sourceList[e].start(),t.sourceList[e].startState=!0,t.sourceList[e]}),(function(e){}))}catch(e){return t.nextBuffer=null,-3}return t.nextBuffer=null,0},decodeWholeSamples:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(t.sourceChannel=e,e<0||e>=t.sourceList.length)return-1;if(null!=t.sourceList[e]&&null!=t.sourceList[e]&&t.sourceList[e]||(t.sourceList[e]=t.audioCtx.createBufferSource(),t.sourceList[e].onended=function(){}),0==t.sampleQueue.length)return-2;for(var i=null,r=null,a=0;a=2){var s=i.length/2;a=new Float32Array(s);for(var o=0,l=0;l0&&s()-this._start_time>=this._now_seg_dur&&(s(),this._start_time,this._now_seg_dur,this._start_time=-1,this._now_seg_dur=-1),s(),this._start_time<0)if(new Date,null!==this._pcm_array_buf&&this._pcm_array_buf.length>this._push_start_idx){this._swapStartPlay=!1;var e=this._push_start_idx+this._once_pop_len;e>this._pcm_array_buf.length&&(e=this._pcm_array_buf.length);var t=this._pcm_array_buf.slice(this._push_start_idx,e);this._push_start_idx+=t.length,this._now_seg_dur=1*t.length/this._sample_rate*1e3,t.length,this._sample_rate,this._now_seg_dur;var i=this._ctx.createBuffer(1,t.length,this._sample_rate);t.length,new Date,i.copyToChannel(t,0),this._active_node=this._ctx.createBufferSource(),this._active_node.buffer=i,this._active_node.connect(this._gain),this._start_time=s(),this._active_node.start(0)}else setTimeout(this.readingLoopWithF32,1)}}])&&r(t.prototype,i),o&&r(t,o),e}();i.AudioPcmPlayer=o},{"../consts":198}],201:[function(e,t,i){"use strict";t.exports={frameDataAlignCrop:function(e,t,i,r,n,a,s,o){if(0==e-r)return[a,s,o];for(var l=r*n,f=l/4,u=new Uint8Array(l),c=new Uint8Array(f),h=new Uint8Array(f),d=r,_=r/2,p=0;p0&&void 0!==arguments[0]&&arguments[0];this.showScreen=e,this.canvas&&(e?this.canvas.setAttribute("hidden",!0):this.canvas.removeAttribute("hidden"))}},{key:"getCachePTS",value:function(){return 1!==this.config.ignoreAudio&&this.audioWAudio?Math.min(this.vCachePTS,this.aCachePTS):this.vCachePTS}},{key:"getMaxPTS",value:function(){return Math.max(this.vCachePTS,this.aCachePTS)}},{key:"isPlayingState",value:function(){return this.isPlaying}},{key:"pushDone",value:function(){this.pushEOF=!0}},{key:"_clearDecInterval",value:function(){this.decVFrameInterval&&window.clearInterval(this.decVFrameInterval),this.decVFrameInterval=null}},{key:"_checkPlayFinished",value:function(){return!!(!0===this.bufRecvStat&&(this.playPTS>=this.bufLastVDTS||this.audioWAudio&&this.playPTS>=this.bufLastADTS)||this.duration-this.playPTS0&&(this.isPlaying=!0);var t=0,i=0,r=0;this.playFrameInterval=window.setInterval((function(){if(i=h(),e._videoQueue.length>0&&i-t>=e.frameTime-r){var n=e._videoQueue.shift(),a=0;if(e.isNewSeek||null===e.audioWAudio||void 0===e.audioWAudio||(a=1e3*(n.pts-e.audioWAudio.getAlignVPTS()),e.playPTS=Math.max(e.audioWAudio.getAlignVPTS(),e.playPTS)),t=i,h(),n.pts,e.seekTarget,e.playPTS=Math.max(n.pts,e.playPTS),e.isNewSeek&&e.seekTarget-e.frameDur>n.pts)return void(r=e.frameTime);if(e.isNewSeek&&(e.audioWAudio&&e.audioWAudio.setVoice(e.audioVoice),e.audioWAudio&&e.audioWAudio.play(),r=0,e.isNewSeek=!1,e.seekTarget=0),n.pts,e.showScreen?e.onRender&&e.onRender(n.line1,n.height,n.data_y,n.data_u,n.data_v):l.renderFrame(e.yuv,n.data_y,n.data_u,n.data_v,n.line1,n.height),e.onPlayingTime&&e.onPlayingTime(n.pts),!e.isNewSeek&&e.audioWAudio&&(a<0&&-1*a<=e.frameTime||a>=0)){if(n.pts>=e.duration)e.onLoadCacheFinshed&&e.onLoadCacheFinshed(),e.onPlayingFinish&&e.onPlayingFinish(),e._clearDecInterval(),e.pause();else if(e._checkPlayFinished())return;r=h()-i}else!e.isNewSeek&&e.audioWAudio&&(a<0&&e.frameTime,r=e.frameTime)}e._checkPlayFinished()}),1)}this.isNewSeek||this.audioWAudio&&this.audioWAudio.play()}},{key:"pause",value:function(){this.isPlaying=!1,this._pause()}},{key:"_pause",value:function(){this.playFrameInterval&&window.clearInterval(this.playFrameInterval),this.playFrameInterval=null,this.audioWAudio&&this.audioWAudio.pause()}},{key:"seek",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.openFrameCall=!1,this.pause(),this._clearDecInterval(),null!==this.avFeedVideoInterval&&(window.clearInterval(this.avFeedVideoInterval),this.avFeedVideoInterval=null),null!==this.avFeedAudioInterval&&(window.clearInterval(this.avFeedAudioInterval),this.avFeedAudioInterval=null),this.yuvMaxTime=0,this.playVPipe.length=0,this._videoQueue.length=0,this.audioWAudio&&this.audioWAudio.stop(),e&&e(),this.isNewSeek=!0,this.seekTarget=i.seekTime,this.audioWAudio&&this.audioWAudio.setVoice(0),this._avFeedData(i.seekTime),setTimeout((function(){t.yuvMaxTime=0,t._videoQueue.length=0,t.openFrameCall=!0,t.frameCallTag+=1,t._decVFrameIntervalFunc()}),1e3)}},{key:"setVoice",value:function(e){this.audioVoice=e,this.audioWAudio&&this.audioWAudio.setVoice(e)}},{key:"_checkDisplaySize",value:function(e,t,i){var r=t-e,n=this.config.width+Math.ceil(r/2),a=t/this.config.width>i/this.config.height,s=(n/t).toFixed(2),o=(this.config.height/i).toFixed(2),l=a?s:o,f=this.config.fixed,u=f?n:parseInt(t*l),c=f?this.config.height:parseInt(i*l);if(this.canvas.offsetWidth!=u||this.canvas.offsetHeight!=c){var h=parseInt((this.canvasBox.offsetHeight-c)/2),d=parseInt((this.canvasBox.offsetWidth-u)/2);h=h<0?0:h,d=d<0?0:d,this.canvas.style.marginTop=h+"px",this.canvas.style.marginLeft=d+"px",this.canvas.style.width=u+"px",this.canvas.style.height=c+"px"}return this.isCheckDisplay=!0,[u,c]}},{key:"_createYUVCanvas",value:function(){for(this.canvasBox=document.querySelector("#"+this.config.playerId),this.canvasBox.style.overflow="hidden";this.canvasBox.hasChildNodes();)this.canvasBox.removeChild(this.canvasBox.lastChild);this.canvas=document.createElement("canvas"),this.canvas.style.width=this.canvasBox.clientWidth+"px",this.canvas.style.height=this.canvasBox.clientHeight+"px",this.canvas.style.top="0px",this.canvas.style.left="0px",this.canvasBox.appendChild(this.canvas),this.yuv=l.setupCanvas(this.canvas,{preserveDrawingBuffer:!1})}},{key:"_avRecvPackets",value:function(){var e=this;this.bufObject.cleanPipeline(),null!==this.avRecvInterval&&(window.clearInterval(this.avRecvInterval),this.avRecvInterval=null),!0===this.config.checkProbe?this.avRecvInterval=window.setInterval((function(){a.cwrap("getSniffStreamPkg","number",["number"])(e.corePtr),e._avCheckRecvFinish()}),5):this.avRecvInterval=window.setInterval((function(){a.cwrap("getSniffStreamPkgNoCheckProbe","number",["number"])(e.corePtr),e._avCheckRecvFinish()}),5),this._avFeedData(0)}},{key:"_avCheckRecvFinish",value:function(){this.duration-this.getMaxPTS()=50&&(t.onSeekFinish&&t.onSeekFinish(),t.play(),window.clearInterval(i),i=null)}),10)}},{key:"_avFeedData",value:function(e){var t=this;if(this.playVPipe.length=0,this.audioWAudio&&this.audioWAudio.cleanQueue(),e<=0){var i=0;if(this.avFeedVideoInterval=window.setInterval((function(){var e=t.bufObject.videoBuffer.length;if(e-1>i||t.duration-t.getMaxPTS()0&&t.playVPipe[t.playVPipe.length-1].pts>=t.bufLastVDTS&&(window.clearInterval(t.avFeedVideoInterval),t.avFeedVideoInterval=null,t.playVPipe[t.playVPipe.length-1].pts,t.bufObject.videoBuffer)}else t.playVPipe.length>0&&t.playVPipe[t.playVPipe.length-1].pts>=t.duration&&(window.clearInterval(t.avFeedVideoInterval),t.avFeedVideoInterval=null,t.playVPipe[t.playVPipe.length-1].pts,t.bufObject.videoBuffer)}),5),this.audioWAudio&&this.config.ignoreAudio<1){var r=0;this.avFeedAudioInterval=window.setInterval((function(){var e=t.bufObject.audioBuffer.length;if(e-1>r||t.duration-t.getMaxPTS()0&&t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts>=t.bufLastADTS&&(window.clearInterval(t.avFeedAudioInterval),t.avFeedAudioInterval=null,t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts,t.bufObject.audioBuffer)}else t.audioWAudio.sampleQueue.length>0&&t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts>=t.duration&&(window.clearInterval(t.avFeedAudioInterval),t.avFeedAudioInterval=null,t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts,t.bufObject.audioBuffer)}),5)}}else{var n=this.bufObject.seekIDR(e),a=parseInt(n,10);this.playPTS=0;var o=a;if(this.avFeedVideoInterval=window.setInterval((function(){var i=t.bufObject.videoBuffer.length;if(i-1>o||t.duration-t.getMaxPTS()0&&t.playVPipe[t.playVPipe.length-1].pts>=t.bufLastVDTS&&(window.clearInterval(t.avFeedVideoInterval),t.avFeedVideoInterval=null,t.playVPipe[t.playVPipe.length-1].pts,t.bufObject.videoBuffer,t.onPlayingTime&&t.onPlayingTime(e),t._afterAvFeedSeekToStart())}else t.playVPipe.length>0&&t.playVPipe[t.playVPipe.length-1].pts>=t.duration&&(window.clearInterval(t.avFeedVideoInterval),t.avFeedVideoInterval=null,t.playVPipe[t.playVPipe.length-1].pts,t.bufObject.videoBuffer,t.onPlayingTime&&t.onPlayingTime(e),t._afterAvFeedSeekToStart())}),5),this.audioWAudio&&this.config.ignoreAudio<1){var l=parseInt(this.seekTarget,10);this.avFeedAudioInterval=window.setInterval((function(){var e=t.bufObject.audioBuffer.length;if(e-1>l||t.duration-t.getMaxPTS()0&&t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts>=t.bufLastADTS&&(window.clearInterval(t.avFeedAudioInterval),t.avFeedAudioInterval=null,t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts,t.bufObject.audioBuffer)}else t.audioWAudio.sampleQueue.length>0&&t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts>=t.duration&&(window.clearInterval(t.avFeedAudioInterval),t.avFeedAudioInterval=null,t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts,t.bufObject.audioBuffer)}),5)}}}},{key:"_probeFinCallback",value:function(e,t,i,r,n,s,o,l,c){var h=this;this._createYUVCanvas(),u.V_CODEC_NAME_HEVC,this.config.fps=1*r,this.frameTime=1e3/this.config.fps,this.width=t,this.height=i,this.frameDur=1/this.config.fps,this.duration=e-this.frameDur,this.vCodecID=l,this.config.sampleRate=s,this.channels=o,this.audioIdx=n;for(var d=a.HEAPU8.subarray(c,c+10),_=0;_=0&&this.config.ignoreAudio<1?(void 0!==this.audioWAudio&&null!==this.audioWAudio&&(this.audioWAudio.stop(),this.audioWAudio=null),this.audioWAudio=f({sampleRate:s,appendType:u.APPEND_TYPE_FRAME}),this.audioWAudio.setDurationMs(1e3*e),this.onLoadCache&&this.audioWAudio.setOnLoadCache((function(){if(h.retryAuSampleNo,h.retryAuSampleNo<=5){h.pause(),h.onLoadCache&&h.onLoadCache();var e=window.setInterval((function(){return h.retryAuSampleNo,h.audioWAudio.sampleQueue.length,h.audioWAudio.sampleQueue.length>2?(h.onLoadCacheFinshed&&h.onLoadCacheFinshed(),h.play(),h.retryAuSampleNo=0,window.clearInterval(e),void(e=null)):(h.retryAuSampleNo+=1,h.retryAuSampleNo>5?(h.play(),h.onLoadCacheFinshed&&h.onLoadCacheFinshed(),window.clearInterval(e),void(e=null)):void 0)}),1e3)}}))):this.audioNone=!0,this._avRecvPackets(),this._decVFrameIntervalFunc()),this.onProbeFinish&&this.onProbeFinish()}},{key:"_ptsFixed2",value:function(e){return Math.ceil(100*e)/100}},{key:"_naluCallback",value:function(e,t,i,r,n,s,o){var l=this._ptsFixed2(s),f=a.HEAPU8.subarray(e,e+t),u=new Uint8Array(f);this.bufObject.appendFrameWithDts(l,o,u,!0,i),this.bufLastVDTS=Math.max(o,this.bufLastVDTS),this.vCachePTS=Math.max(l,this.vCachePTS),this.onCacheProcess&&this.onCacheProcess(this.getCachePTS())}},{key:"_samplesCallback",value:function(e,t,i,r){}},{key:"_aacFrameCallback",value:function(e,t,i,r,n){var s=this._ptsFixed2(n);if(this.audioWAudio){var o=new Uint8Array(7+i),l=a.HEAPU8.subarray(e,e+7);o.set(l,0);var f=a.HEAPU8.subarray(t,t+i);o.set(f,7),this.bufObject.appendFrame(s,o,!1,!0),this.bufLastADTS=Math.max(s,this.bufLastVDTS),this.aCachePTS=Math.max(s,this.aCachePTS),this.onCacheProcess&&this.onCacheProcess(this.getCachePTS())}}},{key:"_decVFrameIntervalFunc",value:function(){var e=this;null==this.decVFrameInterval&&(this.decVFrameInterval=window.setInterval((function(){if(e._videoQueue.length<50&&e.playVPipe.length>0){var t=e.playVPipe.shift(),i=t.data,r=a._malloc(i.length);a.HEAP8.set(i,r);var n=parseInt(1e3*t.pts,10),s=parseInt(1e3*t.dts,10);e.yuvMaxTime=Math.max(t.pts,e.yuvMaxTime),a.cwrap("decodeVideoFrame","number",["number","number","number","number","number"])(e.corePtr,r,i.length,n,s,e.frameCallTag),e.frameCallTag,a._free(r),r=null}}),10))}},{key:"_frameCallback",value:function(e,t,i,r,n,s,o,f,u,c){if(!(!1===this.openFrameCall||c!==this.frameCallTag||u>this.yuvMaxTime+this.frameDur)){this.frameCallTag;var h=this._videoQueue.length;if(!(h>0&&u-this._videoQueue[h-1].pts>1||(this.canvas.width==r&&this.canvas.height==f||(this.canvas.width=r,this.canvas.height=f,this.isCheckDisplay)||this._checkDisplaySize(o,r,f),this.playPTS>u))){var _=a.HEAPU8.subarray(e,e+r*f),p=a.HEAPU8.subarray(t,t+n*f/2),m=a.HEAPU8.subarray(i,i+s*f/2),b=new Uint8Array(_),v=new Uint8Array(p),y=new Uint8Array(m);this.config.readyShow&&(l.renderFrame(this.yuv,b,v,y,r,f),this.config.readyShow=!1);var g=new d(b,v,y,r,n,s,o,f,u);if(h<=0||u>this._videoQueue[h-1].pts)this._videoQueue.push(g);else if(uthis._videoQueue[w].pts&&w+10&&void 0!==arguments[0]?arguments[0]:60,t={limit:e,yuvCache:[],appendCacheByCacheYuv:function(e){e.pts;return t.yuvCache.length>=t.limit?CACHE_APPEND_STATUS_CODE.OVERFLOW:(t.yuvCache.push(e),t.yuvCache.length>=t.limit?CACHE_APPEND_STATUS_CODE.FULL:CACHE_APPEND_STATUS_CODE.NOT_FULL)},getState:function(){return t.yuvCache.length<=0?CACHE_APPEND_STATUS_CODE.NULL:t.yuvCache.length>=t.limit?CACHE_APPEND_STATUS_CODE.FULL:CACHE_APPEND_STATUS_CODE.NOT_FULL},cleanPipeline:function(){t.yuvCache.length=0},vYuv:function(){return t.yuvCache.length<=0?null:t.yuvCache.shift()}};return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./cacheYuv":204}],204:[function(e,t,i){"use strict";function r(e,t){for(var i=0;i>1;return n.indexOf(t)},GET_NALU_TYPE:function(e){var t=(126&e)>>1;if(t>=1&&t<=9)return r.DEFINE_P_FRAME;if(t>=16&&t<=21)return r.DEFINE_KEY_FRAME;var i=n.indexOf(t);return i>=0?n[i]:r.DEFINE_OTHERS_FRAME},PACK_NALU:function(e){var t=e.nalu,i=e.vlc.vlc;null==t.vps&&(t.vps=new Uint8Array);var r=new Uint8Array(t.vps.length+t.sps.length+t.pps.length+t.sei.length+i.length);return r.set(t.vps,0),r.set(t.sps,t.vps.length),r.set(t.pps,t.vps.length+t.sps.length),r.set(t.sei,t.vps.length+t.sps.length+t.pps.length),r.set(i,t.vps.length+t.sps.length+t.pps.length+t.sei.length),r}}},{"./hevc-header":205}],207:[function(e,t,i){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t0&&void 0!==arguments[0]&&arguments[0];null!=t&&(t.showScreen=e,t.canvas&&(e?t.canvas.setAttribute("hidden",!0):t.canvas.removeAttribute("hidden")))},setSize:function(e,i){t.config.width=e||f.DEFAULT_WIDTH,t.config.height=i||f.DEFAULT_HEIGHT},setFrameRate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25;t.config.fps=e,t.config.frameDurMs=1e3/e},setDurationMs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;t.durationMs=e,0==t.config.audioNone&&t.audio.setDurationMs(e)},setPlayingCall:function(e){t.onPlayingTime=e},setVoice:function(e){t.realVolume=e,0==t.config.audioNone&&t.audio.setVoice(t.realVolume)},isPlayingState:function(){return t.isPlaying},appendAACFrame:function(e){t.audio.addSample(e),t.aCachePTS=Math.max(e.pts,t.aCachePTS)},appendHevcFrame:function(e){var i;t.config.appendHevcType==f.APPEND_TYPE_STREAM?t.stream=new Uint8Array((i=r(t.stream)).concat.apply(i,r(e))):t.config.appendHevcType==f.APPEND_TYPE_FRAME&&(t.frameList.push(e),t.vCachePTS=Math.max(e.pts,t.vCachePTS))},getCachePTS:function(){return t.vCachePTS,t.aCachePTS,Math.max(t.vCachePTS,t.aCachePTS)},endAudio:function(){0==t.config.audioNone&&t.audio.stop()},cleanSample:function(){0==t.config.audioNone&&t.audio.cleanQueue()},cleanVideoQueue:function(){t.config.appendHevcType==f.APPEND_TYPE_STREAM?t.stream=new Uint8Array:t.config.appendHevcType==f.APPEND_TYPE_FRAME&&(t.frameList=[])},cleanCacheYUV:function(){t.cacheYuvBuf.cleanPipeline()},pause:function(){t.loop&&window.clearInterval(t.loop),t.loop=null,0==t.config.audioNone&&t.audio.pause(),t.isPlaying=!1},checkFinished:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.PLAYER_MODE_VOD;return e==f.PLAYER_MODE_VOD&&(t.videoPTS.toFixed(1)>=(t.durationMs-t.config.frameDurMs)/1e3||t.noCacheFrame>=10)&&(null!=t.onPlayingFinish&&t.onPlayingFinish(),!0)},seek:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isPlaying;t.nowPacket=null,t.vCachePTS=0,t.aCachePTS=0,t.pause(),t.cleanSample(),t.cleanVideoQueue(),t.cleanCacheYUV(),e&&e(),t.isNewSeek=!0,t.videoPTS=parseInt(i.seekTime);var n={seekPos:i.seekTime||-1,mode:i.mode||f.PLAYER_MODE_VOD,accurateSeek:i.accurateSeek||!0,seekEvent:i.seekEvent||!0,realPlay:r};t.play(n)},getNalu1Packet:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=null,r=-1;if(t.config.appendHevcType==f.APPEND_TYPE_STREAM)i=t.nextNalu();else{if(t.config.appendHevcType!=f.APPEND_TYPE_FRAME)return null;var n=t.frameList.shift();if(!n)return null;i=n.data,r=n.pts,e&&(t.videoPTS=r)}return{nalBuf:i,pts:r}},decodeNalu1Frame:function(e,i){var r=n._malloc(e.length);n.HEAP8.set(e,r);var a=parseInt(1e3*i);n.cwrap("decodeCodecContext","number",["number","number","number","number"])(t.vcodecerPtr,r,e.length,a);return n._free(r),!1},cacheThread:function(){t.cacheLoop=window.setInterval((function(){if(t.cacheYuvBuf.getState()!=CACHE_APPEND_STATUS_CODE.FULL){var e=t.getNalu1Packet(!1);if(null!=e){var i=e.nalBuf,r=e.pts;t.decodeNalu1Frame(i,r,!0)}}}),10)},loadCache:function(){if(!(t.frameList.length<=3)){var e=t.isPlaying;if(t.cacheYuvBuf.yuvCache.length<=3){t.pause(),null!=t.onLoadCache&&t.onLoadCache();var i=t.frameList.length>30?30:t.frameList.length,r=window.setInterval((function(){t.cacheYuvBuf.yuvCache.length>=i&&(null!=t.onLoadCacheFinshed&&t.onLoadCacheFinshed(),window.clearInterval(r),r=null,e&&t.play(t.playParams))}),40)}}},playFunc:function(){if(t.playParams.seekEvent||c()-t.calcuteStartTime>=t.frameTime-t.preCostTime){var e=!0;if(t.calcuteStartTime=c(),t.config.audioNone)t.playFrameYUV(e,t.playParams.accurateSeek);else{t.fix_poc_err_skip>0&&(t.fix_poc_err_skip--,e=!1);var i=t.videoPTS-t.audio.getAlignVPTS();if(i>0)return void(t.playParams.seekEvent&&!t.config.audioNone&&t.audio.setVoice(0));if(e){if(!(e=-1*i<=1*t.frameTimeSec)){for(var r=parseInt(i/t.frameTimeSec),n=0;n=t.playParams.seekPos&&!t.isNewSeek||0===t.playParams.seekPos||0===t.playParams.seekPos?(t.frameTime=1e3/t.config.fps,t.frameTimeSec=t.frameTime/1e3,0==t.config.audioNone&&t.audio.play(),t.realVolume=t.config.audioNone?0:t.audio.voice,t.playParams.seekEvent&&(t.fix_poc_err_skip=10),t.loop=window.setInterval((function(){var e=c();t.playFunc(),t.preCostTime=c()-e,t.preCostTime}),1)):(t.loop=window.setInterval((function(){t.playFrameYUV(!1,t.playParams.accurateSeek),t.checkFinished(t.playParams.mode)?(window.clearInterval(t.loop),t.loop=null):t.videoPTS>=t.playParams.seekPos&&(window.clearInterval(t.loop),t.loop=null,t.play(t.playParams))}),1),t.isNewSeek=!1)},stop:function(){t.release(),n.cwrap("initializeDecoder","number",["number"])(t.vcodecerPtr),t.stream=new Uint8Array},release:function(){return t.endAudio(),t.loop&&window.clearInterval(t.loop),t.loop=null,t.pause(),n.cwrap("release","number",["number"])(t.vcodecerPtr),t.stream=null,t.frameList.length=0,t.durationMs=-1,t.videoPTS=0,t.isPlaying=!1,!0},nextNalu:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(t.stream.length<=4)return!1;for(var i=-1,r=0;r=t.stream.length){if(-1==i)return!1;var n=t.stream.subarray(i);return t.stream=new Uint8Array,n}var a="0 0 1"==t.stream.slice(0,3).join(" "),s="0 0 0 1"==t.stream.slice(0,4).join(" ");if(a||s){if(-1==i)i=r;else{if(e<=1){var o=t.stream.subarray(i,r);return t.stream=t.stream.subarray(r),o}e-=1}r+=3}}return!1},decodeSendPacket:function(e){var i=n._malloc(e.length);n.HEAP8.set(e,i);var r=n.cwrap("decodeSendPacket","number",["number","number","number"])(t.vcodecerPtr,i,e.length);return n._free(i),r},decodeRecvFrame:function(){return n.cwrap("decodeRecv","number",["number"])(t.vcodecerPtr)},playFrameYUV:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.cacheYuvBuf.vYuv();if(null==r)return t.noCacheFrame+=1,e&&!t.playParams.seekEvent&&t.loadCache(),!1;t.noCacheFrame=0;var n=r.pts;return t.videoPTS=n,(!e&&i||e)&&e&&t.drawImage(r.width,r.height,r.imageBufferY,r.imageBufferB,r.imageBufferR),e&&!t.playParams.seekEvent&&t.isPlaying&&t.loadCache(),!0},drawImage:function(e,i,r,n,a){if(t.canvas.width===e&&t.canvas.height==i||(t.canvas.width=e,t.canvas.height=i),t.showScreen&&null!=t.onRender)t.onRender(e,i,r,n,a);else{if(!t.isCheckDisplay)t.checkDisplaySize(e,i);var s=e*i,o=e/2*(i/2),f=new Uint8Array(s+2*o);f.set(r,0),f.set(n,s),f.set(a,s+o),l.renderFrame(t.yuv,r,n,a,e,i)}},debugYUV:function(e){t.debugYUVSwitch=!0,t.debugID=e},checkDisplaySize:function(e,i){var r=e/t.config.width>i/t.config.height,n=(t.config.width/e).toFixed(2),a=(t.config.height/i).toFixed(2),s=r?n:a,o=t.config.fixed,l=o?t.config.width:parseInt(e*s),f=o?t.config.height:parseInt(i*s);if(t.canvas.offsetWidth!=l||t.canvas.offsetHeight!=f){var u=parseInt((t.canvasBox.offsetHeight-f)/2),c=parseInt((t.canvasBox.offsetWidth-l)/2);t.canvas.style.marginTop=u+"px",t.canvas.style.marginLeft=c+"px",t.canvas.style.width=l+"px",t.canvas.style.height=f+"px"}return t.isCheckDisplay=!0,[l,f]},makeWasm:function(){if(null!=t.config.token){t.vcodecerPtr=n.cwrap("registerPlayer","number",["string","string"])(t.config.token,u.PLAYER_VERSION);var e=n.addFunction((function(e,i,r,a,s,l,f,u,c){var h=n.HEAPU8.subarray(e,e+a*u),d=n.HEAPU8.subarray(i,i+s*u/2),_=n.HEAPU8.subarray(r,r+l*u/2),p=new Uint8Array(h),m=new Uint8Array(d),b=new Uint8Array(_),v=1*c/1e3,y=new o.CacheYuvStruct(v,a,u,p,m,b);t.cacheYuvBuf.appendCacheByCacheYuv(y)}));n.cwrap("setCodecType","number",["number","number","number"])(t.vcodecerPtr,t.config.videoCodec,e);n.cwrap("initMissile","number",["number"])(t.vcodecerPtr);n.cwrap("initializeDecoder","number",["number"])(t.vcodecerPtr)}else alert("请输入TOKEN!Please set token param!")},makeIt:function(){var e=document.querySelector("div#"+t.config.playerId),i=document.createElement("canvas");i.style.width=e.clientWidth+"px",i.style.height=e.clientHeight+"px",i.style.top="0px",i.style.left="0px",e.appendChild(i),t.canvasBox=e,t.canvas=i,t.yuv=l.setupCanvas(i,{preserveDrawingBuffer:!1}),0==t.config.audioNone&&(t.audio=a({sampleRate:t.config.sampleRate,appendType:t.config.appendHevcType})),t.isPlayLoadingFinish=1}};return t.makeWasm(),t.makeIt(),t.cacheThread(),t}},{"../consts":198,"../render-engine/webgl-420p":219,"../version":222,"./audio-core":199,"./cache":203,"./cacheYuv":204,"./missile.js":1}],208:[function(e,t,i){"use strict";var r=e("./bufferFrame");t.exports=function(){var e={videoBuffer:[],audioBuffer:[],idrIdxBuffer:[],appendFrame:function(t,i){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=new r.BufferFrame(t,a,i,n),o=parseInt(t);return n?(e.videoBuffer.length-1>=o?e.videoBuffer[o].push(s):e.videoBuffer.push([s]),a&&!e.idrIdxBuffer.includes(t)&&e.idrIdxBuffer.push(t)):e.audioBuffer.length-1>=o&&null!=e.audioBuffer[o]&&null!=e.audioBuffer[o]?e.audioBuffer[o]&&e.audioBuffer[o].push(s):e.audioBuffer.push([s]),!0},appendFrameWithDts:function(t,i,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=r.ConstructWithDts(t,i,s,n,a),l=parseInt(i);return a?(e.videoBuffer.length-1>=l?e.videoBuffer[l].push(o):e.videoBuffer.push([o]),s&&!e.idrIdxBuffer.includes(i)&&e.idrIdxBuffer.push(i)):e.audioBuffer.length-1>=l&&null!=e.audioBuffer[l]&&null!=e.audioBuffer[l]?e.audioBuffer[l]&&e.audioBuffer[l].push(o):e.audioBuffer.push([o]),!0},appendFrameByBufferFrame:function(t){var i=t.pts,r=parseInt(i);return t.video?(e.videoBuffer.length-1>=r?e.videoBuffer[r].push(t):e.videoBuffer.push([t]),isKey&&!e.idrIdxBuffer.includes(i)&&e.idrIdxBuffer.push(i)):e.audioBuffer.length-1>=r?e.audioBuffer[r].push(t):e.audioBuffer.push([t]),!0},cleanPipeline:function(){e.videoBuffer.length=0,e.audioBuffer.length=0},vFrame:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(!(t<0||t>e.videoBuffer.length-1))return e.videoBuffer[t]},aFrame:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(!(t<0||t>e.audioBuffer.length-1))return e.audioBuffer[t]},seekIDR:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(e.idrIdxBuffer,t<0)return null;if(e.idrIdxBuffer.includes(t))return t;for(var i=0;it){for(var r=1;r>=0;r--){var n=i-r;if(n>=0)return e.idrIdxBuffer[n]}return e.idrIdxBuffer[i]}}};return e}},{"./bufferFrame":209}],209:[function(e,t,i){"use strict";function r(e,t){for(var i=0;i0&&i.extensionInfo.vHeight>0&&(i.size.width=i.extensionInfo.vWidth,i.size.height=i.extensionInfo.vHeight)),i.mediaInfo.duration,null!=i.onDemuxed&&i.onDemuxed(i.onReadyOBJ);for(var e=!1;;){var r=i.mpegTsObj.readPacket();if(r.size<=0)break;var n=r.dtime>0?r.dtime:r.ptime;if(!(n<0)){if(0==r.type){n<=i.vPreFramePTS&&(e=!0);var a=l.PACK_NALU(r.layer),o=1==r.keyframe,f=1==e?n+i.vStartTime:n,u=new s.BufferFrame(f,o,a,!0);i.bufObject.appendFrame(u.pts,u.data,!0,u.isKey),i.vPreFramePTS=f,null!=i.onSamples&&i.onSamples(i.onReadyOBJ,u)}else if(n<=i.aPreFramePTS&&(e=!0),"aac"==i.mediaInfo.aCodec)for(var c=r.data,h=0;h=3?(i._onTsReady(e),window.clearInterval(i.timerTsWasm),i.timerTsWasm=null):(i.mpegTsWasmRetryLoadTimes+=1,i.mpegTsObj.initDemuxer())}),3e3)}},{key:"_onTsReady",value:function(e){var t=this;t.hls.fetchM3u8(e),t.mpegTsWasmState=!0,t.timerFeed=window.setInterval((function(){if(t.tsList.length>0&&0==t.lockWait.state){var e=t.tsList.shift(),i=e.streamURI,r=e.streamDur;t.lockWait.state=!0,t.lockWait.lockMember.dur=r,t.mpegTsObj.demuxURL(i)}}),50)}},{key:"bindReady",value:function(e){this.onReadyOBJ=e}},{key:"popBuffer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return t<0?null:1==e?this.bufObject.vFrame(t):2==e?this.bufObject.aFrame(t):void 0}},{key:"getACodec",value:function(){return this.aCodec}},{key:"getDurationMs",value:function(){return this.durationMs}},{key:"getFPS",value:function(){return this.fps}},{key:"getSampleRate",value:function(){return this.sampleRate}},{key:"getSize",value:function(){return this.size}},{key:"seek",value:function(e){if(e>=0){var t=this.bufObject.seekIDR(e);this.seekPos=t}}}])&&r(t.prototype,i),u&&r(t,u),e}();i.M3u8=u},{"../consts":198,"../decoder/hevc-imp":206,"./buffer":208,"./bufferFrame":209,"./m3u8base":211,"./mpegts/mpeg.js":215}],211:[function(e,t,i){"use strict";function r(e,t){for(var i=0;i1?(i=t[0],r=t[1].split("/"),this._preURI=i+"//"):r=t[0].split("/");for(var n=0;nu&&(i=u);var c=t[r+=1],h=this._preURI+c;this._slices.indexOf(h)<0&&(this._slices.push(h),null!=this.onTransportStream&&this.onTransportStream(h,u))}}}if(this._slices.length>a.hlsSliceLimit&&this._type==n.PLAYER_IN_TYPE_M3U8_LIVE&&(this._slices=this._slices.slice(-1*a.hlsSliceLimit)),null!=this.onFinished){var d={type:this._type,duration:-1};this.onFinished(d)}return i}},{key:"_readTag",value:function(e){var t=a.tagParse.exec(e);return null!==t?{key:t[1],value:t[3]}:null}}])&&r(t.prototype,i),s&&r(t,s),e}();i.M3u8Base=s},{"../consts":198}],212:[function(e,t,i){"use strict";var r=e("mp4box"),n=e("../decoder/hevc-header"),a=e("../decoder/hevc-imp"),s=e("./buffer"),o=e("../consts"),l={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12,Reserved:13,"frequency is written explictly":15};function f(){}f.prototype.setStartCode=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=null;return t?((i=e)[0]=n.DEFINE_STARTCODE[0],i[1]=n.DEFINE_STARTCODE[1],i[2]=n.DEFINE_STARTCODE[2],i[3]=n.DEFINE_STARTCODE[3]):((i=new Uint8Array(n.DEFINE_STARTCODE.length+e.length)).set(n.DEFINE_STARTCODE,0),i.set(e,n.DEFINE_STARTCODE.length)),i},f.prototype.setAACAdts=function(e){var t=null,i=this.aacProfile,r=l[this.sampleRate],n=new Uint8Array(7),a=n.length+e.length;return n[0]=255,n[1]=241,n[2]=(i-1<<6)+(r<<2)+0,n[3]=128+(a>>11),n[4]=(2047&a)>>3,n[5]=31+((7&a)<<5),n[6]=252,(t=new Uint8Array(a)).set(n,0),t.set(e,n.length),t},f.prototype.demux=function(){var e=this;e.seekPos=-1,e.mp4boxfile=r.createFile(),e.movieInfo=null,e.videoCodec=null,e.durationMs=-1,e.fps=-1,e.sampleRate=-1,e.aacProfile=2,e.size={width:-1,height:-1},e.bufObject=s(),e.audioNone=!1,e.naluHeader={vps:null,sps:null,pps:null,sei:null},e.mp4boxfile.onError=function(e){},this.mp4boxfile.onReady=function(t){for(var i in e.movieInfo=t,t.tracks)"VideoHandler"!==t.tracks[i].name&&"video"!==t.tracks[i].type||(t.tracks[i].codec,t.tracks[i].codec.indexOf("hev")>=0||t.tracks[i].codec.indexOf("hvc")>=0?e.videoCodec=o.CODEC_H265:t.tracks[i].codec.indexOf("avc")>=0&&(e.videoCodec=o.CODEC_H264));var r=-1;if(r=t.videoTracks[0].samples_duration/t.videoTracks[0].timescale,e.durationMs=1e3*r,e.fps=t.videoTracks[0].nb_samples/r,e.seekDiffTime=1/e.fps,e.size.width=t.videoTracks[0].track_width,e.size.height=t.videoTracks[0].track_height,t.audioTracks.length>0){e.sampleRate=t.audioTracks[0].audio.sample_rate;var n=t.audioTracks[0].codec.split(".");e.aacProfile=n[n.length-1]}else e.audioNone=!0;null!=e.onMp4BoxReady&&e.onMp4BoxReady(e.videoCodec),e.videoCodec===o.CODEC_H265?(e.initializeAllSourceBuffers(),e.mp4boxfile.start()):(e.videoCodec,o.CODEC_H264)},e.mp4boxfile.onSamples=function(t,i,r){var s=window.setInterval((function(){for(var i=0;i3?e.naluHeader.sei=e.setStartCode(p[3][0].data,!1):e.naluHeader.sei=new Uint8Array,e.naluHeader}else e.videoCodec==o.CODEC_H264&&(e.naluHeader.vps=new Uint8Array,e.naluHeader.sps=e.setStartCode(h.SPS[0].nalu,!1),e.naluHeader.pps=e.setStartCode(h.PPS[0].nalu,!1),e.naluHeader.sei=new Uint8Array);if(f[4],e.naluHeader.vps[4],e.naluHeader.vps,f[4]===e.naluHeader.vps[4])f[4],e.naluHeader.vps[4],e.naluHeader.vps,f=f.subarray(e.naluHeader.vps.length+e.naluHeader.sps.length+e.naluHeader.pps.length+e.naluHeader.sei.length);else if(e.naluHeader.sei.length>4&&f[4]===e.naluHeader.sei[4]){var m=f.subarray(0,10),b=new Uint8Array(e.naluHeader.vps.length+m.length);b.set(m,0),b.set(e.naluHeader.vps,m.length),b[3]=1,e.naluHeader.vps=null,e.naluHeader.vps=new Uint8Array(b),b=null,m=null,(f=f.subarray(10))[4],e.naluHeader.vps[4],e.naluHeader.vps}else if(0===e.naluHeader.sei.length&&78===f[4]){f=e.setStartCode(f,!0);for(var v=0,y=0;y1&&void 0!==arguments[1]?arguments[1]:0;return e.fileStart=t,this.mp4boxfile.appendBuffer(e)},f.prototype.finishBuffer=function(){this.mp4boxfile.flush()},f.prototype.play=function(){},f.prototype.getVideoCoder=function(){return this.videoCodec},f.prototype.getDurationMs=function(){return this.durationMs},f.prototype.getFPS=function(){return this.fps},f.prototype.getSampleRate=function(){return this.sampleRate},f.prototype.getSize=function(){return this.size},f.prototype.seek=function(e){if(e>=0){var t=this.bufObject.seekIDR(e);this.seekPos=t}},f.prototype.popBuffer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return t<0?null:1==e?this.bufObject.vFrame(t):2==e?this.bufObject.aFrame(t):void 0},f.prototype.addBuffer=function(e){var t=e.id;this.mp4boxfile.setExtractionOptions(t)},f.prototype.initializeAllSourceBuffers=function(){if(this.movieInfo){for(var e=this.movieInfo,t=0;t>5)}},{key:"sliceAACFrames",value:function(e,t){for(var i=[],r=e,n=0;n>4==15){var a=this._getPktLen(t[n+3],t[n+4],t[n+5]);if(a<=0)continue;var s=t.subarray(n,n+a),o=new Uint8Array(a);o.set(s,0),i.push({ptime:r,data:o}),r+=this.frameDurSec,n+=a}else n+=1;return i}}])&&r(t.prototype,i),n&&r(t,n),e}();i.AACDecoder=n},{}],215:[function(e,t,i){(function(t){"use strict";function r(e,t){for(var i=0;i=0&&(this._setMediaInfo(),this._setExtensionInfo(),null!=this.onDemuxed&&this.onDemuxed())}},{key:"_setMediaInfo",value:function(){var e=n.cwrap("getMediaInfo","number",[])(),t=n.HEAPU32[e/4],i=n.HEAPU32[e/4+1],r=n.HEAPF64[e/8+1],o=n.HEAPF64[e/8+1+1],l=n.HEAPF64[e/8+1+1+1],f=n.HEAPF64[e/8+1+1+1+1],u=n.HEAPU32[e/4+2+2+2+2+2];this.mediaAttr.vFps=r,this.mediaAttr.vGop=u,this.mediaAttr.vDuration=o,this.mediaAttr.aDuration=l,this.mediaAttr.duration=f;var c=n.cwrap("getAudioCodecID","number",[])();c>=0?(this.mediaAttr.aCodec=s.CODEC_OFFSET_TABLE[c],this.mediaAttr.sampleRate=t>0?t:s.DEFAULT_SAMPLERATE,this.mediaAttr.sampleChannel=i>0?i:s.DEFAULT_CHANNEL):(this.mediaAttr.sampleRate=0,this.mediaAttr.sampleChannel=0);var h=n.cwrap("getVideoCodecID","number",[])();h>=0&&(this.mediaAttr.vCodec=s.CODEC_OFFSET_TABLE[h]),null==this.aacDec?this.aacDec=new a.AACDecoder(this.mediaAttr):this.aacDec.updateConfig(this.mediaAttr)}},{key:"_setExtensionInfo",value:function(){var e=n.cwrap("getExtensionInfo","number",[])(),t=n.HEAPU32[e/4],i=n.HEAPU32[e/4+1];this.extensionInfo.vWidth=t,this.extensionInfo.vHeight=i}},{key:"readMediaInfo",value:function(){return this.mediaAttr}},{key:"readExtensionInfo",value:function(){return this.extensionInfo}},{key:"_readLayer",value:function(){var e={vps:null,sps:null,pps:null,sei:null},t={vlc:null},i=n.cwrap("getSPSLen","number",[])(),r=n.cwrap("getSPS","number",[])();e.sps=new Uint8Array(i),e.sps.set(n.HEAPU8.subarray(r,r+i),0);var a=n.cwrap("getPPSLen","number",[])(),o=n.cwrap("getPPS","number",[])();e.pps=new Uint8Array(a),e.pps.set(n.HEAPU8.subarray(o,o+a),0);var l=n.cwrap("getSEILen","number",[])(),f=n.cwrap("getSEI","number",[])();e.sei=new Uint8Array(l),e.sei.set(n.HEAPU8.subarray(f,f+l),0);var u=n.cwrap("getVLCLen","number",[])(),c=n.cwrap("getVLC","number",[])();if(t.vlc=new Uint8Array(u),t.vlc.set(n.HEAPU8.subarray(c,c+u),0),this.mediaAttr.vCodec==s.DEF_HEVC||this.mediaAttr.vCodec==s.DEF_H265){var h=n.cwrap("getVPSLen","number",[])(),d=n.cwrap("getVPS","number",[])();e.vps=new Uint8Array(h),e.vps.set(n.HEAPU8.subarray(d,d+h),0)}else this.mediaAttr.vCodec==s.DEF_AVC||(this.mediaAttr.vCodec,s.DEF_H264);return{nalu:e,vlc:t}}},{key:"readPacket",value:function(){var e=n.cwrap("getPacket","number",[])(),t=n.HEAPU32[e/4],i=n.HEAPU32[e/4+1],r=n.HEAPF64[e/8+1],a=n.HEAPF64[e/8+1+1],o=n.HEAPU32[e/4+1+1+2+2],l=n.HEAPU32[e/4+1+1+2+2+1],f=n.HEAPU8.subarray(l,l+i),u=this._readLayer();return{type:t,size:i,ptime:r,dtime:a,keyframe:o,src:f,data:1==t&&this.mediaAttr.aCodec==s.DEF_AAC?this.aacDec.sliceAACFrames(r,f):f,layer:u}}},{key:"_refreshDemuxer",value:function(){this._releaseDemuxer(),this._initDemuxer()}},{key:"_initDemuxer",value:function(){n.cwrap("initTsMissile","number",[])(),n.cwrap("initializeDemuxer","number",[])()}},{key:"_releaseDemuxer",value:function(){n.cwrap("exitTsMissile","number",[])()}}])&&r(i.prototype,o),l&&r(i,l),e}();i.MPEG_JS=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../decoder/missile.js":1,"./consts":213,"./decoder/aac":214}],216:[function(e,t,i){"use strict";function r(e,t){for(var i=0;i0&&e.extensionInfo.vHeight>0&&(e.size.width=e.extensionInfo.vWidth,e.size.height=e.extensionInfo.vHeight);for(var t=null;!((t=e.mpegTsObj.readPacket()).size<=0);){var i=t.dtime;if(0==t.type){var r=s.PACK_NALU(t.layer),n=1==t.keyframe;e.bufObject.appendFrame(i,r,!0,n)}else if("aac"==e.mediaInfo.aCodec)for(var a=t.data,o=0;o0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return t<0?null:1==e?this.bufObject.vFrame(t):2==e?this.bufObject.aFrame(t):void 0}},{key:"getACodec",value:function(){return this.aCodec}},{key:"getDurationMs",value:function(){return this.durationMs}},{key:"getFPS",value:function(){return this.fps}},{key:"getSampleRate",value:function(){return this.sampleRate}},{key:"getSize",value:function(){return this.size}},{key:"seek",value:function(e){if(e>=0){var t=this.bufObject.seekIDR(e);this.seekPos=t}}}])&&r(t.prototype,i),o&&r(t,o),e}();i.MpegTs=o},{"../decoder/hevc-imp":206,"./buffer":208,"./mpegts/mpeg.js":215}],217:[function(e,t,i){(function(t){"use strict";function r(e,t){for(var i=0;i0&&void 0!==arguments[0]&&arguments[0];this.player.setScreen(e)}},{key:"play",value:function(){if(this.playParam.videoCodec===u.CODEC_H265){var e={seekPos:this._getSeekTarget(),mode:this.playMode,accurateSeek:this.configFormat.accurateSeek,seekEvent:!1,realPlay:!0};this.player.play(e)}else this.player.play();return!0}},{key:"pause",value:function(){return this.player.pause(),!0}},{key:"isPlaying",value:function(){return this.player.isPlayingState()}},{key:"setVoice",value:function(e){if(e<0)return!1;this.player.setVoice(e)}},{key:"mediaInfo",value:function(){return{meta:this.playParam,videoType:this.playMode}}},{key:"seek",value:function(e){var t=this;this.seekTarget=e,this.onSeekStart&&this.onSeekStart(e),this.timerFeed&&(window.clearInterval(this.timerFeed),this.timerFeed=null);var i=this._getSeekTarget();return this.playParam.videoCodec===u.CODEC_H264&&this.configFormat.type==u.PLAYER_IN_TYPE_MP4?(this.player.seek(e),this.onSeekFinish&&this.onSeekFinish()):this.configFormat.extInfo.core===u.PLAYER_CORE_TYPE_CNATIVE?this.player.seek((function(){}),{seekTime:i,mode:t.playMode,accurateSeek:t.configFormat.accurateSeek}):this.player.seek((function(){t.configFormat.type==u.PLAYER_IN_TYPE_MP4?t.mp4Obj.seek(e):t.configFormat.type==u.PLAYER_IN_TYPE_TS||t.configFormat.type==u.PLAYER_IN_TYPE_MPEGTS?t.mpegTsObj.seek(e):t.configFormat.type==u.PLAYER_IN_TYPE_M3U8&&t.hlsObj.seek(e);var i,r=(i=0,i=t.configFormat.accurateSeek?e:t._getBoxBufSeekIDR(),parseInt(i)),n=parseInt(t._getBoxBufSeekIDR())||0;t._avFeedMP4Data(n,r)}),{seekTime:i,mode:t.playMode,accurateSeek:t.configFormat.accurateSeek}),!0}},{key:"_durationText",value:function(e){if(e<0)return"Play";var t=Math.round(e);return Math.floor(t/3600)+":"+Math.floor(t%3600/60)+":"+Math.floor(t%60)}},{key:"_getSeekTarget",value:function(){return this.configFormat.accurateSeek?this.seekTarget:this._getBoxBufSeekIDR()}},{key:"_getBoxBufSeekIDR",value:function(){return this.configFormat.type==u.PLAYER_IN_TYPE_MP4?this.mp4Obj.seekPos:this.configFormat.type==u.PLAYER_IN_TYPE_TS||this.configFormat.type==u.PLAYER_IN_TYPE_MPEGTS?this.mpegTsObj.seekPos:this.configFormat.type==u.PLAYER_IN_TYPE_M3U8?this.hlsObj.seekPos:void 0}},{key:"_playControl",value:function(){this.isPlaying()?this.pause():this.play()}},{key:"_avFeedMP4Data",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=parseInt(this.playParam.durationMs/1e3);this.timerFeed=window.setInterval((function(){var a=null,s=null;if(e.configFormat.type==u.PLAYER_IN_TYPE_MP4?(a=e.mp4Obj.popBuffer(1,t),s=e.mp4Obj.audioNone?null:e.mp4Obj.popBuffer(2,i)):e.configFormat.type==u.PLAYER_IN_TYPE_TS||e.configFormat.type==u.PLAYER_IN_TYPE_MPEGTS?(a=e.mpegTsObj.popBuffer(1,t),s=e.mpegTsObj.audioNone?null:e.mpegTsObj.popBuffer(2,i)):e.configFormat.type==u.PLAYER_IN_TYPE_M3U8&&(a=e.hlsObj.popBuffer(1,t),s=e.hlsObj.audioNone?null:e.hlsObj.popBuffer(2,i)),null!=a)for(var o=0;on||e.player.getCachePTS()>n)return window.clearInterval(e.timerFeed),e.timerFeed=null,void(null!=r&&r())}),5)}},{key:"_makeMP4Player",value:function(){this.configFormat.type,null!=this.configFormat.extInfo.core&&null!==this.configFormat.extInfo.core&&this.configFormat.extInfo.core===u.PLAYER_CORE_TYPE_CNATIVE?this._cDemuxDecoderEntry():this.configFormat.type==u.PLAYER_IN_TYPE_MP4?this.configFormat.extInfo.moovStartFlag?this._mp4EntryVodStream():this._mp4Entry():this.configFormat.type==u.PLAYER_IN_TYPE_TS||this.configFormat.type==u.PLAYER_IN_TYPE_MPEGTS?this._mpegTsEntry():this.configFormat.type==u.PLAYER_IN_TYPE_M3U8?this._m3u8Entry():this.configFormat.type===u.PLAYER_IN_TYPE_RAW_265&&this._raw265Entry()}},{key:"_makeMP4PlayerViewEvent",value:function(e,t,i,r){var a=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,l=this;if(this.playParam.durationMs=e,this.playParam.fps=t,this.playParam.sampleRate=i,this.playParam.size=r,this.playParam.audioNone=s,this.playParam.videoCodec=o||u.CODEC_H265,(this.configFormat.type==u.PLAYER_IN_TYPE_M3U8&&this.hlsConf.hlsType==u.PLAYER_IN_TYPE_M3U8_LIVE||this.configFormat.type==u.PLAYER_IN_TYPE_RAW_265)&&(this.playMode=u.PLAYER_MODE_NOTIME_LIVE),l.configFormat.extInfo.autoCrop){var f=document.querySelector("#"+this.configFormat.playerId),c=r.width/r.height,h=this.configFormat.playerW/this.configFormat.playerH;c>h?f.style.height=this.configFormat.playerW/c+"px":c>1,a>>1,i),e.v.fill(n>>1,a>>1,r),e.drawArrays(e.TRIANGLE_STRIP,0,4)},setupCanvas:function(e,t){var i=e.getContext("webgl")||e.getContext("experimental-webgl");if(!i)return i;var n=i.createProgram(),a=["attribute highp vec4 aVertexPosition;","attribute vec2 aTextureCoord;","varying highp vec2 vTextureCoord;","void main(void) {"," gl_Position = aVertexPosition;"," vTextureCoord = aTextureCoord;","}"].join("\n"),s=i.createShader(i.VERTEX_SHADER);i.shaderSource(s,a),i.compileShader(s);var o=["precision highp float;","varying lowp vec2 vTextureCoord;","uniform sampler2D YTexture;","uniform sampler2D UTexture;","uniform sampler2D VTexture;","const mat4 YUV2RGB = mat4","("," 1.1643828125, 0, 1.59602734375, -.87078515625,"," 1.1643828125, -.39176171875, -.81296875, .52959375,"," 1.1643828125, 2.017234375, 0, -1.081390625,"," 0, 0, 0, 1",");","void main(void) {"," gl_FragColor = vec4( texture2D(YTexture, vTextureCoord).x, texture2D(UTexture, vTextureCoord).x, texture2D(VTexture, vTextureCoord).x, 1) * YUV2RGB;","}"].join("\n"),l=i.createShader(i.FRAGMENT_SHADER);i.shaderSource(l,o),i.compileShader(l),i.attachShader(n,s),i.attachShader(n,l),i.linkProgram(n),i.useProgram(n),i.getProgramParameter(n,i.LINK_STATUS);var f=i.getAttribLocation(n,"aVertexPosition");i.enableVertexAttribArray(f);var u=i.getAttribLocation(n,"aTextureCoord");i.enableVertexAttribArray(u);var c=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,c),i.bufferData(i.ARRAY_BUFFER,new Float32Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0]),i.STATIC_DRAW),i.vertexAttribPointer(f,3,i.FLOAT,!1,0,0);var h=i.createBuffer();return i.bindBuffer(i.ARRAY_BUFFER,h),i.bufferData(i.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),i.STATIC_DRAW),i.vertexAttribPointer(u,2,i.FLOAT,!1,0,0),i.y=new r(i),i.u=new r(i),i.v=new r(i),i.y.bind(0,n,"YTexture"),i.u.bind(1,n,"UTexture"),i.v.bind(2,n,"VTexture"),i}}},{}],220:[function(e,t,i){(function(e){"use strict";e.STATIC_MEM_wasmDecoderState=-1,e.STATICE_MEM_playerCount=-1,e.STATICE_MEM_playerIndexPtr=0}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],221:[function(e,t,i){"use strict";function r(e,t){for(var i=0;i=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=a(e);return t&&0!==t.length?"string"==typeof i?r.fill(t,i):r.fill(t):r.fill(0),r}),!s.kStringMaxLength)try{s.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(e){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),t.exports=s}).call(this,e("_process"))},{_process:158,buffer:66}],186:[function(e,t,i){var r=e("safe-buffer").Buffer;function n(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var i=this._block,n=this._blockSize,a=e.length,s=this._len,o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var r=(4294967295&i)>>>0,n=(i-r)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=n},{"safe-buffer":184}],187:[function(e,t,i){(i=t.exports=function(e){e=e.toLowerCase();var t=i[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),i.sha1=e("./sha1"),i.sha224=e("./sha224"),i.sha256=e("./sha256"),i.sha384=e("./sha384"),i.sha512=e("./sha512")},{"./sha":188,"./sha1":189,"./sha224":190,"./sha256":191,"./sha384":192,"./sha512":193}],188:[function(e,t,i){var r=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function l(){this.init(),this._w=o,n.call(this,64,56)}function f(e){return e<<30|e>>>2}function u(e,t,i,r){return 0===e?t&i|~t&r:2===e?t&i|t&r|i&r:t^i^r}r(l,n),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,i=this._w,r=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,l=0|this._e,c=0;c<16;++c)i[c]=e.readInt32BE(4*c);for(;c<80;++c)i[c]=i[c-3]^i[c-8]^i[c-14]^i[c-16];for(var h=0;h<80;++h){var d=~~(h/20),_=0|((t=r)<<5|t>>>27)+u(d,n,a,o)+l+i[h]+s[d];l=o,o=a,a=f(n),n=r,r=_}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":186,inherits:136,"safe-buffer":184}],189:[function(e,t,i){var r=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function l(){this.init(),this._w=o,n.call(this,64,56)}function f(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function c(e,t,i,r){return 0===e?t&i|~t&r:2===e?t&i|t&r|i&r:t^i^r}r(l,n),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,i=this._w,r=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,l=0|this._e,h=0;h<16;++h)i[h]=e.readInt32BE(4*h);for(;h<80;++h)i[h]=(t=i[h-3]^i[h-8]^i[h-14]^i[h-16])<<1|t>>>31;for(var d=0;d<80;++d){var _=~~(d/20),p=f(r)+c(_,n,a,o)+l+i[d]+s[_]|0;l=o,o=a,a=u(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":186,inherits:136,"safe-buffer":184}],190:[function(e,t,i){var r=e("inherits"),n=e("./sha256"),a=e("./hash"),s=e("safe-buffer").Buffer,o=new Array(64);function l(){this.init(),this._w=o,a.call(this,64,56)}r(l,n),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=l},{"./hash":186,"./sha256":191,inherits:136,"safe-buffer":184}],191:[function(e,t,i){var r=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,s=[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],o=new Array(64);function l(){this.init(),this._w=o,n.call(this,64,56)}function f(e,t,i){return i^e&(t^i)}function u(e,t,i){return e&t|i&(e|t)}function c(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function d(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(l,n),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t,i=this._w,r=0|this._a,n=0|this._b,a=0|this._c,o=0|this._d,l=0|this._e,_=0|this._f,p=0|this._g,m=0|this._h,b=0;b<16;++b)i[b]=e.readInt32BE(4*b);for(;b<64;++b)i[b]=0|(((t=i[b-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+i[b-7]+d(i[b-15])+i[b-16];for(var v=0;v<64;++v){var y=m+h(l)+f(l,_,p)+s[v]+i[v]|0,g=c(r)+u(r,n,a)|0;m=p,p=_,_=l,l=o+y|0,o=a,a=n,n=r,r=y+g|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=o+this._d|0,this._e=l+this._e|0,this._f=_+this._f|0,this._g=p+this._g|0,this._h=m+this._h|0},l.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=l},{"./hash":186,inherits:136,"safe-buffer":184}],192:[function(e,t,i){var r=e("inherits"),n=e("./sha512"),a=e("./hash"),s=e("safe-buffer").Buffer,o=new Array(160);function l(){this.init(),this._w=o,a.call(this,128,112)}r(l,n),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,i,r){e.writeInt32BE(t,r),e.writeInt32BE(i,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=l},{"./hash":186,"./sha512":193,inherits:136,"safe-buffer":184}],193:[function(e,t,i){var r=e("inherits"),n=e("./hash"),a=e("safe-buffer").Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function l(){this.init(),this._w=o,n.call(this,128,112)}function f(e,t,i){return i^e&(t^i)}function u(e,t,i){return e&t|i&(e|t)}function c(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function _(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function p(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return e>>>0>>0?1:0}r(l,n),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,i=0|this._ah,r=0|this._bh,n=0|this._ch,a=0|this._dh,o=0|this._eh,l=0|this._fh,v=0|this._gh,y=0|this._hh,g=0|this._al,w=0|this._bl,E=0|this._cl,C=0|this._dl,S=0|this._el,j=0|this._fl,T=0|this._gl,A=0|this._hl,x=0;x<32;x+=2)t[x]=e.readInt32BE(4*x),t[x+1]=e.readInt32BE(4*x+4);for(;x<160;x+=2){var M=t[x-30],k=t[x-30+1],P=d(M,k),I=_(k,M),U=p(M=t[x-4],k=t[x-4+1]),R=m(k,M),D=t[x-14],O=t[x-14+1],F=t[x-32],B=t[x-32+1],L=I+O|0,N=P+D+b(L,I)|0;N=(N=N+U+b(L=L+R|0,R)|0)+F+b(L=L+B|0,B)|0,t[x]=N,t[x+1]=L}for(var z=0;z<160;z+=2){N=t[z],L=t[z+1];var H=u(i,r,n),V=u(g,w,E),Y=c(i,g),q=c(g,i),X=h(o,S),W=h(S,o),G=s[z],K=s[z+1],Q=f(o,l,v),Z=f(S,j,T),J=A+W|0,$=y+X+b(J,A)|0;$=($=($=$+Q+b(J=J+Z|0,Z)|0)+G+b(J=J+K|0,K)|0)+N+b(J=J+L|0,L)|0;var ee=q+V|0,te=Y+H+b(ee,q)|0;y=v,A=T,v=l,T=j,l=o,j=S,o=a+$+b(S=C+J|0,C)|0,a=n,C=E,n=r,E=w,r=i,w=g,i=$+te+b(g=J+ee|0,J)|0}this._al=this._al+g|0,this._bl=this._bl+w|0,this._cl=this._cl+E|0,this._dl=this._dl+C|0,this._el=this._el+S|0,this._fl=this._fl+j|0,this._gl=this._gl+T|0,this._hl=this._hl+A|0,this._ah=this._ah+i+b(this._al,g)|0,this._bh=this._bh+r+b(this._bl,w)|0,this._ch=this._ch+n+b(this._cl,E)|0,this._dh=this._dh+a+b(this._dl,C)|0,this._eh=this._eh+o+b(this._el,S)|0,this._fh=this._fh+l+b(this._fl,j)|0,this._gh=this._gh+v+b(this._gl,T)|0,this._hh=this._hh+y+b(this._hl,A)|0},l.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,i,r){e.writeInt32BE(t,r),e.writeInt32BE(i,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=l},{"./hash":186,inherits:136,"safe-buffer":184}],194:[function(e,t,i){t.exports=n;var r=e("events").EventEmitter;function n(){r.call(this)}e("inherits")(n,r),n.Readable=e("readable-stream/readable.js"),n.Writable=e("readable-stream/writable.js"),n.Duplex=e("readable-stream/duplex.js"),n.Transform=e("readable-stream/transform.js"),n.PassThrough=e("readable-stream/passthrough.js"),n.Stream=n,n.prototype.pipe=function(e,t){var i=this;function n(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function a(){i.readable&&i.resume&&i.resume()}i.on("data",n),e.on("drain",a),e._isStdio||t&&!1===t.end||(i.on("end",o),i.on("close",l));var s=!1;function o(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){i.removeListener("data",n),e.removeListener("drain",a),i.removeListener("end",o),i.removeListener("close",l),i.removeListener("error",f),e.removeListener("error",f),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",f),e.on("error",f),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e}},{events:104,inherits:136,"readable-stream/duplex.js":168,"readable-stream/passthrough.js":179,"readable-stream/readable.js":180,"readable-stream/transform.js":181,"readable-stream/writable.js":182}],195:[function(e,t,i){arguments[4][178][0].apply(i,arguments)},{dup:178,"safe-buffer":184}],196:[function(e,t,i){(function(t,r){var n=e("process/browser.js").nextTick,a=Function.prototype.apply,s=Array.prototype.slice,o={},l=0;function f(e,t){this._id=e,this._clearFn=t}i.setTimeout=function(){return new f(a.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new f(a.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(e){e.close()},f.prototype.unref=f.prototype.ref=function(){},f.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},i.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},i._unrefActive=i.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},i.setImmediate="function"==typeof t?t:function(e){var t=l++,r=!(arguments.length<2)&&s.call(arguments,1);return o[t]=!0,n((function(){o[t]&&(r?e.apply(null,r):e.call(null),i.clearImmediate(t))})),t},i.clearImmediate="function"==typeof r?r:function(e){delete o[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":158,timers:196}],197:[function(e,t,i){(function(e){function i(t){try{if(!e.localStorage)return!1}catch(e){return!1}var i=e.localStorage[t];return null!=i&&"true"===String(i).toLowerCase()}t.exports=function(e,t){if(i("noDeprecation"))return e;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],198:[function(e,t,i){"use strict";t.exports={DEFAILT_WEBGL_PLAY_ID:"glplayer",PLAYER_IN_TYPE_MP4:"mp4",PLAYER_IN_TYPE_RAW_265:"raw265",PLAYER_IN_TYPE_TS:"ts",PLAYER_IN_TYPE_MPEGTS:"mpegts",PLAYER_IN_TYPE_M3U8:"hls",PLAYER_IN_TYPE_M3U8_VOD:"m3u8",PLAYER_IN_TYPE_M3U8_LIVE:"hls",APPEND_TYPE_STREAM:0,APPEND_TYPE_FRAME:1,APPEND_TYPE_SEQUENCE:2,DEFAULT_WIDTH:600,DEFAULT_HEIGHT:600,DEFAULT_FPS:25,DEFAULT_FRAME_DUR:40,DEFAULT_FIXED:!1,DEFAULT_SAMPLERATE:44100,DEFAULT_CHANNELS:2,DEFAULT_CONSU_SAMPLE_LEN:20,PLAYER_MODE_VOD:"vod",PLAYER_MODE_NOTIME_LIVE:"live",AUDIO_MODE_ONCE:"ONCE",AUDIO_MODE_SWAP:"SWAP",DEFAULT_STRING_LIVE:"LIVE",CODEC_H265:0,CODEC_H264:1,PLAYER_CORE_TYPE_DEFAULT:0,PLAYER_CORE_TYPE_CNATIVE:1,V_CODEC_NAME_HEVC:265,V_CODEC_NAME_AVC:264,V_CODEC_NAME_UNKN:500,A_CODEC_NAME_AAC:112,A_CODEC_NAME_MP3:113,A_CODEC_NAME_UNKN:500}},{}],199:[function(e,t,i){"use strict";var r=window.AudioContext||window.webkitAudioContext,n=e("../consts"),a=function(){return(new Date).getTime()};t.exports=function(e){var t={options:{sampleRate:e.sampleRate||n.DEFAULT_SAMPLERATE,appendType:e.appendType||n.APPEND_TYPE_STREAM,playMode:e.playMode||n.AUDIO_MODE_SWAP},sourceChannel:-1,audioCtx:new r({latencyHint:"interactive",sampleRate:e.sampleRate}),gainNode:null,sourceList:[],startStatus:!1,sampleQueue:[],nextBuffer:null,playTimestamp:0,playStartTime:0,durationMs:-1,voice:1,onLoadCache:null,setOnLoadCache:function(e){t.onLoadCache=e},setDurationMs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;t.durationMs=e},setVoice:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.voice=e,t.gainNode.gain.value=e},getAlignVPTS:function(){return t.playTimestamp+(a()-t.playStartTime)/1e3},swapSource:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0==t.startStatus)return null;if(e<0||e>=t.sourceList.length)return null;if(i<0||i>=t.sourceList.length)return null;try{t.sourceChannel===e&&null!==t.sourceList[e]&&(t.sourceList[e].disconnect(t.gainNode),t.sourceList[e]=null)}catch(e){}t.sourceChannel=i;var r=t.decodeSample(i,e);-2==r&&(t.getAlignVPTS()>=t.durationMs/1e3-.04?t.pause():null!==t.onLoadCache&&t.onLoadCache())},addSample:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!(null==e||!e||null==e)&&(0==t.sampleQueue.length&&(t.seekPos=e.pts),t.sampleQueue.push(e),!0)},runNextBuffer:function(){window.setInterval((function(){if(!(null!=t.nextBuffer||t.sampleQueue.length0&&void 0!==arguments[0]?arguments[0]:-1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(e<0||e>=t.sourceList.length)return-1;if(null!=t.sourceList[e]&&null!=t.sourceList[e]&&t.sourceList[e]||(t.sourceList[e]=t.audioCtx.createBufferSource(),t.sourceList[e].onended=function(){t.swapSource(e,i)}),0==t.sampleQueue.length)return-2;if(t.sourceList[e].buffer)return t.sourceList[e],t.sourceList[i],t.gainNode,t.swapSource(e,i),0;if(null==t.nextBuffer||t.nextBuffer.data.length<1)return t.sourceList[e].connect(t.gainNode),t.sourceList[e].start(),t.sourceList[e].startState=!0,t.sourceList[e].stop(),1;var r=t.nextBuffer.data.buffer;t.playTimestamp=t.nextBuffer.pts,t.playStartTime=a();try{t.audioCtx.decodeAudioData(r,(function(i){t.sourceList[e].buffer=i,t.sourceList[e].connect(t.gainNode),t.sourceList[e].start(),t.sourceList[e].startState=!0,t.sourceList[e]}),(function(e){}))}catch(e){return t.nextBuffer=null,-3}return t.nextBuffer=null,0},decodeWholeSamples:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(t.sourceChannel=e,e<0||e>=t.sourceList.length)return-1;if(null!=t.sourceList[e]&&null!=t.sourceList[e]&&t.sourceList[e]||(t.sourceList[e]=t.audioCtx.createBufferSource(),t.sourceList[e].onended=function(){}),0==t.sampleQueue.length)return-2;for(var i=null,r=null,a=0;a=2){var s=i.length/2;a=new Float32Array(s);for(var o=0,l=0;l0&&s()-this._start_time>=this._now_seg_dur&&(s(),this._start_time,this._now_seg_dur,this._start_time=-1,this._now_seg_dur=-1),s(),this._start_time<0)if(new Date,null!==this._pcm_array_buf&&this._pcm_array_buf.length>this._push_start_idx){this._swapStartPlay=!1;var e=this._push_start_idx+this._once_pop_len;e>this._pcm_array_buf.length&&(e=this._pcm_array_buf.length);var t=this._pcm_array_buf.slice(this._push_start_idx,e);this._push_start_idx+=t.length,this._now_seg_dur=1*t.length/this._sample_rate*1e3,t.length,this._sample_rate,this._now_seg_dur;var i=this._ctx.createBuffer(1,t.length,this._sample_rate);t.length,new Date,i.copyToChannel(t,0),this._active_node=this._ctx.createBufferSource(),this._active_node.buffer=i,this._active_node.connect(this._gain),this._start_time=s(),this._active_node.start(0)}else setTimeout(this.readingLoopWithF32,1)}}])&&r(t.prototype,i),o&&r(t,o),e}();i.AudioPcmPlayer=o},{"../consts":198}],201:[function(e,t,i){"use strict";t.exports={frameDataAlignCrop:function(e,t,i,r,n,a,s,o){if(0==e-r)return[a,s,o];for(var l=r*n,f=l/4,u=new Uint8Array(l),c=new Uint8Array(f),h=new Uint8Array(f),d=r,_=r/2,p=0;p0&&void 0!==arguments[0]&&arguments[0];this.showScreen=e,this.canvas&&(e?this.canvas.setAttribute("hidden",!0):this.canvas.removeAttribute("hidden"))}},{key:"getCachePTS",value:function(){return 1!==this.config.ignoreAudio&&this.audioWAudio?Math.min(this.vCachePTS,this.aCachePTS):this.vCachePTS}},{key:"getMaxPTS",value:function(){return Math.max(this.vCachePTS,this.aCachePTS)}},{key:"isPlayingState",value:function(){return this.isPlaying}},{key:"pushDone",value:function(){this.pushEOF=!0}},{key:"_clearDecInterval",value:function(){this.decVFrameInterval&&window.clearInterval(this.decVFrameInterval),this.decVFrameInterval=null}},{key:"_checkPlayFinished",value:function(){return!!(!0===this.bufRecvStat&&(this.playPTS>=this.bufLastVDTS||this.audioWAudio&&this.playPTS>=this.bufLastADTS)||this.duration-this.playPTS0&&(this.isPlaying=!0);var t=0,i=0,r=0;this.playFrameInterval=window.setInterval((function(){if(i=h(),e._videoQueue.length>0&&i-t>=e.frameTime-r){var n=e._videoQueue.shift(),a=0;if(e.isNewSeek||null===e.audioWAudio||void 0===e.audioWAudio||(a=1e3*(n.pts-e.audioWAudio.getAlignVPTS()),e.playPTS=Math.max(e.audioWAudio.getAlignVPTS(),e.playPTS)),t=i,h(),n.pts,e.seekTarget,e.playPTS=Math.max(n.pts,e.playPTS),e.isNewSeek&&e.seekTarget-e.frameDur>n.pts)return void(r=e.frameTime);if(e.isNewSeek&&(e.audioWAudio&&e.audioWAudio.setVoice(e.audioVoice),e.audioWAudio&&e.audioWAudio.play(),r=0,e.isNewSeek=!1,e.seekTarget=0),n.pts,e.showScreen?e.onRender&&e.onRender(n.line1,n.height,n.data_y,n.data_u,n.data_v):l.renderFrame(e.yuv,n.data_y,n.data_u,n.data_v,n.line1,n.height),e.onPlayingTime&&e.onPlayingTime(n.pts),!e.isNewSeek&&e.audioWAudio&&(a<0&&-1*a<=e.frameTime||a>=0)){if(n.pts>=e.duration)e.onLoadCacheFinshed&&e.onLoadCacheFinshed(),e.onPlayingFinish&&e.onPlayingFinish(),e._clearDecInterval(),e.pause();else if(e._checkPlayFinished())return;r=h()-i}else!e.isNewSeek&&e.audioWAudio&&(a<0&&e.frameTime,r=e.frameTime)}e._checkPlayFinished()}),1)}this.isNewSeek||this.audioWAudio&&this.audioWAudio.play()}},{key:"pause",value:function(){this.isPlaying=!1,this._pause()}},{key:"_pause",value:function(){this.playFrameInterval&&window.clearInterval(this.playFrameInterval),this.playFrameInterval=null,this.audioWAudio&&this.audioWAudio.pause()}},{key:"seek",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.openFrameCall=!1,this.pause(),this._clearDecInterval(),null!==this.avFeedVideoInterval&&(window.clearInterval(this.avFeedVideoInterval),this.avFeedVideoInterval=null),null!==this.avFeedAudioInterval&&(window.clearInterval(this.avFeedAudioInterval),this.avFeedAudioInterval=null),this.yuvMaxTime=0,this.playVPipe.length=0,this._videoQueue.length=0,this.audioWAudio&&this.audioWAudio.stop(),e&&e(),this.isNewSeek=!0,this.seekTarget=i.seekTime,this.audioWAudio&&this.audioWAudio.setVoice(0),this._avFeedData(i.seekTime),setTimeout((function(){t.yuvMaxTime=0,t._videoQueue.length=0,t.openFrameCall=!0,t.frameCallTag+=1,t._decVFrameIntervalFunc()}),1e3)}},{key:"setVoice",value:function(e){this.audioVoice=e,this.audioWAudio&&this.audioWAudio.setVoice(e)}},{key:"_checkDisplaySize",value:function(e,t,i){var r=t-e,n=this.config.width+Math.ceil(r/2),a=t/this.config.width>i/this.config.height,s=(n/t).toFixed(2),o=(this.config.height/i).toFixed(2),l=a?s:o,f=this.config.fixed,u=f?n:parseInt(t*l),c=f?this.config.height:parseInt(i*l);if(this.canvas.offsetWidth!=u||this.canvas.offsetHeight!=c){var h=parseInt((this.canvasBox.offsetHeight-c)/2),d=parseInt((this.canvasBox.offsetWidth-u)/2);h=h<0?0:h,d=d<0?0:d,this.canvas.style.marginTop=h+"px",this.canvas.style.marginLeft=d+"px",this.canvas.style.width=u+"px",this.canvas.style.height=c+"px"}return this.isCheckDisplay=!0,[u,c]}},{key:"_createYUVCanvas",value:function(){for(this.canvasBox=document.querySelector("#"+this.config.playerId),this.canvasBox.style.overflow="hidden";this.canvasBox.hasChildNodes();)this.canvasBox.removeChild(this.canvasBox.lastChild);this.canvas=document.createElement("canvas"),this.canvas.style.width=this.canvasBox.clientWidth+"px",this.canvas.style.height=this.canvasBox.clientHeight+"px",this.canvas.style.top="0px",this.canvas.style.left="0px",this.canvasBox.appendChild(this.canvas),this.yuv=l.setupCanvas(this.canvas,{preserveDrawingBuffer:!1})}},{key:"_avRecvPackets",value:function(){var e=this;this.bufObject.cleanPipeline(),null!==this.avRecvInterval&&(window.clearInterval(this.avRecvInterval),this.avRecvInterval=null),!0===this.config.checkProbe?this.avRecvInterval=window.setInterval((function(){a.cwrap("getSniffStreamPkg","number",["number"])(e.corePtr),e._avCheckRecvFinish()}),5):this.avRecvInterval=window.setInterval((function(){a.cwrap("getSniffStreamPkgNoCheckProbe","number",["number"])(e.corePtr),e._avCheckRecvFinish()}),5),this._avFeedData(0)}},{key:"_avCheckRecvFinish",value:function(){this.duration-this.getMaxPTS()=50&&(t.onSeekFinish&&t.onSeekFinish(),t.play(),window.clearInterval(i),i=null)}),10)}},{key:"_avFeedData",value:function(e){var t=this;if(this.playVPipe.length=0,this.audioWAudio&&this.audioWAudio.cleanQueue(),e<=0){var i=0;if(this.avFeedVideoInterval=window.setInterval((function(){var e=t.bufObject.videoBuffer.length;if(e-1>i||t.duration-t.getMaxPTS()0&&t.playVPipe[t.playVPipe.length-1].pts>=t.bufLastVDTS&&(window.clearInterval(t.avFeedVideoInterval),t.avFeedVideoInterval=null,t.playVPipe[t.playVPipe.length-1].pts,t.bufObject.videoBuffer)}else t.playVPipe.length>0&&t.playVPipe[t.playVPipe.length-1].pts>=t.duration&&(window.clearInterval(t.avFeedVideoInterval),t.avFeedVideoInterval=null,t.playVPipe[t.playVPipe.length-1].pts,t.bufObject.videoBuffer)}),5),this.audioWAudio&&this.config.ignoreAudio<1){var r=0;this.avFeedAudioInterval=window.setInterval((function(){var e=t.bufObject.audioBuffer.length;if(e-1>r||t.duration-t.getMaxPTS()0&&t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts>=t.bufLastADTS&&(window.clearInterval(t.avFeedAudioInterval),t.avFeedAudioInterval=null,t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts,t.bufObject.audioBuffer)}else t.audioWAudio.sampleQueue.length>0&&t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts>=t.duration&&(window.clearInterval(t.avFeedAudioInterval),t.avFeedAudioInterval=null,t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts,t.bufObject.audioBuffer)}),5)}}else{var n=this.bufObject.seekIDR(e),a=parseInt(n,10);this.playPTS=0;var o=a;if(this.avFeedVideoInterval=window.setInterval((function(){var i=t.bufObject.videoBuffer.length;if(i-1>o||t.duration-t.getMaxPTS()0&&t.playVPipe[t.playVPipe.length-1].pts>=t.bufLastVDTS&&(window.clearInterval(t.avFeedVideoInterval),t.avFeedVideoInterval=null,t.playVPipe[t.playVPipe.length-1].pts,t.bufObject.videoBuffer,t.onPlayingTime&&t.onPlayingTime(e),t._afterAvFeedSeekToStart())}else t.playVPipe.length>0&&t.playVPipe[t.playVPipe.length-1].pts>=t.duration&&(window.clearInterval(t.avFeedVideoInterval),t.avFeedVideoInterval=null,t.playVPipe[t.playVPipe.length-1].pts,t.bufObject.videoBuffer,t.onPlayingTime&&t.onPlayingTime(e),t._afterAvFeedSeekToStart())}),5),this.audioWAudio&&this.config.ignoreAudio<1){var l=parseInt(this.seekTarget,10);this.avFeedAudioInterval=window.setInterval((function(){var e=t.bufObject.audioBuffer.length;if(e-1>l||t.duration-t.getMaxPTS()0&&t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts>=t.bufLastADTS&&(window.clearInterval(t.avFeedAudioInterval),t.avFeedAudioInterval=null,t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts,t.bufObject.audioBuffer)}else t.audioWAudio.sampleQueue.length>0&&t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts>=t.duration&&(window.clearInterval(t.avFeedAudioInterval),t.avFeedAudioInterval=null,t.audioWAudio.sampleQueue[t.audioWAudio.sampleQueue.length-1].pts,t.bufObject.audioBuffer)}),5)}}}},{key:"_probeFinCallback",value:function(e,t,i,r,n,s,o,l,c){var h=this;this._createYUVCanvas(),u.V_CODEC_NAME_HEVC,this.config.fps=1*r,this.frameTime=1e3/this.config.fps,this.width=t,this.height=i,this.frameDur=1/this.config.fps,this.duration=e-this.frameDur,this.vCodecID=l,this.config.sampleRate=s,this.channels=o,this.audioIdx=n;for(var d=a.HEAPU8.subarray(c,c+10),_=0;_=0&&this.config.ignoreAudio<1?(void 0!==this.audioWAudio&&null!==this.audioWAudio&&(this.audioWAudio.stop(),this.audioWAudio=null),this.audioWAudio=f({sampleRate:s,appendType:u.APPEND_TYPE_FRAME}),this.audioWAudio.setDurationMs(1e3*e),this.onLoadCache&&this.audioWAudio.setOnLoadCache((function(){if(h.retryAuSampleNo,h.retryAuSampleNo<=5){h.pause(),h.onLoadCache&&h.onLoadCache();var e=window.setInterval((function(){return h.retryAuSampleNo,h.audioWAudio.sampleQueue.length,h.audioWAudio.sampleQueue.length>2?(h.onLoadCacheFinshed&&h.onLoadCacheFinshed(),h.play(),h.retryAuSampleNo=0,window.clearInterval(e),void(e=null)):(h.retryAuSampleNo+=1,h.retryAuSampleNo>5?(h.play(),h.onLoadCacheFinshed&&h.onLoadCacheFinshed(),window.clearInterval(e),void(e=null)):void 0)}),1e3)}}))):this.audioNone=!0,this._avRecvPackets(),this._decVFrameIntervalFunc()),this.onProbeFinish&&this.onProbeFinish()}},{key:"_ptsFixed2",value:function(e){return Math.ceil(100*e)/100}},{key:"_naluCallback",value:function(e,t,i,r,n,s,o){var l=this._ptsFixed2(s),f=a.HEAPU8.subarray(e,e+t),u=new Uint8Array(f);this.bufObject.appendFrameWithDts(l,o,u,!0,i),this.bufLastVDTS=Math.max(o,this.bufLastVDTS),this.vCachePTS=Math.max(l,this.vCachePTS),this.onCacheProcess&&this.onCacheProcess(this.getCachePTS())}},{key:"_samplesCallback",value:function(e,t,i,r){}},{key:"_aacFrameCallback",value:function(e,t,i,r,n){var s=this._ptsFixed2(n);if(this.audioWAudio){var o=new Uint8Array(7+i),l=a.HEAPU8.subarray(e,e+7);o.set(l,0);var f=a.HEAPU8.subarray(t,t+i);o.set(f,7),this.bufObject.appendFrame(s,o,!1,!0),this.bufLastADTS=Math.max(s,this.bufLastVDTS),this.aCachePTS=Math.max(s,this.aCachePTS),this.onCacheProcess&&this.onCacheProcess(this.getCachePTS())}}},{key:"_decVFrameIntervalFunc",value:function(){var e=this;null==this.decVFrameInterval&&(this.decVFrameInterval=window.setInterval((function(){if(e._videoQueue.length<50&&e.playVPipe.length>0){var t=e.playVPipe.shift(),i=t.data,r=a._malloc(i.length);a.HEAP8.set(i,r);var n=parseInt(1e3*t.pts,10),s=parseInt(1e3*t.dts,10);e.yuvMaxTime=Math.max(t.pts,e.yuvMaxTime),a.cwrap("decodeVideoFrame","number",["number","number","number","number","number"])(e.corePtr,r,i.length,n,s,e.frameCallTag),e.frameCallTag,a._free(r),r=null}}),10))}},{key:"_frameCallback",value:function(e,t,i,r,n,s,o,f,u,c){if(!(!1===this.openFrameCall||c!==this.frameCallTag||u>this.yuvMaxTime+this.frameDur)){this.frameCallTag;var h=this._videoQueue.length;if(!(h>0&&u-this._videoQueue[h-1].pts>1||(this.canvas.width==r&&this.canvas.height==f||(this.canvas.width=r,this.canvas.height=f,this.isCheckDisplay)||this._checkDisplaySize(o,r,f),this.playPTS>u))){var _=a.HEAPU8.subarray(e,e+r*f),p=a.HEAPU8.subarray(t,t+n*f/2),m=a.HEAPU8.subarray(i,i+s*f/2),b=new Uint8Array(_),v=new Uint8Array(p),y=new Uint8Array(m);this.config.readyShow&&(l.renderFrame(this.yuv,b,v,y,r,f),this.config.readyShow=!1);var g=new d(b,v,y,r,n,s,o,f,u);if(h<=0||u>this._videoQueue[h-1].pts)this._videoQueue.push(g);else if(uthis._videoQueue[w].pts&&w+10&&void 0!==arguments[0]?arguments[0]:60,t={limit:e,yuvCache:[],appendCacheByCacheYuv:function(e){e.pts;return t.yuvCache.length>=t.limit?CACHE_APPEND_STATUS_CODE.OVERFLOW:(t.yuvCache.push(e),t.yuvCache.length>=t.limit?CACHE_APPEND_STATUS_CODE.FULL:CACHE_APPEND_STATUS_CODE.NOT_FULL)},getState:function(){return t.yuvCache.length<=0?CACHE_APPEND_STATUS_CODE.NULL:t.yuvCache.length>=t.limit?CACHE_APPEND_STATUS_CODE.FULL:CACHE_APPEND_STATUS_CODE.NOT_FULL},cleanPipeline:function(){t.yuvCache.length=0},vYuv:function(){return t.yuvCache.length<=0?null:t.yuvCache.shift()}};return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./cacheYuv":204}],204:[function(e,t,i){"use strict";function r(e,t){for(var i=0;i>1;return n.indexOf(t)},GET_NALU_TYPE:function(e){var t=(126&e)>>1;if(t>=1&&t<=9)return r.DEFINE_P_FRAME;if(t>=16&&t<=21)return r.DEFINE_KEY_FRAME;var i=n.indexOf(t);return i>=0?n[i]:r.DEFINE_OTHERS_FRAME},PACK_NALU:function(e){var t=e.nalu,i=e.vlc.vlc;null==t.vps&&(t.vps=new Uint8Array);var r=new Uint8Array(t.vps.length+t.sps.length+t.pps.length+t.sei.length+i.length);return r.set(t.vps,0),r.set(t.sps,t.vps.length),r.set(t.pps,t.vps.length+t.sps.length),r.set(t.sei,t.vps.length+t.sps.length+t.pps.length),r.set(i,t.vps.length+t.sps.length+t.pps.length+t.sei.length),r}}},{"./hevc-header":205}],207:[function(e,t,i){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,i=new Array(e.length);t0&&void 0!==arguments[0]&&arguments[0];null!=t&&(t.showScreen=e,t.canvas&&(e?t.canvas.setAttribute("hidden",!0):t.canvas.removeAttribute("hidden")))},setSize:function(e,i){t.config.width=e||f.DEFAULT_WIDTH,t.config.height=i||f.DEFAULT_HEIGHT},setFrameRate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25;t.config.fps=e,t.config.frameDurMs=1e3/e},setDurationMs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;t.durationMs=e,0==t.config.audioNone&&t.audio.setDurationMs(e)},setPlayingCall:function(e){t.onPlayingTime=e},setVoice:function(e){t.realVolume=e,0==t.config.audioNone&&t.audio.setVoice(t.realVolume)},isPlayingState:function(){return t.isPlaying},appendAACFrame:function(e){t.audio.addSample(e),t.aCachePTS=Math.max(e.pts,t.aCachePTS)},appendHevcFrame:function(e){var i;t.config.appendHevcType==f.APPEND_TYPE_STREAM?t.stream=new Uint8Array((i=r(t.stream)).concat.apply(i,r(e))):t.config.appendHevcType==f.APPEND_TYPE_FRAME&&(t.frameList.push(e),t.vCachePTS=Math.max(e.pts,t.vCachePTS))},getCachePTS:function(){return t.vCachePTS,t.aCachePTS,Math.max(t.vCachePTS,t.aCachePTS)},endAudio:function(){0==t.config.audioNone&&t.audio.stop()},cleanSample:function(){0==t.config.audioNone&&t.audio.cleanQueue()},cleanVideoQueue:function(){t.config.appendHevcType==f.APPEND_TYPE_STREAM?t.stream=new Uint8Array:t.config.appendHevcType==f.APPEND_TYPE_FRAME&&(t.frameList=[])},cleanCacheYUV:function(){t.cacheYuvBuf.cleanPipeline()},pause:function(){t.loop&&window.clearInterval(t.loop),t.loop=null,0==t.config.audioNone&&t.audio.pause(),t.isPlaying=!1},checkFinished:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.PLAYER_MODE_VOD;return e==f.PLAYER_MODE_VOD&&(t.videoPTS.toFixed(1)>=(t.durationMs-t.config.frameDurMs)/1e3||t.noCacheFrame>=10)&&(null!=t.onPlayingFinish&&t.onPlayingFinish(),!0)},seek:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isPlaying;t.nowPacket=null,t.vCachePTS=0,t.aCachePTS=0,t.pause(),t.cleanSample(),t.cleanVideoQueue(),t.cleanCacheYUV(),e&&e(),t.isNewSeek=!0,t.videoPTS=parseInt(i.seekTime);var n={seekPos:i.seekTime||-1,mode:i.mode||f.PLAYER_MODE_VOD,accurateSeek:i.accurateSeek||!0,seekEvent:i.seekEvent||!0,realPlay:r};t.play(n)},getNalu1Packet:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=null,r=-1;if(t.config.appendHevcType==f.APPEND_TYPE_STREAM)i=t.nextNalu();else{if(t.config.appendHevcType!=f.APPEND_TYPE_FRAME)return null;var n=t.frameList.shift();if(!n)return null;i=n.data,r=n.pts,e&&(t.videoPTS=r)}return{nalBuf:i,pts:r}},decodeNalu1Frame:function(e,i){var r=n._malloc(e.length);n.HEAP8.set(e,r);var a=parseInt(1e3*i);n.cwrap("decodeCodecContext","number",["number","number","number","number"])(t.vcodecerPtr,r,e.length,a);return n._free(r),!1},cacheThread:function(){t.cacheLoop=window.setInterval((function(){if(t.cacheYuvBuf.getState()!=CACHE_APPEND_STATUS_CODE.FULL){var e=t.getNalu1Packet(!1);if(null!=e){var i=e.nalBuf,r=e.pts;t.decodeNalu1Frame(i,r,!0)}}}),10)},loadCache:function(){if(!(t.frameList.length<=3)){var e=t.isPlaying;if(t.cacheYuvBuf.yuvCache.length<=3){t.pause(),null!=t.onLoadCache&&t.onLoadCache();var i=t.frameList.length>30?30:t.frameList.length,r=window.setInterval((function(){t.cacheYuvBuf.yuvCache.length>=i&&(null!=t.onLoadCacheFinshed&&t.onLoadCacheFinshed(),window.clearInterval(r),r=null,e&&t.play(t.playParams))}),40)}}},playFunc:function(){if(t.playParams.seekEvent||c()-t.calcuteStartTime>=t.frameTime-t.preCostTime){var e=!0;if(t.calcuteStartTime=c(),t.config.audioNone)t.playFrameYUV(e,t.playParams.accurateSeek);else{t.fix_poc_err_skip>0&&(t.fix_poc_err_skip--,e=!1);var i=t.videoPTS-t.audio.getAlignVPTS();if(i>0)return void(t.playParams.seekEvent&&!t.config.audioNone&&t.audio.setVoice(0));if(e){if(!(e=-1*i<=1*t.frameTimeSec)){for(var r=parseInt(i/t.frameTimeSec),n=0;n=t.playParams.seekPos&&!t.isNewSeek||0===t.playParams.seekPos||0===t.playParams.seekPos?(t.frameTime=1e3/t.config.fps,t.frameTimeSec=t.frameTime/1e3,0==t.config.audioNone&&t.audio.play(),t.realVolume=t.config.audioNone?0:t.audio.voice,t.playParams.seekEvent&&(t.fix_poc_err_skip=10),t.loop=window.setInterval((function(){var e=c();t.playFunc(),t.preCostTime=c()-e,t.preCostTime}),1)):(t.loop=window.setInterval((function(){t.playFrameYUV(!1,t.playParams.accurateSeek),t.checkFinished(t.playParams.mode)?(window.clearInterval(t.loop),t.loop=null):t.videoPTS>=t.playParams.seekPos&&(window.clearInterval(t.loop),t.loop=null,t.play(t.playParams))}),1),t.isNewSeek=!1)},stop:function(){t.release(),n.cwrap("initializeDecoder","number",["number"])(t.vcodecerPtr),t.stream=new Uint8Array},release:function(){return t.endAudio(),t.loop&&window.clearInterval(t.loop),t.loop=null,t.pause(),n.cwrap("release","number",["number"])(t.vcodecerPtr),t.stream=null,t.frameList.length=0,t.durationMs=-1,t.videoPTS=0,t.isPlaying=!1,!0},nextNalu:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(t.stream.length<=4)return!1;for(var i=-1,r=0;r=t.stream.length){if(-1==i)return!1;var n=t.stream.subarray(i);return t.stream=new Uint8Array,n}var a="0 0 1"==t.stream.slice(0,3).join(" "),s="0 0 0 1"==t.stream.slice(0,4).join(" ");if(a||s){if(-1==i)i=r;else{if(e<=1){var o=t.stream.subarray(i,r);return t.stream=t.stream.subarray(r),o}e-=1}r+=3}}return!1},decodeSendPacket:function(e){var i=n._malloc(e.length);n.HEAP8.set(e,i);var r=n.cwrap("decodeSendPacket","number",["number","number","number"])(t.vcodecerPtr,i,e.length);return n._free(i),r},decodeRecvFrame:function(){return n.cwrap("decodeRecv","number",["number"])(t.vcodecerPtr)},playFrameYUV:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.cacheYuvBuf.vYuv();if(null==r)return t.noCacheFrame+=1,e&&!t.playParams.seekEvent&&t.loadCache(),!1;t.noCacheFrame=0;var n=r.pts;return t.videoPTS=n,(!e&&i||e)&&e&&t.drawImage(r.width,r.height,r.imageBufferY,r.imageBufferB,r.imageBufferR),e&&!t.playParams.seekEvent&&t.isPlaying&&t.loadCache(),!0},drawImage:function(e,i,r,n,a){if(t.canvas.width===e&&t.canvas.height==i||(t.canvas.width=e,t.canvas.height=i),t.showScreen&&null!=t.onRender)t.onRender(e,i,r,n,a);else{if(!t.isCheckDisplay)t.checkDisplaySize(e,i);var s=e*i,o=e/2*(i/2),f=new Uint8Array(s+2*o);f.set(r,0),f.set(n,s),f.set(a,s+o),l.renderFrame(t.yuv,r,n,a,e,i)}},debugYUV:function(e){t.debugYUVSwitch=!0,t.debugID=e},checkDisplaySize:function(e,i){var r=e/t.config.width>i/t.config.height,n=(t.config.width/e).toFixed(2),a=(t.config.height/i).toFixed(2),s=r?n:a,o=t.config.fixed,l=o?t.config.width:parseInt(e*s),f=o?t.config.height:parseInt(i*s);if(t.canvas.offsetWidth!=l||t.canvas.offsetHeight!=f){var u=parseInt((t.canvasBox.offsetHeight-f)/2),c=parseInt((t.canvasBox.offsetWidth-l)/2);t.canvas.style.marginTop=u+"px",t.canvas.style.marginLeft=c+"px",t.canvas.style.width=l+"px",t.canvas.style.height=f+"px"}return t.isCheckDisplay=!0,[l,f]},makeWasm:function(){if(null!=t.config.token){t.vcodecerPtr=n.cwrap("registerPlayer","number",["string","string"])(t.config.token,u.PLAYER_VERSION);var e=n.addFunction((function(e,i,r,a,s,l,f,u,c){var h=n.HEAPU8.subarray(e,e+a*u),d=n.HEAPU8.subarray(i,i+s*u/2),_=n.HEAPU8.subarray(r,r+l*u/2),p=new Uint8Array(h),m=new Uint8Array(d),b=new Uint8Array(_),v=1*c/1e3,y=new o.CacheYuvStruct(v,a,u,p,m,b);t.cacheYuvBuf.appendCacheByCacheYuv(y)}));n.cwrap("setCodecType","number",["number","number","number"])(t.vcodecerPtr,t.config.videoCodec,e);n.cwrap("initMissile","number",["number"])(t.vcodecerPtr);n.cwrap("initializeDecoder","number",["number"])(t.vcodecerPtr)}else alert("请输入TOKEN!Please set token param!")},makeIt:function(){var e=document.querySelector("div#"+t.config.playerId),i=document.createElement("canvas");i.style.width=e.clientWidth+"px",i.style.height=e.clientHeight+"px",i.style.top="0px",i.style.left="0px",e.appendChild(i),t.canvasBox=e,t.canvas=i,t.yuv=l.setupCanvas(i,{preserveDrawingBuffer:!1}),0==t.config.audioNone&&(t.audio=a({sampleRate:t.config.sampleRate,appendType:t.config.appendHevcType})),t.isPlayLoadingFinish=1}};return t.makeWasm(),t.makeIt(),t.cacheThread(),t}},{"../consts":198,"../render-engine/webgl-420p":219,"../version":222,"./audio-core":199,"./cache":203,"./cacheYuv":204,"./missile.js":1}],208:[function(e,t,i){"use strict";var r=e("./bufferFrame");t.exports=function(){var e={videoBuffer:[],audioBuffer:[],idrIdxBuffer:[],appendFrame:function(t,i){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=new r.BufferFrame(t,a,i,n),o=parseInt(t);return n?(e.videoBuffer.length-1>=o?e.videoBuffer[o].push(s):e.videoBuffer.push([s]),a&&!e.idrIdxBuffer.includes(t)&&e.idrIdxBuffer.push(t)):e.audioBuffer.length-1>=o&&null!=e.audioBuffer[o]&&null!=e.audioBuffer[o]?e.audioBuffer[o]&&e.audioBuffer[o].push(s):e.audioBuffer.push([s]),!0},appendFrameWithDts:function(t,i,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=r.ConstructWithDts(t,i,s,n,a),l=parseInt(i);return a?(e.videoBuffer.length-1>=l?e.videoBuffer[l].push(o):e.videoBuffer.push([o]),s&&!e.idrIdxBuffer.includes(i)&&e.idrIdxBuffer.push(i)):e.audioBuffer.length-1>=l&&null!=e.audioBuffer[l]&&null!=e.audioBuffer[l]?e.audioBuffer[l]&&e.audioBuffer[l].push(o):e.audioBuffer.push([o]),!0},appendFrameByBufferFrame:function(t){var i=t.pts,r=parseInt(i);return t.video?(e.videoBuffer.length-1>=r?e.videoBuffer[r].push(t):e.videoBuffer.push([t]),isKey&&!e.idrIdxBuffer.includes(i)&&e.idrIdxBuffer.push(i)):e.audioBuffer.length-1>=r?e.audioBuffer[r].push(t):e.audioBuffer.push([t]),!0},cleanPipeline:function(){e.videoBuffer.length=0,e.audioBuffer.length=0},vFrame:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(!(t<0||t>e.videoBuffer.length-1))return e.videoBuffer[t]},aFrame:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(!(t<0||t>e.audioBuffer.length-1))return e.audioBuffer[t]},seekIDR:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(e.idrIdxBuffer,t<0)return null;if(e.idrIdxBuffer.includes(t))return t;for(var i=0;it){for(var r=1;r>=0;r--){var n=i-r;if(n>=0)return e.idrIdxBuffer[n]}return e.idrIdxBuffer[i]}}};return e}},{"./bufferFrame":209}],209:[function(e,t,i){"use strict";function r(e,t){for(var i=0;i0&&i.extensionInfo.vHeight>0&&(i.size.width=i.extensionInfo.vWidth,i.size.height=i.extensionInfo.vHeight)),i.mediaInfo.duration,null!=i.onDemuxed&&i.onDemuxed(i.onReadyOBJ);for(var e=!1;;){var r=i.mpegTsObj.readPacket();if(r.size<=0)break;var n=r.dtime>0?r.dtime:r.ptime;if(!(n<0)){if(0==r.type){n<=i.vPreFramePTS&&(e=!0);var a=l.PACK_NALU(r.layer),o=1==r.keyframe,f=1==e?n+i.vStartTime:n,u=new s.BufferFrame(f,o,a,!0);i.bufObject.appendFrame(u.pts,u.data,!0,u.isKey),i.vPreFramePTS=f,null!=i.onSamples&&i.onSamples(i.onReadyOBJ,u)}else if(n<=i.aPreFramePTS&&(e=!0),"aac"==i.mediaInfo.aCodec)for(var c=r.data,h=0;h=3?(i._onTsReady(e),window.clearInterval(i.timerTsWasm),i.timerTsWasm=null):(i.mpegTsWasmRetryLoadTimes+=1,i.mpegTsObj.initDemuxer())}),3e3)}},{key:"_onTsReady",value:function(e){var t=this;t.hls.fetchM3u8(e),t.mpegTsWasmState=!0,t.timerFeed=window.setInterval((function(){if(t.tsList.length>0&&0==t.lockWait.state){var e=t.tsList.shift(),i=e.streamURI,r=e.streamDur;t.lockWait.state=!0,t.lockWait.lockMember.dur=r,t.mpegTsObj.demuxURL(i)}}),50)}},{key:"bindReady",value:function(e){this.onReadyOBJ=e}},{key:"popBuffer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return t<0?null:1==e?this.bufObject.vFrame(t):2==e?this.bufObject.aFrame(t):void 0}},{key:"getACodec",value:function(){return this.aCodec}},{key:"getDurationMs",value:function(){return this.durationMs}},{key:"getFPS",value:function(){return this.fps}},{key:"getSampleRate",value:function(){return this.sampleRate}},{key:"getSize",value:function(){return this.size}},{key:"seek",value:function(e){if(e>=0){var t=this.bufObject.seekIDR(e);this.seekPos=t}}}])&&r(t.prototype,i),u&&r(t,u),e}();i.M3u8=u},{"../consts":198,"../decoder/hevc-imp":206,"./buffer":208,"./bufferFrame":209,"./m3u8base":211,"./mpegts/mpeg.js":215}],211:[function(e,t,i){"use strict";function r(e,t){for(var i=0;i1?(i=t[0],r=t[1].split("/"),this._preURI=i+"//"):r=t[0].split("/");for(var n=0;nc&&(i=c);var h=t[s+=1],d=this._preURI+h;this._slices.indexOf(d)<0&&(this._slices.push(d),null!=this.onTransportStream&&this.onTransportStream(d,c))}}}if(this._slices.length>a.hlsSliceLimit&&this._type==n.PLAYER_IN_TYPE_M3U8_LIVE&&(this._slices=this._slices.slice(-1*a.hlsSliceLimit)),null!=this.onFinished){var _={type:this._type,duration:-1};this.onFinished(_)}return i}},{key:"_readTag",value:function(e){var t=a.tagParse.exec(e);return null!==t?{key:t[1],value:t[3]}:null}}])&&r(t.prototype,i),s&&r(t,s),e}();i.M3u8Base=s},{"../consts":198}],212:[function(e,t,i){"use strict";var r=e("mp4box"),n=e("../decoder/hevc-header"),a=e("../decoder/hevc-imp"),s=e("./buffer"),o=e("../consts"),l={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12,Reserved:13,"frequency is written explictly":15};function f(){}f.prototype.setStartCode=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=null;return t?((i=e)[0]=n.DEFINE_STARTCODE[0],i[1]=n.DEFINE_STARTCODE[1],i[2]=n.DEFINE_STARTCODE[2],i[3]=n.DEFINE_STARTCODE[3]):((i=new Uint8Array(n.DEFINE_STARTCODE.length+e.length)).set(n.DEFINE_STARTCODE,0),i.set(e,n.DEFINE_STARTCODE.length)),i},f.prototype.setAACAdts=function(e){var t=null,i=this.aacProfile,r=l[this.sampleRate],n=new Uint8Array(7),a=n.length+e.length;return n[0]=255,n[1]=241,n[2]=(i-1<<6)+(r<<2)+0,n[3]=128+(a>>11),n[4]=(2047&a)>>3,n[5]=31+((7&a)<<5),n[6]=252,(t=new Uint8Array(a)).set(n,0),t.set(e,n.length),t},f.prototype.demux=function(){var e=this;e.seekPos=-1,e.mp4boxfile=r.createFile(),e.movieInfo=null,e.videoCodec=null,e.durationMs=-1,e.fps=-1,e.sampleRate=-1,e.aacProfile=2,e.size={width:-1,height:-1},e.bufObject=s(),e.audioNone=!1,e.naluHeader={vps:null,sps:null,pps:null,sei:null},e.mp4boxfile.onError=function(e){},this.mp4boxfile.onReady=function(t){for(var i in e.movieInfo=t,t.tracks)"VideoHandler"!==t.tracks[i].name&&"video"!==t.tracks[i].type||(t.tracks[i].codec,t.tracks[i].codec.indexOf("hev")>=0||t.tracks[i].codec.indexOf("hvc")>=0?e.videoCodec=o.CODEC_H265:t.tracks[i].codec.indexOf("avc")>=0&&(e.videoCodec=o.CODEC_H264));var r=-1;if(r=t.videoTracks[0].samples_duration/t.videoTracks[0].timescale,e.durationMs=1e3*r,e.fps=t.videoTracks[0].nb_samples/r,e.seekDiffTime=1/e.fps,e.size.width=t.videoTracks[0].track_width,e.size.height=t.videoTracks[0].track_height,t.audioTracks.length>0){e.sampleRate=t.audioTracks[0].audio.sample_rate;var n=t.audioTracks[0].codec.split(".");e.aacProfile=n[n.length-1]}else e.audioNone=!0;null!=e.onMp4BoxReady&&e.onMp4BoxReady(e.videoCodec),e.videoCodec===o.CODEC_H265?(e.initializeAllSourceBuffers(),e.mp4boxfile.start()):(e.videoCodec,o.CODEC_H264)},e.mp4boxfile.onSamples=function(t,i,r){var s=window.setInterval((function(){for(var i=0;i3?e.naluHeader.sei=e.setStartCode(p[3][0].data,!1):e.naluHeader.sei=new Uint8Array,e.naluHeader}else e.videoCodec==o.CODEC_H264&&(e.naluHeader.vps=new Uint8Array,e.naluHeader.sps=e.setStartCode(h.SPS[0].nalu,!1),e.naluHeader.pps=e.setStartCode(h.PPS[0].nalu,!1),e.naluHeader.sei=new Uint8Array);if(f[4],e.naluHeader.vps[4],e.naluHeader.vps,f[4]===e.naluHeader.vps[4])f[4],e.naluHeader.vps[4],e.naluHeader.vps,f=f.subarray(e.naluHeader.vps.length+e.naluHeader.sps.length+e.naluHeader.pps.length+e.naluHeader.sei.length);else if(e.naluHeader.sei.length>4&&f[4]===e.naluHeader.sei[4]){var m=f.subarray(0,10),b=new Uint8Array(e.naluHeader.vps.length+m.length);b.set(m,0),b.set(e.naluHeader.vps,m.length),b[3]=1,e.naluHeader.vps=null,e.naluHeader.vps=new Uint8Array(b),b=null,m=null,(f=f.subarray(10))[4],e.naluHeader.vps[4],e.naluHeader.vps}else if(0===e.naluHeader.sei.length&&78===f[4]){f=e.setStartCode(f,!0);for(var v=0,y=0;y1&&void 0!==arguments[1]?arguments[1]:0;return e.fileStart=t,this.mp4boxfile.appendBuffer(e)},f.prototype.finishBuffer=function(){this.mp4boxfile.flush()},f.prototype.play=function(){},f.prototype.getVideoCoder=function(){return this.videoCodec},f.prototype.getDurationMs=function(){return this.durationMs},f.prototype.getFPS=function(){return this.fps},f.prototype.getSampleRate=function(){return this.sampleRate},f.prototype.getSize=function(){return this.size},f.prototype.seek=function(e){if(e>=0){var t=this.bufObject.seekIDR(e);this.seekPos=t}},f.prototype.popBuffer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return t<0?null:1==e?this.bufObject.vFrame(t):2==e?this.bufObject.aFrame(t):void 0},f.prototype.addBuffer=function(e){var t=e.id;this.mp4boxfile.setExtractionOptions(t)},f.prototype.initializeAllSourceBuffers=function(){if(this.movieInfo){for(var e=this.movieInfo,t=0;t>5)}},{key:"sliceAACFrames",value:function(e,t){for(var i=[],r=e,n=0;n>4==15){var a=this._getPktLen(t[n+3],t[n+4],t[n+5]);if(a<=0)continue;var s=t.subarray(n,n+a),o=new Uint8Array(a);o.set(s,0),i.push({ptime:r,data:o}),r+=this.frameDurSec,n+=a}else n+=1;return i}}])&&r(t.prototype,i),n&&r(t,n),e}();i.AACDecoder=n},{}],215:[function(e,t,i){(function(t){"use strict";function r(e,t){for(var i=0;i=0&&(this._setMediaInfo(),this._setExtensionInfo(),null!=this.onDemuxed&&this.onDemuxed())}},{key:"_setMediaInfo",value:function(){var e=n.cwrap("getMediaInfo","number",[])(),t=n.HEAPU32[e/4],i=n.HEAPU32[e/4+1],r=n.HEAPF64[e/8+1],o=n.HEAPF64[e/8+1+1],l=n.HEAPF64[e/8+1+1+1],f=n.HEAPF64[e/8+1+1+1+1],u=n.HEAPU32[e/4+2+2+2+2+2];this.mediaAttr.vFps=r,this.mediaAttr.vGop=u,this.mediaAttr.vDuration=o,this.mediaAttr.aDuration=l,this.mediaAttr.duration=f;var c=n.cwrap("getAudioCodecID","number",[])();c>=0?(this.mediaAttr.aCodec=s.CODEC_OFFSET_TABLE[c],this.mediaAttr.sampleRate=t>0?t:s.DEFAULT_SAMPLERATE,this.mediaAttr.sampleChannel=i>0?i:s.DEFAULT_CHANNEL):(this.mediaAttr.sampleRate=0,this.mediaAttr.sampleChannel=0);var h=n.cwrap("getVideoCodecID","number",[])();h>=0&&(this.mediaAttr.vCodec=s.CODEC_OFFSET_TABLE[h]),null==this.aacDec?this.aacDec=new a.AACDecoder(this.mediaAttr):this.aacDec.updateConfig(this.mediaAttr)}},{key:"_setExtensionInfo",value:function(){var e=n.cwrap("getExtensionInfo","number",[])(),t=n.HEAPU32[e/4],i=n.HEAPU32[e/4+1];this.extensionInfo.vWidth=t,this.extensionInfo.vHeight=i}},{key:"readMediaInfo",value:function(){return this.mediaAttr}},{key:"readExtensionInfo",value:function(){return this.extensionInfo}},{key:"_readLayer",value:function(){var e={vps:null,sps:null,pps:null,sei:null},t={vlc:null},i=n.cwrap("getSPSLen","number",[])(),r=n.cwrap("getSPS","number",[])();e.sps=new Uint8Array(i),e.sps.set(n.HEAPU8.subarray(r,r+i),0);var a=n.cwrap("getPPSLen","number",[])(),o=n.cwrap("getPPS","number",[])();e.pps=new Uint8Array(a),e.pps.set(n.HEAPU8.subarray(o,o+a),0);var l=n.cwrap("getSEILen","number",[])(),f=n.cwrap("getSEI","number",[])();e.sei=new Uint8Array(l),e.sei.set(n.HEAPU8.subarray(f,f+l),0);var u=n.cwrap("getVLCLen","number",[])(),c=n.cwrap("getVLC","number",[])();if(t.vlc=new Uint8Array(u),t.vlc.set(n.HEAPU8.subarray(c,c+u),0),this.mediaAttr.vCodec==s.DEF_HEVC||this.mediaAttr.vCodec==s.DEF_H265){var h=n.cwrap("getVPSLen","number",[])(),d=n.cwrap("getVPS","number",[])();e.vps=new Uint8Array(h),e.vps.set(n.HEAPU8.subarray(d,d+h),0)}else this.mediaAttr.vCodec==s.DEF_AVC||(this.mediaAttr.vCodec,s.DEF_H264);return{nalu:e,vlc:t}}},{key:"readPacket",value:function(){var e=n.cwrap("getPacket","number",[])(),t=n.HEAPU32[e/4],i=n.HEAPU32[e/4+1],r=n.HEAPF64[e/8+1],a=n.HEAPF64[e/8+1+1],o=n.HEAPU32[e/4+1+1+2+2],l=n.HEAPU32[e/4+1+1+2+2+1],f=n.HEAPU8.subarray(l,l+i),u=this._readLayer();return{type:t,size:i,ptime:r,dtime:a,keyframe:o,src:f,data:1==t&&this.mediaAttr.aCodec==s.DEF_AAC?this.aacDec.sliceAACFrames(r,f):f,layer:u}}},{key:"_refreshDemuxer",value:function(){this._releaseDemuxer(),this._initDemuxer()}},{key:"_initDemuxer",value:function(){n.cwrap("initTsMissile","number",[])(),n.cwrap("initializeDemuxer","number",[])()}},{key:"_releaseDemuxer",value:function(){n.cwrap("exitTsMissile","number",[])()}}])&&r(i.prototype,o),l&&r(i,l),e}();i.MPEG_JS=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../decoder/missile.js":1,"./consts":213,"./decoder/aac":214}],216:[function(e,t,i){"use strict";function r(e,t){for(var i=0;i0&&e.extensionInfo.vHeight>0&&(e.size.width=e.extensionInfo.vWidth,e.size.height=e.extensionInfo.vHeight);for(var t=null;!((t=e.mpegTsObj.readPacket()).size<=0);){var i=t.dtime;if(0==t.type){var r=s.PACK_NALU(t.layer),n=1==t.keyframe;e.bufObject.appendFrame(i,r,!0,n)}else if("aac"==e.mediaInfo.aCodec)for(var a=t.data,o=0;o0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return t<0?null:1==e?this.bufObject.vFrame(t):2==e?this.bufObject.aFrame(t):void 0}},{key:"getACodec",value:function(){return this.aCodec}},{key:"getDurationMs",value:function(){return this.durationMs}},{key:"getFPS",value:function(){return this.fps}},{key:"getSampleRate",value:function(){return this.sampleRate}},{key:"getSize",value:function(){return this.size}},{key:"seek",value:function(e){if(e>=0){var t=this.bufObject.seekIDR(e);this.seekPos=t}}}])&&r(t.prototype,i),o&&r(t,o),e}();i.MpegTs=o},{"../decoder/hevc-imp":206,"./buffer":208,"./mpegts/mpeg.js":215}],217:[function(e,t,i){(function(t){"use strict";function r(e,t){for(var i=0;i0&&void 0!==arguments[0]&&arguments[0];this.player.setScreen(e)}},{key:"play",value:function(){if(this.playParam.videoCodec===u.CODEC_H265){var e={seekPos:this._getSeekTarget(),mode:this.playMode,accurateSeek:this.configFormat.accurateSeek,seekEvent:!1,realPlay:!0};this.player.play(e)}else this.player.play();return!0}},{key:"pause",value:function(){return this.player.pause(),!0}},{key:"isPlaying",value:function(){return this.player.isPlayingState()}},{key:"setVoice",value:function(e){if(e<0)return!1;this.player.setVoice(e)}},{key:"mediaInfo",value:function(){return{meta:this.playParam,videoType:this.playMode}}},{key:"seek",value:function(e){var t=this;this.seekTarget=e,this.onSeekStart&&this.onSeekStart(e),this.timerFeed&&(window.clearInterval(this.timerFeed),this.timerFeed=null);var i=this._getSeekTarget();return this.playParam.videoCodec===u.CODEC_H264&&this.configFormat.type==u.PLAYER_IN_TYPE_MP4?(this.player.seek(e),this.onSeekFinish&&this.onSeekFinish()):this.configFormat.extInfo.core===u.PLAYER_CORE_TYPE_CNATIVE?this.player.seek((function(){}),{seekTime:i,mode:t.playMode,accurateSeek:t.configFormat.accurateSeek}):this.player.seek((function(){t.configFormat.type==u.PLAYER_IN_TYPE_MP4?t.mp4Obj.seek(e):t.configFormat.type==u.PLAYER_IN_TYPE_TS||t.configFormat.type==u.PLAYER_IN_TYPE_MPEGTS?t.mpegTsObj.seek(e):t.configFormat.type==u.PLAYER_IN_TYPE_M3U8&&t.hlsObj.seek(e);var i,r=(i=0,i=t.configFormat.accurateSeek?e:t._getBoxBufSeekIDR(),parseInt(i)),n=parseInt(t._getBoxBufSeekIDR())||0;t._avFeedMP4Data(n,r)}),{seekTime:i,mode:t.playMode,accurateSeek:t.configFormat.accurateSeek}),!0}},{key:"_durationText",value:function(e){if(e<0)return"Play";var t=Math.round(e);return Math.floor(t/3600)+":"+Math.floor(t%3600/60)+":"+Math.floor(t%60)}},{key:"_getSeekTarget",value:function(){return this.configFormat.accurateSeek?this.seekTarget:this._getBoxBufSeekIDR()}},{key:"_getBoxBufSeekIDR",value:function(){return this.configFormat.type==u.PLAYER_IN_TYPE_MP4?this.mp4Obj.seekPos:this.configFormat.type==u.PLAYER_IN_TYPE_TS||this.configFormat.type==u.PLAYER_IN_TYPE_MPEGTS?this.mpegTsObj.seekPos:this.configFormat.type==u.PLAYER_IN_TYPE_M3U8?this.hlsObj.seekPos:void 0}},{key:"_playControl",value:function(){this.isPlaying()?this.pause():this.play()}},{key:"_avFeedMP4Data",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=parseInt(this.playParam.durationMs/1e3);this.timerFeed=window.setInterval((function(){var a=null,s=null;if(e.configFormat.type==u.PLAYER_IN_TYPE_MP4?(a=e.mp4Obj.popBuffer(1,t),s=e.mp4Obj.audioNone?null:e.mp4Obj.popBuffer(2,i)):e.configFormat.type==u.PLAYER_IN_TYPE_TS||e.configFormat.type==u.PLAYER_IN_TYPE_MPEGTS?(a=e.mpegTsObj.popBuffer(1,t),s=e.mpegTsObj.audioNone?null:e.mpegTsObj.popBuffer(2,i)):e.configFormat.type==u.PLAYER_IN_TYPE_M3U8&&(a=e.hlsObj.popBuffer(1,t),s=e.hlsObj.audioNone?null:e.hlsObj.popBuffer(2,i)),null!=a)for(var o=0;on||e.player.getCachePTS()>n)return window.clearInterval(e.timerFeed),e.timerFeed=null,void(null!=r&&r())}),5)}},{key:"_makeMP4Player",value:function(){this.configFormat.type,null!=this.configFormat.extInfo.core&&null!==this.configFormat.extInfo.core&&this.configFormat.extInfo.core===u.PLAYER_CORE_TYPE_CNATIVE?this._cDemuxDecoderEntry():this.configFormat.type==u.PLAYER_IN_TYPE_MP4?this.configFormat.extInfo.moovStartFlag?this._mp4EntryVodStream():this._mp4Entry():this.configFormat.type==u.PLAYER_IN_TYPE_TS||this.configFormat.type==u.PLAYER_IN_TYPE_MPEGTS?this._mpegTsEntry():this.configFormat.type==u.PLAYER_IN_TYPE_M3U8?this._m3u8Entry():this.configFormat.type===u.PLAYER_IN_TYPE_RAW_265&&this._raw265Entry()}},{key:"_makeMP4PlayerViewEvent",value:function(e,t,i,r){var a=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,l=this;if(this.playParam.durationMs=e,this.playParam.fps=t,this.playParam.sampleRate=i,this.playParam.size=r,this.playParam.audioNone=s,this.playParam.videoCodec=o||u.CODEC_H265,(this.configFormat.type==u.PLAYER_IN_TYPE_M3U8&&this.hlsConf.hlsType==u.PLAYER_IN_TYPE_M3U8_LIVE||this.configFormat.type==u.PLAYER_IN_TYPE_RAW_265)&&(this.playMode=u.PLAYER_MODE_NOTIME_LIVE),l.configFormat.extInfo.autoCrop){var f=document.querySelector("#"+this.configFormat.playerId),c=r.width/r.height,h=this.configFormat.playerW/this.configFormat.playerH;c>h?f.style.height=this.configFormat.playerW/c+"px":c>1,a>>1,i),e.v.fill(n>>1,a>>1,r),e.drawArrays(e.TRIANGLE_STRIP,0,4)},setupCanvas:function(e,t){var i=e.getContext("webgl")||e.getContext("experimental-webgl");if(!i)return i;var n=i.createProgram(),a=["attribute highp vec4 aVertexPosition;","attribute vec2 aTextureCoord;","varying highp vec2 vTextureCoord;","void main(void) {"," gl_Position = aVertexPosition;"," vTextureCoord = aTextureCoord;","}"].join("\n"),s=i.createShader(i.VERTEX_SHADER);i.shaderSource(s,a),i.compileShader(s);var o=["precision highp float;","varying lowp vec2 vTextureCoord;","uniform sampler2D YTexture;","uniform sampler2D UTexture;","uniform sampler2D VTexture;","const mat4 YUV2RGB = mat4","("," 1.1643828125, 0, 1.59602734375, -.87078515625,"," 1.1643828125, -.39176171875, -.81296875, .52959375,"," 1.1643828125, 2.017234375, 0, -1.081390625,"," 0, 0, 0, 1",");","void main(void) {"," gl_FragColor = vec4( texture2D(YTexture, vTextureCoord).x, texture2D(UTexture, vTextureCoord).x, texture2D(VTexture, vTextureCoord).x, 1) * YUV2RGB;","}"].join("\n"),l=i.createShader(i.FRAGMENT_SHADER);i.shaderSource(l,o),i.compileShader(l),i.attachShader(n,s),i.attachShader(n,l),i.linkProgram(n),i.useProgram(n),i.getProgramParameter(n,i.LINK_STATUS);var f=i.getAttribLocation(n,"aVertexPosition");i.enableVertexAttribArray(f);var u=i.getAttribLocation(n,"aTextureCoord");i.enableVertexAttribArray(u);var c=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,c),i.bufferData(i.ARRAY_BUFFER,new Float32Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0]),i.STATIC_DRAW),i.vertexAttribPointer(f,3,i.FLOAT,!1,0,0);var h=i.createBuffer();return i.bindBuffer(i.ARRAY_BUFFER,h),i.bufferData(i.ARRAY_BUFFER,new Float32Array([1,0,0,0,1,1,0,1]),i.STATIC_DRAW),i.vertexAttribPointer(u,2,i.FLOAT,!1,0,0),i.y=new r(i),i.u=new r(i),i.v=new r(i),i.y.bind(0,n,"YTexture"),i.u.bind(1,n,"UTexture"),i.v.bind(2,n,"VTexture"),i}}},{}],220:[function(e,t,i){(function(e){"use strict";e.STATIC_MEM_wasmDecoderState=-1,e.STATICE_MEM_playerCount=-1,e.STATICE_MEM_playerIndexPtr=0}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],221:[function(e,t,i){"use strict";function r(e,t){for(var i=0;i u && (i = u); - var c = t[r += 1], - h = this._preURI + c; - this._slices.indexOf(h) < 0 && (this._slices.push(h), null != this.onTransportStream && this.onTransportStream(h, u)); + var u = a.segmentParse.exec(o); + + if (null != u) { + var c = u[1]; + this.duration += parseFloat(u[1]), i > c && (i = c); + var h = t[s += 1], + d = this._preURI + h; + this._slices.indexOf(d) < 0 && (this._slices.push(d), null != this.onTransportStream && this.onTransportStream(d, c)); } } } if (this._slices.length > a.hlsSliceLimit && this._type == n.PLAYER_IN_TYPE_M3U8_LIVE && (this._slices = this._slices.slice(-1 * a.hlsSliceLimit)), null != this.onFinished) { - var d = { + var _ = { type: this._type, duration: -1 }; - this.onFinished(d); + this.onFinished(_); } return i; @@ -25017,7 +25030,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } -require('./h265webjs-v20210427'); +require('./h265webjs-v20210515'); var h265webjs = /*#__PURE__*/ @@ -25045,7 +25058,7 @@ function () { exports["default"] = h265webjs; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./h265webjs-v20210427":1}],3:[function(require,module,exports){ +},{"./h265webjs-v20210515":1}],3:[function(require,module,exports){ "use strict"; Object.defineProperty(exports, "__esModule", { @@ -25495,7 +25508,11 @@ global.makeH265webjs = function (videoURL, config) { } else { progressPts.hidden = true; cachePts.hidden = true; - ptsLabel.textContent = '0:0:0/LIVE'; + ptsLabel.textContent = 'LIVE'; + setTimeout(function () { + playBar.textContent = '||'; + h265webjs.play(); + }, 1000); } showLabel.textContent = SHOW_DONE; @@ -25511,7 +25528,7 @@ global.makeH265webjs = function (videoURL, config) { progressPts.value = videoPTS; ptsLabel.textContent = durationText(videoPTS) + '/' + durationText(progressPts.max); } else { - ptsLabel.textContent = durationText(videoPTS) + '/LIVE'; + ptsLabel.textContent = 'LIVE'; } }; diff --git a/play.js b/play.js index 64fed8ed..32ada657 100644 --- a/play.js +++ b/play.js @@ -130,7 +130,11 @@ global.makeH265webjs = (videoURL, config) => { } else { progressPts.hidden = true; cachePts.hidden = true; - ptsLabel.textContent = '0:0:0/LIVE'; + ptsLabel.textContent = 'LIVE'; + setTimeout(() => { + playBar.textContent = '||'; + h265webjs.play(); + }, 1000); } showLabel.textContent = SHOW_DONE; @@ -146,7 +150,7 @@ global.makeH265webjs = (videoURL, config) => { progressPts.value = videoPTS; ptsLabel.textContent = durationText(videoPTS) + '/' + durationText(progressPts.max); } else { - ptsLabel.textContent = durationText(videoPTS) + '/LIVE'; + ptsLabel.textContent = 'LIVE'; } };