@theoplayer/extended 8.13.2 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THEOplayer.chromeless.d.ts +2 -2
- package/THEOplayer.chromeless.esm.js +3 -3
- package/THEOplayer.chromeless.js +3 -3
- package/THEOplayer.common.d.ts +22 -730
- package/THEOplayer.common.esm.js +3 -3
- package/THEOplayer.d.ts +2 -2
- package/THEOplayer.esm.js +3 -3
- package/THEOplayer.js +3 -3
- package/THEOplayer.transmux.asmjs.js +3 -3
- package/THEOplayer.transmux.js +3 -3
- package/package.json +1 -1
- package/theoplayer.d.js +3 -3
- package/theoplayer.sw.js +3 -3
package/THEOplayer.transmux.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
THEOplayer is based on patented technology developed by
|
|
25
25
|
THEO Technologies (https://www.theoplayer.com).
|
|
26
26
|
|
|
27
|
-
Version:
|
|
28
|
-
Created: 2025-
|
|
27
|
+
Version: 9.0.0
|
|
28
|
+
Created: 2025-04-03T12:47:30.689Z
|
|
29
29
|
*/
|
|
30
|
-
!function(n){"use strict";var t,r,i,e,u,o,f,s,c,a=n.window,h=n.document,l=n.location,v=n.navigator,_=n.setTimeout,d=n.clearTimeout,y=n.setInterval,w=n.clearInterval,I=n.Error,E=n.TypeError,g=(n.SyntaxError,n.Object),R=n.Math,O=n.parseInt,S=n.parseFloat,p=n.isNaN,T=n.Uint8Array,k=(n.Worker,n.WorkerGlobalScope,n.XMLHttpRequest);function b(n){return n&&void 0!==t&&n.constructor===t?"symbol":typeof n}"function"==typeof Symbol&&Symbol.iterator?(t=Symbol,r=null!=(o=Symbol.for)?o:Symbol,i=Symbol.iterator,e=null!=(f=Symbol.dispose)?f:r("Symbol.dispose"),u=null!=(s=Symbol.asyncDispose)?s:r("Symbol.asyncDispose")):(c=0,t=function(n){return"ul"+n+"_"+ ++c},i=(r=function(n){return"ul"+n})("Symbol.iterator"),e=r("Symbol.dispose"),u=r("Symbol.asyncDispose"),t.for=r,t.iterator=i,t.dispose=e,t.asyncDispose=u);var m=_;function N(n){return Boolean(n&&void 0!==n.length)}function A(){}function C(n){if(!(this instanceof C))throw new E("Promises must be constructed via new");if("function"!=typeof n)throw new E("not a function");this.Da=0,this.H5t=!1,this.Lyt=void 0,this.X5t=[],M(n,this)}function D(n,t){for(;3===n.Da;)n=n.Lyt;0!==n.Da?(n.H5t=!0,C.z5t((function(){var r=1===n.Da?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.Lyt)}catch(n){return void L(t.promise,n)}P(t.promise,i)}else(1===n.Da?P:L)(t.promise,n.Lyt)}))):n.X5t.push(t)}function P(n,t){try{if(t===n)throw new E("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":b(t))||"function"==typeof t)){var r=t.then;if(t instanceof C)return n.Da=3,n.Lyt=t,void F(n);if("function"==typeof r)return void M(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.Da=1,n.Lyt=t,F(n)}catch(t){L(n,t)}}function L(n,t){n.Da=2,n.Lyt=t,F(n)}function F(n){2===n.Da&&0===n.X5t.length&&C.z5t((function(){n.H5t||C.W5t(n.Lyt)}));for(var t=0,r=n.X5t.length;t<r;t++)D(n,n.X5t[t]);n.X5t=null}function U(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,P(t,n))}),(function(n){r||(r=!0,L(t,n))}))}catch(n){if(r)return;r=!0,L(t,n)}}C.prototype.catch=function(n){return this.then(null,n)},C.prototype.then=function(n,t){var r=new this.constructor(A);return D(this,new U(n,t,r)),r},C.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)}))}))},C.all=function(n){return new C((function(t,r){if(!N(n))return r(new E("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"===(void 0===o?"undefined":b(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])}))},C.allSettled=function(n){return new this((function(t,r){if(!n||void 0===n.length)return r(new E((void 0===n?"undefined":b(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"===(void 0===r?"undefined":b(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])}))},C.resolve=function(n){return n&&"object"===(void 0===n?"undefined":b(n))&&n.constructor===C?n:new C((function(t){t(n)}))},C.reject=function(n){return new C((function(t,r){r(n)}))},C.race=function(n){return new C((function(t,r){if(!N(n))return r(new E("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)C.resolve(n[i]).then(t,r)}))},C.z5t="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){m(n,0)},C.W5t=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};var V=function(){var n=self.Promise;if(void 0!==n)try{if(-1!==n.toString().indexOf("[native code]"))return n}catch(n){}}(),B=v?v.userAgent:"",H=B.match(/Firefox\/([0-9]+)/i),W=null!=H,x=H?Number(H[1]):0,G=B.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),j=null!=G,K=G?Number(G[3]):0,q=function(){function n(n){this.Xy=0,this.wd=0,this.Bw=[],this.q5t=n}return n.prototype.G5t=function(n){var t=this.length();this.j5t(t+1);var r=this.wd+t&this.q5t-1;this.Bw[r]=n,this.Xy=t+1},n.prototype.push=function(n){var t=this.length()+1;if(this.q5t<t)this.G5t(n);else{var r=this.wd+t-1,i=this.q5t-1;this.Bw[r&i]=n,this.Xy=t}},n.prototype.shift=function(){var n=this.wd,t=this.Bw[n];return this.Bw[n]=void 0,this.wd=n+1&this.q5t-1,this.Xy--,t},n.prototype.length=function(){return this.Xy},n.prototype.j5t=function(n){this.q5t<n&&this.Y5t(this.q5t<<1)},n.prototype.Y5t=function(n){var t=this.q5t;this.q5t=n;var r=this.wd+this.Xy&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.Bw,0,t,r)},n}();var z="unhandledrejection",X=self.PromiseRejectionEvent,Y=self.CustomEvent;function $(n){return new X(z,{reason:n,promise:V.reject(n).catch((function(){})),cancelable:!0})}function Z(n){var t=new Y(z,{detail:{reason:n},cancelable:!0});return g.defineProperty(t,"reason",{value:n}),t}function J(n){var t=h.createEvent("CustomEvent");return t.initCustomEvent(z,!1,!0,{reason:n}),t}var Q,nn,tn,rn,en,un,on,fn,sn=function(n){return sn=function(){try{var n=V.resolve(),t="error",r=new X(z,{reason:t,promise:n});return z===r.type&&t===r.reason}catch(n){}return!1}()?$:function(){try{var n="error",t=new Y(z,{detail:{reason:n}});return z===t.type&&n===t.detail.reason}catch(n){}return!1}()?Z:J,sn(n)};function cn(n,t){return cn=g.setPrototypeOf||function(n,t){return n.__proto__=t,n},cn(n,t)}function an(n,t){if("function"!=typeof t&&null!==t)throw new E("Super expression must either be null or a function");n.prototype=g.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&cn(n,t)}function hn(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),g.defineProperty(n,i.key,i)}}function ln(n,t,r){return t&&hn(n.prototype,t),r&&hn(n,r),n}V&&!(W&&x<60||j&&K<15)?nn=V:(nn=C,on=null!==(Q=function(){var n=self.queueMicrotask;if("function"==typeof n)return function(t){return n(t)};var t=V;if(t&&"function"==typeof t.resolve){var r=t.resolve();return function(n){return r.then(n)}}}())&&void 0!==Q?Q:C.z5t,tn=on,rn=new q(16),en=!1,(fn={W1:function(n){rn.push(n),en||(en=!0,tn(un))},$q:un=function(){for(;rn.length()>0;)rn.shift()();en=!1}}).$q,C.z5t=fn.W1,C.W5t=function(n){try{var t=sn(n);if(!self.dispatchEvent(t)||t.defaultPrevented)return}catch(n){}_((function(){throw new I("Unhandled promise rejection: ".concat(n))}),0)});var vn=function(n){return n.R_="web",n.x_="android",n.D_="android-tv",n.N_="ios",n.B_="tvos",n.M_="chromecast",n.L_="theoliveweb",n}({});var _n=v?v.userAgent:"",dn=_n.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),yn=_n.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),wn=_n.match(/Android ([0-9\.]+)/i),In=_n.match(/Windows NT ([0-9\.]+)/i),En=_n.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),gn=_n.match(/Firefox\/([0-9\.]+)/i),Rn=_n.match(/OPR\/(\d+\.\d+)/i),On=_n.match(/Tizen ([0-9\.]+)/i),Sn=_n.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),pn=_n.match(/HbbTV\/([0-9.]+)/i),Tn=function(){function n(){this.O_=Boolean("ontouchstart"in self||self.DocumentTouch&&h instanceof self.DocumentTouch||v&&v.msMaxTouchPoints),this.U_=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(_n)||/(macintosh|mac(?=_powerpc)\s)/i.test(_n),this.H_=/Windows NT/i.test(_n),this.q_=In?S(In[1]):0,this.X_=/Android/i.test(_n),this.Q_=wn?S(wn[1]):0,this.j_=/windows phone (8|8\.1)/i.test(_n),this.Z_=/iPhone/i.test(_n),this.tv=/iPad/i.test(_n),this.rv=this.U_&&this.O_&&!this.tv,this.ov=/iPod/i.test(_n),this.Av=/Mobile Safari/i.test(_n),this.mv=/EOS\d*STB/i.test(_n),this.pv=/APP\d*STB/i.test(_n),this.fv=(this.Z_||this.tv||this.rv||this.ov)&&!this.j_,this.vv=Sn?S(Sn[2]):0,this.bv=this.j_||this.fv||this.X_||this.Av,this.Sv=/CriOS/i.test(_n),this.Pv=Boolean(self.chrome&&/google/i.test(v.vendor))||this.Sv,this.Dv=this.Pv&&/Edg\//i.test(v.userAgent),this.Bv=yn?O(yn[1],10):0,this.Xg=Boolean(/CriOS/i.test(_n)),this.zg=Boolean(self.chrome||/Chrome/i.test(_n)||this.Xg),this.Rv=dn?O(dn[1],10):0,this.Ov=/SMART-TV.*Tizen/i.test(_n),this.Uv=On?S(On[1]):0,this.Cv=this.Uv>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.Uv):void 0,this.Hv=/webos|web0s/i.test(_n),this.qv=/HbbTV/i.test(_n),this.Xv=!!pn&&function(n){if(!n)return!1;var t=n.split(".").map(Number);return 3===t.length&&1===t[0]&&2===t[1]}(pn[1]),this.Qv=/VIZIO/i.test(_n),this.Yv=/Edge\/\d+/i.test(_n),this.Jv=/Trident/i.test(_n),this.eg=this.Jv&&!self.ActiveXObject&&"ActiveXObject"in self,this.hg=/Vivaldi/i.test(_n),this.ag=/Firefox/i.test(_n)&&!/Seamonkey/i.test(_n),this.dg=gn?S(gn[1]):0,this._g=/Safari/i.test(_n)&&!/Chrome/i.test(_n)&&!this.j_&&!this.Ov,this.gg=En?S(En[2]):0,this.pg=Boolean(Rn),this.Ag=Rn?S(Rn[1]):0,this.Sg=/CrKey/.test(_n),this.Pg=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(_n),this.Rg=/PlayStation 4/i.test(_n),this.Dg="web"===vn.D_,this.Bg="web"===vn.x_,this.Lg=this.Bg||this.Dg,this.Fg="web"===vn.N_,this.Vg="web"===vn.B_,this.Wg="web"===vn.M_}return ln(n,[{key:"Ye",get:function(){return this.O_}},{key:"F_",get:function(){return this.U_}},{key:"V_",get:function(){return this.H_}},{key:"W_",get:function(){return this.q_}},{key:"z_",get:function(){return this.X_}},{key:"G_",get:function(){return this.Q_}},{key:"K_",get:function(){return this.j_}},{key:"Y_",get:function(){return this.Z_}},{key:"J_",get:function(){return this.tv}},{key:"ev",get:function(){return this.rv}},{key:"hv",get:function(){return this.ov}},{key:"uv",get:function(){return this.fv}},{key:"_v",get:function(){return this.vv}},{key:"wv",get:function(){return this.mv||this.pv}},{key:"yv",get:function(){return this.Av}},{key:"Ks",get:function(){return this.bv}},{key:"Tv",get:function(){return this.Sv}},{key:"Ev",get:function(){return this.Pv}},{key:"Iv",get:function(){var n;return null!=(n=this.Cv)?n:this.Rv}},{key:"xv",get:function(){return this.Dv}},{key:"Nv",get:function(){var n;return(null==(n=a.chrome)?void 0:n.webview)&&this.Bv>0}},{key:"Mv",get:function(){return this.Bv}},{key:"Lv",get:function(){return this.Ov}},{key:"Fv",get:function(){return this.Uv}},{key:"Vv",get:function(){return this.Hv}},{key:"Wv",get:function(){return this.qv}},{key:"zv",get:function(){return this.Xv}},{key:"Gv",get:function(){return this.Qv}},{key:"Kv",get:function(){return this.Yv}},{key:"Zv",get:function(){return this.Jv}},{key:"$v",get:function(){return this.eg}},{key:"rg",get:function(){return this.hg}},{key:"og",get:function(){return this.ag}},{key:"cg",get:function(){return this.dg}},{key:"fg",get:function(){return this._g}},{key:"vg",get:function(){return this.gg}},{key:"wg",get:function(){return this.pg}},{key:"yg",get:function(){return this.Ag}},{key:"Tg",get:function(){return this.Sg}},{key:"Eg",get:function(){return this.Pg}},{key:"Ig",get:function(){return!(!this.Vv&&!this.Lv)&&this.Iv<=56}},{key:"Cg",get:function(){return this.Rg}},{key:"xg",get:function(){return this.Dg}},{key:"Ng",get:function(){return this.Bg}},{key:"Mg",get:function(){return this.Lg}},{key:"Og",get:function(){return this.Fg}},{key:"Ug",get:function(){return this.Vg}},{key:"Hg",get:function(){return this.Wg}},{key:"qg",get:function(){return this.zg}},{key:"IS_IOS_CHROME",get:function(){return this.Xg}}]),n}();Tn.Gg=new Tn;var kn=Tn.Gg,bn={}.toString;function mn(n){return null!=n}Array.isArray;function Nn(n){return"object"===(void 0===n?"undefined":b(n))&&null!==n}function An(n){return function(n){return"function"==typeof n}(n)||Nn(n)}var Cn=function(){};function Dn(n){var t;return function(){return void 0!==n&&(t=n(),n=void 0),t}}function Pn(){return void 0!==h?h.createElement("video"):void 0}var Ln=Dn(Pn),Fn=(Dn((function(){return"undefined"!=typeof HTMLVideoElement&&Ln()instanceof HTMLVideoElement})),null);try{Fn=new WebAssembly.Instance(new WebAssembly.Module(new T([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(tn){}function Un(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function Mn(n){return!0===(n&&n.Yg)}function Vn(n){var t=R.clz32(n&-n);return n?31-t:t}Un.prototype.Yg,g.defineProperty(Un.prototype,"Yg",{value:!0}),Un.isLong=Mn;var Bn={},Hn={};function Wn(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=Bn[n])?i:(r=Gn(n,n<0?-1:0,!1),e&&(Bn[n]=r),r)}function xn(n,t){if(p(n))return t?Jn:Zn;if(t){if(n<0)return Jn;if(n>=Xn)return it}else{if(n<=-Yn)return et;if(n+1>=Yn)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=Wn,Un.fromNumber=xn,Un.fromBits=Gn;var jn=R.pow;function Kn(n,t,r){if(0===n.length)throw I("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 I("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=R.min(8,n.length-o),s=O(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,Yn=Xn/2,$n=Wn(1<<24),Zn=Wn(0);Un.ZERO=Zn;var Jn=Wn(0,!0);Un.UZERO=Jn;var Qn=Wn(1);Un.ONE=Qn;var nt=Wn(1,!0);Un.UONE=nt;var tt=Wn(-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($n)&&n.lt($n))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 I("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=R.max(1,R.floor(r.toNumber()/n.toNumber()));for(var e=R.ceil(R.log(t)/R.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?R.clz32(this.high):R.clz32(this.low)+32},ut.clz=ut.countLeadingZeros,ut.countTrailingZeros=function(){return this.low?Vn(this.low):Vn(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;R.pow(2,-52);function ft(){return Date.now()||(new Date).getTime()}ot.fromNumber(9007199254740991);var st=!!("ontouchstart"in self||self.DocumentTouch&&h instanceof self.DocumentTouch)||!(!v||!v.msMaxTouchPoints),ct=Ln(),at=!(!ct||!ct.webkitShowPlaybackTargetPicker),ht=function(){function n(){this.Jg=void 0,this.Tw=!1,this.Ye=st,this.Ks=!1,this.Sw=!0}var t=n.prototype;return t.$g=function(){return 0},t.Aw=function(n,t){return!0},t.bw=function(n){return n>=.3333333333333333},ln(n,[{key:"Zg",get:function(){return void 0===this.Jg&&(this.Jg=this.$g()),this.Jg}},{key:"ew",get:function(){return!kn.Eg}},{key:"iw",get:function(){if(a.screen)return{width:a.screen.width,height:a.screen.height}}},{key:"nw",get:function(){return a.devicePixelRatio||1}},{key:"hw",get:function(){return at}},{key:"ow",get:function(){return!1}},{key:"aw",get:function(){return!0}},{key:"uw",get:function(){return!(!kn.fg&&!kn.uv)||!!kn.Gv}},{key:"cw",get:function(){return kn.Gv}},{key:"lw",get:function(){return!kn.uv}},{key:"dw",get:function(){return!0}},{key:"fw",get:function(){return!0}},{key:"_w",get:function(){return!1}},{key:"gw",get:function(){}},{key:"ww",get:function(){return!0}},{key:"mw",get:function(){return!1}},{key:"pw",get:function(){return kn.Gv}},{key:"yw",get:function(){return!1}}]),n}(),lt=function(n){function t(){return n.call(this)||this}return an(t,n),t}(ht),vt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.Aw=function(n,t){if(n&&n.Ew&&t&&t.Ew){var r=_t(n.Ew,"mp4a.40.2")&&_t(t.Ew,"mp4a.40.5"),i=_t(n.Ew,"mp4a.40.5")&&_t(t.Ew,"mp4a.40.2"),e=_t(n.Ew,"mp4a.40.2")&&_t(t.Ew,"mp4a.40.34"),u=_t(n.Ew,"mp4a.40.34")&&_t(t.Ew,"mp4a.40.2"),o=_t(n.Ew,"mp4a.40.5")&&_t(t.Ew,"mp4a.40.34"),f=_t(n.Ew,"mp4a.40.34")&&_t(t.Ew,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},ln(t,[{key:"gw",get:function(){if(kn.F_)return 4096}}]),t}(lt);function _t(n,t){return n.indexOf(t)>-1}var dt,yt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.bw=function(n){return n>=2},t}(lt),wt=function(n){function t(){var t;return(t=n.call(this)||this).Tw=kn.vg>=11,t.Sw=kn.fg&&!(kn.uv&&kn.vg<10),t}return an(t,n),ln(t,[{key:"yw",get:function(){return kn.vg<17}}]),t}(lt),It=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),ln(t,[{key:"ww",get:function(){return!kn.V_||(kn.xv?92!==kn.Mv:kn.Iv>=100)}}]),t}(lt);var Et=function(){var n=Pn();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(kn.ev)return!1;var n=Pn();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var gt,Rt=function(n){function t(t){var r;return(r=n.call(this)||this).Pw=t,r.Tw=r.Pw.Tw,r.Ye=r.Pw.Ye,r.Sw=Et&&r.Pw.Sw,r}an(t,n);var r=t.prototype;return r.$g=function(){return this.Pw.Zg},r.Aw=function(n,t){return this.Pw.Aw(n,t)},r.bw=function(n){return this.Pw.bw(n)},ln(t,[{key:"gw",get:function(){return this.Pw.gw}},{key:"ww",get:function(){return this.Pw.ww}},{key:"yw",get:function(){return this.Pw.yw}}]),t}(ht),Ot=function(n){function t(t){var r;return(r=n.call(this,t)||this).Tw=!0,r.Ks=!0,r}return an(t,n),ln(t,[{key:"_w",get:function(){return kn.uv}}]),t}(Rt);var St=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.$g=function(){return function(n){return n&&An(gt.ManagedMediaSource)?gt.ManagedMediaSource:An(gt.MediaSource)?gt.MediaSource:void 0}(!0)?n.prototype.$g.call(this):1},ln(t,[{key:"_w",get:function(){return!0}}]),t}(Ot),pt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.Aw=function(t,r){return n.prototype.Aw.call(this,t,r)},ln(t,[{key:"ow",get:function(){return kn.Fv<3}},{key:"aw",get:function(){return kn.Fv>=3}},{key:"iw",get:function(){var n=this;return a.tizen&&!this.xw&&a.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.xw={width:r,height:i})})),this.xw}},{key:"mw",get:function(){return kn.Fv<3}}]),t}(Rt),Tt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),ln(t,[{key:"iw",get:function(){var n=this;return a.webOS&&!this.xw&&a.webOS.deviceInfo((function(t){n.xw={width:t.screenWidth,height:t.screenHeight}})),this.xw}},{key:"dw",get:function(){return!1}}]),t}(Rt),kt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),ln(t,[{key:"_w",get:function(){return!0}}]),t}(Rt);function bt(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 mt(n,t){if(n){if("string"==typeof n)return bt(n,t);var r=g.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)?bt(n,t):void 0}}function Nt(n){return function(n){if(Array.isArray(n))return bt(n)}(n)||function(n){if(void 0!==t&&null!=n[i]||null!=n["@@iterator"])return Array.from(n)}(n)||mt(n)||function(){throw new E("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}!function(n){dt=n}(function(){var n=function(){if(kn.og)return new vt;if(kn.Kv||kn.Zv)return new yt;if(kn.fg)return new wt;if(kn.Ev)return new It;return new lt}();return kn.uv?new St(n):kn.Ks?new Ot(n):kn.Lv?new pt(n):kn.Vv?new Tt(n):kn.F_?new kt(n):new Rt(n)}());var At=!(kn.Zv&&!kn.$v),Ct=self.console;function Dt(n){if(Nn(n))try{return JSON.stringify(n)}catch(n){}return n}function Pt(n){return n.map(Dt).join(" ")}function Lt(n){var t=Ct&&Ct[n];return t?t.bind&&At?t.bind(Ct):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];Ct[n](Pt(r))}:void 0}var Ft=Lt("log")||Cn,Ut=Lt("warn")||Ft.bind(void 0,"WARNING:"),Mt=Lt("error")||Ft.bind(void 0,"ERROR:"),Vt=function(){var n=Ct&&Ct.assert;return n?n.bind&&At?n.bind(Ct):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];Ct.assert(n,Pt(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||Mt.apply(void 0,["Assertion failed:"].concat(Nt(r)))}}();function Bt(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),g.defineProperty(n,i.key,i)}}function Ht(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){Wt(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&Wt(r,null,n.length,n),n}function Wt(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 xt=/[a-zA-Z]/,Gt=/[0-9]/,jt=/[0-9a-fA-F]/,Kt=/^0x/i,qt=/^[0-9]+$/,zt=/^[0-9a-fA-F]+$/,Xt=/^[0-7]+$/,Yt=g.prototype.toString,$t=Array.isArray||function(n){return"[object Array]"===Yt.call(n)},Zt=void 0!==t&&"symbol"==typeof i;function Jt(n){return $t(n)?n:Array.from(n)}function Qt(n,t,r){var i=n[t];n[t]=n[r],n[r]=i}function nr(n){return n>=65&&n<=90}function tr(n){return nr(n)||function(n){return n>=97&&n<=122}(n)}function rr(n){return n>=48&&n<=57}function ir(n){return rr(n)||tr(n)}function er(n){return rr(n)||n>=65&&n<=70||n>=97&&n<=102}function ur(n){return nr(n)?n+32:n}function or(n){return rr(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function fr(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var sr=R.min,cr=String.fromCharCode,ar=16384;function hr(n){for(var t=n.length,r=[],i=0;i<t;i+=ar){var e=sr(i+ar,t);r.push(cr.apply(null,n.slice(i,e)))}return r.join("")}var lr=2147483647,vr=/[^\0-\x7E]/,_r=/[\x2E\u3002\uFF0E\uFF61]/g,dr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},yr=R.floor,wr=String.fromCharCode;function Ir(n){throw new RangeError(dr[n])}function Er(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 gr,Rr,Or,Sr=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},pr=function(n,t,r){var i=0;for(n=r?yr(n/700):n>>1,n+=yr(n/t);n>455;i+=36)n=yr(n/35);return yr(i+36*n/(n+38))},Tr=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(_r,".")).split("."),t).join(".");return i+e}(n,(function(n){return vr.test(n)?"xn--"+function(n){for(var t=[],r=(n=Er(n)).length,i=128,e=0,u=72,o=0,f=n;o<f.length;o++){var s=f[o];s<128&&t.push(wr(s))}var c=t.length,a=c;for(c&&t.push("-");a<r;){for(var h=lr,l=0,v=n;l<v.length;l++){var _=v[l];_>=i&&_<h&&(h=_)}var d=a+1;h-i>yr((lr-e)/d)&&Ir("overflow"),e+=(h-i)*d,i=h;for(var y=0,w=n;y<w.length;y++){var I=w[y];if(I<i&&++e>lr&&Ir("overflow"),I==i){for(var E=e,g=36;;g+=36){var R=g<=u?1:g>=u+26?26:g-u;if(E<R)break;var O=E-R,S=36-R;t.push(wr(Sr(R+O%S,0))),E=yr(O/S)}t.push(wr(Sr(E,0))),u=pr(e,d,a==c),e=0,++a}}++e,++i}return t.join("")}(n):n}))};function kr(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 hr(t)}function br(n){if(n>=55296&&n<=57343)throw new I("Lone surrogate U+"+n.toString(16).toUpperCase()+" is not a scalar value")}function mr(n,t){return n>>t&63|128}function Nr(n,t){0!=(4294967168&n)?(0==(4294965248&n)?t.push(n>>6&31|192):0==(4294901760&n)?(br(n),t.push(n>>12&15|224),t.push(mr(n,6))):0==(4292870144&n)&&(t.push(n>>18&7|240),t.push(mr(n,12)),t.push(mr(n,6))),t.push(63&n|128)):t.push(n)}function Ar(n){for(var t=[],r=0;r<n.length;r++){Nr(n[r],t)}return t}function Cr(){if(Or>=Rr)throw new I("Invalid byte index");var n=255&gr[Or];if(Or++,128==(192&n))return 63&n;throw new I("Invalid continuation byte")}function Dr(){var n,t;if(Or>Rr)throw new I("Invalid byte index");if(Or===Rr)return!1;if(n=255&gr[Or],Or++,0==(128&n))return n;if(192==(224&n)){if((t=(31&n)<<6|Cr())>=128)return t;throw new I("Invalid continuation byte")}if(224==(240&n)){if((t=(15&n)<<12|Cr()<<6|Cr())>=2048)return br(t),t;throw new I("Invalid continuation byte")}if(240==(248&n)&&(t=(7&n)<<18|Cr()<<12|Cr()<<6|Cr())>=65536&&t<=1114111)return t;throw new I("Invalid UTF-8 detected")}function Pr(n){return[37,fr(n>>4),fr(15&n)]}function Lr(n){return function(n){return n>=0&&n<=31}(n)||n>126}function Fr(n){return Lr(n)||32===n||34===n||60===n||62===n||96===n}function Ur(n){return Fr(n)||35===n||63===n||123===n||125===n}function Mr(n){return Ur(n)||47===n||58===n||59===n||61===n||64===n||n>=91&&n<=94||124===n}function Vr(n){return n<33||n>126||34===n||35===n||60===n||62===n}function Br(n){return Vr(n)||39===n}function Hr(n,t){if(!t(n))return[n];for(var r=Ar([n]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,Pr(u))}return i}function Wr(n,t){for(var r=[],i=0,e=Er(n);i<e.length;i++){var u=e[i];r.push.apply(r,Hr(u,t))}return kr(r)}function xr(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&&er(n[i+1])&&er(n[i+2])){var u=or(n[i+1])<<4|or(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(Ar(n))}function Gr(n){return kr(function(n){gr=n.slice(),Rr=gr.length,Or=0;for(var t,r=[];!1!==(t=Dr());)r.push(t);return r}(xr(Er(n))))}function jr(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 E;u+=2,e=i+=1}for(;u<t;){if(8===i)throw new E("Too many groups");if(":"!==n[u]){for(var o=0,f=0;f<4&&u<t&&jt.test(n[u]);)o=o<<4|O(n[u],16),u+=1,f+=1;if("."===n[u]){if(0===f)throw new E;if(u-=f,i>6)throw new E;for(var s=0;u<t;){var c=null;if(s>0){if(!("."===n[u]&&s<4))throw new E;u+=1}if(!Gt.test(n[u]))throw new E;for(;u<t&&Gt.test(n[u]);){var a=O(n[u],10);if(null===c)c=a;else{if(0===c)throw new E;if((c=10*c+a)>255)throw new E}u+=1}r[i]=r[i]<<8|c,2!==(s+=1)&&4!==s||(i+=1)}if(4!==s)throw new E;break}if(":"===n[u]){if((u+=1)===t)throw new E}else if(u<t)throw new E;r[i]=o,i+=1}else{if(null!==e)throw new E("Too many :: groups");u+=1,e=i+=1}}if(null!==e){var h=i-e;for(i=7;0!==i&&h>0;)Qt(r,i,e+h-1),i-=1,h-=1}else if(8!==i)throw new E;return r}function Kr(n){var t=10,r=qt;return Kt.test(n)?(n=n.slice(2),t=16,r=zt):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=Xt),""===n?0:r.test(n)?O(n,t):void 0}var qr={Dw:4},zr=/[\0\t\n\r #%/:?@\[\\\]]/,Xr=/[\0\t\n\r #/:?@\[\\\]]/;function Yr(n,t){if("["===n[0]){if("]"!==n[n.length-1])throw new E("Invalid IPv6 address");return{Dw:2,Nw:jr(n.slice(1,-1))}}if(!t)return function(n){if(Xr.test(n))throw new E("Invalid code point in opaque host");var t=Wr(n,Lr);return""===t?qr:{Dw:3,Bw:t}}(n);var r=function(n){var t=function(n){return Tr(n.toLowerCase())}(n);return t}(Gr(n));if(zr.test(r))throw new E("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=Kr(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new E;if(r[r.length-1]>=R.pow(256,5-r.length))throw new E;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*R.pow(256,3-s);return f}}(r);return void 0!==i?{Dw:1,Nw:i}:""===r?qr:{Dw:0,Mw:r}}function $r(n){switch(n.Dw){case 0:return n.Mw;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.Nw);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.Nw)+"]";case 3:return n.Bw;case 4:return""}}var Zr=/\+/g;function Jr(n){return 42===n||45===n||46===n||95===n||ir(n)}function Qr(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(Zr," "),f=f.replace(Zr," ");var s=Gr(o),c=Gr(f);r.push([s,c])}}return r}function ni(n){for(var t="",r=0;r<n.length;r++){var i=n[r];r>0&&(t+="&"),t+=ti(Ar(Er(i[0])))+"="+ti(Ar(Er(i[1])))}return t}function ti(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];32===i?t.push(43):Jr(i)?t.push(i):t.push.apply(t,Pr(i))}return hr(t)}var ri=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function ii(n){var t=""+n,r=ri.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(ui(u))if(oi(u)||e===r-1)i.push(ei);else{var o=n.charCodeAt(e+1);oi(o)?(i.push(u,o),e++):i.push(ei)}else i.push(u)}return n.slice(0,t)+hr(i)}(t,r.index):t}var ei=65533,ui=function(n){return 55296==(63488&n)},oi=function(n){return 0!=(1024&n)};function fi(n,t){var r=n[0],i=t[0];return r===i?0:r<i?-1:1}function si(n){n.Lw.length=0}function ci(n,t){!function(n,t){for(var r=0;r<t.length;r++)n[r]=t[r];n.length=t.length}(n.Lw,Qr(t))}function ai(n){if(n.Ow){var t=ni(n.Lw);""===t&&(t=null),n.Ow.Ow.Fw=t}}var hi=function(){function n(n){if(void 0===n&&(n=void 0),this.Ow=null,null==n)this.Lw=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof hi&&!!$t(n.Lw)&&(!Zt||n[i]===li)}(n))this.Lw=n.Lw.slice();else if(function(n){return null!=n&&(!!$t(n)||!!Zt&&"function"==typeof n[i])}(n)){this.Lw=[];for(var t=0,r=Jt(n);t<r.length;t++){var e=Jt(r[t]);if(2!==e.length)throw new E("Invalid name-value pair");this.Lw.push([ii(e[0]),ii(e[1])])}}else for(var u in this.Lw=[],n)g.prototype.hasOwnProperty.call(n,u)&&this.Lw.push([ii(u),ii(n[u])]);else(n=ii(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.Lw=Qr(n)}var t=n.prototype;return t.append=function(n,t){n=ii(n),t=ii(t),this.Lw.push([n,t]),ai(this)},t.delete=function(n){n=ii(n);for(var t=this.Lw,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}ai(this)},t.get=function(n){n=ii(n);for(var t=this.Lw,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},t.getAll=function(n){n=ii(n);for(var t=this.Lw,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=ii(n);for(var t=this.Lw,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},t.set=function(n,t){n=ii(n),t=ii(t);for(var r=this.Lw,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]),ai(this)},t.sort=function(){Ht(this.Lw,fi),ai(this)},t.toString=function(){return ni(this.Lw)},t.entries=function(){return new yi(this.Lw,vi)},t.keys=function(){return new yi(this.Lw,_i)},t.values=function(){return new yi(this.Lw,di)},t.forEach=function(n){var t=this;this.Lw.forEach((function(r){return n(r[1],r[0],t)}))},n}(),li=hi.prototype.entries;Zt&&(hi.prototype[i]=li);var vi=function(n){return[n[0],n[1]]},_i=function(n){return n[0]},di=function(n){return n[1]},yi=function(){function n(n,t){this.Uw=0,this.Lw=n,this.Vw=t}return n.prototype.next=function(){return this.Uw<this.Lw.length?{done:!1,value:this.Vw(this.Lw[this.Uw++])}:{done:!0,value:void 0}},n}(),wi="null";var Ii=g.create(null);Ii.ftp=21,Ii.file=0,Ii.gopher=70,Ii.http=80,Ii.https=443,Ii.ws=80,Ii.wss=443;var Ei=/^(?:\.|%2e)$/i,gi=/^(?:\.|%2e){2}$/i;function Ri(n){return Ei.test(n)}function Oi(n){return gi.test(n)}function Si(n){return void 0!==Ii[n]}function pi(n){return Si(n.Hw)}function Ti(n){return""!==n.Ww||""!==n.qw}function ki(n){var t=n.length;if(!(t>=2))return!1;if(!mi(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 bi(n){return 2===n.length&&xt.test(n[0])&&(":"===n[1]||"|"===n[1])}function mi(n){return 2===n.length&&bi(hr(n))}function Ni(n){return bi(n)&&":"===n[1]}function Ai(n){var t=n.zw;0!==t.length&&("file"===n.Hw&&1===t.length&&Ni(t[0])||t.pop())}function Ci(n){return null===n.Xw||qr===n.Xw||n.Gw||"file"===n.Hw}var Di=-1,Pi=/\t|\n|\r/g,Li=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function Fi(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new Mi,n=n.replace(Li,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=Er(n=n.replace(Pi,"")),a=c.length,h=0;h<=a;){var l=h<a?c[h]:Di;switch(e){case 0:if(!tr(l)){if(null===i){u.length=0,e=2;continue}throw new E("Invalid scheme")}u.push(ur(l)),e=1;break;case 1:if(ir(l)||43===l||45===l||46===l)u.push(ur(l));else{if(58!==l){if(null===i){u.length=0,e=2,h=0;continue}throw new E("Invalid scheme")}var v=kr(u);if(null!==i){if(Si(r.Hw)&&!Si(v))return;if(!Si(r.Hw)&&Si(v))return;if((Ti(r)||null!==r.Qw)&&"file"===v)return;if("file"===r.Hw&&(r.Xw===qr||null===r.Xw))return}if(r.Hw=v,null!==i)return void(pi(r)&&r.Qw===Ii[r.Hw]&&(r.Qw=null));u.length=0,"file"===r.Hw?e=13:pi(r)&&t&&t.Hw===r.Hw?e=3:pi(r)?e=7:47===c[h+1]?(e=4,h+=1):(r.Gw=!0,r.zw.push(""),e=18)}break;case 2:if(!t||t.Gw&&35!==l)throw new E("Invalid scheme");t.Gw&&35===l?(r.Hw=t.Hw,r.zw=t.zw.slice(),r.Fw=t.Fw,r.Kw="",r.Gw=!0,e=20):"file"!==t.Hw?(e=5,h-=1):(e=13,h-=1);break;case 3:47===l&&47===c[h+1]?e=8:(e=5,h-=1);break;case 4:47===l?e=9:(e=17,h-=1);break;case 5:r.Hw=t.Hw,Di===l?(r.Ww=t.Ww,r.qw=t.qw,r.Xw=t.Xw,r.Qw=t.Qw,r.zw=t.zw.slice(),r.Fw=t.Fw):47===l?e=6:63===l?(r.Ww=t.Ww,r.qw=t.qw,r.Xw=t.Xw,r.Qw=t.Qw,r.zw=t.zw.slice(),r.Fw="",e=19):35===l?(r.Ww=t.Ww,r.qw=t.qw,r.Xw=t.Xw,r.Qw=t.Qw,r.zw=t.zw.slice(),r.Fw=t.Fw,r.Kw="",e=20):92===l&&pi(r)?e=6:(r.Ww=t.Ww,r.qw=t.qw,r.Xw=t.Xw,r.Qw=t.Qw,r.zw=t.zw.slice(),r.zw.pop(),e=17,h-=1);break;case 6:!pi(r)||47!==l&&92!==l?47===l?e=9:(r.Ww=t.Ww,r.qw=t.qw,r.Xw=t.Xw,r.Qw=t.Qw,e=17,h-=1):e=8;break;case 7:if(47!==l||47!==c[h+1]){e=8;continue}e=8,h+=1;break;case 8:47!==l&&92!==l&&(e=9,h-=1);break;case 9:if(64===l){o&&u.unshift(37,52,48),o=!0;for(var _=0;_<u.length;_++){var d=u[_];if(58!==d||s){var y=kr(Hr(d,Mr));s?r.qw+=y:r.Ww+=y}else s=!0}u.length=0}else if(Di===l||47===l||63===l||35===l||pi(r)&&92===l){if(o&&0===u.length)throw new E("Invalid host");h-=u.length+1,u.length=0,e=10}else u.push(l);break;case 10:case 11:if(null!==i&&"file"===r.Hw)h-=1,e=15;else if(58!==l||f)if(Di===l||47===l||63===l||35===l||pi(r)&&92===l){if(h-=1,pi(r)&&0===u.length)throw new E("Invalid host");if(null!==i&&0===u.length&&(Ti(r)||null!==r.Qw))return;var w=Yr(kr(u),pi(r));if(r.Xw=w,u.length=0,e=16,null!==i)return}else 91===l?f=!0:93===l&&(f=!1),u.push(l);else{if(0===u.length)throw new E("Invalid host");var I=Yr(kr(u),pi(r));if(r.Xw=I,u.length=0,e=12,11===i)return}break;case 12:if(rr(l))u.push(l);else{if(!(Di===l||47===l||63===l||35===l||pi(r)&&92===l||null!==i))throw new E("Invalid port");if(0!==u.length){var g=O(kr(u),10);if(g>65535)throw new E("Invalid port");r.Qw=g===Ii[r.Hw]?null:g,u.length=0}if(null!==i)return;e=16,h-=1}break;case 13:r.Hw="file",47===l||92===l?e=14:t&&"file"===t.Hw?Di===l?(r.Xw=t.Xw,r.zw=t.zw.slice(),r.Fw=t.Fw):63===l?(r.Xw=t.Xw,r.zw=t.zw.slice(),r.Fw="",e=19):35===l?(r.Xw=t.Xw,r.zw=t.zw.slice(),r.Fw=t.Fw,r.Kw="",e=20):(ki(c.slice(h))||(r.Xw=t.Xw,r.zw=t.zw.slice(),Ai(r)),e=17,h-=1):(e=17,h-=1);break;case 14:47===l||92===l?e=15:(t&&"file"===t.Hw&&!ki(c.slice(h))&&(Ni(t.zw[0])?r.zw.push(t.zw[0]):r.Xw=t.Xw),e=17,h-=1);break;case 15:if(Di===l||47===l||92===l||63===l||35===l)if(h-=1,null===i&&mi(u))e=17;else if(0===u.length){if(r.Xw=qr,null!==i)return;e=16}else{var R=Yr(kr(u),pi(r));if(0===R.Dw&&"localhost"===R.Mw&&(R=qr),r.Xw=R,null!==i)return;u.length=0,e=16}else u.push(l);break;case 16:pi(r)?(e=17,47!==l&&92!==l&&(h-=1)):null===i&&63===l?(r.Fw="",e=19):null===i&&35===l?(r.Kw="",e=20):Di!==l&&(e=17,47!==l&&(h-=1));break;case 17:if(Di===l||47===l||pi(r)&&92===l||null===i&&(63===l||35===l)){var S=kr(u);if(Oi(S)?(Ai(r),47===l||pi(r)&&92===l||r.zw.push("")):!Ri(S)||47===l||pi(r)&&92===l?Ri(S)||("file"===r.Hw&&0===r.zw.length&&mi(u)&&(qr!==r.Xw&&null!==r.Xw&&(r.Xw=qr),u[1]=58,S=kr(u)),r.zw.push(S)):r.zw.push(""),u.length=0,"file"===r.Hw&&(Di===l||63===l||35===l))for(;r.zw.length>1&&""===r.zw[0];)r.zw.shift();63===l?(r.Fw="",e=19):35===l&&(r.Kw="",e=20)}else u.push.apply(u,Hr(l,Ur));break;case 18:63===l?(r.Fw="",e=19):35===l?(r.Kw="",e=20):Di!==l&&(r.zw[0]+=kr(Hr(l,Lr)));break;case 19:null===i&&35===l?(r.Kw="",e=20):Di!==l&&(r.Fw+=kr(Hr(l,pi(r)?Br:Vr)));break;case 20:Di===l||0===l||(r.Kw+=kr(Hr(l,Fr)))}h++}return r}function Ui(n,t,r,i){try{Fi(n,t,r,i)}catch(n){}}var Mi=function(){this.Hw="",this.Ww="",this.qw="",this.Xw=null,this.Qw=null,this.zw=[],this.Fw=null,this.Kw=null,this.Gw=!1};function Vi(n){switch(n.Hw){case"blob":var t;try{t=Fi(n.zw[0],null)}catch(n){return wi}return Vi(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(n,t,r){return n+"://"+$r(t)+(null===r?"":":"+r)}(n.Hw,n.Xw,n.Qw);default:return wi}}var Bi=function(){function n(n,t){var r,i=null;if(null!=t)if(function(n){return null!=n&&n instanceof Bi&&"object"==typeof n.Ow}(t))i=t.Ow;else try{i=Fi(String(t),null)}catch(n){throw new E("Invalid base URL: "+n.message)}try{r=Fi(String(n),i)}catch(n){throw new E("Invalid URL: "+n.message)}var e=r.Fw;this.Ow=r,this.Fw=function(n){var t=new hi;return null!==n&&ci(t,n),t}(e),this.Fw.Ow=this}var t=n.prototype;return t.toString=function(){return this.href},t.toJSON=function(){return this.href},function(n,t,r){t&&Bt(n.prototype,t),r&&Bt(n,r)}(n,[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.Hw+":";if(null!==n.Xw?(r+="//",Ti(n)&&(r+=n.Ww,""!==n.qw&&(r+=":"+n.qw),r+="@"),r+=$r(n.Xw),null!==n.Qw&&(r+=":"+n.Qw)):null===n.Xw&&"file"===n.Hw&&(r+="//"),n.Gw)r+=n.zw[0];else for(var i=0,e=n.zw;i<e.length;i++)r+="/"+e[i];return null!==n.Fw&&(r+="?"+n.Fw),t||null===n.Kw||(r+="#"+n.Kw),r}(this.Ow)},set:function(n){var t;try{t=Fi(String(n),null)}catch(n){throw new E("Invalid URL: "+n.message)}this.Ow=t,si(this.Fw);var r=this.Ow.Fw;null!==r&&ci(this.Fw,r)}},{key:"origin",get:function(){return Vi(this.Ow)}},{key:"protocol",get:function(){return this.Ow.Hw+":"},set:function(n){Ui(n+":",null,this.Ow,0)}},{key:"username",get:function(){return this.Ow.Ww},set:function(n){Ci(this.Ow)||(this.Ow.Ww=Wr(n,Mr))}},{key:"password",get:function(){return this.Ow.qw},set:function(n){Ci(this.Ow)||(this.Ow.qw=Wr(n,Mr))}},{key:"host",get:function(){var n=this.Ow,t=n.Xw;if(null===t)return"";var r=n.Qw,i=$r(t);return null!==r&&(i+=":"+r),i},set:function(n){this.Ow.Gw||Ui(n,null,this.Ow,10)}},{key:"hostname",get:function(){var n=this.Ow.Xw;return null===n?"":$r(n)},set:function(n){this.Ow.Gw||Ui(n,null,this.Ow,11)}},{key:"port",get:function(){var n=this.Ow.Qw;return null===n?"":""+n},set:function(n){Ci(this.Ow)||(""===n?this.Ow.Qw=null:Ui(n,null,this.Ow,12))}},{key:"pathname",get:function(){var n=this.Ow.zw;return this.Ow.Gw?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.Ow.Gw||(this.Ow.zw.length=0,Ui(n,null,this.Ow,16))}},{key:"search",get:function(){var n=this.Ow.Fw;return null===n||""===n?"":"?"+n},set:function(n){n=ii(n);var t=this.Ow;if(""===n)return t.Fw=null,void si(this.Fw);"?"===n[0]&&(n=n.slice(1)),t.Fw="",Ui(n,null,t,19),ci(this.Fw,n)}},{key:"searchParams",get:function(){return this.Fw}},{key:"hash",get:function(){var n=this.Ow.Kw;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.Ow.Kw="",Ui(n,null,this.Ow,20)):this.Ow.Kw=null}}]),n}();function Hi(n){return n.document&&n.document.baseURI||n.location.href||""}var Wi=function(){function n(){this.gm=new xi,this.ym=dt,this.pm=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.Qg=function(){return self.performance.now()}:this.Qg=ft}var t=n.prototype;return t.jw=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Ft.apply(void 0,Nt(t))},t.Yw=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Ut.apply(void 0,Nt(t))},t.Zw=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Mt.apply(void 0,Nt(t))},t.Jw=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];Vt.apply(void 0,[n].concat(Nt(r)))},t.jg=function(n,t){return _(n,t)},t.$w=function(n,t){return y(n,t)},t.Kg=function(n){d(n)},t.tm=function(n){w(n)},t.im=function(){return this.nm.im()},t.hm=function(){return this.nm.hm()},t.um=function(){return this.nm.um()},t.lm=function(){return this.nm.lm()},t.dm=function(){return this.nm.dm()},t.fm=function(n,t){return this.nm.fm(n,t)},t._m=function(n){return this.nm._m(n)},t.Ih=function(n,t){var r;return void 0===t&&(t=Hi(gt)),r="object"!==(void 0===t?"undefined":b(t))||t instanceof Bi?t:t.href,new Bi(n,r)},t.wm=function(n,t){if(void 0===t&&(t=Hi(gt)),this.pm){var r=function(n){return"string"==typeof n}(t)?t:t.toString();return new self.URL(n,r).href}return this.Ih(n,t).href},ln(n,[{key:"vm",get:function(){return this.gm}},{key:"Zs",get:function(){return this.ym}},{key:"Am",get:function(){return{Tm:v&&v.userAgent.match(/Android /i)?"Android":"other",Sm:Boolean(v&&v.userAgent.match(/Android 8.0.0/i))}}},{key:"Em",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"Pm",get:function(){return"languages"in v?v.languages.slice():[v.language]}}]),n}(),xi=function(){function n(){}return ln(n,[{key:"Im",get:function(){return v.oscpu}},{key:"Zs",get:function(){return v.platform}},{key:"Cm",get:function(){return v.vendor}},{key:"Rm",get:function(){return v.vendorSub}}]),n}();var Gi=function(){function n(){}var t=n.prototype;return t.dm=function(){return nn.resolve(!1)},t.hm=function(){return nn.resolve(!1)},t.lm=function(){return nn.resolve(!1)},t.um=function(){return nn.resolve(!1)},t._m=function(n){return nn.resolve(!1)},t.fm=function(n,t){return nn.resolve(!1)},t.im=function(){return nn.resolve(!1)},n}(),ji=function(){function n(){}var t=n.prototype;return t.hS=function(){},t.By=function(n){},t.xy=function(n){},t.Dy=function(n,t){},n}(),Ki=function(n){return n.aS="arraybuffer",n.uS="json",n.cS="stream",n.lS="text",n}({});function qi(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,r){var e=null==n?null:void 0!==t&&n[i]||n["@@iterator"];if(null!=e){var u,o,f=[],s=!0,c=!1;try{for(e=e.call(n);!(s=(u=e.next()).done)&&(f.push(u.value),!r||f.length!==r);s=!0);}catch(n){c=!0,o=n}finally{try{s||null==e.return||e.return()}finally{if(c)throw o}}return f}}(n,r)||mt(n,r)||function(){throw new E("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var zi=function(){function n(t){var r=this;this.Bm={},t instanceof n?t.asList().forEach((function(n){var t=qi(n,2),i=t[0],e=t[1];r.append(i,e)})):Array.isArray(t)?t.forEach((function(n){var t=qi(n,2),i=t[0],e=t[1];r.append(i,e)})):t&&g.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=Xi(r),i=Yi(i);var e=r.toLowerCase();if(this.Bm.hasOwnProperty(e)){var u=this.Bm[e],o=u[1];u[1]=o?o+", "+i:i}else this.Bm[e]=[r,i]},t.delete=function(n){var t=Xi(n).toLowerCase();delete this.Bm[t]},t.get=function(n){var t=Xi(n).toLowerCase();return this.Bm.hasOwnProperty(t)?this.Bm[t][1]:null},t.has=function(n){var t=Xi(n).toLowerCase();return this.Bm.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=Xi(r)).toLowerCase();this.Bm[i]=[r,Yi(t)]},t.forEach=function(n,t){for(var r in this.Bm)this.Bm.hasOwnProperty(r)&&n.call(t,this.Bm[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.Bm)if(this.Bm.hasOwnProperty(t)){var r=qi(this.Bm[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.dS=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.fS=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t._S=function(n){var t=this;n.forEach((function(n,r){t.set(r,n)}))},n}();function Xi(n){var t=n;if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new E("Invalid character in header field name");return t}function Yi(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}function $i(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):nn.resolve(s).then(i,e)}function Zi(n){return function(){var t=this,r=arguments;return new nn((function(i,e){var u=n.apply(t,r);function o(n){$i(u,i,e,o,f,"next",n)}function f(n){$i(u,i,e,o,f,"throw",n)}o(void 0)}))}}function Ji(n,r){var e,u,o,f={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=g.create(("function"==typeof Iterator?Iterator:g).prototype);return s.next=c(0),s.throw=c(1),s.return=c(2),"function"==typeof t&&(s[i]=function(){return this}),s;function c(t){return function(i){return function(t){if(e)throw new E("Generator is already executing.");for(;s&&(s=0,t[0]&&(f=0)),f;)try{if(e=1,u&&(o=2&t[0]?u.return:t[0]?u.throw||((o=u.return)&&o.call(u),0):u.next)&&!(o=o.call(u,t[1])).done)return o;switch(u=0,o&&(t=[2&t[0],o.value]),t[0]){case 0:case 1:o=t;break;case 4:return f.label++,{value:t[1],done:!1};case 5:f.label++,u=t[1],t=[0];continue;case 7:t=f.ops.pop(),f.trys.pop();continue;default:if(!(o=f.trys,(o=o.length>0&&o[o.length-1])||6!==t[0]&&2!==t[0])){f=0;continue}if(3===t[0]&&(!o||t[1]>o[0]&&t[1]<o[3])){f.label=t[1];break}if(6===t[0]&&f.label<o[1]){f.label=o[1],o=t;break}if(o&&f.label<o[2]){f.label=o[2],f.ops.push(t);break}o[2]&&f.ops.pop(),f.trys.pop();continue}t=r.call(n,f)}catch(n){t=[6,n],u=0}finally{e=o=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,i])}}}Array.prototype.find,Array.prototype.findLast;var Qi="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},ne="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 te(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 re(n){n.length=0}Array.prototype.flat,Array.prototype.flatMap;var ie=function(){function n(){this.$m=!1,this.sp=!1,this.np=[],this.rp=[]}var t=n.prototype;return t.ip=function(){if(!this.$m&&!this.sp){this.$m=!0;for(var n=0,t=this.np.slice();n<t.length;n++){(0,t[n])()}this.Wu()}},t.Wu=function(){if(!this.sp){this.sp=!0;for(var n=0,t=this.rp.slice();n<t.length;n++){(0,t[n])()}re(this.np),re(this.rp)}},t.ep=function(n){this.sp||this.np.push(n)},t.tp=function(n){this.sp||te(this.np,n)},t.hp=function(n){this.sp||this.rp.push(n)},t.op=function(n){this.sp||te(this.rp,n)},n}(),ee=function(){function n(){this.cp=new ie}var t=n.prototype;return t.tf=function(){this.cp.ip()},t.Wu=function(){this.cp.Wu()},t.lp=function(n){var t=this.cp;if(!t.$m)if(n.$m)t.ip();else if(!t.sp&&!n.sp){var r=function(){i(),t.ip()},i=function(){n.tp(r),n.op(i),t.tp(r),t.op(i)};n.ep(r),n.hp(i),t.ep(r),t.hp(i)}},t.dp=function(){var t=new n,r=new n,i=t.ap,e=r.ap,u=this.cp,o=function(){i.$m&&e.sp||e.$m&&i.sp?u.ip():i.sp&&e.sp&&u.Wu()};i.ep(o),e.ep(o),i.hp(o),e.hp(o),t.lp(u),r.lp(u);return u.hp((function(){i.tp(o),e.tp(o),i.op(o),e.op(o)})),[t,r]},t[e]=function(){this.tf()},n.fp=function(t){for(var r=new n,i=0;i<t.length;i++){var e=t[i];void 0!==e&&r.lp(e)}return r},ln(n,[{key:"ap",get:function(){return this.cp}}]),n}(),ue=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_,d,y,w,I,E,g=n.qS;t?(r=t.AS,i=t.US,e=t.vk,u=t.OS,o=t.gk,f=t.wk,s=t.ap,c=t.Vm,a=t.pk,h=t.yk,l=t.Ak,v=t.bk,_=t.Tk,d=t.Sk,y=t.Ek):(r=null,i={},e="GET",u=Ki.lS,o=0,f=0,c="",a="",h="",l=!1,_=void 0,d=!1,y=void 0),this.qS=g,this.AS=n.AS||r,this.US=new zi(n.US||i),this.vk=n.vk||e,this.OS=n.OS||u,this.gk=void 0!==n.gk?Number(n.gk)||0:o,this.wk=void 0!==n.wk?Number(n.wk)||0:f,this.ap=n.ap||s||(new ee).ap,this.Vm=n.Vm||c,this.pk=n.pk||a,this.yk=n.yk||h,this.Ak=void 0!==n.Ak?Boolean(n.Ak):l,this.bk=n.bk||v,this.Tk=null!=(w=n.Tk)?w:_,this.Sk=null!=(I=n.Sk)?I:d,this.Ek=null!=(E=n.Ek)?E:y},oe=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];I.apply(this,t)};(oe.prototype=g.create(I.prototype)).constructor=oe;var fe=function(n){function t(t,r){var i;return(i=n.call(this)||this).message=t||"Unknown error",i.cause=r,I.captureStackTrace&&I.captureStackTrace(i,i.constructor),i}return an(t,n),ln(t,[{key:"name",get:function(){return"BaseError"}}]),t}(oe),se=function(n){return n.Mk="HttpOpenError",n.Lk="HttpResponseError",n.Ok="HttpTimeoutError",n}({}),ce=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).Fk=t,e}return an(t,n),ln(t,[{key:"FS",get:function(){return this.Fk}}]),t}(fe);var ae=function(n){function t(t,r){return n.call(this,t,function(n){return"Error while opening "+n+". Invalid URL."}(t.qS),r)||this}return an(t,n),ln(t,[{key:"name",get:function(){return se.Mk}}]),t}(ce),he=function(){function n(){}var t=n.prototype;return t.FS=function(n){return nn.reject(new ae(new ue(n)))},t.Pk=function(n){},t.bn=function(){},n}(),le=function(n){function t(t){return n.call(this,"Invalid XML",t)||this}return an(t,n),t}(fe),ve=function(n){function t(){var t;return(t=n.apply(this,arguments)||this).VE=new Gi,t.TF=new he,t.i=new ji,t}return an(t,n),t.prototype.vE=function(n){throw new le},ln(t,[{key:"nm",get:function(){return this.VE}},{key:"HE",get:function(){return!1}},{key:"qE",get:function(){return!1}},{key:"QE",get:function(){return!1}},{key:"XE",get:function(){return!1}},{key:"KE",get:function(){return this.i}},{key:"jE",get:function(){return{YE:Cn}}},{key:"ZE",get:function(){return"default"}},{key:"JE",get:function(){return"unknown"}},{key:"td",get:function(){return this.TF}}]),t}(Wi);!function(n){n}(new ve);var _e=function(n){return n[n.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",n[n.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4",n}({}),de=function(n){return 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.PICTURE_IN_PICTURE_ERROR=11001]="PICTURE_IN_PICTURE_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",n}({}),ye=function(n){return 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",n}({});!function(n){n.fromCode=function(t){var r=R.floor(t/1e3);if(r in n)return r;throw new E("Invalid error code: "+t)}}(ye||(ye={}));var we=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).code=t,e}return an(t,n),ln(t,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return ye.fromCode(this.code)}}]),t}(fe);var Ie,Ee=function(){function n(n){this.encoding=n}var t=n.prototype;return t.encode=function(n){if(!n)return new T(0);for(var t=new T(n.length),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},t.encodeInto=function(n,t){for(var r=R.min(n.length,t.byteLength),i=0;i<r;i++)t[i]=n.charCodeAt(i);return{read:r,written:r}},n}(),ge=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 T(n):new T(n.buffer,n.byteOffset,n.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},n}();var Re=new Array(128).fill(void 0);function Oe(n){return Re[n]}Re.push(void 0,null,!0,!1);var Se=Re.length;function pe(n){var t=Oe(n);return function(n){n<132||(Re[n]=Se,Se=n)}(n),t}var Te=void 0!==ge?new ge("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:function(){throw I("TextDecoder not available")}};void 0!==ge&&Te.decode();var ke=null;function be(){return null!==ke&&ke.buffer===Ie.memory.buffer||(ke=new T(Ie.memory.buffer)),ke}function me(n,t){return n>>>=0,Te.decode(be().subarray(n,n+t))}function Ne(n){Se===Re.length&&Re.push(Re.length+1);var t=Se;return Se=Re[t],Re[t]=n,t}var Ae=0;function Ce(n,t){var r=t(1*n.length,1)>>>0;return be().set(n,r/1),Ae=n.length,r}var De=null;function Pe(){return null!==De&&De.buffer===Ie.memory.buffer||(De=new Int32Array(Ie.memory.buffer)),De}function Le(n){return null==n}function Fe(n,t){return n>>>=0,be().subarray(n/1,n/1+t)}function Ue(n){try{var t=Ie.__wbindgen_add_to_stack_pointer(-16);Ie.mpegts_to_fmp4(t,Ne(n));var r=Pe()[t/4+0],i=Pe()[t/4+1];if(Pe()[t/4+2])throw pe(i);return pe(r)}finally{Ie.__wbindgen_add_to_stack_pointer(16)}}function Me(n){try{var t=Ie.__wbindgen_add_to_stack_pointer(-16);Ie.raw_audio_to_fmp4(t,Ne(n));var r=Pe()[t/4+0],i=Pe()[t/4+1];if(Pe()[t/4+2])throw pe(i);return pe(r)}finally{Ie.__wbindgen_add_to_stack_pointer(16)}}var Ve=void 0!==Ee?new Ee("utf-8"):{encode:function(){throw I("TextEncoder not available")}},Be="function"==typeof Ve.encodeInto?function(n,t){return Ve.encodeInto(n,t)}:function(n,t){var r=Ve.encode(n);return t.set(r),{read:n.length,written:r.length}};function He(n,t){return We.apply(this,arguments)}function We(){return We=Zi((function(n,t){var r,i,e;return Ji(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]}}))})),We.apply(this,arguments)}function xe(){var n={wbg:{}};return n.wbg.__wbg_data_a6fcc7e5485ab253=function(n,t){var r=Ce(Oe(t).data,Ie.__wbindgen_export_0),i=Ae;Pe()[n/4+1]=i,Pe()[n/4+0]=r},n.wbg.__wbg_metadata_839ce0f7c4a90056=function(n){var t=Oe(n).metadata;return Le(t)?0:Ne(t)},n.wbg.__wbg_spsnal_f25ca767f4bfbb48=function(n,t){var r=Oe(t).sps_nal,i=Le(r)?0:Ce(r,Ie.__wbindgen_export_0),e=Ae;Pe()[n/4+1]=e,Pe()[n/4+0]=i},n.wbg.__wbg_ppsnal_c53839aaa7452802=function(n,t){var r=Oe(t).pps_nal,i=Le(r)?0:Ce(r,Ie.__wbindgen_export_0),e=Ae;Pe()[n/4+1]=e,Pe()[n/4+0]=i},n.wbg.__wbg_videopid_838bd140f4a2757b=function(n){var t=Oe(n).video_pid;return Le(t)?16777215:t},n.wbg.__wbg_audiopid_01a4aeec8221f2bc=function(n){var t=Oe(n).audio_pid;return Le(t)?16777215:t},n.wbg.__wbg_programmaptablepid_75098c49c54177b4=function(n){var t=Oe(n).program_map_table_pid;return Le(t)?16777215:t},n.wbg.__wbindgen_object_drop_ref=function(n){pe(n)},n.wbg.__wbg_createoutputdata_1f571c937b2e0b2d=function(n,t,r,i,e,u,o,f){var s,c,a,h;0!==n&&(s=Fe(n,t).slice(),Ie.__wbindgen_export_1(n,1*t,1)),0!==r&&(c=Fe(r,i).slice(),Ie.__wbindgen_export_1(r,1*i,1)),0!==e&&(a=Fe(e,u).slice(),Ie.__wbindgen_export_1(e,1*u,1)),0!==o&&(h=Fe(o,f).slice(),Ie.__wbindgen_export_1(o,1*f,1));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 Ne(l)},n.wbg.__wbg_createtimestampwithbase_b1a0f7c0ac4be87c=function(n,t,r){var i=function(n,t,r){return{low:n,high:t,base:r}}(n>>>0,t>>>0,r>>>0);return Ne(i)},n.wbg.__wbg_createoutputmetadata_d35eb256e9ffe01c=function(n,t,r,i,e,u,o,f,s,c,a,h,l,v,_,d){var y,w,I,E;0!==r&&(y=me(r,i).slice(),Ie.__wbindgen_export_1(r,1*i,1)),0!==e&&(w=me(e,u).slice(),Ie.__wbindgen_export_1(e,1*u,1)),0!==o&&(I=Fe(o,f).slice(),Ie.__wbindgen_export_1(o,1*f,1)),0!==s&&(E=Fe(s,c).slice(),Ie.__wbindgen_export_1(s,1*c,1));var g=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,y,w,I,E,pe(a),pe(h),pe(l),16777215===v?void 0:v,0===_?void 0:d);return Ne(g)},n.wbg.__wbg_createoutput_2a44a6b53fd68784=function(n,t){var r=function(n,t){return{data:n,metadata:t}}(pe(n),pe(t));return Ne(r)},n.wbg.__wbindgen_string_new=function(n,t){return Ne(me(n,t))},n.wbg.__wbg_new_abda76e883ba8a5f=function(){return Ne(new I)},n.wbg.__wbg_stack_658279fe44541cf6=function(n,t){var r=function(n,t,r){if(void 0===r){var i=Ve.encode(n),e=t(i.length,1)>>>0;return be().subarray(e,e+i.length).set(i),Ae=i.length,e}for(var u=n.length,o=t(u,1)>>>0,f=be(),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,1)>>>0;var a=be().subarray(o+s,o+u);s+=Be(n,a).written}return Ae=s,o}(Oe(t).stack,Ie.__wbindgen_export_0,Ie.__wbindgen_export_2),i=Ae;Pe()[n/4+1]=i,Pe()[n/4+0]=r},n.wbg.__wbg_error_f851667af71bcfc6=function(n,t){var r,i;try{r=n,i=t,console.error(me(n,t))}finally{Ie.__wbindgen_export_1(r,i,1)}},n}function Ge(n,t){return Ie=n.exports,je.__wbindgen_wasm_module=t,De=null,ke=null,Ie.__wbindgen_start(),Ie}function je(n){return Ke.apply(this,arguments)}function Ke(){return Ke=Zi((function(n){var t,r,i,e;return Ji(this,(function(u){switch(u.label){case 0:return void 0!==Ie?[2,Ie]:(void 0===n&&(n=new URL("theomux_bg.wasm",void 0)),t=xe(),("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n)),[4,n]);case 1:return[4,He.apply(void 0,[u.sent(),t])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,Ge(i,e)]}}))})),Ke.apply(this,arguments)}function qe(){return qe=Zi((function(n){var t,r;return Ji(this,(function(i){switch(i.label){case 0:return n instanceof WebAssembly.Module?t=n:(r="string"==typeof n?new URL(n):n,t="http:"===r.protocol||"https:"===r.protocol?fetch(r.href):function(n){return new nn((function(t,r){var i=new k;i.onload=function(){t(i.response||new ArrayBuffer(0))},i.onerror=function(){r(new E('Failed to fetch "'+n+'", status '+i.status))},i.open("GET",n,!0),i.responseType="arraybuffer",i.send()}))}(r.href)),[4,je(t)];case 1:return i.sent(),[2,{mpegts_to_fmp4:Ue,raw_audio_to_fmp4:Me}]}}))})),qe.apply(this,arguments)}var ze=new URL("./THEOplayer.transmux.wasm",l.href);!function(n){var t,r=nn.resolve(n()).then((function(n){t=n,r=void 0,self.postMessage({rOt:"8.13.2"})}),(function(n){var t=n,r={success:!1,error:t.message,errorCode:t instanceof we?t.code:de.MEDIA_DECODE_ERROR};self.postMessage(r)}));function i(){return(i=Zi((function(n){var i,e,u,o,f,s;return Ji(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===_e.MPEGTS_TO_FMP4)o=t.mpegts_to_fmp4(n.input);else{if(n.type!==_e.RAW_AUDIO_TO_FMP4)throw new I("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(mn).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 we?r.code:de.MEDIA_DECODE_ERROR};self.postMessage(i)}))}))}((function(){return function(n){return qe.apply(this,arguments)}(ze)}))}("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,e,u,o,f,s,c,a=n.window,h=n.document,l=n.location,v=n.navigator,_=n.setTimeout,d=n.clearTimeout,y=n.setInterval,w=n.clearInterval,I=n.Error,E=n.TypeError,g=(n.SyntaxError,n.Object),R=n.Math,O=n.parseInt,S=n.parseFloat,p=n.isNaN,T=n.Uint8Array,k=(n.Worker,n.WorkerGlobalScope,n.XMLHttpRequest);function b(n){return n&&void 0!==t&&n.constructor===t?"symbol":typeof n}"function"==typeof Symbol&&Symbol.iterator?(t=Symbol,r=null!=(o=Symbol.for)?o:Symbol,i=Symbol.iterator,e=null!=(f=Symbol.dispose)?f:r("Symbol.dispose"),u=null!=(s=Symbol.asyncDispose)?s:r("Symbol.asyncDispose")):(c=0,t=function(n){return"ul"+n+"_"+ ++c},i=(r=function(n){return"ul"+n})("Symbol.iterator"),e=r("Symbol.dispose"),u=r("Symbol.asyncDispose"),t.for=r,t.iterator=i,t.dispose=e,t.asyncDispose=u);var m=_;function N(n){return Boolean(n&&void 0!==n.length)}function A(){}function C(n){if(!(this instanceof C))throw new E("Promises must be constructed via new");if("function"!=typeof n)throw new E("not a function");this.Da=0,this.U5t=!1,this.Dyt=void 0,this.F5t=[],M(n,this)}function D(n,t){for(;3===n.Da;)n=n.Dyt;0!==n.Da?(n.U5t=!0,C.V5t((function(){var r=1===n.Da?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.Dyt)}catch(n){return void L(t.promise,n)}P(t.promise,i)}else(1===n.Da?P:L)(t.promise,n.Dyt)}))):n.F5t.push(t)}function P(n,t){try{if(t===n)throw new E("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":b(t))||"function"==typeof t)){var r=t.then;if(t instanceof C)return n.Da=3,n.Dyt=t,void F(n);if("function"==typeof r)return void M(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.Da=1,n.Dyt=t,F(n)}catch(t){L(n,t)}}function L(n,t){n.Da=2,n.Dyt=t,F(n)}function F(n){2===n.Da&&0===n.F5t.length&&C.V5t((function(){n.U5t||C.H5t(n.Dyt)}));for(var t=0,r=n.F5t.length;t<r;t++)D(n,n.F5t[t]);n.F5t=null}function U(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,P(t,n))}),(function(n){r||(r=!0,L(t,n))}))}catch(n){if(r)return;r=!0,L(t,n)}}C.prototype.catch=function(n){return this.then(null,n)},C.prototype.then=function(n,t){var r=new this.constructor(A);return D(this,new U(n,t,r)),r},C.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)}))}))},C.all=function(n){return new C((function(t,r){if(!N(n))return r(new E("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"===(void 0===o?"undefined":b(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])}))},C.allSettled=function(n){return new this((function(t,r){if(!n||void 0===n.length)return r(new E((void 0===n?"undefined":b(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"===(void 0===r?"undefined":b(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])}))},C.resolve=function(n){return n&&"object"===(void 0===n?"undefined":b(n))&&n.constructor===C?n:new C((function(t){t(n)}))},C.reject=function(n){return new C((function(t,r){r(n)}))},C.race=function(n){return new C((function(t,r){if(!N(n))return r(new E("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)C.resolve(n[i]).then(t,r)}))},C.V5t="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){m(n,0)},C.H5t=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};var V=function(){var n=self.Promise;if(void 0!==n)try{if(-1!==n.toString().indexOf("[native code]"))return n}catch(n){}}(),B=v?v.userAgent:"",H=B.match(/Firefox\/([0-9]+)/i),W=null!=H,x=H?Number(H[1]):0,G=B.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),j=null!=G,K=G?Number(G[3]):0,q=function(){function n(n){this.Xy=0,this.wd=0,this.Bw=[],this.X5t=n}return n.prototype.z5t=function(n){var t=this.length();this.W5t(t+1);var r=this.wd+t&this.X5t-1;this.Bw[r]=n,this.Xy=t+1},n.prototype.push=function(n){var t=this.length()+1;if(this.X5t<t)this.z5t(n);else{var r=this.wd+t-1,i=this.X5t-1;this.Bw[r&i]=n,this.Xy=t}},n.prototype.shift=function(){var n=this.wd,t=this.Bw[n];return this.Bw[n]=void 0,this.wd=n+1&this.X5t-1,this.Xy--,t},n.prototype.length=function(){return this.Xy},n.prototype.W5t=function(n){this.X5t<n&&this.q5t(this.X5t<<1)},n.prototype.q5t=function(n){var t=this.X5t;this.X5t=n;var r=this.wd+this.Xy&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.Bw,0,t,r)},n}();var z="unhandledrejection",X=self.PromiseRejectionEvent,Y=self.CustomEvent;function $(n){return new X(z,{reason:n,promise:V.reject(n).catch((function(){})),cancelable:!0})}function Z(n){var t=new Y(z,{detail:{reason:n},cancelable:!0});return g.defineProperty(t,"reason",{value:n}),t}function J(n){var t=h.createEvent("CustomEvent");return t.initCustomEvent(z,!1,!0,{reason:n}),t}var Q,nn,tn,rn,en,un,on,fn,sn=function(n){return sn=function(){try{var n=V.resolve(),t="error",r=new X(z,{reason:t,promise:n});return z===r.type&&t===r.reason}catch(n){}return!1}()?$:function(){try{var n="error",t=new Y(z,{detail:{reason:n}});return z===t.type&&n===t.detail.reason}catch(n){}return!1}()?Z:J,sn(n)};function cn(n,t){return cn=g.setPrototypeOf||function(n,t){return n.__proto__=t,n},cn(n,t)}function an(n,t){if("function"!=typeof t&&null!==t)throw new E("Super expression must either be null or a function");n.prototype=g.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&cn(n,t)}function hn(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),g.defineProperty(n,i.key,i)}}function ln(n,t,r){return t&&hn(n.prototype,t),r&&hn(n,r),n}V&&!(W&&x<60||j&&K<15)?nn=V:(nn=C,on=null!==(Q=function(){var n=self.queueMicrotask;if("function"==typeof n)return function(t){return n(t)};var t=V;if(t&&"function"==typeof t.resolve){var r=t.resolve();return function(n){return r.then(n)}}}())&&void 0!==Q?Q:C.V5t,tn=on,rn=new q(16),en=!1,(fn={W1:function(n){rn.push(n),en||(en=!0,tn(un))},$q:un=function(){for(;rn.length()>0;)rn.shift()();en=!1}}).$q,C.V5t=fn.W1,C.H5t=function(n){try{var t=sn(n);if(!self.dispatchEvent(t)||t.defaultPrevented)return}catch(n){}_((function(){throw new I("Unhandled promise rejection: ".concat(n))}),0)});var vn=function(n){return n.R_="web",n.x_="android",n.D_="android-tv",n.N_="ios",n.B_="tvos",n.M_="chromecast",n.L_="theoliveweb",n}({});var _n=v?v.userAgent:"",dn=_n.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),yn=_n.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),wn=_n.match(/Android ([0-9\.]+)/i),In=_n.match(/Windows NT ([0-9\.]+)/i),En=_n.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),gn=_n.match(/Firefox\/([0-9\.]+)/i),Rn=_n.match(/OPR\/(\d+\.\d+)/i),On=_n.match(/Tizen ([0-9\.]+)/i),Sn=_n.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),pn=_n.match(/HbbTV\/([0-9.]+)/i),Tn=function(){function n(){this.O_=Boolean("ontouchstart"in self||self.DocumentTouch&&h instanceof self.DocumentTouch||v&&v.msMaxTouchPoints),this.U_=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(_n)||/(macintosh|mac(?=_powerpc)\s)/i.test(_n),this.H_=/Windows NT/i.test(_n),this.q_=In?S(In[1]):0,this.X_=/Android/i.test(_n),this.Q_=wn?S(wn[1]):0,this.j_=/windows phone (8|8\.1)/i.test(_n),this.Z_=/iPhone/i.test(_n),this.tv=/iPad/i.test(_n),this.rv=this.U_&&this.O_&&!this.tv,this.ov=/iPod/i.test(_n),this.Av=/Mobile Safari/i.test(_n),this.mv=/EOS\d*STB/i.test(_n),this.pv=/APP\d*STB/i.test(_n),this.fv=(this.Z_||this.tv||this.rv||this.ov)&&!this.j_,this.vv=Sn?S(Sn[2]):0,this.bv=this.j_||this.fv||this.X_||this.Av,this.Sv=/CriOS/i.test(_n),this.Pv=Boolean(self.chrome&&/google/i.test(v.vendor))||this.Sv,this.Dv=this.Pv&&/Edg\//i.test(v.userAgent),this.Bv=yn?O(yn[1],10):0,this.Xg=Boolean(/CriOS/i.test(_n)),this.zg=Boolean(self.chrome||/Chrome/i.test(_n)||this.Xg),this.Rv=dn?O(dn[1],10):0,this.Ov=/SMART-TV.*Tizen/i.test(_n),this.Uv=On?S(On[1]):0,this.Cv=this.Uv>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.Uv):void 0,this.Hv=/webos|web0s/i.test(_n),this.qv=/HbbTV/i.test(_n),this.Xv=!!pn&&function(n){if(!n)return!1;var t=n.split(".").map(Number);return 3===t.length&&1===t[0]&&2===t[1]}(pn[1]),this.Qv=/VIZIO/i.test(_n),this.Yv=/Edge\/\d+/i.test(_n),this.Jv=/Trident/i.test(_n),this.eg=this.Jv&&!self.ActiveXObject&&"ActiveXObject"in self,this.hg=/Vivaldi/i.test(_n),this.ag=/Firefox/i.test(_n)&&!/Seamonkey/i.test(_n),this.dg=gn?S(gn[1]):0,this._g=/Safari/i.test(_n)&&!/Chrome/i.test(_n)&&!this.j_&&!this.Ov,this.gg=En?S(En[2]):0,this.pg=Boolean(Rn),this.Ag=Rn?S(Rn[1]):0,this.Sg=/CrKey/.test(_n),this.Pg=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(_n),this.Rg=/PlayStation 4/i.test(_n),this.Dg="web"===vn.D_,this.Bg="web"===vn.x_,this.Lg=this.Bg||this.Dg,this.Fg="web"===vn.N_,this.Vg="web"===vn.B_,this.Wg="web"===vn.M_}return ln(n,[{key:"Ye",get:function(){return this.O_}},{key:"F_",get:function(){return this.U_}},{key:"V_",get:function(){return this.H_}},{key:"W_",get:function(){return this.q_}},{key:"z_",get:function(){return this.X_}},{key:"G_",get:function(){return this.Q_}},{key:"K_",get:function(){return this.j_}},{key:"Y_",get:function(){return this.Z_}},{key:"J_",get:function(){return this.tv}},{key:"ev",get:function(){return this.rv}},{key:"hv",get:function(){return this.ov}},{key:"uv",get:function(){return this.fv}},{key:"_v",get:function(){return this.vv}},{key:"wv",get:function(){return this.mv||this.pv}},{key:"yv",get:function(){return this.Av}},{key:"Ks",get:function(){return this.bv}},{key:"Tv",get:function(){return this.Sv}},{key:"Ev",get:function(){return this.Pv}},{key:"Iv",get:function(){var n;return null!=(n=this.Cv)?n:this.Rv}},{key:"xv",get:function(){return this.Dv}},{key:"Nv",get:function(){var n;return(null==(n=a.chrome)?void 0:n.webview)&&this.Bv>0}},{key:"Mv",get:function(){return this.Bv}},{key:"Lv",get:function(){return this.Ov}},{key:"Fv",get:function(){return this.Uv}},{key:"Vv",get:function(){return this.Hv}},{key:"Wv",get:function(){return this.qv}},{key:"zv",get:function(){return this.Xv}},{key:"Gv",get:function(){return this.Qv}},{key:"Kv",get:function(){return this.Yv}},{key:"Zv",get:function(){return this.Jv}},{key:"$v",get:function(){return this.eg}},{key:"rg",get:function(){return this.hg}},{key:"og",get:function(){return this.ag}},{key:"cg",get:function(){return this.dg}},{key:"fg",get:function(){return this._g}},{key:"vg",get:function(){return this.gg}},{key:"wg",get:function(){return this.pg}},{key:"yg",get:function(){return this.Ag}},{key:"Tg",get:function(){return this.Sg}},{key:"Eg",get:function(){return this.Pg}},{key:"Ig",get:function(){return!(!this.Vv&&!this.Lv)&&this.Iv<=56}},{key:"Cg",get:function(){return this.Rg}},{key:"xg",get:function(){return this.Dg}},{key:"Ng",get:function(){return this.Bg}},{key:"Mg",get:function(){return this.Lg}},{key:"Og",get:function(){return this.Fg}},{key:"Ug",get:function(){return this.Vg}},{key:"Hg",get:function(){return this.Wg}},{key:"qg",get:function(){return this.zg}},{key:"IS_IOS_CHROME",get:function(){return this.Xg}}]),n}();Tn.Gg=new Tn;var kn=Tn.Gg,bn={}.toString;function mn(n){return null!=n}Array.isArray;function Nn(n){return"object"===(void 0===n?"undefined":b(n))&&null!==n}function An(n){return function(n){return"function"==typeof n}(n)||Nn(n)}var Cn=function(){};function Dn(n){var t;return function(){return void 0!==n&&(t=n(),n=void 0),t}}function Pn(){return void 0!==h?h.createElement("video"):void 0}var Ln=Dn(Pn),Fn=(Dn((function(){return"undefined"!=typeof HTMLVideoElement&&Ln()instanceof HTMLVideoElement})),null);try{Fn=new WebAssembly.Instance(new WebAssembly.Module(new T([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(tn){}function Un(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function Mn(n){return!0===(n&&n.Yg)}function Vn(n){var t=R.clz32(n&-n);return n?31-t:t}Un.prototype.Yg,g.defineProperty(Un.prototype,"Yg",{value:!0}),Un.isLong=Mn;var Bn={},Hn={};function Wn(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=Bn[n])?i:(r=Gn(n,n<0?-1:0,!1),e&&(Bn[n]=r),r)}function xn(n,t){if(p(n))return t?Jn:Zn;if(t){if(n<0)return Jn;if(n>=Xn)return it}else{if(n<=-Yn)return et;if(n+1>=Yn)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=Wn,Un.fromNumber=xn,Un.fromBits=Gn;var jn=R.pow;function Kn(n,t,r){if(0===n.length)throw I("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 I("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=R.min(8,n.length-o),s=O(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,Yn=Xn/2,$n=Wn(1<<24),Zn=Wn(0);Un.ZERO=Zn;var Jn=Wn(0,!0);Un.UZERO=Jn;var Qn=Wn(1);Un.ONE=Qn;var nt=Wn(1,!0);Un.UONE=nt;var tt=Wn(-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($n)&&n.lt($n))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 I("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=R.max(1,R.floor(r.toNumber()/n.toNumber()));for(var e=R.ceil(R.log(t)/R.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?R.clz32(this.high):R.clz32(this.low)+32},ut.clz=ut.countLeadingZeros,ut.countTrailingZeros=function(){return this.low?Vn(this.low):Vn(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;R.pow(2,-52);function ft(){return Date.now()||(new Date).getTime()}ot.fromNumber(9007199254740991);var st=!!("ontouchstart"in self||self.DocumentTouch&&h instanceof self.DocumentTouch)||!(!v||!v.msMaxTouchPoints),ct=Ln(),at=!(!ct||!ct.webkitShowPlaybackTargetPicker),ht=function(){function n(){this.Jg=void 0,this.Tw=!1,this.Ye=st,this.Ks=!1,this.Sw=!0}var t=n.prototype;return t.$g=function(){return 0},t.Aw=function(n,t){return!0},t.bw=function(n){return n>=.3333333333333333},ln(n,[{key:"Zg",get:function(){return void 0===this.Jg&&(this.Jg=this.$g()),this.Jg}},{key:"ew",get:function(){return!kn.Eg}},{key:"iw",get:function(){if(a.screen)return{width:a.screen.width,height:a.screen.height}}},{key:"nw",get:function(){return a.devicePixelRatio||1}},{key:"hw",get:function(){return at}},{key:"ow",get:function(){return!1}},{key:"aw",get:function(){return!0}},{key:"uw",get:function(){return!(!kn.fg&&!kn.uv)||!!kn.Gv}},{key:"cw",get:function(){return kn.Gv}},{key:"lw",get:function(){return!kn.uv}},{key:"dw",get:function(){return!0}},{key:"fw",get:function(){return!0}},{key:"_w",get:function(){return!1}},{key:"gw",get:function(){}},{key:"ww",get:function(){return!0}},{key:"mw",get:function(){return!1}},{key:"pw",get:function(){return kn.Gv}},{key:"yw",get:function(){return!1}}]),n}(),lt=function(n){function t(){return n.call(this)||this}return an(t,n),t}(ht),vt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.Aw=function(n,t){if(n&&n.Ew&&t&&t.Ew){var r=_t(n.Ew,"mp4a.40.2")&&_t(t.Ew,"mp4a.40.5"),i=_t(n.Ew,"mp4a.40.5")&&_t(t.Ew,"mp4a.40.2"),e=_t(n.Ew,"mp4a.40.2")&&_t(t.Ew,"mp4a.40.34"),u=_t(n.Ew,"mp4a.40.34")&&_t(t.Ew,"mp4a.40.2"),o=_t(n.Ew,"mp4a.40.5")&&_t(t.Ew,"mp4a.40.34"),f=_t(n.Ew,"mp4a.40.34")&&_t(t.Ew,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},ln(t,[{key:"gw",get:function(){if(kn.F_)return 4096}}]),t}(lt);function _t(n,t){return n.indexOf(t)>-1}var dt,yt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.bw=function(n){return n>=2},t}(lt),wt=function(n){function t(){var t;return(t=n.call(this)||this).Tw=kn.vg>=11,t.Sw=kn.fg&&!(kn.uv&&kn.vg<10),t}return an(t,n),ln(t,[{key:"yw",get:function(){return kn.vg<17}}]),t}(lt),It=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),ln(t,[{key:"ww",get:function(){return!kn.V_||(kn.xv?92!==kn.Mv:kn.Iv>=100)}}]),t}(lt);var Et=function(){var n=Pn();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(kn.ev)return!1;var n=Pn();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var gt=function(n){function t(t){var r;return(r=n.call(this)||this).Pw=t,r.Tw=r.Pw.Tw,r.Ye=r.Pw.Ye,r.Sw=Et&&r.Pw.Sw,r}an(t,n);var r=t.prototype;return r.$g=function(){return this.Pw.Zg},r.Aw=function(n,t){return this.Pw.Aw(n,t)},r.bw=function(n){return this.Pw.bw(n)},ln(t,[{key:"gw",get:function(){return this.Pw.gw}},{key:"ww",get:function(){return this.Pw.ww}},{key:"yw",get:function(){return this.Pw.yw}}]),t}(ht),Rt=function(n){function t(t){var r;return(r=n.call(this,t)||this).Tw=!0,r.Ks=!0,r}return an(t,n),ln(t,[{key:"_w",get:function(){return kn.uv}}]),t}(gt);var Ot=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.$g=function(){return function(n){return n&&An(a.ManagedMediaSource)?a.ManagedMediaSource:An(a.MediaSource)?a.MediaSource:void 0}(!0)?n.prototype.$g.call(this):1},ln(t,[{key:"_w",get:function(){return!0}}]),t}(Rt),St=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.Aw=function(t,r){return n.prototype.Aw.call(this,t,r)},ln(t,[{key:"ow",get:function(){return kn.Fv<3}},{key:"aw",get:function(){return kn.Fv>=3}},{key:"iw",get:function(){var n=this;return a.tizen&&!this.xw&&a.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.xw={width:r,height:i})})),this.xw}},{key:"mw",get:function(){return kn.Fv<3}}]),t}(gt),pt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),ln(t,[{key:"iw",get:function(){var n=this;return a.webOS&&!this.xw&&a.webOS.deviceInfo((function(t){n.xw={width:t.screenWidth,height:t.screenHeight}})),this.xw}},{key:"dw",get:function(){return!1}}]),t}(gt),Tt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),ln(t,[{key:"_w",get:function(){return!0}}]),t}(gt);function kt(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 bt(n,t){if(n){if("string"==typeof n)return kt(n,t);var r=g.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)?kt(n,t):void 0}}function mt(n){return function(n){if(Array.isArray(n))return kt(n)}(n)||function(n){if(void 0!==t&&null!=n[i]||null!=n["@@iterator"])return Array.from(n)}(n)||bt(n)||function(){throw new E("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}!function(n){dt=n}(function(){var n=function(){if(kn.og)return new vt;if(kn.Kv||kn.Zv)return new yt;if(kn.fg)return new wt;if(kn.Ev)return new It;return new lt}();return kn.uv?new Ot(n):kn.Ks?new Rt(n):kn.Lv?new St(n):kn.Vv?new pt(n):kn.F_?new Tt(n):new gt(n)}());var Nt=!(kn.Zv&&!kn.$v),At=self.console;function Ct(n){if(Nn(n))try{return JSON.stringify(n)}catch(n){}return n}function Dt(n){return n.map(Ct).join(" ")}function Pt(n){var t=At&&At[n];return t?t.bind&&Nt?t.bind(At):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];At[n](Dt(r))}:void 0}var Lt=Pt("log")||Cn,Ft=Pt("warn")||Lt.bind(void 0,"WARNING:"),Ut=Pt("error")||Lt.bind(void 0,"ERROR:"),Mt=function(){var n=At&&At.assert;return n?n.bind&&Nt?n.bind(At):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];At.assert(n,Dt(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||Ut.apply(void 0,["Assertion failed:"].concat(mt(r)))}}();function Vt(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),g.defineProperty(n,i.key,i)}}function Bt(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){Ht(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&Ht(r,null,n.length,n),n}function Ht(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 Wt=/[a-zA-Z]/,xt=/[0-9]/,Gt=/[0-9a-fA-F]/,jt=/^0x/i,Kt=/^[0-9]+$/,qt=/^[0-9a-fA-F]+$/,zt=/^[0-7]+$/,Xt=g.prototype.toString,Yt=Array.isArray||function(n){return"[object Array]"===Xt.call(n)},$t=void 0!==t&&"symbol"==typeof i;function Zt(n){return Yt(n)?n:Array.from(n)}function Jt(n,t,r){var i=n[t];n[t]=n[r],n[r]=i}function Qt(n){return n>=65&&n<=90}function nr(n){return Qt(n)||function(n){return n>=97&&n<=122}(n)}function tr(n){return n>=48&&n<=57}function rr(n){return tr(n)||nr(n)}function ir(n){return tr(n)||n>=65&&n<=70||n>=97&&n<=102}function er(n){return Qt(n)?n+32:n}function ur(n){return tr(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function or(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var fr=R.min,sr=String.fromCharCode,cr=16384;function ar(n){for(var t=n.length,r=[],i=0;i<t;i+=cr){var e=fr(i+cr,t);r.push(sr.apply(null,n.slice(i,e)))}return r.join("")}var hr=2147483647,lr=/[^\0-\x7E]/,vr=/[\x2E\u3002\uFF0E\uFF61]/g,_r={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},dr=R.floor,yr=String.fromCharCode;function wr(n){throw new RangeError(_r[n])}function Ir(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 Er,gr,Rr,Or=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},Sr=function(n,t,r){var i=0;for(n=r?dr(n/700):n>>1,n+=dr(n/t);n>455;i+=36)n=dr(n/35);return dr(i+36*n/(n+38))},pr=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(vr,".")).split("."),t).join(".");return i+e}(n,(function(n){return lr.test(n)?"xn--"+function(n){for(var t=[],r=(n=Ir(n)).length,i=128,e=0,u=72,o=0,f=n;o<f.length;o++){var s=f[o];s<128&&t.push(yr(s))}var c=t.length,a=c;for(c&&t.push("-");a<r;){for(var h=hr,l=0,v=n;l<v.length;l++){var _=v[l];_>=i&&_<h&&(h=_)}var d=a+1;h-i>dr((hr-e)/d)&&wr("overflow"),e+=(h-i)*d,i=h;for(var y=0,w=n;y<w.length;y++){var I=w[y];if(I<i&&++e>hr&&wr("overflow"),I==i){for(var E=e,g=36;;g+=36){var R=g<=u?1:g>=u+26?26:g-u;if(E<R)break;var O=E-R,S=36-R;t.push(yr(Or(R+O%S,0))),E=dr(O/S)}t.push(yr(Or(E,0))),u=Sr(e,d,a==c),e=0,++a}}++e,++i}return t.join("")}(n):n}))};function Tr(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 ar(t)}function kr(n){if(n>=55296&&n<=57343)throw new I("Lone surrogate U+"+n.toString(16).toUpperCase()+" is not a scalar value")}function br(n,t){return n>>t&63|128}function mr(n,t){0!=(4294967168&n)?(0==(4294965248&n)?t.push(n>>6&31|192):0==(4294901760&n)?(kr(n),t.push(n>>12&15|224),t.push(br(n,6))):0==(4292870144&n)&&(t.push(n>>18&7|240),t.push(br(n,12)),t.push(br(n,6))),t.push(63&n|128)):t.push(n)}function Nr(n){for(var t=[],r=0;r<n.length;r++){mr(n[r],t)}return t}function Ar(){if(Rr>=gr)throw new I("Invalid byte index");var n=255&Er[Rr];if(Rr++,128==(192&n))return 63&n;throw new I("Invalid continuation byte")}function Cr(){var n,t;if(Rr>gr)throw new I("Invalid byte index");if(Rr===gr)return!1;if(n=255&Er[Rr],Rr++,0==(128&n))return n;if(192==(224&n)){if((t=(31&n)<<6|Ar())>=128)return t;throw new I("Invalid continuation byte")}if(224==(240&n)){if((t=(15&n)<<12|Ar()<<6|Ar())>=2048)return kr(t),t;throw new I("Invalid continuation byte")}if(240==(248&n)&&(t=(7&n)<<18|Ar()<<12|Ar()<<6|Ar())>=65536&&t<=1114111)return t;throw new I("Invalid UTF-8 detected")}function Dr(n){return[37,or(n>>4),or(15&n)]}function Pr(n){return function(n){return n>=0&&n<=31}(n)||n>126}function Lr(n){return Pr(n)||32===n||34===n||60===n||62===n||96===n}function Fr(n){return Lr(n)||35===n||63===n||123===n||125===n}function Ur(n){return Fr(n)||47===n||58===n||59===n||61===n||64===n||n>=91&&n<=94||124===n}function Mr(n){return n<33||n>126||34===n||35===n||60===n||62===n}function Vr(n){return Mr(n)||39===n}function Br(n,t){if(!t(n))return[n];for(var r=Nr([n]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,Dr(u))}return i}function Hr(n,t){for(var r=[],i=0,e=Ir(n);i<e.length;i++){var u=e[i];r.push.apply(r,Br(u,t))}return Tr(r)}function Wr(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&&ir(n[i+1])&&ir(n[i+2])){var u=ur(n[i+1])<<4|ur(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(Nr(n))}function xr(n){return Tr(function(n){Er=n.slice(),gr=Er.length,Rr=0;for(var t,r=[];!1!==(t=Cr());)r.push(t);return r}(Wr(Ir(n))))}function Gr(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 E;u+=2,e=i+=1}for(;u<t;){if(8===i)throw new E("Too many groups");if(":"!==n[u]){for(var o=0,f=0;f<4&&u<t&&Gt.test(n[u]);)o=o<<4|O(n[u],16),u+=1,f+=1;if("."===n[u]){if(0===f)throw new E;if(u-=f,i>6)throw new E;for(var s=0;u<t;){var c=null;if(s>0){if(!("."===n[u]&&s<4))throw new E;u+=1}if(!xt.test(n[u]))throw new E;for(;u<t&&xt.test(n[u]);){var a=O(n[u],10);if(null===c)c=a;else{if(0===c)throw new E;if((c=10*c+a)>255)throw new E}u+=1}r[i]=r[i]<<8|c,2!==(s+=1)&&4!==s||(i+=1)}if(4!==s)throw new E;break}if(":"===n[u]){if((u+=1)===t)throw new E}else if(u<t)throw new E;r[i]=o,i+=1}else{if(null!==e)throw new E("Too many :: groups");u+=1,e=i+=1}}if(null!==e){var h=i-e;for(i=7;0!==i&&h>0;)Jt(r,i,e+h-1),i-=1,h-=1}else if(8!==i)throw new E;return r}function jr(n){var t=10,r=Kt;return jt.test(n)?(n=n.slice(2),t=16,r=qt):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=zt),""===n?0:r.test(n)?O(n,t):void 0}var Kr={Dw:4},qr=/[\0\t\n\r #%/:?@\[\\\]]/,zr=/[\0\t\n\r #/:?@\[\\\]]/;function Xr(n,t){if("["===n[0]){if("]"!==n[n.length-1])throw new E("Invalid IPv6 address");return{Dw:2,Nw:Gr(n.slice(1,-1))}}if(!t)return function(n){if(zr.test(n))throw new E("Invalid code point in opaque host");var t=Hr(n,Pr);return""===t?Kr:{Dw:3,Bw:t}}(n);var r=function(n){var t=function(n){return pr(n.toLowerCase())}(n);return t}(xr(n));if(qr.test(r))throw new E("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=jr(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new E;if(r[r.length-1]>=R.pow(256,5-r.length))throw new E;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*R.pow(256,3-s);return f}}(r);return void 0!==i?{Dw:1,Nw:i}:""===r?Kr:{Dw:0,Mw:r}}function Yr(n){switch(n.Dw){case 0:return n.Mw;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.Nw);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.Nw)+"]";case 3:return n.Bw;case 4:return""}}var $r=/\+/g;function Zr(n){return 42===n||45===n||46===n||95===n||rr(n)}function Jr(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($r," "),f=f.replace($r," ");var s=xr(o),c=xr(f);r.push([s,c])}}return r}function Qr(n){for(var t="",r=0;r<n.length;r++){var i=n[r];r>0&&(t+="&"),t+=ni(Nr(Ir(i[0])))+"="+ni(Nr(Ir(i[1])))}return t}function ni(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];32===i?t.push(43):Zr(i)?t.push(i):t.push.apply(t,Dr(i))}return ar(t)}var ti=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function ri(n){var t=""+n,r=ti.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(ei(u))if(ui(u)||e===r-1)i.push(ii);else{var o=n.charCodeAt(e+1);ui(o)?(i.push(u,o),e++):i.push(ii)}else i.push(u)}return n.slice(0,t)+ar(i)}(t,r.index):t}var ii=65533,ei=function(n){return 55296==(63488&n)},ui=function(n){return 0!=(1024&n)};function oi(n,t){var r=n[0],i=t[0];return r===i?0:r<i?-1:1}function fi(n){n.Lw.length=0}function si(n,t){!function(n,t){for(var r=0;r<t.length;r++)n[r]=t[r];n.length=t.length}(n.Lw,Jr(t))}function ci(n){if(n.Ow){var t=Qr(n.Lw);""===t&&(t=null),n.Ow.Ow.Fw=t}}var ai=function(){function n(n){if(void 0===n&&(n=void 0),this.Ow=null,null==n)this.Lw=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof ai&&!!Yt(n.Lw)&&(!$t||n[i]===hi)}(n))this.Lw=n.Lw.slice();else if(function(n){return null!=n&&(!!Yt(n)||!!$t&&"function"==typeof n[i])}(n)){this.Lw=[];for(var t=0,r=Zt(n);t<r.length;t++){var e=Zt(r[t]);if(2!==e.length)throw new E("Invalid name-value pair");this.Lw.push([ri(e[0]),ri(e[1])])}}else for(var u in this.Lw=[],n)g.prototype.hasOwnProperty.call(n,u)&&this.Lw.push([ri(u),ri(n[u])]);else(n=ri(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.Lw=Jr(n)}var t=n.prototype;return t.append=function(n,t){n=ri(n),t=ri(t),this.Lw.push([n,t]),ci(this)},t.delete=function(n){n=ri(n);for(var t=this.Lw,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}ci(this)},t.get=function(n){n=ri(n);for(var t=this.Lw,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},t.getAll=function(n){n=ri(n);for(var t=this.Lw,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=ri(n);for(var t=this.Lw,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},t.set=function(n,t){n=ri(n),t=ri(t);for(var r=this.Lw,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]),ci(this)},t.sort=function(){Bt(this.Lw,oi),ci(this)},t.toString=function(){return Qr(this.Lw)},t.entries=function(){return new di(this.Lw,li)},t.keys=function(){return new di(this.Lw,vi)},t.values=function(){return new di(this.Lw,_i)},t.forEach=function(n){var t=this;this.Lw.forEach((function(r){return n(r[1],r[0],t)}))},n}(),hi=ai.prototype.entries;$t&&(ai.prototype[i]=hi);var li=function(n){return[n[0],n[1]]},vi=function(n){return n[0]},_i=function(n){return n[1]},di=function(){function n(n,t){this.Uw=0,this.Lw=n,this.Vw=t}return n.prototype.next=function(){return this.Uw<this.Lw.length?{done:!1,value:this.Vw(this.Lw[this.Uw++])}:{done:!0,value:void 0}},n}(),yi="null";var wi=g.create(null);wi.ftp=21,wi.file=0,wi.gopher=70,wi.http=80,wi.https=443,wi.ws=80,wi.wss=443;var Ii=/^(?:\.|%2e)$/i,Ei=/^(?:\.|%2e){2}$/i;function gi(n){return Ii.test(n)}function Ri(n){return Ei.test(n)}function Oi(n){return void 0!==wi[n]}function Si(n){return Oi(n.Hw)}function pi(n){return""!==n.Ww||""!==n.qw}function Ti(n){var t=n.length;if(!(t>=2))return!1;if(!bi(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 ki(n){return 2===n.length&&Wt.test(n[0])&&(":"===n[1]||"|"===n[1])}function bi(n){return 2===n.length&&ki(ar(n))}function mi(n){return ki(n)&&":"===n[1]}function Ni(n){var t=n.zw;0!==t.length&&("file"===n.Hw&&1===t.length&&mi(t[0])||t.pop())}function Ai(n){return null===n.Xw||Kr===n.Xw||n.Gw||"file"===n.Hw}var Ci=-1,Di=/\t|\n|\r/g,Pi=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function Li(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new Ui,n=n.replace(Pi,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=Ir(n=n.replace(Di,"")),a=c.length,h=0;h<=a;){var l=h<a?c[h]:Ci;switch(e){case 0:if(!nr(l)){if(null===i){u.length=0,e=2;continue}throw new E("Invalid scheme")}u.push(er(l)),e=1;break;case 1:if(rr(l)||43===l||45===l||46===l)u.push(er(l));else{if(58!==l){if(null===i){u.length=0,e=2,h=0;continue}throw new E("Invalid scheme")}var v=Tr(u);if(null!==i){if(Oi(r.Hw)&&!Oi(v))return;if(!Oi(r.Hw)&&Oi(v))return;if((pi(r)||null!==r.Qw)&&"file"===v)return;if("file"===r.Hw&&(r.Xw===Kr||null===r.Xw))return}if(r.Hw=v,null!==i)return void(Si(r)&&r.Qw===wi[r.Hw]&&(r.Qw=null));u.length=0,"file"===r.Hw?e=13:Si(r)&&t&&t.Hw===r.Hw?e=3:Si(r)?e=7:47===c[h+1]?(e=4,h+=1):(r.Gw=!0,r.zw.push(""),e=18)}break;case 2:if(!t||t.Gw&&35!==l)throw new E("Invalid scheme");t.Gw&&35===l?(r.Hw=t.Hw,r.zw=t.zw.slice(),r.Fw=t.Fw,r.Kw="",r.Gw=!0,e=20):"file"!==t.Hw?(e=5,h-=1):(e=13,h-=1);break;case 3:47===l&&47===c[h+1]?e=8:(e=5,h-=1);break;case 4:47===l?e=9:(e=17,h-=1);break;case 5:r.Hw=t.Hw,Ci===l?(r.Ww=t.Ww,r.qw=t.qw,r.Xw=t.Xw,r.Qw=t.Qw,r.zw=t.zw.slice(),r.Fw=t.Fw):47===l?e=6:63===l?(r.Ww=t.Ww,r.qw=t.qw,r.Xw=t.Xw,r.Qw=t.Qw,r.zw=t.zw.slice(),r.Fw="",e=19):35===l?(r.Ww=t.Ww,r.qw=t.qw,r.Xw=t.Xw,r.Qw=t.Qw,r.zw=t.zw.slice(),r.Fw=t.Fw,r.Kw="",e=20):92===l&&Si(r)?e=6:(r.Ww=t.Ww,r.qw=t.qw,r.Xw=t.Xw,r.Qw=t.Qw,r.zw=t.zw.slice(),r.zw.pop(),e=17,h-=1);break;case 6:!Si(r)||47!==l&&92!==l?47===l?e=9:(r.Ww=t.Ww,r.qw=t.qw,r.Xw=t.Xw,r.Qw=t.Qw,e=17,h-=1):e=8;break;case 7:if(47!==l||47!==c[h+1]){e=8;continue}e=8,h+=1;break;case 8:47!==l&&92!==l&&(e=9,h-=1);break;case 9:if(64===l){o&&u.unshift(37,52,48),o=!0;for(var _=0;_<u.length;_++){var d=u[_];if(58!==d||s){var y=Tr(Br(d,Ur));s?r.qw+=y:r.Ww+=y}else s=!0}u.length=0}else if(Ci===l||47===l||63===l||35===l||Si(r)&&92===l){if(o&&0===u.length)throw new E("Invalid host");h-=u.length+1,u.length=0,e=10}else u.push(l);break;case 10:case 11:if(null!==i&&"file"===r.Hw)h-=1,e=15;else if(58!==l||f)if(Ci===l||47===l||63===l||35===l||Si(r)&&92===l){if(h-=1,Si(r)&&0===u.length)throw new E("Invalid host");if(null!==i&&0===u.length&&(pi(r)||null!==r.Qw))return;var w=Xr(Tr(u),Si(r));if(r.Xw=w,u.length=0,e=16,null!==i)return}else 91===l?f=!0:93===l&&(f=!1),u.push(l);else{if(0===u.length)throw new E("Invalid host");var I=Xr(Tr(u),Si(r));if(r.Xw=I,u.length=0,e=12,11===i)return}break;case 12:if(tr(l))u.push(l);else{if(!(Ci===l||47===l||63===l||35===l||Si(r)&&92===l||null!==i))throw new E("Invalid port");if(0!==u.length){var g=O(Tr(u),10);if(g>65535)throw new E("Invalid port");r.Qw=g===wi[r.Hw]?null:g,u.length=0}if(null!==i)return;e=16,h-=1}break;case 13:r.Hw="file",47===l||92===l?e=14:t&&"file"===t.Hw?Ci===l?(r.Xw=t.Xw,r.zw=t.zw.slice(),r.Fw=t.Fw):63===l?(r.Xw=t.Xw,r.zw=t.zw.slice(),r.Fw="",e=19):35===l?(r.Xw=t.Xw,r.zw=t.zw.slice(),r.Fw=t.Fw,r.Kw="",e=20):(Ti(c.slice(h))||(r.Xw=t.Xw,r.zw=t.zw.slice(),Ni(r)),e=17,h-=1):(e=17,h-=1);break;case 14:47===l||92===l?e=15:(t&&"file"===t.Hw&&!Ti(c.slice(h))&&(mi(t.zw[0])?r.zw.push(t.zw[0]):r.Xw=t.Xw),e=17,h-=1);break;case 15:if(Ci===l||47===l||92===l||63===l||35===l)if(h-=1,null===i&&bi(u))e=17;else if(0===u.length){if(r.Xw=Kr,null!==i)return;e=16}else{var R=Xr(Tr(u),Si(r));if(0===R.Dw&&"localhost"===R.Mw&&(R=Kr),r.Xw=R,null!==i)return;u.length=0,e=16}else u.push(l);break;case 16:Si(r)?(e=17,47!==l&&92!==l&&(h-=1)):null===i&&63===l?(r.Fw="",e=19):null===i&&35===l?(r.Kw="",e=20):Ci!==l&&(e=17,47!==l&&(h-=1));break;case 17:if(Ci===l||47===l||Si(r)&&92===l||null===i&&(63===l||35===l)){var S=Tr(u);if(Ri(S)?(Ni(r),47===l||Si(r)&&92===l||r.zw.push("")):!gi(S)||47===l||Si(r)&&92===l?gi(S)||("file"===r.Hw&&0===r.zw.length&&bi(u)&&(Kr!==r.Xw&&null!==r.Xw&&(r.Xw=Kr),u[1]=58,S=Tr(u)),r.zw.push(S)):r.zw.push(""),u.length=0,"file"===r.Hw&&(Ci===l||63===l||35===l))for(;r.zw.length>1&&""===r.zw[0];)r.zw.shift();63===l?(r.Fw="",e=19):35===l&&(r.Kw="",e=20)}else u.push.apply(u,Br(l,Fr));break;case 18:63===l?(r.Fw="",e=19):35===l?(r.Kw="",e=20):Ci!==l&&(r.zw[0]+=Tr(Br(l,Pr)));break;case 19:null===i&&35===l?(r.Kw="",e=20):Ci!==l&&(r.Fw+=Tr(Br(l,Si(r)?Vr:Mr)));break;case 20:Ci===l||0===l||(r.Kw+=Tr(Br(l,Lr)))}h++}return r}function Fi(n,t,r,i){try{Li(n,t,r,i)}catch(n){}}var Ui=function(){this.Hw="",this.Ww="",this.qw="",this.Xw=null,this.Qw=null,this.zw=[],this.Fw=null,this.Kw=null,this.Gw=!1};function Mi(n){switch(n.Hw){case"blob":var t;try{t=Li(n.zw[0],null)}catch(n){return yi}return Mi(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(n,t,r){return n+"://"+Yr(t)+(null===r?"":":"+r)}(n.Hw,n.Xw,n.Qw);default:return yi}}var Vi=function(){function n(n,t){var r,i=null;if(null!=t)if(function(n){return null!=n&&n instanceof Vi&&"object"==typeof n.Ow}(t))i=t.Ow;else try{i=Li(String(t),null)}catch(n){throw new E("Invalid base URL: "+n.message)}try{r=Li(String(n),i)}catch(n){throw new E("Invalid URL: "+n.message)}var e=r.Fw;this.Ow=r,this.Fw=function(n){var t=new ai;return null!==n&&si(t,n),t}(e),this.Fw.Ow=this}var t=n.prototype;return t.toString=function(){return this.href},t.toJSON=function(){return this.href},function(n,t,r){t&&Vt(n.prototype,t),r&&Vt(n,r)}(n,[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.Hw+":";if(null!==n.Xw?(r+="//",pi(n)&&(r+=n.Ww,""!==n.qw&&(r+=":"+n.qw),r+="@"),r+=Yr(n.Xw),null!==n.Qw&&(r+=":"+n.Qw)):null===n.Xw&&"file"===n.Hw&&(r+="//"),n.Gw)r+=n.zw[0];else for(var i=0,e=n.zw;i<e.length;i++)r+="/"+e[i];return null!==n.Fw&&(r+="?"+n.Fw),t||null===n.Kw||(r+="#"+n.Kw),r}(this.Ow)},set:function(n){var t;try{t=Li(String(n),null)}catch(n){throw new E("Invalid URL: "+n.message)}this.Ow=t,fi(this.Fw);var r=this.Ow.Fw;null!==r&&si(this.Fw,r)}},{key:"origin",get:function(){return Mi(this.Ow)}},{key:"protocol",get:function(){return this.Ow.Hw+":"},set:function(n){Fi(n+":",null,this.Ow,0)}},{key:"username",get:function(){return this.Ow.Ww},set:function(n){Ai(this.Ow)||(this.Ow.Ww=Hr(n,Ur))}},{key:"password",get:function(){return this.Ow.qw},set:function(n){Ai(this.Ow)||(this.Ow.qw=Hr(n,Ur))}},{key:"host",get:function(){var n=this.Ow,t=n.Xw;if(null===t)return"";var r=n.Qw,i=Yr(t);return null!==r&&(i+=":"+r),i},set:function(n){this.Ow.Gw||Fi(n,null,this.Ow,10)}},{key:"hostname",get:function(){var n=this.Ow.Xw;return null===n?"":Yr(n)},set:function(n){this.Ow.Gw||Fi(n,null,this.Ow,11)}},{key:"port",get:function(){var n=this.Ow.Qw;return null===n?"":""+n},set:function(n){Ai(this.Ow)||(""===n?this.Ow.Qw=null:Fi(n,null,this.Ow,12))}},{key:"pathname",get:function(){var n=this.Ow.zw;return this.Ow.Gw?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.Ow.Gw||(this.Ow.zw.length=0,Fi(n,null,this.Ow,16))}},{key:"search",get:function(){var n=this.Ow.Fw;return null===n||""===n?"":"?"+n},set:function(n){n=ri(n);var t=this.Ow;if(""===n)return t.Fw=null,void fi(this.Fw);"?"===n[0]&&(n=n.slice(1)),t.Fw="",Fi(n,null,t,19),si(this.Fw,n)}},{key:"searchParams",get:function(){return this.Fw}},{key:"hash",get:function(){var n=this.Ow.Kw;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.Ow.Kw="",Fi(n,null,this.Ow,20)):this.Ow.Kw=null}}]),n}();function Bi(n){return n.document&&n.document.baseURI||n.location.href||""}var Hi=function(){function n(){this.gm=new Wi,this.ym=dt,this.pm=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.Qg=function(){return self.performance.now()}:this.Qg=ft}var t=n.prototype;return t.jw=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Lt.apply(void 0,mt(t))},t.Yw=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Ft.apply(void 0,mt(t))},t.Zw=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Ut.apply(void 0,mt(t))},t.Jw=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];Mt.apply(void 0,[n].concat(mt(r)))},t.jg=function(n,t){return _(n,t)},t.$w=function(n,t){return y(n,t)},t.Kg=function(n){d(n)},t.tm=function(n){w(n)},t.im=function(){return this.nm.im()},t.hm=function(){return this.nm.hm()},t.um=function(){return this.nm.um()},t.lm=function(){return this.nm.lm()},t.dm=function(){return this.nm.dm()},t.fm=function(n,t){return this.nm.fm(n,t)},t._m=function(n){return this.nm._m(n)},t.Ih=function(n,t){var r;return void 0===t&&(t=Bi(a)),r="object"!==(void 0===t?"undefined":b(t))||t instanceof Vi?t:t.href,new Vi(n,r)},t.wm=function(n,t){if(void 0===t&&(t=Bi(a)),this.pm){var r=function(n){return"string"==typeof n}(t)?t:t.toString();return new self.URL(n,r).href}return this.Ih(n,t).href},ln(n,[{key:"vm",get:function(){return this.gm}},{key:"Zs",get:function(){return this.ym}},{key:"Am",get:function(){return{Tm:v&&v.userAgent.match(/Android /i)?"Android":"other",Sm:Boolean(v&&v.userAgent.match(/Android 8.0.0/i))}}},{key:"Em",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"Pm",get:function(){return"languages"in v?v.languages.slice():[v.language]}}]),n}(),Wi=function(){function n(){}return ln(n,[{key:"Im",get:function(){return v.oscpu}},{key:"Zs",get:function(){return v.platform}},{key:"Cm",get:function(){return v.vendor}},{key:"Rm",get:function(){return v.vendorSub}}]),n}();var xi=function(){function n(){}var t=n.prototype;return t.dm=function(){return nn.resolve(!1)},t.hm=function(){return nn.resolve(!1)},t.lm=function(){return nn.resolve(!1)},t.um=function(){return nn.resolve(!1)},t._m=function(n){return nn.resolve(!1)},t.fm=function(n,t){return nn.resolve(!1)},t.im=function(){return nn.resolve(!1)},n}(),Gi=function(){function n(){}var t=n.prototype;return t.hS=function(){},t.By=function(n){},t.xy=function(n){},t.Dy=function(n,t){},n}(),ji=function(n){return n.aS="arraybuffer",n.uS="json",n.cS="stream",n.lS="text",n}({});function Ki(n,r){return function(n){if(Array.isArray(n))return n}(n)||function(n,r){var e=null==n?null:void 0!==t&&n[i]||n["@@iterator"];if(null!=e){var u,o,f=[],s=!0,c=!1;try{for(e=e.call(n);!(s=(u=e.next()).done)&&(f.push(u.value),!r||f.length!==r);s=!0);}catch(n){c=!0,o=n}finally{try{s||null==e.return||e.return()}finally{if(c)throw o}}return f}}(n,r)||bt(n,r)||function(){throw new E("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var qi=function(){function n(t){var r=this;this.Bm={},t instanceof n?t.asList().forEach((function(n){var t=Ki(n,2),i=t[0],e=t[1];r.append(i,e)})):Array.isArray(t)?t.forEach((function(n){var t=Ki(n,2),i=t[0],e=t[1];r.append(i,e)})):t&&g.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=zi(r),i=Xi(i);var e=r.toLowerCase();if(this.Bm.hasOwnProperty(e)){var u=this.Bm[e],o=u[1];u[1]=o?o+", "+i:i}else this.Bm[e]=[r,i]},t.delete=function(n){var t=zi(n).toLowerCase();delete this.Bm[t]},t.get=function(n){var t=zi(n).toLowerCase();return this.Bm.hasOwnProperty(t)?this.Bm[t][1]:null},t.has=function(n){var t=zi(n).toLowerCase();return this.Bm.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=zi(r)).toLowerCase();this.Bm[i]=[r,Xi(t)]},t.forEach=function(n,t){for(var r in this.Bm)this.Bm.hasOwnProperty(r)&&n.call(t,this.Bm[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.Bm)if(this.Bm.hasOwnProperty(t)){var r=Ki(this.Bm[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.dS=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.fS=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t._S=function(n){var t=this;n.forEach((function(n,r){t.set(r,n)}))},n}();function zi(n){var t=n;if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new E("Invalid character in header field name");return t}function Xi(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}function Yi(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):nn.resolve(s).then(i,e)}function $i(n){return function(){var t=this,r=arguments;return new nn((function(i,e){var u=n.apply(t,r);function o(n){Yi(u,i,e,o,f,"next",n)}function f(n){Yi(u,i,e,o,f,"throw",n)}o(void 0)}))}}function Zi(n,r){var e,u,o,f={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=g.create(("function"==typeof Iterator?Iterator:g).prototype);return s.next=c(0),s.throw=c(1),s.return=c(2),"function"==typeof t&&(s[i]=function(){return this}),s;function c(t){return function(i){return function(t){if(e)throw new E("Generator is already executing.");for(;s&&(s=0,t[0]&&(f=0)),f;)try{if(e=1,u&&(o=2&t[0]?u.return:t[0]?u.throw||((o=u.return)&&o.call(u),0):u.next)&&!(o=o.call(u,t[1])).done)return o;switch(u=0,o&&(t=[2&t[0],o.value]),t[0]){case 0:case 1:o=t;break;case 4:return f.label++,{value:t[1],done:!1};case 5:f.label++,u=t[1],t=[0];continue;case 7:t=f.ops.pop(),f.trys.pop();continue;default:if(!(o=f.trys,(o=o.length>0&&o[o.length-1])||6!==t[0]&&2!==t[0])){f=0;continue}if(3===t[0]&&(!o||t[1]>o[0]&&t[1]<o[3])){f.label=t[1];break}if(6===t[0]&&f.label<o[1]){f.label=o[1],o=t;break}if(o&&f.label<o[2]){f.label=o[2],f.ops.push(t);break}o[2]&&f.ops.pop(),f.trys.pop();continue}t=r.call(n,f)}catch(n){t=[6,n],u=0}finally{e=o=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,i])}}}Array.prototype.find,Array.prototype.findLast;var Ji="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},Qi="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 ne(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 te(n){n.length=0}Array.prototype.flat,Array.prototype.flatMap;var re=function(){function n(){this.$m=!1,this.sp=!1,this.np=[],this.rp=[]}var t=n.prototype;return t.ip=function(){if(!this.$m&&!this.sp){this.$m=!0;for(var n=0,t=this.np.slice();n<t.length;n++){(0,t[n])()}this.Wu()}},t.Wu=function(){if(!this.sp){this.sp=!0;for(var n=0,t=this.rp.slice();n<t.length;n++){(0,t[n])()}te(this.np),te(this.rp)}},t.ep=function(n){this.sp||this.np.push(n)},t.tp=function(n){this.sp||ne(this.np,n)},t.hp=function(n){this.sp||this.rp.push(n)},t.op=function(n){this.sp||ne(this.rp,n)},n}(),ie=function(){function n(){this.cp=new re}var t=n.prototype;return t.tf=function(){this.cp.ip()},t.Wu=function(){this.cp.Wu()},t.lp=function(n){var t=this.cp;if(!t.$m)if(n.$m)t.ip();else if(!t.sp&&!n.sp){var r=function(){i(),t.ip()},i=function(){n.tp(r),n.op(i),t.tp(r),t.op(i)};n.ep(r),n.hp(i),t.ep(r),t.hp(i)}},t.dp=function(){var t=new n,r=new n,i=t.ap,e=r.ap,u=this.cp,o=function(){i.$m&&e.sp||e.$m&&i.sp?u.ip():i.sp&&e.sp&&u.Wu()};i.ep(o),e.ep(o),i.hp(o),e.hp(o),t.lp(u),r.lp(u);return u.hp((function(){i.tp(o),e.tp(o),i.op(o),e.op(o)})),[t,r]},t[e]=function(){this.tf()},n.fp=function(t){for(var r=new n,i=0;i<t.length;i++){var e=t[i];void 0!==e&&r.lp(e)}return r},ln(n,[{key:"ap",get:function(){return this.cp}}]),n}(),ee=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_,d,y,w,I,E,g=n.qS;t?(r=t.AS,i=t.US,e=t.vk,u=t.OS,o=t.gk,f=t.wk,s=t.ap,c=t.Vm,a=t.pk,h=t.yk,l=t.Ak,v=t.bk,_=t.Tk,d=t.Sk,y=t.Ek):(r=null,i={},e="GET",u=ji.lS,o=0,f=0,c="",a="",h="",l=!1,_=void 0,d=!1,y=void 0),this.qS=g,this.AS=n.AS||r,this.US=new qi(n.US||i),this.vk=n.vk||e,this.OS=n.OS||u,this.gk=void 0!==n.gk?Number(n.gk)||0:o,this.wk=void 0!==n.wk?Number(n.wk)||0:f,this.ap=n.ap||s||(new ie).ap,this.Vm=n.Vm||c,this.pk=n.pk||a,this.yk=n.yk||h,this.Ak=void 0!==n.Ak?Boolean(n.Ak):l,this.bk=n.bk||v,this.Tk=null!=(w=n.Tk)?w:_,this.Sk=null!=(I=n.Sk)?I:d,this.Ek=null!=(E=n.Ek)?E:y},ue=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];I.apply(this,t)};(ue.prototype=g.create(I.prototype)).constructor=ue;var oe=function(n){function t(t,r){var i;return(i=n.call(this)||this).message=t||"Unknown error",i.cause=r,I.captureStackTrace&&I.captureStackTrace(i,i.constructor),i}return an(t,n),ln(t,[{key:"name",get:function(){return"BaseError"}}]),t}(ue),fe=function(n){return n.Mk="HttpOpenError",n.Lk="HttpResponseError",n.Ok="HttpTimeoutError",n}({}),se=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).Fk=t,e}return an(t,n),ln(t,[{key:"FS",get:function(){return this.Fk}}]),t}(oe);var ce=function(n){function t(t,r){return n.call(this,t,function(n){return"Error while opening "+n+". Invalid URL."}(t.qS),r)||this}return an(t,n),ln(t,[{key:"name",get:function(){return fe.Mk}}]),t}(se),ae=function(){function n(){}var t=n.prototype;return t.FS=function(n){return nn.reject(new ce(new ee(n)))},t.Pk=function(n){},t.bn=function(){},n}(),he=function(n){function t(t){return n.call(this,"Invalid XML",t)||this}return an(t,n),t}(oe),le=function(n){function t(){var t;return(t=n.apply(this,arguments)||this).VE=new xi,t.TF=new ae,t.i=new Gi,t}return an(t,n),t.prototype.vE=function(n){throw new he},ln(t,[{key:"nm",get:function(){return this.VE}},{key:"HE",get:function(){return!1}},{key:"qE",get:function(){return!1}},{key:"QE",get:function(){return!1}},{key:"XE",get:function(){return!1}},{key:"KE",get:function(){return this.i}},{key:"jE",get:function(){return{YE:Cn}}},{key:"ZE",get:function(){return"default"}},{key:"JE",get:function(){return"unknown"}},{key:"td",get:function(){return this.TF}}]),t}(Hi);!function(n){n}(new le);var ve=function(n){return n[n.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",n[n.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4",n}({}),_e=function(n){return 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.PICTURE_IN_PICTURE_ERROR=11001]="PICTURE_IN_PICTURE_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",n}({}),de=function(n){return 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",n}({});!function(n){n.fromCode=function(t){var r=R.floor(t/1e3);if(r in n)return r;throw new E("Invalid error code: "+t)}}(de||(de={}));var ye=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).code=t,e}return an(t,n),ln(t,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return de.fromCode(this.code)}}]),t}(oe);var we,Ie=function(){function n(n){this.encoding=n}var t=n.prototype;return t.encode=function(n){if(!n)return new T(0);for(var t=new T(n.length),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},t.encodeInto=function(n,t){for(var r=R.min(n.length,t.byteLength),i=0;i<r;i++)t[i]=n.charCodeAt(i);return{read:r,written:r}},n}(),Ee=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 T(n):new T(n.buffer,n.byteOffset,n.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},n}();var ge=new Array(128).fill(void 0);function Re(n){return ge[n]}ge.push(void 0,null,!0,!1);var Oe=ge.length;function Se(n){var t=Re(n);return function(n){n<132||(ge[n]=Oe,Oe=n)}(n),t}var pe=void 0!==Ee?new Ee("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:function(){throw I("TextDecoder not available")}};void 0!==Ee&&pe.decode();var Te=null;function ke(){return null!==Te&&Te.buffer===we.memory.buffer||(Te=new T(we.memory.buffer)),Te}function be(n,t){return n>>>=0,pe.decode(ke().subarray(n,n+t))}function me(n){Oe===ge.length&&ge.push(ge.length+1);var t=Oe;return Oe=ge[t],ge[t]=n,t}var Ne=0;function Ae(n,t){var r=t(1*n.length,1)>>>0;return ke().set(n,r/1),Ne=n.length,r}var Ce=null;function De(){return null!==Ce&&Ce.buffer===we.memory.buffer||(Ce=new Int32Array(we.memory.buffer)),Ce}function Pe(n){return null==n}function Le(n,t){return n>>>=0,ke().subarray(n/1,n/1+t)}function Fe(n){try{var t=we.__wbindgen_add_to_stack_pointer(-16);we.mpegts_to_fmp4(t,me(n));var r=De()[t/4+0],i=De()[t/4+1];if(De()[t/4+2])throw Se(i);return Se(r)}finally{we.__wbindgen_add_to_stack_pointer(16)}}function Ue(n){try{var t=we.__wbindgen_add_to_stack_pointer(-16);we.raw_audio_to_fmp4(t,me(n));var r=De()[t/4+0],i=De()[t/4+1];if(De()[t/4+2])throw Se(i);return Se(r)}finally{we.__wbindgen_add_to_stack_pointer(16)}}var Me=void 0!==Ie?new Ie("utf-8"):{encode:function(){throw I("TextEncoder not available")}},Ve="function"==typeof Me.encodeInto?function(n,t){return Me.encodeInto(n,t)}:function(n,t){var r=Me.encode(n);return t.set(r),{read:n.length,written:r.length}};function Be(n,t){return He.apply(this,arguments)}function He(){return He=$i((function(n,t){var r,i,e;return Zi(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]}}))})),He.apply(this,arguments)}function We(){var n={wbg:{}};return n.wbg.__wbg_data_a6fcc7e5485ab253=function(n,t){var r=Ae(Re(t).data,we.__wbindgen_export_0),i=Ne;De()[n/4+1]=i,De()[n/4+0]=r},n.wbg.__wbg_metadata_839ce0f7c4a90056=function(n){var t=Re(n).metadata;return Pe(t)?0:me(t)},n.wbg.__wbg_spsnal_f25ca767f4bfbb48=function(n,t){var r=Re(t).sps_nal,i=Pe(r)?0:Ae(r,we.__wbindgen_export_0),e=Ne;De()[n/4+1]=e,De()[n/4+0]=i},n.wbg.__wbg_ppsnal_c53839aaa7452802=function(n,t){var r=Re(t).pps_nal,i=Pe(r)?0:Ae(r,we.__wbindgen_export_0),e=Ne;De()[n/4+1]=e,De()[n/4+0]=i},n.wbg.__wbg_videopid_838bd140f4a2757b=function(n){var t=Re(n).video_pid;return Pe(t)?16777215:t},n.wbg.__wbg_audiopid_01a4aeec8221f2bc=function(n){var t=Re(n).audio_pid;return Pe(t)?16777215:t},n.wbg.__wbg_programmaptablepid_75098c49c54177b4=function(n){var t=Re(n).program_map_table_pid;return Pe(t)?16777215:t},n.wbg.__wbindgen_object_drop_ref=function(n){Se(n)},n.wbg.__wbg_createoutputdata_1f571c937b2e0b2d=function(n,t,r,i,e,u,o,f){var s,c,a,h;0!==n&&(s=Le(n,t).slice(),we.__wbindgen_export_1(n,1*t,1)),0!==r&&(c=Le(r,i).slice(),we.__wbindgen_export_1(r,1*i,1)),0!==e&&(a=Le(e,u).slice(),we.__wbindgen_export_1(e,1*u,1)),0!==o&&(h=Le(o,f).slice(),we.__wbindgen_export_1(o,1*f,1));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 me(l)},n.wbg.__wbg_createtimestampwithbase_b1a0f7c0ac4be87c=function(n,t,r){var i=function(n,t,r){return{low:n,high:t,base:r}}(n>>>0,t>>>0,r>>>0);return me(i)},n.wbg.__wbg_createoutputmetadata_d35eb256e9ffe01c=function(n,t,r,i,e,u,o,f,s,c,a,h,l,v,_,d){var y,w,I,E;0!==r&&(y=be(r,i).slice(),we.__wbindgen_export_1(r,1*i,1)),0!==e&&(w=be(e,u).slice(),we.__wbindgen_export_1(e,1*u,1)),0!==o&&(I=Le(o,f).slice(),we.__wbindgen_export_1(o,1*f,1)),0!==s&&(E=Le(s,c).slice(),we.__wbindgen_export_1(s,1*c,1));var g=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,y,w,I,E,Se(a),Se(h),Se(l),16777215===v?void 0:v,0===_?void 0:d);return me(g)},n.wbg.__wbg_createoutput_2a44a6b53fd68784=function(n,t){var r=function(n,t){return{data:n,metadata:t}}(Se(n),Se(t));return me(r)},n.wbg.__wbindgen_string_new=function(n,t){return me(be(n,t))},n.wbg.__wbg_new_abda76e883ba8a5f=function(){return me(new I)},n.wbg.__wbg_stack_658279fe44541cf6=function(n,t){var r=function(n,t,r){if(void 0===r){var i=Me.encode(n),e=t(i.length,1)>>>0;return ke().subarray(e,e+i.length).set(i),Ne=i.length,e}for(var u=n.length,o=t(u,1)>>>0,f=ke(),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,1)>>>0;var a=ke().subarray(o+s,o+u);s+=Ve(n,a).written}return Ne=s,o}(Re(t).stack,we.__wbindgen_export_0,we.__wbindgen_export_2),i=Ne;De()[n/4+1]=i,De()[n/4+0]=r},n.wbg.__wbg_error_f851667af71bcfc6=function(n,t){var r,i;try{r=n,i=t,console.error(be(n,t))}finally{we.__wbindgen_export_1(r,i,1)}},n}function xe(n,t){return we=n.exports,Ge.__wbindgen_wasm_module=t,Ce=null,Te=null,we.__wbindgen_start(),we}function Ge(n){return je.apply(this,arguments)}function je(){return je=$i((function(n){var t,r,i,e;return Zi(this,(function(u){switch(u.label){case 0:return void 0!==we?[2,we]:(void 0===n&&(n=new URL("theomux_bg.wasm",void 0)),t=We(),("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n)),[4,n]);case 1:return[4,Be.apply(void 0,[u.sent(),t])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,xe(i,e)]}}))})),je.apply(this,arguments)}function Ke(){return Ke=$i((function(n){var t,r;return Zi(this,(function(i){switch(i.label){case 0:return n instanceof WebAssembly.Module?t=n:(r="string"==typeof n?new URL(n):n,t="http:"===r.protocol||"https:"===r.protocol?fetch(r.href):function(n){return new nn((function(t,r){var i=new k;i.onload=function(){t(i.response||new ArrayBuffer(0))},i.onerror=function(){r(new E('Failed to fetch "'+n+'", status '+i.status))},i.open("GET",n,!0),i.responseType="arraybuffer",i.send()}))}(r.href)),[4,Ge(t)];case 1:return i.sent(),[2,{mpegts_to_fmp4:Fe,raw_audio_to_fmp4:Ue}]}}))})),Ke.apply(this,arguments)}var qe=new URL("./THEOplayer.transmux.wasm",l.href);!function(n){var t,r=nn.resolve(n()).then((function(n){t=n,r=void 0,self.postMessage({iOt:"9.0.0"})}),(function(n){var t=n,r={success:!1,error:t.message,errorCode:t instanceof ye?t.code:_e.MEDIA_DECODE_ERROR};self.postMessage(r)}));function i(){return(i=$i((function(n){var i,e,u,o,f,s;return Zi(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===ve.MPEGTS_TO_FMP4)o=t.mpegts_to_fmp4(n.input);else{if(n.type!==ve.RAW_AUDIO_TO_FMP4)throw new I("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(mn).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 ye?r.code:_e.MEDIA_DECODE_ERROR};self.postMessage(i)}))}))}((function(){return function(n){return Ke.apply(this,arguments)}(qe)}))}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof a?a:"undefined"!=typeof global?global:this);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@theoplayer/extended",
|
|
3
3
|
"main": "THEOplayer.js",
|
|
4
4
|
"types": "THEOplayer.d.ts",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "9.0.0",
|
|
6
6
|
"description": "THEOplayer is the universal video player solution, enabling you to quickly deliver cross-platform content playback.",
|
|
7
7
|
"author": "THEO Technologies",
|
|
8
8
|
"homepage": "https://www.theoplayer.com/",
|