@theoplayer/extended 7.7.1 → 7.8.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/THEOplayer.chromeless.d.ts +1 -1
- package/THEOplayer.chromeless.esm.js +3 -3
- package/THEOplayer.chromeless.js +3 -3
- package/THEOplayer.common.d.ts +37 -9
- package/THEOplayer.common.esm.js +3 -3
- package/THEOplayer.d.ts +2 -25
- 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: 7.
|
|
28
|
-
Created: 2024-07-
|
|
27
|
+
Version: 7.8.0
|
|
28
|
+
Created: 2024-07-18T14:18:31.209Z
|
|
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,_=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.X4t=!1,this.Zpt=void 0,this.z4t=[],k(n,this)}function O(n,t){for(;3===n.Pa;)n=n.Zpt;0!==n.Pa?(n.X4t=!0,R.G4t((function(){var r=1===n.Pa?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.Zpt)}catch(n){return void S(t.promise,n)}g(t.promise,i)}else(1===n.Pa?g:S)(t.promise,n.Zpt)}))):n.z4t.push(t)}function g(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.Zpt=t,void T(n);if("function"==typeof r)return void k(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.Pa=1,n.Zpt=t,T(n)}catch(t){S(n,t)}}function S(n,t){n.Pa=2,n.Zpt=t,T(n)}function T(n){2===n.Pa&&0===n.z4t.length&&R.G4t((function(){n.X4t||R.q4t(n.Zpt)}));for(var t=0,r=n.z4t.length;t<r;t++)O(n,n.z4t[t]);n.z4t=null}function b(n,t,r){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function k(n,t){var r=!1;try{n((function(n){r||(r=!0,g(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 O(this,new b(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.G4t="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){E(n,0)},R.q4t=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.KP=0,this.qH=0,this.MC=[],this.Y4t=n}return n.prototype.Q4t=function(n){var t=this.length();this.j4t(t+1);var r=this.qH+t&this.Y4t-1;this.MC[r]=n,this.KP=t+1},n.prototype.push=function(n){var t=this.length()+1;if(this.Y4t<t)this.Q4t(n);else{var r=this.qH+t-1,i=this.Y4t-1;this.MC[r&i]=n,this.KP=t}},n.prototype.shift=function(){var n=this.qH,t=this.MC[n];return this.MC[n]=void 0,this.qH=n+1&this.Y4t-1,this.KP--,t},n.prototype.length=function(){return this.KP},n.prototype.j4t=function(n){this.Y4t<n&&this.K4t(this.Y4t<<1)},n.prototype.K4t=function(n){var t=this.Y4t;this.Y4t=n;var r=this.qH+this.KP&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.MC,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.G4t,K=$,q=new U(16),z=!1,(Y={L$:function(n){q.push(n),z||(z=!0,K(X))},DV:X=function(){for(;q.length()>0;)q.shift()();z=!1}}).DV,R.G4t=Y.L$,R.q4t=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.TI="web",n.SI="android",n.kI="android-tv",n.EI="ios",n.II="tvos",n.RI="chromecast",n.CI="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.xI=Boolean("ontouchstart"in self||self.DocumentTouch&&r instanceof self.DocumentTouch||e&&e.msMaxTouchPoints),this.DI=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(fn)||/(macintosh|mac(?=_powerpc)\s)/i.test(fn),this.OI=/Windows NT/i.test(fn),this.MI=hn?_(hn[1]):0,this.UI=/Android/i.test(fn),this.HI=an?_(an[1]):0,this.qI=/windows phone (8|8\.1)/i.test(fn),this.XI=/iPhone/i.test(fn),this.QI=/iPad/i.test(fn),this.YI=this.DI&&this.xI&&!this.QI,this.ZI=/iPod/i.test(fn),this.hR=/Mobile Safari/i.test(fn),this.sR=/EOS\d*STB/i.test(fn),this.nR=/APP\d*STB/i.test(fn),this.$I=(this.XI||this.QI||this.YI||this.ZI)&&!this.qI,this.eR=dn?_(dn[2]):0,this.oR=this.qI||this.$I||this.UI||this.hR,this.uR=/CriOS/i.test(fn),this.lR=Boolean(self.chrome&&/google/i.test(e.vendor))||this.uR,this.gR=this.lR&&/Edg\//i.test(e.userAgent),this.mR=cn?v(cn[1],10):0,this._P=Boolean(self.chrome||/Chrome/i.test(fn)||/CriOS/i.test(fn)),this.fR=sn?v(sn[1],10):0,this.pR=/SMART-TV.*Tizen/i.test(fn),this.AR=yn?_(yn[1]):0,this.SR=/webos|web0s/i.test(fn),this.ER=/VIZIO/i.test(fn),this.RR=/Edge\/\d+/i.test(fn),this.xR=/Trident/i.test(fn),this.DR=this.xR&&!self.ActiveXObject&&"ActiveXObject"in self,this.LR=/Vivaldi/i.test(fn),this.FR=/Firefox/i.test(fn)&&!/Seamonkey/i.test(fn),this.HR=vn?_(vn[1]):0,this.qR=/Safari/i.test(fn)&&!/Chrome/i.test(fn)&&!this.qI&&!this.pR,this.XR=ln?_(ln[2]):0,this.QR=Boolean(_n),this.YR=_n?_(_n[1]):0,this.ZR=/CrKey/.test(fn),this.$R=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(fn),this.iP="web"===Z.kI,this.nP="web"===Z.SI,this.hP=this.nP||this.iP,this.aP="web"===Z.EI,this.cP="web"===Z.II,this.dP="web"===Z.RI}return nn(n,[{key:"Ye",get:function(){return this.xI}},{key:"NI",get:function(){return this.DI}},{key:"BI",get:function(){return this.OI}},{key:"LI",get:function(){return this.MI}},{key:"FI",get:function(){return this.UI}},{key:"VI",get:function(){return this.HI}},{key:"WI",get:function(){return this.qI}},{key:"zI",get:function(){return this.XI}},{key:"GI",get:function(){return this.QI}},{key:"KI",get:function(){return this.YI}},{key:"jI",get:function(){return this.ZI}},{key:"JI",get:function(){return this.$I}},{key:"tR",get:function(){return this.eR}},{key:"iR",get:function(){return this.sR||this.nR}},{key:"rR",get:function(){return this.hR}},{key:"Ks",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.mR}},{key:"wR",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.RR}},{key:"PR",get:function(){return this.xR}},{key:"NR",get:function(){return this.DR}},{key:"OR",get:function(){return this.LR}},{key:"MR",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.YR}},{key:"jR",get:function(){return this.ZR}},{key:"JR",get:function(){return this.$R}},{key:"tP",get:function(){return!(!this.bR&&!this.wR)&&this.dR<=56}},{key:"eP",get:function(){return this.iP}},{key:"sP",get:function(){return this.nP}},{key:"rP",get:function(){return this.hP}},{key:"oP",get:function(){return this.aP}},{key:"uP",get:function(){return this.cP}},{key:"lP",get:function(){return this.dP}},{key:"fP",get:function(){return this._P}}]),n}();wn.gP=new wn;var En=wn.gP,In={}.toString;function pn(n){return null!=n}Array.isArray;function Rn(n){return"object"==typeof n&&null!==n}function On(n){return function(n){return"function"==typeof n}(n)||Rn(n)}var gn=function(){},Sn=!(En.PR&&!En.NR),Tn=self.console;function bn(n){if(Rn(n))try{return JSON.stringify(n)}catch(n){}return n}function kn(n){return n.map(bn).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](kn(r))}:void 0}var An=mn("log")||gn,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,kn(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.wp)}function Un(n){var t=l.clz32(n&-n);return n?31-t:t}Ln.prototype.wp,h.defineProperty(Ln.prototype,"wp",{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 Ot(n){return Rt(n)||function(n){return n>=97&&n<=122}(n)}function gt(n){return n>=48&&n<=57}function St(n){return gt(n)||Ot(n)}function Tt(n){return gt(n)||n>=65&&n<=70||n>=97&&n<=102}function bt(n){return Rt(n)?n+32:n}function kt(n){return gt(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 O=I-R,g=36-R;t.push(Wt(jt(R+O%g,0))),I=Mt(O/g)}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=kt(n[i+1])<<4|kt(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={BJ: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{BJ:2,d9: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:{BJ:3,MC: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?{BJ:1,d9:i}:""===r?vr:{BJ:0,f9:r}}function wr(n){switch(n.BJ){case 0:return n.f9;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.d9);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.d9)+"]";case 3:return n.MC;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+=Or(Zt(Ht(i[0])))+"="+Or(Zt(Ht(i[1])))}return t}function Or(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 gr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function Sr(n){var t=""+n,r=gr.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(br(u))if(kr(u)||e===r-1)i.push(Tr);else{var o=n.charCodeAt(e+1);kr(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,br=function(n){return 55296==(63488&n)},kr=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._9.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._9,pr(t))}function Cr(n){if(n.g9){var t=Rr(n._9);""===t&&(t=null),n.g9.g9.v9=t}}var Dr=function(){function n(n){if(void 0===n&&(n=void 0),this.g9=null,null==n)this._9=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof Dr&&!!wt(n._9)&&(!Et||n[Symbol.iterator]===Pr)}(n))this._9=n._9.slice();else if(function(n){return null!=n&&(!!wt(n)||!!Et&&"function"==typeof n[Symbol.iterator])}(n)){this._9=[];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._9.push([Sr(i[0]),Sr(i[1])])}}else for(var e in this._9=[],n)h.prototype.hasOwnProperty.call(n,e)&&this._9.push([Sr(e),Sr(n[e])]);else(n=Sr(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this._9=pr(n)}var t=n.prototype;return t.append=function(n,t){n=Sr(n),t=Sr(t),this._9.push([n,t]),Cr(this)},t.delete=function(n){n=Sr(n);for(var t=this._9,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._9,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._9,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._9,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._9,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._9,mr),Cr(this)},t.toString=function(){return Rr(this._9)},t.entries=function(){return new Mr(this._9,Lr)},t.keys=function(){return new Mr(this._9,Fr)},t.values=function(){return new Mr(this._9,Ur)},t.forEach=function(n){var t=this;this._9.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.m9=0,this._9=n,this.w9=t}return n.prototype.next=function(){return this.m9<this._9.length?{done:!1,value:this.w9(this._9[this.m9++])}:{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.oO)}function qr(n){return""!==n.p9||""!==n.y9}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.A9;0!==t.length&&("file"===n.oO&&1===t.length&&Yr(t[0])||t.pop())}function Jr(n){return null===n.b9||vr===n.b9||n.T9||"file"===n.oO}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(!Ot(_)){if(null===i){u.length=0,e=2;continue}throw new a("Invalid scheme")}u.push(bt(_)),e=1;break;case 1:if(St(_)||43===_||45===_||46===_)u.push(bt(_));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.oO)&&!jr(y))return;if(!jr(r.oO)&&jr(y))return;if((qr(r)||null!==r.T6)&&"file"===y)return;if("file"===r.oO&&(r.b9===vr||null===r.b9))return}if(r.oO=y,null!==i)return void(Kr(r)&&r.T6===Vr[r.oO]&&(r.T6=null));u.length=0,"file"===r.oO?e=13:Kr(r)&&t&&t.oO===r.oO?e=3:Kr(r)?e=7:47===c[l+1]?(e=4,l+=1):(r.T9=!0,r.A9.push(""),e=18)}break;case 2:if(!t||t.T9&&35!==_)throw new a("Invalid scheme");t.T9&&35===_?(r.oO=t.oO,r.A9=t.A9.slice(),r.v9=t.v9,r.S9="",r.T9=!0,e=20):"file"!==t.oO?(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.oO=t.oO,Qr===_?(r.p9=t.p9,r.y9=t.y9,r.b9=t.b9,r.T6=t.T6,r.A9=t.A9.slice(),r.v9=t.v9):47===_?e=6:63===_?(r.p9=t.p9,r.y9=t.y9,r.b9=t.b9,r.T6=t.T6,r.A9=t.A9.slice(),r.v9="",e=19):35===_?(r.p9=t.p9,r.y9=t.y9,r.b9=t.b9,r.T6=t.T6,r.A9=t.A9.slice(),r.v9=t.v9,r.S9="",e=20):92===_&&Kr(r)?e=6:(r.p9=t.p9,r.y9=t.y9,r.b9=t.b9,r.T6=t.T6,r.A9=t.A9.slice(),r.A9.pop(),e=17,l-=1);break;case 6:!Kr(r)||47!==_&&92!==_?47===_?e=9:(r.p9=t.p9,r.y9=t.y9,r.b9=t.b9,r.T6=t.T6,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.y9+=E:r.p9+=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.oO)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.T6))return;var I=dr(zt(u),Kr(r));if(r.b9=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.b9=p,u.length=0,e=12,11===i)return}break;case 12:if(gt(_))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.T6=R===Vr[r.oO]?null:R,u.length=0}if(null!==i)return;e=16,l-=1}break;case 13:r.oO="file",47===_||92===_?e=14:t&&"file"===t.oO?Qr===_?(r.b9=t.b9,r.A9=t.A9.slice(),r.v9=t.v9):63===_?(r.b9=t.b9,r.A9=t.A9.slice(),r.v9="",e=19):35===_?(r.b9=t.b9,r.A9=t.A9.slice(),r.v9=t.v9,r.S9="",e=20):(zr(c.slice(l))||(r.b9=t.b9,r.A9=t.A9.slice(),Zr(r)),e=17,l-=1):(e=17,l-=1);break;case 14:47===_||92===_?e=15:(t&&"file"===t.oO&&!zr(c.slice(l))&&(Yr(t.A9[0])?r.A9.push(t.A9[0]):r.b9=t.b9),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.b9=vr,null!==i)return;e=16}else{var O=dr(zt(u),Kr(r));if(0===O.BJ&&"localhost"===O.f9&&(O=vr),r.b9=O,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.v9="",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 g=zt(u);if(Gr(g)?(Zr(r),47===_||Kr(r)&&92===_||r.A9.push("")):!xr(g)||47===_||Kr(r)&&92===_?xr(g)||("file"===r.oO&&0===r.A9.length&&$r(u)&&(vr!==r.b9&&null!==r.b9&&(r.b9=vr),u[1]=58,g=zt(u)),r.A9.push(g)):r.A9.push(""),u.length=0,"file"===r.oO&&(Qr===_||63===_||35===_))for(;r.A9.length>1&&""===r.A9[0];)r.A9.shift();63===_?(r.v9="",e=19):35===_&&(r.S9="",e=20)}else u.push.apply(u,fr(_,ir));break;case 18:63===_?(r.v9="",e=19):35===_?(r.S9="",e=20):Qr!==_&&(r.A9[0]+=zt(fr(_,tr)));break;case 19:null===i&&35===_?(r.S9="",e=20):Qr!==_&&(r.v9+=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.oO="",this.p9="",this.y9="",this.b9=null,this.T6=null,this.A9=[],this.v9=null,this.S9=null,this.T9=!1};function ui(n){switch(n.oO){case"blob":var t;try{t=ri(n.A9[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.oO,n.b9,n.T6);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.g9}(t))i=t.g9;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.v9;this.g9=r,this.v9=function(n){var t=new Dr;return null!==n&&Nr(t,n),t}(e),this.v9.g9=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.oO+":";if(null!==n.b9?(r+="//",qr(n)&&(r+=n.p9,""!==n.y9&&(r+=":"+n.y9),r+="@"),r+=wr(n.b9),null!==n.T6&&(r+=":"+n.T6)):null===n.b9&&"file"===n.oO&&(r+="//"),n.T9)r+=n.A9[0];else for(var i=0,e=n.A9;i<e.length;i++)r+="/"+e[i];return null!==n.v9&&(r+="?"+n.v9),t||null===n.S9||(r+="#"+n.S9),r}(this.g9)},set:function(n){var t;try{t=ri(String(n),null)}catch(n){throw new a("Invalid URL: "+n.message)}this.g9=t,Ar(this.v9);var r=this.g9.v9;null!==r&&Nr(this.v9,r)}},{key:"origin",get:function(){return ui(this.g9)}},{key:"protocol",get:function(){return this.g9.oO+":"},set:function(n){ii(n+":",null,this.g9,0)}},{key:"username",get:function(){return this.g9.p9},set:function(n){Jr(this.g9)||(this.g9.p9=sr(n,er))}},{key:"password",get:function(){return this.g9.y9},set:function(n){Jr(this.g9)||(this.g9.y9=sr(n,er))}},{key:"host",get:function(){var n=this.g9,t=n.b9;if(null===t)return"";var r=n.T6,i=wr(t);return null!==r&&(i+=":"+r),i},set:function(n){this.g9.T9||ii(n,null,this.g9,10)}},{key:"hostname",get:function(){var n=this.g9.b9;return null===n?"":wr(n)},set:function(n){this.g9.T9||ii(n,null,this.g9,11)}},{key:"port",get:function(){var n=this.g9.T6;return null===n?"":""+n},set:function(n){Jr(this.g9)||(""===n?this.g9.T6=null:ii(n,null,this.g9,12))}},{key:"pathname",get:function(){var n=this.g9.A9;return this.g9.T9?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.g9.T9||(this.g9.A9.length=0,ii(n,null,this.g9,16))}},{key:"search",get:function(){var n=this.g9.v9;return null===n||""===n?"":"?"+n},set:function(n){n=Sr(n);var t=this.g9;if(""===n)return t.v9=null,void Ar(this.v9);"?"===n[0]&&(n=n.slice(1)),t.v9="",ii(n,null,t,19),Nr(this.v9,n)}},{key:"searchParams",get:function(){return this.v9}},{key:"hash",get:function(){var n=this.g9.S9;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.g9.S9="",ii(n,null,this.g9,20)):this.g9.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.E9=void 0,this.M9=!1,this.Ye=hi,this.Ks=!1,this.f5=!0}var r=n.prototype;return r.I9=function(){return 0},r.O9=function(n,t){return!0},r.L9=function(n){return n>=.3333333333333333},nn(n,[{key:"k9",get:function(){return void 0===this.E9&&(this.E9=this.I9()),this.E9}},{key:"R9",get:function(){return!En.JR}},{key:"P9",get:function(){if(t.screen)return{width:t.screen.width,height:t.screen.height}}},{key:"K0",get:function(){return t.devicePixelRatio||1}},{key:"C9",get:function(){return vi}},{key:"P0",get:function(){return!1}},{key:"b0",get:function(){return!0}},{key:"ym",get:function(){return En.WR||En.JI}},{key:"x9",get:function(){return!En.JI}},{key:"kB",get:function(){return!0}},{key:"Tm",get:function(){return!0}},{key:"Am",get:function(){return!1}},{key:"N9",get:function(){}},{key:"D9",get:function(){return!0}},{key:"Vj",get:function(){return!1}},{key:"B9",get:function(){return En.kR}}]),n}(),yi=function(){var n=ai();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(En.KI)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.M9=r.F9.M9,r.Ye=r.F9.Ye,r.f5=yi&&r.F9.f5),r}rn(t,n);var r=t.prototype;return r.I9=function(){return this.F9?this.F9.k9:n.prototype.I9.call(this)},r.O9=function(t,r){return this.F9?this.F9.O9(t,r):n.prototype.O9.call(this,t,r)},r.L9=function(t){return this.F9?this.F9.L9(t):n.prototype.L9.call(this,t)},nn(t,[{key:"N9",get:function(){var n;return null==(n=this.F9)?void 0:n.N9}},{key:"D9",get:function(){var n,t;return null==(t=null==(n=this.F9)?void 0:n.D9)||t}}]),t}(_i),wi=function(n){function t(t){var r;return(r=n.call(this,t)||this).M9=!0,r.Ks=!0,r}return rn(t,n),nn(t,[{key:"Am",get:function(){return En.JI}}]),t}(di);var Ei=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),t.prototype.I9=function(){return function(n){return n&&On(oi.ManagedMediaSource)?oi.ManagedMediaSource:On(oi.MediaSource)?oi.MediaSource:void 0}(!0)?n.prototype.I9.call(this):1},nn(t,[{key:"Am",get:function(){return!0}}]),t}(wi),Ii=function(n){function r(){return n.apply(this,arguments)}return rn(r,n),r.prototype.O9=function(t,r){return n.prototype.O9.call(this,t,r)},nn(r,[{key:"P0",get:function(){return En.yR<3}},{key:"b0",get:function(){return En.yR>=3}},{key:"P9",get:function(){var n=this;return t.tizen&&!this.U9&&t.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.U9={width:r,height:i})})),this.U9}},{key:"Vj",get:function(){return En.yR<3}}]),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.O9=function(n,t){if(n&&n.V9&&t&&t.V9){var r=Oi(n.V9,"mp4a.40.2")&&Oi(t.V9,"mp4a.40.5"),i=Oi(n.V9,"mp4a.40.5")&&Oi(t.V9,"mp4a.40.2"),e=Oi(n.V9,"mp4a.40.2")&&Oi(t.V9,"mp4a.40.34"),u=Oi(n.V9,"mp4a.40.34")&&Oi(t.V9,"mp4a.40.2"),o=Oi(n.V9,"mp4a.40.5")&&Oi(t.V9,"mp4a.40.34"),f=Oi(n.V9,"mp4a.40.34")&&Oi(t.V9,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},nn(t,[{key:"N9",get:function(){if(En.NI)return 4096}}]),t}(pi);function Oi(n,t){return n.indexOf(t)>-1}var gi=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),t.prototype.L9=function(n){return n>=2},t}(pi),Si=function(n){function t(){var t;return(t=n.call(this)||this).M9=En.zR>=11,t.f5=En.WR&&!(En.JI&&En.zR<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:"P9",get:function(){var n=this;return t.webOS&&!this.U9&&t.webOS.deviceInfo((function(t){n.U9={width:t.screenWidth,height:t.screenHeight}})),this.U9}},{key:"kB",get:function(){return!1}}]),r}(di),bi=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),nn(t,[{key:"D9",get:function(){return!En.BI||(En._R?92!==En.vR:En.dR>=100)}}]),t}(pi),ki=function(n){function t(){return n.apply(this,arguments)}return rn(t,n),nn(t,[{key:"Am",get:function(){return!0}}]),t}(di),mi=function(){function n(){this.X9=new Ai,this.Q9=function(){var n=function(){if(En.MR)return new Ri;if(En.IR||En.PR)return new gi;if(En.WR)return new Si;if(En.cR)return new bi;return new pi}();return En.JI?new Ei(n):En.Ks?new wi(n):En.wR?new Ii(n):En.bR?new Ti(n):En.NI?new ki(n):new di(n)}(),this.G9=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.Pd=function(){return self.performance.now()}:this.Pd=ut}var t=n.prototype;return t.H9=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.Bm=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.q9=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.xd=function(n,t){return u(n,t)},t.SZ=function(n,t){return f(n,t)},t.Cd=function(n){o(n)},t.EZ=function(n){s(n)},t.RN=function(){return this.z9.RN()},t.AN=function(){return this.z9.AN()},t.TN=function(){return this.z9.TN()},t.bN=function(){return this.z9.bN()},t.pN=function(){return this.z9.pN()},t.kN=function(n,t){return this.z9.kN(n,t)},t.yN=function(n){return this.z9.yN(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.Dm=function(n,t){if(void 0===t&&(t=ci(oi)),this.G9){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:"wB",get:function(){return this.X9}},{key:"Zs",get:function(){return this.Q9}},{key:"Em",get:function(){return{Sm:e&&e.userAgent.match(/Android /i)?"Android":"other",Im:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"yq",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"K9",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),Ai=function(){function n(){}return nn(n,[{key:"pB",get:function(){return e.oscpu}},{key:"Zs",get:function(){return e.platform}},{key:"yB",get:function(){return e.vendor}},{key:"AB",get:function(){return e.vendorSub}}]),n}();var Ni,Ci=function(){function n(){}var t=n.prototype;return t.pN=function(){return j.resolve(!1)},t.AN=function(){return j.resolve(!1)},t.bN=function(){return j.resolve(!1)},t.TN=function(){return j.resolve(!1)},t.yN=function(n){return j.resolve(!1)},t.kN=function(n,t){return j.resolve(!1)},t.RN=function(){return j.resolve(!1)},n}(),Di=function(){function n(){}var t=n.prototype;return t.vU=function(){},t.OP=function(n){},t.NP=function(n){},t.AO=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.OE="arraybuffer",n.LE="json",n.ME="stream",n.Kb="text"}(Ni||(Ni={}));var Li,Fi=function(){function n(t){var r=this;this.fd={},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){var t=Pi(n,2),i=t[0],e=t[1];r.append(i,e)})):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.fd.hasOwnProperty(e)){var u=this.fd[e],o=u[1];u[1]=o?o+", "+i:i}else this.fd[e]=[r,i]},t.delete=function(n){var t=Ui(n).toLowerCase();delete this.fd[t]},t.get=function(n){var t=Ui(n).toLowerCase();return this.fd.hasOwnProperty(t)?this.fd[t][1]:null},t.has=function(n){var t=Ui(n).toLowerCase();return this.fd.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=Ui(r)).toLowerCase();this.fd[i]=[r,Mi(t)]},t.forEach=function(n,t){for(var r in this.fd)this.fd.hasOwnProperty(r)&&n.call(t,this.fd[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.fd)if(this.fd.hasOwnProperty(t)){var r=Pi(this.fd[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.FE=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.UE=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.VE=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.ul=1]="ul",n[n.hd=-1]="hd"}(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.vd=!1,this.md=!1,this.wd=[],this.pd=[]}var t=n.prototype;return t._d=function(){if(!this.vd&&!this.md){this.vd=!0;for(var n=0,t=this.wd.slice();n<t.length;n++){(0,t[n])()}this.Ou()}},t.Ou=function(){if(!this.md){this.md=!0;for(var n=0,t=this.pd.slice();n<t.length;n++){(0,t[n])()}ji(this.wd),ji(this.pd)}},t.yd=function(n){this.md||this.wd.push(n)},t.bd=function(n){this.md||Gi(this.wd,n)},t.Td=function(n){this.md||this.pd.push(n)},t.Sd=function(n){this.md||Gi(this.pd,n)},n}(),Zi=function(){function n(){this.Ed=new Yi}var t=n.prototype;return t.Jl=function(){this.Ed._d()},t.Ou=function(){this.Ed.Ou()},t.Id=function(n){var t=this.Ed;if(!t.vd)if(n.vd)t._d();else if(!t.md&&!n.md){var r=function(){i(),t._d()},i=function(){n.bd(r),n.Sd(i),t.bd(r),t.Sd(i)};n.yd(r),n.Td(i),t.yd(r),t.Td(i)}},t.Rd=function(){var t=new n,r=new n,i=t.kd,e=r.kd,u=this.Ed,o=function(){i.vd&&e.md||e.vd&&i.md?u._d():i.md&&e.md&&u.Ou()};i.yd(o),e.yd(o),i.Td(o),e.Td(o),t.Id(u),r.Id(u);return u.Td((function(){i.bd(o),e.bd(o),i.Sd(o),e.Sd(o)})),[t,r]},nn(n,[{key:"kd",get:function(){return this.Ed}}]),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.jb="",n.HE="manifest",n.WE="segment",n.qE="preload-hint",n.zE="content-protection"}(qi||(qi={})),function(n){n.jb="",n.XE="initialization-segment",n.GE="fairplay-license",n.QE="fairplay-certificate",n.KE="widevine-license",n.YE="widevine-certificate",n.jE="playready-license",n.ZE="clearkey-license",n.JE="aes128-key"}(zi||(zi={})),function(n){n.jb="",n.lp="audio",n.vl="video",n.Kb="text",n.Yb="image"}(Xi||(Xi={})),function(n){n.$E="same-origin",n.Om="no-cors",n.tI="cors",n.eI="navigate"}($i||($i={}));var Ji=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_,y,d,w,E=n.TE;t?(r=t.iI,i=t.sI,e=t.nI,u=t.rI,o=t.kE,f=t.hI,s=t.kd,c=t.Jg,a=t.oI,h=t.aI,l=t.uI,v=t.cI,_=t.Kg,y=t.lI):(r=null,i={},e="GET",u=Ni.Kb,o=0,f=0,c="",a="",h="",l=!1,_=void 0,y=!1),this.TE=E,this.iI=n.iI||r,this.sI=new Fi(n.sI||i),this.nI=n.nI||e,this.rI=n.rI||u,this.kE=void 0!==n.kE?Number(n.kE)||0:o,this.hI=void 0!==n.hI?Number(n.hI)||0:f,this.kd=n.kd||s||(new Zi).kd,this.Jg=n.Jg||c,this.oI=n.oI||a,this.aI=n.aI||h,this.uI=void 0!==n.uI?Boolean(n.uI):l,this.cI=n.cI||v,this.Kg=null!=(d=n.Kg)?d:_,this.lI=null!=(w=n.lI)?w: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.vE="HttpOpenError",n.mE="HttpResponseError",n.wE="HttpTimeoutError"}(ne||(ne={}));var re=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).yE=t,e}return rn(t,n),nn(t,[{key:"pE",get:function(){return this.yE}}]),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.TE),r)}return rn(t,n),nn(t,[{key:"name",get:function(){return ne.vE}}]),t}(re),fe=function(){function n(){}var t=n.prototype;return t.pE=function(n){return j.reject(new oe(new Ji(n)))},t.MV=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).k7=new Ci,t.vI=new fe,t.i=new Di,t}return rn(t,n),t.prototype.oE=function(n){throw new se},nn(t,[{key:"z9",get:function(){return this.k7}},{key:"E7",get:function(){return!1}},{key:"vZ",get:function(){return!1}},{key:"C7",get:function(){return!1}},{key:"BZ",get:function(){return!1}},{key:"wO",get:function(){return this.i}},{key:"x7",get:function(){return{N7:gn}}},{key:"D7",get:function(){return"default"}},{key:"B7",get:function(){return"unknown"}},{key:"Gf",get:function(){return this.vI}}]),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 Oe(n){de===_e.length&&_e.push(_e.length+1);var t=de;return de=_e[t],_e[t]=n,t}var ge=0;function Se(n,t){var r=t(1*n.length);return pe().set(n,r/1),ge=n.length,r}var Te=new Int32Array;function be(){return Te.buffer!==he.memory.buffer&&(Te=new Int32Array(he.memory.buffer)),Te}function ke(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=ge;be()[n/4+1]=i,be()[n/4+0]=r},n.wbg.__wbg_metadata_792d18db149354e3=function(n){var t=ye(n).metadata;return ke(t)?0:Oe(t)},n.wbg.__wbg_spsnal_949e2b91c67b1988=function(n,t){var r=ye(t).sps_nal,i=ke(r)?0:Se(r,he.__wbindgen_export_0),e=ge;be()[n/4+1]=e,be()[n/4+0]=i},n.wbg.__wbg_ppsnal_0b287208c8bee8dc=function(n,t){var r=ye(t).pps_nal,i=ke(r)?0:Se(r,he.__wbindgen_export_0),e=ge;be()[n/4+1]=e,be()[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){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 Oe(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 Oe(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 Oe(p)},n.wbg.__wbg_createoutput_c1b51e340fe44a00=function(n,t){var r=function(n,t){return{data:n,metadata:t}}(we(n),we(t));return Oe(r)},n.wbg.__wbindgen_string_new=function(n,t){return Oe(Re(n,t))},n.wbg.__wbg_new_693216e109162396=function(){return Oe(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),ge=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 ge=s,o}(ye(t).stack,he.__wbindgen_export_0,he.__wbindgen_export_2),i=ge;be()[n/4+1]=i,be()[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.kw=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,Oe(n));var r=be()[t/4+0],i=be()[t/4+1];if(be()[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,Oe(n));var r=be()[t/4+0],i=be()[t/4+1];if(be()[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.kw)];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({lLt:"7.7.1"})}),(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);
|
|
30
|
+
!function(n){"use strict";var t,r,i=n.window,e=n.document,u=n.location,o=n.navigator,f=n.setTimeout,s=n.clearTimeout,c=n.setInterval,a=n.clearInterval,h=n.Error,l=n.TypeError,v=(n.SyntaxError,n.Object),_=n.Math,y=n.parseInt,d=n.parseFloat,w=n.isNaN,E=n.Uint8Array,I=(n.Worker,n.WorkerGlobalScope,n.XMLHttpRequest);"function"==typeof Symbol&&Symbol.iterator?t=Symbol:(r=0,(t=function(n){return"X4t"+n+"_"+ ++r}).iterator=t("Symbol.iterator"));var R=f;function p(n){return Boolean(n&&void 0!==n.length)}function O(){}function g(n){if(!(this instanceof g))throw new l("Promises must be constructed via new");if("function"!=typeof n)throw new l("not a function");this.Pa=0,this.z4t=!1,this.Jpt=void 0,this.G4t=[],m(n,this)}function S(n,t){for(;3===n.Pa;)n=n.Jpt;0!==n.Pa?(n.z4t=!0,g.q4t((function(){var r=1===n.Pa?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.Jpt)}catch(n){return void k(t.promise,n)}T(t.promise,i)}else(1===n.Pa?T:k)(t.promise,n.Jpt)}))):n.G4t.push(t)}function T(n,t){try{if(t===n)throw new l("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.Jpt=t,void b(n);if("function"==typeof r)return void m(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.Pa=1,n.Jpt=t,b(n)}catch(t){k(n,t)}}function k(n,t){n.Pa=2,n.Jpt=t,b(n)}function b(n){2===n.Pa&&0===n.G4t.length&&g.q4t((function(){n.z4t||g.Y4t(n.Jpt)}));for(var t=0,r=n.G4t.length;t<r;t++)S(n,n.G4t[t]);n.G4t=null}function A(n,t,r){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function m(n,t){var r=!1;try{n((function(n){r||(r=!0,T(t,n))}),(function(n){r||(r=!0,k(t,n))}))}catch(n){if(r)return;r=!0,k(t,n)}}g.prototype.catch=function(n){return this.then(null,n)},g.prototype.then=function(n,t){var r=new this.constructor(O);return S(this,new A(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(!p(n))return r(new l("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(r,i){if(!n||void 0===n.length)return i(new l((void 0===n?"undefined":function(n){return n&&void 0!==t&&n.constructor===t?"symbol":typeof n}(n))+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var e=Array.prototype.slice.call(n);if(0===e.length)return r([]);var u=e.length;function o(n,t){if(t&&("object"==typeof t||"function"==typeof t)){var i=t.then;if("function"==typeof i)return void i.call(t,(function(t){o(n,t)}),(function(t){e[n]={status:"rejected",reason:t},0==--u&&r(e)}))}e[n]={status:"fulfilled",value:t},0==--u&&r(e)}for(var f=0;f<e.length;f++)o(f,e[f])}))},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(!p(n))return r(new l("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)g.resolve(n[i]).then(t,r)}))},g.q4t="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){R(n,0)},g.Y4t=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};var N=function(){var n=self.Promise;if(void 0!==n)try{if(-1!==n.toString().indexOf("[native code]"))return n}catch(n){}}(),C=o?o.userAgent:"",D=C.match(/Firefox\/([0-9]+)/i),P=null!=D,L=D?Number(D[1]):0,F=C.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),U=null!=F,M=F?Number(F[3]):0,W=function(){function n(n){this.jP=0,this.XH=0,this.UC=[],this.Q4t=n}return n.prototype.j4t=function(n){var t=this.length();this.K4t(t+1);var r=this.XH+t&this.Q4t-1;this.UC[r]=n,this.jP=t+1},n.prototype.push=function(n){var t=this.length()+1;if(this.Q4t<t)this.j4t(n);else{var r=this.XH+t-1,i=this.Q4t-1;this.UC[r&i]=n,this.jP=t}},n.prototype.shift=function(){var n=this.XH,t=this.UC[n];return this.UC[n]=void 0,this.XH=n+1&this.Q4t-1,this.jP--,t},n.prototype.length=function(){return this.jP},n.prototype.K4t=function(n){this.Q4t<n&&this.Z4t(this.Q4t<<1)},n.prototype.Z4t=function(n){var t=this.Q4t;this.Q4t=n;var r=this.XH+this.jP&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.UC,0,t,r)},n}();var V="unhandledrejection",H=self.PromiseRejectionEvent,B=self.CustomEvent;function x(n){return new H(V,{reason:n,promise:N.reject(n).catch((function(){})),cancelable:!0})}function G(n){var t=new B(V,{detail:{reason:n},cancelable:!0});return v.defineProperty(t,"reason",{value:n}),t}function j(n){var t=e.createEvent("CustomEvent");return t.initCustomEvent(V,!1,!0,{reason:n}),t}var K,q,z,X,$,Y,Z,J,Q,nn=function(n){return nn=function(){try{var n=N.resolve(),t="error",r=new H(V,{reason:t,promise:n});return V===r.type&&t===r.reason}catch(n){}return!1}()?x:function(){try{var n="error",t=new B(V,{detail:{reason:n}});return V===t.type&&n===t.detail.reason}catch(n){}return!1}()?G:j,nn(n)};function tn(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),v.defineProperty(n,i.key,i)}}function rn(n,t,r){return t&&tn(n.prototype,t),r&&tn(n,r),n}function en(n,t){return en=v.setPrototypeOf||function(n,t){return n.__proto__=t,n},en(n,t)}function un(n,t){if("function"!=typeof t&&null!==t)throw new l("Super expression must either be null or a function");n.prototype=v.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&en(n,t)}function on(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 fn(n,t){if(n){if("string"==typeof n)return on(n,t);var r=v.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)?on(n,t):void 0}}function sn(n){return function(n){if(Array.isArray(n))return on(n)}(n)||function(n){if(void 0!==t&&null!=n[t.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||fn(n)||function(){throw new l("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}N&&!(P&&L<60||U&&M<15)?q=N:(q=g,Z=null!==(K=function(){var n=self.queueMicrotask;if("function"==typeof n)return function(t){return n(t)};var t=N;if(t&&"function"==typeof t.resolve){var r=t.resolve();return function(n){return r.then(n)}}}())&&void 0!==K?K:g.q4t,z=Z,X=new W(16),$=!1,(J={F$:function(n){X.push(n),$||($=!0,z(Y))},OV:Y=function(){for(;X.length()>0;)X.shift()();$=!1}}).OV,g.q4t=J.F$,g.Y4t=function(n){try{var t=nn(n);if(!self.dispatchEvent(t)||t.defaultPrevented)return}catch(n){}f((function(){throw new h("Unhandled promise rejection: ".concat(n))}),0)}),function(n){n.SI="web",n.kI="android",n.EI="android-tv",n.II="ios",n.RI="tvos",n.CI="chromecast",n.xI="theoliveweb"}(Q||(Q={}));var cn=o?o.userAgent:"",an=cn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),hn=cn.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),ln=cn.match(/Android ([0-9\.]+)/i),vn=cn.match(/Windows NT ([0-9\.]+)/i),_n=cn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),yn=cn.match(/Firefox\/([0-9\.]+)/i),dn=cn.match(/OPR\/(\d+\.\d+)/i),wn=cn.match(/Tizen ([0-9\.]+)/i),En=cn.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),In=function(){function n(){this.NI=Boolean("ontouchstart"in self||self.DocumentTouch&&e instanceof self.DocumentTouch||o&&o.msMaxTouchPoints),this.BI=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(cn)||/(macintosh|mac(?=_powerpc)\s)/i.test(cn),this.LI=/Windows NT/i.test(cn),this.FI=vn?d(vn[1]):0,this.VI=/Android/i.test(cn),this.WI=ln?d(ln[1]):0,this.zI=/windows phone (8|8\.1)/i.test(cn),this.GI=/iPhone/i.test(cn),this.KI=/iPad/i.test(cn),this.jI=this.BI&&this.NI&&!this.KI,this.JI=/iPod/i.test(cn),this.oR=/Mobile Safari/i.test(cn),this.nR=/EOS\d*STB/i.test(cn),this.rR=/APP\d*STB/i.test(cn),this.tR=(this.GI||this.KI||this.jI||this.JI)&&!this.zI,this.iR=En?d(En[2]):0,this.aR=this.zI||this.tR||this.VI||this.oR,this.cR=/CriOS/i.test(cn),this.dR=Boolean(self.chrome&&/google/i.test(o.vendor))||this.cR,this.mR=this.dR&&/Edg\//i.test(o.userAgent),this.pR=hn?y(hn[1],10):0,this.vP=Boolean(self.chrome||/Chrome/i.test(cn)||/CriOS/i.test(cn)),this.gR=an?y(an[1],10):0,this.AR=/SMART-TV.*Tizen/i.test(cn),this.SR=wn?d(wn[1]):0,this._R=this.SR>0?function(n){return n>=8?108:n>=7?94:n>=6.5?85:n>=6?76:n>=5.5?69:n>=5?63:n>=4?56:n>=3?47:0}(this.SR):void 0,this.ER=/webos|web0s/i.test(cn),this.RR=/VIZIO/i.test(cn),this.xR=/Edge\/\d+/i.test(cn),this.DR=/Trident/i.test(cn),this.LR=this.DR&&!self.ActiveXObject&&"ActiveXObject"in self,this.FR=/Vivaldi/i.test(cn),this.HR=/Firefox/i.test(cn)&&!/Seamonkey/i.test(cn),this.qR=yn?d(yn[1]):0,this.XR=/Safari/i.test(cn)&&!/Chrome/i.test(cn)&&!this.zI&&!this.AR,this.QR=_n?d(_n[2]):0,this.YR=Boolean(dn),this.ZR=dn?d(dn[1]):0,this.$R=/CrKey/.test(cn),this.eP=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(cn),this.nP="web"===Q.EI,this.hP="web"===Q.kI,this.aP=this.hP||this.nP,this.cP="web"===Q.II,this.dP="web"===Q.RI,this._P="web"===Q.CI}return rn(n,[{key:"Ye",get:function(){return this.NI}},{key:"DI",get:function(){return this.BI}},{key:"OI",get:function(){return this.LI}},{key:"MI",get:function(){return this.FI}},{key:"UI",get:function(){return this.VI}},{key:"HI",get:function(){return this.WI}},{key:"qI",get:function(){return this.zI}},{key:"XI",get:function(){return this.GI}},{key:"QI",get:function(){return this.KI}},{key:"YI",get:function(){return this.jI}},{key:"ZI",get:function(){return this.JI}},{key:"$I",get:function(){return this.tR}},{key:"eR",get:function(){return this.iR}},{key:"sR",get:function(){return this.nR||this.rR}},{key:"hR",get:function(){return this.oR}},{key:"Ks",get:function(){return this.aR}},{key:"uR",get:function(){return this.cR}},{key:"lR",get:function(){return this.dR}},{key:"fR",get:function(){var n;return null!=(n=this._R)?n:this.gR}},{key:"vR",get:function(){return this.mR}},{key:"wR",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.RR}},{key:"PR",get:function(){return this.xR}},{key:"NR",get:function(){return this.DR}},{key:"OR",get:function(){return this.LR}},{key:"MR",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.YR}},{key:"jR",get:function(){return this.ZR}},{key:"JR",get:function(){return this.$R}},{key:"tP",get:function(){return this.eP}},{key:"iP",get:function(){return!(!this.kR&&!this.yR)&&this.fR<=56}},{key:"sP",get:function(){return this.nP}},{key:"rP",get:function(){return this.hP}},{key:"oP",get:function(){return this.aP}},{key:"uP",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}}]),n}();In.mP=new In;var Rn=In.mP,pn={}.toString;function On(n){return null!=n}Array.isArray;function gn(n){return"object"==typeof n&&null!==n}function Sn(n){return function(n){return"function"==typeof n}(n)||gn(n)}var Tn=function(){},kn=!(Rn.NR&&!Rn.OR),bn=self.console;function An(n){if(gn(n))try{return JSON.stringify(n)}catch(n){}return n}function mn(n){return n.map(An).join(" ")}function Nn(n){var t=bn&&bn[n];return t?t.bind&&kn?t.bind(bn):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];bn[n](mn(r))}:void 0}var Cn=Nn("log")||Tn,Dn=Nn("warn")||Cn.bind(void 0,"WARNING:"),Pn=Nn("error")||Cn.bind(void 0,"ERROR:"),Ln=function(){var n=bn&&bn.assert;return n?n.bind&&kn?n.bind(bn):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];bn.assert(n,mn(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||Pn.apply(void 0,["Assertion failed:"].concat(sn(r)))}}(),Fn=null;try{Fn=new WebAssembly.Instance(new WebAssembly.Module(new E([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(z){}function Un(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function Mn(n){return!0===(n&&n.pp)}function Wn(n){var t=_.clz32(n&-n);return n?31-t:t}Un.prototype.pp,v.defineProperty(Un.prototype,"pp",{value:!0}),Un.isLong=Mn;var Vn={},Hn={};function Bn(n,t){var r,i,e;return t?(e=0<=(n>>>=0)&&n<256)&&(i=Hn[n])?i:(r=Gn(n,0,!0),e&&(Hn[n]=r),r):(e=-128<=(n|=0)&&n<128)&&(i=Vn[n])?i:(r=Gn(n,n<0?-1:0,!1),e&&(Vn[n]=r),r)}function xn(n,t){if(w(n))return t?Jn:Zn;if(t){if(n<0)return Jn;if(n>=Xn)return it}else{if(n<=-$n)return et;if(n+1>=$n)return rt}return n<0?xn(-n,t).neg():Gn(n%zn|0,n/zn|0,t)}function Gn(n,t,r){return new Un(n,t,r)}Un.fromInt=Bn,Un.fromNumber=xn,Un.fromBits=Gn;var jn=_.pow;function Kn(n,t,r){if(0===n.length)throw h("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===n||"Infinity"===n||"+Infinity"===n||"-Infinity"===n)return t?Jn:Zn;if((r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=n.indexOf("-"))>0)throw h("interior hyphen");if(0===i)return Kn(n.substring(1),t,r).neg();for(var e=xn(jn(r,8)),u=Zn,o=0;o<n.length;o+=8){var f=_.min(8,n.length-o),s=y(n.substring(o,o+f),r);if(f<8){var c=xn(jn(r,f));u=u.mul(c).add(xn(s))}else u=(u=u.mul(e)).add(xn(s))}return u.unsigned=t,u}function qn(n,t){return"number"==typeof n?xn(n,t):"string"==typeof n?Kn(n,t):Gn(n.low,n.high,"boolean"==typeof t?t:n.unsigned)}Un.fromString=Kn,Un.fromValue=qn;var zn=4294967296,Xn=zn*zn,$n=Xn/2,Yn=Bn(1<<24),Zn=Bn(0);Un.ZERO=Zn;var Jn=Bn(0,!0);Un.UZERO=Jn;var Qn=Bn(1);Un.ONE=Qn;var nt=Bn(1,!0);Un.UONE=nt;var tt=Bn(-1);Un.NEG_ONE=tt;var rt=Gn(-1,2147483647,!1);Un.MAX_VALUE=rt;var it=Gn(-1,-1,!0);Un.MAX_UNSIGNED_VALUE=it;var et=Gn(0,-2147483648,!1);Un.MIN_VALUE=et;var ut=Un.prototype;ut.toInt=function(){return this.unsigned?this.low>>>0:this.low},ut.toNumber=function(){return this.unsigned?(this.high>>>0)*zn+(this.low>>>0):this.high*zn+(this.low>>>0)},ut.toString=function(n){if((n=n||10)<2||36<n)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(et)){var t=xn(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=xn(jn(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}},ut.getHighBits=function(){return this.high},ut.getHighBitsUnsigned=function(){return this.high>>>0},ut.getLowBits=function(){return this.low},ut.getLowBitsUnsigned=function(){return this.low>>>0},ut.getNumBitsAbs=function(){if(this.isNegative())return this.eq(et)?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},ut.isZero=function(){return 0===this.high&&0===this.low},ut.eqz=ut.isZero,ut.isNegative=function(){return!this.unsigned&&this.high<0},ut.isPositive=function(){return this.unsigned||this.high>=0},ut.isOdd=function(){return 1==(1&this.low)},ut.isEven=function(){return 0==(1&this.low)},ut.equals=function(n){return Mn(n)||(n=qn(n)),(this.unsigned===n.unsigned||this.high>>>31!=1||n.high>>>31!=1)&&(this.high===n.high&&this.low===n.low)},ut.eq=ut.equals,ut.notEquals=function(n){return!this.eq(n)},ut.neq=ut.notEquals,ut.ne=ut.notEquals,ut.lessThan=function(n){return this.comp(n)<0},ut.lt=ut.lessThan,ut.lessThanOrEqual=function(n){return this.comp(n)<=0},ut.lte=ut.lessThanOrEqual,ut.le=ut.lessThanOrEqual,ut.greaterThan=function(n){return this.comp(n)>0},ut.gt=ut.greaterThan,ut.greaterThanOrEqual=function(n){return this.comp(n)>=0},ut.gte=ut.greaterThanOrEqual,ut.ge=ut.greaterThanOrEqual,ut.compare=function(n){if(Mn(n)||(n=qn(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},ut.comp=ut.compare,ut.negate=function(){return!this.unsigned&&this.eq(et)?et:this.not().add(Qn)},ut.neg=ut.negate,ut.add=function(n){Mn(n)||(n=qn(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,Gn((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},ut.subtract=function(n){return Mn(n)||(n=qn(n)),this.add(n.neg())},ut.sub=ut.subtract,ut.multiply=function(n){if(this.isZero())return this;if(Mn(n)||(n=qn(n)),Fn)return Gn(Fn.mul(this.low,this.high,n.low,n.high),Fn.get_high(),this.unsigned);if(n.isZero())return this.unsigned?Jn:Zn;if(this.eq(et))return n.isOdd()?et:Zn;if(n.eq(et))return this.isOdd()?et:Zn;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(Yn)&&n.lt(Yn))return xn(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,Gn((h&=65535)<<16|(l&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},ut.mul=ut.multiply,ut.divide=function(n){if(Mn(n)||(n=qn(n)),n.isZero())throw h("division by zero");var t,r,i;if(Fn)return this.unsigned||-2147483648!==this.high||-1!==n.low||-1!==n.high?Gn((this.unsigned?Fn.div_u:Fn.div_s)(this.low,this.high,n.low,n.high),Fn.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?Jn:Zn;if(this.unsigned){if(n.unsigned||(n=n.toUnsigned()),n.gt(this))return Jn;if(n.gt(this.shru(1)))return nt;i=Jn}else{if(this.eq(et))return n.eq(Qn)||n.eq(tt)?et:n.eq(et)?Qn:(t=this.shr(1).div(n).shl(1)).eq(Zn)?n.isNegative()?Qn:tt:(r=this.sub(n.mul(t)),i=t.add(r.div(n)));if(n.eq(et))return this.unsigned?Jn:Zn;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=Zn}for(r=this;r.gte(n);){t=_.max(1,_.floor(r.toNumber()/n.toNumber()));for(var e=_.ceil(_.log(t)/_.LN2),u=e<=48?1:jn(2,e-48),o=xn(t),f=o.mul(n);f.isNegative()||f.gt(r);)f=(o=xn(t-=u,this.unsigned)).mul(n);o.isZero()&&(o=Qn),i=i.add(o),r=r.sub(f)}return i},ut.div=ut.divide,ut.modulo=function(n){return Mn(n)||(n=qn(n)),Fn?Gn((this.unsigned?Fn.rem_u:Fn.rem_s)(this.low,this.high,n.low,n.high),Fn.get_high(),this.unsigned):this.sub(this.div(n).mul(n))},ut.mod=ut.modulo,ut.rem=ut.modulo,ut.not=function(){return Gn(~this.low,~this.high,this.unsigned)},ut.countLeadingZeros=function(){return this.high?_.clz32(this.high):_.clz32(this.low)+32},ut.clz=ut.countLeadingZeros,ut.countTrailingZeros=function(){return this.low?Wn(this.low):Wn(this.high)+32},ut.ctz=ut.countTrailingZeros,ut.and=function(n){return Mn(n)||(n=qn(n)),Gn(this.low&n.low,this.high&n.high,this.unsigned)},ut.or=function(n){return Mn(n)||(n=qn(n)),Gn(this.low|n.low,this.high|n.high,this.unsigned)},ut.xor=function(n){return Mn(n)||(n=qn(n)),Gn(this.low^n.low,this.high^n.high,this.unsigned)},ut.shiftLeft=function(n){return Mn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Gn(this.low<<n,this.high<<n|this.low>>>32-n,this.unsigned):Gn(0,this.low<<n-32,this.unsigned)},ut.shl=ut.shiftLeft,ut.shiftRight=function(n){return Mn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Gn(this.low>>>n|this.high<<32-n,this.high>>n,this.unsigned):Gn(this.high>>n-32,this.high>=0?0:-1,this.unsigned)},ut.shr=ut.shiftRight,ut.shiftRightUnsigned=function(n){return Mn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Gn(this.low>>>n|this.high<<32-n,this.high>>>n,this.unsigned):Gn(32===n?this.high:this.high>>>n-32,0,this.unsigned)},ut.shru=ut.shiftRightUnsigned,ut.shr_u=ut.shiftRightUnsigned,ut.rotateLeft=function(n){var t;return Mn(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Gn(this.high,this.low,this.unsigned):n<32?(t=32-n,Gn(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned)):(t=32-(n-=32),Gn(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned))},ut.rotl=ut.rotateLeft,ut.rotateRight=function(n){var t;return Mn(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Gn(this.high,this.low,this.unsigned):n<32?(t=32-n,Gn(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned)):(t=32-(n-=32),Gn(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned))},ut.rotr=ut.rotateRight,ut.toSigned=function(){return this.unsigned?Gn(this.low,this.high,!1):this},ut.toUnsigned=function(){return this.unsigned?this:Gn(this.low,this.high,!0)},ut.toBytes=function(n){return n?this.toBytesLE():this.toBytesBE()},ut.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]},ut.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]},Un.fromBytes=function(n,t,r){return r?Un.fromBytesLE(n,t):Un.fromBytesBE(n,t)},Un.fromBytesLE=function(n,t){return new Un(n[0]|n[1]<<8|n[2]<<16|n[3]<<24,n[4]|n[5]<<8|n[6]<<16|n[7]<<24,t)},Un.fromBytesBE=function(n,t){return new Un(n[4]<<24|n[5]<<16|n[6]<<8|n[7],n[0]<<24|n[1]<<16|n[2]<<8|n[3],t)};var ot=Un;_.pow(2,-52);function ft(){return Date.now()||(new Date).getTime()}ot.fromNumber(9007199254740991);function st(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),v.defineProperty(n,i.key,i)}}function ct(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){at(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&at(r,null,n.length,n),n}function at(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 ht=/[a-zA-Z]/,lt=/[0-9]/,vt=/[0-9a-fA-F]/,_t=/^0x/i,yt=/^[0-9]+$/,dt=/^[0-9a-fA-F]+$/,wt=/^[0-7]+$/,Et=v.prototype.toString,It=Array.isArray||function(n){return"[object Array]"===Et.call(n)},Rt=void 0!==t&&"symbol"==typeof t.iterator;function pt(n){return It(n)?n:Array.from(n)}function Ot(n,t,r){var i=n[t];n[t]=n[r],n[r]=i}function gt(n){return n>=65&&n<=90}function St(n){return gt(n)||function(n){return n>=97&&n<=122}(n)}function Tt(n){return n>=48&&n<=57}function kt(n){return Tt(n)||St(n)}function bt(n){return Tt(n)||n>=65&&n<=70||n>=97&&n<=102}function At(n){return gt(n)?n+32:n}function mt(n){return Tt(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function Nt(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var Ct=_.min,Dt=String.fromCharCode,Pt=16384;function Lt(n){for(var t=n.length,r=[],i=0;i<t;i+=Pt){var e=Ct(i+Pt,t);r.push(Dt.apply(null,n.slice(i,e)))}return r.join("")}var Ft=2147483647,Ut=/[^\0-\x7E]/,Mt=/[\x2E\u3002\uFF0E\uFF61]/g,Wt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Vt=_.floor,Ht=String.fromCharCode;function Bt(n){throw new RangeError(Wt[n])}function xt(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 Gt,jt,Kt,qt=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},zt=function(n,t,r){var i=0;for(n=r?Vt(n/700):n>>1,n+=Vt(n/t);n>455;i+=36)n=Vt(n/35);return Vt(i+36*n/(n+38))},Xt=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(Mt,".")).split("."),t).join(".");return i+e}(n,(function(n){return Ut.test(n)?"xn--"+function(n){for(var t=[],r=(n=xt(n)).length,i=128,e=0,u=72,o=0,f=n;o<f.length;o++){var s=f[o];s<128&&t.push(Ht(s))}var c=t.length,a=c;for(c&&t.push("-");a<r;){for(var h=Ft,l=0,v=n;l<v.length;l++){var _=v[l];_>=i&&_<h&&(h=_)}var y=a+1;h-i>Vt((Ft-e)/y)&&Bt("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>Ft&&Bt("overflow"),E==i){for(var I=e,R=36;;R+=36){var p=R<=u?1:R>=u+26?26:R-u;if(I<p)break;var O=I-p,g=36-p;t.push(Ht(qt(p+O%g,0))),I=Vt(O/g)}t.push(Ht(qt(I,0))),u=zt(e,y,a==c),e=0,++a}}++e,++i}return t.join("")}(n):n}))};function $t(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 Lt(t)}function Yt(n){if(n>=55296&&n<=57343)throw new h("Lone surrogate U+"+n.toString(16).toUpperCase()+" is not a scalar value")}function Zt(n,t){return n>>t&63|128}function Jt(n,t){0!=(4294967168&n)?(0==(4294965248&n)?t.push(n>>6&31|192):0==(4294901760&n)?(Yt(n),t.push(n>>12&15|224),t.push(Zt(n,6))):0==(4292870144&n)&&(t.push(n>>18&7|240),t.push(Zt(n,12)),t.push(Zt(n,6))),t.push(63&n|128)):t.push(n)}function Qt(n){for(var t=[],r=0;r<n.length;r++){Jt(n[r],t)}return t}function nr(){if(Kt>=jt)throw new h("Invalid byte index");var n=255&Gt[Kt];if(Kt++,128==(192&n))return 63&n;throw new h("Invalid continuation byte")}function tr(){var n,t;if(Kt>jt)throw new h("Invalid byte index");if(Kt===jt)return!1;if(n=255&Gt[Kt],Kt++,0==(128&n))return n;if(192==(224&n)){if((t=(31&n)<<6|nr())>=128)return t;throw new h("Invalid continuation byte")}if(224==(240&n)){if((t=(15&n)<<12|nr()<<6|nr())>=2048)return Yt(t),t;throw new h("Invalid continuation byte")}if(240==(248&n)&&(t=(7&n)<<18|nr()<<12|nr()<<6|nr())>=65536&&t<=1114111)return t;throw new h("Invalid UTF-8 detected")}function rr(n){return[37,Nt(n>>4),Nt(15&n)]}function ir(n){return function(n){return n>=0&&n<=31}(n)||n>126}function er(n){return ir(n)||32===n||34===n||60===n||62===n||96===n}function ur(n){return er(n)||35===n||63===n||123===n||125===n}function or(n){return ur(n)||47===n||58===n||59===n||61===n||64===n||n>=91&&n<=94||124===n}function fr(n){return n<33||n>126||34===n||35===n||60===n||62===n}function sr(n){return fr(n)||39===n}function cr(n,t){if(!t(n))return[n];for(var r=Qt([n]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,rr(u))}return i}function ar(n,t){for(var r=[],i=0,e=xt(n);i<e.length;i++){var u=e[i];r.push.apply(r,cr(u,t))}return $t(r)}function hr(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&&bt(n[i+1])&&bt(n[i+2])){var u=mt(n[i+1])<<4|mt(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(Qt(n))}function lr(n){return $t(function(n){Gt=n.slice(),jt=Gt.length,Kt=0;for(var t,r=[];!1!==(t=tr());)r.push(t);return r}(hr(xt(n))))}function vr(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 l;u+=2,e=i+=1}for(;u<t;){if(8===i)throw new l("Too many groups");if(":"!==n[u]){for(var o=0,f=0;f<4&&u<t&&vt.test(n[u]);)o=o<<4|y(n[u],16),u+=1,f+=1;if("."===n[u]){if(0===f)throw new l;if(u-=f,i>6)throw new l;for(var s=0;u<t;){var c=null;if(s>0){if(!("."===n[u]&&s<4))throw new l;u+=1}if(!lt.test(n[u]))throw new l;for(;u<t&<.test(n[u]);){var a=y(n[u],10);if(null===c)c=a;else{if(0===c)throw new l;if((c=10*c+a)>255)throw new l}u+=1}r[i]=r[i]<<8|c,2!==(s+=1)&&4!==s||(i+=1)}if(4!==s)throw new l;break}if(":"===n[u]){if((u+=1)===t)throw new l}else if(u<t)throw new l;r[i]=o,i+=1}else{if(null!==e)throw new l("Too many :: groups");u+=1,e=i+=1}}if(null!==e){var h=i-e;for(i=7;0!==i&&h>0;)Ot(r,i,e+h-1),i-=1,h-=1}else if(8!==i)throw new l;return r}function _r(n){var t=10,r=yt;return _t.test(n)?(n=n.slice(2),t=16,r=dt):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=wt),""===n?0:r.test(n)?y(n,t):void 0}var yr={LJ:4},dr=/[\0\t\n\r #%/:?@\[\\\]]/,wr=/[\0\t\n\r #/:?@\[\\\]]/;function Er(n,t){if("["===n[0]){if("]"!==n[n.length-1])throw new l("Invalid IPv6 address");return{LJ:2,_9:vr(n.slice(1,-1))}}if(!t)return function(n){if(wr.test(n))throw new l("Invalid code point in opaque host");var t=ar(n,ir);return""===t?yr:{LJ:3,UC:t}}(n);var r=function(n){var t=function(n){return Xt(n.toLowerCase())}(n);return t}(lr(n));if(dr.test(r))throw new l("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=_r(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new l;if(r[r.length-1]>=_.pow(256,5-r.length))throw new l;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*_.pow(256,3-s);return f}}(r);return void 0!==i?{LJ:1,_9:i}:""===r?yr:{LJ:0,g9:r}}function Ir(n){switch(n.LJ){case 0:return n.g9;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._9);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._9)+"]";case 3:return n.UC;case 4:return""}}var Rr=/\+/g;function pr(n){return 42===n||45===n||46===n||95===n||kt(n)}function Or(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(Rr," "),f=f.replace(Rr," ");var s=lr(o),c=lr(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+=Sr(Qt(xt(i[0])))+"="+Sr(Qt(xt(i[1])))}return t}function Sr(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];32===i?t.push(43):pr(i)?t.push(i):t.push.apply(t,rr(i))}return Lt(t)}var Tr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function kr(n){var t=""+n,r=Tr.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(Ar(u))if(mr(u)||e===r-1)i.push(br);else{var o=n.charCodeAt(e+1);mr(o)?(i.push(u,o),e++):i.push(br)}else i.push(u)}return n.slice(0,t)+Lt(i)}(t,r.index):t}var br=65533,Ar=function(n){return 55296==(63488&n)},mr=function(n){return 0!=(1024&n)};function Nr(n,t){var r=n[0],i=t[0];return r===i?0:r<i?-1:1}function Cr(n){n.v9.length=0}function Dr(n,t){!function(n,t){for(var r=0;r<t.length;r++)n[r]=t[r];n.length=t.length}(n.v9,Or(t))}function Pr(n){if(n.m9){var t=gr(n.v9);""===t&&(t=null),n.m9.m9.w9=t}}var Lr=function(){function n(n){if(void 0===n&&(n=void 0),this.m9=null,null==n)this.v9=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof Lr&&!!It(n.v9)&&(!Rt||n[t.iterator]===Fr)}(n))this.v9=n.v9.slice();else if(function(n){return null!=n&&(!!It(n)||!!Rt&&"function"==typeof n[t.iterator])}(n)){this.v9=[];for(var r=0,i=pt(n);r<i.length;r++){var e=pt(i[r]);if(2!==e.length)throw new l("Invalid name-value pair");this.v9.push([kr(e[0]),kr(e[1])])}}else for(var u in this.v9=[],n)v.prototype.hasOwnProperty.call(n,u)&&this.v9.push([kr(u),kr(n[u])]);else(n=kr(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.v9=Or(n)}var r=n.prototype;return r.append=function(n,t){n=kr(n),t=kr(t),this.v9.push([n,t]),Pr(this)},r.delete=function(n){n=kr(n);for(var t=this.v9,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}Pr(this)},r.get=function(n){n=kr(n);for(var t=this.v9,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},r.getAll=function(n){n=kr(n);for(var t=this.v9,r=[],i=0;i<t.length;i++){var e=t[i];e[0]===n&&r.push(e[1])}return r},r.has=function(n){n=kr(n);for(var t=this.v9,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},r.set=function(n,t){n=kr(n),t=kr(t);for(var r=this.v9,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]),Pr(this)},r.sort=function(){ct(this.v9,Nr),Pr(this)},r.toString=function(){return gr(this.v9)},r.entries=function(){return new Vr(this.v9,Ur)},r.keys=function(){return new Vr(this.v9,Mr)},r.values=function(){return new Vr(this.v9,Wr)},r.forEach=function(n){var t=this;this.v9.forEach((function(r){return n(r[1],r[0],t)}))},n}(),Fr=Lr.prototype.entries;Rt&&(Lr.prototype[t.iterator]=Fr);var Ur=function(n){return[n[0],n[1]]},Mr=function(n){return n[0]},Wr=function(n){return n[1]},Vr=function(){function n(n,t){this.p9=0,this.v9=n,this.y9=t}return n.prototype.next=function(){return this.p9<this.v9.length?{done:!1,value:this.y9(this.v9[this.p9++])}:{done:!0,value:void 0}},n}(),Hr="null";var Br=v.create(null);Br.ftp=21,Br.file=0,Br.gopher=70,Br.http=80,Br.https=443,Br.ws=80,Br.wss=443;var xr=/^(?:\.|%2e)$/i,Gr=/^(?:\.|%2e){2}$/i;function jr(n){return xr.test(n)}function Kr(n){return Gr.test(n)}function qr(n){return void 0!==Br[n]}function zr(n){return qr(n.uO)}function Xr(n){return""!==n.A9||""!==n.b9}function $r(n){var t=n.length;if(!(t>=2))return!1;if(!Zr(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 Yr(n){return 2===n.length&&ht.test(n[0])&&(":"===n[1]||"|"===n[1])}function Zr(n){return 2===n.length&&Yr(Lt(n))}function Jr(n){return Yr(n)&&":"===n[1]}function Qr(n){var t=n.T9;0!==t.length&&("file"===n.uO&&1===t.length&&Jr(t[0])||t.pop())}function ni(n){return null===n.S9||yr===n.S9||n.k9||"file"===n.uO}var ti=-1,ri=/\t|\n|\r/g,ii=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function ei(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new oi,n=n.replace(ii,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=xt(n=n.replace(ri,"")),a=c.length,h=0;h<=a;){var v=h<a?c[h]:ti;switch(e){case 0:if(!St(v)){if(null===i){u.length=0,e=2;continue}throw new l("Invalid scheme")}u.push(At(v)),e=1;break;case 1:if(kt(v)||43===v||45===v||46===v)u.push(At(v));else{if(58!==v){if(null===i){u.length=0,e=2,h=0;continue}throw new l("Invalid scheme")}var _=$t(u);if(null!==i){if(qr(r.uO)&&!qr(_))return;if(!qr(r.uO)&&qr(_))return;if((Xr(r)||null!==r.k6)&&"file"===_)return;if("file"===r.uO&&(r.S9===yr||null===r.S9))return}if(r.uO=_,null!==i)return void(zr(r)&&r.k6===Br[r.uO]&&(r.k6=null));u.length=0,"file"===r.uO?e=13:zr(r)&&t&&t.uO===r.uO?e=3:zr(r)?e=7:47===c[h+1]?(e=4,h+=1):(r.k9=!0,r.T9.push(""),e=18)}break;case 2:if(!t||t.k9&&35!==v)throw new l("Invalid scheme");t.k9&&35===v?(r.uO=t.uO,r.T9=t.T9.slice(),r.w9=t.w9,r.E9="",r.k9=!0,e=20):"file"!==t.uO?(e=5,h-=1):(e=13,h-=1);break;case 3:47===v&&47===c[h+1]?e=8:(e=5,h-=1);break;case 4:47===v?e=9:(e=17,h-=1);break;case 5:r.uO=t.uO,ti===v?(r.A9=t.A9,r.b9=t.b9,r.S9=t.S9,r.k6=t.k6,r.T9=t.T9.slice(),r.w9=t.w9):47===v?e=6:63===v?(r.A9=t.A9,r.b9=t.b9,r.S9=t.S9,r.k6=t.k6,r.T9=t.T9.slice(),r.w9="",e=19):35===v?(r.A9=t.A9,r.b9=t.b9,r.S9=t.S9,r.k6=t.k6,r.T9=t.T9.slice(),r.w9=t.w9,r.E9="",e=20):92===v&&zr(r)?e=6:(r.A9=t.A9,r.b9=t.b9,r.S9=t.S9,r.k6=t.k6,r.T9=t.T9.slice(),r.T9.pop(),e=17,h-=1);break;case 6:!zr(r)||47!==v&&92!==v?47===v?e=9:(r.A9=t.A9,r.b9=t.b9,r.S9=t.S9,r.k6=t.k6,e=17,h-=1):e=8;break;case 7:if(47!==v||47!==c[h+1]){e=8;continue}e=8,h+=1;break;case 8:47!==v&&92!==v&&(e=9,h-=1);break;case 9:if(64===v){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=$t(cr(w,or));s?r.b9+=E:r.A9+=E}else s=!0}u.length=0}else if(ti===v||47===v||63===v||35===v||zr(r)&&92===v){if(o&&0===u.length)throw new l("Invalid host");h-=u.length+1,u.length=0,e=10}else u.push(v);break;case 10:case 11:if(null!==i&&"file"===r.uO)h-=1,e=15;else if(58!==v||f)if(ti===v||47===v||63===v||35===v||zr(r)&&92===v){if(h-=1,zr(r)&&0===u.length)throw new l("Invalid host");if(null!==i&&0===u.length&&(Xr(r)||null!==r.k6))return;var I=Er($t(u),zr(r));if(r.S9=I,u.length=0,e=16,null!==i)return}else 91===v?f=!0:93===v&&(f=!1),u.push(v);else{if(0===u.length)throw new l("Invalid host");var R=Er($t(u),zr(r));if(r.S9=R,u.length=0,e=12,11===i)return}break;case 12:if(Tt(v))u.push(v);else{if(!(ti===v||47===v||63===v||35===v||zr(r)&&92===v||null!==i))throw new l("Invalid port");if(0!==u.length){var p=y($t(u),10);if(p>65535)throw new l("Invalid port");r.k6=p===Br[r.uO]?null:p,u.length=0}if(null!==i)return;e=16,h-=1}break;case 13:r.uO="file",47===v||92===v?e=14:t&&"file"===t.uO?ti===v?(r.S9=t.S9,r.T9=t.T9.slice(),r.w9=t.w9):63===v?(r.S9=t.S9,r.T9=t.T9.slice(),r.w9="",e=19):35===v?(r.S9=t.S9,r.T9=t.T9.slice(),r.w9=t.w9,r.E9="",e=20):($r(c.slice(h))||(r.S9=t.S9,r.T9=t.T9.slice(),Qr(r)),e=17,h-=1):(e=17,h-=1);break;case 14:47===v||92===v?e=15:(t&&"file"===t.uO&&!$r(c.slice(h))&&(Jr(t.T9[0])?r.T9.push(t.T9[0]):r.S9=t.S9),e=17,h-=1);break;case 15:if(ti===v||47===v||92===v||63===v||35===v)if(h-=1,null===i&&Zr(u))e=17;else if(0===u.length){if(r.S9=yr,null!==i)return;e=16}else{var O=Er($t(u),zr(r));if(0===O.LJ&&"localhost"===O.g9&&(O=yr),r.S9=O,null!==i)return;u.length=0,e=16}else u.push(v);break;case 16:zr(r)?(e=17,47!==v&&92!==v&&(h-=1)):null===i&&63===v?(r.w9="",e=19):null===i&&35===v?(r.E9="",e=20):ti!==v&&(e=17,47!==v&&(h-=1));break;case 17:if(ti===v||47===v||zr(r)&&92===v||null===i&&(63===v||35===v)){var g=$t(u);if(Kr(g)?(Qr(r),47===v||zr(r)&&92===v||r.T9.push("")):!jr(g)||47===v||zr(r)&&92===v?jr(g)||("file"===r.uO&&0===r.T9.length&&Zr(u)&&(yr!==r.S9&&null!==r.S9&&(r.S9=yr),u[1]=58,g=$t(u)),r.T9.push(g)):r.T9.push(""),u.length=0,"file"===r.uO&&(ti===v||63===v||35===v))for(;r.T9.length>1&&""===r.T9[0];)r.T9.shift();63===v?(r.w9="",e=19):35===v&&(r.E9="",e=20)}else u.push.apply(u,cr(v,ur));break;case 18:63===v?(r.w9="",e=19):35===v?(r.E9="",e=20):ti!==v&&(r.T9[0]+=$t(cr(v,ir)));break;case 19:null===i&&35===v?(r.E9="",e=20):ti!==v&&(r.w9+=$t(cr(v,zr(r)?sr:fr)));break;case 20:ti===v||0===v||(r.E9+=$t(cr(v,er)))}h++}return r}function ui(n,t,r,i){try{ei(n,t,r,i)}catch(n){}}var oi=function(){this.uO="",this.A9="",this.b9="",this.S9=null,this.k6=null,this.T9=[],this.w9=null,this.E9=null,this.k9=!1};function fi(n){switch(n.uO){case"blob":var t;try{t=ei(n.T9[0],null)}catch(n){return Hr}return fi(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(n,t,r){return n+"://"+Ir(t)+(null===r?"":":"+r)}(n.uO,n.S9,n.k6);default:return Hr}}var si,ci,ai=function(){function n(n,t){var r,i=null;if(null!=t)if(function(n){return null!=n&&n instanceof ai&&"object"==typeof n.m9}(t))i=t.m9;else try{i=ei(String(t),null)}catch(n){throw new l("Invalid base URL: "+n.message)}try{r=ei(String(n),i)}catch(n){throw new l("Invalid URL: "+n.message)}var e=r.w9;this.m9=r,this.w9=function(n){var t=new Lr;return null!==n&&Dr(t,n),t}(e),this.w9.m9=this}var t=n.prototype;return t.toString=function(){return this.href},t.toJSON=function(){return this.href},function(n,t,r){t&&st(n.prototype,t),r&&st(n,r)}(n,[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.uO+":";if(null!==n.S9?(r+="//",Xr(n)&&(r+=n.A9,""!==n.b9&&(r+=":"+n.b9),r+="@"),r+=Ir(n.S9),null!==n.k6&&(r+=":"+n.k6)):null===n.S9&&"file"===n.uO&&(r+="//"),n.k9)r+=n.T9[0];else for(var i=0,e=n.T9;i<e.length;i++)r+="/"+e[i];return null!==n.w9&&(r+="?"+n.w9),t||null===n.E9||(r+="#"+n.E9),r}(this.m9)},set:function(n){var t;try{t=ei(String(n),null)}catch(n){throw new l("Invalid URL: "+n.message)}this.m9=t,Cr(this.w9);var r=this.m9.w9;null!==r&&Dr(this.w9,r)}},{key:"origin",get:function(){return fi(this.m9)}},{key:"protocol",get:function(){return this.m9.uO+":"},set:function(n){ui(n+":",null,this.m9,0)}},{key:"username",get:function(){return this.m9.A9},set:function(n){ni(this.m9)||(this.m9.A9=ar(n,or))}},{key:"password",get:function(){return this.m9.b9},set:function(n){ni(this.m9)||(this.m9.b9=ar(n,or))}},{key:"host",get:function(){var n=this.m9,t=n.S9;if(null===t)return"";var r=n.k6,i=Ir(t);return null!==r&&(i+=":"+r),i},set:function(n){this.m9.k9||ui(n,null,this.m9,10)}},{key:"hostname",get:function(){var n=this.m9.S9;return null===n?"":Ir(n)},set:function(n){this.m9.k9||ui(n,null,this.m9,11)}},{key:"port",get:function(){var n=this.m9.k6;return null===n?"":""+n},set:function(n){ni(this.m9)||(""===n?this.m9.k6=null:ui(n,null,this.m9,12))}},{key:"pathname",get:function(){var n=this.m9.T9;return this.m9.k9?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.m9.k9||(this.m9.T9.length=0,ui(n,null,this.m9,16))}},{key:"search",get:function(){var n=this.m9.w9;return null===n||""===n?"":"?"+n},set:function(n){n=kr(n);var t=this.m9;if(""===n)return t.w9=null,void Cr(this.w9);"?"===n[0]&&(n=n.slice(1)),t.w9="",ui(n,null,t,19),Dr(this.w9,n)}},{key:"searchParams",get:function(){return this.w9}},{key:"hash",get:function(){var n=this.m9.E9;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.m9.E9="",ui(n,null,this.m9,20)):this.m9.E9=null}}]),n}();function hi(n){return n.document&&n.document.baseURI||n.location.href||""}function li(){return void 0!==e?e.createElement("video"):void 0}var vi=!!("ontouchstart"in self||self.DocumentTouch&&e instanceof self.DocumentTouch)||!(!o||!o.msMaxTouchPoints),_i=(ci||(ci=li()),ci),yi=!(!_i||!_i.webkitShowPlaybackTargetPicker),di=function(){function n(){this.R9=void 0,this.U9=!1,this.Ye=vi,this.Ks=!1,this.g5=!0}var t=n.prototype;return t.P9=function(){return 0},t.M9=function(n,t){return!0},t.F9=function(n){return n>=.3333333333333333},rn(n,[{key:"I9",get:function(){return void 0===this.R9&&(this.R9=this.P9()),this.R9}},{key:"C9",get:function(){return!Rn.tP}},{key:"x9",get:function(){if(i.screen)return{width:i.screen.width,height:i.screen.height}}},{key:"j0",get:function(){return i.devicePixelRatio||1}},{key:"N9",get:function(){return yi}},{key:"x0",get:function(){return!1}},{key:"S0",get:function(){return!0}},{key:"Am",get:function(){return Rn.zR||Rn.$I}},{key:"D9",get:function(){return!Rn.$I}},{key:"IB",get:function(){return!0}},{key:"Sm",get:function(){return!0}},{key:"Tm",get:function(){return!1}},{key:"B9",get:function(){}},{key:"O9",get:function(){return!0}},{key:"Wj",get:function(){return!1}},{key:"L9",get:function(){return Rn.IR}}]),n}(),wi=function(){var n=li();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(Rn.YI)return!1;var n=li();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var Ei=function(n){function t(t){var r;return(r=n.call(this)||this).V9=t,r.V9&&(r.U9=r.V9.U9,r.Ye=r.V9.Ye,r.g5=wi&&r.V9.g5),r}un(t,n);var r=t.prototype;return r.P9=function(){return this.V9?this.V9.I9:n.prototype.P9.call(this)},r.M9=function(t,r){return this.V9?this.V9.M9(t,r):n.prototype.M9.call(this,t,r)},r.F9=function(t){return this.V9?this.V9.F9(t):n.prototype.F9.call(this,t)},rn(t,[{key:"B9",get:function(){var n;return null==(n=this.V9)?void 0:n.B9}},{key:"O9",get:function(){var n,t;return null==(t=null==(n=this.V9)?void 0:n.O9)||t}}]),t}(di),Ii=function(n){function t(t){var r;return(r=n.call(this,t)||this).U9=!0,r.Ks=!0,r}return un(t,n),rn(t,[{key:"Tm",get:function(){return Rn.$I}}]),t}(Ei);var Ri=function(n){function t(){return n.apply(this,arguments)}return un(t,n),t.prototype.P9=function(){return function(n){return n&&Sn(si.ManagedMediaSource)?si.ManagedMediaSource:Sn(si.MediaSource)?si.MediaSource:void 0}(!0)?n.prototype.P9.call(this):1},rn(t,[{key:"Tm",get:function(){return!0}}]),t}(Ii),pi=function(n){function t(){return n.apply(this,arguments)}return un(t,n),t.prototype.M9=function(t,r){return n.prototype.M9.call(this,t,r)},rn(t,[{key:"x0",get:function(){return Rn.bR<3}},{key:"S0",get:function(){return Rn.bR>=3}},{key:"x9",get:function(){var n=this;return i.tizen&&!this.H9&&i.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.H9={width:r,height:i})})),this.H9}},{key:"Wj",get:function(){return Rn.bR<3}}]),t}(Ei),Oi=function(n){function t(){return n.call(this)}return un(t,n),t}(di),gi=function(n){function t(){return n.apply(this,arguments)}return un(t,n),t.prototype.M9=function(n,t){if(n&&n.W9&&t&&t.W9){var r=Si(n.W9,"mp4a.40.2")&&Si(t.W9,"mp4a.40.5"),i=Si(n.W9,"mp4a.40.5")&&Si(t.W9,"mp4a.40.2"),e=Si(n.W9,"mp4a.40.2")&&Si(t.W9,"mp4a.40.34"),u=Si(n.W9,"mp4a.40.34")&&Si(t.W9,"mp4a.40.2"),o=Si(n.W9,"mp4a.40.5")&&Si(t.W9,"mp4a.40.34"),f=Si(n.W9,"mp4a.40.34")&&Si(t.W9,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},rn(t,[{key:"B9",get:function(){if(Rn.DI)return 4096}}]),t}(Oi);function Si(n,t){return n.indexOf(t)>-1}var Ti=function(n){function t(){return n.apply(this,arguments)}return un(t,n),t.prototype.F9=function(n){return n>=2},t}(Oi),ki=function(n){function t(){var t;return(t=n.call(this)||this).U9=Rn.GR>=11,t.g5=Rn.zR&&!(Rn.$I&&Rn.GR<10),t}return un(t,n),t}(Oi),bi=function(n){function t(){return n.apply(this,arguments)}return un(t,n),rn(t,[{key:"x9",get:function(){var n=this;return i.webOS&&!this.H9&&i.webOS.deviceInfo((function(t){n.H9={width:t.screenWidth,height:t.screenHeight}})),this.H9}},{key:"IB",get:function(){return!1}}]),t}(Ei),Ai=function(n){function t(){return n.apply(this,arguments)}return un(t,n),rn(t,[{key:"O9",get:function(){return!Rn.OI||(Rn.vR?92!==Rn.wR:Rn.fR>=100)}}]),t}(Oi),mi=function(n){function t(){return n.apply(this,arguments)}return un(t,n),rn(t,[{key:"Tm",get:function(){return!0}}]),t}(Ei),Ni=function(){function n(){this.Q9=new Ci,this.Y9=function(){var n=function(){if(Rn.UR)return new gi;if(Rn.PR||Rn.NR)return new Ti;if(Rn.zR)return new ki;if(Rn.lR)return new Ai;return new Oi}();return Rn.$I?new Ri(n):Rn.Ks?new Ii(n):Rn.yR?new pi(n):Rn.kR?new bi(n):Rn.DI?new mi(n):new Ei(n)}(),this.K9=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.Cd=function(){return self.performance.now()}:this.Cd=ft}var t=n.prototype;return t.q9=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Cn.apply(void 0,sn(t))},t.Om=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Dn.apply(void 0,sn(t))},t.z9=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Pn.apply(void 0,sn(t))},t.X9=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];Ln.apply(void 0,[n].concat(sn(r)))},t.Nd=function(n,t){return f(n,t)},t.EZ=function(n,t){return c(n,t)},t.xd=function(n){s(n)},t.RZ=function(n){a(n)},t.CN=function(){return this.G9.CN()},t.TN=function(){return this.G9.TN()},t.kN=function(){return this.G9.kN()},t.SN=function(){return this.G9.SN()},t.AN=function(){return this.G9.AN()},t.IN=function(n,t){return this.G9.IN(n,t)},t.bN=function(n){return this.G9.bN(n)},t.Rh=function(n,t){var r;return void 0===t&&(t=hi(si)),r="object"!=typeof t||t instanceof ai?t:t.href,new ai(n,r)},t.Bm=function(n,t){if(void 0===t&&(t=hi(si)),this.K9){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},rn(n,[{key:"yB",get:function(){return this.Q9}},{key:"Zs",get:function(){return this.Y9}},{key:"Im",get:function(){return{Em:o&&o.userAgent.match(/Android /i)?"Android":"other",Rm:Boolean(o&&o.userAgent.match(/Android 8.0.0/i))}}},{key:"bq",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"j9",get:function(){return"languages"in o?o.languages.slice():[o.language]}}]),n}(),Ci=function(){function n(){}return rn(n,[{key:"AB",get:function(){return o.oscpu}},{key:"Zs",get:function(){return o.platform}},{key:"bB",get:function(){return o.vendor}},{key:"TB",get:function(){return o.vendorSub}}]),n}();var Di,Pi=function(){function n(){}var t=n.prototype;return t.AN=function(){return q.resolve(!1)},t.TN=function(){return q.resolve(!1)},t.SN=function(){return q.resolve(!1)},t.kN=function(){return q.resolve(!1)},t.bN=function(n){return q.resolve(!1)},t.IN=function(n,t){return q.resolve(!1)},t.CN=function(){return q.resolve(!1)},n}(),Li=function(){function n(){}var t=n.prototype;return t.wU=function(){},t.MP=function(n){},t.BP=function(n){},t.TO=function(n,t){},n}();function Fi(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,r){var i=null==n?null:void 0!==t&&n[t.iterator]||n["@@iterator"];if(null!=i){var e,u,o=[],f=!0,s=!1;try{for(i=i.call(n);!(f=(e=i.next()).done)&&(o.push(e.value),!r||o.length!==r);f=!0);}catch(n){s=!0,u=n}finally{try{f||null==i.return||i.return()}finally{if(s)throw u}}return o}}(n,r)||fn(n,r)||function(){throw new l("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}!function(n){n.LE="arraybuffer",n.ME="json",n.FE="stream",n.Yb="text"}(Di||(Di={}));var Ui,Mi=function(){function n(t){var r=this;this._d={},t instanceof n?t.asList().forEach((function(n){var t=Fi(n,2),i=t[0],e=t[1];r.append(i,e)})):Array.isArray(t)?t.forEach((function(n){var t=Fi(n,2),i=t[0],e=t[1];r.append(i,e)})):t&&v.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=Wi(r),i=Vi(i);var e=r.toLowerCase();if(this._d.hasOwnProperty(e)){var u=this._d[e],o=u[1];u[1]=o?o+", "+i:i}else this._d[e]=[r,i]},t.delete=function(n){var t=Wi(n).toLowerCase();delete this._d[t]},t.get=function(n){var t=Wi(n).toLowerCase();return this._d.hasOwnProperty(t)?this._d[t][1]:null},t.has=function(n){var t=Wi(n).toLowerCase();return this._d.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=Wi(r)).toLowerCase();this._d[i]=[r,Vi(t)]},t.forEach=function(n,t){for(var r in this._d)this._d.hasOwnProperty(r)&&n.call(t,this._d[r][1],r,this)},t.asList=function(){var n=[];for(var t in this._d)if(this._d.hasOwnProperty(t)){var r=Fi(this._d[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.UE=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.VE=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.HE=function(n){var t=this;n.forEach((function(n,r){t.set(r,n)}))},n}();function Wi(n){var t=n;if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new l("Invalid character in header field name");return t}function Vi(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}function Hi(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):q.resolve(s).then(i,e)}function Bi(n){return function(){var t=this,r=arguments;return new q((function(i,e){var u=n.apply(t,r);function o(n){Hi(u,i,e,o,f,"next",n)}function f(n){Hi(u,i,e,o,f,"throw",n)}o(void 0)}))}}function xi(n,r){var i,e,u,o,f={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof t&&(o[t.iterator]=function(){return this}),o;function s(t){return function(s){return function(t){if(i)throw new l("Generator is already executing.");for(;o&&(o=0,t[0]&&(f=0)),f;)try{if(i=1,e&&(u=2&t[0]?e.return:t[0]?e.throw||((u=e.return)&&u.call(e),0):e.next)&&!(u=u.call(e,t[1])).done)return u;switch(e=0,u&&(t=[2&t[0],u.value]),t[0]){case 0:case 1:u=t;break;case 4:return f.label++,{value:t[1],done:!1};case 5:f.label++,e=t[1],t=[0];continue;case 7:t=f.ops.pop(),f.trys.pop();continue;default:if(!(u=f.trys,(u=u.length>0&&u[u.length-1])||6!==t[0]&&2!==t[0])){f=0;continue}if(3===t[0]&&(!u||t[1]>u[0]&&t[1]<u[3])){f.label=t[1];break}if(6===t[0]&&f.label<u[1]){f.label=u[1],u=t;break}if(u&&f.label<u[2]){f.label=u[2],f.ops.push(t);break}u[2]&&f.ops.pop(),f.trys.pop();continue}t=r.call(n,f)}catch(n){t=[6,n],e=0}finally{i=u=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,s])}}}!function(n){n[n.ih=0]="ih",n[n.ul=1]="ul",n[n.hd=-1]="hd"}(Ui||(Ui={}));Array.prototype.find,Array.prototype.findLast;var Gi="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},ji="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 Ki(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 qi(n){n.length=0}Array.prototype.flat,Array.prototype.flatMap;var zi,Xi,$i,Yi,Zi,Ji=function(){function n(){this.md=!1,this.wd=!1,this.pd=[],this.yd=[]}var t=n.prototype;return t.vd=function(){if(!this.md&&!this.wd){this.md=!0;for(var n=0,t=this.pd.slice();n<t.length;n++){(0,t[n])()}this.Ou()}},t.Ou=function(){if(!this.wd){this.wd=!0;for(var n=0,t=this.yd.slice();n<t.length;n++){(0,t[n])()}qi(this.pd),qi(this.yd)}},t.bd=function(n){this.wd||this.pd.push(n)},t.Td=function(n){this.wd||Ki(this.pd,n)},t.Sd=function(n){this.wd||this.yd.push(n)},t.kd=function(n){this.wd||Ki(this.yd,n)},n}(),Qi=function(){function n(){this.Id=new Ji}var t=n.prototype;return t.Jl=function(){this.Id.vd()},t.Ou=function(){this.Id.Ou()},t.Rd=function(n){var t=this.Id;if(!t.md)if(n.md)t.vd();else if(!t.wd&&!n.wd){var r=function(){i(),t.vd()},i=function(){n.Td(r),n.kd(i),t.Td(r),t.kd(i)};n.bd(r),n.Sd(i),t.bd(r),t.Sd(i)}},t.Pd=function(){var t=new n,r=new n,i=t.Ed,e=r.Ed,u=this.Id,o=function(){i.md&&e.wd||e.md&&i.wd?u.vd():i.wd&&e.wd&&u.Ou()};i.bd(o),e.bd(o),i.Sd(o),e.Sd(o),t.Rd(u),r.Rd(u);return u.Sd((function(){i.Td(o),e.Td(o),i.kd(o),e.kd(o)})),[t,r]},rn(n,[{key:"Ed",get:function(){return this.Id}}]),n}();!function(n){n.DELETE="DELETE",n.GET="GET",n.HEAD="HEAD",n.OPTIONS="OPTIONS",n.POST="POST",n.PUT="PUT"}(zi||(zi={})),function(n){n.Zb="",n.WE="manifest",n.qE="segment",n.zE="preload-hint",n.XE="content-protection"}(Xi||(Xi={})),function(n){n.Zb="",n.GE="initialization-segment",n.QE="fairplay-license",n.KE="fairplay-certificate",n.YE="widevine-license",n.jE="widevine-certificate",n.ZE="playready-license",n.JE="clearkey-license",n.$E="aes128-key"}($i||($i={})),function(n){n.Zb="",n.dp="audio",n.vl="video",n.Yb="text",n.jb="image"}(Yi||(Yi={})),function(n){n.tI="same-origin",n.Lm="no-cors",n.eI="cors",n.iI="navigate"}(Zi||(Zi={}));var ne=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_,y,d,w,E=n.SE;t?(r=t.sI,i=t.nI,e=t.rI,u=t.hI,o=t.EE,f=t.oI,s=t.Ed,c=t.$g,a=t.aI,h=t.uI,l=t.cI,v=t.lI,_=t.Yg,y=t.dI):(r=null,i={},e="GET",u=Di.Yb,o=0,f=0,c="",a="",h="",l=!1,_=void 0,y=!1),this.SE=E,this.sI=n.sI||r,this.nI=new Mi(n.nI||i),this.rI=n.rI||e,this.hI=n.hI||u,this.EE=void 0!==n.EE?Number(n.EE)||0:o,this.oI=void 0!==n.oI?Number(n.oI)||0:f,this.Ed=n.Ed||s||(new Qi).Ed,this.$g=n.$g||c,this.aI=n.aI||a,this.uI=n.uI||h,this.cI=void 0!==n.cI?Boolean(n.cI):l,this.lI=n.lI||v,this.Yg=null!=(d=n.Yg)?d:_,this.dI=null!=(w=n.dI)?w:y};var te=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];h.apply(this,t)};(te.prototype=v.create(h.prototype)).constructor=te;var re,ie=function(n){function t(t,r){var i;return(i=n.call(this)||this).message=t||"Unknown error",i.cause=r,h.captureStackTrace&&h.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 un(t,n),rn(t,[{key:"name",get:function(){return"BaseError"}}]),t}(te);!function(n){n.mE="HttpOpenError",n.wE="HttpResponseError",n.pE="HttpTimeoutError"}(re||(re={}));var ee=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).AE=t,e}return un(t,n),rn(t,[{key:"yE",get:function(){return this.AE}}]),t}(ie);var ue,oe,fe,se=function(n){function t(t,r){return n.call(this,t,function(n){return"Error while opening "+n+". Invalid URL."}(t.SE),r)}return un(t,n),rn(t,[{key:"name",get:function(){return re.mE}}]),t}(ee),ce=function(){function n(){}var t=n.prototype;return t.yE=function(n){return q.reject(new se(new ne(n)))},t.UV=function(n){},t.bn=function(){},n}(),ae=function(n){function t(t){return n.call(this,"Invalid XML",t)}return un(t,n),t}(ie),he=function(n){function t(){var t;return(t=n.apply(this,arguments)||this).I7=new Pi,t.mI=new ce,t.i=new Li,t}return un(t,n),t.prototype.aE=function(n){throw new ae},rn(t,[{key:"G9",get:function(){return this.I7}},{key:"R7",get:function(){return!1}},{key:"wZ",get:function(){return!1}},{key:"N7",get:function(){return!1}},{key:"LZ",get:function(){return!1}},{key:"yO",get:function(){return this.i}},{key:"D7",get:function(){return{B7:Tn}}},{key:"O7",get:function(){return"default"}},{key:"L7",get:function(){return"unknown"}},{key:"Xf",get:function(){return this.mI}}]),t}(Ni);!function(n){n}(new he),function(n){n[n.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",n[n.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4"}(ue||(ue={})),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"}(oe||(oe={})),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"}(fe||(fe={})),function(n){n.fromCode=function(t){var r=_.floor(t/1e3);if(r in n)return r;throw new l("Invalid error code: "+t)}}(fe||(fe={}));var le=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).code=t,e}return un(t,n),rn(t,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return fe.fromCode(this.code)}}]),t}(ie);var ve,_e=function(){function n(n){this.encoding=n}var t=n.prototype;return t.encode=function(n){if(!n)return new E(0);for(var t=new E(n.length),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},t.encodeInto=function(n,t){for(var r=_.min(n.length,t.byteLength),i=0;i<r;i++)t[i]=n.charCodeAt(i);return{read:r,written:r}},n}(),ye=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 E(n):new E(n.buffer,n.byteOffset,n.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},n}();var de=new Array(32).fill(void 0);function we(n){return de[n]}de.push(void 0,null,!0,!1);var Ee=de.length;function Ie(n){var t=we(n);return function(n){n<36||(de[n]=Ee,Ee=n)}(n),t}var Re=new ye("utf-8",{ignoreBOM:!0,fatal:!0});Re.decode();var pe=new E;function Oe(){return pe.buffer!==ve.memory.buffer&&(pe=new E(ve.memory.buffer)),pe}function ge(n,t){return Re.decode(Oe().subarray(n,n+t))}function Se(n){Ee===de.length&&de.push(de.length+1);var t=Ee;return Ee=de[t],de[t]=n,t}var Te=0;function ke(n,t){var r=t(1*n.length);return Oe().set(n,r/1),Te=n.length,r}var be=new Int32Array;function Ae(){return be.buffer!==ve.memory.buffer&&(be=new Int32Array(ve.memory.buffer)),be}function me(n){return null==n}function Ne(n,t){return Oe().subarray(n/1,n/1+t)}var Ce=new _e("utf-8"),De="function"==typeof Ce.encodeInto?function(n,t){return Ce.encodeInto(n,t)}:function(n,t){var r=Ce.encode(n);return t.set(r),{read:n.length,written:r.length}};function Pe(n,t){return Le.apply(this,arguments)}function Le(){return Le=Bi((function(n,t){var r,i,e;return xi(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]}}))})),Le.apply(this,arguments)}function Fe(){var n={wbg:{}};return n.wbg.__wbg_data_04446ebb06f2ac29=function(n,t){var r=ke(we(t).data,ve.__wbindgen_export_0),i=Te;Ae()[n/4+1]=i,Ae()[n/4+0]=r},n.wbg.__wbg_metadata_792d18db149354e3=function(n){var t=we(n).metadata;return me(t)?0:Se(t)},n.wbg.__wbg_spsnal_949e2b91c67b1988=function(n,t){var r=we(t).sps_nal,i=me(r)?0:ke(r,ve.__wbindgen_export_0),e=Te;Ae()[n/4+1]=e,Ae()[n/4+0]=i},n.wbg.__wbg_ppsnal_0b287208c8bee8dc=function(n,t){var r=we(t).pps_nal,i=me(r)?0:ke(r,ve.__wbindgen_export_0),e=Te;Ae()[n/4+1]=e,Ae()[n/4+0]=i},n.wbg.__wbg_videopid_ed2a669b38200ee4=function(n){var t=we(n).video_pid;return me(t)?16777215:t},n.wbg.__wbg_audiopid_736a11dfa0cbf838=function(n){var t=we(n).audio_pid;return me(t)?16777215:t},n.wbg.__wbg_programmaptablepid_8b78c2977f51f0e8=function(n){var t=we(n).program_map_table_pid;return me(t)?16777215:t},n.wbg.__wbindgen_object_drop_ref=function(n){Ie(n)},n.wbg.__wbg_createoutputdata_eadfe6fd26e5edb1=function(n,t,r,i,e,u,o,f){var s,c,a,h;0!==n&&(s=Ne(n,t).slice(),ve.__wbindgen_export_1(n,1*t)),0!==r&&(c=Ne(r,i).slice(),ve.__wbindgen_export_1(r,1*i)),0!==e&&(a=Ne(e,u).slice(),ve.__wbindgen_export_1(e,1*u)),0!==o&&(h=Ne(o,f).slice(),ve.__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 Se(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 Se(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=ge(r,i).slice(),ve.__wbindgen_export_1(r,1*i)),0!==e&&(w=ge(e,u).slice(),ve.__wbindgen_export_1(e,1*u)),0!==o&&(E=Ne(o,f).slice(),ve.__wbindgen_export_1(o,1*f)),0!==s&&(I=Ne(s,c).slice(),ve.__wbindgen_export_1(s,1*c));var R=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,Ie(a),Ie(h),Ie(l),16777215===v?void 0:v,0===_?void 0:y);return Se(R)},n.wbg.__wbg_createoutput_c1b51e340fe44a00=function(n,t){var r=function(n,t){return{data:n,metadata:t}}(Ie(n),Ie(t));return Se(r)},n.wbg.__wbindgen_string_new=function(n,t){return Se(ge(n,t))},n.wbg.__wbg_new_693216e109162396=function(){return Se(new h)},n.wbg.__wbg_stack_0ddaca5d1abfb52f=function(n,t){var r=function(n,t,r){if(void 0===r){var i=Ce.encode(n),e=t(i.length);return Oe().subarray(e,e+i.length).set(i),Te=i.length,e}for(var u=n.length,o=t(u),f=Oe(),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=Oe().subarray(o+s,o+u);s+=De(n,a).written}return Te=s,o}(we(t).stack,ve.__wbindgen_export_0,ve.__wbindgen_export_2),i=Te;Ae()[n/4+1]=i,Ae()[n/4+0]=r},n.wbg.__wbg_error_09919627ac0992f5=function(n,t){try{console.error(ge(n,t))}finally{ve.__wbindgen_export_1(n,t)}},n}function Ue(n,t){return ve=n.exports,Me.__wbindgen_wasm_module=t,be=new Int32Array,pe=new E,ve.__wbindgen_start(),ve}function Me(n){return We.apply(this,arguments)}function We(){return We=Bi((function(n){var t,r,i,e;return xi(this,(function(u){switch(u.label){case 0:return void 0===n&&(n=new URL("theomux_bg.wasm",void 0)),t=Fe(),("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n)),[4,n];case 1:return[4,Pe.apply(void 0,[u.sent(),t])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,Ue(i,e)]}}))})),We.apply(this,arguments)}function Ve(){return Ve=Bi((function(n){var t;return xi(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,Be(n)];case 2:t=r.sent(),r.label=3;case 3:return[4,Me(t)];case 4:return r.sent(),[2,new He(t)]}}))})),Ve.apply(this,arguments)}var He=function(){function n(n){this.kw=n}var t=n.prototype;return t.mpegts_to_fmp4=function(n){return function(n){try{var t=ve.__wbindgen_add_to_stack_pointer(-16);ve.mpegts_to_fmp4(t,Se(n));var r=Ae()[t/4+0],i=Ae()[t/4+1];if(Ae()[t/4+2])throw Ie(i);return Ie(r)}finally{ve.__wbindgen_add_to_stack_pointer(16)}}(n)},t.raw_audio_to_fmp4=function(n){return function(n){try{var t=ve.__wbindgen_add_to_stack_pointer(-16);ve.raw_audio_to_fmp4(t,Se(n));var r=Ae()[t/4+0],i=Ae()[t/4+1];if(Ae()[t/4+2])throw Ie(i);return Ie(r)}finally{ve.__wbindgen_add_to_stack_pointer(16)}}(n)},t.restart=function(){var n=this;return Bi((function(){return xi(this,(function(t){switch(t.label){case 0:return[4,Me(n.kw)];case 1:return t.sent(),[2]}}))}))()},n}();function Be(n){return xe.apply(this,arguments)}function xe(){return xe=Bi((function(n){var t,r,i,e;return xi(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,Ge(n.href)];case 9:return e=u.sent(),[4,WebAssembly.compile(e)];case 10:return[2,u.sent()];case 11:return[2]}}))})),xe.apply(this,arguments)}function Ge(n){return new q((function(t,r){var i=new I;i.onload=function(){t(i.response||new ArrayBuffer(0))},i.onerror=function(){r(new l('Failed to fetch "'+n+'", status '+i.status))},i.open("GET",n,!0),i.responseType="arraybuffer",i.send()}))}var je=new URL("./THEOplayer.transmux.wasm",u.href);!function(n){var t,r=q.resolve(n()).then((function(n){t=n,r=void 0,self.postMessage({dLt:"7.8.0"})}),(function(n){var t=n,r={success:!1,error:t.message,errorCode:t instanceof le?t.code:oe.MEDIA_DECODE_ERROR};self.postMessage(r)}));function i(){return(i=Bi((function(n){var i,e,u,o,f,s;return xi(this,(function(c){switch(c.label){case 0:return void 0===r?[3,2]:[4,r];case 1:c.sent(),c.label=2;case 2:if(u=n.id,n.type===ue.MPEGTS_TO_FMP4)o=t.mpegts_to_fmp4(n.input);else{if(n.type!==ue.RAW_AUDIO_TO_FMP4)throw new h("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(On).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 le?r.code:oe.MEDIA_DECODE_ERROR};self.postMessage(i)}))}))}((function(){return function(n){return Ve.apply(this,arguments)}(je)}))}("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": "7.
|
|
5
|
+
"version": "7.8.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/",
|