@theoplayer/extended 9.8.2 → 9.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,8 @@
24
24
  THEOplayer is based on patented technology developed by
25
25
  THEO Technologies (https://www.theoplayer.com).
26
26
 
27
- Version: 9.8.2
28
- Created: 2025-07-17T19:38:28.741Z
27
+ Version: 9.9.0
28
+ Created: 2025-07-31T14:31:38.185Z
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,p=n.parseInt,O=n.parseFloat,S=n.isNaN,T=n.Uint8Array,k=(n.Worker,n.WorkerGlobalScope,n.XMLHttpRequest);function b(n,r){return null!=r&&void 0!==t&&r[t.hasInstance]?!!r[t.hasInstance](n):b(n,r)}function m(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 N=_;function A(n){return Boolean(n&&void 0!==n.length)}function C(){}function D(n){if(!b(this,D))throw new E("Promises must be constructed via new");if("function"!=typeof n)throw new E("not a function");this.$a=0,this.R8t=!1,this.Myt=void 0,this.N8t=[],M(n,this)}function P(n,t){for(;3===n.$a;)n=n.Myt;0!==n.$a?(n.R8t=!0,D.D8t((function(){var r=1===n.$a?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.Myt)}catch(n){return void F(t.promise,n)}L(t.promise,i)}else(1===n.$a?L:F)(t.promise,n.Myt)}))):n.N8t.push(t)}function L(n,t){try{if(t===n)throw new E("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":m(t))||"function"==typeof t)){var r=t.then;if(b(t,D))return n.$a=3,n.Myt=t,void B(n);if("function"==typeof r)return void M(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.$a=1,n.Myt=t,B(n)}catch(t){F(n,t)}}function F(n,t){n.$a=2,n.Myt=t,B(n)}function B(n){2===n.$a&&0===n.N8t.length&&D.D8t((function(){n.R8t||D.B8t(n.Myt)}));for(var t=0,r=n.N8t.length;t<r;t++)P(n,n.N8t[t]);n.N8t=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,L(t,n))}),(function(n){r||(r=!0,F(t,n))}))}catch(n){if(r)return;r=!0,F(t,n)}}D.prototype.catch=function(n){return this.then(null,n)},D.prototype.then=function(n,t){var r=new this.constructor(C);return P(this,new U(n,t,r)),r},D.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)}))}))},D.all=function(n){return new D((function(t,r){if(!A(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":m(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])}))},D.allSettled=function(n){return new this((function(t,r){if(!n||void 0===n.length)return r(new E((void 0===n?"undefined":m(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":m(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])}))},D.resolve=function(n){return n&&"object"===(void 0===n?"undefined":m(n))&&n.constructor===D?n:new D((function(t){t(n)}))},D.reject=function(n){return new D((function(t,r){r(n)}))},D.race=function(n){return new D((function(t,r){if(!A(n))return r(new E("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)D.resolve(n[i]).then(t,r)}))},D.D8t="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){N(n,0)},D.B8t=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){}}(),W=v?v.userAgent:"",H=W.match(/Firefox\/([0-9]+)/i),x=null!=H,G=H?Number(H[1]):0,j=W.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),K=null!=j,q=j?Number(j[3]):0,z=function(){function n(n){this.tA=0,this.Td=0,this.hm=[],this.O8t=n}return n.prototype.L8t=function(n){var t=this.length();this.M8t(t+1);var r=this.Td+t&this.O8t-1;this.hm[r]=n,this.tA=t+1},n.prototype.push=function(n){var t=this.length()+1;if(this.O8t<t)this.L8t(n);else{var r=this.Td+t-1,i=this.O8t-1;this.hm[r&i]=n,this.tA=t}},n.prototype.shift=function(){var n=this.Td,t=this.hm[n];return this.hm[n]=void 0,this.Td=n+1&this.O8t-1,this.tA--,t},n.prototype.length=function(){return this.tA},n.prototype.M8t=function(n){this.O8t<n&&this.x8t(this.O8t<<1)},n.prototype.x8t=function(n){var t=this.O8t;this.O8t=n;var r=this.Td+this.tA&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.hm,0,t,r)},n}();var X="unhandledrejection",Y=self.PromiseRejectionEvent,$=self.CustomEvent;function Z(n){return new Y(X,{reason:n,promise:V.reject(n).catch((function(){})),cancelable:!0})}function J(n){var t=new $(X,{detail:{reason:n},cancelable:!0});return g.defineProperty(t,"reason",{value:n}),t}function Q(n){var t=h.createEvent("CustomEvent");return t.initCustomEvent(X,!1,!0,{reason:n}),t}var nn,tn,rn,en,un,on,fn,sn,cn=function(n){return cn=function(){try{var n=V.resolve(),t="error",r=new Y(X,{reason:t,promise:n});return X===r.type&&t===r.reason}catch(n){}return!1}()?Z:function(){try{var n="error",t=new $(X,{detail:{reason:n}});return X===t.type&&n===t.detail.reason}catch(n){}return!1}()?J:Q,cn(n)};function an(n,t){return an=g.setPrototypeOf||function(n,t){return n.__proto__=t,n},an(n,t)}function hn(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&&an(n,t)}function ln(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 vn(n,t,r){return t&&ln(n.prototype,t),r&&ln(n,r),n}V&&!(x&&G<60||K&&q<15)?tn=V:(tn=D,fn=null!==(nn=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!==nn?nn:D.D8t,rn=fn,en=new z(16),un=!1,(sn={O2:function(n){en.push(n),un||(un=!0,rn(on))},Mz:on=function(){for(;en.length()>0;)en.shift()();un=!1}}).Mz,D.D8t=sn.O2,D.B8t=function(n){try{var t=cn(n);if(!self.dispatchEvent(t)||t.defaultPrevented)return}catch(n){}_((function(){throw new I("Unhandled promise rejection: ".concat(n))}),0)});var _n=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 dn=v?v.userAgent:"",yn=dn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),wn=dn.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),In=dn.match(/Android ([0-9\.]+)/i),En=dn.match(/Windows NT ([0-9\.]+)/i),gn=dn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),Rn=dn.match(/Firefox\/([0-9\.]+)/i),pn=dn.match(/OPR\/(\d+\.\d+)/i),On=dn.match(/Tizen ([0-9\.]+)/i),Sn=dn.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),Tn=dn.match(/HbbTV\/([0-9.]+)/i),kn=function(){function n(){this.V_=Boolean("ontouchstart"in self||self.DocumentTouch&&b(h,self.DocumentTouch)||v&&v.msMaxTouchPoints),this.W_=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(dn)||/(macintosh|mac(?=_powerpc)\s)/i.test(dn),this.z_=/Windows NT/i.test(dn),this.G_=En?O(En[1]):0,this.K_=/Android/i.test(dn),this.Y_=In?O(In[1]):0,this.J_=/windows phone (8|8\.1)/i.test(dn),this.rv=/iPhone/i.test(dn),this.ov=/iPad/i.test(dn),this.fv=this.W_&&this.V_&&!this.ov,this.vv=/iPod/i.test(dn),this.Ev=/Mobile Safari/i.test(dn),this.bv=/EOS\d*STB/i.test(dn),this.Tv=/APP\d*STB/i.test(dn),this.mv=(this.rv||this.ov||this.fv||this.vv)&&!this.J_,this.yv=Sn?O(Sn[2]):0,this.Pv=this.J_||this.mv||this.K_||this.Ev,this.Cv=/CriOS/i.test(dn),this.xv=Boolean(self.chrome&&/google/i.test(v.vendor))||this.Cv,this.Lv=this.xv&&/Edg\//i.test(v.userAgent),this.Fv=wn?p(wn[1],10):0,this.jg=Boolean(/CriOS/i.test(dn)),this.Kg=Boolean(self.chrome||/Chrome/i.test(dn)||this.jg),this.Bv=yn?p(yn[1],10):0,this.Hv=/SMART-TV.*Tizen/i.test(dn),this.qv=On?O(On[1]):0,this.Nv=this.qv>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.qv):void 0,this.Xv=/webos|web0s/i.test(dn),this.Qv=/HbbTV/i.test(dn),this.Yv=!!Tn&&function(n){if(!n)return!1;var t=n.split(".").map(Number);return 3===t.length&&1===t[0]&&2===t[1]}(Tn[1]),this.Jv=/VIZIO/i.test(dn),this.eg=/Edge\/\d+/i.test(dn),this.hg=/Trident/i.test(dn),this.ag=this.hg&&!self.ActiveXObject&&"ActiveXObject"in self,this.dg=/Vivaldi/i.test(dn),this._g=/Firefox/i.test(dn)&&!/Seamonkey/i.test(dn),this.gg=Rn?O(Rn[1]):0,this.pg=/Safari/i.test(dn)&&!/Chrome/i.test(dn)&&!this.J_&&!this.Hv,this.Ag=gn?O(gn[2]):0,this.Sg=Boolean(pn),this.Pg=pn?O(pn[1]):0,this.Cg=/CrKey/.test(dn),this.xg=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(dn),this.Bg=/PlayStation 4/i.test(dn),this.Lg="web"===_n.M_,this.Fg="web"===_n.B_,this.Vg=this.Fg||this.Lg,this.Wg="web"===_n.L_,this.zg="web"===_n.O_,this.Gg="web"===_n.F_}return vn(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:"ev",get:function(){return this.rv}},{key:"hv",get:function(){return this.ov}},{key:"uv",get:function(){return this.fv}},{key:"_v",get:function(){return this.vv}},{key:"wv",get:function(){return this.mv}},{key:"pv",get:function(){return this.yv}},{key:"Av",get:function(){return this.bv||this.Tv}},{key:"Sv",get:function(){return this.Ev}},{key:"Ks",get:function(){return this.Pv}},{key:"Iv",get:function(){return this.Cv}},{key:"Rv",get:function(){return this.xv}},{key:"Dv",get:function(){var n;return null!=(n=this.Nv)?n:this.Bv}},{key:"Mv",get:function(){return this.Lv}},{key:"Ov",get:function(){var n;return(null==(n=a.chrome)?void 0:n.webview)&&this.Fv>0}},{key:"Uv",get:function(){return this.Fv}},{key:"Vv",get:function(){return this.Hv}},{key:"Wv",get:function(){return this.qv}},{key:"zv",get:function(){return this.Xv}},{key:"Gv",get:function(){return this.Qv}},{key:"Kv",get:function(){return this.Yv}},{key:"Zv",get:function(){return this.Jv}},{key:"$v",get:function(){return this.eg}},{key:"rg",get:function(){return this.hg}},{key:"og",get:function(){return this.ag}},{key:"cg",get:function(){return this.dg}},{key:"fg",get:function(){return this._g}},{key:"vg",get:function(){return this.gg}},{key:"wg",get:function(){return this.pg}},{key:"yg",get:function(){return 0===this.Ag&&bn.wv?this.yv:this.Ag}},{key:"Tg",get:function(){return this.Sg}},{key:"Eg",get:function(){return this.Pg}},{key:"Ig",get:function(){return this.Cg}},{key:"Rg",get:function(){return this.xg}},{key:"Dg",get:function(){return!(!this.zv&&!this.Vv)&&this.Dv<=56}},{key:"Ng",get:function(){return this.Bg}},{key:"Mg",get:function(){return this.Lg}},{key:"Og",get:function(){return this.Fg}},{key:"Ug",get:function(){return this.Vg}},{key:"Hg",get:function(){return this.Wg}},{key:"qg",get:function(){return this.zg}},{key:"Xg",get:function(){return this.Gg}},{key:"Qg",get:function(){return this.Kg}},{key:"IS_IOS_CHROME",get:function(){return this.jg}}]),n}();kn.Yg=new kn;var bn=kn.Yg,mn={}.toString;function Nn(n){return null!=n}Array.isArray;function An(n){return"object"===(void 0===n?"undefined":m(n))&&null!==n}function Cn(n){return function(n){return"function"==typeof n}(n)||An(n)}var Dn=function(){};function Pn(n){var t;return function(){return void 0!==n&&(t=n(),n=void 0),t}}function Ln(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):tn.resolve(s).then(i,e)}function Fn(n){return function(){var t=this,r=arguments;return new tn((function(i,e){var u=n.apply(t,r);function o(n){Ln(u,i,e,o,f,"next",n)}function f(n){Ln(u,i,e,o,f,"throw",n)}o(void 0)}))}}function Bn(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 Wn="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},Hn="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 xn(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 Gn(n){n.length=0}Array.prototype.flat,Array.prototype.flatMap;var jn=function(){function n(){this.hw=!1,this.ow=!1,this.aw=[],this.uw=[]}var t=n.prototype;return t.nw=function(){if(!this.hw&&!this.ow){this.hw=!0;for(var n=0,t=this.aw.slice();n<t.length;n++){(0,t[n])()}this.Ju()}},t.Ju=function(){if(!this.ow){this.ow=!0;for(var n=0,t=this.uw.slice();n<t.length;n++){(0,t[n])()}Gn(this.aw),Gn(this.uw)}},t.cw=function(n){this.ow||this.aw.push(n)},t.lw=function(n){this.ow||xn(this.aw,n)},t.dw=function(n){this.ow||this.uw.push(n)},t.fw=function(n){this.ow||xn(this.uw,n)},n}(),Kn=function(){function n(){this.gw=new jn}var t=n.prototype;return t.nf=function(){this.gw.nw()},t.Ju=function(){this.gw.Ju()},t.ww=function(n){var t=this.gw;if(!t.hw)if(n.hw)t.nw();else if(!t.ow&&!n.ow){var r=function(){i(),t.nw()},i=function(){n.lw(r),n.fw(i),t.lw(r),t.fw(i)};n.cw(r),n.dw(i),t.cw(r),t.dw(i)}},t.mw=function(){var t=new n,r=new n,i=t._w,e=r._w,u=this.gw,o=function(){i.hw&&e.ow||e.hw&&i.ow?u.nw():i.ow&&e.ow&&u.Ju()};i.cw(o),e.cw(o),i.dw(o),e.dw(o),t.ww(u),r.ww(u);return u.dw((function(){i.lw(o),e.lw(o),i.fw(o),e.fw(o)})),[t,r]},t[e]=function(){this.nf()},n.pw=function(t){for(var r=new n,i=0;i<t.length;i++){var e=t[i];void 0!==e&&r.ww(e)}return r},vn(n,[{key:"_w",get:function(){return this.gw}}]),n}(),qn=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];I.apply(this,t)};(qn.prototype=g.create(I.prototype)).constructor=qn;var zn=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 hn(t,n),vn(t,[{key:"name",get:function(){return"BaseError"}}]),t}(qn);tn.resolve();function Xn(){return void 0!==h?h.createElement("video"):void 0}var Yn=Pn(Xn),$n=(Pn((function(){return"undefined"!=typeof HTMLVideoElement&&b(Yn(),HTMLVideoElement)})),null);try{$n=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(rn){}function Zn(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function Jn(n){return!0===(n&&n.Aw)}function Qn(n){var t=R.clz32(n&-n);return n?31-t:t}Zn.prototype.Aw,g.defineProperty(Zn.prototype,"Aw",{value:!0}),Zn.isLong=Jn;var nt={},tt={};function rt(n,t){var r,i,e;return t?(e=0<=(n>>>=0)&&n<256)&&(i=tt[n])?i:(r=et(n,0,!0),e&&(tt[n]=r),r):(e=-128<=(n|=0)&&n<128)&&(i=nt[n])?i:(r=et(n,n<0?-1:0,!1),e&&(nt[n]=r),r)}function it(n,t){if(S(n))return t?vt:lt;if(t){if(n<0)return vt;if(n>=ct)return It}else{if(n<=-at)return Et;if(n+1>=at)return wt}return n<0?it(-n,t).neg():et(n%st|0,n/st|0,t)}function et(n,t,r){return new Zn(n,t,r)}Zn.fromInt=rt,Zn.fromNumber=it,Zn.fromBits=et;var ut=R.pow;function ot(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?vt:lt;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 ot(n.substring(1),t,r).neg();for(var e=it(ut(r,8)),u=lt,o=0;o<n.length;o+=8){var f=R.min(8,n.length-o),s=p(n.substring(o,o+f),r);if(f<8){var c=it(ut(r,f));u=u.mul(c).add(it(s))}else u=(u=u.mul(e)).add(it(s))}return u.unsigned=t,u}function ft(n,t){return"number"==typeof n?it(n,t):"string"==typeof n?ot(n,t):et(n.low,n.high,"boolean"==typeof t?t:n.unsigned)}Zn.fromString=ot,Zn.fromValue=ft;var st=4294967296,ct=st*st,at=ct/2,ht=rt(1<<24),lt=rt(0);Zn.ZERO=lt;var vt=rt(0,!0);Zn.UZERO=vt;var _t=rt(1);Zn.ONE=_t;var dt=rt(1,!0);Zn.UONE=dt;var yt=rt(-1);Zn.NEG_ONE=yt;var wt=et(-1,2147483647,!1);Zn.MAX_VALUE=wt;var It=et(-1,-1,!0);Zn.MAX_UNSIGNED_VALUE=It;var Et=et(0,-2147483648,!1);Zn.MIN_VALUE=Et;var gt=Zn.prototype;function Rt(){return Date.now()||(new Date).getTime()}gt.toInt=function(){return this.unsigned?this.low>>>0:this.low},gt.toNumber=function(){return this.unsigned?(this.high>>>0)*st+(this.low>>>0):this.high*st+(this.low>>>0)},gt.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=it(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=it(ut(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}},gt.getHighBits=function(){return this.high},gt.getHighBitsUnsigned=function(){return this.high>>>0},gt.getLowBits=function(){return this.low},gt.getLowBitsUnsigned=function(){return this.low>>>0},gt.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},gt.isSafeInteger=function(){var n=this.high>>21;return!n||!this.unsigned&&(-1===n&&!(0===this.low&&-2097152===this.high))},gt.isZero=function(){return 0===this.high&&0===this.low},gt.eqz=gt.isZero,gt.isNegative=function(){return!this.unsigned&&this.high<0},gt.isPositive=function(){return this.unsigned||this.high>=0},gt.isOdd=function(){return 1==(1&this.low)},gt.isEven=function(){return 0==(1&this.low)},gt.equals=function(n){return Jn(n)||(n=ft(n)),(this.unsigned===n.unsigned||this.high>>>31!=1||n.high>>>31!=1)&&(this.high===n.high&&this.low===n.low)},gt.eq=gt.equals,gt.notEquals=function(n){return!this.eq(n)},gt.neq=gt.notEquals,gt.ne=gt.notEquals,gt.lessThan=function(n){return this.comp(n)<0},gt.lt=gt.lessThan,gt.lessThanOrEqual=function(n){return this.comp(n)<=0},gt.lte=gt.lessThanOrEqual,gt.le=gt.lessThanOrEqual,gt.greaterThan=function(n){return this.comp(n)>0},gt.gt=gt.greaterThan,gt.greaterThanOrEqual=function(n){return this.comp(n)>=0},gt.gte=gt.greaterThanOrEqual,gt.ge=gt.greaterThanOrEqual,gt.compare=function(n){if(Jn(n)||(n=ft(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},gt.comp=gt.compare,gt.negate=function(){return!this.unsigned&&this.eq(Et)?Et:this.not().add(_t)},gt.neg=gt.negate,gt.add=function(n){Jn(n)||(n=ft(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,et((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},gt.subtract=function(n){return Jn(n)||(n=ft(n)),this.add(n.neg())},gt.sub=gt.subtract,gt.multiply=function(n){if(this.isZero())return this;if(Jn(n)||(n=ft(n)),$n)return et($n.mul(this.low,this.high,n.low,n.high),$n.get_high(),this.unsigned);if(n.isZero())return this.unsigned?vt:lt;if(this.eq(Et))return n.isOdd()?Et:lt;if(n.eq(Et))return this.isOdd()?Et:lt;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(ht)&&n.lt(ht))return it(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,et((h&=65535)<<16|(l&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},gt.mul=gt.multiply,gt.divide=function(n){if(Jn(n)||(n=ft(n)),n.isZero())throw I("division by zero");var t,r,i;if($n)return this.unsigned||-2147483648!==this.high||-1!==n.low||-1!==n.high?et((this.unsigned?$n.div_u:$n.div_s)(this.low,this.high,n.low,n.high),$n.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?vt:lt;if(this.unsigned){if(n.unsigned||(n=n.toUnsigned()),n.gt(this))return vt;if(n.gt(this.shru(1)))return dt;i=vt}else{if(this.eq(Et))return n.eq(_t)||n.eq(yt)?Et:n.eq(Et)?_t:(t=this.shr(1).div(n).shl(1)).eq(lt)?n.isNegative()?_t:yt:(r=this.sub(n.mul(t)),i=t.add(r.div(n)));if(n.eq(Et))return this.unsigned?vt:lt;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=lt}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:ut(2,e-48),o=it(t),f=o.mul(n);f.isNegative()||f.gt(r);)f=(o=it(t-=u,this.unsigned)).mul(n);o.isZero()&&(o=_t),i=i.add(o),r=r.sub(f)}return i},gt.div=gt.divide,gt.modulo=function(n){return Jn(n)||(n=ft(n)),$n?et((this.unsigned?$n.rem_u:$n.rem_s)(this.low,this.high,n.low,n.high),$n.get_high(),this.unsigned):this.sub(this.div(n).mul(n))},gt.mod=gt.modulo,gt.rem=gt.modulo,gt.not=function(){return et(~this.low,~this.high,this.unsigned)},gt.countLeadingZeros=function(){return this.high?R.clz32(this.high):R.clz32(this.low)+32},gt.clz=gt.countLeadingZeros,gt.countTrailingZeros=function(){return this.low?Qn(this.low):Qn(this.high)+32},gt.ctz=gt.countTrailingZeros,gt.and=function(n){return Jn(n)||(n=ft(n)),et(this.low&n.low,this.high&n.high,this.unsigned)},gt.or=function(n){return Jn(n)||(n=ft(n)),et(this.low|n.low,this.high|n.high,this.unsigned)},gt.xor=function(n){return Jn(n)||(n=ft(n)),et(this.low^n.low,this.high^n.high,this.unsigned)},gt.shiftLeft=function(n){return Jn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?et(this.low<<n,this.high<<n|this.low>>>32-n,this.unsigned):et(0,this.low<<n-32,this.unsigned)},gt.shl=gt.shiftLeft,gt.shiftRight=function(n){return Jn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?et(this.low>>>n|this.high<<32-n,this.high>>n,this.unsigned):et(this.high>>n-32,this.high>=0?0:-1,this.unsigned)},gt.shr=gt.shiftRight,gt.shiftRightUnsigned=function(n){return Jn(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?et(this.low>>>n|this.high<<32-n,this.high>>>n,this.unsigned):et(32===n?this.high:this.high>>>n-32,0,this.unsigned)},gt.shru=gt.shiftRightUnsigned,gt.shr_u=gt.shiftRightUnsigned,gt.rotateLeft=function(n){var t;return Jn(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?et(this.high,this.low,this.unsigned):n<32?(t=32-n,et(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned)):(t=32-(n-=32),et(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned))},gt.rotl=gt.rotateLeft,gt.rotateRight=function(n){var t;return Jn(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?et(this.high,this.low,this.unsigned):n<32?(t=32-n,et(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned)):(t=32-(n-=32),et(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned))},gt.rotr=gt.rotateRight,gt.toSigned=function(){return this.unsigned?et(this.low,this.high,!1):this},gt.toUnsigned=function(){return this.unsigned?this:et(this.low,this.high,!0)},gt.toBytes=function(n){return n?this.toBytesLE():this.toBytesBE()},gt.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]},gt.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]},Zn.fromBytes=function(n,t,r){return r?Zn.fromBytesLE(n,t):Zn.fromBytesBE(n,t)},Zn.fromBytesLE=function(n,t){return new Zn(n[0]|n[1]<<8|n[2]<<16|n[3]<<24,n[4]|n[5]<<8|n[6]<<16|n[7]<<24,t)},Zn.fromBytesBE=function(n,t){return new Zn(n[4]<<24|n[5]<<16|n[6]<<8|n[7],n[0]<<24|n[1]<<16|n[2]<<8|n[3],t)},"function"==typeof BigInt&&(Zn.fromBigInt=function(n,t){return et(Number(BigInt.asIntN(32,n)),Number(BigInt.asIntN(32,n>>BigInt(32))),t)},Zn.fromValue=function(n,t){return"bigint"===(void 0===n?"undefined":m(n))?Zn.fromBigInt(n,t):ft(n,t)},gt.toBigInt=function(){var n=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|n});Zn.fromNumber(9007199254740991);var pt=Boolean("ontouchstart"in self||self.DocumentTouch&&b(h,self.DocumentTouch))||Boolean(v&&v.msMaxTouchPoints),Ot=Yn(),St=Boolean(Ot&&Ot.webkitShowPlaybackTargetPicker),Tt=function(){function n(){this.Tw=void 0,this.Kw=!1,this.Ke=pt,this.Ks=!1,this.yw=!0}var t=n.prototype;return t.Sw=function(){return 0},t.Xw=function(n,t){return!0},t.Gw=function(n){return n>=.3333333333333333},vn(n,[{key:"bw",get:function(){return void 0===this.Tw&&(this.Tw=this.Sw()),this.Tw}},{key:"Ew",get:function(){return bn.Q_?"android":bn.H_?"macos":bn.wv?"ios":bn.q_?"windows":"other"}},{key:"Pw",get:function(){return bn.Rg?"tv":bn.Ks?"mobile":"desktop"}},{key:"Iw",get:function(){return!bn.Rg}},{key:"Cw",get:function(){if(a.screen)return{width:a.screen.width,height:a.screen.height}}},{key:"Rw",get:function(){return a.devicePixelRatio||1}},{key:"xw",get:function(){return St}},{key:"Dw",get:function(){return!1}},{key:"Nw",get:function(){return!0}},{key:"Bw",get:function(){return!!(bn.wg||bn.wv||bn.Ov)||!!bn.Zv}},{key:"Mw",get:function(){return bn.Zv}},{key:"Lw",get:function(){return!bn.wv}},{key:"Ow",get:function(){return!0}},{key:"Fw",get:function(){return!0}},{key:"Uw",get:function(){return!1}},{key:"Vw",get:function(){}},{key:"Hw",get:function(){return!0}},{key:"Ww",get:function(){return!1}},{key:"qw",get:function(){return bn.Zv}},{key:"zw",get:function(){return!1}},{key:"Qw",get:function(){return!1}}]),n}(),kt=function(n){function t(){return n.call(this)||this}return hn(t,n),t}(Tt),bt=function(n){function t(){return n.apply(this,arguments)||this}return hn(t,n),t.prototype.Xw=function(n,t){if(n&&n.jw&&t&&t.jw){var r=mt(n.jw,"mp4a.40.2")&&mt(t.jw,"mp4a.40.5"),i=mt(n.jw,"mp4a.40.5")&&mt(t.jw,"mp4a.40.2"),e=mt(n.jw,"mp4a.40.2")&&mt(t.jw,"mp4a.40.34"),u=mt(n.jw,"mp4a.40.34")&&mt(t.jw,"mp4a.40.2"),o=mt(n.jw,"mp4a.40.5")&&mt(t.jw,"mp4a.40.34"),f=mt(n.jw,"mp4a.40.34")&&mt(t.jw,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},vn(t,[{key:"Vw",get:function(){if(bn.H_)return 4096}}]),t}(kt);function mt(n,t){return n.indexOf(t)>-1}var Nt,At=function(n){function t(){return n.apply(this,arguments)||this}return hn(t,n),t.prototype.Gw=function(n){return n>=2},t}(kt),Ct=function(n){function t(){var t;return(t=n.call(this)||this).Kw=bn.yg>=11,t.yw=bn.wg&&!(bn.wv&&bn.yg<10),t}return hn(t,n),vn(t,[{key:"zw",get:function(){return bn.yg<17}},{key:"Qw",get:function(){return!0}}]),t}(kt),Dt=function(n){function t(){return n.apply(this,arguments)||this}return hn(t,n),vn(t,[{key:"Hw",get:function(){return!bn.q_||(bn.Mv?92!==bn.Uv:bn.Dv>=100)}}]),t}(kt);var Pt=function(){var n=Xn();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(bn.uv)return!1;var n=Xn();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var Lt=function(n){function t(t){var r;return(r=n.call(this)||this).Yw=t,r.Kw=r.Yw.Kw,r.Ke=r.Yw.Ke,r.yw=Pt&&r.Yw.yw,r}hn(t,n);var r=t.prototype;return r.Sw=function(){return this.Yw.bw},r.Xw=function(n,t){return this.Yw.Xw(n,t)},r.Gw=function(n){return this.Yw.Gw(n)},vn(t,[{key:"Vw",get:function(){return this.Yw.Vw}},{key:"Hw",get:function(){return this.Yw.Hw}},{key:"zw",get:function(){return this.Yw.zw}}]),t}(Tt),Ft=function(n){function t(t){var r;return(r=n.call(this,t)||this).Kw=!0,r.Ks=!0,r}return hn(t,n),vn(t,[{key:"Uw",get:function(){return bn.wv}}]),t}(Lt);var Bt=function(n){function t(){return n.apply(this,arguments)||this}return hn(t,n),t.prototype.Sw=function(){return function(n){return n&&Cn(a.ManagedMediaSource)?a.ManagedMediaSource:Cn(a.MediaSource)?a.MediaSource:void 0}(!0)?n.prototype.Sw.call(this):1},vn(t,[{key:"Uw",get:function(){return!0}}]),t}(Ft),Ut=function(n){function t(){return n.apply(this,arguments)||this}return hn(t,n),t.prototype.Xw=function(t,r){return n.prototype.Xw.call(this,t,r)},vn(t,[{key:"Dw",get:function(){return bn.Wv<3}},{key:"Nw",get:function(){return bn.Wv>=3}},{key:"Cw",get:function(){var n=this;return a.tizen&&!this.tm&&a.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.tm={width:r,height:i})})),this.tm}},{key:"Ww",get:function(){return bn.Wv<3}}]),t}(Lt),Mt=function(n){function t(){return n.apply(this,arguments)||this}return hn(t,n),vn(t,[{key:"Cw",get:function(){var n=this;return a.webOS&&!this.tm&&a.webOS.deviceInfo((function(t){n.tm={width:t.screenWidth,height:t.screenHeight}})),this.tm}},{key:"Ow",get:function(){return!1}}]),t}(Lt),Vt=function(n){function t(){return n.apply(this,arguments)||this}return hn(t,n),vn(t,[{key:"Uw",get:function(){return!0}},{key:"Qw",get:function(){return this.Yw.Qw}}]),t}(Lt);!function(n){Nt=n}(function(){var n=function(){if(bn.fg)return new bt;if(bn.$v||bn.rg)return new At;if(bn.wg)return new Ct;if(bn.Rv)return new Dt;return new kt}();return bn.wv?new Bt(n):bn.Ks?new Ft(n):bn.Vv?new Ut(n):bn.zv?new Mt(n):bn.H_?new Vt(n):new Lt(n)}());var Wt=!(bn.rg&&!bn.og),Ht=self.console;function xt(n){if(An(n))try{return JSON.stringify(n)}catch(n){}return n}function Gt(n){return n.map(xt).join(" ")}function jt(n){var t=Ht&&Ht[n];return t?t.bind&&Wt?t.bind(Ht):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];Ht[n](Gt(r))}:void 0}var Kt=jt("log")||Dn,qt=jt("warn")||Kt.bind(void 0,"WARNING:"),zt=jt("error")||Kt.bind(void 0,"ERROR:"),Xt=function(){var n=Ht&&Ht.assert;return n?n.bind&&Wt?n.bind(Ht):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];Ht.assert(n,Gt(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||zt.apply(void 0,["Assertion failed:"].concat(Vn(r)))}}();function Yt(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 $t(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){Zt(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&Zt(r,null,n.length,n),n}function Zt(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 Jt=/[a-zA-Z]/,Qt=/[0-9]/,nr=/[0-9a-fA-F]/,tr=/^0x/i,rr=/^[0-9]+$/,ir=/^[0-9a-fA-F]+$/,er=/^[0-7]+$/,ur=g.prototype.toString,or=Array.isArray||function(n){return"[object Array]"===ur.call(n)},fr=void 0!==t&&"symbol"==typeof i;function sr(n){return or(n)?n:Array.from(n)}function cr(n,t,r){var i=n[t];n[t]=n[r],n[r]=i}function ar(n){return n>=65&&n<=90}function hr(n){return ar(n)||function(n){return n>=97&&n<=122}(n)}function lr(n){return n>=48&&n<=57}function vr(n){return lr(n)||hr(n)}function _r(n){return lr(n)||n>=65&&n<=70||n>=97&&n<=102}function dr(n){return ar(n)?n+32:n}function yr(n){return lr(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function wr(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var Ir=R.min,Er=String.fromCharCode,gr=16384;function Rr(n){for(var t=n.length,r=[],i=0;i<t;i+=gr){var e=Ir(i+gr,t);r.push(Er.apply(null,n.slice(i,e)))}return r.join("")}var pr=2147483647,Or=/[^\0-\x7E]/,Sr=/[\x2E\u3002\uFF0E\uFF61]/g,Tr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},kr=R.floor,br=String.fromCharCode;function mr(n){throw new RangeError(Tr[n])}function Nr(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 Ar,Cr,Dr,Pr=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},Lr=function(n,t,r){var i=0;for(n=r?kr(n/700):n>>1,n+=kr(n/t);n>455;i+=36)n=kr(n/35);return kr(i+36*n/(n+38))},Fr=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(Sr,".")).split("."),t).join(".");return i+e}(n,(function(n){return Or.test(n)?"xn--"+function(n){for(var t=[],r=(n=Nr(n)).length,i=128,e=0,u=72,o=0,f=n;o<f.length;o++){var s=f[o];s<128&&t.push(br(s))}var c=t.length,a=c;for(c&&t.push("-");a<r;){for(var h=pr,l=0,v=n;l<v.length;l++){var _=v[l];_>=i&&_<h&&(h=_)}var d=a+1;h-i>kr((pr-e)/d)&&mr("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>pr&&mr("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 p=E-R,O=36-R;t.push(br(Pr(R+p%O,0))),E=kr(p/O)}t.push(br(Pr(E,0))),u=Lr(e,d,a==c),e=0,++a}}++e,++i}return t.join("")}(n):n}))};function Br(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 Rr(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 Wr(n){for(var t=[],r=0;r<n.length;r++){Vr(n[r],t)}return t}function Hr(){if(Dr>=Cr)throw new I("Invalid byte index");var n=255&Ar[Dr];if(Dr++,128==(192&n))return 63&n;throw new I("Invalid continuation byte")}function xr(){var n,t;if(Dr>Cr)throw new I("Invalid byte index");if(Dr===Cr)return!1;if(n=255&Ar[Dr],Dr++,0==(128&n))return n;if(192==(224&n)){if((t=(31&n)<<6|Hr())>=128)return t;throw new I("Invalid continuation byte")}if(224==(240&n)){if((t=(15&n)<<12|Hr()<<6|Hr())>=2048)return Ur(t),t;throw new I("Invalid continuation byte")}if(240==(248&n)&&(t=(7&n)<<18|Hr()<<12|Hr()<<6|Hr())>=65536&&t<=1114111)return t;throw new I("Invalid UTF-8 detected")}function Gr(n){return[37,wr(n>>4),wr(15&n)]}function jr(n){return function(n){return n>=0&&n<=31}(n)||n>126}function Kr(n){return jr(n)||32===n||34===n||60===n||62===n||96===n}function qr(n){return Kr(n)||35===n||63===n||123===n||125===n}function zr(n){return qr(n)||47===n||58===n||59===n||61===n||64===n||n>=91&&n<=94||124===n}function Xr(n){return n<33||n>126||34===n||35===n||60===n||62===n}function Yr(n){return Xr(n)||39===n}function $r(n,t){if(!t(n))return[n];for(var r=Wr([n]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,Gr(u))}return i}function Zr(n,t){for(var r=[],i=0,e=Nr(n);i<e.length;i++){var u=e[i];r.push.apply(r,$r(u,t))}return Br(r)}function Jr(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&&_r(n[i+1])&&_r(n[i+2])){var u=yr(n[i+1])<<4|yr(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(Wr(n))}function Qr(n){return Br(function(n){Ar=n.slice(),Cr=Ar.length,Dr=0;for(var t,r=[];!1!==(t=xr());)r.push(t);return r}(Jr(Nr(n))))}function ni(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&&nr.test(n[u]);)o=o<<4|p(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(!Qt.test(n[u]))throw new E;for(;u<t&&Qt.test(n[u]);){var a=p(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;)cr(r,i,e+h-1),i-=1,h-=1}else if(8!==i)throw new E;return r}function ti(n){var t=10,r=rr;return tr.test(n)?(n=n.slice(2),t=16,r=ir):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=er),""===n?0:r.test(n)?p(n,t):void 0}var ri={im:4},ii=/[\0\t\n\r #%/:?@\[\\\]]/,ei=/[\0\t\n\r #/:?@\[\\\]]/;function ui(n,t){if("["===n[0]){if("]"!==n[n.length-1])throw new E("Invalid IPv6 address");return{im:2,nm:ni(n.slice(1,-1))}}if(!t)return function(n){if(ei.test(n))throw new E("Invalid code point in opaque host");var t=Zr(n,jr);return""===t?ri:{im:3,hm:t}}(n);var r=function(n){var t=function(n){return Fr(n.toLowerCase())}(n);return t}(Qr(n));if(ii.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=ti(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?{im:1,nm:i}:""===r?ri:{im:0,um:r}}function oi(n){switch(n.im){case 0:return n.um;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.nm);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.nm)+"]";case 3:return n.hm;case 4:return""}}var fi=/\+/g;function si(n){return 42===n||45===n||46===n||95===n||vr(n)}function ci(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(fi," "),f=f.replace(fi," ");var s=Qr(o),c=Qr(f);r.push([s,c])}}return r}function ai(n){for(var t="",r=0;r<n.length;r++){var i=n[r];r>0&&(t+="&"),t+=hi(Wr(Nr(i[0])))+"="+hi(Wr(Nr(i[1])))}return t}function hi(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];32===i?t.push(43):si(i)?t.push(i):t.push.apply(t,Gr(i))}return Rr(t)}var li=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function vi(n){var t=""+n,r=li.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(di(u))if(yi(u)||e===r-1)i.push(_i);else{var o=n.charCodeAt(e+1);yi(o)?(i.push(u,o),e++):i.push(_i)}else i.push(u)}return n.slice(0,t)+Rr(i)}(t,r.index):t}var _i=65533,di=function(n){return 55296==(63488&n)},yi=function(n){return 0!=(1024&n)};function wi(n,t){var r=n[0],i=t[0];return r===i?0:r<i?-1:1}function Ii(n){n.lm.length=0}function Ei(n,t){!function(n,t){for(var r=0;r<t.length;r++)n[r]=t[r];n.length=t.length}(n.lm,ci(t))}function gi(n){if(n.dm){var t=ai(n.lm);""===t&&(t=null),n.dm.dm.fm=t}}var Ri=function(){function n(n){if(void 0===n&&(n=void 0),this.dm=null,null==n)this.lm=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof Ri&&!!or(n.lm)&&(!fr||n[i]===pi)}(n))this.lm=n.lm.slice();else if(function(n){return null!=n&&(!!or(n)||!!fr&&"function"==typeof n[i])}(n)){this.lm=[];for(var t=0,r=sr(n);t<r.length;t++){var e=sr(r[t]);if(2!==e.length)throw new E("Invalid name-value pair");this.lm.push([vi(e[0]),vi(e[1])])}}else for(var u in this.lm=[],n)g.prototype.hasOwnProperty.call(n,u)&&this.lm.push([vi(u),vi(n[u])]);else(n=vi(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.lm=ci(n)}var t=n.prototype;return t.append=function(n,t){n=vi(n),t=vi(t),this.lm.push([n,t]),gi(this)},t.delete=function(n){n=vi(n);for(var t=this.lm,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}gi(this)},t.get=function(n){n=vi(n);for(var t=this.lm,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},t.getAll=function(n){n=vi(n);for(var t=this.lm,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=vi(n);for(var t=this.lm,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},t.set=function(n,t){n=vi(n),t=vi(t);for(var r=this.lm,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]),gi(this)},t.sort=function(){$t(this.lm,wi),gi(this)},t.toString=function(){return ai(this.lm)},t.entries=function(){return new ki(this.lm,Oi)},t.keys=function(){return new ki(this.lm,Si)},t.values=function(){return new ki(this.lm,Ti)},t.forEach=function(n){var t=this;this.lm.forEach((function(r){return n(r[1],r[0],t)}))},n}(),pi=Ri.prototype.entries;fr&&(Ri.prototype[i]=pi);var Oi=function(n){return[n[0],n[1]]},Si=function(n){return n[0]},Ti=function(n){return n[1]},ki=function(){function n(n,t){this._m=0,this.lm=n,this.vm=t}return n.prototype.next=function(){return this._m<this.lm.length?{done:!1,value:this.vm(this.lm[this._m++])}:{done:!0,value:void 0}},n}(),bi="null";var mi=g.create(null);mi.ftp=21,mi.file=0,mi.gopher=70,mi.http=80,mi.https=443,mi.ws=80,mi.wss=443;var Ni=/^(?:\.|%2e)$/i,Ai=/^(?:\.|%2e){2}$/i;function Ci(n){return Ni.test(n)}function Di(n){return Ai.test(n)}function Pi(n){return void 0!==mi[n]}function Li(n){return Pi(n.gm)}function Fi(n){return""!==n.wm||""!==n.pm}function Bi(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&&Jt.test(n[0])&&(":"===n[1]||"|"===n[1])}function Mi(n){return 2===n.length&&Ui(Rr(n))}function Vi(n){return Ui(n)&&":"===n[1]}function Wi(n){var t=n.ym;0!==t.length&&("file"===n.gm&&1===t.length&&Vi(t[0])||t.pop())}function Hi(n){return null===n.Am||ri===n.Am||n.Tm||"file"===n.gm}var xi=-1,Gi=/\t|\n|\r/g,ji=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function Ki(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new zi,n=n.replace(ji,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=Nr(n=n.replace(Gi,"")),a=c.length,h=0;h<=a;){var l=h<a?c[h]:xi;switch(e){case 0:if(!hr(l)){if(null===i){u.length=0,e=2;continue}throw new E("Invalid scheme")}u.push(dr(l)),e=1;break;case 1:if(vr(l)||43===l||45===l||46===l)u.push(dr(l));else{if(58!==l){if(null===i){u.length=0,e=2,h=0;continue}throw new E("Invalid scheme")}var v=Br(u);if(null!==i){if(Pi(r.gm)&&!Pi(v))return;if(!Pi(r.gm)&&Pi(v))return;if((Fi(r)||null!==r.Sm)&&"file"===v)return;if("file"===r.gm&&(r.Am===ri||null===r.Am))return}if(r.gm=v,null!==i)return void(Li(r)&&r.Sm===mi[r.gm]&&(r.Sm=null));u.length=0,"file"===r.gm?e=13:Li(r)&&t&&t.gm===r.gm?e=3:Li(r)?e=7:47===c[h+1]?(e=4,h+=1):(r.Tm=!0,r.ym.push(""),e=18)}break;case 2:if(!t||t.Tm&&35!==l)throw new E("Invalid scheme");t.Tm&&35===l?(r.gm=t.gm,r.ym=t.ym.slice(),r.fm=t.fm,r.Em="",r.Tm=!0,e=20):"file"!==t.gm?(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.gm=t.gm,xi===l?(r.wm=t.wm,r.pm=t.pm,r.Am=t.Am,r.Sm=t.Sm,r.ym=t.ym.slice(),r.fm=t.fm):47===l?e=6:63===l?(r.wm=t.wm,r.pm=t.pm,r.Am=t.Am,r.Sm=t.Sm,r.ym=t.ym.slice(),r.fm="",e=19):35===l?(r.wm=t.wm,r.pm=t.pm,r.Am=t.Am,r.Sm=t.Sm,r.ym=t.ym.slice(),r.fm=t.fm,r.Em="",e=20):92===l&&Li(r)?e=6:(r.wm=t.wm,r.pm=t.pm,r.Am=t.Am,r.Sm=t.Sm,r.ym=t.ym.slice(),r.ym.pop(),e=17,h-=1);break;case 6:!Li(r)||47!==l&&92!==l?47===l?e=9:(r.wm=t.wm,r.pm=t.pm,r.Am=t.Am,r.Sm=t.Sm,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=Br($r(d,zr));s?r.pm+=y:r.wm+=y}else s=!0}u.length=0}else if(xi===l||47===l||63===l||35===l||Li(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.gm)h-=1,e=15;else if(58!==l||f)if(xi===l||47===l||63===l||35===l||Li(r)&&92===l){if(h-=1,Li(r)&&0===u.length)throw new E("Invalid host");if(null!==i&&0===u.length&&(Fi(r)||null!==r.Sm))return;var w=ui(Br(u),Li(r));if(r.Am=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=ui(Br(u),Li(r));if(r.Am=I,u.length=0,e=12,11===i)return}break;case 12:if(lr(l))u.push(l);else{if(!(xi===l||47===l||63===l||35===l||Li(r)&&92===l||null!==i))throw new E("Invalid port");if(0!==u.length){var g=p(Br(u),10);if(g>65535)throw new E("Invalid port");r.Sm=g===mi[r.gm]?null:g,u.length=0}if(null!==i)return;e=16,h-=1}break;case 13:r.gm="file",47===l||92===l?e=14:t&&"file"===t.gm?xi===l?(r.Am=t.Am,r.ym=t.ym.slice(),r.fm=t.fm):63===l?(r.Am=t.Am,r.ym=t.ym.slice(),r.fm="",e=19):35===l?(r.Am=t.Am,r.ym=t.ym.slice(),r.fm=t.fm,r.Em="",e=20):(Bi(c.slice(h))||(r.Am=t.Am,r.ym=t.ym.slice(),Wi(r)),e=17,h-=1):(e=17,h-=1);break;case 14:47===l||92===l?e=15:(t&&"file"===t.gm&&!Bi(c.slice(h))&&(Vi(t.ym[0])?r.ym.push(t.ym[0]):r.Am=t.Am),e=17,h-=1);break;case 15:if(xi===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.Am=ri,null!==i)return;e=16}else{var R=ui(Br(u),Li(r));if(0===R.im&&"localhost"===R.um&&(R=ri),r.Am=R,null!==i)return;u.length=0,e=16}else u.push(l);break;case 16:Li(r)?(e=17,47!==l&&92!==l&&(h-=1)):null===i&&63===l?(r.fm="",e=19):null===i&&35===l?(r.Em="",e=20):xi!==l&&(e=17,47!==l&&(h-=1));break;case 17:if(xi===l||47===l||Li(r)&&92===l||null===i&&(63===l||35===l)){var O=Br(u);if(Di(O)?(Wi(r),47===l||Li(r)&&92===l||r.ym.push("")):!Ci(O)||47===l||Li(r)&&92===l?Ci(O)||("file"===r.gm&&0===r.ym.length&&Mi(u)&&(ri!==r.Am&&null!==r.Am&&(r.Am=ri),u[1]=58,O=Br(u)),r.ym.push(O)):r.ym.push(""),u.length=0,"file"===r.gm&&(xi===l||63===l||35===l))for(;r.ym.length>1&&""===r.ym[0];)r.ym.shift();63===l?(r.fm="",e=19):35===l&&(r.Em="",e=20)}else u.push.apply(u,$r(l,qr));break;case 18:63===l?(r.fm="",e=19):35===l?(r.Em="",e=20):xi!==l&&(r.ym[0]+=Br($r(l,jr)));break;case 19:null===i&&35===l?(r.Em="",e=20):xi!==l&&(r.fm+=Br($r(l,Li(r)?Yr:Xr)));break;case 20:xi===l||0===l||(r.Em+=Br($r(l,Kr)))}h++}return r}function qi(n,t,r,i){try{Ki(n,t,r,i)}catch(n){}}var zi=function(){this.gm="",this.wm="",this.pm="",this.Am=null,this.Sm=null,this.ym=[],this.fm=null,this.Em=null,this.Tm=!1};function Xi(n){switch(n.gm){case"blob":var t;try{t=Ki(n.ym[0],null)}catch(n){return bi}return Xi(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(n,t,r){return n+"://"+oi(t)+(null===r?"":":"+r)}(n.gm,n.Am,n.Sm);default:return bi}}var Yi=function(){function n(n,t){var r,i=null;if(null!=t)if(function(n){return null!=n&&n instanceof Yi&&"object"==typeof n.dm}(t))i=t.dm;else try{i=Ki(String(t),null)}catch(n){throw new E("Invalid base URL: "+n.message)}try{r=Ki(String(n),i)}catch(n){throw new E("Invalid URL: "+n.message)}var e=r.fm;this.dm=r,this.fm=function(n){var t=new Ri;return null!==n&&Ei(t,n),t}(e),this.fm.dm=this}var t=n.prototype;return t.toString=function(){return this.href},t.toJSON=function(){return this.href},function(n,t,r){t&&Yt(n.prototype,t),r&&Yt(n,r)}(n,[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.gm+":";if(null!==n.Am?(r+="//",Fi(n)&&(r+=n.wm,""!==n.pm&&(r+=":"+n.pm),r+="@"),r+=oi(n.Am),null!==n.Sm&&(r+=":"+n.Sm)):null===n.Am&&"file"===n.gm&&(r+="//"),n.Tm)r+=n.ym[0];else for(var i=0,e=n.ym;i<e.length;i++)r+="/"+e[i];return null!==n.fm&&(r+="?"+n.fm),t||null===n.Em||(r+="#"+n.Em),r}(this.dm)},set:function(n){var t;try{t=Ki(String(n),null)}catch(n){throw new E("Invalid URL: "+n.message)}this.dm=t,Ii(this.fm);var r=this.dm.fm;null!==r&&Ei(this.fm,r)}},{key:"origin",get:function(){return Xi(this.dm)}},{key:"protocol",get:function(){return this.dm.gm+":"},set:function(n){qi(n+":",null,this.dm,0)}},{key:"username",get:function(){return this.dm.wm},set:function(n){Hi(this.dm)||(this.dm.wm=Zr(n,zr))}},{key:"password",get:function(){return this.dm.pm},set:function(n){Hi(this.dm)||(this.dm.pm=Zr(n,zr))}},{key:"host",get:function(){var n=this.dm,t=n.Am;if(null===t)return"";var r=n.Sm,i=oi(t);return null!==r&&(i+=":"+r),i},set:function(n){this.dm.Tm||qi(n,null,this.dm,10)}},{key:"hostname",get:function(){var n=this.dm.Am;return null===n?"":oi(n)},set:function(n){this.dm.Tm||qi(n,null,this.dm,11)}},{key:"port",get:function(){var n=this.dm.Sm;return null===n?"":""+n},set:function(n){Hi(this.dm)||(""===n?this.dm.Sm=null:qi(n,null,this.dm,12))}},{key:"pathname",get:function(){var n=this.dm.ym;return this.dm.Tm?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.dm.Tm||(this.dm.ym.length=0,qi(n,null,this.dm,16))}},{key:"search",get:function(){var n=this.dm.fm;return null===n||""===n?"":"?"+n},set:function(n){n=vi(n);var t=this.dm;if(""===n)return t.fm=null,void Ii(this.fm);"?"===n[0]&&(n=n.slice(1)),t.fm="",qi(n,null,t,19),Ei(this.fm,n)}},{key:"searchParams",get:function(){return this.fm}},{key:"hash",get:function(){var n=this.dm.Em;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.dm.Em="",qi(n,null,this.dm,20)):this.dm.Em=null}}]),n}();function $i(n){return n.document&&n.document.baseURI||n.location.href||""}var Zi=function(){function n(){this.Wm=new Ji,this.Xm=Nt,this.zm=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.Zg=function(){return self.performance.now()}:this.Zg=Rt}var t=n.prototype;return t.Pm=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.Im=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.Cm=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];zt.apply(void 0,Vn(t))},t.Rm=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];Xt.apply(void 0,[n].concat(Vn(r)))},t.$g=function(n,t){return _(n,t)},t.xm=function(n,t){return y(n,t)},t.Jg=function(n){d(n)},t.Dm=function(n){w(n)},t.Nm=function(){return this.Bm.Nm()},t.Mm=function(){return this.Bm.Mm()},t.Lm=function(){return this.Bm.Lm()},t.Om=function(){return this.Bm.Om()},t.Fm=function(){return this.Bm.Fm()},t.Um=function(n,t){return this.Bm.Um(n,t)},t.Vm=function(n){return this.Bm.Vm(n)},t.Fh=function(n,t){var r;return void 0===t&&(t=$i(a)),r="object"!==(void 0===t?"undefined":m(t))||b(t,Yi)?t:t.href,new Yi(n,r)},t.qm=function(n,t){if(void 0===t&&(t=$i(a)),this.zm){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},vn(n,[{key:"Hm",get:function(){return this.Wm}},{key:"Zs",get:function(){return this.Xm}},{key:"Gm",get:function(){return{Qm:v&&v.userAgent.match(/Android /i)?"Android":"other",Km:Boolean(v&&v.userAgent.match(/Android 8.0.0/i))}}},{key:"jm",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"Ym",get:function(){return"languages"in v?v.languages.slice():[v.language]}}]),n}(),Ji=function(){function n(){}return vn(n,[{key:"Zm",get:function(){return v.oscpu}},{key:"Zs",get:function(){return v.platform}},{key:"Jm",get:function(){return v.vendor}},{key:"$m",get:function(){return v.vendorSub}}]),n}();var Qi=function(){function n(){}var t=n.prototype;return t.Fm=function(){return tn.resolve(!1)},t.Mm=function(){return tn.resolve(!1)},t.Om=function(){return tn.resolve(!1)},t.Lm=function(){return tn.resolve(!1)},t.Vm=function(n){return tn.resolve(!1)},t.Um=function(n,t){return tn.resolve(!1)},t.Nm=function(){return tn.resolve(!1)},n}(),ne=function(){function n(){}var t=n.prototype;return t.vS=function(){},t.qy=function(n){},t.Vy=function(n){},t.Hy=function(n,t){},n}(),te=function(n){return n.wS="arraybuffer",n.mS="json",n.pS="stream",n.yS="text",n}({});function re(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 ie=function(){function n(t){var r=this;this.sp={},b(t,n)?t.asList().forEach((function(n){var t=re(n,2),i=t[0],e=t[1];r.append(i,e)})):Array.isArray(t)?t.forEach((function(n){var t=re(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=ee(r),i=ue(i);var e=r.toLowerCase();if(this.sp.hasOwnProperty(e)){var u=this.sp[e],o=u[1];u[1]=o?o+", "+i:i}else this.sp[e]=[r,i]},t.delete=function(n){var t=ee(n).toLowerCase();delete this.sp[t]},t.get=function(n){var t=ee(n).toLowerCase();return this.sp.hasOwnProperty(t)?this.sp[t][1]:null},t.has=function(n){var t=ee(n).toLowerCase();return this.sp.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=ee(r)).toLowerCase();this.sp[i]=[r,ue(t)]},t.forEach=function(n,t){for(var r in this.sp)this.sp.hasOwnProperty(r)&&n.call(t,this.sp[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.sp)if(this.sp.hasOwnProperty(t)){var r=re(this.sp[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.AS=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.bS=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.TS=function(n){var t=this;n.forEach((function(n,r){t.set(r,n)}))},n}();function ee(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 ue(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}var oe=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_,d,y,w,I,E,g=n.JS;t?(r=t.RS,i=t.KS,e=t.Ek,u=t.GS,o=t.Pk,f=t.Ik,s=t._w,c=t.lp,a=t.Ck,h=t.Rk,l=t.xk,v=t.Dk,_=t.Nk,d=t.Bk,y=t.Mk):(r=null,i={},e="GET",u=te.yS,o=0,f=0,c="",a="",h="",l=!1,_=void 0,d=!1,y=void 0),this.JS=g,this.RS=n.RS||r,this.KS=new ie(n.KS||i),this.Ek=n.Ek||e,this.GS=n.GS||u,this.Pk=void 0!==n.Pk?Number(n.Pk)||0:o,this.Ik=void 0!==n.Ik?Number(n.Ik)||0:f,this._w=n._w||s||(new Kn)._w,this.lp=n.lp||c,this.Ck=n.Ck||a,this.Rk=n.Rk||h,this.xk=void 0!==n.xk?Boolean(n.xk):l,this.Dk=n.Dk||v,this.Nk=null!=(w=n.Nk)?w:_,this.Bk=null!=(I=n.Bk)?I:d,this.Mk=null!=(E=n.Mk)?E:y},fe=function(n){return n.zk="HttpOpenError",n.Xk="HttpResponseError",n.Gk="HttpTimeoutError",n}({}),se=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).Qk=t,e}return hn(t,n),vn(t,[{key:"QS",get:function(){return this.Qk}}]),t}(zn);var ce=function(n){function t(t,r){return n.call(this,t,function(n){return"Error while opening "+n+". Invalid URL."}(t.JS),r)||this}return hn(t,n),vn(t,[{key:"name",get:function(){return fe.zk}}]),t}(se),ae=function(){function n(){}var t=n.prototype;return t.QS=function(n){return tn.reject(new ce(new oe(n)))},t.Lk=function(n){},t.wn=function(){},n}(),he=function(n){function t(t){return n.call(this,"Invalid XML",t)||this}return hn(t,n),t}(zn),le=function(n){function t(){var t;return(t=n.apply(this,arguments)||this).jE=new Qi,t.tU=new ae,t.i=new ne,t}return hn(t,n),t.prototype.SE=function(n){throw new he},vn(t,[{key:"Bm",get:function(){return this.jE}},{key:"YE",get:function(){return!1}},{key:"JE",get:function(){return!1}},{key:"iP",get:function(){return!1}},{key:"tP",get:function(){return!1}},{key:"sP",get:function(){return this.i}},{key:"nP",get:function(){return{rP:Dn}}},{key:"hP",get:function(){return"default"}},{key:"oP",get:function(){return"unknown"}},{key:"rd",get:function(){return this.tU}}]),t}(Zi);!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 hn(t,n),vn(t,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return de.fromCode(this.code)}}]),t}(zn);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=b(n,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 pe=ge.length;function Oe(n){var t=Re(n);return function(n){n<132||(ge[n]=pe,pe=n)}(n),t}var Se=void 0!==Ee?new Ee("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:function(){throw I("TextDecoder not available")}};void 0!==Ee&&Se.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,Se.decode(ke().subarray(n,n+t))}function me(n){pe===ge.length&&ge.push(ge.length+1);var t=pe;return pe=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 Be(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 Ue=void 0!==Ie?new Ie("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 Fn((function(){var r,i,e;return Bn(this,(function(u){switch(u.label){case 0:if("function"!=typeof Response||!b(n,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 b(e=u.sent(),WebAssembly.Instance)?[2,{instance:e,module:n}]:[2,e];case 9:return[2]}}))}))()}function We(){var n={wbg:{}};return n.wbg.__wbg_data_88128afc928c671c=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_4fad98bf01a9214c=function(n){var t=Re(n).metadata;return Pe(t)?0:me(t)},n.wbg.__wbg_spsnal_8d37c9c08c451465=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_dce3653ab694e269=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_104d156b2ba6bc7a=function(n){var t=Re(n).video_pid;return Pe(t)?16777215:t},n.wbg.__wbg_audiopid_f08186bc78c6651c=function(n){var t=Re(n).audio_pid;return Pe(t)?16777215:t},n.wbg.__wbg_programmaptablepid_df06a5b67473487c=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_33c7567cebae8889=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_cdcc16b8210fc8cc=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_cf1303a7c4055e7f=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_4ffe577c1c6155fb=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=Ue.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+=Me(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 He(n,t){return we=n.exports,xe.__wbindgen_wasm_module=t,Ce=null,Te=null,we.__wbindgen_start(),we}function xe(n){return Fn((function(){var t,r,i,e;return Bn(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&&b(n,Request)||"function"==typeof URL&&b(n,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)]}}))}))()}function Ge(n){return Fn((function(){var t,r;return Bn(this,(function(i){switch(i.label){case 0:return b(n,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 tn((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:Fe,raw_audio_to_fmp4:Be}]}}))}))()}var je=new URL("./THEOplayer.transmux.wasm",l.href);!function(n){var t,r=tn.resolve(n()).then((function(n){t=n,r=void 0,self.postMessage({XOt:"9.8.2"})}),(function(n){var t=n,r={success:!1,error:t.message,errorCode:b(t,ye)?t.code:_e.MEDIA_DECODE_ERROR};self.postMessage(r)}));self.addEventListener("message",(function(n){var i=n.data.id;(function(n){return Fn((function(){var i,e,u,o,f,s;return Bn(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(Nn).map((function(n){return n.buffer})),self.postMessage(f,s),[2]}}))}))()})(n.data).catch((function(n){var t=n,r={success:!1,requestId:i,error:t.message,errorCode:b(t,ye)?t.code:_e.MEDIA_DECODE_ERROR};self.postMessage(r)}))}))}((function(){return Ge(je)}))}("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,v=n.location,l=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,p=n.parseInt,O=n.parseFloat,S=n.isNaN,T=n.Uint8Array,k=(n.Worker,n.WorkerGlobalScope,n.XMLHttpRequest);function b(n,r){return null!=r&&void 0!==t&&r[t.hasInstance]?!!r[t.hasInstance](n):n instanceof r}function m(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"hd"+n+"_"+ ++c},i=(r=function(n){return"hd"+n})("Symbol.iterator"),e=r("Symbol.dispose"),u=r("Symbol.asyncDispose"),t.for=r,t.iterator=i,t.dispose=e,t.asyncDispose=u);var N=_;function A(n){return Boolean(n&&void 0!==n.length)}function C(){}function D(n){if(!b(this,D))throw new E("Promises must be constructed via new");if("function"!=typeof n)throw new E("not a function");this.Va=0,this.$8t=!1,this.Vyt=void 0,this.t7t=[],M(n,this)}function P(n,t){for(;3===n.Va;)n=n.Vyt;0!==n.Va?(n.$8t=!0,D.n7t(function(){var r=1===n.Va?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.Vyt)}catch(n){return void F(t.promise,n)}L(t.promise,i)}else(1===n.Va?L:F)(t.promise,n.Vyt)})):n.t7t.push(t)}function L(n,t){try{if(t===n)throw new E("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":m(t))||"function"==typeof t)){var r=t.then;if(b(t,D))return n.Va=3,n.Vyt=t,void B(n);if("function"==typeof r)return void M(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.Va=1,n.Vyt=t,B(n)}catch(t){F(n,t)}}function F(n,t){n.Va=2,n.Vyt=t,B(n)}function B(n){2===n.Va&&0===n.t7t.length&&D.n7t(function(){n.$8t||D.i7t(n.Vyt)});for(var t=0,r=n.t7t.length;t<r;t++)P(n,n.t7t[t]);n.t7t=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,L(t,n))},function(n){r||(r=!0,F(t,n))})}catch(n){if(r)return;r=!0,F(t,n)}}D.prototype.catch=function(n){return this.then(null,n)},D.prototype.then=function(n,t){var r=new this.constructor(C);return P(this,new U(n,t,r)),r},D.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)})})},D.all=function(n){return new D(function(t,r){if(!A(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":m(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])})},D.allSettled=function(n){return new this(function(t,r){if(!n||void 0===n.length)return r(new E((void 0===n?"undefined":m(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":m(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])})},D.resolve=function(n){return n&&"object"===(void 0===n?"undefined":m(n))&&n.constructor===D?n:new D(function(t){t(n)})},D.reject=function(n){return new D(function(t,r){r(n)})},D.race=function(n){return new D(function(t,r){if(!A(n))return r(new E("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)D.resolve(n[i]).then(t,r)})},D.n7t="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){N(n,0)},D.i7t=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){}}(),W=l?l.userAgent:"",H=W.match(/Firefox\/([0-9]+)/i),x=null!=H,G=H?Number(H[1]):0,j=W.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),K=null!=j,q=j?Number(j[3]):0,z=function(){function n(n){this.nA=0,this.Tf=0,this.fm=[],this.r7t=n}return n.prototype.e7t=function(n){var t=this.length();this.s7t(t+1);var r=this.Tf+t&this.r7t-1;this.fm[r]=n,this.nA=t+1},n.prototype.push=function(n){var t=this.length()+1;if(this.r7t<t)this.e7t(n);else{var r=this.Tf+t-1,i=this.r7t-1;this.fm[r&i]=n,this.nA=t}},n.prototype.shift=function(){var n=this.Tf,t=this.fm[n];return this.fm[n]=void 0,this.Tf=n+1&this.r7t-1,this.nA--,t},n.prototype.length=function(){return this.nA},n.prototype.s7t=function(n){this.r7t<n&&this.u7t(this.r7t<<1)},n.prototype.u7t=function(n){var t=this.r7t;this.r7t=n;var r=this.Tf+this.nA&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.fm,0,t,r)},n}();var X="unhandledrejection",Y=self.PromiseRejectionEvent,$=self.CustomEvent;function Z(n){return new Y(X,{reason:n,promise:V.reject(n).catch(function(){}),cancelable:!0})}function J(n){var t=new $(X,{detail:{reason:n},cancelable:!0});return g.defineProperty(t,"reason",{value:n}),t}function Q(n){var t=h.createEvent("CustomEvent");return t.initCustomEvent(X,!1,!0,{reason:n}),t}var nn,tn,rn,en,un,on,fn,sn,cn=function(n){return cn=function(){try{var n=V.resolve(),t="error",r=new Y(X,{reason:t,promise:n});return X===r.type&&t===r.reason}catch(n){}return!1}()?Z:function(){try{var n="error",t=new $(X,{detail:{reason:n}});return X===t.type&&n===t.detail.reason}catch(n){}return!1}()?J:Q,cn(n)};function an(n,t){return an=g.setPrototypeOf||function(n,t){return n.__proto__=t,n},an(n,t)}function hn(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&&an(n,t)}function vn(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&&vn(n.prototype,t),r&&vn(n,r),n}function _n(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 dn(n,r){var e=void 0!==t&&n[i]||n["@@iterator"];if(e)return(e=e.call(n)).next.bind(e);if(Array.isArray(n)||(e=function(n,t){if(n){if("string"==typeof n)return _n(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)?_n(n,t):void 0}}(n))||r&&n&&"number"==typeof n.length){e&&(n=e);var u=0;return function(){return u>=n.length?{done:!0}:{done:!1,value:n[u++]}}}throw new E("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}V&&!(x&&G<60||K&&q<15)?tn=V:(tn=D,fn=null!==(nn=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!==nn?nn:D.n7t,rn=fn,en=new z(16),un=!1,(sn={W2:function(n){en.push(n),un||(un=!0,rn(on))},Vz:on=function(){for(;en.length()>0;)en.shift()();un=!1}}).Vz,D.n7t=sn.W2,D.i7t=function(n){try{var t=cn(n);if(!self.dispatchEvent(t)||t.defaultPrevented)return}catch(n){}_(function(){throw new I("Unhandled promise rejection: ".concat(n))},0)});var yn=function(n){return n.O_="web",n.F_="android",n.U_="android-tv",n.V_="ios",n.H_="tvos",n.W_="chromecast",n.q_="theoliveweb",n}({});var wn=l?l.userAgent:"",In=wn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),En=wn.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),gn=wn.match(/Android ([0-9\.]+)/i),Rn=wn.match(/Windows NT ([0-9\.]+)/i),pn=wn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),On=wn.match(/Firefox\/([0-9\.]+)/i),Sn=wn.match(/OPR\/(\d+\.\d+)/i),Tn=wn.match(/Tizen ([0-9\.]+)/i),kn=wn.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),bn=wn.match(/HbbTV\/([0-9.]+)/i),mn=function(){function n(){this.z_=Boolean("ontouchstart"in self||self.DocumentTouch&&b(h,self.DocumentTouch)||l&&l.msMaxTouchPoints),this.G_=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(wn)||/(macintosh|mac(?=_powerpc)\s)/i.test(wn),this.K_=/Windows NT/i.test(wn),this.Y_=Rn?O(Rn[1]):0,this.J_=/Android/i.test(wn),this.rv=gn?O(gn[1]):0,this.ov=/windows phone (8|8\.1)/i.test(wn),this.fv=/iPhone/i.test(wn),this.vv=/iPad/i.test(wn),this.mv=this.G_&&this.z_&&!this.vv,this.yv=/iPod/i.test(wn),this.Cv=/Mobile Safari/i.test(wn),this.Pv=/EOS\d*STB/i.test(wn),this.Iv=/APP\d*STB/i.test(wn),this.bv=(this.fv||this.vv||this.mv||this.yv)&&!this.ov,this.Sv=kn?O(kn[2]):0,this.xv=this.ov||this.bv||this.J_||this.Cv,this.Nv=/CriOS/i.test(wn),this.Mv=Boolean(self.chrome&&/google/i.test(l.vendor))||this.Nv,this.Vv=this.Mv&&/Edg\//i.test(l.userAgent),this.Wv=En?p(En[1],10):0,this.$g=Boolean(/CriOS/i.test(wn)),this.Jg=Boolean(self.chrome||/Chrome/i.test(wn)||this.$g),this.Fv=In?p(In[1],10):0,this.Xv=/SMART-TV.*Tizen/i.test(wn),this.Qv=Tn?O(Tn[1]):0,this.Ov=this.Qv>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.Qv):void 0,this.Yv=/webos|web0s/i.test(wn),this.Jv=/HbbTV/i.test(wn),this.eg=!!bn&&function(n){if(!n)return!1;var t=n.split(".").map(Number);return 3===t.length&&1===t[0]&&2===t[1]}(bn[1]),this.hg=/VIZIO/i.test(wn),this.ag=/Edge\/\d+/i.test(wn),this.dg=/Trident/i.test(wn),this._g=this.dg&&!self.ActiveXObject&&"ActiveXObject"in self,this.gg=/Vivaldi/i.test(wn),this.pg=/Firefox/i.test(wn)&&!/Seamonkey/i.test(wn),this.Ag=On?O(On[1]):0,this.Sg=/Safari/i.test(wn)&&!/Chrome/i.test(wn)&&!this.ov&&!this.Xv,this.Pg=pn?O(pn[2]):0,this.Rg=Boolean(Sn),this.xg=Sn?O(Sn[1]):0,this.Ng=/CrKey/.test(wn),this.Mg=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(wn),this.Fg=/PlayStation 4/i.test(wn),this.Vg="web"===yn.U_,this.Wg="web"===yn.F_,this.zg=this.Wg||this.Vg,this.Gg="web"===yn.V_,this.Kg="web"===yn.H_,this.Yg="web"===yn.W_}return ln(n,[{key:"tn",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:"ev",get:function(){return this.rv}},{key:"hv",get:function(){return this.ov}},{key:"uv",get:function(){return this.fv}},{key:"_v",get:function(){return this.vv}},{key:"wv",get:function(){return this.mv}},{key:"pv",get:function(){return this.yv}},{key:"Av",get:function(){return this.bv}},{key:"Tv",get:function(){return this.Sv}},{key:"Ev",get:function(){return this.Pv||this.Iv}},{key:"Rv",get:function(){return this.Cv}},{key:"te",get:function(){return this.xv}},{key:"Dv",get:function(){return this.Nv}},{key:"Bv",get:function(){return this.Mv}},{key:"Lv",get:function(){var n;return null!=(n=this.Ov)?n:this.Fv}},{key:"Uv",get:function(){return this.Vv}},{key:"Hv",get:function(){var n;return(null==(n=a.chrome)?void 0:n.webview)&&this.Wv>0}},{key:"qv",get:function(){return this.Wv}},{key:"zv",get:function(){return this.Xv}},{key:"Gv",get:function(){return this.Qv}},{key:"Kv",get:function(){return this.Yv}},{key:"Zv",get:function(){return this.Jv}},{key:"$v",get:function(){return this.eg}},{key:"rg",get:function(){return this.hg}},{key:"og",get:function(){return this.ag}},{key:"cg",get:function(){return this.dg}},{key:"fg",get:function(){return this._g}},{key:"vg",get:function(){return this.gg}},{key:"wg",get:function(){return this.pg}},{key:"yg",get:function(){return this.Ag}},{key:"Tg",get:function(){return this.Sg}},{key:"Eg",get:function(){return 0===this.Pg&&Nn.Av?this.Sv:this.Pg}},{key:"Ig",get:function(){return this.Rg}},{key:"Cg",get:function(){return this.xg}},{key:"Dg",get:function(){return this.Ng}},{key:"Bg",get:function(){return this.Mg}},{key:"Lg",get:function(){return!(!this.Kv&&!this.zv)&&this.Lv<=56}},{key:"Og",get:function(){return this.Fg}},{key:"Ug",get:function(){return this.Vg}},{key:"Hg",get:function(){return this.Wg}},{key:"qg",get:function(){return this.zg}},{key:"Xg",get:function(){return this.Gg}},{key:"Qg",get:function(){return this.Kg}},{key:"jg",get:function(){return this.Yg}},{key:"Zg",get:function(){return this.Jg}},{key:"IS_IOS_CHROME",get:function(){return this.$g}}]),n}();mn.iw=new mn;var Nn=mn.iw,An={}.toString;function Cn(n){return null!=n}Array.isArray;function Dn(n){return"object"===(void 0===n?"undefined":m(n))&&null!==n}function Pn(n){return function(n){return"function"==typeof n}(n)||Dn(n)}var Ln=function(){};function Fn(n){var t;return function(){return void 0!==n&&(t=n(),n=void 0),t}}function Bn(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):tn.resolve(s).then(i,e)}function Un(n){return function(){var t=this,r=arguments;return new tn(function(i,e){var u=n.apply(t,r);function o(n){Bn(u,i,e,o,f,"next",n)}function f(n){Bn(u,i,e,o,f,"throw",n)}o(void 0)})}}function Mn(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])}}}R.pow(2,-52),Array.prototype.find,Array.prototype.findLast;var Vn="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.cw=!1,this.dw=!1,this.lw=[],this.fw=[]}var t=n.prototype;return t.uw=function(){if(!this.cw&&!this.dw){this.cw=!0;for(var n,t=dn(this.lw.slice());!(n=t()).done;){(0,n.value)()}this.Ku()}},t.Ku=function(){if(!this.dw){this.dw=!0;for(var n,t=dn(this.fw.slice());!(n=t()).done;){(0,n.value)()}xn(this.lw),xn(this.fw)}},t._w=function(n){this.dw||this.lw.push(n)},t.gw=function(n){this.dw||Hn(this.lw,n)},t.ww=function(n){this.dw||this.fw.push(n)},t.mw=function(n){this.dw||Hn(this.fw,n)},n}(),jn=function(){function n(){this.yw=new Gn}var t=n.prototype;return t.dd=function(){this.yw.uw()},t.Ku=function(){this.yw.Ku()},t.Aw=function(n){var t=this.yw;if(!t.cw)if(n.cw)t.uw();else if(!t.dw&&!n.dw){var r=function(){i(),t.uw()},i=function(){n.gw(r),n.mw(i),t.gw(r),t.mw(i)};n._w(r),n.ww(i),t._w(r),t.ww(i)}},t.bw=function(){var t=new n,r=new n,i=t.pw,e=r.pw,u=this.yw,o=function(){i.cw&&e.dw||e.cw&&i.dw?u.uw():i.dw&&e.dw&&u.Ku()};i._w(o),e._w(o),i.ww(o),e.ww(o),t.Aw(u),r.Aw(u);return u.ww(function(){i.gw(o),e.gw(o),i.mw(o),e.mw(o)}),[t,r]},t[e]=function(){this.dd()},n.Tw=function(t){for(var r,i=new n,e=dn(t);!(r=e()).done;){var u=r.value;void 0!==u&&i.Aw(u)}return i},ln(n,[{key:"pw",get:function(){return this.yw}}]),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).cause=void 0,i.message=t||"Unknown error",i.cause=r,I.captureStackTrace&&I.captureStackTrace(i,i.constructor),i}return hn(t,n),ln(t,[{key:"name",get:function(){return"BaseError"}}]),t}(Kn);tn.resolve();function zn(){return void 0!==h?h.createElement("video"):void 0}var Xn=Fn(zn),Yn=(Fn(function(){return"undefined"!=typeof HTMLVideoElement&&b(Xn(),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(rn){}function $n(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function Zn(n){return!0===(n&&n.Ew)}function Jn(n){var t=R.clz32(n&-n);return n?31-t:t}$n.prototype.Ew,g.defineProperty($n.prototype,"Ew",{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?vt:ht;if(t){if(n<0)return vt;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?vt: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=p(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 vt=tt(0,!0);$n.UZERO=vt;var lt=tt(1);$n.ONE=lt;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&&!(n&1<<t);t--);return 0!=this.high?t+33:t+1},Et.isSafeInteger=function(){var n=this.high>>21;return!n||!this.unsigned&&(-1===n&&!(0===this.low&&-2097152===this.high))},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&~this.low)},Et.isEven=function(){return!(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(lt)},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?vt: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,v=0;return h+=(v+=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|(v&=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?vt:ht;if(this.unsigned){if(n.unsigned||(n=n.toUnsigned()),n.gt(this))return vt;if(n.gt(this.shru(1)))return _t;i=vt}else{if(this.eq(It))return n.eq(lt)||n.eq(dt)?It:n.eq(It)?lt:(t=this.shr(1).div(n).shl(1)).eq(ht)?n.isNegative()?lt:dt:(r=this.sub(n.mul(t)),i=t.add(r.div(n)));if(n.eq(It))return this.unsigned?vt: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=lt),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)},"function"==typeof BigInt&&($n.fromBigInt=function(n,t){return it(Number(BigInt.asIntN(32,n)),Number(BigInt.asIntN(32,n>>BigInt(32))),t)},$n.fromValue=function(n,t){return"bigint"===(void 0===n?"undefined":m(n))?$n.fromBigInt(n,t):ot(n,t)},Et.toBigInt=function(){var n=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|n});var Rt=1/6,pt=($n.fromNumber(9007199254740991),Boolean("ontouchstart"in self||self.DocumentTouch&&b(h,self.DocumentTouch))||Boolean(l&&l.msMaxTouchPoints)),Ot=Xn(),St=Boolean(Ot&&Ot.webkitShowPlaybackTargetPicker),Tt=function(){function n(){this.Iw=void 0,this.Jw=!1,this.tn=pt,this.te=!1,this.Sw=!0}var t=n.prototype;return t.Rw=function(){return 0},t.jw=function(n,t){return!0},t.Yw=function(n){return n>=2*Rt},ln(n,[{key:"Pw",get:function(){return void 0===this.Iw&&(this.Iw=this.Rw()),this.Iw}},{key:"Cw",get:function(){return Nn.Z_?"android":Nn.X_?"macos":Nn.Av?"ios":Nn.Q_?"windows":"other"}},{key:"xw",get:function(){return Nn.Bg?"tv":Nn.te?"mobile":"desktop"}},{key:"Dw",get:function(){return!Nn.Bg}},{key:"Nw",get:function(){if(a.screen)return{width:a.screen.width,height:a.screen.height}}},{key:"Bw",get:function(){return a.devicePixelRatio||1}},{key:"Mw",get:function(){return St}},{key:"Lw",get:function(){return!1}},{key:"Ow",get:function(){return!0}},{key:"Fw",get:function(){return!!(Nn.Tg||Nn.Av||Nn.Hv)||!!Nn.rg}},{key:"Uw",get:function(){return Nn.rg}},{key:"Vw",get:function(){return!Nn.Av}},{key:"Hw",get:function(){return!0}},{key:"Ww",get:function(){return!0}},{key:"qw",get:function(){return!1}},{key:"zw",get:function(){}},{key:"Xw",get:function(){return!0}},{key:"Gw",get:function(){return!1}},{key:"Qw",get:function(){return Nn.rg}},{key:"Kw",get:function(){return!1}},{key:"Zw",get:function(){return!1}}]),n}(),kt=function(n){function t(){return n.call(this)||this}return hn(t,n),t}(Tt),bt=function(n){function t(){return n.apply(this,arguments)||this}return hn(t,n),t.prototype.jw=function(n,t){if(n&&n.$w&&t&&t.$w){var r=mt(n.$w,"mp4a.40.2")&&mt(t.$w,"mp4a.40.5"),i=mt(n.$w,"mp4a.40.5")&&mt(t.$w,"mp4a.40.2"),e=mt(n.$w,"mp4a.40.2")&&mt(t.$w,"mp4a.40.34"),u=mt(n.$w,"mp4a.40.34")&&mt(t.$w,"mp4a.40.2"),o=mt(n.$w,"mp4a.40.5")&&mt(t.$w,"mp4a.40.34"),f=mt(n.$w,"mp4a.40.34")&&mt(t.$w,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},ln(t,[{key:"zw",get:function(){if(Nn.X_)return 4096}}]),t}(kt);function mt(n,t){return n.indexOf(t)>-1}var Nt,At=function(n){function t(){return n.apply(this,arguments)||this}return hn(t,n),t.prototype.Yw=function(n){return n>=2},t}(kt),Ct=function(n){function t(){var t;return(t=n.call(this)||this).Jw=Nn.Eg>=11,t.Sw=Nn.Tg&&!(Nn.Av&&Nn.Eg<10),t}return hn(t,n),ln(t,[{key:"Kw",get:function(){return Nn.Eg<17}},{key:"Zw",get:function(){return!0}}]),t}(kt),Dt=function(n){function t(){return n.apply(this,arguments)||this}return hn(t,n),ln(t,[{key:"Xw",get:function(){return!Nn.Q_||(Nn.Uv?92!==Nn.qv:Nn.Lv>=100)}}]),t}(kt);var Pt=function(){var n=zn();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(Nn.wv)return!1;var n=zn();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var Lt=function(n){function t(t){var r;return(r=n.call(this)||this).tm=void 0,r.tm=t,r.Jw=r.tm.Jw,r.tn=r.tm.tn,r.Sw=Pt&&r.tm.Sw,r}hn(t,n);var r=t.prototype;return r.Rw=function(){return this.tm.Pw},r.jw=function(n,t){return this.tm.jw(n,t)},r.Yw=function(n){return this.tm.Yw(n)},ln(t,[{key:"zw",get:function(){return this.tm.zw}},{key:"Xw",get:function(){return this.tm.Xw}},{key:"Kw",get:function(){return this.tm.Kw}}]),t}(Tt),Ft=function(n){function t(t){var r;return(r=n.call(this,t)||this).Jw=!0,r.te=!0,r}return hn(t,n),ln(t,[{key:"qw",get:function(){return Nn.Av}}]),t}(Lt);var Bt=function(n){function t(){return n.apply(this,arguments)||this}return hn(t,n),t.prototype.Rw=function(){return function(n){return n&&Pn(a.ManagedMediaSource)?a.ManagedMediaSource:Pn(a.MediaSource)?a.MediaSource:void 0}(!0)?n.prototype.Rw.call(this):1},ln(t,[{key:"qw",get:function(){return!0}}]),t}(Ft),Ut=function(n){function t(){var t;return(t=n.apply(this,arguments)||this).um=void 0,t}return hn(t,n),t.prototype.jw=function(t,r){return n.prototype.jw.call(this,t,r)},ln(t,[{key:"Lw",get:function(){return Nn.Gv<3}},{key:"Ow",get:function(){return Nn.Gv>=3}},{key:"Nw",get:function(){var n=this;return a.tizen&&!this.um&&a.tizen.systeminfo.getPropertyValue("DISPLAY",function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.um={width:r,height:i})}),this.um}},{key:"Gw",get:function(){return Nn.Gv<3}}]),t}(Lt),Mt=function(n){function t(){var t;return(t=n.apply(this,arguments)||this).um=void 0,t}return hn(t,n),ln(t,[{key:"Nw",get:function(){var n=this;return a.webOS&&!this.um&&a.webOS.deviceInfo(function(t){n.um={width:t.screenWidth,height:t.screenHeight}}),this.um}},{key:"Hw",get:function(){return!1}}]),t}(Lt),Vt=function(n){function t(){return n.apply(this,arguments)||this}return hn(t,n),ln(t,[{key:"qw",get:function(){return!0}},{key:"Zw",get:function(){return this.tm.Zw}}]),t}(Lt);!function(n){Nt=n}(function(){var n=function(){if(Nn.wg)return new bt;if(Nn.og||Nn.cg)return new At;if(Nn.Tg)return new Ct;if(Nn.Bv)return new Dt;return new kt}();return Nn.Av?new Bt(n):Nn.te?new Ft(n):Nn.zv?new Ut(n):Nn.Kv?new Mt(n):Nn.X_?new Vt(n):new Lt(n)}());var Wt=!(Nn.cg&&!Nn.fg),Ht=self.console;function xt(n){if(Dn(n))try{return JSON.stringify(n)}catch(n){}return n}function Gt(n){return n.map(xt).join(" ")}function jt(n){var t=Ht&&Ht[n];return t?t.bind&&Wt?t.bind(Ht):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];Ht[n](Gt(r))}:void 0}var Kt=jt("log")||Ln,qt=jt("warn")||Kt.bind(void 0,"WARNING:"),zt=jt("error")||Kt.bind(void 0,"ERROR:"),Xt=function(){var n=Ht&&Ht.assert;return n?n.bind&&Wt?n.bind(Ht):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];Ht.assert(n,Gt(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||zt.apply(void 0,[].concat(["Assertion failed:"],r))}}();function Yt(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 $t(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){Zt(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&Zt(r,null,n.length,n),n}function Zt(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 Jt=/[a-zA-Z]/,Qt=/[0-9]/,nr=/[0-9a-fA-F]/,tr=/^0x/i,rr=/^[0-9]+$/,ir=/^[0-9a-fA-F]+$/,er=/^[0-7]+$/,ur=g.prototype.toString,or=Array.isArray||function(n){return"[object Array]"===ur.call(n)},fr=void 0!==t&&"symbol"==typeof i;function sr(n){return or(n)?n:Array.from(n)}function cr(n,t,r){var i=n[t];n[t]=n[r],n[r]=i}function ar(n){return n>=65&&n<=90}function hr(n){return ar(n)||function(n){return n>=97&&n<=122}(n)}function vr(n){return n>=48&&n<=57}function lr(n){return vr(n)||hr(n)}function _r(n){return vr(n)||n>=65&&n<=70||n>=97&&n<=102}function dr(n){return ar(n)?n+32:n}function yr(n){return vr(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function wr(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var Ir=R.min,Er=String.fromCharCode;function gr(n){for(var t=n.length,r=[],i=0;i<t;i+=16384){var e=Ir(i+16384,t);r.push(Er.apply(null,n.slice(i,e)))}return r.join("")}var Rr=2147483647,pr=/[^\0-\x7E]/,Or=/[\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(Or,".")).split("."),t).join(".");return i+e}(n,function(n){return pr.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,v=0,l=n;v<l.length;v++){var _=l[v];_>=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 p=E-R,O=36-R;t.push(kr(Dr(R+p%O,0))),E=Tr(p/O)}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 Br(n){if(n>=55296&&n<=57343)throw new I("Lone surrogate U+"+n.toString(16).toUpperCase()+" is not a scalar value")}function Ur(n,t){return n>>t&63|128}function Mr(n,t){4294967168&n?(4294965248&n?4294901760&n?4292870144&n||(t.push(n>>18&7|240),t.push(Ur(n,12)),t.push(Ur(n,6))):(Br(n),t.push(n>>12&15|224),t.push(Ur(n,6))):t.push(n>>6&31|192),t.push(63&n|128)):t.push(n)}function Vr(n){for(var t=[],r=0;r<n.length;r++){Mr(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++,!(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 Br(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,wr(n>>4),wr(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=Vr([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&&_r(n[i+1])&&_r(n[i+2])){var u=yr(n[i+1])<<4|yr(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(Vr(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&&nr.test(n[u]);)o=o<<4|p(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(!Qt.test(n[u]))throw new E;for(;u<t&&Qt.test(n[u]);){var a=p(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;)cr(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=rr;return tr.test(n)?(n=n.slice(2),t=16,r=ir):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=er),""===n?0:r.test(n)?p(n,t):void 0}var ti={dm: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{dm:2,lm: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:{dm:3,fm: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?{dm:1,lm:i}:""===r?ti:{dm:0,_m:r}}function ui(n){switch(n.dm){case 0:return n._m;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.lm);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.lm)+"]";case 3:return n.fm;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(Vr(mr(i[0])))+"="+ai(Vr(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 vi(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(li);else{var o=n.charCodeAt(e+1);di(o)?(i.push(u,o),e++):i.push(li)}else i.push(u)}return n.slice(0,t)+gr(i)}(t,r.index):t}var li=65533,_i=function(n){return 55296==(63488&n)},di=function(n){return!!(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.vm.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.vm,si(t))}function Ei(n){if(n.gm){var t=ci(n.vm);""===t&&(t=null),n.gm.gm.wm=t}}var gi=function(){function n(n){if(void 0===n&&(n=void 0),this.gm=null,null==n)this.vm=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof gi&&!!or(n.vm)&&(!fr||n[i]===Ri)}(n))this.vm=n.vm.slice();else if(function(n){return null!=n&&(!!or(n)||!!fr&&"function"==typeof n[i])}(n)){this.vm=[];for(var t=0,r=sr(n);t<r.length;t++){var e=sr(r[t]);if(2!==e.length)throw new E("Invalid name-value pair");this.vm.push([vi(e[0]),vi(e[1])])}}else for(var u in this.vm=[],n)g.prototype.hasOwnProperty.call(n,u)&&this.vm.push([vi(u),vi(n[u])]);else(n=vi(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.vm=si(n)}var t=n.prototype;return t.append=function(n,t){n=vi(n),t=vi(t),this.vm.push([n,t]),Ei(this)},t.delete=function(n){n=vi(n);for(var t=this.vm,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}Ei(this)},t.get=function(n){n=vi(n);for(var t=this.vm,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},t.getAll=function(n){n=vi(n);for(var t=this.vm,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=vi(n);for(var t=this.vm,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},t.set=function(n,t){n=vi(n),t=vi(t);for(var r=this.vm,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(){$t(this.vm,yi),Ei(this)},t.toString=function(){return ci(this.vm)},t.entries=function(){return new Ti(this.vm,pi)},t.keys=function(){return new Ti(this.vm,Oi)},t.values=function(){return new Ti(this.vm,Si)},t.forEach=function(n){var t=this;this.vm.forEach(function(r){return n(r[1],r[0],t)})},n}(),Ri=gi.prototype.entries;fr&&(gi.prototype[i]=Ri);var pi=function(n){return[n[0],n[1]]},Oi=function(n){return n[0]},Si=function(n){return n[1]},Ti=function(){function n(n,t){this.pm=0,this.vm=n,this.ym=t}return n.prototype.next=function(){return this.pm<this.vm.length?{done:!1,value:this.ym(this.vm[this.pm++])}:{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.Am)}function Li(n){return""!==n.Tm||""!==n.Sm}function Fi(n){var t=n.length;if(!(t>=2))return!1;if(!Ui(n.slice(0,2)))return!1;if(2!==t){var r=n[2];if(47!==r&&92!==r&&63!==r&&35!==r)return!1}return!0}function Bi(n){return 2===n.length&&Jt.test(n[0])&&(":"===n[1]||"|"===n[1])}function Ui(n){return 2===n.length&&Bi(gr(n))}function Mi(n){return Bi(n)&&":"===n[1]}function Vi(n){var t=n.Em;0!==t.length&&("file"===n.Am&&1===t.length&&Mi(t[0])||t.pop())}function Wi(n){return null===n.Pm||ti===n.Pm||n.Im||"file"===n.Am}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 v=h<a?c[h]:Hi;switch(e){case 0:if(!hr(v)){if(null===i){u.length=0,e=2;continue}throw new E("Invalid scheme")}u.push(dr(v)),e=1;break;case 1:if(lr(v)||43===v||45===v||46===v)u.push(dr(v));else{if(58!==v){if(null===i){u.length=0,e=2,h=0;continue}throw new E("Invalid scheme")}var l=Fr(u);if(null!==i){if(Di(r.Am)&&!Di(l))return;if(!Di(r.Am)&&Di(l))return;if((Li(r)||null!==r.Rm)&&"file"===l)return;if("file"===r.Am&&(r.Pm===ti||null===r.Pm))return}if(r.Am=l,null!==i)return void(Pi(r)&&r.Rm===bi[r.Am]&&(r.Rm=null));u.length=0,"file"===r.Am?e=13:Pi(r)&&t&&t.Am===r.Am?e=3:Pi(r)?e=7:47===c[h+1]?(e=4,h+=1):(r.Im=!0,r.Em.push(""),e=18)}break;case 2:if(!t||t.Im&&35!==v)throw new E("Invalid scheme");t.Im&&35===v?(r.Am=t.Am,r.Em=t.Em.slice(),r.wm=t.wm,r.Cm="",r.Im=!0,e=20):"file"!==t.Am?(e=5,h-=1):(e=13,h-=1);break;case 3:47===v&&47===c[h+1]?e=8:(e=5,h-=1);break;case 4:47===v?e=9:(e=17,h-=1);break;case 5:r.Am=t.Am,Hi===v?(r.Tm=t.Tm,r.Sm=t.Sm,r.Pm=t.Pm,r.Rm=t.Rm,r.Em=t.Em.slice(),r.wm=t.wm):47===v?e=6:63===v?(r.Tm=t.Tm,r.Sm=t.Sm,r.Pm=t.Pm,r.Rm=t.Rm,r.Em=t.Em.slice(),r.wm="",e=19):35===v?(r.Tm=t.Tm,r.Sm=t.Sm,r.Pm=t.Pm,r.Rm=t.Rm,r.Em=t.Em.slice(),r.wm=t.wm,r.Cm="",e=20):92===v&&Pi(r)?e=6:(r.Tm=t.Tm,r.Sm=t.Sm,r.Pm=t.Pm,r.Rm=t.Rm,r.Em=t.Em.slice(),r.Em.pop(),e=17,h-=1);break;case 6:!Pi(r)||47!==v&&92!==v?47===v?e=9:(r.Tm=t.Tm,r.Sm=t.Sm,r.Pm=t.Pm,r.Rm=t.Rm,e=17,h-=1):e=8;break;case 7:if(47!==v||47!==c[h+1]){e=8;continue}e=8,h+=1;break;case 8:47!==v&&92!==v&&(e=9,h-=1);break;case 9:if(64===v){o&&u.unshift(37,52,48),o=!0;for(var _=0;_<u.length;_++){var d=u[_];if(58!==d||s){var y=Fr(Yr(d,qr));s?r.Sm+=y:r.Tm+=y}else s=!0}u.length=0}else if(Hi===v||47===v||63===v||35===v||Pi(r)&&92===v){if(o&&0===u.length)throw new E("Invalid host");h-=u.length+1,u.length=0,e=10}else u.push(v);break;case 10:case 11:if(null!==i&&"file"===r.Am)h-=1,e=15;else if(58!==v||f)if(Hi===v||47===v||63===v||35===v||Pi(r)&&92===v){if(h-=1,Pi(r)&&0===u.length)throw new E("Invalid host");if(null!==i&&0===u.length&&(Li(r)||null!==r.Rm))return;var w=ei(Fr(u),Pi(r));if(r.Pm=w,u.length=0,e=16,null!==i)return}else 91===v?f=!0:93===v&&(f=!1),u.push(v);else{if(0===u.length)throw new E("Invalid host");var I=ei(Fr(u),Pi(r));if(r.Pm=I,u.length=0,e=12,11===i)return}break;case 12:if(vr(v))u.push(v);else{if(!(Hi===v||47===v||63===v||35===v||Pi(r)&&92===v||null!==i))throw new E("Invalid port");if(0!==u.length){var g=p(Fr(u),10);if(g>65535)throw new E("Invalid port");r.Rm=g===bi[r.Am]?null:g,u.length=0}if(null!==i)return;e=16,h-=1}break;case 13:r.Am="file",47===v||92===v?e=14:t&&"file"===t.Am?Hi===v?(r.Pm=t.Pm,r.Em=t.Em.slice(),r.wm=t.wm):63===v?(r.Pm=t.Pm,r.Em=t.Em.slice(),r.wm="",e=19):35===v?(r.Pm=t.Pm,r.Em=t.Em.slice(),r.wm=t.wm,r.Cm="",e=20):(Fi(c.slice(h))||(r.Pm=t.Pm,r.Em=t.Em.slice(),Vi(r)),e=17,h-=1):(e=17,h-=1);break;case 14:47===v||92===v?e=15:(t&&"file"===t.Am&&!Fi(c.slice(h))&&(Mi(t.Em[0])?r.Em.push(t.Em[0]):r.Pm=t.Pm),e=17,h-=1);break;case 15:if(Hi===v||47===v||92===v||63===v||35===v)if(h-=1,null===i&&Ui(u))e=17;else if(0===u.length){if(r.Pm=ti,null!==i)return;e=16}else{var R=ei(Fr(u),Pi(r));if(0===R.dm&&"localhost"===R._m&&(R=ti),r.Pm=R,null!==i)return;u.length=0,e=16}else u.push(v);break;case 16:Pi(r)?(e=17,47!==v&&92!==v&&(h-=1)):null===i&&63===v?(r.wm="",e=19):null===i&&35===v?(r.Cm="",e=20):Hi!==v&&(e=17,47!==v&&(h-=1));break;case 17:if(Hi===v||47===v||Pi(r)&&92===v||null===i&&(63===v||35===v)){var O=Fr(u);if(Ci(O)?(Vi(r),47===v||Pi(r)&&92===v||r.Em.push("")):!Ai(O)||47===v||Pi(r)&&92===v?Ai(O)||("file"===r.Am&&0===r.Em.length&&Ui(u)&&(ti!==r.Pm&&null!==r.Pm&&(r.Pm=ti),u[1]=58,O=Fr(u)),r.Em.push(O)):r.Em.push(""),u.length=0,"file"===r.Am&&(Hi===v||63===v||35===v))for(;r.Em.length>1&&""===r.Em[0];)r.Em.shift();63===v?(r.wm="",e=19):35===v&&(r.Cm="",e=20)}else u.push.apply(u,Yr(v,Kr));break;case 18:63===v?(r.wm="",e=19):35===v?(r.Cm="",e=20):Hi!==v&&(r.Em[0]+=Fr(Yr(v,Gr)));break;case 19:null===i&&35===v?(r.Cm="",e=20):Hi!==v&&(r.wm+=Fr(Yr(v,Pi(r)?Xr:zr)));break;case 20:Hi===v||0===v||(r.Cm+=Fr(Yr(v,jr)))}h++}return r}function Ki(n,t,r,i){try{ji(n,t,r,i)}catch(n){}}var qi=function(){this.Am="",this.Tm="",this.Sm="",this.Pm=null,this.Rm=null,this.Em=[],this.wm=null,this.Cm=null,this.Im=!1};function zi(n){switch(n.Am){case"blob":var t;try{t=ji(n.Em[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.Am,n.Pm,n.Rm);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.gm}(t))i=t.gm;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.wm;this.gm=r,this.wm=function(n){var t=new gi;return null!==n&&Ii(t,n),t}(e),this.wm.gm=this}var t=n.prototype;return t.toString=function(){return this.href},t.toJSON=function(){return this.href},function(n,t,r){t&&Yt(n.prototype,t),r&&Yt(n,r)}(n,[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.Am+":";if(null!==n.Pm?(r+="//",Li(n)&&(r+=n.Tm,""!==n.Sm&&(r+=":"+n.Sm),r+="@"),r+=ui(n.Pm),null!==n.Rm&&(r+=":"+n.Rm)):null===n.Pm&&"file"===n.Am&&(r+="//"),n.Im)r+=n.Em[0];else for(var i=0,e=n.Em;i<e.length;i++)r+="/"+e[i];return null!==n.wm&&(r+="?"+n.wm),t||null===n.Cm||(r+="#"+n.Cm),r}(this.gm)},set:function(n){var t;try{t=ji(String(n),null)}catch(n){throw new E("Invalid URL: "+n.message)}this.gm=t,wi(this.wm);var r=this.gm.wm;null!==r&&Ii(this.wm,r)}},{key:"origin",get:function(){return zi(this.gm)}},{key:"protocol",get:function(){return this.gm.Am+":"},set:function(n){Ki(n+":",null,this.gm,0)}},{key:"username",get:function(){return this.gm.Tm},set:function(n){Wi(this.gm)||(this.gm.Tm=$r(n,qr))}},{key:"password",get:function(){return this.gm.Sm},set:function(n){Wi(this.gm)||(this.gm.Sm=$r(n,qr))}},{key:"host",get:function(){var n=this.gm,t=n.Pm;if(null===t)return"";var r=n.Rm,i=ui(t);return null!==r&&(i+=":"+r),i},set:function(n){this.gm.Im||Ki(n,null,this.gm,10)}},{key:"hostname",get:function(){var n=this.gm.Pm;return null===n?"":ui(n)},set:function(n){this.gm.Im||Ki(n,null,this.gm,11)}},{key:"port",get:function(){var n=this.gm.Rm;return null===n?"":""+n},set:function(n){Wi(this.gm)||(""===n?this.gm.Rm=null:Ki(n,null,this.gm,12))}},{key:"pathname",get:function(){var n=this.gm.Em;return this.gm.Im?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.gm.Im||(this.gm.Em.length=0,Ki(n,null,this.gm,16))}},{key:"search",get:function(){var n=this.gm.wm;return null===n||""===n?"":"?"+n},set:function(n){n=vi(n);var t=this.gm;if(""===n)return t.wm=null,void wi(this.wm);"?"===n[0]&&(n=n.slice(1)),t.wm="",Ki(n,null,t,19),Ii(this.wm,n)}},{key:"searchParams",get:function(){return this.wm}},{key:"hash",get:function(){var n=this.gm.Cm;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.gm.Cm="",Ki(n,null,this.gm,20)):this.gm.Cm=null}}]),n}();function Yi(n){return n.document&&n.document.baseURI||n.location.href||""}var $i=function(){function n(){this.ew=void 0,this.Gm=new Zi,this.jm=Nt,this.Km=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.ew=function(){return self.performance.now()}:this.ew=gt}var t=n.prototype;return t.xm=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Kt.apply(void 0,[].concat(t))},t.Dm=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];qt.apply(void 0,[].concat(t))},t.Nm=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];zt.apply(void 0,[].concat(t))},t.Bm=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];Xt.apply(void 0,[].concat([n],r))},t.hw=function(n,t){return _(n,t)},t.Mm=function(n,t){return y(n,t)},t.nw=function(n){d(n)},t.Lm=function(n){w(n)},t.Om=function(){return this.Fm.Om()},t.Um=function(){return this.Fm.Um()},t.Vm=function(){return this.Fm.Vm()},t.Hm=function(){return this.Fm.Hm()},t.Wm=function(){return this.Fm.Wm()},t.qm=function(n,t){return this.Fm.qm(n,t)},t.zm=function(n){return this.Fm.zm(n)},t.Rh=function(n,t){var r;return void 0===t&&(t=Yi(a)),r="object"!==(void 0===t?"undefined":m(t))||b(t,Xi)?t:t.href,new Xi(n,r)},t.Qm=function(n,t){if(void 0===t&&(t=Yi(a)),this.Km){var r=function(n){return"string"==typeof n}(t)?t:t.toString();return new self.URL(n,r).href}return this.Rh(n,t).href},ln(n,[{key:"Xm",get:function(){return this.Gm}},{key:"ie",get:function(){return this.jm}},{key:"Ym",get:function(){return{Zm:l&&l.userAgent.match(/Android /i)?"Android":"other",Jm:Boolean(l&&l.userAgent.match(/Android 8.0.0/i))}}},{key:"$m",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"tp",get:function(){return"languages"in l?l.languages.slice():[l.language]}}]),n}(),Zi=function(){function n(){}return ln(n,[{key:"ip",get:function(){return l.oscpu}},{key:"ie",get:function(){return l.platform}},{key:"ep",get:function(){return l.vendor}},{key:"sp",get:function(){return l.vendorSub}}]),n}();var Ji=function(){function n(){}var t=n.prototype;return t.Wm=function(){return tn.resolve(!1)},t.Um=function(){return tn.resolve(!1)},t.Hm=function(){return tn.resolve(!1)},t.Vm=function(){return tn.resolve(!1)},t.zm=function(n){return tn.resolve(!1)},t.qm=function(n,t){return tn.resolve(!1)},t.Om=function(){return tn.resolve(!1)},n}(),Qi=function(){function n(){}var t=n.prototype;return t.yS=function(){},t.Qy=function(n){},t.zy=function(n){},t.Xy=function(n,t){},n}(),ne=function(n){return n.bS="arraybuffer",n.TS="json",n.SS="stream",n.kS="text",n}({}),te=function(){function n(t){var r=this;this.op=void 0,this.op={},b(t,n)?t.asList().forEach(function(n){var t=n[0],i=n[1];r.append(t,i)}):Array.isArray(t)?t.forEach(function(n){var t=n[0],i=n[1];r.append(t,i)}):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=re(r),i=ie(i);var e=r.toLowerCase();if(this.op.hasOwnProperty(e)){var u=this.op[e],o=u[1];u[1]=o?o+", "+i:i}else this.op[e]=[r,i]},t.delete=function(n){var t=re(n).toLowerCase();delete this.op[t]},t.get=function(n){var t=re(n).toLowerCase();return this.op.hasOwnProperty(t)?this.op[t][1]:null},t.has=function(n){var t=re(n).toLowerCase();return this.op.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=re(r)).toLowerCase();this.op[i]=[r,ie(t)]},t.forEach=function(n,t){for(var r in this.op)this.op.hasOwnProperty(r)&&n.call(t,this.op[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.op)if(this.op.hasOwnProperty(t)){var r=this.op[t],i=r[0],e=r[1];n.push([i,e])}return n},t.ES=function(){var n={};return this.forEach(function(t,r){n[r]=t}),n},t.PS=function(n){var t=this;n.forEach(function(n,r){t.append(r,n)})},t.IS=function(n){var t=this;n.forEach(function(n,r){t.set(r,n)})},n}();function re(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 ie(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}var ee=function(n,t){this.LS=void 0,this.$S=void 0,this.xk=void 0,this.ZS=void 0,this.Dk=void 0,this.Nk=void 0,this.pw=void 0,this.vp=void 0,this.Bk=void 0,this.Mk=void 0,this.hk=void 0,this.Lk=void 0,this.Ok=void 0,this.Fk=void 0,this.Uk=void 0,this.Vk=void 0;var r,i,e,u,o,f,s,c,a,h,v,l,_,d,y,w,I,E,g=n.hk;t?(r=t.LS,i=t.$S,e=t.xk,u=t.ZS,o=t.Dk,f=t.Nk,s=t.pw,c=t.vp,a=t.Bk,h=t.Mk,v=t.Lk,l=t.Ok,_=t.Fk,d=t.Uk,y=t.Vk):(r=null,i={},e="GET",u=ne.kS,o=0,f=0,c="",a="",h="",v=!1,_=void 0,d=!1,y=void 0),this.hk=g,this.LS=n.LS||r,this.$S=new te(n.$S||i),this.xk=n.xk||e,this.ZS=n.ZS||u,this.Dk=void 0!==n.Dk?Number(n.Dk)||0:o,this.Nk=void 0!==n.Nk?Number(n.Nk)||0:f,this.pw=n.pw||s||(new jn).pw,this.vp=n.vp||c,this.Bk=n.Bk||a,this.Mk=n.Mk||h,this.Lk=void 0!==n.Lk?Boolean(n.Lk):v,this.Ok=n.Ok||l,this.Fk=null!=(w=n.Fk)?w:_,this.Uk=null!=(I=n.Uk)?I:d,this.Vk=null!=(E=n.Vk)?E:y},ue=function(n){return n.jk="HttpOpenError",n.Yk="HttpResponseError",n.Zk="HttpTimeoutError",n}({}),oe=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).Jk=void 0,e.Jk=t,e}return hn(t,n),ln(t,[{key:"JS",get:function(){return this.Jk}}]),t}(qn);var fe=function(n){function t(t,r){return n.call(this,t,function(n){return"Error while opening "+n+". Invalid URL."}(t.hk),r)||this}return hn(t,n),ln(t,[{key:"name",get:function(){return ue.jk}}]),t}(oe),se=function(){function n(){}var t=n.prototype;return t.JS=function(n){return tn.reject(new fe(new ee(n)))},t.Hk=function(n){},t._n=function(){},n}(),ce=function(n){function t(t){return n.call(this,"Invalid XML",t)||this}return hn(t,n),t}(qn),ae=function(n){function t(){var t;return(t=n.apply(this,arguments)||this).tP=new Ji,t.rU=new se,t.i=new Qi,t}return hn(t,n),t.prototype.RE=function(n){throw new ce},ln(t,[{key:"Fm",get:function(){return this.tP}},{key:"iP",get:function(){return!1}},{key:"sP",get:function(){return!1}},{key:"oP",get:function(){return!1}},{key:"rP",get:function(){return!1}},{key:"aP",get:function(){return this.i}},{key:"uP",get:function(){return{cP:Ln}}},{key:"dP",get:function(){return"default"}},{key:"lP",get:function(){return"unknown"}},{key:"ff",get:function(){return this.rU}}]),t}($i);!function(n){0}(new ae);var he=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}({}),le=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)}}(le||(le={}));var _e=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).code=void 0,e.code=t,e}return hn(t,n),ln(t,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return le.fromCode(this.code)}}]),t}(qn);var de,ye=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}(),we=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=b(n,ArrayBuffer)?new T(n):new T(n.buffer,n.byteOffset,n.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},n}();var Ie=new Array(128).fill(void 0);function Ee(n){return Ie[n]}Ie.push(void 0,null,!0,!1);var ge=Ie.length;function Re(n){var t=Ee(n);return function(n){n<132||(Ie[n]=ge,ge=n)}(n),t}var pe=void 0!==we?new we("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:function(){throw I("TextDecoder not available")}};void 0!==we&&pe.decode();var Oe=null;function Se(){return null!==Oe&&Oe.buffer===de.memory.buffer||(Oe=new T(de.memory.buffer)),Oe}function Te(n,t){return n>>>=0,pe.decode(Se().subarray(n,n+t))}function ke(n){ge===Ie.length&&Ie.push(Ie.length+1);var t=ge;return ge=Ie[t],Ie[t]=n,t}var be=0;function me(n,t){var r=t(1*n.length,1)>>>0;return Se().set(n,r/1),be=n.length,r}var Ne=null;function Ae(){return null!==Ne&&Ne.buffer===de.memory.buffer||(Ne=new Int32Array(de.memory.buffer)),Ne}function Ce(n){return null==n}function De(n,t){return n>>>=0,Se().subarray(n/1,n/1+t)}function Pe(n){try{var t=de.__wbindgen_add_to_stack_pointer(-16);de.mpegts_to_fmp4(t,ke(n));var r=Ae()[t/4+0],i=Ae()[t/4+1];if(Ae()[t/4+2])throw Re(i);return Re(r)}finally{de.__wbindgen_add_to_stack_pointer(16)}}function Le(n){try{var t=de.__wbindgen_add_to_stack_pointer(-16);de.raw_audio_to_fmp4(t,ke(n));var r=Ae()[t/4+0],i=Ae()[t/4+1];if(Ae()[t/4+2])throw Re(i);return Re(r)}finally{de.__wbindgen_add_to_stack_pointer(16)}}var Fe=void 0!==ye?new ye("utf-8"):{encode:function(){throw I("TextEncoder not available")}},Be="function"==typeof Fe.encodeInto?function(n,t){return Fe.encodeInto(n,t)}:function(n,t){var r=Fe.encode(n);return t.set(r),{read:n.length,written:r.length}};function Ue(n,t){return Un(function(){var r,i,e;return Mn(this,function(u){switch(u.label){case 0:if("function"!=typeof Response||!b(n,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 b(e=u.sent(),WebAssembly.Instance)?[2,{instance:e,module:n}]:[2,e];case 9:return[2]}})})()}function Me(){var n={wbg:{}};return n.wbg.__wbg_data_88128afc928c671c=function(n,t){var r=me(Ee(t).data,de.__wbindgen_export_0),i=be;Ae()[n/4+1]=i,Ae()[n/4+0]=r},n.wbg.__wbg_metadata_4fad98bf01a9214c=function(n){var t=Ee(n).metadata;return Ce(t)?0:ke(t)},n.wbg.__wbg_spsnal_8d37c9c08c451465=function(n,t){var r=Ee(t).sps_nal,i=Ce(r)?0:me(r,de.__wbindgen_export_0),e=be;Ae()[n/4+1]=e,Ae()[n/4+0]=i},n.wbg.__wbg_ppsnal_dce3653ab694e269=function(n,t){var r=Ee(t).pps_nal,i=Ce(r)?0:me(r,de.__wbindgen_export_0),e=be;Ae()[n/4+1]=e,Ae()[n/4+0]=i},n.wbg.__wbg_videopid_104d156b2ba6bc7a=function(n){var t=Ee(n).video_pid;return Ce(t)?16777215:t},n.wbg.__wbg_audiopid_f08186bc78c6651c=function(n){var t=Ee(n).audio_pid;return Ce(t)?16777215:t},n.wbg.__wbg_programmaptablepid_df06a5b67473487c=function(n){var t=Ee(n).program_map_table_pid;return Ce(t)?16777215:t},n.wbg.__wbindgen_object_drop_ref=function(n){Re(n)},n.wbg.__wbg_createoutputdata_33c7567cebae8889=function(n,t,r,i,e,u,o,f){var s,c,a,h;0!==n&&(s=De(n,t).slice(),de.__wbindgen_export_1(n,1*t,1)),0!==r&&(c=De(r,i).slice(),de.__wbindgen_export_1(r,1*i,1)),0!==e&&(a=De(e,u).slice(),de.__wbindgen_export_1(e,1*u,1)),0!==o&&(h=De(o,f).slice(),de.__wbindgen_export_1(o,1*f,1));var v=function(n,t,r,i){return{video_init:n,audio_init:t,video_media:r,audio_media:i}}(s,c,a,h);return ke(v)},n.wbg.__wbg_createtimestampwithbase_cdcc16b8210fc8cc=function(n,t,r){var i=function(n,t,r){return{low:n,high:t,base:r}}(n>>>0,t>>>0,r>>>0);return ke(i)},n.wbg.__wbg_createoutputmetadata_cf1303a7c4055e7f=function(n,t,r,i,e,u,o,f,s,c,a,h,v,l,_,d){var y,w,I,E;0!==r&&(y=Te(r,i).slice(),de.__wbindgen_export_1(r,1*i,1)),0!==e&&(w=Te(e,u).slice(),de.__wbindgen_export_1(e,1*u,1)),0!==o&&(I=De(o,f).slice(),de.__wbindgen_export_1(o,1*f,1)),0!==s&&(E=De(s,c).slice(),de.__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,Re(a),Re(h),Re(v),16777215===l?void 0:l,0===_?void 0:d);return ke(g)},n.wbg.__wbg_createoutput_4ffe577c1c6155fb=function(n,t){var r=function(n,t){return{data:n,metadata:t}}(Re(n),Re(t));return ke(r)},n.wbg.__wbindgen_string_new=function(n,t){return ke(Te(n,t))},n.wbg.__wbg_new_abda76e883ba8a5f=function(){return ke(new I)},n.wbg.__wbg_stack_658279fe44541cf6=function(n,t){var r=function(n,t,r){if(void 0===r){var i=Fe.encode(n),e=t(i.length,1)>>>0;return Se().subarray(e,e+i.length).set(i),be=i.length,e}for(var u=n.length,o=t(u,1)>>>0,f=Se(),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=Se().subarray(o+s,o+u);s+=Be(n,a).written}return be=s,o}(Ee(t).stack,de.__wbindgen_export_0,de.__wbindgen_export_2),i=be;Ae()[n/4+1]=i,Ae()[n/4+0]=r},n.wbg.__wbg_error_f851667af71bcfc6=function(n,t){var r,i;try{r=n,i=t,console.error(Te(n,t))}finally{de.__wbindgen_export_1(r,i,1)}},n}function Ve(n,t){return de=n.exports,We.__wbindgen_wasm_module=t,Ne=null,Oe=null,de.__wbindgen_start(),de}function We(n){return Un(function(){var t,r,i,e;return Mn(this,function(u){switch(u.label){case 0:return void 0!==de?[2,de]:(void 0===n&&(n=new URL("theomux_bg.wasm",void 0)),t=Me(),("string"==typeof n||"function"==typeof Request&&b(n,Request)||"function"==typeof URL&&b(n,URL))&&(n=fetch(n)),[4,n]);case 1:return[4,Ue.apply(void 0,[u.sent(),t])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,Ve(i,e)]}})})()}function He(n){return Un(function(){var t,r;return Mn(this,function(i){switch(i.label){case 0:return b(n,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 tn(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,We(t)];case 1:return i.sent(),[2,{mpegts_to_fmp4:Pe,raw_audio_to_fmp4:Le}]}})})()}var xe=new URL("./THEOplayer.transmux.wasm",v.href);!function(n){var t,r=tn.resolve(n()).then(function(n){t=n,r=void 0,self.postMessage({_Ft:"9.9.0"})},function(n){var t=n,r={success:!1,error:t.message,errorCode:b(t,_e)?t.code:ve.MEDIA_DECODE_ERROR};self.postMessage(r)});self.addEventListener("message",function(n){var i=n.data.id;(function(n){return Un(function(){var i,e,u,o,f,s;return Mn(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===he.MPEGTS_TO_FMP4)o=t.mpegts_to_fmp4(n.input);else{if(n.type!==he.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(Cn).map(function(n){return n.buffer}),self.postMessage(f,s),[2]}})})()})(n.data).catch(function(n){var t=n,r={success:!1,requestId:i,error:t.message,errorCode:b(t,_e)?t.code:ve.MEDIA_DECODE_ERROR};self.postMessage(r)})})}(function(){return He(xe)})}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof a?a:"undefined"!=typeof global?global:this);
31
+ //# sourceMappingURL=THEOplayer.transmux.js.map
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.8.2",
5
+ "version": "9.9.0",
6
6
  "description": "THEOplayer is the universal video player solution, enabling you to quickly deliver cross-platform content playback.",
7
7
  "author": "THEO Technologies",
8
8
  "homepage": "https://www.theoplayer.com/",