@theoplayer/extended 9.5.1 → 9.6.1

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.
@@ -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: 9.5.1
28
- Created: 2025-06-12T10:13:58.837Z
27
+ Version: 9.6.1
28
+ Created: 2025-06-23T15:42:10.716Z
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,S=n.parseInt,O=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.$a=0,this.f8t=!1,this.$yt=void 0,this.v8t=[],M(n,this)}function D(n,t){for(;3===n.$a;)n=n.$yt;0!==n.$a?(n.f8t=!0,C._8t((function(){var r=1===n.$a?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.$yt)}catch(n){return void L(t.promise,n)}P(t.promise,i)}else(1===n.$a?P:L)(t.promise,n.$yt)}))):n.v8t.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.$a=3,n.$yt=t,void F(n);if("function"==typeof r)return void M(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.$a=1,n.$yt=t,F(n)}catch(t){L(n,t)}}function L(n,t){n.$a=2,n.$yt=t,F(n)}function F(n){2===n.$a&&0===n.v8t.length&&C._8t((function(){n.f8t||C.g8t(n.$yt)}));for(var t=0,r=n.v8t.length;t<r;t++)D(n,n.v8t[t]);n.v8t=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._8t="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){m(n,0)},C.g8t=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.jy=0,this.Td=0,this.Fw=[],this.w8t=n}return n.prototype.y8t=function(n){var t=this.length();this.m8t(t+1);var r=this.Td+t&this.w8t-1;this.Fw[r]=n,this.jy=t+1},n.prototype.push=function(n){var t=this.length()+1;if(this.w8t<t)this.y8t(n);else{var r=this.Td+t-1,i=this.w8t-1;this.Fw[r&i]=n,this.jy=t}},n.prototype.shift=function(){var n=this.Td,t=this.Fw[n];return this.Fw[n]=void 0,this.Td=n+1&this.w8t-1,this.jy--,t},n.prototype.length=function(){return this.jy},n.prototype.m8t=function(n){this.w8t<n&&this.p8t(this.w8t<<1)},n.prototype.p8t=function(n){var t=this.w8t;this.w8t=n;var r=this.Td+this.jy&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.Fw,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._8t,tn=on,rn=new q(16),en=!1,(fn={c2:function(n){rn.push(n),en||(en=!0,tn(un))},mz:un=function(){for(;rn.length()>0;)rn.shift()();en=!1}}).mz,C._8t=fn.c2,C.g8t=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.N_="web",n.B_="android",n.M_="android-tv",n.L_="ios",n.O_="tvos",n.F_="chromecast",n.U_="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),Sn=_n.match(/Tizen ([0-9\.]+)/i),On=_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.V_=Boolean("ontouchstart"in self||self.DocumentTouch&&h instanceof self.DocumentTouch||v&&v.msMaxTouchPoints),this.W_=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(_n)||/(macintosh|mac(?=_powerpc)\s)/i.test(_n),this.z_=/Windows NT/i.test(_n),this.G_=In?O(In[1]):0,this.K_=/Android/i.test(_n),this.Y_=wn?O(wn[1]):0,this.J_=/windows phone (8|8\.1)/i.test(_n),this.ev=/iPhone/i.test(_n),this.hv=/iPad/i.test(_n),this.uv=this.W_&&this.V_&&!this.hv,this._v=/iPod/i.test(_n),this.Sv=/Mobile Safari/i.test(_n),this.Av=/EOS\d*STB/i.test(_n),this.bv=/APP\d*STB/i.test(_n),this.wv=(this.ev||this.hv||this.uv||this._v)&&!this.J_,this.pv=On?O(On[2]):0,this.Ev=this.J_||this.wv||this.K_||this.Sv,this.Iv=/CriOS/i.test(_n),this.Rv=Boolean(self.chrome&&/google/i.test(v.vendor))||this.Iv,this.Mv=this.Rv&&/Edg\//i.test(v.userAgent),this.Ov=yn?S(yn[1],10):0,this.Kg=Boolean(/CriOS/i.test(_n)),this.Qg=Boolean(self.chrome||/Chrome/i.test(_n)||this.Kg),this.Nv=dn?S(dn[1],10):0,this.Vv=/SMART-TV.*Tizen/i.test(_n),this.Wv=Sn?O(Sn[1]):0,this.Dv=this.Wv>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.Wv):void 0,this.zv=/webos|web0s/i.test(_n),this.Gv=/HbbTV/i.test(_n),this.Kv=!!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.Zv=/VIZIO/i.test(_n),this.$v=/Edge\/\d+/i.test(_n),this.rg=/Trident/i.test(_n),this.og=this.rg&&!self.ActiveXObject&&"ActiveXObject"in self,this.cg=/Vivaldi/i.test(_n),this.fg=/Firefox/i.test(_n)&&!/Seamonkey/i.test(_n),this.vg=gn?O(gn[1]):0,this.wg=/Safari/i.test(_n)&&!/Chrome/i.test(_n)&&!this.J_&&!this.Vv,this.yg=En?O(En[2]):0,this.Tg=Boolean(Rn),this.Eg=Rn?O(Rn[1]):0,this.Ig=/CrKey/.test(_n),this.Rg=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(_n),this.Ng=/PlayStation 4/i.test(_n),this.Mg="web"===vn.M_,this.Og="web"===vn.B_,this.Ug=this.Og||this.Mg,this.Hg="web"===vn.L_,this.qg="web"===vn.O_,this.Xg="web"===vn.F_}return ln(n,[{key:"Ke",get:function(){return this.V_}},{key:"H_",get:function(){return this.W_}},{key:"q_",get:function(){return this.z_}},{key:"X_",get:function(){return this.G_}},{key:"Q_",get:function(){return this.K_}},{key:"j_",get:function(){return this.Y_}},{key:"Z_",get:function(){return this.J_}},{key:"tv",get:function(){return this.ev}},{key:"rv",get:function(){return this.hv}},{key:"ov",get:function(){return this.uv}},{key:"fv",get:function(){return this._v}},{key:"vv",get:function(){return this.wv}},{key:"mv",get:function(){return this.pv}},{key:"yv",get:function(){return this.Av||this.bv}},{key:"Tv",get:function(){return this.Sv}},{key:"Ks",get:function(){return this.Ev}},{key:"Pv",get:function(){return this.Iv}},{key:"Cv",get:function(){return this.Rv}},{key:"xv",get:function(){var n;return null!=(n=this.Dv)?n:this.Nv}},{key:"Bv",get:function(){return this.Mv}},{key:"Lv",get:function(){var n;return(null==(n=a.chrome)?void 0:n.webview)&&this.Ov>0}},{key:"Fv",get:function(){return this.Ov}},{key:"Uv",get:function(){return this.Vv}},{key:"Hv",get:function(){return this.Wv}},{key:"qv",get:function(){return this.zv}},{key:"Xv",get:function(){return this.Gv}},{key:"Qv",get:function(){return this.Kv}},{key:"Yv",get:function(){return this.Zv}},{key:"Jv",get:function(){return this.$v}},{key:"eg",get:function(){return this.rg}},{key:"hg",get:function(){return this.og}},{key:"ag",get:function(){return this.cg}},{key:"dg",get:function(){return this.fg}},{key:"_g",get:function(){return this.vg}},{key:"gg",get:function(){return this.wg}},{key:"pg",get:function(){return 0===this.yg&&kn.vv?this.pv:this.yg}},{key:"Ag",get:function(){return this.Tg}},{key:"Sg",get:function(){return this.Eg}},{key:"Pg",get:function(){return this.Ig}},{key:"Cg",get:function(){return this.Rg}},{key:"xg",get:function(){return!(!this.qv&&!this.Uv)&&this.xv<=56}},{key:"Dg",get:function(){return this.Ng}},{key:"Bg",get:function(){return this.Mg}},{key:"Lg",get:function(){return this.Og}},{key:"Fg",get:function(){return this.Ug}},{key:"Vg",get:function(){return this.Hg}},{key:"Wg",get:function(){return this.qg}},{key:"zg",get:function(){return this.Xg}},{key:"Gg",get:function(){return this.Qg}},{key:"IS_IOS_CHROME",get:function(){return this.Kg}}]),n}();Tn.jg=new Tn;var kn=Tn.jg,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.$g)}function Vn(n){var t=R.clz32(n&-n);return n?31-t:t}Un.prototype.$g,g.defineProperty(Un.prototype,"$g",{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=S(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.iw=void 0,this.Iw=!1,this.Ke=st,this.Ks=!1,this.Cw=!0}var t=n.prototype;return t.nw=function(){return 0},t.Sw=function(n,t){return!0},t.Ew=function(n){return n>=.3333333333333333},ln(n,[{key:"ew",get:function(){return void 0===this.iw&&(this.iw=this.nw()),this.iw}},{key:"hw",get:function(){return!kn.Cg}},{key:"ow",get:function(){if(a.screen)return{width:a.screen.width,height:a.screen.height}}},{key:"aw",get:function(){return a.devicePixelRatio||1}},{key:"uw",get:function(){return at}},{key:"cw",get:function(){return!1}},{key:"lw",get:function(){return!0}},{key:"dw",get:function(){return!!(kn.gg||kn.vv||kn.Lv)||!!kn.Yv}},{key:"fw",get:function(){return kn.Yv}},{key:"_w",get:function(){return!kn.vv}},{key:"gw",get:function(){return!0}},{key:"ww",get:function(){return!0}},{key:"mw",get:function(){return!1}},{key:"pw",get:function(){}},{key:"yw",get:function(){return!0}},{key:"Aw",get:function(){return!1}},{key:"bw",get:function(){return kn.Yv}},{key:"Tw",get:function(){return!1}},{key:"Pw",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.Sw=function(n,t){if(n&&n.Rw&&t&&t.Rw){var r=_t(n.Rw,"mp4a.40.2")&&_t(t.Rw,"mp4a.40.5"),i=_t(n.Rw,"mp4a.40.5")&&_t(t.Rw,"mp4a.40.2"),e=_t(n.Rw,"mp4a.40.2")&&_t(t.Rw,"mp4a.40.34"),u=_t(n.Rw,"mp4a.40.34")&&_t(t.Rw,"mp4a.40.2"),o=_t(n.Rw,"mp4a.40.5")&&_t(t.Rw,"mp4a.40.34"),f=_t(n.Rw,"mp4a.40.34")&&_t(t.Rw,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},ln(t,[{key:"pw",get:function(){if(kn.H_)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.Ew=function(n){return n>=2},t}(lt),wt=function(n){function t(){var t;return(t=n.call(this)||this).Iw=kn.pg>=11,t.Cw=kn.gg&&!(kn.vv&&kn.pg<10),t}return an(t,n),ln(t,[{key:"Tw",get:function(){return kn.pg<17}},{key:"Pw",get:function(){return!0}}]),t}(lt),It=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),ln(t,[{key:"yw",get:function(){return!kn.q_||(kn.Bv?92!==kn.Fv:kn.xv>=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.ov)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).xw=t,r.Iw=r.xw.Iw,r.Ke=r.xw.Ke,r.Cw=Et&&r.xw.Cw,r}an(t,n);var r=t.prototype;return r.nw=function(){return this.xw.ew},r.Sw=function(n,t){return this.xw.Sw(n,t)},r.Ew=function(n){return this.xw.Ew(n)},ln(t,[{key:"pw",get:function(){return this.xw.pw}},{key:"yw",get:function(){return this.xw.yw}},{key:"Tw",get:function(){return this.xw.Tw}}]),t}(ht),Rt=function(n){function t(t){var r;return(r=n.call(this,t)||this).Iw=!0,r.Ks=!0,r}return an(t,n),ln(t,[{key:"mw",get:function(){return kn.vv}}]),t}(gt);var St=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.nw=function(){return function(n){return n&&An(a.ManagedMediaSource)?a.ManagedMediaSource:An(a.MediaSource)?a.MediaSource:void 0}(!0)?n.prototype.nw.call(this):1},ln(t,[{key:"mw",get:function(){return!0}}]),t}(Rt),Ot=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.Sw=function(t,r){return n.prototype.Sw.call(this,t,r)},ln(t,[{key:"cw",get:function(){return kn.Hv<3}},{key:"lw",get:function(){return kn.Hv>=3}},{key:"ow",get:function(){var n=this;return a.tizen&&!this.Mw&&a.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.Mw={width:r,height:i})})),this.Mw}},{key:"Aw",get:function(){return kn.Hv<3}}]),t}(gt),pt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),ln(t,[{key:"ow",get:function(){var n=this;return a.webOS&&!this.Mw&&a.webOS.deviceInfo((function(t){n.Mw={width:t.screenWidth,height:t.screenHeight}})),this.Mw}},{key:"gw",get:function(){return!1}}]),t}(gt),Tt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),ln(t,[{key:"mw",get:function(){return!0}},{key:"Pw",get:function(){return this.xw.Pw}}]),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.dg)return new vt;if(kn.Jv||kn.eg)return new yt;if(kn.gg)return new wt;if(kn.Cv)return new It;return new lt}();return kn.vv?new St(n):kn.Ks?new Rt(n):kn.Uv?new Ot(n):kn.qv?new pt(n):kn.H_?new Tt(n):new gt(n)}());var Nt=!(kn.eg&&!kn.hg),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,Sr=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},Or=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 S=E-R,O=36-R;t.push(yr(Sr(R+S%O,0))),E=dr(S/O)}t.push(yr(Sr(E,0))),u=Or(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|S(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=S(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)?S(n,t):void 0}var Kr={Lw: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{Lw:2,Ow: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:{Lw:3,Fw: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?{Lw:1,Ow:i}:""===r?Kr:{Lw:0,Uw:r}}function Yr(n){switch(n.Lw){case 0:return n.Uw;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.Ow);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.Ow)+"]";case 3:return n.Fw;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.Vw.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.Vw,Jr(t))}function ci(n){if(n.Hw){var t=Qr(n.Vw);""===t&&(t=null),n.Hw.Hw.Ww=t}}var ai=function(){function n(n){if(void 0===n&&(n=void 0),this.Hw=null,null==n)this.Vw=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof ai&&!!Yt(n.Vw)&&(!$t||n[i]===hi)}(n))this.Vw=n.Vw.slice();else if(function(n){return null!=n&&(!!Yt(n)||!!$t&&"function"==typeof n[i])}(n)){this.Vw=[];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.Vw.push([ri(e[0]),ri(e[1])])}}else for(var u in this.Vw=[],n)g.prototype.hasOwnProperty.call(n,u)&&this.Vw.push([ri(u),ri(n[u])]);else(n=ri(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.Vw=Jr(n)}var t=n.prototype;return t.append=function(n,t){n=ri(n),t=ri(t),this.Vw.push([n,t]),ci(this)},t.delete=function(n){n=ri(n);for(var t=this.Vw,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.Vw,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.Vw,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.Vw,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.Vw,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.Vw,oi),ci(this)},t.toString=function(){return Qr(this.Vw)},t.entries=function(){return new di(this.Vw,li)},t.keys=function(){return new di(this.Vw,vi)},t.values=function(){return new di(this.Vw,_i)},t.forEach=function(n){var t=this;this.Vw.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.qw=0,this.Vw=n,this.zw=t}return n.prototype.next=function(){return this.qw<this.Vw.length?{done:!1,value:this.zw(this.Vw[this.qw++])}:{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 Si(n){return void 0!==wi[n]}function Oi(n){return Si(n.Xw)}function pi(n){return""!==n.Gw||""!==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.Kw;0!==t.length&&("file"===n.Xw&&1===t.length&&mi(t[0])||t.pop())}function Ai(n){return null===n.jw||Kr===n.jw||n.Yw||"file"===n.Xw}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(Si(r.Xw)&&!Si(v))return;if(!Si(r.Xw)&&Si(v))return;if((pi(r)||null!==r.Zw)&&"file"===v)return;if("file"===r.Xw&&(r.jw===Kr||null===r.jw))return}if(r.Xw=v,null!==i)return void(Oi(r)&&r.Zw===wi[r.Xw]&&(r.Zw=null));u.length=0,"file"===r.Xw?e=13:Oi(r)&&t&&t.Xw===r.Xw?e=3:Oi(r)?e=7:47===c[h+1]?(e=4,h+=1):(r.Yw=!0,r.Kw.push(""),e=18)}break;case 2:if(!t||t.Yw&&35!==l)throw new E("Invalid scheme");t.Yw&&35===l?(r.Xw=t.Xw,r.Kw=t.Kw.slice(),r.Ww=t.Ww,r.Jw="",r.Yw=!0,e=20):"file"!==t.Xw?(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.Xw=t.Xw,Ci===l?(r.Gw=t.Gw,r.Qw=t.Qw,r.jw=t.jw,r.Zw=t.Zw,r.Kw=t.Kw.slice(),r.Ww=t.Ww):47===l?e=6:63===l?(r.Gw=t.Gw,r.Qw=t.Qw,r.jw=t.jw,r.Zw=t.Zw,r.Kw=t.Kw.slice(),r.Ww="",e=19):35===l?(r.Gw=t.Gw,r.Qw=t.Qw,r.jw=t.jw,r.Zw=t.Zw,r.Kw=t.Kw.slice(),r.Ww=t.Ww,r.Jw="",e=20):92===l&&Oi(r)?e=6:(r.Gw=t.Gw,r.Qw=t.Qw,r.jw=t.jw,r.Zw=t.Zw,r.Kw=t.Kw.slice(),r.Kw.pop(),e=17,h-=1);break;case 6:!Oi(r)||47!==l&&92!==l?47===l?e=9:(r.Gw=t.Gw,r.Qw=t.Qw,r.jw=t.jw,r.Zw=t.Zw,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.Gw+=y}else s=!0}u.length=0}else if(Ci===l||47===l||63===l||35===l||Oi(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.Xw)h-=1,e=15;else if(58!==l||f)if(Ci===l||47===l||63===l||35===l||Oi(r)&&92===l){if(h-=1,Oi(r)&&0===u.length)throw new E("Invalid host");if(null!==i&&0===u.length&&(pi(r)||null!==r.Zw))return;var w=Xr(Tr(u),Oi(r));if(r.jw=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),Oi(r));if(r.jw=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||Oi(r)&&92===l||null!==i))throw new E("Invalid port");if(0!==u.length){var g=S(Tr(u),10);if(g>65535)throw new E("Invalid port");r.Zw=g===wi[r.Xw]?null:g,u.length=0}if(null!==i)return;e=16,h-=1}break;case 13:r.Xw="file",47===l||92===l?e=14:t&&"file"===t.Xw?Ci===l?(r.jw=t.jw,r.Kw=t.Kw.slice(),r.Ww=t.Ww):63===l?(r.jw=t.jw,r.Kw=t.Kw.slice(),r.Ww="",e=19):35===l?(r.jw=t.jw,r.Kw=t.Kw.slice(),r.Ww=t.Ww,r.Jw="",e=20):(Ti(c.slice(h))||(r.jw=t.jw,r.Kw=t.Kw.slice(),Ni(r)),e=17,h-=1):(e=17,h-=1);break;case 14:47===l||92===l?e=15:(t&&"file"===t.Xw&&!Ti(c.slice(h))&&(mi(t.Kw[0])?r.Kw.push(t.Kw[0]):r.jw=t.jw),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.jw=Kr,null!==i)return;e=16}else{var R=Xr(Tr(u),Oi(r));if(0===R.Lw&&"localhost"===R.Uw&&(R=Kr),r.jw=R,null!==i)return;u.length=0,e=16}else u.push(l);break;case 16:Oi(r)?(e=17,47!==l&&92!==l&&(h-=1)):null===i&&63===l?(r.Ww="",e=19):null===i&&35===l?(r.Jw="",e=20):Ci!==l&&(e=17,47!==l&&(h-=1));break;case 17:if(Ci===l||47===l||Oi(r)&&92===l||null===i&&(63===l||35===l)){var O=Tr(u);if(Ri(O)?(Ni(r),47===l||Oi(r)&&92===l||r.Kw.push("")):!gi(O)||47===l||Oi(r)&&92===l?gi(O)||("file"===r.Xw&&0===r.Kw.length&&bi(u)&&(Kr!==r.jw&&null!==r.jw&&(r.jw=Kr),u[1]=58,O=Tr(u)),r.Kw.push(O)):r.Kw.push(""),u.length=0,"file"===r.Xw&&(Ci===l||63===l||35===l))for(;r.Kw.length>1&&""===r.Kw[0];)r.Kw.shift();63===l?(r.Ww="",e=19):35===l&&(r.Jw="",e=20)}else u.push.apply(u,Br(l,Fr));break;case 18:63===l?(r.Ww="",e=19):35===l?(r.Jw="",e=20):Ci!==l&&(r.Kw[0]+=Tr(Br(l,Pr)));break;case 19:null===i&&35===l?(r.Jw="",e=20):Ci!==l&&(r.Ww+=Tr(Br(l,Oi(r)?Vr:Mr)));break;case 20:Ci===l||0===l||(r.Jw+=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.Xw="",this.Gw="",this.Qw="",this.jw=null,this.Zw=null,this.Kw=[],this.Ww=null,this.Jw=null,this.Yw=!1};function Mi(n){switch(n.Xw){case"blob":var t;try{t=Li(n.Kw[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.Xw,n.jw,n.Zw);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.Hw}(t))i=t.Hw;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.Ww;this.Hw=r,this.Ww=function(n){var t=new ai;return null!==n&&si(t,n),t}(e),this.Ww.Hw=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.Xw+":";if(null!==n.jw?(r+="//",pi(n)&&(r+=n.Gw,""!==n.Qw&&(r+=":"+n.Qw),r+="@"),r+=Yr(n.jw),null!==n.Zw&&(r+=":"+n.Zw)):null===n.jw&&"file"===n.Xw&&(r+="//"),n.Yw)r+=n.Kw[0];else for(var i=0,e=n.Kw;i<e.length;i++)r+="/"+e[i];return null!==n.Ww&&(r+="?"+n.Ww),t||null===n.Jw||(r+="#"+n.Jw),r}(this.Hw)},set:function(n){var t;try{t=Li(String(n),null)}catch(n){throw new E("Invalid URL: "+n.message)}this.Hw=t,fi(this.Ww);var r=this.Hw.Ww;null!==r&&si(this.Ww,r)}},{key:"origin",get:function(){return Mi(this.Hw)}},{key:"protocol",get:function(){return this.Hw.Xw+":"},set:function(n){Fi(n+":",null,this.Hw,0)}},{key:"username",get:function(){return this.Hw.Gw},set:function(n){Ai(this.Hw)||(this.Hw.Gw=Hr(n,Ur))}},{key:"password",get:function(){return this.Hw.Qw},set:function(n){Ai(this.Hw)||(this.Hw.Qw=Hr(n,Ur))}},{key:"host",get:function(){var n=this.Hw,t=n.jw;if(null===t)return"";var r=n.Zw,i=Yr(t);return null!==r&&(i+=":"+r),i},set:function(n){this.Hw.Yw||Fi(n,null,this.Hw,10)}},{key:"hostname",get:function(){var n=this.Hw.jw;return null===n?"":Yr(n)},set:function(n){this.Hw.Yw||Fi(n,null,this.Hw,11)}},{key:"port",get:function(){var n=this.Hw.Zw;return null===n?"":""+n},set:function(n){Ai(this.Hw)||(""===n?this.Hw.Zw=null:Fi(n,null,this.Hw,12))}},{key:"pathname",get:function(){var n=this.Hw.Kw;return this.Hw.Yw?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.Hw.Yw||(this.Hw.Kw.length=0,Fi(n,null,this.Hw,16))}},{key:"search",get:function(){var n=this.Hw.Ww;return null===n||""===n?"":"?"+n},set:function(n){n=ri(n);var t=this.Hw;if(""===n)return t.Ww=null,void fi(this.Ww);"?"===n[0]&&(n=n.slice(1)),t.Ww="",Fi(n,null,t,19),si(this.Ww,n)}},{key:"searchParams",get:function(){return this.Ww}},{key:"hash",get:function(){var n=this.Hw.Jw;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.Hw.Jw="",Fi(n,null,this.Hw,20)):this.Hw.Jw=null}}]),n}();function Bi(n){return n.document&&n.document.baseURI||n.location.href||""}var Hi=function(){function n(){this.Am=new Wi,this.Em=dt,this.Sm=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.Yg=function(){return self.performance.now()}:this.Yg=ft}var t=n.prototype;return t.$w=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.tm=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.im=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.nm=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.hm=function(n,t){return y(n,t)},t.Zg=function(n){d(n)},t.um=function(n){w(n)},t.lm=function(){return this.dm.lm()},t.fm=function(){return this.dm.fm()},t._m=function(){return this.dm._m()},t.vm=function(){return this.dm.vm()},t.gm=function(){return this.dm.gm()},t.wm=function(n,t){return this.dm.wm(n,t)},t.pm=function(n){return this.dm.pm(n)},t.Fh=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.Tm=function(n,t){if(void 0===t&&(t=Bi(a)),this.Sm){var r=function(n){return"string"==typeof n}(t)?t:t.toString();return new self.URL(n,r).href}return this.Fh(n,t).href},ln(n,[{key:"ym",get:function(){return this.Am}},{key:"Zs",get:function(){return this.Em}},{key:"Pm",get:function(){return{Im:v&&v.userAgent.match(/Android /i)?"Android":"other",Cm:Boolean(v&&v.userAgent.match(/Android 8.0.0/i))}}},{key:"Rm",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"xm",get:function(){return"languages"in v?v.languages.slice():[v.language]}}]),n}(),Wi=function(){function n(){}return ln(n,[{key:"Dm",get:function(){return v.oscpu}},{key:"Zs",get:function(){return v.platform}},{key:"Nm",get:function(){return v.vendor}},{key:"Bm",get:function(){return v.vendorSub}}]),n}();var xi=function(){function n(){}var t=n.prototype;return t.gm=function(){return nn.resolve(!1)},t.fm=function(){return nn.resolve(!1)},t.vm=function(){return nn.resolve(!1)},t._m=function(){return nn.resolve(!1)},t.pm=function(n){return nn.resolve(!1)},t.wm=function(n,t){return nn.resolve(!1)},t.lm=function(){return nn.resolve(!1)},n}(),Gi=function(){function n(){}var t=n.prototype;return t.cS=function(){},t.Fy=function(n){},t.My=function(n){},t.Ly=function(n,t){},n}(),ji=function(n){return n.dS="arraybuffer",n.fS="json",n._S="stream",n.vS="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.Fm={},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.Fm.hasOwnProperty(e)){var u=this.Fm[e],o=u[1];u[1]=o?o+", "+i:i}else this.Fm[e]=[r,i]},t.delete=function(n){var t=zi(n).toLowerCase();delete this.Fm[t]},t.get=function(n){var t=zi(n).toLowerCase();return this.Fm.hasOwnProperty(t)?this.Fm[t][1]:null},t.has=function(n){var t=zi(n).toLowerCase();return this.Fm.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=zi(r)).toLowerCase();this.Fm[i]=[r,Xi(t)]},t.forEach=function(n,t){for(var r in this.Fm)this.Fm.hasOwnProperty(r)&&n.call(t,this.Fm[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.Fm)if(this.Fm.hasOwnProperty(t)){var r=Ki(this.Fm[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.gS=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.wS=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.mS=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.sp=!1,this.op=!1,this.ap=[],this.cp=[]}var t=n.prototype;return t.hp=function(){if(!this.sp&&!this.op){this.sp=!0;for(var n=0,t=this.ap.slice();n<t.length;n++){(0,t[n])()}this.Ju()}},t.Ju=function(){if(!this.op){this.op=!0;for(var n=0,t=this.cp.slice();n<t.length;n++){(0,t[n])()}te(this.ap),te(this.cp)}},t.rp=function(n){this.op||this.ap.push(n)},t.np=function(n){this.op||ne(this.ap,n)},t.lp=function(n){this.op||this.cp.push(n)},t.dp=function(n){this.op||ne(this.cp,n)},n}(),ie=function(){function n(){this._p=new re}var t=n.prototype;return t.nf=function(){this._p.hp()},t.Ju=function(){this._p.Ju()},t.vp=function(n){var t=this._p;if(!t.sp)if(n.sp)t.hp();else if(!t.op&&!n.op){var r=function(){i(),t.hp()},i=function(){n.np(r),n.dp(i),t.np(r),t.dp(i)};n.rp(r),n.lp(i),t.rp(r),t.lp(i)}},t.gp=function(){var t=new n,r=new n,i=t.fp,e=r.fp,u=this._p,o=function(){i.sp&&e.op||e.sp&&i.op?u.hp():i.op&&e.op&&u.Ju()};i.rp(o),e.rp(o),i.lp(o),e.lp(o),t.vp(u),r.vp(u);return u.lp((function(){i.np(o),e.np(o),i.dp(o),e.dp(o)})),[t,r]},t[e]=function(){this.nf()},n.wp=function(t){for(var r=new n,i=0;i<t.length;i++){var e=t[i];void 0!==e&&r.vp(e)}return r},ln(n,[{key:"fp",get:function(){return this._p}}]),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.kS,i=t.qS,e=t.yk,u=t.HS,o=t.Ak,f=t.bk,s=t.fp,c=t.zm,a=t.Tk,h=t.Sk,l=t.Ek,v=t.Pk,_=t.Ik,d=t.Ck,y=t.Rk):(r=null,i={},e="GET",u=ji.vS,o=0,f=0,c="",a="",h="",l=!1,_=void 0,d=!1,y=void 0),this.QS=g,this.kS=n.kS||r,this.qS=new qi(n.qS||i),this.yk=n.yk||e,this.HS=n.HS||u,this.Ak=void 0!==n.Ak?Number(n.Ak)||0:o,this.bk=void 0!==n.bk?Number(n.bk)||0:f,this.fp=n.fp||s||(new ie).fp,this.zm=n.zm||c,this.Tk=n.Tk||a,this.Sk=n.Sk||h,this.Ek=void 0!==n.Ek?Boolean(n.Ek):l,this.Pk=n.Pk||v,this.Ik=null!=(w=n.Ik)?w:_,this.Ck=null!=(I=n.Ck)?I:d,this.Rk=null!=(E=n.Rk)?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.Uk="HttpOpenError",n.Vk="HttpResponseError",n.Hk="HttpTimeoutError",n}({}),se=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).Wk=t,e}return an(t,n),ln(t,[{key:"WS",get:function(){return this.Wk}}]),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.Uk}}]),t}(se),ae=function(){function n(){}var t=n.prototype;return t.WS=function(n){return nn.reject(new ce(new ee(n)))},t.xk=function(n){},t.wn=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).zE=new xi,t.FF=new ae,t.i=new Gi,t}return an(t,n),t.prototype.pE=function(n){throw new he},ln(t,[{key:"dm",get:function(){return this.zE}},{key:"XE",get:function(){return!1}},{key:"QE",get:function(){return!1}},{key:"ZE",get:function(){return!1}},{key:"jE",get:function(){return!1}},{key:"JE",get:function(){return this.i}},{key:"$E",get:function(){return{tP:Cn}}},{key:"eP",get:function(){return"default"}},{key:"iP",get:function(){return"unknown"}},{key:"rd",get:function(){return this.FF}}]),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 Se=ge.length;function Oe(n){var t=Re(n);return function(n){n<132||(ge[n]=Se,Se=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){Se===ge.length&&ge.push(ge.length+1);var t=Se;return Se=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 Oe(i);return Oe(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 Oe(i);return Oe(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){Oe(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,Oe(a),Oe(h),Oe(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}}(Oe(n),Oe(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({COt:"9.5.1"})}),(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);
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,p=n.parseFloat,S=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.$a=0,this.c8t=!1,this.gyt=void 0,this.f8t=[],M(n,this)}function D(n,t){for(;3===n.$a;)n=n.gyt;0!==n.$a?(n.c8t=!0,C.v8t((function(){var r=1===n.$a?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.gyt)}catch(n){return void L(t.promise,n)}P(t.promise,i)}else(1===n.$a?P:L)(t.promise,n.gyt)}))):n.f8t.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.$a=3,n.gyt=t,void F(n);if("function"==typeof r)return void M(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.$a=1,n.gyt=t,F(n)}catch(t){L(n,t)}}function L(n,t){n.$a=2,n.gyt=t,F(n)}function F(n){2===n.$a&&0===n.f8t.length&&C.v8t((function(){n.c8t||C.d8t(n.gyt)}));for(var t=0,r=n.f8t.length;t<r;t++)D(n,n.f8t[t]);n.f8t=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.v8t="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){m(n,0)},C.d8t=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:"",W=B.match(/Firefox\/([0-9]+)/i),H=null!=W,x=W?Number(W[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.Yy=0,this.Td=0,this.tm=[],this.l8t=n}return n.prototype._8t=function(n){var t=this.length();this.g8t(t+1);var r=this.Td+t&this.l8t-1;this.tm[r]=n,this.Yy=t+1},n.prototype.push=function(n){var t=this.length()+1;if(this.l8t<t)this._8t(n);else{var r=this.Td+t-1,i=this.l8t-1;this.tm[r&i]=n,this.Yy=t}},n.prototype.shift=function(){var n=this.Td,t=this.tm[n];return this.tm[n]=void 0,this.Td=n+1&this.l8t-1,this.Yy--,t},n.prototype.length=function(){return this.Yy},n.prototype.g8t=function(n){this.l8t<n&&this.w8t(this.l8t<<1)},n.prototype.w8t=function(n){var t=this.l8t;this.l8t=n;var r=this.Td+this.Yy&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.tm,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&&!(H&&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.v8t,tn=on,rn=new q(16),en=!1,(fn={m2:function(n){rn.push(n),en||(en=!0,tn(un))},Az:un=function(){for(;rn.length()>0;)rn.shift()();en=!1}}).Az,C.v8t=fn.m2,C.d8t=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.N_="web",n.B_="android",n.M_="android-tv",n.L_="ios",n.O_="tvos",n.F_="chromecast",n.U_="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),pn=_n.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),Sn=_n.match(/HbbTV\/([0-9.]+)/i),Tn=function(){function n(){this.V_=Boolean("ontouchstart"in self||self.DocumentTouch&&h instanceof self.DocumentTouch||v&&v.msMaxTouchPoints),this.W_=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(_n)||/(macintosh|mac(?=_powerpc)\s)/i.test(_n),this.z_=/Windows NT/i.test(_n),this.G_=In?p(In[1]):0,this.K_=/Android/i.test(_n),this.Y_=wn?p(wn[1]):0,this.J_=/windows phone (8|8\.1)/i.test(_n),this.ev=/iPhone/i.test(_n),this.hv=/iPad/i.test(_n),this.uv=this.W_&&this.V_&&!this.hv,this._v=/iPod/i.test(_n),this.Sv=/Mobile Safari/i.test(_n),this.Av=/EOS\d*STB/i.test(_n),this.bv=/APP\d*STB/i.test(_n),this.wv=(this.ev||this.hv||this.uv||this._v)&&!this.J_,this.pv=pn?p(pn[2]):0,this.Ev=this.J_||this.wv||this.K_||this.Sv,this.Iv=/CriOS/i.test(_n),this.Rv=Boolean(self.chrome&&/google/i.test(v.vendor))||this.Iv,this.Mv=this.Rv&&/Edg\//i.test(v.userAgent),this.Ov=yn?O(yn[1],10):0,this.Kg=Boolean(/CriOS/i.test(_n)),this.Qg=Boolean(self.chrome||/Chrome/i.test(_n)||this.Kg),this.Nv=dn?O(dn[1],10):0,this.Vv=/SMART-TV.*Tizen/i.test(_n),this.Wv=On?p(On[1]):0,this.Dv=this.Wv>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.Wv):void 0,this.zv=/webos|web0s/i.test(_n),this.Gv=/HbbTV/i.test(_n),this.Kv=!!Sn&&function(n){if(!n)return!1;var t=n.split(".").map(Number);return 3===t.length&&1===t[0]&&2===t[1]}(Sn[1]),this.Zv=/VIZIO/i.test(_n),this.$v=/Edge\/\d+/i.test(_n),this.rg=/Trident/i.test(_n),this.og=this.rg&&!self.ActiveXObject&&"ActiveXObject"in self,this.cg=/Vivaldi/i.test(_n),this.fg=/Firefox/i.test(_n)&&!/Seamonkey/i.test(_n),this.vg=gn?p(gn[1]):0,this.wg=/Safari/i.test(_n)&&!/Chrome/i.test(_n)&&!this.J_&&!this.Vv,this.yg=En?p(En[2]):0,this.Tg=Boolean(Rn),this.Eg=Rn?p(Rn[1]):0,this.Ig=/CrKey/.test(_n),this.Rg=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(_n),this.Ng=/PlayStation 4/i.test(_n),this.Mg="web"===vn.M_,this.Og="web"===vn.B_,this.Ug=this.Og||this.Mg,this.Hg="web"===vn.L_,this.qg="web"===vn.O_,this.Xg="web"===vn.F_}return ln(n,[{key:"Ke",get:function(){return this.V_}},{key:"H_",get:function(){return this.W_}},{key:"q_",get:function(){return this.z_}},{key:"X_",get:function(){return this.G_}},{key:"Q_",get:function(){return this.K_}},{key:"j_",get:function(){return this.Y_}},{key:"Z_",get:function(){return this.J_}},{key:"tv",get:function(){return this.ev}},{key:"rv",get:function(){return this.hv}},{key:"ov",get:function(){return this.uv}},{key:"fv",get:function(){return this._v}},{key:"vv",get:function(){return this.wv}},{key:"mv",get:function(){return this.pv}},{key:"yv",get:function(){return this.Av||this.bv}},{key:"Tv",get:function(){return this.Sv}},{key:"Ks",get:function(){return this.Ev}},{key:"Pv",get:function(){return this.Iv}},{key:"Cv",get:function(){return this.Rv}},{key:"xv",get:function(){var n;return null!=(n=this.Dv)?n:this.Nv}},{key:"Bv",get:function(){return this.Mv}},{key:"Lv",get:function(){var n;return(null==(n=a.chrome)?void 0:n.webview)&&this.Ov>0}},{key:"Fv",get:function(){return this.Ov}},{key:"Uv",get:function(){return this.Vv}},{key:"Hv",get:function(){return this.Wv}},{key:"qv",get:function(){return this.zv}},{key:"Xv",get:function(){return this.Gv}},{key:"Qv",get:function(){return this.Kv}},{key:"Yv",get:function(){return this.Zv}},{key:"Jv",get:function(){return this.$v}},{key:"eg",get:function(){return this.rg}},{key:"hg",get:function(){return this.og}},{key:"ag",get:function(){return this.cg}},{key:"dg",get:function(){return this.fg}},{key:"_g",get:function(){return this.vg}},{key:"gg",get:function(){return this.wg}},{key:"pg",get:function(){return 0===this.yg&&kn.vv?this.pv:this.yg}},{key:"Ag",get:function(){return this.Tg}},{key:"Sg",get:function(){return this.Eg}},{key:"Pg",get:function(){return this.Ig}},{key:"Cg",get:function(){return this.Rg}},{key:"xg",get:function(){return!(!this.qv&&!this.Uv)&&this.xv<=56}},{key:"Dg",get:function(){return this.Ng}},{key:"Bg",get:function(){return this.Mg}},{key:"Lg",get:function(){return this.Og}},{key:"Fg",get:function(){return this.Ug}},{key:"Vg",get:function(){return this.Hg}},{key:"Wg",get:function(){return this.qg}},{key:"zg",get:function(){return this.Xg}},{key:"Gg",get:function(){return this.Qg}},{key:"IS_IOS_CHROME",get:function(){return this.Kg}}]),n}();Tn.jg=new Tn;var kn=Tn.jg,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(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 Ln(n){return function(){var t=this,r=arguments;return new nn((function(i,e){var u=n.apply(t,r);function o(n){Pn(u,i,e,o,f,"next",n)}function f(n){Pn(u,i,e,o,f,"throw",n)}o(void 0)}))}}function Fn(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])}}}function Un(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 Mn(n,t){if(n){if("string"==typeof n)return Un(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)?Un(n,t):void 0}}function Vn(n){return function(n){if(Array.isArray(n))return Un(n)}(n)||function(n){if(void 0!==t&&null!=n[i]||null!=n["@@iterator"])return Array.from(n)}(n)||Mn(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.")}()}R.pow(2,-52),Array.prototype.find,Array.prototype.findLast;var Bn="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},Wn="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};Array.prototype.at;function Hn(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 xn(n){n.length=0}Array.prototype.flat,Array.prototype.flatMap;var Gn=function(){function n(){this.nw=!1,this.hw=!1,this.ow=[],this.aw=[]}var t=n.prototype;return t.iw=function(){if(!this.nw&&!this.hw){this.nw=!0;for(var n=0,t=this.ow.slice();n<t.length;n++){(0,t[n])()}this.Ju()}},t.Ju=function(){if(!this.hw){this.hw=!0;for(var n=0,t=this.aw.slice();n<t.length;n++){(0,t[n])()}xn(this.ow),xn(this.aw)}},t.uw=function(n){this.hw||this.ow.push(n)},t.cw=function(n){this.hw||Hn(this.ow,n)},t.lw=function(n){this.hw||this.aw.push(n)},t.dw=function(n){this.hw||Hn(this.aw,n)},n}(),jn=function(){function n(){this._w=new Gn}var t=n.prototype;return t.nf=function(){this._w.iw()},t.Ju=function(){this._w.Ju()},t.gw=function(n){var t=this._w;if(!t.nw)if(n.nw)t.iw();else if(!t.hw&&!n.hw){var r=function(){i(),t.iw()},i=function(){n.cw(r),n.dw(i),t.cw(r),t.dw(i)};n.uw(r),n.lw(i),t.uw(r),t.lw(i)}},t.ww=function(){var t=new n,r=new n,i=t.fw,e=r.fw,u=this._w,o=function(){i.nw&&e.hw||e.nw&&i.hw?u.iw():i.hw&&e.hw&&u.Ju()};i.uw(o),e.uw(o),i.lw(o),e.lw(o),t.gw(u),r.gw(u);return u.lw((function(){i.cw(o),e.cw(o),i.dw(o),e.dw(o)})),[t,r]},t[e]=function(){this.nf()},n.mw=function(t){for(var r=new n,i=0;i<t.length;i++){var e=t[i];void 0!==e&&r.gw(e)}return r},ln(n,[{key:"fw",get:function(){return this._w}}]),n}(),Kn=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];I.apply(this,t)};(Kn.prototype=g.create(I.prototype)).constructor=Kn;var qn=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}(Kn);nn.resolve();function zn(){return void 0!==h?h.createElement("video"):void 0}var Xn=Dn(zn),Yn=(Dn((function(){return"undefined"!=typeof HTMLVideoElement&&Xn()instanceof HTMLVideoElement})),null);try{Yn=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 $n(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function Zn(n){return!0===(n&&n.yw)}function Jn(n){var t=R.clz32(n&-n);return n?31-t:t}$n.prototype.yw,g.defineProperty($n.prototype,"yw",{value:!0}),$n.isLong=Zn;var Qn={},nt={};function tt(n,t){var r,i,e;return t?(e=0<=(n>>>=0)&&n<256)&&(i=nt[n])?i:(r=it(n,0,!0),e&&(nt[n]=r),r):(e=-128<=(n|=0)&&n<128)&&(i=Qn[n])?i:(r=it(n,n<0?-1:0,!1),e&&(Qn[n]=r),r)}function rt(n,t){if(S(n))return t?lt:ht;if(t){if(n<0)return lt;if(n>=st)return wt}else{if(n<=-ct)return It;if(n+1>=ct)return yt}return n<0?rt(-n,t).neg():it(n%ft|0,n/ft|0,t)}function it(n,t,r){return new $n(n,t,r)}$n.fromInt=tt,$n.fromNumber=rt,$n.fromBits=it;var et=R.pow;function ut(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?lt:ht;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 ut(n.substring(1),t,r).neg();for(var e=rt(et(r,8)),u=ht,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=rt(et(r,f));u=u.mul(c).add(rt(s))}else u=(u=u.mul(e)).add(rt(s))}return u.unsigned=t,u}function ot(n,t){return"number"==typeof n?rt(n,t):"string"==typeof n?ut(n,t):it(n.low,n.high,"boolean"==typeof t?t:n.unsigned)}$n.fromString=ut,$n.fromValue=ot;var ft=4294967296,st=ft*ft,ct=st/2,at=tt(1<<24),ht=tt(0);$n.ZERO=ht;var lt=tt(0,!0);$n.UZERO=lt;var vt=tt(1);$n.ONE=vt;var _t=tt(1,!0);$n.UONE=_t;var dt=tt(-1);$n.NEG_ONE=dt;var yt=it(-1,2147483647,!1);$n.MAX_VALUE=yt;var wt=it(-1,-1,!0);$n.MAX_UNSIGNED_VALUE=wt;var It=it(0,-2147483648,!1);$n.MIN_VALUE=It;var Et=$n.prototype;function gt(){return Date.now()||(new Date).getTime()}Et.toInt=function(){return this.unsigned?this.low>>>0:this.low},Et.toNumber=function(){return this.unsigned?(this.high>>>0)*ft+(this.low>>>0):this.high*ft+(this.low>>>0)},Et.toString=function(n){if((n=n||10)<2||36<n)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(It)){var t=rt(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=rt(et(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}},Et.getHighBits=function(){return this.high},Et.getHighBitsUnsigned=function(){return this.high>>>0},Et.getLowBits=function(){return this.low},Et.getLowBitsUnsigned=function(){return this.low>>>0},Et.getNumBitsAbs=function(){if(this.isNegative())return this.eq(It)?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},Et.isZero=function(){return 0===this.high&&0===this.low},Et.eqz=Et.isZero,Et.isNegative=function(){return!this.unsigned&&this.high<0},Et.isPositive=function(){return this.unsigned||this.high>=0},Et.isOdd=function(){return 1==(1&this.low)},Et.isEven=function(){return 0==(1&this.low)},Et.equals=function(n){return Zn(n)||(n=ot(n)),(this.unsigned===n.unsigned||this.high>>>31!=1||n.high>>>31!=1)&&(this.high===n.high&&this.low===n.low)},Et.eq=Et.equals,Et.notEquals=function(n){return!this.eq(n)},Et.neq=Et.notEquals,Et.ne=Et.notEquals,Et.lessThan=function(n){return this.comp(n)<0},Et.lt=Et.lessThan,Et.lessThanOrEqual=function(n){return this.comp(n)<=0},Et.lte=Et.lessThanOrEqual,Et.le=Et.lessThanOrEqual,Et.greaterThan=function(n){return this.comp(n)>0},Et.gt=Et.greaterThan,Et.greaterThanOrEqual=function(n){return this.comp(n)>=0},Et.gte=Et.greaterThanOrEqual,Et.ge=Et.greaterThanOrEqual,Et.compare=function(n){if(Zn(n)||(n=ot(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},Et.comp=Et.compare,Et.negate=function(){return!this.unsigned&&this.eq(It)?It:this.not().add(vt)},Et.neg=Et.negate,Et.add=function(n){Zn(n)||(n=ot(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,it((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},Et.subtract=function(n){return Zn(n)||(n=ot(n)),this.add(n.neg())},Et.sub=Et.subtract,Et.multiply=function(n){if(this.isZero())return this;if(Zn(n)||(n=ot(n)),Yn)return it(Yn.mul(this.low,this.high,n.low,n.high),Yn.get_high(),this.unsigned);if(n.isZero())return this.unsigned?lt:ht;if(this.eq(It))return n.isOdd()?It:ht;if(n.eq(It))return this.isOdd()?It:ht;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(at)&&n.lt(at))return rt(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,it((h&=65535)<<16|(l&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},Et.mul=Et.multiply,Et.divide=function(n){if(Zn(n)||(n=ot(n)),n.isZero())throw I("division by zero");var t,r,i;if(Yn)return this.unsigned||-2147483648!==this.high||-1!==n.low||-1!==n.high?it((this.unsigned?Yn.div_u:Yn.div_s)(this.low,this.high,n.low,n.high),Yn.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?lt:ht;if(this.unsigned){if(n.unsigned||(n=n.toUnsigned()),n.gt(this))return lt;if(n.gt(this.shru(1)))return _t;i=lt}else{if(this.eq(It))return n.eq(vt)||n.eq(dt)?It:n.eq(It)?vt:(t=this.shr(1).div(n).shl(1)).eq(ht)?n.isNegative()?vt:dt:(r=this.sub(n.mul(t)),i=t.add(r.div(n)));if(n.eq(It))return this.unsigned?lt:ht;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=ht}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:et(2,e-48),o=rt(t),f=o.mul(n);f.isNegative()||f.gt(r);)f=(o=rt(t-=u,this.unsigned)).mul(n);o.isZero()&&(o=vt),i=i.add(o),r=r.sub(f)}return i},Et.div=Et.divide,Et.modulo=function(n){return Zn(n)||(n=ot(n)),Yn?it((this.unsigned?Yn.rem_u:Yn.rem_s)(this.low,this.high,n.low,n.high),Yn.get_high(),this.unsigned):this.sub(this.div(n).mul(n))},Et.mod=Et.modulo,Et.rem=Et.modulo,Et.not=function(){return it(~this.low,~this.high,this.unsigned)},Et.countLeadingZeros=function(){return this.high?R.clz32(this.high):R.clz32(this.low)+32},Et.clz=Et.countLeadingZeros,Et.countTrailingZeros=function(){return this.low?Jn(this.low):Jn(this.high)+32},Et.ctz=Et.countTrailingZeros,Et.and=function(n){return Zn(n)||(n=ot(n)),it(this.low&n.low,this.high&n.high,this.unsigned)},Et.or=function(n){return Zn(n)||(n=ot(n)),it(this.low|n.low,this.high|n.high,this.unsigned)},Et.xor=function(n){return Zn(n)||(n=ot(n)),it(this.low^n.low,this.high^n.high,this.unsigned)},Et.shiftLeft=function(n){return Zn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?it(this.low<<n,this.high<<n|this.low>>>32-n,this.unsigned):it(0,this.low<<n-32,this.unsigned)},Et.shl=Et.shiftLeft,Et.shiftRight=function(n){return Zn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?it(this.low>>>n|this.high<<32-n,this.high>>n,this.unsigned):it(this.high>>n-32,this.high>=0?0:-1,this.unsigned)},Et.shr=Et.shiftRight,Et.shiftRightUnsigned=function(n){return Zn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?it(this.low>>>n|this.high<<32-n,this.high>>>n,this.unsigned):it(32===n?this.high:this.high>>>n-32,0,this.unsigned)},Et.shru=Et.shiftRightUnsigned,Et.shr_u=Et.shiftRightUnsigned,Et.rotateLeft=function(n){var t;return Zn(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?it(this.high,this.low,this.unsigned):n<32?(t=32-n,it(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned)):(t=32-(n-=32),it(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned))},Et.rotl=Et.rotateLeft,Et.rotateRight=function(n){var t;return Zn(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?it(this.high,this.low,this.unsigned):n<32?(t=32-n,it(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned)):(t=32-(n-=32),it(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned))},Et.rotr=Et.rotateRight,Et.toSigned=function(){return this.unsigned?it(this.low,this.high,!1):this},Et.toUnsigned=function(){return this.unsigned?this:it(this.low,this.high,!0)},Et.toBytes=function(n){return n?this.toBytesLE():this.toBytesBE()},Et.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]},Et.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]},$n.fromBytes=function(n,t,r){return r?$n.fromBytesLE(n,t):$n.fromBytesBE(n,t)},$n.fromBytesLE=function(n,t){return new $n(n[0]|n[1]<<8|n[2]<<16|n[3]<<24,n[4]|n[5]<<8|n[6]<<16|n[7]<<24,t)},$n.fromBytesBE=function(n,t){return new $n(n[4]<<24|n[5]<<16|n[6]<<8|n[7],n[0]<<24|n[1]<<16|n[2]<<8|n[3],t)};$n.fromNumber(9007199254740991);var Rt=Boolean("ontouchstart"in self||self.DocumentTouch&&h instanceof self.DocumentTouch)||Boolean(v&&v.msMaxTouchPoints),Ot=Xn(),pt=Boolean(Ot&&Ot.webkitShowPlaybackTargetPicker),St=function(){function n(){this.bw=void 0,this.Xw=!1,this.Ke=Rt,this.Ks=!1,this.pw=!0}var t=n.prototype;return t.Tw=function(){return 0},t.Ww=function(n,t){return!0},t.qw=function(n){return n>=.3333333333333333},ln(n,[{key:"Aw",get:function(){return void 0===this.bw&&(this.bw=this.Tw()),this.bw}},{key:"Sw",get:function(){return!kn.Cg}},{key:"Ew",get:function(){if(a.screen)return{width:a.screen.width,height:a.screen.height}}},{key:"Pw",get:function(){return a.devicePixelRatio||1}},{key:"Iw",get:function(){return pt}},{key:"Cw",get:function(){return!1}},{key:"Rw",get:function(){return!0}},{key:"xw",get:function(){return!!(kn.gg||kn.vv||kn.Lv)||!!kn.Yv}},{key:"Dw",get:function(){return kn.Yv}},{key:"Nw",get:function(){return!kn.vv}},{key:"Bw",get:function(){return!0}},{key:"Mw",get:function(){return!0}},{key:"Lw",get:function(){return!1}},{key:"Ow",get:function(){}},{key:"Fw",get:function(){return!0}},{key:"Uw",get:function(){return!1}},{key:"Vw",get:function(){return kn.Yv}},{key:"Hw",get:function(){return!1}},{key:"zw",get:function(){return!1}}]),n}(),Tt=function(n){function t(){return n.call(this)||this}return an(t,n),t}(St),kt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.Ww=function(n,t){if(n&&n.Gw&&t&&t.Gw){var r=bt(n.Gw,"mp4a.40.2")&&bt(t.Gw,"mp4a.40.5"),i=bt(n.Gw,"mp4a.40.5")&&bt(t.Gw,"mp4a.40.2"),e=bt(n.Gw,"mp4a.40.2")&&bt(t.Gw,"mp4a.40.34"),u=bt(n.Gw,"mp4a.40.34")&&bt(t.Gw,"mp4a.40.2"),o=bt(n.Gw,"mp4a.40.5")&&bt(t.Gw,"mp4a.40.34"),f=bt(n.Gw,"mp4a.40.34")&&bt(t.Gw,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},ln(t,[{key:"Ow",get:function(){if(kn.H_)return 4096}}]),t}(Tt);function bt(n,t){return n.indexOf(t)>-1}var mt,Nt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.qw=function(n){return n>=2},t}(Tt),At=function(n){function t(){var t;return(t=n.call(this)||this).Xw=kn.pg>=11,t.pw=kn.gg&&!(kn.vv&&kn.pg<10),t}return an(t,n),ln(t,[{key:"Hw",get:function(){return kn.pg<17}},{key:"zw",get:function(){return!0}}]),t}(Tt),Ct=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),ln(t,[{key:"Fw",get:function(){return!kn.q_||(kn.Bv?92!==kn.Fv:kn.xv>=100)}}]),t}(Tt);var Dt=function(){var n=zn();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(kn.ov)return!1;var n=zn();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var Pt=function(n){function t(t){var r;return(r=n.call(this)||this).Qw=t,r.Xw=r.Qw.Xw,r.Ke=r.Qw.Ke,r.pw=Dt&&r.Qw.pw,r}an(t,n);var r=t.prototype;return r.Tw=function(){return this.Qw.Aw},r.Ww=function(n,t){return this.Qw.Ww(n,t)},r.qw=function(n){return this.Qw.qw(n)},ln(t,[{key:"Ow",get:function(){return this.Qw.Ow}},{key:"Fw",get:function(){return this.Qw.Fw}},{key:"Hw",get:function(){return this.Qw.Hw}}]),t}(St),Lt=function(n){function t(t){var r;return(r=n.call(this,t)||this).Xw=!0,r.Ks=!0,r}return an(t,n),ln(t,[{key:"Lw",get:function(){return kn.vv}}]),t}(Pt);var Ft=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.Tw=function(){return function(n){return n&&An(a.ManagedMediaSource)?a.ManagedMediaSource:An(a.MediaSource)?a.MediaSource:void 0}(!0)?n.prototype.Tw.call(this):1},ln(t,[{key:"Lw",get:function(){return!0}}]),t}(Lt),Ut=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),t.prototype.Ww=function(t,r){return n.prototype.Ww.call(this,t,r)},ln(t,[{key:"Cw",get:function(){return kn.Hv<3}},{key:"Rw",get:function(){return kn.Hv>=3}},{key:"Ew",get:function(){var n=this;return a.tizen&&!this.Zw&&a.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.Zw={width:r,height:i})})),this.Zw}},{key:"Uw",get:function(){return kn.Hv<3}}]),t}(Pt),Mt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),ln(t,[{key:"Ew",get:function(){var n=this;return a.webOS&&!this.Zw&&a.webOS.deviceInfo((function(t){n.Zw={width:t.screenWidth,height:t.screenHeight}})),this.Zw}},{key:"Bw",get:function(){return!1}}]),t}(Pt),Vt=function(n){function t(){return n.apply(this,arguments)||this}return an(t,n),ln(t,[{key:"Lw",get:function(){return!0}},{key:"zw",get:function(){return this.Qw.zw}}]),t}(Pt);!function(n){mt=n}(function(){var n=function(){if(kn.dg)return new kt;if(kn.Jv||kn.eg)return new Nt;if(kn.gg)return new At;if(kn.Cv)return new Ct;return new Tt}();return kn.vv?new Ft(n):kn.Ks?new Lt(n):kn.Uv?new Ut(n):kn.qv?new Mt(n):kn.H_?new Vt(n):new Pt(n)}());var Bt=!(kn.eg&&!kn.hg),Wt=self.console;function Ht(n){if(Nn(n))try{return JSON.stringify(n)}catch(n){}return n}function xt(n){return n.map(Ht).join(" ")}function Gt(n){var t=Wt&&Wt[n];return t?t.bind&&Bt?t.bind(Wt):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];Wt[n](xt(r))}:void 0}var jt=Gt("log")||Cn,Kt=Gt("warn")||jt.bind(void 0,"WARNING:"),qt=Gt("error")||jt.bind(void 0,"ERROR:"),zt=function(){var n=Wt&&Wt.assert;return n?n.bind&&Bt?n.bind(Wt):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];Wt.assert(n,xt(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||qt.apply(void 0,["Assertion failed:"].concat(Vn(r)))}}();function Xt(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 Yt(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){$t(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&$t(r,null,n.length,n),n}function $t(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 Zt=/[a-zA-Z]/,Jt=/[0-9]/,Qt=/[0-9a-fA-F]/,nr=/^0x/i,tr=/^[0-9]+$/,rr=/^[0-9a-fA-F]+$/,ir=/^[0-7]+$/,er=g.prototype.toString,ur=Array.isArray||function(n){return"[object Array]"===er.call(n)},or=void 0!==t&&"symbol"==typeof i;function fr(n){return ur(n)?n:Array.from(n)}function sr(n,t,r){var i=n[t];n[t]=n[r],n[r]=i}function cr(n){return n>=65&&n<=90}function ar(n){return cr(n)||function(n){return n>=97&&n<=122}(n)}function hr(n){return n>=48&&n<=57}function lr(n){return hr(n)||ar(n)}function vr(n){return hr(n)||n>=65&&n<=70||n>=97&&n<=102}function _r(n){return cr(n)?n+32:n}function dr(n){return hr(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function yr(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var wr=R.min,Ir=String.fromCharCode,Er=16384;function gr(n){for(var t=n.length,r=[],i=0;i<t;i+=Er){var e=wr(i+Er,t);r.push(Ir.apply(null,n.slice(i,e)))}return r.join("")}var Rr=2147483647,Or=/[^\0-\x7E]/,pr=/[\x2E\u3002\uFF0E\uFF61]/g,Sr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Tr=R.floor,kr=String.fromCharCode;function br(n){throw new RangeError(Sr[n])}function mr(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 Nr,Ar,Cr,Dr=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},Pr=function(n,t,r){var i=0;for(n=r?Tr(n/700):n>>1,n+=Tr(n/t);n>455;i+=36)n=Tr(n/35);return Tr(i+36*n/(n+38))},Lr=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(pr,".")).split("."),t).join(".");return i+e}(n,(function(n){return Or.test(n)?"xn--"+function(n){for(var t=[],r=(n=mr(n)).length,i=128,e=0,u=72,o=0,f=n;o<f.length;o++){var s=f[o];s<128&&t.push(kr(s))}var c=t.length,a=c;for(c&&t.push("-");a<r;){for(var h=Rr,l=0,v=n;l<v.length;l++){var _=v[l];_>=i&&_<h&&(h=_)}var d=a+1;h-i>Tr((Rr-e)/d)&&br("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>Rr&&br("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,p=36-R;t.push(kr(Dr(R+O%p,0))),E=Tr(O/p)}t.push(kr(Dr(E,0))),u=Pr(e,d,a==c),e=0,++a}}++e,++i}return t.join("")}(n):n}))};function Fr(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 gr(t)}function Ur(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 Vr(n,t){0!=(4294967168&n)?(0==(4294965248&n)?t.push(n>>6&31|192):0==(4294901760&n)?(Ur(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 Br(n){for(var t=[],r=0;r<n.length;r++){Vr(n[r],t)}return t}function Wr(){if(Cr>=Ar)throw new I("Invalid byte index");var n=255&Nr[Cr];if(Cr++,128==(192&n))return 63&n;throw new I("Invalid continuation byte")}function Hr(){var n,t;if(Cr>Ar)throw new I("Invalid byte index");if(Cr===Ar)return!1;if(n=255&Nr[Cr],Cr++,0==(128&n))return n;if(192==(224&n)){if((t=(31&n)<<6|Wr())>=128)return t;throw new I("Invalid continuation byte")}if(224==(240&n)){if((t=(15&n)<<12|Wr()<<6|Wr())>=2048)return Ur(t),t;throw new I("Invalid continuation byte")}if(240==(248&n)&&(t=(7&n)<<18|Wr()<<12|Wr()<<6|Wr())>=65536&&t<=1114111)return t;throw new I("Invalid UTF-8 detected")}function xr(n){return[37,yr(n>>4),yr(15&n)]}function Gr(n){return function(n){return n>=0&&n<=31}(n)||n>126}function jr(n){return Gr(n)||32===n||34===n||60===n||62===n||96===n}function Kr(n){return jr(n)||35===n||63===n||123===n||125===n}function qr(n){return Kr(n)||47===n||58===n||59===n||61===n||64===n||n>=91&&n<=94||124===n}function zr(n){return n<33||n>126||34===n||35===n||60===n||62===n}function Xr(n){return zr(n)||39===n}function Yr(n,t){if(!t(n))return[n];for(var r=Br([n]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,xr(u))}return i}function $r(n,t){for(var r=[],i=0,e=mr(n);i<e.length;i++){var u=e[i];r.push.apply(r,Yr(u,t))}return Fr(r)}function Zr(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&&vr(n[i+1])&&vr(n[i+2])){var u=dr(n[i+1])<<4|dr(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(Br(n))}function Jr(n){return Fr(function(n){Nr=n.slice(),Ar=Nr.length,Cr=0;for(var t,r=[];!1!==(t=Hr());)r.push(t);return r}(Zr(mr(n))))}function Qr(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&&Qt.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(!Jt.test(n[u]))throw new E;for(;u<t&&Jt.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;)sr(r,i,e+h-1),i-=1,h-=1}else if(8!==i)throw new E;return r}function ni(n){var t=10,r=tr;return nr.test(n)?(n=n.slice(2),t=16,r=rr):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=ir),""===n?0:r.test(n)?O(n,t):void 0}var ti={Jw:4},ri=/[\0\t\n\r #%/:?@\[\\\]]/,ii=/[\0\t\n\r #/:?@\[\\\]]/;function ei(n,t){if("["===n[0]){if("]"!==n[n.length-1])throw new E("Invalid IPv6 address");return{Jw:2,$w:Qr(n.slice(1,-1))}}if(!t)return function(n){if(ii.test(n))throw new E("Invalid code point in opaque host");var t=$r(n,Gr);return""===t?ti:{Jw:3,tm:t}}(n);var r=function(n){var t=function(n){return Lr(n.toLowerCase())}(n);return t}(Jr(n));if(ri.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=ni(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?{Jw:1,$w:i}:""===r?ti:{Jw:0,im:r}}function ui(n){switch(n.Jw){case 0:return n.im;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.$w);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.$w)+"]";case 3:return n.tm;case 4:return""}}var oi=/\+/g;function fi(n){return 42===n||45===n||46===n||95===n||lr(n)}function si(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(oi," "),f=f.replace(oi," ");var s=Jr(o),c=Jr(f);r.push([s,c])}}return r}function ci(n){for(var t="",r=0;r<n.length;r++){var i=n[r];r>0&&(t+="&"),t+=ai(Br(mr(i[0])))+"="+ai(Br(mr(i[1])))}return t}function ai(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];32===i?t.push(43):fi(i)?t.push(i):t.push.apply(t,xr(i))}return gr(t)}var hi=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function li(n){var t=""+n,r=hi.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(_i(u))if(di(u)||e===r-1)i.push(vi);else{var o=n.charCodeAt(e+1);di(o)?(i.push(u,o),e++):i.push(vi)}else i.push(u)}return n.slice(0,t)+gr(i)}(t,r.index):t}var vi=65533,_i=function(n){return 55296==(63488&n)},di=function(n){return 0!=(1024&n)};function yi(n,t){var r=n[0],i=t[0];return r===i?0:r<i?-1:1}function wi(n){n.nm.length=0}function Ii(n,t){!function(n,t){for(var r=0;r<t.length;r++)n[r]=t[r];n.length=t.length}(n.nm,si(t))}function Ei(n){if(n.hm){var t=ci(n.nm);""===t&&(t=null),n.hm.hm.um=t}}var gi=function(){function n(n){if(void 0===n&&(n=void 0),this.hm=null,null==n)this.nm=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof gi&&!!ur(n.nm)&&(!or||n[i]===Ri)}(n))this.nm=n.nm.slice();else if(function(n){return null!=n&&(!!ur(n)||!!or&&"function"==typeof n[i])}(n)){this.nm=[];for(var t=0,r=fr(n);t<r.length;t++){var e=fr(r[t]);if(2!==e.length)throw new E("Invalid name-value pair");this.nm.push([li(e[0]),li(e[1])])}}else for(var u in this.nm=[],n)g.prototype.hasOwnProperty.call(n,u)&&this.nm.push([li(u),li(n[u])]);else(n=li(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.nm=si(n)}var t=n.prototype;return t.append=function(n,t){n=li(n),t=li(t),this.nm.push([n,t]),Ei(this)},t.delete=function(n){n=li(n);for(var t=this.nm,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}Ei(this)},t.get=function(n){n=li(n);for(var t=this.nm,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},t.getAll=function(n){n=li(n);for(var t=this.nm,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=li(n);for(var t=this.nm,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},t.set=function(n,t){n=li(n),t=li(t);for(var r=this.nm,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]),Ei(this)},t.sort=function(){Yt(this.nm,yi),Ei(this)},t.toString=function(){return ci(this.nm)},t.entries=function(){return new Ti(this.nm,Oi)},t.keys=function(){return new Ti(this.nm,pi)},t.values=function(){return new Ti(this.nm,Si)},t.forEach=function(n){var t=this;this.nm.forEach((function(r){return n(r[1],r[0],t)}))},n}(),Ri=gi.prototype.entries;or&&(gi.prototype[i]=Ri);var Oi=function(n){return[n[0],n[1]]},pi=function(n){return n[0]},Si=function(n){return n[1]},Ti=function(){function n(n,t){this.lm=0,this.nm=n,this.dm=t}return n.prototype.next=function(){return this.lm<this.nm.length?{done:!1,value:this.dm(this.nm[this.lm++])}:{done:!0,value:void 0}},n}(),ki="null";var bi=g.create(null);bi.ftp=21,bi.file=0,bi.gopher=70,bi.http=80,bi.https=443,bi.ws=80,bi.wss=443;var mi=/^(?:\.|%2e)$/i,Ni=/^(?:\.|%2e){2}$/i;function Ai(n){return mi.test(n)}function Ci(n){return Ni.test(n)}function Di(n){return void 0!==bi[n]}function Pi(n){return Di(n.fm)}function Li(n){return""!==n._m||""!==n.vm}function Fi(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 Ui(n){return 2===n.length&&Zt.test(n[0])&&(":"===n[1]||"|"===n[1])}function Mi(n){return 2===n.length&&Ui(gr(n))}function Vi(n){return Ui(n)&&":"===n[1]}function Bi(n){var t=n.gm;0!==t.length&&("file"===n.fm&&1===t.length&&Vi(t[0])||t.pop())}function Wi(n){return null===n.wm||ti===n.wm||n.pm||"file"===n.fm}var Hi=-1,xi=/\t|\n|\r/g,Gi=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function ji(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new qi,n=n.replace(Gi,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=mr(n=n.replace(xi,"")),a=c.length,h=0;h<=a;){var l=h<a?c[h]:Hi;switch(e){case 0:if(!ar(l)){if(null===i){u.length=0,e=2;continue}throw new E("Invalid scheme")}u.push(_r(l)),e=1;break;case 1:if(lr(l)||43===l||45===l||46===l)u.push(_r(l));else{if(58!==l){if(null===i){u.length=0,e=2,h=0;continue}throw new E("Invalid scheme")}var v=Fr(u);if(null!==i){if(Di(r.fm)&&!Di(v))return;if(!Di(r.fm)&&Di(v))return;if((Li(r)||null!==r.ym)&&"file"===v)return;if("file"===r.fm&&(r.wm===ti||null===r.wm))return}if(r.fm=v,null!==i)return void(Pi(r)&&r.ym===bi[r.fm]&&(r.ym=null));u.length=0,"file"===r.fm?e=13:Pi(r)&&t&&t.fm===r.fm?e=3:Pi(r)?e=7:47===c[h+1]?(e=4,h+=1):(r.pm=!0,r.gm.push(""),e=18)}break;case 2:if(!t||t.pm&&35!==l)throw new E("Invalid scheme");t.pm&&35===l?(r.fm=t.fm,r.gm=t.gm.slice(),r.um=t.um,r.Am="",r.pm=!0,e=20):"file"!==t.fm?(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.fm=t.fm,Hi===l?(r._m=t._m,r.vm=t.vm,r.wm=t.wm,r.ym=t.ym,r.gm=t.gm.slice(),r.um=t.um):47===l?e=6:63===l?(r._m=t._m,r.vm=t.vm,r.wm=t.wm,r.ym=t.ym,r.gm=t.gm.slice(),r.um="",e=19):35===l?(r._m=t._m,r.vm=t.vm,r.wm=t.wm,r.ym=t.ym,r.gm=t.gm.slice(),r.um=t.um,r.Am="",e=20):92===l&&Pi(r)?e=6:(r._m=t._m,r.vm=t.vm,r.wm=t.wm,r.ym=t.ym,r.gm=t.gm.slice(),r.gm.pop(),e=17,h-=1);break;case 6:!Pi(r)||47!==l&&92!==l?47===l?e=9:(r._m=t._m,r.vm=t.vm,r.wm=t.wm,r.ym=t.ym,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=Fr(Yr(d,qr));s?r.vm+=y:r._m+=y}else s=!0}u.length=0}else if(Hi===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.fm)h-=1,e=15;else if(58!==l||f)if(Hi===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&&(Li(r)||null!==r.ym))return;var w=ei(Fr(u),Pi(r));if(r.wm=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=ei(Fr(u),Pi(r));if(r.wm=I,u.length=0,e=12,11===i)return}break;case 12:if(hr(l))u.push(l);else{if(!(Hi===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(Fr(u),10);if(g>65535)throw new E("Invalid port");r.ym=g===bi[r.fm]?null:g,u.length=0}if(null!==i)return;e=16,h-=1}break;case 13:r.fm="file",47===l||92===l?e=14:t&&"file"===t.fm?Hi===l?(r.wm=t.wm,r.gm=t.gm.slice(),r.um=t.um):63===l?(r.wm=t.wm,r.gm=t.gm.slice(),r.um="",e=19):35===l?(r.wm=t.wm,r.gm=t.gm.slice(),r.um=t.um,r.Am="",e=20):(Fi(c.slice(h))||(r.wm=t.wm,r.gm=t.gm.slice(),Bi(r)),e=17,h-=1):(e=17,h-=1);break;case 14:47===l||92===l?e=15:(t&&"file"===t.fm&&!Fi(c.slice(h))&&(Vi(t.gm[0])?r.gm.push(t.gm[0]):r.wm=t.wm),e=17,h-=1);break;case 15:if(Hi===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.wm=ti,null!==i)return;e=16}else{var R=ei(Fr(u),Pi(r));if(0===R.Jw&&"localhost"===R.im&&(R=ti),r.wm=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.um="",e=19):null===i&&35===l?(r.Am="",e=20):Hi!==l&&(e=17,47!==l&&(h-=1));break;case 17:if(Hi===l||47===l||Pi(r)&&92===l||null===i&&(63===l||35===l)){var p=Fr(u);if(Ci(p)?(Bi(r),47===l||Pi(r)&&92===l||r.gm.push("")):!Ai(p)||47===l||Pi(r)&&92===l?Ai(p)||("file"===r.fm&&0===r.gm.length&&Mi(u)&&(ti!==r.wm&&null!==r.wm&&(r.wm=ti),u[1]=58,p=Fr(u)),r.gm.push(p)):r.gm.push(""),u.length=0,"file"===r.fm&&(Hi===l||63===l||35===l))for(;r.gm.length>1&&""===r.gm[0];)r.gm.shift();63===l?(r.um="",e=19):35===l&&(r.Am="",e=20)}else u.push.apply(u,Yr(l,Kr));break;case 18:63===l?(r.um="",e=19):35===l?(r.Am="",e=20):Hi!==l&&(r.gm[0]+=Fr(Yr(l,Gr)));break;case 19:null===i&&35===l?(r.Am="",e=20):Hi!==l&&(r.um+=Fr(Yr(l,Pi(r)?Xr:zr)));break;case 20:Hi===l||0===l||(r.Am+=Fr(Yr(l,jr)))}h++}return r}function Ki(n,t,r,i){try{ji(n,t,r,i)}catch(n){}}var qi=function(){this.fm="",this._m="",this.vm="",this.wm=null,this.ym=null,this.gm=[],this.um=null,this.Am=null,this.pm=!1};function zi(n){switch(n.fm){case"blob":var t;try{t=ji(n.gm[0],null)}catch(n){return ki}return zi(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(n,t,r){return n+"://"+ui(t)+(null===r?"":":"+r)}(n.fm,n.wm,n.ym);default:return ki}}var Xi=function(){function n(n,t){var r,i=null;if(null!=t)if(function(n){return null!=n&&n instanceof Xi&&"object"==typeof n.hm}(t))i=t.hm;else try{i=ji(String(t),null)}catch(n){throw new E("Invalid base URL: "+n.message)}try{r=ji(String(n),i)}catch(n){throw new E("Invalid URL: "+n.message)}var e=r.um;this.hm=r,this.um=function(n){var t=new gi;return null!==n&&Ii(t,n),t}(e),this.um.hm=this}var t=n.prototype;return t.toString=function(){return this.href},t.toJSON=function(){return this.href},function(n,t,r){t&&Xt(n.prototype,t),r&&Xt(n,r)}(n,[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.fm+":";if(null!==n.wm?(r+="//",Li(n)&&(r+=n._m,""!==n.vm&&(r+=":"+n.vm),r+="@"),r+=ui(n.wm),null!==n.ym&&(r+=":"+n.ym)):null===n.wm&&"file"===n.fm&&(r+="//"),n.pm)r+=n.gm[0];else for(var i=0,e=n.gm;i<e.length;i++)r+="/"+e[i];return null!==n.um&&(r+="?"+n.um),t||null===n.Am||(r+="#"+n.Am),r}(this.hm)},set:function(n){var t;try{t=ji(String(n),null)}catch(n){throw new E("Invalid URL: "+n.message)}this.hm=t,wi(this.um);var r=this.hm.um;null!==r&&Ii(this.um,r)}},{key:"origin",get:function(){return zi(this.hm)}},{key:"protocol",get:function(){return this.hm.fm+":"},set:function(n){Ki(n+":",null,this.hm,0)}},{key:"username",get:function(){return this.hm._m},set:function(n){Wi(this.hm)||(this.hm._m=$r(n,qr))}},{key:"password",get:function(){return this.hm.vm},set:function(n){Wi(this.hm)||(this.hm.vm=$r(n,qr))}},{key:"host",get:function(){var n=this.hm,t=n.wm;if(null===t)return"";var r=n.ym,i=ui(t);return null!==r&&(i+=":"+r),i},set:function(n){this.hm.pm||Ki(n,null,this.hm,10)}},{key:"hostname",get:function(){var n=this.hm.wm;return null===n?"":ui(n)},set:function(n){this.hm.pm||Ki(n,null,this.hm,11)}},{key:"port",get:function(){var n=this.hm.ym;return null===n?"":""+n},set:function(n){Wi(this.hm)||(""===n?this.hm.ym=null:Ki(n,null,this.hm,12))}},{key:"pathname",get:function(){var n=this.hm.gm;return this.hm.pm?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.hm.pm||(this.hm.gm.length=0,Ki(n,null,this.hm,16))}},{key:"search",get:function(){var n=this.hm.um;return null===n||""===n?"":"?"+n},set:function(n){n=li(n);var t=this.hm;if(""===n)return t.um=null,void wi(this.um);"?"===n[0]&&(n=n.slice(1)),t.um="",Ki(n,null,t,19),Ii(this.um,n)}},{key:"searchParams",get:function(){return this.um}},{key:"hash",get:function(){var n=this.hm.Am;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.hm.Am="",Ki(n,null,this.hm,20)):this.hm.Am=null}}]),n}();function Yi(n){return n.document&&n.document.baseURI||n.location.href||""}var $i=function(){function n(){this.Um=new Zi,this.Wm=mt,this.Hm=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.Yg=function(){return self.performance.now()}:this.Yg=gt}var t=n.prototype;return t.Tm=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];jt.apply(void 0,Vn(t))},t.Sm=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Kt.apply(void 0,Vn(t))},t.Em=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];qt.apply(void 0,Vn(t))},t.Pm=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];zt.apply(void 0,[n].concat(Vn(r)))},t.Jg=function(n,t){return _(n,t)},t.Im=function(n,t){return y(n,t)},t.Zg=function(n){d(n)},t.Cm=function(n){w(n)},t.Rm=function(){return this.xm.Rm()},t.Dm=function(){return this.xm.Dm()},t.Nm=function(){return this.xm.Nm()},t.Bm=function(){return this.xm.Bm()},t.Mm=function(){return this.xm.Mm()},t.Lm=function(n,t){return this.xm.Lm(n,t)},t.Om=function(n){return this.xm.Om(n)},t.Fh=function(n,t){var r;return void 0===t&&(t=Yi(a)),r="object"!==(void 0===t?"undefined":b(t))||t instanceof Xi?t:t.href,new Xi(n,r)},t.Vm=function(n,t){if(void 0===t&&(t=Yi(a)),this.Hm){var r=function(n){return"string"==typeof n}(t)?t:t.toString();return new self.URL(n,r).href}return this.Fh(n,t).href},ln(n,[{key:"Fm",get:function(){return this.Um}},{key:"Zs",get:function(){return this.Wm}},{key:"qm",get:function(){return{zm:v&&v.userAgent.match(/Android /i)?"Android":"other",Xm:Boolean(v&&v.userAgent.match(/Android 8.0.0/i))}}},{key:"Gm",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"Qm",get:function(){return"languages"in v?v.languages.slice():[v.language]}}]),n}(),Zi=function(){function n(){}return ln(n,[{key:"Km",get:function(){return v.oscpu}},{key:"Zs",get:function(){return v.platform}},{key:"jm",get:function(){return v.vendor}},{key:"Ym",get:function(){return v.vendorSub}}]),n}();var Ji=function(){function n(){}var t=n.prototype;return t.Mm=function(){return nn.resolve(!1)},t.Dm=function(){return nn.resolve(!1)},t.Bm=function(){return nn.resolve(!1)},t.Nm=function(){return nn.resolve(!1)},t.Om=function(n){return nn.resolve(!1)},t.Lm=function(n,t){return nn.resolve(!1)},t.Rm=function(){return nn.resolve(!1)},n}(),Qi=function(){function n(){}var t=n.prototype;return t.lS=function(){},t.Uy=function(n){},t.Ly=function(n){},t.Oy=function(n,t){},n}(),ne=function(n){return n.fS="arraybuffer",n._S="json",n.vS="stream",n.gS="text",n}({});function te(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)||Mn(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 re=function(){function n(t){var r=this;this.tp={},t instanceof n?t.asList().forEach((function(n){var t=te(n,2),i=t[0],e=t[1];r.append(i,e)})):Array.isArray(t)?t.forEach((function(n){var t=te(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=ie(r),i=ee(i);var e=r.toLowerCase();if(this.tp.hasOwnProperty(e)){var u=this.tp[e],o=u[1];u[1]=o?o+", "+i:i}else this.tp[e]=[r,i]},t.delete=function(n){var t=ie(n).toLowerCase();delete this.tp[t]},t.get=function(n){var t=ie(n).toLowerCase();return this.tp.hasOwnProperty(t)?this.tp[t][1]:null},t.has=function(n){var t=ie(n).toLowerCase();return this.tp.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=ie(r)).toLowerCase();this.tp[i]=[r,ee(t)]},t.forEach=function(n,t){for(var r in this.tp)this.tp.hasOwnProperty(r)&&n.call(t,this.tp[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.tp)if(this.tp.hasOwnProperty(t)){var r=te(this.tp[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.wS=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.mS=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.pS=function(n){var t=this;n.forEach((function(n,r){t.set(r,n)}))},n}();function ie(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 ee(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}var ue=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_,d,y,w,I,E,g=n.KS;t?(r=t.ES,i=t.zS,e=t.Ak,u=t.WS,o=t.bk,f=t.Tk,s=t.fw,c=t.op,a=t.Sk,h=t.Ek,l=t.Pk,v=t.Ik,_=t.Ck,d=t.Rk,y=t.xk):(r=null,i={},e="GET",u=ne.gS,o=0,f=0,c="",a="",h="",l=!1,_=void 0,d=!1,y=void 0),this.KS=g,this.ES=n.ES||r,this.zS=new re(n.zS||i),this.Ak=n.Ak||e,this.WS=n.WS||u,this.bk=void 0!==n.bk?Number(n.bk)||0:o,this.Tk=void 0!==n.Tk?Number(n.Tk)||0:f,this.fw=n.fw||s||(new jn).fw,this.op=n.op||c,this.Sk=n.Sk||a,this.Ek=n.Ek||h,this.Pk=void 0!==n.Pk?Boolean(n.Pk):l,this.Ik=n.Ik||v,this.Ck=null!=(w=n.Ck)?w:_,this.Rk=null!=(I=n.Rk)?I:d,this.xk=null!=(E=n.xk)?E:y},oe=function(n){return n.Vk="HttpOpenError",n.Hk="HttpResponseError",n.Wk="HttpTimeoutError",n}({}),fe=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).qk=t,e}return an(t,n),ln(t,[{key:"qS",get:function(){return this.qk}}]),t}(qn);var se=function(n){function t(t,r){return n.call(this,t,function(n){return"Error while opening "+n+". Invalid URL."}(t.KS),r)||this}return an(t,n),ln(t,[{key:"name",get:function(){return oe.Vk}}]),t}(fe),ce=function(){function n(){}var t=n.prototype;return t.qS=function(n){return nn.reject(new se(new ue(n)))},t.Dk=function(n){},t.wn=function(){},n}(),ae=function(n){function t(t){return n.call(this,"Invalid XML",t)||this}return an(t,n),t}(qn),he=function(n){function t(){var t;return(t=n.apply(this,arguments)||this).XE=new Ji,t.VF=new ce,t.i=new Qi,t}return an(t,n),t.prototype.yE=function(n){throw new ae},ln(t,[{key:"xm",get:function(){return this.XE}},{key:"GE",get:function(){return!1}},{key:"KE",get:function(){return!1}},{key:"JE",get:function(){return!1}},{key:"YE",get:function(){return!1}},{key:"$E",get:function(){return this.i}},{key:"tP",get:function(){return{eP:Cn}}},{key:"iP",get:function(){return"default"}},{key:"sP",get:function(){return"unknown"}},{key:"rd",get:function(){return this.VF}}]),t}($i);!function(n){n}(new he);var le=function(n){return n[n.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",n[n.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4",n}({}),ve=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}({}),_e=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)}}(_e||(_e={}));var de=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 _e.fromCode(this.code)}}]),t}(qn);var ye,we=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}(),Ie=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 Ee=new Array(128).fill(void 0);function ge(n){return Ee[n]}Ee.push(void 0,null,!0,!1);var Re=Ee.length;function Oe(n){var t=ge(n);return function(n){n<132||(Ee[n]=Re,Re=n)}(n),t}var pe=void 0!==Ie?new Ie("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:function(){throw I("TextDecoder not available")}};void 0!==Ie&&pe.decode();var Se=null;function Te(){return null!==Se&&Se.buffer===ye.memory.buffer||(Se=new T(ye.memory.buffer)),Se}function ke(n,t){return n>>>=0,pe.decode(Te().subarray(n,n+t))}function be(n){Re===Ee.length&&Ee.push(Ee.length+1);var t=Re;return Re=Ee[t],Ee[t]=n,t}var me=0;function Ne(n,t){var r=t(1*n.length,1)>>>0;return Te().set(n,r/1),me=n.length,r}var Ae=null;function Ce(){return null!==Ae&&Ae.buffer===ye.memory.buffer||(Ae=new Int32Array(ye.memory.buffer)),Ae}function De(n){return null==n}function Pe(n,t){return n>>>=0,Te().subarray(n/1,n/1+t)}function Le(n){try{var t=ye.__wbindgen_add_to_stack_pointer(-16);ye.mpegts_to_fmp4(t,be(n));var r=Ce()[t/4+0],i=Ce()[t/4+1];if(Ce()[t/4+2])throw Oe(i);return Oe(r)}finally{ye.__wbindgen_add_to_stack_pointer(16)}}function Fe(n){try{var t=ye.__wbindgen_add_to_stack_pointer(-16);ye.raw_audio_to_fmp4(t,be(n));var r=Ce()[t/4+0],i=Ce()[t/4+1];if(Ce()[t/4+2])throw Oe(i);return Oe(r)}finally{ye.__wbindgen_add_to_stack_pointer(16)}}var Ue=void 0!==we?new we("utf-8"):{encode:function(){throw I("TextEncoder not available")}},Me="function"==typeof Ue.encodeInto?function(n,t){return Ue.encodeInto(n,t)}:function(n,t){var r=Ue.encode(n);return t.set(r),{read:n.length,written:r.length}};function Ve(n,t){return Be.apply(this,arguments)}function Be(){return Be=Ln((function(n,t){var r,i,e;return Fn(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]}}))})),Be.apply(this,arguments)}function We(){var n={wbg:{}};return n.wbg.__wbg_data_a6fcc7e5485ab253=function(n,t){var r=Ne(ge(t).data,ye.__wbindgen_export_0),i=me;Ce()[n/4+1]=i,Ce()[n/4+0]=r},n.wbg.__wbg_metadata_839ce0f7c4a90056=function(n){var t=ge(n).metadata;return De(t)?0:be(t)},n.wbg.__wbg_spsnal_f25ca767f4bfbb48=function(n,t){var r=ge(t).sps_nal,i=De(r)?0:Ne(r,ye.__wbindgen_export_0),e=me;Ce()[n/4+1]=e,Ce()[n/4+0]=i},n.wbg.__wbg_ppsnal_c53839aaa7452802=function(n,t){var r=ge(t).pps_nal,i=De(r)?0:Ne(r,ye.__wbindgen_export_0),e=me;Ce()[n/4+1]=e,Ce()[n/4+0]=i},n.wbg.__wbg_videopid_838bd140f4a2757b=function(n){var t=ge(n).video_pid;return De(t)?16777215:t},n.wbg.__wbg_audiopid_01a4aeec8221f2bc=function(n){var t=ge(n).audio_pid;return De(t)?16777215:t},n.wbg.__wbg_programmaptablepid_75098c49c54177b4=function(n){var t=ge(n).program_map_table_pid;return De(t)?16777215:t},n.wbg.__wbindgen_object_drop_ref=function(n){Oe(n)},n.wbg.__wbg_createoutputdata_1f571c937b2e0b2d=function(n,t,r,i,e,u,o,f){var s,c,a,h;0!==n&&(s=Pe(n,t).slice(),ye.__wbindgen_export_1(n,1*t,1)),0!==r&&(c=Pe(r,i).slice(),ye.__wbindgen_export_1(r,1*i,1)),0!==e&&(a=Pe(e,u).slice(),ye.__wbindgen_export_1(e,1*u,1)),0!==o&&(h=Pe(o,f).slice(),ye.__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 be(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 be(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=ke(r,i).slice(),ye.__wbindgen_export_1(r,1*i,1)),0!==e&&(w=ke(e,u).slice(),ye.__wbindgen_export_1(e,1*u,1)),0!==o&&(I=Pe(o,f).slice(),ye.__wbindgen_export_1(o,1*f,1)),0!==s&&(E=Pe(s,c).slice(),ye.__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,Oe(a),Oe(h),Oe(l),16777215===v?void 0:v,0===_?void 0:d);return be(g)},n.wbg.__wbg_createoutput_2a44a6b53fd68784=function(n,t){var r=function(n,t){return{data:n,metadata:t}}(Oe(n),Oe(t));return be(r)},n.wbg.__wbindgen_string_new=function(n,t){return be(ke(n,t))},n.wbg.__wbg_new_abda76e883ba8a5f=function(){return be(new I)},n.wbg.__wbg_stack_658279fe44541cf6=function(n,t){var r=function(n,t,r){if(void 0===r){var i=Ue.encode(n),e=t(i.length,1)>>>0;return Te().subarray(e,e+i.length).set(i),me=i.length,e}for(var u=n.length,o=t(u,1)>>>0,f=Te(),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=Te().subarray(o+s,o+u);s+=Me(n,a).written}return me=s,o}(ge(t).stack,ye.__wbindgen_export_0,ye.__wbindgen_export_2),i=me;Ce()[n/4+1]=i,Ce()[n/4+0]=r},n.wbg.__wbg_error_f851667af71bcfc6=function(n,t){var r,i;try{r=n,i=t,console.error(ke(n,t))}finally{ye.__wbindgen_export_1(r,i,1)}},n}function He(n,t){return ye=n.exports,xe.__wbindgen_wasm_module=t,Ae=null,Se=null,ye.__wbindgen_start(),ye}function xe(n){return Ge.apply(this,arguments)}function Ge(){return Ge=Ln((function(n){var t,r,i,e;return Fn(this,(function(u){switch(u.label){case 0:return void 0!==ye?[2,ye]:(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,Ve.apply(void 0,[u.sent(),t])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,He(i,e)]}}))})),Ge.apply(this,arguments)}function je(){return je=Ln((function(n){var t,r;return Fn(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,xe(t)];case 1:return i.sent(),[2,{mpegts_to_fmp4:Le,raw_audio_to_fmp4:Fe}]}}))})),je.apply(this,arguments)}var Ke=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({EOt:"9.6.1"})}),(function(n){var t=n,r={success:!1,error:t.message,errorCode:t instanceof de?t.code:ve.MEDIA_DECODE_ERROR};self.postMessage(r)}));function i(){return(i=Ln((function(n){var i,e,u,o,f,s;return Fn(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===le.MPEGTS_TO_FMP4)o=t.mpegts_to_fmp4(n.input);else{if(n.type!==le.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 de?r.code:ve.MEDIA_DECODE_ERROR};self.postMessage(i)}))}))}((function(){return function(n){return je.apply(this,arguments)}(Ke)}))}("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": "9.5.1",
5
+ "version": "9.6.1",
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/",