@theoplayer/extended 6.13.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/THEOplayer.chromeless.d.ts +2 -2
- package/THEOplayer.chromeless.esm.js +2 -2
- package/THEOplayer.chromeless.js +3 -3
- package/THEOplayer.common.d.ts +134 -6
- package/THEOplayer.common.esm.js +3 -3
- package/THEOplayer.d.ts +2 -2
- package/THEOplayer.esm.js +3 -3
- package/THEOplayer.js +3 -3
- package/THEOplayer.transmux.asmjs.js +3 -3
- package/THEOplayer.transmux.js +3 -3
- package/package.json +1 -1
- package/theoplayer.d.js +3 -3
package/THEOplayer.transmux.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
THEOplayer is based on patented technology developed by
|
|
25
25
|
THEO Technologies (https://www.theoplayer.com).
|
|
26
26
|
|
|
27
|
-
Version:
|
|
28
|
-
Created: 2024-
|
|
27
|
+
Version: 7.0.0
|
|
28
|
+
Created: 2024-04-03T16:23:34.188Z
|
|
29
29
|
*/
|
|
30
|
-
!function(n){"use strict";var t=n.window,r=n.document,i=n.location,e=n.navigator,u=n.setTimeout,o=n.clearTimeout,f=n.setInterval,s=n.clearInterval,c=n.Error,a=n.TypeError,h=(n.SyntaxError,n.Object),l=n.Math,v=n.parseInt,y=n.parseFloat,_=n.isNaN,d=n.Uint8Array,w=(n.Worker,n.WorkerGlobalScope,n.XMLHttpRequest);var I=u;function E(n){return Boolean(n&&void 0!==n.length)}function p(){}function g(n){if(!(this instanceof g))throw new a("Promises must be constructed via new");if("function"!=typeof n)throw new a("not a function");this.Pa=0,this.N3t=!1,this.Zat=void 0,this.D3t=[],b(n,this)}function R(n,t){for(;3===n.Pa;)n=n.Zat;0!==n.Pa?(n.N3t=!0,g.O3t((function(){var r=1===n.Pa?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.Zat)}catch(n){return void O(t.promise,n)}S(t.promise,i)}else(1===n.Pa?S:O)(t.promise,n.Zat)}))):n.D3t.push(t)}function S(n,t){try{if(t===n)throw new a("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof g)return n.Pa=3,n.Zat=t,void T(n);if("function"==typeof r)return void b(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.Pa=1,n.Zat=t,T(n)}catch(t){O(n,t)}}function O(n,t){n.Pa=2,n.Zat=t,T(n)}function T(n){2===n.Pa&&0===n.D3t.length&&g.O3t((function(){n.N3t||g.B3t(n.Zat)}));for(var t=0,r=n.D3t.length;t<r;t++)R(n,n.D3t[t]);n.D3t=null}function k(n,t,r){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function b(n,t){var r=!1;try{n((function(n){r||(r=!0,S(t,n))}),(function(n){r||(r=!0,O(t,n))}))}catch(n){if(r)return;r=!0,O(t,n)}}g.prototype.catch=function(n){return this.then(null,n)},g.prototype.then=function(n,t){var r=new this.constructor(p);return R(this,new k(n,t,r)),r},g.prototype.finally=function(n){var t=this.constructor;return this.then((function(r){return t.resolve(n()).then((function(){return r}))}),(function(r){return t.resolve(n()).then((function(){return t.reject(r)}))}))},g.all=function(n){return new g((function(t,r){if(!E(n))return r(new a("Promise.all accepts an array"));var i=Array.prototype.slice.call(n);if(0===i.length)return t([]);var e=i.length;function u(n,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var f=o.then;if("function"==typeof f)return void f.call(o,(function(t){u(n,t)}),r)}i[n]=o,0==--e&&t(i)}catch(n){r(n)}}for(var o=0;o<i.length;o++)u(o,i[o])}))},g.allSettled=function(n){return new this((function(t,r){if(!n||void 0===n.length)return r(new a((void 0===n?"undefined":function(n){return n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n}(n))+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(n);if(0===i.length)return t([]);var e=i.length;function u(n,r){if(r&&("object"==typeof r||"function"==typeof r)){var o=r.then;if("function"==typeof o)return void o.call(r,(function(t){u(n,t)}),(function(r){i[n]={status:"rejected",reason:r},0==--e&&t(i)}))}i[n]={status:"fulfilled",value:r},0==--e&&t(i)}for(var o=0;o<i.length;o++)u(o,i[o])}))},g.resolve=function(n){return n&&"object"==typeof n&&n.constructor===g?n:new g((function(t){t(n)}))},g.reject=function(n){return new g((function(t,r){r(n)}))},g.race=function(n){return new g((function(t,r){if(!E(n))return r(new a("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)g.resolve(n[i]).then(t,r)}))},g.O3t="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){I(n,0)},g.B3t=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};var m=function(){var n=self.Promise;if(void 0!==n)try{if(-1!==n.toString().indexOf("[native code]"))return n}catch(n){}}(),A=e?e.userAgent:"",N=A.match(/Firefox\/([0-9]+)/i),C=null!=N,D=N?Number(N[1]):0,P=A.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),F=null!=P,L=P?Number(P[3]):0,U=function(){function n(n){this.zC=0,this.ud=0,this.Ox=[],this.L3t=n}return n.prototype.M3t=function(n){var t=this.length();this.U3t(t+1);var r=this.ud+t&this.L3t-1;this.Ox[r]=n,this.zC=t+1},n.prototype.push=function(n){var t=this.length()+1;if(this.L3t<t)this.M3t(n);else{var r=this.ud+t-1,i=this.L3t-1;this.Ox[r&i]=n,this.zC=t}},n.prototype.shift=function(){var n=this.ud,t=this.Ox[n];return this.Ox[n]=void 0,this.ud=n+1&this.L3t-1,this.zC--,t},n.prototype.length=function(){return this.zC},n.prototype.U3t=function(n){this.L3t<n&&this.F3t(this.L3t<<1)},n.prototype.F3t=function(n){var t=this.L3t;this.L3t=n;var r=this.ud+this.zC&t-1;!function(n,t,r,i){for(var e=0;e<i;++e)n[e+r]=n[e+t],n[e+t]=void 0}(this.Ox,0,t,r)},n}();var M="unhandledrejection",W=self.PromiseRejectionEvent,V=self.CustomEvent;function B(n){return new W(M,{reason:n,promise:m.reject(n).catch((function(){})),cancelable:!0})}function x(n){var t=new V(M,{detail:{reason:n},cancelable:!0});return h.defineProperty(t,"reason",{value:n}),t}function H(n){var t=r.createEvent("CustomEvent");return t.initCustomEvent(M,!1,!0,{reason:n}),t}var G,j,K,q,z,X,$,Z,Y,J=function(n){return J=function(){try{var n=m.resolve(),t="error",r=new W(M,{reason:t,promise:n});return M===r.type&&t===r.reason}catch(n){}return!1}()?B:function(){try{var n="error",t=new V(M,{detail:{reason:n}});return M===t.type&&n===t.detail.reason}catch(n){}return!1}()?x:H,J(n)};function Q(n,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),h.defineProperty(n,i.key,i)}}function nn(n,t,r){return t&&Q(n.prototype,t),r&&Q(n,r),n}function tn(n,t){return tn=h.setPrototypeOf||function(n,t){return n.__proto__=t,n},tn(n,t)}function rn(n,t){if("function"!=typeof t&&null!==t)throw new a("Super expression must either be null or a function");n.prototype=h.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&tn(n,t)}function en(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=n[r];return i}function un(n,t){if(n){if("string"==typeof n)return en(n,t);var r=h.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?en(n,t):void 0}}function on(n){return function(n){if(Array.isArray(n))return en(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||un(n)||function(){throw new a("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}m&&!(C&&D<60||F&&L<15)?j=m:(j=g,$=null!==(G=function(){var n=self.queueMicrotask;if("function"==typeof n)return function(t){return n(t)};var t=m;if(t&&"function"==typeof t.resolve){var r=t.resolve();return function(n){return r.then(n)}}}())&&void 0!==G?G:g.O3t,K=$,q=new U(16),z=!1,(Z={m$:function(n){q.push(n),z||(z=!0,K(X))},TV:X=function(){for(;q.length()>0;)q.shift()();z=!1}}).TV,g.O3t=Z.m$,g.B3t=function(n){try{var t=J(n);if(!self.dispatchEvent(t)||t.defaultPrevented)return}catch(n){}u((function(){throw new c("Unhandled promise rejection: ".concat(n))}),0)}),function(n){n.yP="web",n.AP="android",n.bP="android-tv",n.TP="ios",n.SP="tvos",n.kP="chromecast",n.EP="theoliveweb"}(Y||(Y={}));var fn=e?e.userAgent:"",sn=fn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),cn=fn.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),an=fn.match(/Android ([0-9\.]+)/i),hn=fn.match(/Windows NT ([0-9\.]+)/i),ln=fn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),vn=fn.match(/Firefox\/([0-9\.]+)/i),yn=fn.match(/OPR\/(\d+\.\d+)/i),_n=fn.match(/Tizen ([0-9\.]+)/i),dn=fn.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),wn=function(){function n(){this.IP=Boolean("ontouchstart"in self||self.DocumentTouch&&r instanceof self.DocumentTouch||e&&e.msMaxTouchPoints),this.RP=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(fn)||/(macintosh|mac(?=_powerpc)\s)/i.test(fn),this.xP=/Windows NT/i.test(fn),this.NP=hn?y(hn[1]):0,this.LP=/Android/i.test(fn),this.OP=an?y(an[1]):0,this.UP=/windows phone (8|8\.1)/i.test(fn),this.VP=/iPhone/i.test(fn),this.qP=/iPad/i.test(fn),this.XP=this.RP&&this.IP&&!this.qP,this.QP=/iPod/i.test(fn),this.iR=/Mobile Safari/i.test(fn),this.$P=/EOS\d*STB/i.test(fn),this.tR=/APP\d*STB/i.test(fn),this.jP=(this.VP||this.qP||this.XP||this.QP)&&!this.UP,this.ZP=dn?y(dn[2]):0,this.sR=this.UP||this.jP||this.LP||this.iR,this.rR=/CriOS/i.test(fn),this.oR=Boolean(self.chrome&&/google/i.test(e.vendor))||this.rR,this.lR=this.oR&&/Edg\//i.test(e.userAgent),this.fR=cn?v(cn[1],10):0,this.cC=Boolean(self.chrome||/Chrome/i.test(fn)||/CriOS/i.test(fn)),this.uR=sn?v(sn[1],10):0,this.gR=/SMART-TV.*Tizen/i.test(fn),this.wR=_n?y(_n[1]):0,this.pR=/webos|web0s/i.test(fn),this.AR=/VIZIO/i.test(fn),this.SR=/Edge\/\d+/i.test(fn),this.ER=/Trident/i.test(fn),this.PR=this.ER&&!self.ActiveXObject&&"ActiveXObject"in self,this.xR=/Vivaldi/i.test(fn),this.NR=/Firefox/i.test(fn)&&!/Seamonkey/i.test(fn),this.MR=vn?y(vn[1]):0,this.FR=/Safari/i.test(fn)&&!/Chrome/i.test(fn)&&!this.UP&&!this.gR,this.HR=ln?y(ln[2]):0,this.qR=Boolean(yn),this.XR=yn?y(yn[1]):0,this.QR=/CrKey/.test(fn),this.jR=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(fn),this.JR="web"===Y.bP,this.tC="web"===Y.AP,this.iC=this.tC||this.JR,this.nC="web"===Y.TP,this.hC="web"===Y.SP,this.aC="web"===Y.kP}return nn(n,[{key:"Ye",get:function(){return this.IP}},{key:"PP",get:function(){return this.RP}},{key:"CP",get:function(){return this.xP}},{key:"DP",get:function(){return this.NP}},{key:"BP",get:function(){return this.LP}},{key:"MP",get:function(){return this.OP}},{key:"FP",get:function(){return this.UP}},{key:"HP",get:function(){return this.VP}},{key:"WP",get:function(){return this.qP}},{key:"zP",get:function(){return this.XP}},{key:"GP",get:function(){return this.QP}},{key:"KP",get:function(){return this.jP}},{key:"YP",get:function(){return this.ZP}},{key:"JP",get:function(){return this.$P||this.tR}},{key:"eR",get:function(){return this.iR}},{key:"Ks",get:function(){return this.sR}},{key:"nR",get:function(){return this.rR}},{key:"hR",get:function(){return this.oR}},{key:"aR",get:function(){return this.uR}},{key:"cR",get:function(){return this.lR}},{key:"dR",get:function(){return this.fR}},{key:"_R",get:function(){return this.gR}},{key:"vR",get:function(){return this.wR}},{key:"mR",get:function(){return this.pR}},{key:"yR",get:function(){return this.AR}},{key:"bR",get:function(){return this.SR}},{key:"kR",get:function(){return this.ER}},{key:"IR",get:function(){return this.PR}},{key:"RR",get:function(){return this.xR}},{key:"DR",get:function(){return this.NR}},{key:"LR",get:function(){return this.MR}},{key:"OR",get:function(){return this.FR}},{key:"UR",get:function(){return this.HR}},{key:"WR",get:function(){return this.qR}},{key:"zR",get:function(){return this.XR}},{key:"GR",get:function(){return this.QR}},{key:"KR",get:function(){return this.jR}},{key:"YR",get:function(){return!(!this.mR&&!this._R)&&this.aR<=56}},{key:"ZR",get:function(){return this.JR}},{key:"$R",get:function(){return this.tC}},{key:"eC",get:function(){return this.iC}},{key:"sC",get:function(){return this.nC}},{key:"rC",get:function(){return this.hC}},{key:"oC",get:function(){return this.aC}},{key:"uC",get:function(){return this.cC}}]),n}();wn.lC=new wn;var In=wn.lC,En={}.toString;function pn(n){return null!=n}Array.isArray;function gn(n){return"object"==typeof n&&null!==n}function Rn(n){return function(n){return"function"==typeof n}(n)||gn(n)}var Sn=function(){},On=!(In.kR&&!In.IR),Tn=self.console;function kn(n){if(gn(n))try{return JSON.stringify(n)}catch(n){}return n}function bn(n){return n.map(kn).join(" ")}function mn(n){var t=Tn&&Tn[n];return t?t.bind&&On?t.bind(Tn):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];Tn[n](bn(r))}:void 0}var An=mn("log")||Sn,Nn=mn("warn")||An.bind(void 0,"WARNING:"),Cn=mn("error")||An.bind(void 0,"ERROR:"),Dn=function(){var n=Tn&&Tn.assert;return n?n.bind&&On?n.bind(Tn):function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];Tn.assert(n,bn(r))}:function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n||Cn.apply(void 0,["Assertion failed:"].concat(on(r)))}}(),Pn=null;try{Pn=new WebAssembly.Instance(new WebAssembly.Module(new d([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(K){}function Fn(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function Ln(n){return!0===(n&&n.Py)}function Un(n){var t=l.clz32(n&-n);return n?31-t:t}Fn.prototype.Py,h.defineProperty(Fn.prototype,"Py",{value:!0}),Fn.isLong=Ln;var Mn={},Wn={};function Vn(n,t){var r,i,e;return t?(e=0<=(n>>>=0)&&n<256)&&(i=Wn[n])?i:(r=xn(n,0,!0),e&&(Wn[n]=r),r):(e=-128<=(n|=0)&&n<128)&&(i=Mn[n])?i:(r=xn(n,n<0?-1:0,!1),e&&(Mn[n]=r),r)}function Bn(n,t){if(_(n))return t?Zn:$n;if(t){if(n<0)return Zn;if(n>=qn)return tt}else{if(n<=-zn)return rt;if(n+1>=zn)return nt}return n<0?Bn(-n,t).neg():xn(n%Kn|0,n/Kn|0,t)}function xn(n,t,r){return new Fn(n,t,r)}Fn.fromInt=Vn,Fn.fromNumber=Bn,Fn.fromBits=xn;var Hn=l.pow;function Gn(n,t,r){if(0===n.length)throw c("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===n||"Infinity"===n||"+Infinity"===n||"-Infinity"===n)return t?Zn:$n;if((r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=n.indexOf("-"))>0)throw c("interior hyphen");if(0===i)return Gn(n.substring(1),t,r).neg();for(var e=Bn(Hn(r,8)),u=$n,o=0;o<n.length;o+=8){var f=l.min(8,n.length-o),s=v(n.substring(o,o+f),r);if(f<8){var a=Bn(Hn(r,f));u=u.mul(a).add(Bn(s))}else u=(u=u.mul(e)).add(Bn(s))}return u.unsigned=t,u}function jn(n,t){return"number"==typeof n?Bn(n,t):"string"==typeof n?Gn(n,t):xn(n.low,n.high,"boolean"==typeof t?t:n.unsigned)}Fn.fromString=Gn,Fn.fromValue=jn;var Kn=4294967296,qn=Kn*Kn,zn=qn/2,Xn=Vn(1<<24),$n=Vn(0);Fn.ZERO=$n;var Zn=Vn(0,!0);Fn.UZERO=Zn;var Yn=Vn(1);Fn.ONE=Yn;var Jn=Vn(1,!0);Fn.UONE=Jn;var Qn=Vn(-1);Fn.NEG_ONE=Qn;var nt=xn(-1,2147483647,!1);Fn.MAX_VALUE=nt;var tt=xn(-1,-1,!0);Fn.MAX_UNSIGNED_VALUE=tt;var rt=xn(0,-2147483648,!1);Fn.MIN_VALUE=rt;var it=Fn.prototype;it.toInt=function(){return this.unsigned?this.low>>>0:this.low},it.toNumber=function(){return this.unsigned?(this.high>>>0)*Kn+(this.low>>>0):this.high*Kn+(this.low>>>0)},it.toString=function(n){if((n=n||10)<2||36<n)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(rt)){var t=Bn(n),r=this.div(t),i=r.mul(t).sub(this);return r.toString(n)+i.toInt().toString(n)}return"-"+this.neg().toString(n)}for(var e=Bn(Hn(n,6),this.unsigned),u=this,o="";;){var f=u.div(e),s=(u.sub(f.mul(e)).toInt()>>>0).toString(n);if((u=f).isZero())return s+o;for(;s.length<6;)s="0"+s;o=""+s+o}},it.getHighBits=function(){return this.high},it.getHighBitsUnsigned=function(){return this.high>>>0},it.getLowBits=function(){return this.low},it.getLowBitsUnsigned=function(){return this.low>>>0},it.getNumBitsAbs=function(){if(this.isNegative())return this.eq(rt)?64:this.neg().getNumBitsAbs();for(var n=0!=this.high?this.high:this.low,t=31;t>0&&0==(n&1<<t);t--);return 0!=this.high?t+33:t+1},it.isZero=function(){return 0===this.high&&0===this.low},it.eqz=it.isZero,it.isNegative=function(){return!this.unsigned&&this.high<0},it.isPositive=function(){return this.unsigned||this.high>=0},it.isOdd=function(){return 1==(1&this.low)},it.isEven=function(){return 0==(1&this.low)},it.equals=function(n){return Ln(n)||(n=jn(n)),(this.unsigned===n.unsigned||this.high>>>31!=1||n.high>>>31!=1)&&(this.high===n.high&&this.low===n.low)},it.eq=it.equals,it.notEquals=function(n){return!this.eq(n)},it.neq=it.notEquals,it.ne=it.notEquals,it.lessThan=function(n){return this.comp(n)<0},it.lt=it.lessThan,it.lessThanOrEqual=function(n){return this.comp(n)<=0},it.lte=it.lessThanOrEqual,it.le=it.lessThanOrEqual,it.greaterThan=function(n){return this.comp(n)>0},it.gt=it.greaterThan,it.greaterThanOrEqual=function(n){return this.comp(n)>=0},it.gte=it.greaterThanOrEqual,it.ge=it.greaterThanOrEqual,it.compare=function(n){if(Ln(n)||(n=jn(n)),this.eq(n))return 0;var t=this.isNegative(),r=n.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?n.high>>>0>this.high>>>0||n.high===this.high&&n.low>>>0>this.low>>>0?-1:1:this.sub(n).isNegative()?-1:1},it.comp=it.compare,it.negate=function(){return!this.unsigned&&this.eq(rt)?rt:this.not().add(Yn)},it.neg=it.negate,it.add=function(n){Ln(n)||(n=jn(n));var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=n.high>>>16,o=65535&n.high,f=n.low>>>16,s=0,c=0,a=0,h=0;return a+=(h+=e+(65535&n.low))>>>16,c+=(a+=i+f)>>>16,s+=(c+=r+o)>>>16,s+=t+u,xn((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},it.subtract=function(n){return Ln(n)||(n=jn(n)),this.add(n.neg())},it.sub=it.subtract,it.multiply=function(n){if(this.isZero())return this;if(Ln(n)||(n=jn(n)),Pn)return xn(Pn.mul(this.low,this.high,n.low,n.high),Pn.get_high(),this.unsigned);if(n.isZero())return this.unsigned?Zn:$n;if(this.eq(rt))return n.isOdd()?rt:$n;if(n.eq(rt))return this.isOdd()?rt:$n;if(this.isNegative())return n.isNegative()?this.neg().mul(n.neg()):this.neg().mul(n).neg();if(n.isNegative())return this.mul(n.neg()).neg();if(this.lt(Xn)&&n.lt(Xn))return Bn(this.toNumber()*n.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=n.high>>>16,o=65535&n.high,f=n.low>>>16,s=65535&n.low,c=0,a=0,h=0,l=0;return h+=(l+=e*s)>>>16,a+=(h+=i*s)>>>16,h&=65535,a+=(h+=e*f)>>>16,c+=(a+=r*s)>>>16,a&=65535,c+=(a+=i*f)>>>16,a&=65535,c+=(a+=e*o)>>>16,c+=t*s+r*f+i*o+e*u,xn((h&=65535)<<16|(l&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},it.mul=it.multiply,it.divide=function(n){if(Ln(n)||(n=jn(n)),n.isZero())throw c("division by zero");var t,r,i;if(Pn)return this.unsigned||-2147483648!==this.high||-1!==n.low||-1!==n.high?xn((this.unsigned?Pn.div_u:Pn.div_s)(this.low,this.high,n.low,n.high),Pn.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?Zn:$n;if(this.unsigned){if(n.unsigned||(n=n.toUnsigned()),n.gt(this))return Zn;if(n.gt(this.shru(1)))return Jn;i=Zn}else{if(this.eq(rt))return n.eq(Yn)||n.eq(Qn)?rt:n.eq(rt)?Yn:(t=this.shr(1).div(n).shl(1)).eq($n)?n.isNegative()?Yn:Qn:(r=this.sub(n.mul(t)),i=t.add(r.div(n)));if(n.eq(rt))return this.unsigned?Zn:$n;if(this.isNegative())return n.isNegative()?this.neg().div(n.neg()):this.neg().div(n).neg();if(n.isNegative())return this.div(n.neg()).neg();i=$n}for(r=this;r.gte(n);){t=l.max(1,l.floor(r.toNumber()/n.toNumber()));for(var e=l.ceil(l.log(t)/l.LN2),u=e<=48?1:Hn(2,e-48),o=Bn(t),f=o.mul(n);f.isNegative()||f.gt(r);)f=(o=Bn(t-=u,this.unsigned)).mul(n);o.isZero()&&(o=Yn),i=i.add(o),r=r.sub(f)}return i},it.div=it.divide,it.modulo=function(n){return Ln(n)||(n=jn(n)),Pn?xn((this.unsigned?Pn.rem_u:Pn.rem_s)(this.low,this.high,n.low,n.high),Pn.get_high(),this.unsigned):this.sub(this.div(n).mul(n))},it.mod=it.modulo,it.rem=it.modulo,it.not=function(){return xn(~this.low,~this.high,this.unsigned)},it.countLeadingZeros=function(){return this.high?l.clz32(this.high):l.clz32(this.low)+32},it.clz=it.countLeadingZeros,it.countTrailingZeros=function(){return this.low?Un(this.low):Un(this.high)+32},it.ctz=it.countTrailingZeros,it.and=function(n){return Ln(n)||(n=jn(n)),xn(this.low&n.low,this.high&n.high,this.unsigned)},it.or=function(n){return Ln(n)||(n=jn(n)),xn(this.low|n.low,this.high|n.high,this.unsigned)},it.xor=function(n){return Ln(n)||(n=jn(n)),xn(this.low^n.low,this.high^n.high,this.unsigned)},it.shiftLeft=function(n){return Ln(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?xn(this.low<<n,this.high<<n|this.low>>>32-n,this.unsigned):xn(0,this.low<<n-32,this.unsigned)},it.shl=it.shiftLeft,it.shiftRight=function(n){return Ln(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?xn(this.low>>>n|this.high<<32-n,this.high>>n,this.unsigned):xn(this.high>>n-32,this.high>=0?0:-1,this.unsigned)},it.shr=it.shiftRight,it.shiftRightUnsigned=function(n){return Ln(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?xn(this.low>>>n|this.high<<32-n,this.high>>>n,this.unsigned):xn(32===n?this.high:this.high>>>n-32,0,this.unsigned)},it.shru=it.shiftRightUnsigned,it.shr_u=it.shiftRightUnsigned,it.rotateLeft=function(n){var t;return Ln(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?xn(this.high,this.low,this.unsigned):n<32?(t=32-n,xn(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned)):(t=32-(n-=32),xn(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned))},it.rotl=it.rotateLeft,it.rotateRight=function(n){var t;return Ln(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?xn(this.high,this.low,this.unsigned):n<32?(t=32-n,xn(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned)):(t=32-(n-=32),xn(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned))},it.rotr=it.rotateRight,it.toSigned=function(){return this.unsigned?xn(this.low,this.high,!1):this},it.toUnsigned=function(){return this.unsigned?this:xn(this.low,this.high,!0)},it.toBytes=function(n){return n?this.toBytesLE():this.toBytesBE()},it.toBytesLE=function(){var n=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]},it.toBytesBE=function(){var n=this.high,t=this.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]},Fn.fromBytes=function(n,t,r){return r?Fn.fromBytesLE(n,t):Fn.fromBytesBE(n,t)},Fn.fromBytesLE=function(n,t){return new Fn(n[0]|n[1]<<8|n[2]<<16|n[3]<<24,n[4]|n[5]<<8|n[6]<<16|n[7]<<24,t)},Fn.fromBytesBE=function(n,t){return new Fn(n[4]<<24|n[5]<<16|n[6]<<8|n[7],n[0]<<24|n[1]<<16|n[2]<<8|n[3],t)};var et=Fn;l.pow(2,-52);function ut(){return Date.now()||(new Date).getTime()}et.fromNumber(9007199254740991);function ot(n,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),h.defineProperty(n,i.key,i)}}function ft(n,t){var r=function(n,t){var r=n.length;if(r<=1)return n;for(var i=new Array(r),e=1;e<r;e*=2){st(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&st(r,null,n.length,n),n}function st(n,t,r,i){var e,u,o,f,s,c=n.length,a=0,h=2*r;for(e=0;e<c;e+=h)for(o=(u=e+r)+r,u>c&&(u=c),o>c&&(o=c),f=e,s=u;;)if(f<u&&s<o)t(n[f],n[s])<=0?i[a++]=n[f++]:i[a++]=n[s++];else if(f<u)i[a++]=n[f++];else{if(!(s<o))break;i[a++]=n[s++]}}var ct=/[a-zA-Z]/,at=/[0-9]/,ht=/[0-9a-fA-F]/,lt=/^0x/i,vt=/^[0-9]+$/,yt=/^[0-9a-fA-F]+$/,_t=/^[0-7]+$/,dt=h.prototype.toString,wt=Array.isArray||function(n){return"[object Array]"===dt.call(n)},It="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function Et(n){return wt(n)?n:Array.from(n)}function pt(n,t,r){var i=n[t];n[t]=n[r],n[r]=i}function gt(n){return n>=65&&n<=90}function Rt(n){return gt(n)||function(n){return n>=97&&n<=122}(n)}function St(n){return n>=48&&n<=57}function Ot(n){return St(n)||Rt(n)}function Tt(n){return St(n)||n>=65&&n<=70||n>=97&&n<=102}function kt(n){return gt(n)?n+32:n}function bt(n){return St(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function mt(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var At=l.min,Nt=String.fromCharCode,Ct=16384;function Dt(n){for(var t=n.length,r=[],i=0;i<t;i+=Ct){var e=At(i+Ct,t);r.push(Nt.apply(null,n.slice(i,e)))}return r.join("")}var Pt=2147483647,Ft=/[^\0-\x7E]/,Lt=/[\x2E\u3002\uFF0E\uFF61]/g,Ut={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mt=l.floor,Wt=String.fromCharCode;function Vt(n){throw new RangeError(Ut[n])}function Bt(n){for(var t=[],r=0,i=n.length;r<i;){var e=n.charCodeAt(r++);if(e>=55296&&e<=56319&&r<i){var u=n.charCodeAt(r++);56320==(64512&u)?t.push(((1023&e)<<10)+(1023&u)+65536):(t.push(e),r--)}else t.push(e)}return t}var xt,Ht,Gt,jt=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},Kt=function(n,t,r){var i=0;for(n=r?Mt(n/700):n>>1,n+=Mt(n/t);n>455;i+=36)n=Mt(n/35);return Mt(i+36*n/(n+38))},qt=function(n){return function(n,t){var r=n.split("@"),i="";r.length>1&&(i=r[0]+"@",n=r[1]);var e=function(n,t){for(var r=[],i=n.length;i--;)r[i]=t(n[i]);return r}((n=n.replace(Lt,".")).split("."),t).join(".");return i+e}(n,(function(n){return Ft.test(n)?"xn--"+function(n){for(var t=[],r=(n=Bt(n)).length,i=128,e=0,u=72,o=0,f=n;o<f.length;o++){var s=f[o];s<128&&t.push(Wt(s))}var c=t.length,a=c;for(c&&t.push("-");a<r;){for(var h=Pt,l=0,v=n;l<v.length;l++){var y=v[l];y>=i&&y<h&&(h=y)}var _=a+1;h-i>Mt((Pt-e)/_)&&Vt("overflow"),e+=(h-i)*_,i=h;for(var d=0,w=n;d<w.length;d++){var I=w[d];if(I<i&&++e>Pt&&Vt("overflow"),I==i){for(var E=e,p=36;;p+=36){var g=p<=u?1:p>=u+26?26:p-u;if(E<g)break;var R=E-g,S=36-g;t.push(Wt(jt(g+R%S,0))),E=Mt(R/S)}t.push(Wt(jt(E,0))),u=Kt(e,_,a==c),e=0,++a}}++e,++i}return t.join("")}(n):n}))};function zt(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];i>65535&&(i-=65536,t.push(i>>>10&1023|55296),i=56320|1023&i),t.push(i)}return Dt(t)}function Xt(n){if(n>=55296&&n<=57343)throw new c("Lone surrogate U+"+n.toString(16).toUpperCase()+" is not a scalar value")}function $t(n,t){return n>>t&63|128}function Zt(n,t){0!=(4294967168&n)?(0==(4294965248&n)?t.push(n>>6&31|192):0==(4294901760&n)?(Xt(n),t.push(n>>12&15|224),t.push($t(n,6))):0==(4292870144&n)&&(t.push(n>>18&7|240),t.push($t(n,12)),t.push($t(n,6))),t.push(63&n|128)):t.push(n)}function Yt(n){for(var t=[],r=0;r<n.length;r++){Zt(n[r],t)}return t}function Jt(){if(Gt>=Ht)throw new c("Invalid byte index");var n=255&xt[Gt];if(Gt++,128==(192&n))return 63&n;throw new c("Invalid continuation byte")}function Qt(){var n,t;if(Gt>Ht)throw new c("Invalid byte index");if(Gt===Ht)return!1;if(n=255&xt[Gt],Gt++,0==(128&n))return n;if(192==(224&n)){if((t=(31&n)<<6|Jt())>=128)return t;throw new c("Invalid continuation byte")}if(224==(240&n)){if((t=(15&n)<<12|Jt()<<6|Jt())>=2048)return Xt(t),t;throw new c("Invalid continuation byte")}if(240==(248&n)&&(t=(7&n)<<18|Jt()<<12|Jt()<<6|Jt())>=65536&&t<=1114111)return t;throw new c("Invalid UTF-8 detected")}function nr(n){return[37,mt(n>>4),mt(15&n)]}function tr(n){return function(n){return n>=0&&n<=31}(n)||n>126}function rr(n){return tr(n)||32===n||34===n||60===n||62===n||96===n}function ir(n){return rr(n)||35===n||63===n||123===n||125===n}function er(n){return ir(n)||47===n||58===n||59===n||61===n||64===n||n>=91&&n<=94||124===n}function ur(n){return n<33||n>126||34===n||35===n||60===n||62===n}function or(n){return ur(n)||39===n}function fr(n,t){if(!t(n))return[n];for(var r=Yt([n]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,nr(u))}return i}function sr(n,t){for(var r=[],i=0,e=Bt(n);i<e.length;i++){var u=e[i];r.push.apply(r,fr(u,t))}return zt(r)}function cr(n){return function(n){for(var t=[],r=n.length,i=0;i<r;i++){var e=n[i];if(37===e&&i+2<r&&Tt(n[i+1])&&Tt(n[i+2])){var u=bt(n[i+1])<<4|bt(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(Yt(n))}function ar(n){return zt(function(n){xt=n.slice(),Ht=xt.length,Gt=0;for(var t,r=[];!1!==(t=Qt());)r.push(t);return r}(cr(Bt(n))))}function hr(n){var t=n.length,r=[0,0,0,0,0,0,0,0],i=0,e=null,u=0;if(u<t&&":"===n[u]){if(!(u+1<t&&":"===n[u+1]))throw new a;u+=2,e=i+=1}for(;u<t;){if(8===i)throw new a("Too many groups");if(":"!==n[u]){for(var o=0,f=0;f<4&&u<t&&ht.test(n[u]);)o=o<<4|v(n[u],16),u+=1,f+=1;if("."===n[u]){if(0===f)throw new a;if(u-=f,i>6)throw new a;for(var s=0;u<t;){var c=null;if(s>0){if(!("."===n[u]&&s<4))throw new a;u+=1}if(!at.test(n[u]))throw new a;for(;u<t&&at.test(n[u]);){var h=v(n[u],10);if(null===c)c=h;else{if(0===c)throw new a;if((c=10*c+h)>255)throw new a}u+=1}r[i]=r[i]<<8|c,2!==(s+=1)&&4!==s||(i+=1)}if(4!==s)throw new a;break}if(":"===n[u]){if((u+=1)===t)throw new a}else if(u<t)throw new a;r[i]=o,i+=1}else{if(null!==e)throw new a("Too many :: groups");u+=1,e=i+=1}}if(null!==e){var l=i-e;for(i=7;0!==i&&l>0;)pt(r,i,e+l-1),i-=1,l-=1}else if(8!==i)throw new a;return r}function lr(n){var t=10,r=vt;return lt.test(n)?(n=n.slice(2),t=16,r=yt):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=_t),""===n?0:r.test(n)?v(n,t):void 0}var vr={vJ:4},yr=/[\0\t\n\r #%/:?@\[\\\]]/,_r=/[\0\t\n\r #/:?@\[\\\]]/;function dr(n,t){if("["===n[0]){if("]"!==n[n.length-1])throw new a("Invalid IPv6 address");return{vJ:2,F8:hr(n.slice(1,-1))}}if(!t)return function(n){if(_r.test(n))throw new a("Invalid code point in opaque host");var t=sr(n,tr);return""===t?vr:{vJ:3,Ox:t}}(n);var r=function(n){var t=function(n){return qt(n.toLowerCase())}(n);return t}(ar(n));if(yr.test(r))throw new a("Invalid code point in host");var i=function(n){var t=n.split(".");if(""===t[t.length-1]&&t.pop(),!(t.length>4)){for(var r=[],i=0;i<t.length;i++){var e=t[i];if(""===e)return;var u=lr(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new a;if(r[r.length-1]>=l.pow(256,5-r.length))throw new a;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*l.pow(256,3-s);return f}}(r);return void 0!==i?{vJ:1,F8:i}:""===r?vr:{vJ:0,U8:r}}function wr(n){switch(n.vJ){case 0:return n.U8;case 1:return function(n){for(var t=[],r=n,i=1;i<=4;i++)t.push(""+(255&r)),4!==i&&t.push("."),r>>>=8;return t.reverse().join("")}(n.F8);case 2:return"["+function(n){for(var t="",r=function(n){for(var t=0,r=0,i=0,e=0,u=0;u<8;u++)0===n[u]?(0===e&&(i=u),e++):(e>r&&(t=i,r=e),e=0);return e>r&&(t=i,r=e),r>1?t:null}(n),i=!1,e=0;e<8;e++){if(i){if(0===n[e])continue;i=!1}r!==e?(t+=n[e].toString(16),7!==e&&(t+=":")):(t+=0===e?"::":":",i=!0)}return t}(n.F8)+"]";case 3:return n.Ox;case 4:return""}}var Ir=/\+/g;function Er(n){return 42===n||45===n||46===n||95===n||Ot(n)}function pr(n){for(var t=n.split("&"),r=[],i=0;i<t.length;i++){var e=t[i];if(""!==e){var u=e.indexOf("="),o=void 0,f=void 0;-1!==u?(o=e.slice(0,u),f=e.slice(u+1)):(o=e,f=""),o=o.replace(Ir," "),f=f.replace(Ir," ");var s=ar(o),c=ar(f);r.push([s,c])}}return r}function gr(n){for(var t="",r=0;r<n.length;r++){var i=n[r];r>0&&(t+="&"),t+=Rr(Yt(Bt(i[0])))+"="+Rr(Yt(Bt(i[1])))}return t}function Rr(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];32===i?t.push(43):Er(i)?t.push(i):t.push.apply(t,nr(i))}return Dt(t)}var Sr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function Or(n){var t=""+n,r=Sr.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(kr(u))if(br(u)||e===r-1)i.push(Tr);else{var o=n.charCodeAt(e+1);br(o)?(i.push(u,o),e++):i.push(Tr)}else i.push(u)}return n.slice(0,t)+Dt(i)}(t,r.index):t}var Tr=65533,kr=function(n){return 55296==(63488&n)},br=function(n){return 0!=(1024&n)};function mr(n,t){var r=n[0],i=t[0];return r===i?0:r<i?-1:1}function Ar(n){n.H8.length=0}function Nr(n,t){!function(n,t){for(var r=0;r<t.length;r++)n[r]=t[r];n.length=t.length}(n.H8,pr(t))}function Cr(n){if(n.V8){var t=gr(n.H8);""===t&&(t=null),n.V8.V8.W8=t}}var Dr=function(){function n(n){if(void 0===n&&(n=void 0),this.V8=null,null==n)this.H8=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof Dr&&!!wt(n.H8)&&(!It||n[Symbol.iterator]===Pr)}(n))this.H8=n.H8.slice();else if(function(n){return null!=n&&(!!wt(n)||!!It&&"function"==typeof n[Symbol.iterator])}(n)){this.H8=[];for(var t=0,r=Et(n);t<r.length;t++){var i=Et(r[t]);if(2!==i.length)throw new a("Invalid name-value pair");this.H8.push([Or(i[0]),Or(i[1])])}}else for(var e in this.H8=[],n)h.prototype.hasOwnProperty.call(n,e)&&this.H8.push([Or(e),Or(n[e])]);else(n=Or(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.H8=pr(n)}var t=n.prototype;return t.append=function(n,t){n=Or(n),t=Or(t),this.H8.push([n,t]),Cr(this)},t.delete=function(n){n=Or(n);for(var t=this.H8,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}Cr(this)},t.get=function(n){n=Or(n);for(var t=this.H8,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},t.getAll=function(n){n=Or(n);for(var t=this.H8,r=[],i=0;i<t.length;i++){var e=t[i];e[0]===n&&r.push(e[1])}return r},t.has=function(n){n=Or(n);for(var t=this.H8,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},t.set=function(n,t){n=Or(n),t=Or(t);for(var r=this.H8,i=!1,e=0;e<r.length;){var u=r[e];u[0]===n?i?r.splice(e,1):(u[1]=t,i=!0,e++):e++}i||r.push([n,t]),Cr(this)},t.sort=function(){ft(this.H8,mr),Cr(this)},t.toString=function(){return gr(this.H8)},t.entries=function(){return new Mr(this.H8,Fr)},t.keys=function(){return new Mr(this.H8,Lr)},t.values=function(){return new Mr(this.H8,Ur)},t.forEach=function(n){var t=this;this.H8.forEach((function(r){return n(r[1],r[0],t)}))},n}(),Pr=Dr.prototype.entries;It&&(Dr.prototype[Symbol.iterator]=Pr);var Fr=function(n){return[n[0],n[1]]},Lr=function(n){return n[0]},Ur=function(n){return n[1]},Mr=function(){function n(n,t){this.q8=0,this.H8=n,this.z8=t}return n.prototype.next=function(){return this.q8<this.H8.length?{done:!1,value:this.z8(this.H8[this.q8++])}:{done:!0,value:void 0}},n}(),Wr="null";var Vr=h.create(null);Vr.ftp=21,Vr.file=0,Vr.gopher=70,Vr.http=80,Vr.https=443,Vr.ws=80,Vr.wss=443;var Br=/^(?:\.|%2e)$/i,xr=/^(?:\.|%2e){2}$/i;function Hr(n){return Br.test(n)}function Gr(n){return xr.test(n)}function jr(n){return void 0!==Vr[n]}function Kr(n){return jr(n.X8)}function qr(n){return""!==n.G8||""!==n.Q8}function zr(n){var t=n.length;if(!(t>=2))return!1;if(!$r(n.slice(0,2)))return!1;if(2!==t){var r=n[2];if(47!==r&&92!==r&&63!==r&&35!==r)return!1}return!0}function Xr(n){return 2===n.length&&ct.test(n[0])&&(":"===n[1]||"|"===n[1])}function $r(n){return 2===n.length&&Xr(Dt(n))}function Zr(n){return Xr(n)&&":"===n[1]}function Yr(n){var t=n.K8;0!==t.length&&("file"===n.X8&&1===t.length&&Zr(t[0])||t.pop())}function Jr(n){return null===n.j8||vr===n.j8||n.Y8||"file"===n.X8}var Qr=-1,ni=/\t|\n|\r/g,ti=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function ri(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new ei,n=n.replace(ti,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=Bt(n=n.replace(ni,"")),h=c.length,l=0;l<=h;){var y=l<h?c[l]:Qr;switch(e){case 0:if(!Rt(y)){if(null===i){u.length=0,e=2;continue}throw new a("Invalid scheme")}u.push(kt(y)),e=1;break;case 1:if(Ot(y)||43===y||45===y||46===y)u.push(kt(y));else{if(58!==y){if(null===i){u.length=0,e=2,l=0;continue}throw new a("Invalid scheme")}var _=zt(u);if(null!==i){if(jr(r.X8)&&!jr(_))return;if(!jr(r.X8)&&jr(_))return;if((qr(r)||null!==r.r6)&&"file"===_)return;if("file"===r.X8&&(r.j8===vr||null===r.j8))return}if(r.X8=_,null!==i)return void(Kr(r)&&r.r6===Vr[r.X8]&&(r.r6=null));u.length=0,"file"===r.X8?e=13:Kr(r)&&t&&t.X8===r.X8?e=3:Kr(r)?e=7:47===c[l+1]?(e=4,l+=1):(r.Y8=!0,r.K8.push(""),e=18)}break;case 2:if(!t||t.Y8&&35!==y)throw new a("Invalid scheme");t.Y8&&35===y?(r.X8=t.X8,r.K8=t.K8.slice(),r.W8=t.W8,r.Z8="",r.Y8=!0,e=20):"file"!==t.X8?(e=5,l-=1):(e=13,l-=1);break;case 3:47===y&&47===c[l+1]?e=8:(e=5,l-=1);break;case 4:47===y?e=9:(e=17,l-=1);break;case 5:r.X8=t.X8,Qr===y?(r.G8=t.G8,r.Q8=t.Q8,r.j8=t.j8,r.r6=t.r6,r.K8=t.K8.slice(),r.W8=t.W8):47===y?e=6:63===y?(r.G8=t.G8,r.Q8=t.Q8,r.j8=t.j8,r.r6=t.r6,r.K8=t.K8.slice(),r.W8="",e=19):35===y?(r.G8=t.G8,r.Q8=t.Q8,r.j8=t.j8,r.r6=t.r6,r.K8=t.K8.slice(),r.W8=t.W8,r.Z8="",e=20):92===y&&Kr(r)?e=6:(r.G8=t.G8,r.Q8=t.Q8,r.j8=t.j8,r.r6=t.r6,r.K8=t.K8.slice(),r.K8.pop(),e=17,l-=1);break;case 6:!Kr(r)||47!==y&&92!==y?47===y?e=9:(r.G8=t.G8,r.Q8=t.Q8,r.j8=t.j8,r.r6=t.r6,e=17,l-=1):e=8;break;case 7:if(47!==y||47!==c[l+1]){e=8;continue}e=8,l+=1;break;case 8:47!==y&&92!==y&&(e=9,l-=1);break;case 9:if(64===y){o&&u.unshift(37,52,48),o=!0;for(var d=0;d<u.length;d++){var w=u[d];if(58!==w||s){var I=zt(fr(w,er));s?r.Q8+=I:r.G8+=I}else s=!0}u.length=0}else if(Qr===y||47===y||63===y||35===y||Kr(r)&&92===y){if(o&&0===u.length)throw new a("Invalid host");l-=u.length+1,u.length=0,e=10}else u.push(y);break;case 10:case 11:if(null!==i&&"file"===r.X8)l-=1,e=15;else if(58!==y||f)if(Qr===y||47===y||63===y||35===y||Kr(r)&&92===y){if(l-=1,Kr(r)&&0===u.length)throw new a("Invalid host");if(null!==i&&0===u.length&&(qr(r)||null!==r.r6))return;var E=dr(zt(u),Kr(r));if(r.j8=E,u.length=0,e=16,null!==i)return}else 91===y?f=!0:93===y&&(f=!1),u.push(y);else{if(0===u.length)throw new a("Invalid host");var p=dr(zt(u),Kr(r));if(r.j8=p,u.length=0,e=12,11===i)return}break;case 12:if(St(y))u.push(y);else{if(!(Qr===y||47===y||63===y||35===y||Kr(r)&&92===y||null!==i))throw new a("Invalid port");if(0!==u.length){var g=v(zt(u),10);if(g>65535)throw new a("Invalid port");r.r6=g===Vr[r.X8]?null:g,u.length=0}if(null!==i)return;e=16,l-=1}break;case 13:r.X8="file",47===y||92===y?e=14:t&&"file"===t.X8?Qr===y?(r.j8=t.j8,r.K8=t.K8.slice(),r.W8=t.W8):63===y?(r.j8=t.j8,r.K8=t.K8.slice(),r.W8="",e=19):35===y?(r.j8=t.j8,r.K8=t.K8.slice(),r.W8=t.W8,r.Z8="",e=20):(zr(c.slice(l))||(r.j8=t.j8,r.K8=t.K8.slice(),Yr(r)),e=17,l-=1):(e=17,l-=1);break;case 14:47===y||92===y?e=15:(t&&"file"===t.X8&&!zr(c.slice(l))&&(Zr(t.K8[0])?r.K8.push(t.K8[0]):r.j8=t.j8),e=17,l-=1);break;case 15:if(Qr===y||47===y||92===y||63===y||35===y)if(l-=1,null===i&&$r(u))e=17;else if(0===u.length){if(r.j8=vr,null!==i)return;e=16}else{var R=dr(zt(u),Kr(r));if(0===R.vJ&&"localhost"===R.U8&&(R=vr),r.j8=R,null!==i)return;u.length=0,e=16}else u.push(y);break;case 16:Kr(r)?(e=17,47!==y&&92!==y&&(l-=1)):null===i&&63===y?(r.W8="",e=19):null===i&&35===y?(r.Z8="",e=20):Qr!==y&&(e=17,47!==y&&(l-=1));break;case 17:if(Qr===y||47===y||Kr(r)&&92===y||null===i&&(63===y||35===y)){var S=zt(u);if(Gr(S)?(Yr(r),47===y||Kr(r)&&92===y||r.K8.push("")):!Hr(S)||47===y||Kr(r)&&92===y?Hr(S)||("file"===r.X8&&0===r.K8.length&&$r(u)&&(vr!==r.j8&&null!==r.j8&&(r.j8=vr),u[1]=58,S=zt(u)),r.K8.push(S)):r.K8.push(""),u.length=0,"file"===r.X8&&(Qr===y||63===y||35===y))for(;r.K8.length>1&&""===r.K8[0];)r.K8.shift();63===y?(r.W8="",e=19):35===y&&(r.Z8="",e=20)}else u.push.apply(u,fr(y,ir));break;case 18:63===y?(r.W8="",e=19):35===y?(r.Z8="",e=20):Qr!==y&&(r.K8[0]+=zt(fr(y,tr)));break;case 19:null===i&&35===y?(r.Z8="",e=20):Qr!==y&&(r.W8+=zt(fr(y,Kr(r)?or:ur)));break;case 20:Qr===y||0===y||(r.Z8+=zt(fr(y,rr)))}l++}return r}function ii(n,t,r,i){try{ri(n,t,r,i)}catch(n){}}var ei=function(){this.X8="",this.G8="",this.Q8="",this.j8=null,this.r6=null,this.K8=[],this.W8=null,this.Z8=null,this.Y8=!1};function ui(n){switch(n.X8){case"blob":var t;try{t=ri(n.K8[0],null)}catch(n){return Wr}return ui(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(n,t,r){return n+"://"+wr(t)+(null===r?"":":"+r)}(n.X8,n.j8,n.r6);default:return Wr}}var oi,fi,si=function(){function n(n,t){var r,i=null;if(null!=t)if(function(n){return null!=n&&n instanceof si&&"object"==typeof n.V8}(t))i=t.V8;else try{i=ri(String(t),null)}catch(n){throw new a("Invalid base URL: "+n.message)}try{r=ri(String(n),i)}catch(n){throw new a("Invalid URL: "+n.message)}var e=r.W8;this.V8=r,this.W8=function(n){var t=new Dr;return null!==n&&Nr(t,n),t}(e),this.W8.V8=this}var t=n.prototype;return t.toString=function(){return this.href},t.toJSON=function(){return this.href},function(n,t,r){t&&ot(n.prototype,t),r&&ot(n,r)}(n,[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.X8+":";if(null!==n.j8?(r+="//",qr(n)&&(r+=n.G8,""!==n.Q8&&(r+=":"+n.Q8),r+="@"),r+=wr(n.j8),null!==n.r6&&(r+=":"+n.r6)):null===n.j8&&"file"===n.X8&&(r+="//"),n.Y8)r+=n.K8[0];else for(var i=0,e=n.K8;i<e.length;i++)r+="/"+e[i];return null!==n.W8&&(r+="?"+n.W8),t||null===n.Z8||(r+="#"+n.Z8),r}(this.V8)},set:function(n){var t;try{t=ri(String(n),null)}catch(n){throw new a("Invalid URL: "+n.message)}this.V8=t,Ar(this.W8);var r=this.V8.W8;null!==r&&Nr(this.W8,r)}},{key:"origin",get:function(){return ui(this.V8)}},{key:"protocol",get:function(){return this.V8.X8+":"},set:function(n){ii(n+":",null,this.V8,0)}},{key:"username",get:function(){return this.V8.G8},set:function(n){Jr(this.V8)||(this.V8.G8=sr(n,er))}},{key:"password",get:function(){return this.V8.Q8},set:function(n){Jr(this.V8)||(this.V8.Q8=sr(n,er))}},{key:"host",get:function(){var n=this.V8,t=n.j8;if(null===t)return"";var r=n.r6,i=wr(t);return null!==r&&(i+=":"+r),i},set:function(n){this.V8.Y8||ii(n,null,this.V8,10)}},{key:"hostname",get:function(){var n=this.V8.j8;return null===n?"":wr(n)},set:function(n){this.V8.Y8||ii(n,null,this.V8,11)}},{key:"port",get:function(){var n=this.V8.r6;return null===n?"":""+n},set:function(n){Jr(this.V8)||(""===n?this.V8.r6=null:ii(n,null,this.V8,12))}},{key:"pathname",get:function(){var n=this.V8.K8;return this.V8.Y8?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.V8.Y8||(this.V8.K8.length=0,ii(n,null,this.V8,16))}},{key:"search",get:function(){var n=this.V8.W8;return null===n||""===n?"":"?"+n},set:function(n){n=Or(n);var t=this.V8;if(""===n)return t.W8=null,void Ar(this.W8);"?"===n[0]&&(n=n.slice(1)),t.W8="",ii(n,null,t,19),Nr(this.W8,n)}},{key:"searchParams",get:function(){return this.W8}},{key:"hash",get:function(){var n=this.V8.Z8;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.V8.Z8="",ii(n,null,this.V8,20)):this.V8.Z8=null}}]),n}();function ci(n){return n.document&&n.document.baseURI||n.location.href||""}function ai(){return void 0!==r?r.createElement("video"):void 0}var hi=!!("ontouchstart"in self||self.DocumentTouch&&r instanceof self.DocumentTouch)||!(!e||!e.msMaxTouchPoints),li=(fi||(fi=ai()),fi),vi=!(!li||!li.webkitShowPlaybackTargetPicker),yi=function(){function n(){this.t9=void 0,this.d9=!1,this.Ye=hi,this.Ks=!1,this.K6=!0}var r=n.prototype;return r.e9=function(){return 0},r.c9=function(n,t){return!0},r.l9=function(n){return n>=.3333333333333333},nn(n,[{key:"J8",get:function(){return void 0===this.t9&&(this.t9=this.e9()),this.t9}},{key:"i9",get:function(){return!In.KR}},{key:"s9",get:function(){if(t.screen)return{width:t.screen.width,height:t.screen.height}}},{key:"C0",get:function(){return t.devicePixelRatio||1}},{key:"n9",get:function(){return vi}},{key:"l0",get:function(){return!1}},{key:"n0",get:function(){return!0}},{key:"Lw",get:function(){return In.OR||In.KP}},{key:"r9",get:function(){return!In.KP}},{key:"wL",get:function(){return!0}},{key:"Ow",get:function(){return!0}},{key:"Mw",get:function(){return!1}},{key:"h9",get:function(){}},{key:"o9",get:function(){return!0}},{key:"bY",get:function(){return!1}},{key:"a9",get:function(){return!1}},{key:"u9",get:function(){return In.yR}}]),n}(),_i=function(){var n=ai();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(In.zP)return!1;var n=ai();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var di=function(n){function t(t){var r;return(r=n.call(this)||this).f9=t,r.f9&&(r.d9=r.f9.d9,r.Ye=r.f9.Ye,r.K6=_i&&r.f9.K6),r}rn(t,n);var r=t.prototype;return r.e9=function(){return this.f9?this.f9.J8:n.prototype.e9.call(this)},r.c9=function(t,r){return this.f9?this.f9.c9(t,r):n.prototype.c9.call(this,t,r)},r.l9=function(t){return this.f9?this.f9.l9(t):n.prototype.l9.call(this,t)},nn(t,[{key:"h9",get:function(){var n;return null==(n=this.f9)?void 0:n.h9}},{key:"o9",get:function(){var n,t;return null==(t=null==(n=this.f9)?void 0:n.o9)||t}}]),t}(yi),wi=function(n){function t(t){var r;return(r=n.call(this,t)||this).d9=!0,r.Ks=!0,r}return rn(t,n),nn(t,[{key:"Mw",get:function(){return In.KP}}]),t}(di);var Ii=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),t.prototype.e9=function(){return function(n){return n&&Rn(oi.ManagedMediaSource)?oi.ManagedMediaSource:Rn(oi.MediaSource)?oi.MediaSource:void 0}(!0)?n.prototype.e9.call(this):1},nn(t,[{key:"Mw",get:function(){return!0}}]),t}(wi),Ei=function(n){function r(){return n.apply(this,arguments)}return rn(r,n),r.prototype.c9=function(t,r){return n.prototype.c9.call(this,t,r)},nn(r,[{key:"l0",get:function(){return In.vR<3}},{key:"n0",get:function(){return In.vR>=3}},{key:"s9",get:function(){var n=this;return t.tizen&&!this._9&&t.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n._9={width:r,height:i})})),this._9}},{key:"bY",get:function(){return In.vR<3}},{key:"a9",get:function(){return!0}}]),r}(di),pi=function(n){function t(){return n.call(this)}return rn(t,n),t}(yi),gi=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),t.prototype.c9=function(n,t){if(n&&n.g9&&t&&t.g9){var r=Ri(n.g9,"mp4a.40.2")&&Ri(t.g9,"mp4a.40.5"),i=Ri(n.g9,"mp4a.40.5")&&Ri(t.g9,"mp4a.40.2"),e=Ri(n.g9,"mp4a.40.2")&&Ri(t.g9,"mp4a.40.34"),u=Ri(n.g9,"mp4a.40.34")&&Ri(t.g9,"mp4a.40.2"),o=Ri(n.g9,"mp4a.40.5")&&Ri(t.g9,"mp4a.40.34"),f=Ri(n.g9,"mp4a.40.34")&&Ri(t.g9,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},nn(t,[{key:"h9",get:function(){if(In.PP)return 4096}}]),t}(pi);function Ri(n,t){return n.indexOf(t)>-1}var Si=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),t.prototype.l9=function(n){return n>=2},t}(pi),Oi=function(n){function t(){var t;return(t=n.call(this)||this).d9=In.UR>=11,t.K6=In.OR&&!(In.KP&&In.UR<10),t}return rn(t,n),t}(pi),Ti=function(n){function r(){return n.apply(this,arguments)}return rn(r,n),nn(r,[{key:"s9",get:function(){var n=this;return t.webOS&&!this._9&&t.webOS.deviceInfo((function(t){n._9={width:t.screenWidth,height:t.screenHeight}})),this._9}},{key:"wL",get:function(){return!1}},{key:"a9",get:function(){return!0}}]),r}(di),ki=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),nn(t,[{key:"o9",get:function(){return!In.CP||(In.cR?92!==In.dR:In.aR>=100)}}]),t}(pi),bi=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),nn(t,[{key:"Mw",get:function(){return!0}}]),t}(di),mi=function(){function n(){this.y9=new Ai,this.b9=function(){var n=function(){if(In.DR)return new gi;if(In.bR||In.kR)return new Si;if(In.OR)return new Oi;if(In.hR)return new ki;return new pi}();return In.KP?new Ii(n):In.Ks?new wi(n):In._R?new Ei(n):In.mR?new Ti(n):In.PP?new bi(n):new di(n)}(),this.A9=function(){if(self.URL)try{var n=new self.URL("b","http://a");return n.pathname="c d","http://a/c%20d"===n.href}catch(n){}return!1}(),self.performance&&self.performance.now?this.V_=function(){return self.performance.now()}:this.V_=ut}var t=n.prototype;return t.v9=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];An.apply(void 0,on(t))},t.Um=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Nn.apply(void 0,on(t))},t.w9=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Cn.apply(void 0,on(t))},t.m9=function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];Dn.apply(void 0,[n].concat(on(r)))},t.q_=function(n,t){return u(n,t)},t.hZ=function(n,t){return f(n,t)},t.W_=function(n){o(n)},t.aZ=function(n){s(n)},t.bN=function(){return this.p9.bN()},t.gN=function(){return this.p9.gN()},t.wN=function(){return this.p9.wN()},t.vN=function(){return this.p9.vN()},t.fN=function(){return this.p9.fN()},t.pN=function(n,t){return this.p9.pN(n,t)},t._N=function(n){return this.p9._N(n)},t.Rh=function(n,t){var r;return void 0===t&&(t=ci(oi)),r="object"!=typeof t||t instanceof si?t:t.href,new si(n,r)},t.Fm=function(n,t){if(void 0===t&&(t=ci(oi)),this.A9){var r=function(n){return"string"==typeof n}(t)?t:t.toString();return new self.URL(n,r).href}return this.Rh(n,t).href},nn(n,[{key:"cL",get:function(){return this.y9}},{key:"Zs",get:function(){return this.b9}},{key:"Uw",get:function(){return{Fw:e&&e.userAgent.match(/Android /i)?"Android":"other",Hw:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"tq",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"T9",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),Ai=function(){function n(){}return nn(n,[{key:"lL",get:function(){return e.oscpu}},{key:"Zs",get:function(){return e.platform}},{key:"dL",get:function(){return e.vendor}},{key:"fL",get:function(){return e.vendorSub}}]),n}();var Ni,Ci=function(){function n(){}var t=n.prototype;return t.fN=function(){return j.resolve(!1)},t.gN=function(){return j.resolve(!1)},t.vN=function(){return j.resolve(!1)},t.wN=function(){return j.resolve(!1)},t._N=function(n){return j.resolve(!1)},t.pN=function(n,t){return j.resolve(!1)},t.bN=function(){return j.resolve(!1)},n}(),Di=function(){function n(){}var t=n.prototype;return t.oH=function(){},t.NC=function(n){},t.RC=function(n){},t.dM=function(n,t){},n}();function Pi(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var i,e,u=[],o=!0,f=!1;try{for(r=r.call(n);!(o=(i=r.next()).done)&&(u.push(i.value),!t||u.length!==t);o=!0);}catch(n){f=!0,e=n}finally{try{o||null==r.return||r.return()}finally{if(f)throw e}}return u}}(n,t)||un(n,t)||function(){throw new a("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}!function(n){n.MI="arraybuffer",n.OI="json",n.FI="stream",n.KT="text"}(Ni||(Ni={}));var Fi,Li=function(){function n(t){var r=this;this.I_={},t instanceof n?t.asList().forEach((function(n){var t=Pi(n,2),i=t[0],e=t[1];r.append(i,e)})):Array.isArray(t)?t.forEach((function(n){r.append(n[0],n[1])})):t&&h.getOwnPropertyNames(t).forEach((function(n){r.append(n,t[n])}))}var t=n.prototype;return t.append=function(n,t){var r=n,i=t;r=Ui(r),i=Mi(i);var e=r.toLowerCase();if(this.I_.hasOwnProperty(e)){var u=this.I_[e],o=u[1];u[1]=o?o+", "+i:i}else this.I_[e]=[r,i]},t.delete=function(n){var t=Ui(n).toLowerCase();delete this.I_[t]},t.get=function(n){var t=Ui(n).toLowerCase();return this.I_.hasOwnProperty(t)?this.I_[t][1]:null},t.has=function(n){var t=Ui(n).toLowerCase();return this.I_.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=Ui(r)).toLowerCase();this.I_[i]=[r,Mi(t)]},t.forEach=function(n,t){for(var r in this.I_)this.I_.hasOwnProperty(r)&&n.call(t,this.I_[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.I_)if(this.I_.hasOwnProperty(t)){var r=Pi(this.I_[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.UI=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.HI=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.VI=function(n){var t=this;n.forEach((function(n,r){t.set(r,n)}))},n}();function Ui(n){var t=n;if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new a("Invalid character in header field name");return t}function Mi(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}function Wi(n,t,r,i,e,u,o){try{var f=n[u](o),s=f.value}catch(n){return void r(n)}f.done?t(s):j.resolve(s).then(i,e)}function Vi(n){return function(){var t=this,r=arguments;return new j((function(i,e){var u=n.apply(t,r);function o(n){Wi(u,i,e,o,f,"next",n)}function f(n){Wi(u,i,e,o,f,"throw",n)}o(void 0)}))}}function Bi(n,t){var r,i,e,u,o={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return u={next:f(0),throw:f(1),return:f(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function f(f){return function(s){return function(f){if(r)throw new a("Generator is already executing.");for(;u&&(u=0,f[0]&&(o=0)),o;)try{if(r=1,i&&(e=2&f[0]?i.return:f[0]?i.throw||((e=i.return)&&e.call(i),0):i.next)&&!(e=e.call(i,f[1])).done)return e;switch(i=0,e&&(f=[2&f[0],e.value]),f[0]){case 0:case 1:e=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(!(e=o.trys,(e=e.length>0&&e[e.length-1])||6!==f[0]&&2!==f[0])){o=0;continue}if(3===f[0]&&(!e||f[1]>e[0]&&f[1]<e[3])){o.label=f[1];break}if(6===f[0]&&o.label<e[1]){o.label=e[1],e=f;break}if(e&&o.label<e[2]){o.label=e[2],o.ops.push(f);break}e[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(n,o)}catch(n){f=[6,n],i=0}finally{r=e=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,s])}}}!function(n){n[n.ih=0]="ih",n[n.b_=1]="b_",n[n.T_=-1]="T_"}(Fi||(Fi={}));Array.prototype.find,Array.prototype.findLast;var xi="function"==typeof Array.prototype.findIndex?function(n,t){return n.findIndex(t)}:function(n,t){for(var r=0;r<n.length;r+=1){if(t(n[r],r,n))return r}return-1},Hi="function"==typeof Array.prototype.findLastIndex?function(n,t){return n.findLastIndex(t)}:function(n,t){for(var r=n.length-1;r>=0;r-=1){if(t(n[r],r,n))return r}return-1};function Gi(n,t){var r=n.indexOf(t);return-1!==r&&(function(n,t){0===t?n.shift():n.splice(t,1)}(n,r),!0)}function ji(n){n.length=0}Array.prototype.flat,Array.prototype.flatMap;var Ki,qi,zi,Xi,$i=function(){function n(){this.R_=!1,this.C_=!1,this.x_=[],this.D_=[]}var t=n.prototype;return t.P_=function(){if(!this.R_&&!this.C_){this.R_=!0;for(var n=0,t=this.x_.slice();n<t.length;n++){(0,t[n])()}this.Ou()}},t.Ou=function(){if(!this.C_){this.C_=!0;for(var n=0,t=this.D_.slice();n<t.length;n++){(0,t[n])()}ji(this.x_),ji(this.D_)}},t.N_=function(n){this.C_||this.x_.push(n)},t.B_=function(n){this.C_||Gi(this.x_,n)},t.L_=function(n){this.C_||this.D_.push(n)},t.M_=function(n){this.C_||Gi(this.D_,n)},n}(),Zi=function(){function n(){this.F_=new $i}var t=n.prototype;return t.Jl=function(){this.F_.P_()},t.Ou=function(){this.F_.Ou()},t.U_=function(n){var t=this.F_;if(!t.R_)if(n.R_)t.P_();else if(!t.C_&&!n.C_){var r=function(){i(),t.P_()},i=function(){n.B_(r),n.M_(i),t.B_(r),t.M_(i)};n.N_(r),n.L_(i),t.N_(r),t.L_(i)}},t.H_=function(){var t=new n,r=new n,i=t.O_,e=r.O_,u=this.F_,o=function(){i.R_&&e.C_||e.R_&&i.C_?u.P_():i.C_&&e.C_&&u.Ou()};i.N_(o),e.N_(o),i.L_(o),e.L_(o),t.U_(u),r.U_(u);return u.L_((function(){i.B_(o),e.B_(o),i.M_(o),e.M_(o)})),[t,r]},nn(n,[{key:"O_",get:function(){return this.F_}}]),n}();!function(n){n.DELETE="DELETE",n.GET="GET",n.HEAD="HEAD",n.OPTIONS="OPTIONS",n.POST="POST",n.PUT="PUT"}(Ki||(Ki={})),function(n){n.YT="",n.WI="manifest",n.qI="segment",n.zI="preload-hint",n.XI="content-protection"}(qi||(qi={})),function(n){n.YT="",n.GI="initialization-segment",n.QI="fairplay-license",n.KI="fairplay-certificate",n.jI="widevine-license",n.YI="widevine-certificate",n.ZI="playready-license",n.JI="clearkey-license",n.$I="aes128-key"}(zi||(zi={})),function(n){n.YT="",n.yy="audio",n.vl="video",n.KT="text",n.jT="image"}(Xi||(Xi={}));var Yi=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,y=n.TI;t?(r=t.tP,i=t.eP,e=t.iP,u=t.sP,o=t.kI,f=t.nP,s=t.O_,c=t.Iw,a=t.rP,h=t.hP,l=t.oP,v=t.aP):(r=null,i={},e="GET",u=Ni.KT,o=0,f=0,c="",a="",h="",l=!1),this.TI=y,this.tP=n.tP||r,this.eP=new Li(n.eP||i),this.iP=n.iP||e,this.sP=n.sP||u,this.kI=void 0!==n.kI?Number(n.kI)||0:o,this.nP=void 0!==n.nP?Number(n.nP)||0:f,this.O_=n.O_||s||(new Zi).O_,this.Iw=n.Iw||c,this.rP=n.rP||a,this.hP=n.hP||h,this.oP=void 0!==n.oP?Boolean(n.oP):l,this.aP=n.aP||v};var Ji=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];c.apply(this,t)};(Ji.prototype=h.create(c.prototype)).constructor=Ji;var Qi,ne=function(n){function t(t,r){var i;return(i=n.call(this)||this).message=t||"Unknown error",i.cause=r,c.captureStackTrace&&c.captureStackTrace(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(i),i.constructor),i}return rn(t,n),nn(t,[{key:"name",get:function(){return"BaseError"}}]),t}(Ji);!function(n){n.vI="HttpOpenError",n.wI="HttpResponseError",n.mI="HttpTimeoutError"}(Qi||(Qi={}));var te=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).yI=t,e}return rn(t,n),nn(t,[{key:"pI",get:function(){return this.yI}}]),t}(ne);var re,ie,ee,ue=function(n){function t(t,r){return n.call(this,t,function(n){return"Error while opening "+n+". Invalid URL."}(t.TI),r)}return rn(t,n),nn(t,[{key:"name",get:function(){return Qi.vI}}]),t}(te),oe=function(){function n(){}var t=n.prototype;return t.pI=function(n){return j.reject(new ue(new Yi(n)))},t.PV=function(n){},t.bn=function(){},n}(),fe=function(n){function t(t){return n.call(this,"Invalid XML",t)}return rn(t,n),t}(ne),se=function(n){function t(){var t;return(t=n.apply(this,arguments)||this).g7=new Ci,t.fP=new oe,t.i=new Di,t}return rn(t,n),t.prototype.oI=function(n){throw new fe},nn(t,[{key:"p9",get:function(){return this.g7}},{key:"v7",get:function(){return!1}},{key:"JY",get:function(){return!1}},{key:"y7",get:function(){return!1}},{key:"vZ",get:function(){return!1}},{key:"uM",get:function(){return this.i}},{key:"A7",get:function(){return{b7:Sn}}},{key:"T7",get:function(){return"default"}},{key:"S7",get:function(){return"unknown"}},{key:"Gf",get:function(){return this.fP}}]),t}(mi);!function(n){n}(new se),function(n){n[n.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",n[n.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4"}(re||(re={})),function(n){n[n.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",n[n.LICENSE_ERROR=2e3]="LICENSE_ERROR",n[n.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",n[n.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",n[n.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",n[n.LICENSE_INVALID_FEATURE=2004]="LICENSE_INVALID_FEATURE",n[n.SOURCE_INVALID=3e3]="SOURCE_INVALID",n[n.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",n[n.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",n[n.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",n[n.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",n[n.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",n[n.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",n[n.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",n[n.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",n[n.MEDIA_ABORTED=5004]="MEDIA_ABORTED",n[n.NETWORK_ERROR=6e3]="NETWORK_ERROR",n[n.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",n[n.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",n[n.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",n[n.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",n[n.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",n[n.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",n[n.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",n[n.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",n[n.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",n[n.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",n[n.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",n[n.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",n[n.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",n[n.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",n[n.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",n[n.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",n[n.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",n[n.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",n[n.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",n[n.AD_ERROR=1e4]="AD_ERROR",n[n.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",n[n.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR",n[n.CACHE_SOURCE_ERROR=12e3]="CACHE_SOURCE_ERROR",n[n.CACHE_CONTENT_PROTECTION_ERROR=12001]="CACHE_CONTENT_PROTECTION_ERROR"}(ie||(ie={})),function(n){n[n.CONFIGURATION=1]="CONFIGURATION",n[n.LICENSE=2]="LICENSE",n[n.SOURCE=3]="SOURCE",n[n.MANIFEST=4]="MANIFEST",n[n.MEDIA=5]="MEDIA",n[n.NETWORK=6]="NETWORK",n[n.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",n[n.SUBTITLE=8]="SUBTITLE",n[n.VR=9]="VR",n[n.AD=10]="AD",n[n.FULLSCREEN=11]="FULLSCREEN",n[n.CACHE=12]="CACHE"}(ee||(ee={})),function(n){n.fromCode=function(t){var r=l.floor(t/1e3);if(r in n)return r;throw new a("Invalid error code: "+t)}}(ee||(ee={}));var ce=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).code=t,e}return rn(t,n),nn(t,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return ee.fromCode(this.code)}}]),t}(ne);var ae,he=function(){function n(n){this.encoding=n}var t=n.prototype;return t.encode=function(n){if(!n)return new d(0);for(var t=new d(n.length),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},t.encodeInto=function(n,t){for(var r=l.min(n.length,t.byteLength),i=0;i<r;i++)t[i]=n.charCodeAt(i);return{read:r,written:r}},n}(),le=function(){function n(n,t){this.encoding=n,this.fatal=(null==t?void 0:t.fatal)||!1,this.ignoreBOM=(null==t?void 0:t.ignoreBOM)||!1}return n.prototype.decode=function(n,t){return n?(r=n instanceof ArrayBuffer?new d(n):new d(n.buffer,n.byteOffset,n.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},n}();var ve=new Array(32).fill(void 0);function ye(n){return ve[n]}ve.push(void 0,null,!0,!1);var _e=ve.length;function de(n){var t=ye(n);return function(n){n<36||(ve[n]=_e,_e=n)}(n),t}var we=new le("utf-8",{ignoreBOM:!0,fatal:!0});we.decode();var Ie=new d;function Ee(){return Ie.buffer!==ae.memory.buffer&&(Ie=new d(ae.memory.buffer)),Ie}function pe(n,t){return we.decode(Ee().subarray(n,n+t))}function ge(n){_e===ve.length&&ve.push(ve.length+1);var t=_e;return _e=ve[t],ve[t]=n,t}var Re=0;function Se(n,t){var r=t(1*n.length);return Ee().set(n,r/1),Re=n.length,r}var Oe=new Int32Array;function Te(){return Oe.buffer!==ae.memory.buffer&&(Oe=new Int32Array(ae.memory.buffer)),Oe}function ke(n){return null==n}function be(n,t){return Ee().subarray(n/1,n/1+t)}var me=new he("utf-8"),Ae="function"==typeof me.encodeInto?function(n,t){return me.encodeInto(n,t)}:function(n,t){var r=me.encode(n);return t.set(r),{read:n.length,written:r.length}};function Ne(n,t){return Ce.apply(this,arguments)}function Ce(){return Ce=Vi((function(n,t){var r,i,e;return Bi(this,(function(u){switch(u.label){case 0:if(!("function"==typeof Response&&n instanceof Response))return[3,7];if("function"!=typeof WebAssembly.instantiateStreaming)return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,WebAssembly.instantiateStreaming(n,t)];case 2:return[2,u.sent()];case 3:if(r=u.sent(),"application/wasm"==n.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r),[3,4];case 4:return[4,n.arrayBuffer()];case 5:return i=u.sent(),[4,WebAssembly.instantiate(i,t)];case 6:return[2,u.sent()];case 7:return[4,WebAssembly.instantiate(n,t)];case 8:return(e=u.sent())instanceof WebAssembly.Instance?[2,{instance:e,module:n}]:[2,e];case 9:return[2]}}))})),Ce.apply(this,arguments)}function De(){var n={wbg:{}};return n.wbg.__wbg_data_04446ebb06f2ac29=function(n,t){var r=Se(ye(t).data,ae.__wbindgen_export_0),i=Re;Te()[n/4+1]=i,Te()[n/4+0]=r},n.wbg.__wbg_metadata_792d18db149354e3=function(n){var t=ye(n).metadata;return ke(t)?0:ge(t)},n.wbg.__wbg_spsnal_949e2b91c67b1988=function(n,t){var r=ye(t).sps_nal,i=ke(r)?0:Se(r,ae.__wbindgen_export_0),e=Re;Te()[n/4+1]=e,Te()[n/4+0]=i},n.wbg.__wbg_ppsnal_0b287208c8bee8dc=function(n,t){var r=ye(t).pps_nal,i=ke(r)?0:Se(r,ae.__wbindgen_export_0),e=Re;Te()[n/4+1]=e,Te()[n/4+0]=i},n.wbg.__wbg_videopid_ed2a669b38200ee4=function(n){var t=ye(n).video_pid;return ke(t)?16777215:t},n.wbg.__wbg_audiopid_736a11dfa0cbf838=function(n){var t=ye(n).audio_pid;return ke(t)?16777215:t},n.wbg.__wbg_programmaptablepid_8b78c2977f51f0e8=function(n){var t=ye(n).program_map_table_pid;return ke(t)?16777215:t},n.wbg.__wbindgen_object_drop_ref=function(n){de(n)},n.wbg.__wbg_createoutputdata_eadfe6fd26e5edb1=function(n,t,r,i,e,u,o,f){var s,c,a,h;0!==n&&(s=be(n,t).slice(),ae.__wbindgen_export_1(n,1*t)),0!==r&&(c=be(r,i).slice(),ae.__wbindgen_export_1(r,1*i)),0!==e&&(a=be(e,u).slice(),ae.__wbindgen_export_1(e,1*u)),0!==o&&(h=be(o,f).slice(),ae.__wbindgen_export_1(o,1*f));var l=function(n,t,r,i){return{video_init:n,audio_init:t,video_media:r,audio_media:i}}(s,c,a,h);return ge(l)},n.wbg.__wbg_createtimestampwithbase_6dd9c5e5d3d34518=function(n,t,r){var i=function(n,t,r){return{low:n,high:t,base:r}}(n>>>0,t>>>0,r>>>0);return ge(i)},n.wbg.__wbg_createoutputmetadata_85c4182fc10c40bd=function(n,t,r,i,e,u,o,f,s,c,a,h,l,v,y,_){var d,w,I,E;0!==r&&(d=pe(r,i).slice(),ae.__wbindgen_export_1(r,1*i)),0!==e&&(w=pe(e,u).slice(),ae.__wbindgen_export_1(e,1*u)),0!==o&&(I=be(o,f).slice(),ae.__wbindgen_export_1(o,1*f)),0!==s&&(E=be(s,c).slice(),ae.__wbindgen_export_1(s,1*c));var p=function(n,t,r,i,e,u,o,f,s,c,a){return{video_pid:n,audio_pid:t,video_codec:r,audio_codec:i,sps_nal:e,pps_nal:u,first_decode_timestamp:o,first_presentation_timestamp:f,first_video_presentation_timestamp:s,program_map_table_pid:c,video_frame_rate:a}}(16777215===n?void 0:n,16777215===t?void 0:t,d,w,I,E,de(a),de(h),de(l),16777215===v?void 0:v,0===y?void 0:_);return ge(p)},n.wbg.__wbg_createoutput_c1b51e340fe44a00=function(n,t){var r=function(n,t){return{data:n,metadata:t}}(de(n),de(t));return ge(r)},n.wbg.__wbindgen_string_new=function(n,t){return ge(pe(n,t))},n.wbg.__wbg_new_693216e109162396=function(){return ge(new c)},n.wbg.__wbg_stack_0ddaca5d1abfb52f=function(n,t){var r=function(n,t,r){if(void 0===r){var i=me.encode(n),e=t(i.length);return Ee().subarray(e,e+i.length).set(i),Re=i.length,e}for(var u=n.length,o=t(u),f=Ee(),s=0;s<u;s++){var c=n.charCodeAt(s);if(c>127)break;f[o+s]=c}if(s!==u){0!==s&&(n=n.slice(s)),o=r(o,u,u=s+3*n.length);var a=Ee().subarray(o+s,o+u);s+=Ae(n,a).written}return Re=s,o}(ye(t).stack,ae.__wbindgen_export_0,ae.__wbindgen_export_2),i=Re;Te()[n/4+1]=i,Te()[n/4+0]=r},n.wbg.__wbg_error_09919627ac0992f5=function(n,t){try{console.error(pe(n,t))}finally{ae.__wbindgen_export_1(n,t)}},n}function Pe(n,t){return ae=n.exports,Fe.__wbindgen_wasm_module=t,Oe=new Int32Array,Ie=new d,ae.__wbindgen_start(),ae}function Fe(n){return Le.apply(this,arguments)}function Le(){return Le=Vi((function(n){var t,r,i,e;return Bi(this,(function(u){switch(u.label){case 0:return void 0===n&&(n=new URL("theomux_bg.wasm",void 0)),t=De(),("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n)),[4,n];case 1:return[4,Ne.apply(void 0,[u.sent(),t])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,Pe(i,e)]}}))})),Le.apply(this,arguments)}function Ue(){return Ue=Vi((function(n){var t;return Bi(this,(function(r){switch(r.label){case 0:return"string"==typeof n&&(n=new URL(n)),n instanceof WebAssembly.Module?(t=n,[3,3]):[3,1];case 1:return[4,We(n)];case 2:t=r.sent(),r.label=3;case 3:return[4,Fe(t)];case 4:return r.sent(),[2,new Me(t)]}}))})),Ue.apply(this,arguments)}var Me=function(){function n(n){this.TR=n}var t=n.prototype;return t.mpegts_to_fmp4=function(n){return function(n){try{var t=ae.__wbindgen_add_to_stack_pointer(-16);ae.mpegts_to_fmp4(t,ge(n));var r=Te()[t/4+0],i=Te()[t/4+1];if(Te()[t/4+2])throw de(i);return de(r)}finally{ae.__wbindgen_add_to_stack_pointer(16)}}(n)},t.raw_audio_to_fmp4=function(n){return function(n){try{var t=ae.__wbindgen_add_to_stack_pointer(-16);ae.raw_audio_to_fmp4(t,ge(n));var r=Te()[t/4+0],i=Te()[t/4+1];if(Te()[t/4+2])throw de(i);return de(r)}finally{ae.__wbindgen_add_to_stack_pointer(16)}}(n)},t.restart=function(){var n=this;return Vi((function(){return Bi(this,(function(t){switch(t.label){case 0:return[4,Fe(n.TR)];case 1:return t.sent(),[2]}}))}))()},n}();function We(n){return Ve.apply(this,arguments)}function Ve(){return Ve=Vi((function(n){var t,r,i,e;return Bi(this,(function(u){switch(u.label){case 0:return"http:"!==n.protocol&&"https:"!==n.protocol?[3,8]:[4,fetch(n.href)];case 1:if(t=u.sent(),"function"!=typeof WebAssembly.compileStreaming)return[3,5];u.label=2;case 2:return u.trys.push([2,4,,5]),[4,WebAssembly.compileStreaming(t)];case 3:return[2,u.sent()];case 4:if(r=u.sent(),"application/wasm"===t.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.compileStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.compile` which is slower. Original error:\n",r),[3,5];case 5:return[4,t.arrayBuffer()];case 6:return i=u.sent(),[4,WebAssembly.compile(i)];case 7:return[2,u.sent()];case 8:return[4,Be(n.href)];case 9:return e=u.sent(),[4,WebAssembly.compile(e)];case 10:return[2,u.sent()];case 11:return[2]}}))})),Ve.apply(this,arguments)}function Be(n){return new j((function(t,r){var i=new w;i.onload=function(){t(i.response||new ArrayBuffer(0))},i.onerror=function(){r(new a('Failed to fetch "'+n+'", status '+i.status))},i.open("GET",n,!0),i.responseType="arraybuffer",i.send()}))}var xe=new URL("./THEOplayer.transmux.wasm",i.href);!function(n){var t,r=j.resolve(n()).then((function(n){t=n,r=void 0,self.postMessage({NLt:"6.13.0"})}),(function(n){var t=n,r={success:!1,error:t.message,errorCode:t instanceof ce?t.code:ie.MEDIA_DECODE_ERROR};self.postMessage(r)}));function i(){return(i=Vi((function(n){var i,e,u,o,f,s;return Bi(this,(function(a){switch(a.label){case 0:return void 0===r?[3,2]:[4,r];case 1:a.sent(),a.label=2;case 2:if(u=n.id,n.type===re.MPEGTS_TO_FMP4)o=t.mpegts_to_fmp4(n.input);else{if(n.type!==re.RAW_AUDIO_TO_FMP4)throw new c("Unknown request type: "+n.type);o=t.raw_audio_to_fmp4(n.input)}return f={success:!0,requestId:u,output:o},s=[null==(i=n.input.metadata)?void 0:i.sps_nal,null==(e=n.input.metadata)?void 0:e.pps_nal,n.input.data,o.data.video_init,o.data.audio_init,o.data.video_media,o.data.audio_media].filter(pn).map((function(n){return n.buffer})),self.postMessage(f,s),[2]}}))}))).apply(this,arguments)}self.addEventListener("message",(function(n){var t=n.data.id;(function(n){return i.apply(this,arguments)})(n.data).catch((function(n){var r=n,i={success:!1,requestId:t,error:r.message,errorCode:r instanceof ce?r.code:ie.MEDIA_DECODE_ERROR};self.postMessage(i)}))}))}((function(){return function(n){return Ue.apply(this,arguments)}(xe)}))}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof a?a:"undefined"!=typeof global?global:this);
|
|
30
|
+
!function(n){"use strict";var t=n.window,r=n.document,i=n.location,e=n.navigator,u=n.setTimeout,o=n.clearTimeout,f=n.setInterval,s=n.clearInterval,c=n.Error,a=n.TypeError,h=(n.SyntaxError,n.Object),l=n.Math,v=n.parseInt,_=n.parseFloat,y=n.isNaN,d=n.Uint8Array,w=(n.Worker,n.WorkerGlobalScope,n.XMLHttpRequest);var E=u;function I(n){return Boolean(n&&void 0!==n.length)}function p(){}function R(n){if(!(this instanceof R))throw new a("Promises must be constructed via new");if("function"!=typeof n)throw new a("not a function");this.Pa=0,this.M3t=!1,this.iut=void 0,this.U3t=[],b(n,this)}function g(n,t){for(;3===n.Pa;)n=n.iut;0!==n.Pa?(n.M3t=!0,R.F3t((function(){var r=1===n.Pa?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.iut)}catch(n){return void S(t.promise,n)}O(t.promise,i)}else(1===n.Pa?O:S)(t.promise,n.iut)}))):n.U3t.push(t)}function O(n,t){try{if(t===n)throw new a("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof R)return n.Pa=3,n.iut=t,void T(n);if("function"==typeof r)return void b(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.Pa=1,n.iut=t,T(n)}catch(t){S(n,t)}}function S(n,t){n.Pa=2,n.iut=t,T(n)}function T(n){2===n.Pa&&0===n.U3t.length&&R.F3t((function(){n.M3t||R.H3t(n.iut)}));for(var t=0,r=n.U3t.length;t<r;t++)g(n,n.U3t[t]);n.U3t=null}function k(n,t,r){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function b(n,t){var r=!1;try{n((function(n){r||(r=!0,O(t,n))}),(function(n){r||(r=!0,S(t,n))}))}catch(n){if(r)return;r=!0,S(t,n)}}R.prototype.catch=function(n){return this.then(null,n)},R.prototype.then=function(n,t){var r=new this.constructor(p);return g(this,new k(n,t,r)),r},R.prototype.finally=function(n){var t=this.constructor;return this.then((function(r){return t.resolve(n()).then((function(){return r}))}),(function(r){return t.resolve(n()).then((function(){return t.reject(r)}))}))},R.all=function(n){return new R((function(t,r){if(!I(n))return r(new a("Promise.all accepts an array"));var i=Array.prototype.slice.call(n);if(0===i.length)return t([]);var e=i.length;function u(n,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var f=o.then;if("function"==typeof f)return void f.call(o,(function(t){u(n,t)}),r)}i[n]=o,0==--e&&t(i)}catch(n){r(n)}}for(var o=0;o<i.length;o++)u(o,i[o])}))},R.allSettled=function(n){return new this((function(t,r){if(!n||void 0===n.length)return r(new a((void 0===n?"undefined":function(n){return n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n}(n))+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(n);if(0===i.length)return t([]);var e=i.length;function u(n,r){if(r&&("object"==typeof r||"function"==typeof r)){var o=r.then;if("function"==typeof o)return void o.call(r,(function(t){u(n,t)}),(function(r){i[n]={status:"rejected",reason:r},0==--e&&t(i)}))}i[n]={status:"fulfilled",value:r},0==--e&&t(i)}for(var o=0;o<i.length;o++)u(o,i[o])}))},R.resolve=function(n){return n&&"object"==typeof n&&n.constructor===R?n:new R((function(t){t(n)}))},R.reject=function(n){return new R((function(t,r){r(n)}))},R.race=function(n){return new R((function(t,r){if(!I(n))return r(new a("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)R.resolve(n[i]).then(t,r)}))},R.F3t="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){E(n,0)},R.H3t=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};var m=function(){var n=self.Promise;if(void 0!==n)try{if(-1!==n.toString().indexOf("[native code]"))return n}catch(n){}}(),A=e?e.userAgent:"",N=A.match(/Firefox\/([0-9]+)/i),C=null!=N,D=N?Number(N[1]):0,P=A.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),L=null!=P,F=P?Number(P[3]):0,U=function(){function n(n){this.QC=0,this.ud=0,this.Hx=[],this.V3t=n}return n.prototype.X3t=function(n){var t=this.length();this.z3t(t+1);var r=this.ud+t&this.V3t-1;this.Hx[r]=n,this.QC=t+1},n.prototype.push=function(n){var t=this.length()+1;if(this.V3t<t)this.X3t(n);else{var r=this.ud+t-1,i=this.V3t-1;this.Hx[r&i]=n,this.QC=t}},n.prototype.shift=function(){var n=this.ud,t=this.Hx[n];return this.Hx[n]=void 0,this.ud=n+1&this.V3t-1,this.QC--,t},n.prototype.length=function(){return this.QC},n.prototype.z3t=function(n){this.V3t<n&&this.W3t(this.V3t<<1)},n.prototype.W3t=function(n){var t=this.V3t;this.V3t=n;var r=this.ud+this.QC&t-1;!function(n,t,r,i){for(var e=0;e<i;++e)n[e+r]=n[e+t],n[e+t]=void 0}(this.Hx,0,t,r)},n}();var M="unhandledrejection",W=self.PromiseRejectionEvent,V=self.CustomEvent;function H(n){return new W(M,{reason:n,promise:m.reject(n).catch((function(){})),cancelable:!0})}function B(n){var t=new V(M,{detail:{reason:n},cancelable:!0});return h.defineProperty(t,"reason",{value:n}),t}function x(n){var t=r.createEvent("CustomEvent");return t.initCustomEvent(M,!1,!0,{reason:n}),t}var G,j,K,q,z,X,$,Y,Z,J=function(n){return J=function(){try{var n=m.resolve(),t="error",r=new W(M,{reason:t,promise:n});return M===r.type&&t===r.reason}catch(n){}return!1}()?H:function(){try{var n="error",t=new V(M,{detail:{reason:n}});return M===t.type&&n===t.detail.reason}catch(n){}return!1}()?B:x,J(n)};function Q(n,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),h.defineProperty(n,i.key,i)}}function nn(n,t,r){return t&&Q(n.prototype,t),r&&Q(n,r),n}function tn(n,t){return tn=h.setPrototypeOf||function(n,t){return n.__proto__=t,n},tn(n,t)}function rn(n,t){if("function"!=typeof t&&null!==t)throw new a("Super expression must either be null or a function");n.prototype=h.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&tn(n,t)}function en(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=n[r];return i}function un(n,t){if(n){if("string"==typeof n)return en(n,t);var r=h.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?en(n,t):void 0}}function on(n){return function(n){if(Array.isArray(n))return en(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||un(n)||function(){throw new a("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}m&&!(C&&D<60||L&&F<15)?j=m:(j=R,$=null!==(G=function(){var n=self.queueMicrotask;if("function"==typeof n)return function(t){return n(t)};var t=m;if(t&&"function"==typeof t.resolve){var r=t.resolve();return function(n){return r.then(n)}}}())&&void 0!==G?G:R.F3t,K=$,q=new U(16),z=!1,(Y={A$:function(n){q.push(n),z||(z=!0,K(X))},EV:X=function(){for(;q.length()>0;)q.shift()();z=!1}}).EV,R.F3t=Y.A$,R.H3t=function(n){try{var t=J(n);if(!self.dispatchEvent(t)||t.defaultPrevented)return}catch(n){}u((function(){throw new c("Unhandled promise rejection: ".concat(n))}),0)}),function(n){n.SR="web",n.kR="android",n.ER="android-tv",n.IR="ios",n.RR="tvos",n.PR="chromecast",n.xR="theoliveweb"}(Z||(Z={}));var fn=e?e.userAgent:"",sn=fn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),cn=fn.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),an=fn.match(/Android ([0-9\.]+)/i),hn=fn.match(/Windows NT ([0-9\.]+)/i),ln=fn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),vn=fn.match(/Firefox\/([0-9\.]+)/i),_n=fn.match(/OPR\/(\d+\.\d+)/i),yn=fn.match(/Tizen ([0-9\.]+)/i),dn=fn.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),wn=function(){function n(){this.NR=Boolean("ontouchstart"in self||self.DocumentTouch&&r instanceof self.DocumentTouch||e&&e.msMaxTouchPoints),this.LR=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(fn)||/(macintosh|mac(?=_powerpc)\s)/i.test(fn),this.MR=/Windows NT/i.test(fn),this.UR=hn?_(hn[1]):0,this.WR=/Android/i.test(fn),this.zR=an?_(an[1]):0,this.GR=/windows phone (8|8\.1)/i.test(fn),this.KR=/iPhone/i.test(fn),this.YR=/iPad/i.test(fn),this.JR=this.LR&&this.NR&&!this.YR,this.tP=/iPod/i.test(fn),this.uP=/Mobile Safari/i.test(fn),this.hP=/EOS\d*STB/i.test(fn),this.oP=/APP\d*STB/i.test(fn),this.iP=(this.KR||this.YR||this.JR||this.tP)&&!this.GR,this.nP=dn?_(dn[2]):0,this.cP=this.GR||this.iP||this.WR||this.uP,this.dP=/CriOS/i.test(fn),this._P=Boolean(self.chrome&&/google/i.test(e.vendor))||this.dP,this.mP=this._P&&/Edg\//i.test(e.userAgent),this.yP=cn?v(cn[1],10):0,this.fC=Boolean(self.chrome||/Chrome/i.test(fn)||/CriOS/i.test(fn)),this.vP=sn?v(sn[1],10):0,this.bP=/SMART-TV.*Tizen/i.test(fn),this.SP=yn?_(yn[1]):0,this.EP=/webos|web0s/i.test(fn),this.RP=/VIZIO/i.test(fn),this.CP=/Edge\/\d+/i.test(fn),this.NP=/Trident/i.test(fn),this.BP=this.NP&&!self.ActiveXObject&&"ActiveXObject"in self,this.OP=/Vivaldi/i.test(fn),this.FP=/Firefox/i.test(fn)&&!/Seamonkey/i.test(fn),this.HP=vn?_(vn[1]):0,this.WP=/Safari/i.test(fn)&&!/Chrome/i.test(fn)&&!this.GR&&!this.bP,this.zP=ln?_(ln[2]):0,this.GP=Boolean(_n),this.KP=_n?_(_n[1]):0,this.YP=/CrKey/.test(fn),this.JP=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(fn),this.eC="web"===Z.ER,this.sC="web"===Z.kR,this.rC=this.sC||this.eC,this.oC="web"===Z.IR,this.uC="web"===Z.RR,this.lC="web"===Z.PR}return nn(n,[{key:"Ye",get:function(){return this.NR}},{key:"DR",get:function(){return this.LR}},{key:"OR",get:function(){return this.MR}},{key:"FR",get:function(){return this.UR}},{key:"HR",get:function(){return this.WR}},{key:"qR",get:function(){return this.zR}},{key:"XR",get:function(){return this.GR}},{key:"QR",get:function(){return this.KR}},{key:"jR",get:function(){return this.YR}},{key:"ZR",get:function(){return this.JR}},{key:"$R",get:function(){return this.tP}},{key:"eP",get:function(){return this.iP}},{key:"sP",get:function(){return this.nP}},{key:"rP",get:function(){return this.hP||this.oP}},{key:"aP",get:function(){return this.uP}},{key:"Ks",get:function(){return this.cP}},{key:"lP",get:function(){return this.dP}},{key:"fP",get:function(){return this._P}},{key:"gP",get:function(){return this.vP}},{key:"wP",get:function(){return this.mP}},{key:"pP",get:function(){return this.yP}},{key:"AP",get:function(){return this.bP}},{key:"TP",get:function(){return this.SP}},{key:"kP",get:function(){return this.EP}},{key:"IP",get:function(){return this.RP}},{key:"PP",get:function(){return this.CP}},{key:"xP",get:function(){return this.NP}},{key:"DP",get:function(){return this.BP}},{key:"LP",get:function(){return this.OP}},{key:"MP",get:function(){return this.FP}},{key:"UP",get:function(){return this.HP}},{key:"VP",get:function(){return this.WP}},{key:"qP",get:function(){return this.zP}},{key:"XP",get:function(){return this.GP}},{key:"QP",get:function(){return this.KP}},{key:"jP",get:function(){return this.YP}},{key:"ZP",get:function(){return this.JP}},{key:"$P",get:function(){return!(!this.kP&&!this.AP)&&this.gP<=56}},{key:"tC",get:function(){return this.eC}},{key:"iC",get:function(){return this.sC}},{key:"nC",get:function(){return this.rC}},{key:"hC",get:function(){return this.oC}},{key:"aC",get:function(){return this.uC}},{key:"cC",get:function(){return this.lC}},{key:"dC",get:function(){return this.fC}}]),n}();wn._C=new wn;var En=wn._C,In={}.toString;function pn(n){return null!=n}Array.isArray;function Rn(n){return"object"==typeof n&&null!==n}function gn(n){return function(n){return"function"==typeof n}(n)||Rn(n)}var On=function(){},Sn=!(En.xP&&!En.DP),Tn=self.console;function kn(n){if(Rn(n))try{return JSON.stringify(n)}catch(n){}return n}function bn(n){return n.map(kn).join(" ")}function mn(n){var t=Tn&&Tn[n];return t?t.bind&&Sn?t.bind(Tn):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];Tn[n](bn(r))}:void 0}var An=mn("log")||On,Nn=mn("warn")||An.bind(void 0,"WARNING:"),Cn=mn("error")||An.bind(void 0,"ERROR:"),Dn=function(){var n=Tn&&Tn.assert;return n?n.bind&&Sn?n.bind(Tn):function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];Tn.assert(n,bn(r))}:function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n||Cn.apply(void 0,["Assertion failed:"].concat(on(r)))}}(),Pn=null;try{Pn=new WebAssembly.Instance(new WebAssembly.Module(new d([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(K){}function Ln(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function Fn(n){return!0===(n&&n.Ry)}function Un(n){var t=l.clz32(n&-n);return n?31-t:t}Ln.prototype.Ry,h.defineProperty(Ln.prototype,"Ry",{value:!0}),Ln.isLong=Fn;var Mn={},Wn={};function Vn(n,t){var r,i,e;return t?(e=0<=(n>>>=0)&&n<256)&&(i=Wn[n])?i:(r=Bn(n,0,!0),e&&(Wn[n]=r),r):(e=-128<=(n|=0)&&n<128)&&(i=Mn[n])?i:(r=Bn(n,n<0?-1:0,!1),e&&(Mn[n]=r),r)}function Hn(n,t){if(y(n))return t?Yn:$n;if(t){if(n<0)return Yn;if(n>=qn)return tt}else{if(n<=-zn)return rt;if(n+1>=zn)return nt}return n<0?Hn(-n,t).neg():Bn(n%Kn|0,n/Kn|0,t)}function Bn(n,t,r){return new Ln(n,t,r)}Ln.fromInt=Vn,Ln.fromNumber=Hn,Ln.fromBits=Bn;var xn=l.pow;function Gn(n,t,r){if(0===n.length)throw c("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===n||"Infinity"===n||"+Infinity"===n||"-Infinity"===n)return t?Yn:$n;if((r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=n.indexOf("-"))>0)throw c("interior hyphen");if(0===i)return Gn(n.substring(1),t,r).neg();for(var e=Hn(xn(r,8)),u=$n,o=0;o<n.length;o+=8){var f=l.min(8,n.length-o),s=v(n.substring(o,o+f),r);if(f<8){var a=Hn(xn(r,f));u=u.mul(a).add(Hn(s))}else u=(u=u.mul(e)).add(Hn(s))}return u.unsigned=t,u}function jn(n,t){return"number"==typeof n?Hn(n,t):"string"==typeof n?Gn(n,t):Bn(n.low,n.high,"boolean"==typeof t?t:n.unsigned)}Ln.fromString=Gn,Ln.fromValue=jn;var Kn=4294967296,qn=Kn*Kn,zn=qn/2,Xn=Vn(1<<24),$n=Vn(0);Ln.ZERO=$n;var Yn=Vn(0,!0);Ln.UZERO=Yn;var Zn=Vn(1);Ln.ONE=Zn;var Jn=Vn(1,!0);Ln.UONE=Jn;var Qn=Vn(-1);Ln.NEG_ONE=Qn;var nt=Bn(-1,2147483647,!1);Ln.MAX_VALUE=nt;var tt=Bn(-1,-1,!0);Ln.MAX_UNSIGNED_VALUE=tt;var rt=Bn(0,-2147483648,!1);Ln.MIN_VALUE=rt;var it=Ln.prototype;it.toInt=function(){return this.unsigned?this.low>>>0:this.low},it.toNumber=function(){return this.unsigned?(this.high>>>0)*Kn+(this.low>>>0):this.high*Kn+(this.low>>>0)},it.toString=function(n){if((n=n||10)<2||36<n)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(rt)){var t=Hn(n),r=this.div(t),i=r.mul(t).sub(this);return r.toString(n)+i.toInt().toString(n)}return"-"+this.neg().toString(n)}for(var e=Hn(xn(n,6),this.unsigned),u=this,o="";;){var f=u.div(e),s=(u.sub(f.mul(e)).toInt()>>>0).toString(n);if((u=f).isZero())return s+o;for(;s.length<6;)s="0"+s;o=""+s+o}},it.getHighBits=function(){return this.high},it.getHighBitsUnsigned=function(){return this.high>>>0},it.getLowBits=function(){return this.low},it.getLowBitsUnsigned=function(){return this.low>>>0},it.getNumBitsAbs=function(){if(this.isNegative())return this.eq(rt)?64:this.neg().getNumBitsAbs();for(var n=0!=this.high?this.high:this.low,t=31;t>0&&0==(n&1<<t);t--);return 0!=this.high?t+33:t+1},it.isZero=function(){return 0===this.high&&0===this.low},it.eqz=it.isZero,it.isNegative=function(){return!this.unsigned&&this.high<0},it.isPositive=function(){return this.unsigned||this.high>=0},it.isOdd=function(){return 1==(1&this.low)},it.isEven=function(){return 0==(1&this.low)},it.equals=function(n){return Fn(n)||(n=jn(n)),(this.unsigned===n.unsigned||this.high>>>31!=1||n.high>>>31!=1)&&(this.high===n.high&&this.low===n.low)},it.eq=it.equals,it.notEquals=function(n){return!this.eq(n)},it.neq=it.notEquals,it.ne=it.notEquals,it.lessThan=function(n){return this.comp(n)<0},it.lt=it.lessThan,it.lessThanOrEqual=function(n){return this.comp(n)<=0},it.lte=it.lessThanOrEqual,it.le=it.lessThanOrEqual,it.greaterThan=function(n){return this.comp(n)>0},it.gt=it.greaterThan,it.greaterThanOrEqual=function(n){return this.comp(n)>=0},it.gte=it.greaterThanOrEqual,it.ge=it.greaterThanOrEqual,it.compare=function(n){if(Fn(n)||(n=jn(n)),this.eq(n))return 0;var t=this.isNegative(),r=n.isNegative();return t&&!r?-1:!t&&r?1:this.unsigned?n.high>>>0>this.high>>>0||n.high===this.high&&n.low>>>0>this.low>>>0?-1:1:this.sub(n).isNegative()?-1:1},it.comp=it.compare,it.negate=function(){return!this.unsigned&&this.eq(rt)?rt:this.not().add(Zn)},it.neg=it.negate,it.add=function(n){Fn(n)||(n=jn(n));var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=n.high>>>16,o=65535&n.high,f=n.low>>>16,s=0,c=0,a=0,h=0;return a+=(h+=e+(65535&n.low))>>>16,c+=(a+=i+f)>>>16,s+=(c+=r+o)>>>16,s+=t+u,Bn((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},it.subtract=function(n){return Fn(n)||(n=jn(n)),this.add(n.neg())},it.sub=it.subtract,it.multiply=function(n){if(this.isZero())return this;if(Fn(n)||(n=jn(n)),Pn)return Bn(Pn.mul(this.low,this.high,n.low,n.high),Pn.get_high(),this.unsigned);if(n.isZero())return this.unsigned?Yn:$n;if(this.eq(rt))return n.isOdd()?rt:$n;if(n.eq(rt))return this.isOdd()?rt:$n;if(this.isNegative())return n.isNegative()?this.neg().mul(n.neg()):this.neg().mul(n).neg();if(n.isNegative())return this.mul(n.neg()).neg();if(this.lt(Xn)&&n.lt(Xn))return Hn(this.toNumber()*n.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=n.high>>>16,o=65535&n.high,f=n.low>>>16,s=65535&n.low,c=0,a=0,h=0,l=0;return h+=(l+=e*s)>>>16,a+=(h+=i*s)>>>16,h&=65535,a+=(h+=e*f)>>>16,c+=(a+=r*s)>>>16,a&=65535,c+=(a+=i*f)>>>16,a&=65535,c+=(a+=e*o)>>>16,c+=t*s+r*f+i*o+e*u,Bn((h&=65535)<<16|(l&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},it.mul=it.multiply,it.divide=function(n){if(Fn(n)||(n=jn(n)),n.isZero())throw c("division by zero");var t,r,i;if(Pn)return this.unsigned||-2147483648!==this.high||-1!==n.low||-1!==n.high?Bn((this.unsigned?Pn.div_u:Pn.div_s)(this.low,this.high,n.low,n.high),Pn.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?Yn:$n;if(this.unsigned){if(n.unsigned||(n=n.toUnsigned()),n.gt(this))return Yn;if(n.gt(this.shru(1)))return Jn;i=Yn}else{if(this.eq(rt))return n.eq(Zn)||n.eq(Qn)?rt:n.eq(rt)?Zn:(t=this.shr(1).div(n).shl(1)).eq($n)?n.isNegative()?Zn:Qn:(r=this.sub(n.mul(t)),i=t.add(r.div(n)));if(n.eq(rt))return this.unsigned?Yn:$n;if(this.isNegative())return n.isNegative()?this.neg().div(n.neg()):this.neg().div(n).neg();if(n.isNegative())return this.div(n.neg()).neg();i=$n}for(r=this;r.gte(n);){t=l.max(1,l.floor(r.toNumber()/n.toNumber()));for(var e=l.ceil(l.log(t)/l.LN2),u=e<=48?1:xn(2,e-48),o=Hn(t),f=o.mul(n);f.isNegative()||f.gt(r);)f=(o=Hn(t-=u,this.unsigned)).mul(n);o.isZero()&&(o=Zn),i=i.add(o),r=r.sub(f)}return i},it.div=it.divide,it.modulo=function(n){return Fn(n)||(n=jn(n)),Pn?Bn((this.unsigned?Pn.rem_u:Pn.rem_s)(this.low,this.high,n.low,n.high),Pn.get_high(),this.unsigned):this.sub(this.div(n).mul(n))},it.mod=it.modulo,it.rem=it.modulo,it.not=function(){return Bn(~this.low,~this.high,this.unsigned)},it.countLeadingZeros=function(){return this.high?l.clz32(this.high):l.clz32(this.low)+32},it.clz=it.countLeadingZeros,it.countTrailingZeros=function(){return this.low?Un(this.low):Un(this.high)+32},it.ctz=it.countTrailingZeros,it.and=function(n){return Fn(n)||(n=jn(n)),Bn(this.low&n.low,this.high&n.high,this.unsigned)},it.or=function(n){return Fn(n)||(n=jn(n)),Bn(this.low|n.low,this.high|n.high,this.unsigned)},it.xor=function(n){return Fn(n)||(n=jn(n)),Bn(this.low^n.low,this.high^n.high,this.unsigned)},it.shiftLeft=function(n){return Fn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Bn(this.low<<n,this.high<<n|this.low>>>32-n,this.unsigned):Bn(0,this.low<<n-32,this.unsigned)},it.shl=it.shiftLeft,it.shiftRight=function(n){return Fn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Bn(this.low>>>n|this.high<<32-n,this.high>>n,this.unsigned):Bn(this.high>>n-32,this.high>=0?0:-1,this.unsigned)},it.shr=it.shiftRight,it.shiftRightUnsigned=function(n){return Fn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Bn(this.low>>>n|this.high<<32-n,this.high>>>n,this.unsigned):Bn(32===n?this.high:this.high>>>n-32,0,this.unsigned)},it.shru=it.shiftRightUnsigned,it.shr_u=it.shiftRightUnsigned,it.rotateLeft=function(n){var t;return Fn(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Bn(this.high,this.low,this.unsigned):n<32?(t=32-n,Bn(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned)):(t=32-(n-=32),Bn(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned))},it.rotl=it.rotateLeft,it.rotateRight=function(n){var t;return Fn(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Bn(this.high,this.low,this.unsigned):n<32?(t=32-n,Bn(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned)):(t=32-(n-=32),Bn(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned))},it.rotr=it.rotateRight,it.toSigned=function(){return this.unsigned?Bn(this.low,this.high,!1):this},it.toUnsigned=function(){return this.unsigned?this:Bn(this.low,this.high,!0)},it.toBytes=function(n){return n?this.toBytesLE():this.toBytesBE()},it.toBytesLE=function(){var n=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]},it.toBytesBE=function(){var n=this.high,t=this.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]},Ln.fromBytes=function(n,t,r){return r?Ln.fromBytesLE(n,t):Ln.fromBytesBE(n,t)},Ln.fromBytesLE=function(n,t){return new Ln(n[0]|n[1]<<8|n[2]<<16|n[3]<<24,n[4]|n[5]<<8|n[6]<<16|n[7]<<24,t)},Ln.fromBytesBE=function(n,t){return new Ln(n[4]<<24|n[5]<<16|n[6]<<8|n[7],n[0]<<24|n[1]<<16|n[2]<<8|n[3],t)};var et=Ln;l.pow(2,-52);function ut(){return Date.now()||(new Date).getTime()}et.fromNumber(9007199254740991);function ot(n,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),h.defineProperty(n,i.key,i)}}function ft(n,t){var r=function(n,t){var r=n.length;if(r<=1)return n;for(var i=new Array(r),e=1;e<r;e*=2){st(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&st(r,null,n.length,n),n}function st(n,t,r,i){var e,u,o,f,s,c=n.length,a=0,h=2*r;for(e=0;e<c;e+=h)for(o=(u=e+r)+r,u>c&&(u=c),o>c&&(o=c),f=e,s=u;;)if(f<u&&s<o)t(n[f],n[s])<=0?i[a++]=n[f++]:i[a++]=n[s++];else if(f<u)i[a++]=n[f++];else{if(!(s<o))break;i[a++]=n[s++]}}var ct=/[a-zA-Z]/,at=/[0-9]/,ht=/[0-9a-fA-F]/,lt=/^0x/i,vt=/^[0-9]+$/,_t=/^[0-9a-fA-F]+$/,yt=/^[0-7]+$/,dt=h.prototype.toString,wt=Array.isArray||function(n){return"[object Array]"===dt.call(n)},Et="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function It(n){return wt(n)?n:Array.from(n)}function pt(n,t,r){var i=n[t];n[t]=n[r],n[r]=i}function Rt(n){return n>=65&&n<=90}function gt(n){return Rt(n)||function(n){return n>=97&&n<=122}(n)}function Ot(n){return n>=48&&n<=57}function St(n){return Ot(n)||gt(n)}function Tt(n){return Ot(n)||n>=65&&n<=70||n>=97&&n<=102}function kt(n){return Rt(n)?n+32:n}function bt(n){return Ot(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function mt(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var At=l.min,Nt=String.fromCharCode,Ct=16384;function Dt(n){for(var t=n.length,r=[],i=0;i<t;i+=Ct){var e=At(i+Ct,t);r.push(Nt.apply(null,n.slice(i,e)))}return r.join("")}var Pt=2147483647,Lt=/[^\0-\x7E]/,Ft=/[\x2E\u3002\uFF0E\uFF61]/g,Ut={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mt=l.floor,Wt=String.fromCharCode;function Vt(n){throw new RangeError(Ut[n])}function Ht(n){for(var t=[],r=0,i=n.length;r<i;){var e=n.charCodeAt(r++);if(e>=55296&&e<=56319&&r<i){var u=n.charCodeAt(r++);56320==(64512&u)?t.push(((1023&e)<<10)+(1023&u)+65536):(t.push(e),r--)}else t.push(e)}return t}var Bt,xt,Gt,jt=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},Kt=function(n,t,r){var i=0;for(n=r?Mt(n/700):n>>1,n+=Mt(n/t);n>455;i+=36)n=Mt(n/35);return Mt(i+36*n/(n+38))},qt=function(n){return function(n,t){var r=n.split("@"),i="";r.length>1&&(i=r[0]+"@",n=r[1]);var e=function(n,t){for(var r=[],i=n.length;i--;)r[i]=t(n[i]);return r}((n=n.replace(Ft,".")).split("."),t).join(".");return i+e}(n,(function(n){return Lt.test(n)?"xn--"+function(n){for(var t=[],r=(n=Ht(n)).length,i=128,e=0,u=72,o=0,f=n;o<f.length;o++){var s=f[o];s<128&&t.push(Wt(s))}var c=t.length,a=c;for(c&&t.push("-");a<r;){for(var h=Pt,l=0,v=n;l<v.length;l++){var _=v[l];_>=i&&_<h&&(h=_)}var y=a+1;h-i>Mt((Pt-e)/y)&&Vt("overflow"),e+=(h-i)*y,i=h;for(var d=0,w=n;d<w.length;d++){var E=w[d];if(E<i&&++e>Pt&&Vt("overflow"),E==i){for(var I=e,p=36;;p+=36){var R=p<=u?1:p>=u+26?26:p-u;if(I<R)break;var g=I-R,O=36-R;t.push(Wt(jt(R+g%O,0))),I=Mt(g/O)}t.push(Wt(jt(I,0))),u=Kt(e,y,a==c),e=0,++a}}++e,++i}return t.join("")}(n):n}))};function zt(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];i>65535&&(i-=65536,t.push(i>>>10&1023|55296),i=56320|1023&i),t.push(i)}return Dt(t)}function Xt(n){if(n>=55296&&n<=57343)throw new c("Lone surrogate U+"+n.toString(16).toUpperCase()+" is not a scalar value")}function $t(n,t){return n>>t&63|128}function Yt(n,t){0!=(4294967168&n)?(0==(4294965248&n)?t.push(n>>6&31|192):0==(4294901760&n)?(Xt(n),t.push(n>>12&15|224),t.push($t(n,6))):0==(4292870144&n)&&(t.push(n>>18&7|240),t.push($t(n,12)),t.push($t(n,6))),t.push(63&n|128)):t.push(n)}function Zt(n){for(var t=[],r=0;r<n.length;r++){Yt(n[r],t)}return t}function Jt(){if(Gt>=xt)throw new c("Invalid byte index");var n=255&Bt[Gt];if(Gt++,128==(192&n))return 63&n;throw new c("Invalid continuation byte")}function Qt(){var n,t;if(Gt>xt)throw new c("Invalid byte index");if(Gt===xt)return!1;if(n=255&Bt[Gt],Gt++,0==(128&n))return n;if(192==(224&n)){if((t=(31&n)<<6|Jt())>=128)return t;throw new c("Invalid continuation byte")}if(224==(240&n)){if((t=(15&n)<<12|Jt()<<6|Jt())>=2048)return Xt(t),t;throw new c("Invalid continuation byte")}if(240==(248&n)&&(t=(7&n)<<18|Jt()<<12|Jt()<<6|Jt())>=65536&&t<=1114111)return t;throw new c("Invalid UTF-8 detected")}function nr(n){return[37,mt(n>>4),mt(15&n)]}function tr(n){return function(n){return n>=0&&n<=31}(n)||n>126}function rr(n){return tr(n)||32===n||34===n||60===n||62===n||96===n}function ir(n){return rr(n)||35===n||63===n||123===n||125===n}function er(n){return ir(n)||47===n||58===n||59===n||61===n||64===n||n>=91&&n<=94||124===n}function ur(n){return n<33||n>126||34===n||35===n||60===n||62===n}function or(n){return ur(n)||39===n}function fr(n,t){if(!t(n))return[n];for(var r=Zt([n]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,nr(u))}return i}function sr(n,t){for(var r=[],i=0,e=Ht(n);i<e.length;i++){var u=e[i];r.push.apply(r,fr(u,t))}return zt(r)}function cr(n){return function(n){for(var t=[],r=n.length,i=0;i<r;i++){var e=n[i];if(37===e&&i+2<r&&Tt(n[i+1])&&Tt(n[i+2])){var u=bt(n[i+1])<<4|bt(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(Zt(n))}function ar(n){return zt(function(n){Bt=n.slice(),xt=Bt.length,Gt=0;for(var t,r=[];!1!==(t=Qt());)r.push(t);return r}(cr(Ht(n))))}function hr(n){var t=n.length,r=[0,0,0,0,0,0,0,0],i=0,e=null,u=0;if(u<t&&":"===n[u]){if(!(u+1<t&&":"===n[u+1]))throw new a;u+=2,e=i+=1}for(;u<t;){if(8===i)throw new a("Too many groups");if(":"!==n[u]){for(var o=0,f=0;f<4&&u<t&&ht.test(n[u]);)o=o<<4|v(n[u],16),u+=1,f+=1;if("."===n[u]){if(0===f)throw new a;if(u-=f,i>6)throw new a;for(var s=0;u<t;){var c=null;if(s>0){if(!("."===n[u]&&s<4))throw new a;u+=1}if(!at.test(n[u]))throw new a;for(;u<t&&at.test(n[u]);){var h=v(n[u],10);if(null===c)c=h;else{if(0===c)throw new a;if((c=10*c+h)>255)throw new a}u+=1}r[i]=r[i]<<8|c,2!==(s+=1)&&4!==s||(i+=1)}if(4!==s)throw new a;break}if(":"===n[u]){if((u+=1)===t)throw new a}else if(u<t)throw new a;r[i]=o,i+=1}else{if(null!==e)throw new a("Too many :: groups");u+=1,e=i+=1}}if(null!==e){var l=i-e;for(i=7;0!==i&&l>0;)pt(r,i,e+l-1),i-=1,l-=1}else if(8!==i)throw new a;return r}function lr(n){var t=10,r=vt;return lt.test(n)?(n=n.slice(2),t=16,r=_t):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=yt),""===n?0:r.test(n)?v(n,t):void 0}var vr={pJ:4},_r=/[\0\t\n\r #%/:?@\[\\\]]/,yr=/[\0\t\n\r #/:?@\[\\\]]/;function dr(n,t){if("["===n[0]){if("]"!==n[n.length-1])throw new a("Invalid IPv6 address");return{pJ:2,q8:hr(n.slice(1,-1))}}if(!t)return function(n){if(yr.test(n))throw new a("Invalid code point in opaque host");var t=sr(n,tr);return""===t?vr:{pJ:3,Hx:t}}(n);var r=function(n){var t=function(n){return qt(n.toLowerCase())}(n);return t}(ar(n));if(_r.test(r))throw new a("Invalid code point in host");var i=function(n){var t=n.split(".");if(""===t[t.length-1]&&t.pop(),!(t.length>4)){for(var r=[],i=0;i<t.length;i++){var e=t[i];if(""===e)return;var u=lr(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new a;if(r[r.length-1]>=l.pow(256,5-r.length))throw new a;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*l.pow(256,3-s);return f}}(r);return void 0!==i?{pJ:1,q8:i}:""===r?vr:{pJ:0,z8:r}}function wr(n){switch(n.pJ){case 0:return n.z8;case 1:return function(n){for(var t=[],r=n,i=1;i<=4;i++)t.push(""+(255&r)),4!==i&&t.push("."),r>>>=8;return t.reverse().join("")}(n.q8);case 2:return"["+function(n){for(var t="",r=function(n){for(var t=0,r=0,i=0,e=0,u=0;u<8;u++)0===n[u]?(0===e&&(i=u),e++):(e>r&&(t=i,r=e),e=0);return e>r&&(t=i,r=e),r>1?t:null}(n),i=!1,e=0;e<8;e++){if(i){if(0===n[e])continue;i=!1}r!==e?(t+=n[e].toString(16),7!==e&&(t+=":")):(t+=0===e?"::":":",i=!0)}return t}(n.q8)+"]";case 3:return n.Hx;case 4:return""}}var Er=/\+/g;function Ir(n){return 42===n||45===n||46===n||95===n||St(n)}function pr(n){for(var t=n.split("&"),r=[],i=0;i<t.length;i++){var e=t[i];if(""!==e){var u=e.indexOf("="),o=void 0,f=void 0;-1!==u?(o=e.slice(0,u),f=e.slice(u+1)):(o=e,f=""),o=o.replace(Er," "),f=f.replace(Er," ");var s=ar(o),c=ar(f);r.push([s,c])}}return r}function Rr(n){for(var t="",r=0;r<n.length;r++){var i=n[r];r>0&&(t+="&"),t+=gr(Zt(Ht(i[0])))+"="+gr(Zt(Ht(i[1])))}return t}function gr(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];32===i?t.push(43):Ir(i)?t.push(i):t.push.apply(t,nr(i))}return Dt(t)}var Or=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function Sr(n){var t=""+n,r=Or.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(kr(u))if(br(u)||e===r-1)i.push(Tr);else{var o=n.charCodeAt(e+1);br(o)?(i.push(u,o),e++):i.push(Tr)}else i.push(u)}return n.slice(0,t)+Dt(i)}(t,r.index):t}var Tr=65533,kr=function(n){return 55296==(63488&n)},br=function(n){return 0!=(1024&n)};function mr(n,t){var r=n[0],i=t[0];return r===i?0:r<i?-1:1}function Ar(n){n.X8.length=0}function Nr(n,t){!function(n,t){for(var r=0;r<t.length;r++)n[r]=t[r];n.length=t.length}(n.X8,pr(t))}function Cr(n){if(n.G8){var t=Rr(n.X8);""===t&&(t=null),n.G8.G8.Q8=t}}var Dr=function(){function n(n){if(void 0===n&&(n=void 0),this.G8=null,null==n)this.X8=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof Dr&&!!wt(n.X8)&&(!Et||n[Symbol.iterator]===Pr)}(n))this.X8=n.X8.slice();else if(function(n){return null!=n&&(!!wt(n)||!!Et&&"function"==typeof n[Symbol.iterator])}(n)){this.X8=[];for(var t=0,r=It(n);t<r.length;t++){var i=It(r[t]);if(2!==i.length)throw new a("Invalid name-value pair");this.X8.push([Sr(i[0]),Sr(i[1])])}}else for(var e in this.X8=[],n)h.prototype.hasOwnProperty.call(n,e)&&this.X8.push([Sr(e),Sr(n[e])]);else(n=Sr(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.X8=pr(n)}var t=n.prototype;return t.append=function(n,t){n=Sr(n),t=Sr(t),this.X8.push([n,t]),Cr(this)},t.delete=function(n){n=Sr(n);for(var t=this.X8,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}Cr(this)},t.get=function(n){n=Sr(n);for(var t=this.X8,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},t.getAll=function(n){n=Sr(n);for(var t=this.X8,r=[],i=0;i<t.length;i++){var e=t[i];e[0]===n&&r.push(e[1])}return r},t.has=function(n){n=Sr(n);for(var t=this.X8,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},t.set=function(n,t){n=Sr(n),t=Sr(t);for(var r=this.X8,i=!1,e=0;e<r.length;){var u=r[e];u[0]===n?i?r.splice(e,1):(u[1]=t,i=!0,e++):e++}i||r.push([n,t]),Cr(this)},t.sort=function(){ft(this.X8,mr),Cr(this)},t.toString=function(){return Rr(this.X8)},t.entries=function(){return new Mr(this.X8,Lr)},t.keys=function(){return new Mr(this.X8,Fr)},t.values=function(){return new Mr(this.X8,Ur)},t.forEach=function(n){var t=this;this.X8.forEach((function(r){return n(r[1],r[0],t)}))},n}(),Pr=Dr.prototype.entries;Et&&(Dr.prototype[Symbol.iterator]=Pr);var Lr=function(n){return[n[0],n[1]]},Fr=function(n){return n[0]},Ur=function(n){return n[1]},Mr=function(){function n(n,t){this.K8=0,this.X8=n,this.j8=t}return n.prototype.next=function(){return this.K8<this.X8.length?{done:!1,value:this.j8(this.X8[this.K8++])}:{done:!0,value:void 0}},n}(),Wr="null";var Vr=h.create(null);Vr.ftp=21,Vr.file=0,Vr.gopher=70,Vr.http=80,Vr.https=443,Vr.ws=80,Vr.wss=443;var Hr=/^(?:\.|%2e)$/i,Br=/^(?:\.|%2e){2}$/i;function xr(n){return Hr.test(n)}function Gr(n){return Br.test(n)}function jr(n){return void 0!==Vr[n]}function Kr(n){return jr(n.Y8)}function qr(n){return""!==n.Z8||""!==n.J8}function zr(n){var t=n.length;if(!(t>=2))return!1;if(!$r(n.slice(0,2)))return!1;if(2!==t){var r=n[2];if(47!==r&&92!==r&&63!==r&&35!==r)return!1}return!0}function Xr(n){return 2===n.length&&ct.test(n[0])&&(":"===n[1]||"|"===n[1])}function $r(n){return 2===n.length&&Xr(Dt(n))}function Yr(n){return Xr(n)&&":"===n[1]}function Zr(n){var t=n.t9;0!==t.length&&("file"===n.Y8&&1===t.length&&Yr(t[0])||t.pop())}function Jr(n){return null===n.e9||vr===n.e9||n.i9||"file"===n.Y8}var Qr=-1,ni=/\t|\n|\r/g,ti=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function ri(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new ei,n=n.replace(ti,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=Ht(n=n.replace(ni,"")),h=c.length,l=0;l<=h;){var _=l<h?c[l]:Qr;switch(e){case 0:if(!gt(_)){if(null===i){u.length=0,e=2;continue}throw new a("Invalid scheme")}u.push(kt(_)),e=1;break;case 1:if(St(_)||43===_||45===_||46===_)u.push(kt(_));else{if(58!==_){if(null===i){u.length=0,e=2,l=0;continue}throw new a("Invalid scheme")}var y=zt(u);if(null!==i){if(jr(r.Y8)&&!jr(y))return;if(!jr(r.Y8)&&jr(y))return;if((qr(r)||null!==r.a6)&&"file"===y)return;if("file"===r.Y8&&(r.e9===vr||null===r.e9))return}if(r.Y8=y,null!==i)return void(Kr(r)&&r.a6===Vr[r.Y8]&&(r.a6=null));u.length=0,"file"===r.Y8?e=13:Kr(r)&&t&&t.Y8===r.Y8?e=3:Kr(r)?e=7:47===c[l+1]?(e=4,l+=1):(r.i9=!0,r.t9.push(""),e=18)}break;case 2:if(!t||t.i9&&35!==_)throw new a("Invalid scheme");t.i9&&35===_?(r.Y8=t.Y8,r.t9=t.t9.slice(),r.Q8=t.Q8,r.s9="",r.i9=!0,e=20):"file"!==t.Y8?(e=5,l-=1):(e=13,l-=1);break;case 3:47===_&&47===c[l+1]?e=8:(e=5,l-=1);break;case 4:47===_?e=9:(e=17,l-=1);break;case 5:r.Y8=t.Y8,Qr===_?(r.Z8=t.Z8,r.J8=t.J8,r.e9=t.e9,r.a6=t.a6,r.t9=t.t9.slice(),r.Q8=t.Q8):47===_?e=6:63===_?(r.Z8=t.Z8,r.J8=t.J8,r.e9=t.e9,r.a6=t.a6,r.t9=t.t9.slice(),r.Q8="",e=19):35===_?(r.Z8=t.Z8,r.J8=t.J8,r.e9=t.e9,r.a6=t.a6,r.t9=t.t9.slice(),r.Q8=t.Q8,r.s9="",e=20):92===_&&Kr(r)?e=6:(r.Z8=t.Z8,r.J8=t.J8,r.e9=t.e9,r.a6=t.a6,r.t9=t.t9.slice(),r.t9.pop(),e=17,l-=1);break;case 6:!Kr(r)||47!==_&&92!==_?47===_?e=9:(r.Z8=t.Z8,r.J8=t.J8,r.e9=t.e9,r.a6=t.a6,e=17,l-=1):e=8;break;case 7:if(47!==_||47!==c[l+1]){e=8;continue}e=8,l+=1;break;case 8:47!==_&&92!==_&&(e=9,l-=1);break;case 9:if(64===_){o&&u.unshift(37,52,48),o=!0;for(var d=0;d<u.length;d++){var w=u[d];if(58!==w||s){var E=zt(fr(w,er));s?r.J8+=E:r.Z8+=E}else s=!0}u.length=0}else if(Qr===_||47===_||63===_||35===_||Kr(r)&&92===_){if(o&&0===u.length)throw new a("Invalid host");l-=u.length+1,u.length=0,e=10}else u.push(_);break;case 10:case 11:if(null!==i&&"file"===r.Y8)l-=1,e=15;else if(58!==_||f)if(Qr===_||47===_||63===_||35===_||Kr(r)&&92===_){if(l-=1,Kr(r)&&0===u.length)throw new a("Invalid host");if(null!==i&&0===u.length&&(qr(r)||null!==r.a6))return;var I=dr(zt(u),Kr(r));if(r.e9=I,u.length=0,e=16,null!==i)return}else 91===_?f=!0:93===_&&(f=!1),u.push(_);else{if(0===u.length)throw new a("Invalid host");var p=dr(zt(u),Kr(r));if(r.e9=p,u.length=0,e=12,11===i)return}break;case 12:if(Ot(_))u.push(_);else{if(!(Qr===_||47===_||63===_||35===_||Kr(r)&&92===_||null!==i))throw new a("Invalid port");if(0!==u.length){var R=v(zt(u),10);if(R>65535)throw new a("Invalid port");r.a6=R===Vr[r.Y8]?null:R,u.length=0}if(null!==i)return;e=16,l-=1}break;case 13:r.Y8="file",47===_||92===_?e=14:t&&"file"===t.Y8?Qr===_?(r.e9=t.e9,r.t9=t.t9.slice(),r.Q8=t.Q8):63===_?(r.e9=t.e9,r.t9=t.t9.slice(),r.Q8="",e=19):35===_?(r.e9=t.e9,r.t9=t.t9.slice(),r.Q8=t.Q8,r.s9="",e=20):(zr(c.slice(l))||(r.e9=t.e9,r.t9=t.t9.slice(),Zr(r)),e=17,l-=1):(e=17,l-=1);break;case 14:47===_||92===_?e=15:(t&&"file"===t.Y8&&!zr(c.slice(l))&&(Yr(t.t9[0])?r.t9.push(t.t9[0]):r.e9=t.e9),e=17,l-=1);break;case 15:if(Qr===_||47===_||92===_||63===_||35===_)if(l-=1,null===i&&$r(u))e=17;else if(0===u.length){if(r.e9=vr,null!==i)return;e=16}else{var g=dr(zt(u),Kr(r));if(0===g.pJ&&"localhost"===g.z8&&(g=vr),r.e9=g,null!==i)return;u.length=0,e=16}else u.push(_);break;case 16:Kr(r)?(e=17,47!==_&&92!==_&&(l-=1)):null===i&&63===_?(r.Q8="",e=19):null===i&&35===_?(r.s9="",e=20):Qr!==_&&(e=17,47!==_&&(l-=1));break;case 17:if(Qr===_||47===_||Kr(r)&&92===_||null===i&&(63===_||35===_)){var O=zt(u);if(Gr(O)?(Zr(r),47===_||Kr(r)&&92===_||r.t9.push("")):!xr(O)||47===_||Kr(r)&&92===_?xr(O)||("file"===r.Y8&&0===r.t9.length&&$r(u)&&(vr!==r.e9&&null!==r.e9&&(r.e9=vr),u[1]=58,O=zt(u)),r.t9.push(O)):r.t9.push(""),u.length=0,"file"===r.Y8&&(Qr===_||63===_||35===_))for(;r.t9.length>1&&""===r.t9[0];)r.t9.shift();63===_?(r.Q8="",e=19):35===_&&(r.s9="",e=20)}else u.push.apply(u,fr(_,ir));break;case 18:63===_?(r.Q8="",e=19):35===_?(r.s9="",e=20):Qr!==_&&(r.t9[0]+=zt(fr(_,tr)));break;case 19:null===i&&35===_?(r.s9="",e=20):Qr!==_&&(r.Q8+=zt(fr(_,Kr(r)?or:ur)));break;case 20:Qr===_||0===_||(r.s9+=zt(fr(_,rr)))}l++}return r}function ii(n,t,r,i){try{ri(n,t,r,i)}catch(n){}}var ei=function(){this.Y8="",this.Z8="",this.J8="",this.e9=null,this.a6=null,this.t9=[],this.Q8=null,this.s9=null,this.i9=!1};function ui(n){switch(n.Y8){case"blob":var t;try{t=ri(n.t9[0],null)}catch(n){return Wr}return ui(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(n,t,r){return n+"://"+wr(t)+(null===r?"":":"+r)}(n.Y8,n.e9,n.a6);default:return Wr}}var oi,fi,si=function(){function n(n,t){var r,i=null;if(null!=t)if(function(n){return null!=n&&n instanceof si&&"object"==typeof n.G8}(t))i=t.G8;else try{i=ri(String(t),null)}catch(n){throw new a("Invalid base URL: "+n.message)}try{r=ri(String(n),i)}catch(n){throw new a("Invalid URL: "+n.message)}var e=r.Q8;this.G8=r,this.Q8=function(n){var t=new Dr;return null!==n&&Nr(t,n),t}(e),this.Q8.G8=this}var t=n.prototype;return t.toString=function(){return this.href},t.toJSON=function(){return this.href},function(n,t,r){t&&ot(n.prototype,t),r&&ot(n,r)}(n,[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.Y8+":";if(null!==n.e9?(r+="//",qr(n)&&(r+=n.Z8,""!==n.J8&&(r+=":"+n.J8),r+="@"),r+=wr(n.e9),null!==n.a6&&(r+=":"+n.a6)):null===n.e9&&"file"===n.Y8&&(r+="//"),n.i9)r+=n.t9[0];else for(var i=0,e=n.t9;i<e.length;i++)r+="/"+e[i];return null!==n.Q8&&(r+="?"+n.Q8),t||null===n.s9||(r+="#"+n.s9),r}(this.G8)},set:function(n){var t;try{t=ri(String(n),null)}catch(n){throw new a("Invalid URL: "+n.message)}this.G8=t,Ar(this.Q8);var r=this.G8.Q8;null!==r&&Nr(this.Q8,r)}},{key:"origin",get:function(){return ui(this.G8)}},{key:"protocol",get:function(){return this.G8.Y8+":"},set:function(n){ii(n+":",null,this.G8,0)}},{key:"username",get:function(){return this.G8.Z8},set:function(n){Jr(this.G8)||(this.G8.Z8=sr(n,er))}},{key:"password",get:function(){return this.G8.J8},set:function(n){Jr(this.G8)||(this.G8.J8=sr(n,er))}},{key:"host",get:function(){var n=this.G8,t=n.e9;if(null===t)return"";var r=n.a6,i=wr(t);return null!==r&&(i+=":"+r),i},set:function(n){this.G8.i9||ii(n,null,this.G8,10)}},{key:"hostname",get:function(){var n=this.G8.e9;return null===n?"":wr(n)},set:function(n){this.G8.i9||ii(n,null,this.G8,11)}},{key:"port",get:function(){var n=this.G8.a6;return null===n?"":""+n},set:function(n){Jr(this.G8)||(""===n?this.G8.a6=null:ii(n,null,this.G8,12))}},{key:"pathname",get:function(){var n=this.G8.t9;return this.G8.i9?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.G8.i9||(this.G8.t9.length=0,ii(n,null,this.G8,16))}},{key:"search",get:function(){var n=this.G8.Q8;return null===n||""===n?"":"?"+n},set:function(n){n=Sr(n);var t=this.G8;if(""===n)return t.Q8=null,void Ar(this.Q8);"?"===n[0]&&(n=n.slice(1)),t.Q8="",ii(n,null,t,19),Nr(this.Q8,n)}},{key:"searchParams",get:function(){return this.Q8}},{key:"hash",get:function(){var n=this.G8.s9;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.G8.s9="",ii(n,null,this.G8,20)):this.G8.s9=null}}]),n}();function ci(n){return n.document&&n.document.baseURI||n.location.href||""}function ai(){return void 0!==r?r.createElement("video"):void 0}var hi=!!("ontouchstart"in self||self.DocumentTouch&&r instanceof self.DocumentTouch)||!(!e||!e.msMaxTouchPoints),li=(fi||(fi=ai()),fi),vi=!(!li||!li.webkitShowPlaybackTargetPicker),_i=function(){function n(){this.r9=void 0,this.w9=!1,this.Ye=hi,this.Ks=!1,this.Z6=!0}var r=n.prototype;return r.h9=function(){return 0},r.g9=function(n,t){return!0},r.v9=function(n){return n>=.3333333333333333},nn(n,[{key:"n9",get:function(){return void 0===this.r9&&(this.r9=this.h9()),this.r9}},{key:"o9",get:function(){return!En.ZP}},{key:"a9",get:function(){if(t.screen)return{width:t.screen.width,height:t.screen.height}}},{key:"D0",get:function(){return t.devicePixelRatio||1}},{key:"u9",get:function(){return vi}},{key:"_0",get:function(){return!1}},{key:"o0",get:function(){return!0}},{key:"Lw",get:function(){return En.VP||En.eP}},{key:"c9",get:function(){return!En.eP}},{key:"yL",get:function(){return!0}},{key:"Mw",get:function(){return!0}},{key:"Ow",get:function(){return!1}},{key:"l9",get:function(){}},{key:"d9",get:function(){return!0}},{key:"kY",get:function(){return!1}},{key:"f9",get:function(){return!1}},{key:"_9",get:function(){return En.IP}}]),n}(),yi=function(){var n=ai();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(En.ZR)return!1;var n=ai();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var di=function(n){function t(t){var r;return(r=n.call(this)||this).m9=t,r.m9&&(r.w9=r.m9.w9,r.Ye=r.m9.Ye,r.Z6=yi&&r.m9.Z6),r}rn(t,n);var r=t.prototype;return r.h9=function(){return this.m9?this.m9.n9:n.prototype.h9.call(this)},r.g9=function(t,r){return this.m9?this.m9.g9(t,r):n.prototype.g9.call(this,t,r)},r.v9=function(t){return this.m9?this.m9.v9(t):n.prototype.v9.call(this,t)},nn(t,[{key:"l9",get:function(){var n;return null==(n=this.m9)?void 0:n.l9}},{key:"d9",get:function(){var n,t;return null==(t=null==(n=this.m9)?void 0:n.d9)||t}}]),t}(_i),wi=function(n){function t(t){var r;return(r=n.call(this,t)||this).w9=!0,r.Ks=!0,r}return rn(t,n),nn(t,[{key:"Ow",get:function(){return En.eP}}]),t}(di);var Ei=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),t.prototype.h9=function(){return function(n){return n&&gn(oi.ManagedMediaSource)?oi.ManagedMediaSource:gn(oi.MediaSource)?oi.MediaSource:void 0}(!0)?n.prototype.h9.call(this):1},nn(t,[{key:"Ow",get:function(){return!0}}]),t}(wi),Ii=function(n){function r(){return n.apply(this,arguments)}return rn(r,n),r.prototype.g9=function(t,r){return n.prototype.g9.call(this,t,r)},nn(r,[{key:"_0",get:function(){return En.TP<3}},{key:"o0",get:function(){return En.TP>=3}},{key:"a9",get:function(){var n=this;return t.tizen&&!this.p9&&t.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.p9={width:r,height:i})})),this.p9}},{key:"kY",get:function(){return En.TP<3}},{key:"f9",get:function(){return!0}}]),r}(di),pi=function(n){function t(){return n.call(this)}return rn(t,n),t}(_i),Ri=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),t.prototype.g9=function(n,t){if(n&&n.y9&&t&&t.y9){var r=gi(n.y9,"mp4a.40.2")&&gi(t.y9,"mp4a.40.5"),i=gi(n.y9,"mp4a.40.5")&&gi(t.y9,"mp4a.40.2"),e=gi(n.y9,"mp4a.40.2")&&gi(t.y9,"mp4a.40.34"),u=gi(n.y9,"mp4a.40.34")&&gi(t.y9,"mp4a.40.2"),o=gi(n.y9,"mp4a.40.5")&&gi(t.y9,"mp4a.40.34"),f=gi(n.y9,"mp4a.40.34")&&gi(t.y9,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},nn(t,[{key:"l9",get:function(){if(En.DR)return 4096}}]),t}(pi);function gi(n,t){return n.indexOf(t)>-1}var Oi=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),t.prototype.v9=function(n){return n>=2},t}(pi),Si=function(n){function t(){var t;return(t=n.call(this)||this).w9=En.qP>=11,t.Z6=En.VP&&!(En.eP&&En.qP<10),t}return rn(t,n),t}(pi),Ti=function(n){function r(){return n.apply(this,arguments)}return rn(r,n),nn(r,[{key:"a9",get:function(){var n=this;return t.webOS&&!this.p9&&t.webOS.deviceInfo((function(t){n.p9={width:t.screenWidth,height:t.screenHeight}})),this.p9}},{key:"yL",get:function(){return!1}},{key:"f9",get:function(){return!0}}]),r}(di),ki=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),nn(t,[{key:"d9",get:function(){return!En.OR||(En.wP?92!==En.pP:En.gP>=100)}}]),t}(pi),bi=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),nn(t,[{key:"Ow",get:function(){return!0}}]),t}(di),mi=function(){function n(){this.k9=new Ai,this.I9=function(){var n=function(){if(En.MP)return new Ri;if(En.PP||En.xP)return new Oi;if(En.VP)return new Si;if(En.fP)return new ki;return new pi}();return En.eP?new Ei(n):En.Ks?new wi(n):En.AP?new Ii(n):En.kP?new Ti(n):En.DR?new bi(n):new di(n)}(),this.E9=function(){if(self.URL)try{var n=new self.URL("b","http://a");return n.pathname="c d","http://a/c%20d"===n.href}catch(n){}return!1}(),self.performance&&self.performance.now?this.V_=function(){return self.performance.now()}:this.V_=ut}var t=n.prototype;return t.A9=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];An.apply(void 0,on(t))},t.Um=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Nn.apply(void 0,on(t))},t.b9=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Cn.apply(void 0,on(t))},t.T9=function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];Dn.apply(void 0,[n].concat(on(r)))},t.q_=function(n,t){return u(n,t)},t.uZ=function(n,t){return f(n,t)},t.W_=function(n){o(n)},t.lZ=function(n){s(n)},t.SD=function(){return this.S9.SD()},t.vD=function(){return this.S9.vD()},t.mD=function(){return this.S9.mD()},t.wD=function(){return this.S9.wD()},t._D=function(){return this.S9._D()},t.yD=function(n,t){return this.S9.yD(n,t)},t.gD=function(n){return this.S9.gD(n)},t.Rh=function(n,t){var r;return void 0===t&&(t=ci(oi)),r="object"!=typeof t||t instanceof si?t:t.href,new si(n,r)},t.Fm=function(n,t){if(void 0===t&&(t=ci(oi)),this.E9){var r=function(n){return"string"==typeof n}(t)?t:t.toString();return new self.URL(n,r).href}return this.Rh(n,t).href},nn(n,[{key:"fL",get:function(){return this.k9}},{key:"Zs",get:function(){return this.I9}},{key:"Uw",get:function(){return{Fw:e&&e.userAgent.match(/Android /i)?"Android":"other",Hw:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"rq",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"R9",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),Ai=function(){function n(){}return nn(n,[{key:"_L",get:function(){return e.oscpu}},{key:"Zs",get:function(){return e.platform}},{key:"gL",get:function(){return e.vendor}},{key:"vL",get:function(){return e.vendorSub}}]),n}();var Ni,Ci=function(){function n(){}var t=n.prototype;return t._D=function(){return j.resolve(!1)},t.vD=function(){return j.resolve(!1)},t.wD=function(){return j.resolve(!1)},t.mD=function(){return j.resolve(!1)},t.gD=function(n){return j.resolve(!1)},t.yD=function(n,t){return j.resolve(!1)},t.SD=function(){return j.resolve(!1)},n}(),Di=function(){function n(){}var t=n.prototype;return t.cH=function(){},t.OC=function(n){},t.DC=function(n){},t.gO=function(n,t){},n}();function Pi(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var i,e,u=[],o=!0,f=!1;try{for(r=r.call(n);!(o=(i=r.next()).done)&&(u.push(i.value),!t||u.length!==t);o=!0);}catch(n){f=!0,e=n}finally{try{o||null==r.return||r.return()}finally{if(f)throw e}}return u}}(n,t)||un(n,t)||function(){throw new a("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}!function(n){n.OI="arraybuffer",n.MI="json",n.FI="stream",n.KT="text"}(Ni||(Ni={}));var Li,Fi=function(){function n(t){var r=this;this.I_={},t instanceof n?t.asList().forEach((function(n){var t=Pi(n,2),i=t[0],e=t[1];r.append(i,e)})):Array.isArray(t)?t.forEach((function(n){r.append(n[0],n[1])})):t&&h.getOwnPropertyNames(t).forEach((function(n){r.append(n,t[n])}))}var t=n.prototype;return t.append=function(n,t){var r=n,i=t;r=Ui(r),i=Mi(i);var e=r.toLowerCase();if(this.I_.hasOwnProperty(e)){var u=this.I_[e],o=u[1];u[1]=o?o+", "+i:i}else this.I_[e]=[r,i]},t.delete=function(n){var t=Ui(n).toLowerCase();delete this.I_[t]},t.get=function(n){var t=Ui(n).toLowerCase();return this.I_.hasOwnProperty(t)?this.I_[t][1]:null},t.has=function(n){var t=Ui(n).toLowerCase();return this.I_.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=Ui(r)).toLowerCase();this.I_[i]=[r,Mi(t)]},t.forEach=function(n,t){for(var r in this.I_)this.I_.hasOwnProperty(r)&&n.call(t,this.I_[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.I_)if(this.I_.hasOwnProperty(t)){var r=Pi(this.I_[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.UI=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.HI=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.VI=function(n){var t=this;n.forEach((function(n,r){t.set(r,n)}))},n}();function Ui(n){var t=n;if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new a("Invalid character in header field name");return t}function Mi(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}function Wi(n,t,r,i,e,u,o){try{var f=n[u](o),s=f.value}catch(n){return void r(n)}f.done?t(s):j.resolve(s).then(i,e)}function Vi(n){return function(){var t=this,r=arguments;return new j((function(i,e){var u=n.apply(t,r);function o(n){Wi(u,i,e,o,f,"next",n)}function f(n){Wi(u,i,e,o,f,"throw",n)}o(void 0)}))}}function Hi(n,t){var r,i,e,u,o={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return u={next:f(0),throw:f(1),return:f(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function f(f){return function(s){return function(f){if(r)throw new a("Generator is already executing.");for(;u&&(u=0,f[0]&&(o=0)),o;)try{if(r=1,i&&(e=2&f[0]?i.return:f[0]?i.throw||((e=i.return)&&e.call(i),0):i.next)&&!(e=e.call(i,f[1])).done)return e;switch(i=0,e&&(f=[2&f[0],e.value]),f[0]){case 0:case 1:e=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,i=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(!(e=o.trys,(e=e.length>0&&e[e.length-1])||6!==f[0]&&2!==f[0])){o=0;continue}if(3===f[0]&&(!e||f[1]>e[0]&&f[1]<e[3])){o.label=f[1];break}if(6===f[0]&&o.label<e[1]){o.label=e[1],e=f;break}if(e&&o.label<e[2]){o.label=e[2],o.ops.push(f);break}e[2]&&o.ops.pop(),o.trys.pop();continue}f=t.call(n,o)}catch(n){f=[6,n],i=0}finally{r=e=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,s])}}}!function(n){n[n.ih=0]="ih",n[n.b_=1]="b_",n[n.T_=-1]="T_"}(Li||(Li={}));Array.prototype.find,Array.prototype.findLast;var Bi="function"==typeof Array.prototype.findIndex?function(n,t){return n.findIndex(t)}:function(n,t){for(var r=0;r<n.length;r+=1){if(t(n[r],r,n))return r}return-1},xi="function"==typeof Array.prototype.findLastIndex?function(n,t){return n.findLastIndex(t)}:function(n,t){for(var r=n.length-1;r>=0;r-=1){if(t(n[r],r,n))return r}return-1};function Gi(n,t){var r=n.indexOf(t);return-1!==r&&(function(n,t){0===t?n.shift():n.splice(t,1)}(n,r),!0)}function ji(n){n.length=0}Array.prototype.flat,Array.prototype.flatMap;var Ki,qi,zi,Xi,$i,Yi=function(){function n(){this.P_=!1,this.C_=!1,this.x_=[],this.N_=[]}var t=n.prototype;return t.R_=function(){if(!this.P_&&!this.C_){this.P_=!0;for(var n=0,t=this.x_.slice();n<t.length;n++){(0,t[n])()}this.Ou()}},t.Ou=function(){if(!this.C_){this.C_=!0;for(var n=0,t=this.N_.slice();n<t.length;n++){(0,t[n])()}ji(this.x_),ji(this.N_)}},t.D_=function(n){this.C_||this.x_.push(n)},t.B_=function(n){this.C_||Gi(this.x_,n)},t.L_=function(n){this.C_||this.N_.push(n)},t.O_=function(n){this.C_||Gi(this.N_,n)},n}(),Zi=function(){function n(){this.F_=new Yi}var t=n.prototype;return t.Jl=function(){this.F_.R_()},t.Ou=function(){this.F_.Ou()},t.U_=function(n){var t=this.F_;if(!t.P_)if(n.P_)t.R_();else if(!t.C_&&!n.C_){var r=function(){i(),t.R_()},i=function(){n.B_(r),n.O_(i),t.B_(r),t.O_(i)};n.D_(r),n.L_(i),t.D_(r),t.L_(i)}},t.H_=function(){var t=new n,r=new n,i=t.M_,e=r.M_,u=this.F_,o=function(){i.P_&&e.C_||e.P_&&i.C_?u.R_():i.C_&&e.C_&&u.Ou()};i.D_(o),e.D_(o),i.L_(o),e.L_(o),t.U_(u),r.U_(u);return u.L_((function(){i.B_(o),e.B_(o),i.O_(o),e.O_(o)})),[t,r]},nn(n,[{key:"M_",get:function(){return this.F_}}]),n}();!function(n){n.DELETE="DELETE",n.GET="GET",n.HEAD="HEAD",n.OPTIONS="OPTIONS",n.POST="POST",n.PUT="PUT"}(Ki||(Ki={})),function(n){n.YT="",n.WI="manifest",n.qI="segment",n.zI="preload-hint",n.XI="content-protection"}(qi||(qi={})),function(n){n.YT="",n.GI="initialization-segment",n.QI="fairplay-license",n.KI="fairplay-certificate",n.jI="widevine-license",n.YI="widevine-certificate",n.ZI="playready-license",n.JI="clearkey-license",n.$I="aes128-key"}(zi||(zi={})),function(n){n.YT="",n.yy="audio",n.vl="video",n.KT="text",n.jT="image"}(Xi||(Xi={})),function(n){n.tR="same-origin",n.Hm="no-cors",n.eR="cors",n.iR="navigate"}($i||($i={}));var Ji=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_,y,d=n.TI;t?(r=t.sR,i=t.nR,e=t.rR,u=t.hR,o=t.kI,f=t.oR,s=t.M_,c=t.Iw,a=t.aR,h=t.uR,l=t.cR,v=t.lR,_=t.bw):(r=null,i={},e="GET",u=Ni.KT,o=0,f=0,c="",a="",h="",l=!1,_=void 0),this.TI=d,this.sR=n.sR||r,this.nR=new Fi(n.nR||i),this.rR=n.rR||e,this.hR=n.hR||u,this.kI=void 0!==n.kI?Number(n.kI)||0:o,this.oR=void 0!==n.oR?Number(n.oR)||0:f,this.M_=n.M_||s||(new Zi).M_,this.Iw=n.Iw||c,this.aR=n.aR||a,this.uR=n.uR||h,this.cR=void 0!==n.cR?Boolean(n.cR):l,this.lR=n.lR||v,this.bw=null!=(y=n.bw)?y:_};var Qi=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];c.apply(this,t)};(Qi.prototype=h.create(c.prototype)).constructor=Qi;var ne,te=function(n){function t(t,r){var i;return(i=n.call(this)||this).message=t||"Unknown error",i.cause=r,c.captureStackTrace&&c.captureStackTrace(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(i),i.constructor),i}return rn(t,n),nn(t,[{key:"name",get:function(){return"BaseError"}}]),t}(Qi);!function(n){n.vI="HttpOpenError",n.wI="HttpResponseError",n.mI="HttpTimeoutError"}(ne||(ne={}));var re=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).yI=t,e}return rn(t,n),nn(t,[{key:"pI",get:function(){return this.yI}}]),t}(te);var ie,ee,ue,oe=function(n){function t(t,r){return n.call(this,t,function(n){return"Error while opening "+n+". Invalid URL."}(t.TI),r)}return rn(t,n),nn(t,[{key:"name",get:function(){return ne.vI}}]),t}(re),fe=function(){function n(){}var t=n.prototype;return t.pI=function(n){return j.reject(new oe(new Ji(n)))},t.xV=function(n){},t.bn=function(){},n}(),se=function(n){function t(t){return n.call(this,"Invalid XML",t)}return rn(t,n),t}(te),ce=function(n){function t(){var t;return(t=n.apply(this,arguments)||this).y7=new Ci,t.vR=new fe,t.i=new Di,t}return rn(t,n),t.prototype.oI=function(n){throw new se},nn(t,[{key:"S9",get:function(){return this.y7}},{key:"A7",get:function(){return!1}},{key:"eZ",get:function(){return!1}},{key:"k7",get:function(){return!1}},{key:"pZ",get:function(){return!1}},{key:"dO",get:function(){return this.i}},{key:"E7",get:function(){return{I7:On}}},{key:"R7",get:function(){return"default"}},{key:"P7",get:function(){return"unknown"}},{key:"Gf",get:function(){return this.vR}}]),t}(mi);!function(n){n}(new ce),function(n){n[n.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",n[n.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4"}(ie||(ie={})),function(n){n[n.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",n[n.LICENSE_ERROR=2e3]="LICENSE_ERROR",n[n.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",n[n.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",n[n.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",n[n.LICENSE_INVALID_FEATURE=2004]="LICENSE_INVALID_FEATURE",n[n.SOURCE_INVALID=3e3]="SOURCE_INVALID",n[n.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",n[n.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",n[n.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",n[n.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",n[n.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",n[n.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",n[n.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",n[n.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",n[n.MEDIA_ABORTED=5004]="MEDIA_ABORTED",n[n.NETWORK_ERROR=6e3]="NETWORK_ERROR",n[n.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",n[n.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",n[n.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",n[n.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",n[n.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",n[n.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",n[n.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",n[n.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",n[n.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",n[n.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",n[n.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",n[n.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",n[n.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",n[n.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",n[n.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",n[n.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",n[n.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",n[n.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",n[n.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",n[n.AD_ERROR=1e4]="AD_ERROR",n[n.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",n[n.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR",n[n.CACHE_SOURCE_ERROR=12e3]="CACHE_SOURCE_ERROR",n[n.CACHE_CONTENT_PROTECTION_ERROR=12001]="CACHE_CONTENT_PROTECTION_ERROR",n[n.THEO_LIVE_UNKNOWN_ERROR=13e3]="THEO_LIVE_UNKNOWN_ERROR",n[n.THEO_LIVE_CHANNEL_NOT_FOUND=13001]="THEO_LIVE_CHANNEL_NOT_FOUND",n[n.THEO_LIVE_END_OF_DEMO=13002]="THEO_LIVE_END_OF_DEMO",n[n.THEO_LIVE_ANALYTICS_ERROR=13003]="THEO_LIVE_ANALYTICS_ERROR"}(ee||(ee={})),function(n){n[n.CONFIGURATION=1]="CONFIGURATION",n[n.LICENSE=2]="LICENSE",n[n.SOURCE=3]="SOURCE",n[n.MANIFEST=4]="MANIFEST",n[n.MEDIA=5]="MEDIA",n[n.NETWORK=6]="NETWORK",n[n.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",n[n.SUBTITLE=8]="SUBTITLE",n[n.VR=9]="VR",n[n.AD=10]="AD",n[n.FULLSCREEN=11]="FULLSCREEN",n[n.CACHE=12]="CACHE",n[n.THEOLIVE=13]="THEOLIVE"}(ue||(ue={})),function(n){n.fromCode=function(t){var r=l.floor(t/1e3);if(r in n)return r;throw new a("Invalid error code: "+t)}}(ue||(ue={}));var ae=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).code=t,e}return rn(t,n),nn(t,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return ue.fromCode(this.code)}}]),t}(te);var he,le=function(){function n(n){this.encoding=n}var t=n.prototype;return t.encode=function(n){if(!n)return new d(0);for(var t=new d(n.length),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},t.encodeInto=function(n,t){for(var r=l.min(n.length,t.byteLength),i=0;i<r;i++)t[i]=n.charCodeAt(i);return{read:r,written:r}},n}(),ve=function(){function n(n,t){this.encoding=n,this.fatal=(null==t?void 0:t.fatal)||!1,this.ignoreBOM=(null==t?void 0:t.ignoreBOM)||!1}return n.prototype.decode=function(n,t){return n?(r=n instanceof ArrayBuffer?new d(n):new d(n.buffer,n.byteOffset,n.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},n}();var _e=new Array(32).fill(void 0);function ye(n){return _e[n]}_e.push(void 0,null,!0,!1);var de=_e.length;function we(n){var t=ye(n);return function(n){n<36||(_e[n]=de,de=n)}(n),t}var Ee=new ve("utf-8",{ignoreBOM:!0,fatal:!0});Ee.decode();var Ie=new d;function pe(){return Ie.buffer!==he.memory.buffer&&(Ie=new d(he.memory.buffer)),Ie}function Re(n,t){return Ee.decode(pe().subarray(n,n+t))}function ge(n){de===_e.length&&_e.push(_e.length+1);var t=de;return de=_e[t],_e[t]=n,t}var Oe=0;function Se(n,t){var r=t(1*n.length);return pe().set(n,r/1),Oe=n.length,r}var Te=new Int32Array;function ke(){return Te.buffer!==he.memory.buffer&&(Te=new Int32Array(he.memory.buffer)),Te}function be(n){return null==n}function me(n,t){return pe().subarray(n/1,n/1+t)}var Ae=new le("utf-8"),Ne="function"==typeof Ae.encodeInto?function(n,t){return Ae.encodeInto(n,t)}:function(n,t){var r=Ae.encode(n);return t.set(r),{read:n.length,written:r.length}};function Ce(n,t){return De.apply(this,arguments)}function De(){return De=Vi((function(n,t){var r,i,e;return Hi(this,(function(u){switch(u.label){case 0:if(!("function"==typeof Response&&n instanceof Response))return[3,7];if("function"!=typeof WebAssembly.instantiateStreaming)return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,WebAssembly.instantiateStreaming(n,t)];case 2:return[2,u.sent()];case 3:if(r=u.sent(),"application/wasm"==n.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r),[3,4];case 4:return[4,n.arrayBuffer()];case 5:return i=u.sent(),[4,WebAssembly.instantiate(i,t)];case 6:return[2,u.sent()];case 7:return[4,WebAssembly.instantiate(n,t)];case 8:return(e=u.sent())instanceof WebAssembly.Instance?[2,{instance:e,module:n}]:[2,e];case 9:return[2]}}))})),De.apply(this,arguments)}function Pe(){var n={wbg:{}};return n.wbg.__wbg_data_04446ebb06f2ac29=function(n,t){var r=Se(ye(t).data,he.__wbindgen_export_0),i=Oe;ke()[n/4+1]=i,ke()[n/4+0]=r},n.wbg.__wbg_metadata_792d18db149354e3=function(n){var t=ye(n).metadata;return be(t)?0:ge(t)},n.wbg.__wbg_spsnal_949e2b91c67b1988=function(n,t){var r=ye(t).sps_nal,i=be(r)?0:Se(r,he.__wbindgen_export_0),e=Oe;ke()[n/4+1]=e,ke()[n/4+0]=i},n.wbg.__wbg_ppsnal_0b287208c8bee8dc=function(n,t){var r=ye(t).pps_nal,i=be(r)?0:Se(r,he.__wbindgen_export_0),e=Oe;ke()[n/4+1]=e,ke()[n/4+0]=i},n.wbg.__wbg_videopid_ed2a669b38200ee4=function(n){var t=ye(n).video_pid;return be(t)?16777215:t},n.wbg.__wbg_audiopid_736a11dfa0cbf838=function(n){var t=ye(n).audio_pid;return be(t)?16777215:t},n.wbg.__wbg_programmaptablepid_8b78c2977f51f0e8=function(n){var t=ye(n).program_map_table_pid;return be(t)?16777215:t},n.wbg.__wbindgen_object_drop_ref=function(n){we(n)},n.wbg.__wbg_createoutputdata_eadfe6fd26e5edb1=function(n,t,r,i,e,u,o,f){var s,c,a,h;0!==n&&(s=me(n,t).slice(),he.__wbindgen_export_1(n,1*t)),0!==r&&(c=me(r,i).slice(),he.__wbindgen_export_1(r,1*i)),0!==e&&(a=me(e,u).slice(),he.__wbindgen_export_1(e,1*u)),0!==o&&(h=me(o,f).slice(),he.__wbindgen_export_1(o,1*f));var l=function(n,t,r,i){return{video_init:n,audio_init:t,video_media:r,audio_media:i}}(s,c,a,h);return ge(l)},n.wbg.__wbg_createtimestampwithbase_6dd9c5e5d3d34518=function(n,t,r){var i=function(n,t,r){return{low:n,high:t,base:r}}(n>>>0,t>>>0,r>>>0);return ge(i)},n.wbg.__wbg_createoutputmetadata_85c4182fc10c40bd=function(n,t,r,i,e,u,o,f,s,c,a,h,l,v,_,y){var d,w,E,I;0!==r&&(d=Re(r,i).slice(),he.__wbindgen_export_1(r,1*i)),0!==e&&(w=Re(e,u).slice(),he.__wbindgen_export_1(e,1*u)),0!==o&&(E=me(o,f).slice(),he.__wbindgen_export_1(o,1*f)),0!==s&&(I=me(s,c).slice(),he.__wbindgen_export_1(s,1*c));var p=function(n,t,r,i,e,u,o,f,s,c,a){return{video_pid:n,audio_pid:t,video_codec:r,audio_codec:i,sps_nal:e,pps_nal:u,first_decode_timestamp:o,first_presentation_timestamp:f,first_video_presentation_timestamp:s,program_map_table_pid:c,video_frame_rate:a}}(16777215===n?void 0:n,16777215===t?void 0:t,d,w,E,I,we(a),we(h),we(l),16777215===v?void 0:v,0===_?void 0:y);return ge(p)},n.wbg.__wbg_createoutput_c1b51e340fe44a00=function(n,t){var r=function(n,t){return{data:n,metadata:t}}(we(n),we(t));return ge(r)},n.wbg.__wbindgen_string_new=function(n,t){return ge(Re(n,t))},n.wbg.__wbg_new_693216e109162396=function(){return ge(new c)},n.wbg.__wbg_stack_0ddaca5d1abfb52f=function(n,t){var r=function(n,t,r){if(void 0===r){var i=Ae.encode(n),e=t(i.length);return pe().subarray(e,e+i.length).set(i),Oe=i.length,e}for(var u=n.length,o=t(u),f=pe(),s=0;s<u;s++){var c=n.charCodeAt(s);if(c>127)break;f[o+s]=c}if(s!==u){0!==s&&(n=n.slice(s)),o=r(o,u,u=s+3*n.length);var a=pe().subarray(o+s,o+u);s+=Ne(n,a).written}return Oe=s,o}(ye(t).stack,he.__wbindgen_export_0,he.__wbindgen_export_2),i=Oe;ke()[n/4+1]=i,ke()[n/4+0]=r},n.wbg.__wbg_error_09919627ac0992f5=function(n,t){try{console.error(Re(n,t))}finally{he.__wbindgen_export_1(n,t)}},n}function Le(n,t){return he=n.exports,Fe.__wbindgen_wasm_module=t,Te=new Int32Array,Ie=new d,he.__wbindgen_start(),he}function Fe(n){return Ue.apply(this,arguments)}function Ue(){return Ue=Vi((function(n){var t,r,i,e;return Hi(this,(function(u){switch(u.label){case 0:return void 0===n&&(n=new URL("theomux_bg.wasm",void 0)),t=Pe(),("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n)),[4,n];case 1:return[4,Ce.apply(void 0,[u.sent(),t])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,Le(i,e)]}}))})),Ue.apply(this,arguments)}function Me(){return Me=Vi((function(n){var t;return Hi(this,(function(r){switch(r.label){case 0:return"string"==typeof n&&(n=new URL(n)),n instanceof WebAssembly.Module?(t=n,[3,3]):[3,1];case 1:return[4,Ve(n)];case 2:t=r.sent(),r.label=3;case 3:return[4,Fe(t)];case 4:return r.sent(),[2,new We(t)]}}))})),Me.apply(this,arguments)}var We=function(){function n(n){this.TR=n}var t=n.prototype;return t.mpegts_to_fmp4=function(n){return function(n){try{var t=he.__wbindgen_add_to_stack_pointer(-16);he.mpegts_to_fmp4(t,ge(n));var r=ke()[t/4+0],i=ke()[t/4+1];if(ke()[t/4+2])throw we(i);return we(r)}finally{he.__wbindgen_add_to_stack_pointer(16)}}(n)},t.raw_audio_to_fmp4=function(n){return function(n){try{var t=he.__wbindgen_add_to_stack_pointer(-16);he.raw_audio_to_fmp4(t,ge(n));var r=ke()[t/4+0],i=ke()[t/4+1];if(ke()[t/4+2])throw we(i);return we(r)}finally{he.__wbindgen_add_to_stack_pointer(16)}}(n)},t.restart=function(){var n=this;return Vi((function(){return Hi(this,(function(t){switch(t.label){case 0:return[4,Fe(n.TR)];case 1:return t.sent(),[2]}}))}))()},n}();function Ve(n){return He.apply(this,arguments)}function He(){return He=Vi((function(n){var t,r,i,e;return Hi(this,(function(u){switch(u.label){case 0:return"http:"!==n.protocol&&"https:"!==n.protocol?[3,8]:[4,fetch(n.href)];case 1:if(t=u.sent(),"function"!=typeof WebAssembly.compileStreaming)return[3,5];u.label=2;case 2:return u.trys.push([2,4,,5]),[4,WebAssembly.compileStreaming(t)];case 3:return[2,u.sent()];case 4:if(r=u.sent(),"application/wasm"===t.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.compileStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.compile` which is slower. Original error:\n",r),[3,5];case 5:return[4,t.arrayBuffer()];case 6:return i=u.sent(),[4,WebAssembly.compile(i)];case 7:return[2,u.sent()];case 8:return[4,Be(n.href)];case 9:return e=u.sent(),[4,WebAssembly.compile(e)];case 10:return[2,u.sent()];case 11:return[2]}}))})),He.apply(this,arguments)}function Be(n){return new j((function(t,r){var i=new w;i.onload=function(){t(i.response||new ArrayBuffer(0))},i.onerror=function(){r(new a('Failed to fetch "'+n+'", status '+i.status))},i.open("GET",n,!0),i.responseType="arraybuffer",i.send()}))}var xe=new URL("./THEOplayer.transmux.wasm",i.href);!function(n){var t,r=j.resolve(n()).then((function(n){t=n,r=void 0,self.postMessage({FLt:"7.0.0"})}),(function(n){var t=n,r={success:!1,error:t.message,errorCode:t instanceof ae?t.code:ee.MEDIA_DECODE_ERROR};self.postMessage(r)}));function i(){return(i=Vi((function(n){var i,e,u,o,f,s;return Hi(this,(function(a){switch(a.label){case 0:return void 0===r?[3,2]:[4,r];case 1:a.sent(),a.label=2;case 2:if(u=n.id,n.type===ie.MPEGTS_TO_FMP4)o=t.mpegts_to_fmp4(n.input);else{if(n.type!==ie.RAW_AUDIO_TO_FMP4)throw new c("Unknown request type: "+n.type);o=t.raw_audio_to_fmp4(n.input)}return f={success:!0,requestId:u,output:o},s=[null==(i=n.input.metadata)?void 0:i.sps_nal,null==(e=n.input.metadata)?void 0:e.pps_nal,n.input.data,o.data.video_init,o.data.audio_init,o.data.video_media,o.data.audio_media].filter(pn).map((function(n){return n.buffer})),self.postMessage(f,s),[2]}}))}))).apply(this,arguments)}self.addEventListener("message",(function(n){var t=n.data.id;(function(n){return i.apply(this,arguments)})(n.data).catch((function(n){var r=n,i={success:!1,requestId:t,error:r.message,errorCode:r instanceof ae?r.code:ee.MEDIA_DECODE_ERROR};self.postMessage(i)}))}))}((function(){return function(n){return Me.apply(this,arguments)}(xe)}))}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof a?a:"undefined"!=typeof global?global:this);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@theoplayer/extended",
|
|
3
3
|
"main": "THEOplayer.js",
|
|
4
4
|
"types": "THEOplayer.d.ts",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "7.0.0",
|
|
6
6
|
"description": "THEOplayer is the universal video player solution, enabling you to quickly deliver cross-platform content playback.",
|
|
7
7
|
"author": "THEO Technologies",
|
|
8
8
|
"homepage": "https://www.theoplayer.com/",
|