@theoplayer/extended 9.8.2 → 9.10.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.10.0
28
+ Created: 2025-08-12T20:49:02.927Z
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(t){"use strict";var n,r,i,e,u,o,f,s,c,a=t.window,h=t.document,v=t.location,l=t.navigator,_=t.setTimeout,d=t.clearTimeout,y=t.setInterval,w=t.clearInterval,I=t.Error,E=t.TypeError,g=(t.SyntaxError,t.Object),R=t.Math,S=t.parseInt,p=t.parseFloat,O=t.isNaN,T=t.Uint8Array,k=(t.Worker,t.WorkerGlobalScope,t.XMLHttpRequest);function b(t,r){return null!=r&&void 0!==n&&r[n.hasInstance]?!!r[n.hasInstance](t):t instanceof r}function m(t){return t&&void 0!==n&&t.constructor===n?"symbol":typeof t}"function"==typeof Symbol&&Symbol.iterator?(n=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,n=function(t){return"hd"+t+"_"+ ++c},i=(r=function(t){return"hd"+t})("Symbol.iterator"),e=r("Symbol.dispose"),u=r("Symbol.asyncDispose"),n.for=r,n.iterator=i,n.dispose=e,n.asyncDispose=u);var N=_;function A(t){return Boolean(t&&void 0!==t.length)}function C(){}function D(t){if(!b(this,D))throw new E("Promises must be constructed via new");if("function"!=typeof t)throw new E("not a function");this.Va=0,this.t7t=!1,this.Yyt=void 0,this.n7t=[],U(t,this)}function P(t,n){for(;3===t.Va;)t=t.Yyt;0!==t.Va?(t.t7t=!0,D.i7t(function(){var r=1===t.Va?n.onFulfilled:n.onRejected;if(null!==r){var i;try{i=r(t.Yyt)}catch(t){return void L(n.promise,t)}F(n.promise,i)}else(1===t.Va?F:L)(n.promise,t.Yyt)})):t.n7t.push(n)}function F(t,n){try{if(n===t)throw new E("A promise cannot be resolved with itself.");if(n&&("object"===(void 0===n?"undefined":m(n))||"function"==typeof n)){var r=n.then;if(b(n,D))return t.Va=3,t.Yyt=n,void M(t);if("function"==typeof r)return void U(function(t,n){return function(){t.apply(n,arguments)}}(r,n),t)}t.Va=1,t.Yyt=n,M(t)}catch(n){L(t,n)}}function L(t,n){t.Va=2,t.Yyt=n,M(t)}function M(t){2===t.Va&&0===t.n7t.length&&D.i7t(function(){t.t7t||D.r7t(t.Yyt)});for(var n=0,r=t.n7t.length;n<r;n++)P(t,t.n7t[n]);t.n7t=null}function B(t,n,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=r}function U(t,n){var r=!1;try{t(function(t){r||(r=!0,F(n,t))},function(t){r||(r=!0,L(n,t))})}catch(t){if(r)return;r=!0,L(n,t)}}D.prototype.catch=function(t){return this.then(null,t)},D.prototype.then=function(t,n){var r=new this.constructor(C);return P(this,new B(t,n,r)),r},D.prototype.finally=function(t){var n=this.constructor;return this.then(function(r){return n.resolve(t()).then(function(){return r})},function(r){return n.resolve(t()).then(function(){return n.reject(r)})})},D.all=function(t){return new D(function(n,r){if(!A(t))return r(new E("Promise.all accepts an array"));var i=Array.prototype.slice.call(t);if(0===i.length)return n([]);var e=i.length;function u(t,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(n){u(t,n)},r)}i[t]=o,0===--e&&n(i)}catch(t){r(t)}}for(var o=0;o<i.length;o++)u(o,i[o])})},D.allSettled=function(t){return new this(function(n,r){if(!t||void 0===t.length)return r(new E((void 0===t?"undefined":m(t))+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(t);if(0===i.length)return n([]);var e=i.length;function u(t,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(n){u(t,n)},function(r){i[t]={status:"rejected",reason:r},0===--e&&n(i)})}i[t]={status:"fulfilled",value:r},0===--e&&n(i)}for(var o=0;o<i.length;o++)u(o,i[o])})},D.resolve=function(t){return t&&"object"===(void 0===t?"undefined":m(t))&&t.constructor===D?t:new D(function(n){n(t)})},D.reject=function(t){return new D(function(n,r){r(t)})},D.race=function(t){return new D(function(n,r){if(!A(t))return r(new E("Promise.race accepts an array"));for(var i=0,e=t.length;i<e;i++)D.resolve(t[i]).then(n,r)})},D.i7t="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){N(t,0)},D.r7t=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var V=function(){var t=self.Promise;if(void 0!==t)try{if(-1!==t.toString().indexOf("[native code]"))return t}catch(t){}}(),H=l?l.userAgent:"",W=H.match(/Firefox\/([0-9]+)/i),x=null!=W,G=W?Number(W[1]):0,j=H.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),K=null!=j,q=j?Number(j[3]):0,z=function(){function t(t){this.lA=0,this.Tf=0,this.ym=[],this.e7t=t}return t.prototype.s7t=function(t){var n=this.length();this.u7t(n+1);var r=this.Tf+n&this.e7t-1;this.ym[r]=t,this.lA=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.e7t<n)this.s7t(t);else{var r=this.Tf+n-1,i=this.e7t-1;this.ym[r&i]=t,this.lA=n}},t.prototype.shift=function(){var t=this.Tf,n=this.ym[t];return this.ym[t]=void 0,this.Tf=t+1&this.e7t-1,this.lA--,n},t.prototype.length=function(){return this.lA},t.prototype.u7t=function(t){this.e7t<t&&this.o7t(this.e7t<<1)},t.prototype.o7t=function(t){var n=this.e7t;this.e7t=t;var r=this.Tf+this.lA&n-1;!function(t,n,r,i){for(var e=0;e<i;++e)t[e+r]=t[e+n],t[e+n]=void 0}(this.ym,0,n,r)},t}();var X="unhandledrejection",Y=self.PromiseRejectionEvent,$=self.CustomEvent;function Z(t){return new Y(X,{reason:t,promise:V.reject(t).catch(function(){}),cancelable:!0})}function J(t){var n=new $(X,{detail:{reason:t},cancelable:!0});return g.defineProperty(n,"reason",{value:t}),n}function Q(t){var n=h.createEvent("CustomEvent");return n.initCustomEvent(X,!1,!0,{reason:t}),n}var tt,nt,rt,it,et,ut,ot,ft,st=function(t){return st=function(){try{var t=V.resolve(),n="error",r=new Y(X,{reason:n,promise:t});return X===r.type&&n===r.reason}catch(t){}return!1}()?Z:function(){try{var t="error",n=new $(X,{detail:{reason:t}});return X===n.type&&t===n.detail.reason}catch(t){}return!1}()?J:Q,st(t)};function ct(t,n){return ct=g.setPrototypeOf||function(t,n){return t.__proto__=n,t},ct(t,n)}function at(t,n){if("function"!=typeof n&&null!==n)throw new E("Super expression must either be null or a function");t.prototype=g.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&ct(t,n)}function ht(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),g.defineProperty(t,i.key,i)}}function vt(t,n,r){return n&&ht(t.prototype,n),r&&ht(t,r),t}function lt(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=t[r];return i}function _t(t,r){var e=void 0!==n&&t[i]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return lt(t,n);var r=g.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lt(t,n):void 0}}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var u=0;return function(){return u>=t.length?{done:!0}:{done:!1,value:t[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)?nt=V:(nt=D,ot=null!==(tt=function(){var t=self.queueMicrotask;if("function"==typeof t)return function(n){return t(n)};var n=V;if(n&&"function"==typeof n.resolve){var r=n.resolve();return function(t){return r.then(t)}}}())&&void 0!==tt?tt:D.i7t,rt=ot,it=new z(16),et=!1,(ft={J2:function(t){it.push(t),et||(et=!0,rt(ut))},jz:ut=function(){for(;it.length()>0;)it.shift()();et=!1}}).jz,D.i7t=ft.J2,D.r7t=function(t){try{var n=st(t);if(!self.dispatchEvent(n)||n.defaultPrevented)return}catch(t){}_(function(){throw new I("Unhandled promise rejection: ".concat(t))},0)});var dt=function(t){return t.O_="web",t.F_="android",t.U_="android-tv",t.V_="ios",t.H_="tvos",t.W_="chromecast",t.q_="theoliveweb",t}({});var yt=l?l.userAgent:"",wt=yt.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),It=yt.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Et=yt.match(/Android ([0-9\.]+)/i),gt=yt.match(/Windows NT ([0-9\.]+)/i),Rt=yt.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),St=yt.match(/Firefox\/([0-9\.]+)/i),pt=yt.match(/OPR\/(\d+\.\d+)/i),Ot=yt.match(/Tizen ([0-9\.]+)/i),Tt=yt.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),kt=yt.match(/HbbTV\/([0-9.]+)/i),bt=yt.match(/(AFT.*) Build/i),mt=function(){function t(){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(yt)||/(macintosh|mac(?=_powerpc)\s)/i.test(yt),this.K_=/Windows NT/i.test(yt),this.Y_=gt?p(gt[1]):0,this.J_=/Android/i.test(yt),this.rv=Et?p(Et[1]):0,this.ov=/windows phone (8|8\.1)/i.test(yt),this.fv=/iPhone/i.test(yt),this.vv=/iPad/i.test(yt),this.mv=this.G_&&this.z_&&!this.vv,this.yv=/iPod/i.test(yt),this.Cv=/Mobile Safari/i.test(yt),this.Pv=/EOS\d*STB/i.test(yt),this.Iv=/APP\d*STB/i.test(yt),this.bv=(this.fv||this.vv||this.mv||this.yv)&&!this.ov,this.Sv=Tt?p(Tt[2]):0,this.xv=this.ov||this.bv||this.J_||this.Cv,this.Nv=/CriOS/i.test(yt),this.Mv=Boolean(self.chrome&&/google/i.test(l.vendor))||this.Nv,this.Vv=this.Mv&&/Edg\//i.test(l.userAgent),this.Wv=It?S(It[1],10):0,this.ow=Boolean(/CriOS/i.test(yt)),this.hw=Boolean(self.chrome||/Chrome/i.test(yt)||this.ow),this.Fv=wt?S(wt[1],10):0,this.Xv=/SMART-TV.*Tizen/i.test(yt),this.Qv=Ot?p(Ot[1]):0,this.Ov=this.Qv>0?function(t){return t>=8?108:t>=7?94:t>=6.5?85:t>=6?76:t>=5.5?69:t>=5?63:t>=4?56:t>=3?47:0}(this.Qv):void 0,this.Yv=/webos|web0s/i.test(yt),this.Jv=/HbbTV/i.test(yt),this.eg=!!kt&&function(t){if(!t)return!1;var n=t.split(".").map(Number);return 3===n.length&&1===n[0]&&2===n[1]}(kt[1]),this.hg=/AFT.* Build/i.test(yt),this.og=bt?bt[1]:void 0,this.cg=/VIZIO/i.test(yt),this.fg=/Edge\/\d+/i.test(yt),this.vg=/Trident/i.test(yt),this.wg=this.vg&&!self.ActiveXObject&&"ActiveXObject"in self,this.yg=/Vivaldi/i.test(yt),this.Tg=/Firefox/i.test(yt)&&!/Seamonkey/i.test(yt),this.Eg=St?p(St[1]):0,this.Ig=/Safari/i.test(yt)&&!/Chrome/i.test(yt)&&!this.ov&&!this.Xv,this.Cg=Rt?p(Rt[2]):0,this.Dg=Boolean(pt),this.Bg=pt?p(pt[1]):0,this.Lg=/CrKey/.test(yt),this.Fg=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(yt),this.Hg=/PlayStation 4/i.test(yt),this.qg=/PlayStation 5/i.test(yt),this.Xg="web"===dt.U_,this.Qg="web"===dt.F_,this.jg=this.Qg||this.Xg,this.Zg="web"===dt.V_,this.$g="web"===dt.H_,this.ew="web"===dt.W_}return vt(t,[{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 t;return null!=(t=this.Ov)?t:this.Fv}},{key:"Uv",get:function(){return this.Vv}},{key:"Hv",get:function(){var t;return(null==(t=a.chrome)?void 0:t.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:"IS_FIRETV_AFTMM",get:function(){return"AFTMM"===this.og}},{key:"ag",get:function(){return this.cg}},{key:"dg",get:function(){return this.fg}},{key:"_g",get:function(){return this.vg}},{key:"gg",get:function(){return this.wg}},{key:"pg",get:function(){return this.yg}},{key:"Ag",get:function(){return this.Tg}},{key:"Sg",get:function(){return this.Eg}},{key:"Pg",get:function(){return this.Ig}},{key:"Rg",get:function(){return 0===this.Cg&&Nt.Av?this.Sv:this.Cg}},{key:"xg",get:function(){return this.Dg}},{key:"Ng",get:function(){return this.Bg}},{key:"Mg",get:function(){return this.Lg}},{key:"Og",get:function(){return this.Fg}},{key:"Ug",get:function(){return!(!this.Kv&&!this.zv)&&this.Lv<=56}},{key:"Vg",get:function(){return this.Hg}},{key:"Wg",get:function(){return this.qg}},{key:"zg",get:function(){return this.Xg}},{key:"Gg",get:function(){return this.Qg}},{key:"Kg",get:function(){return this.jg}},{key:"Yg",get:function(){return this.Zg}},{key:"Jg",get:function(){return this.$g}},{key:"iw",get:function(){return this.ew}},{key:"nw",get:function(){return this.hw}},{key:"IS_IOS_CHROME",get:function(){return this.ow}}]),t}();mt.aw=new mt;var Nt=mt.aw,At={}.toString;function Ct(t){return null!=t}Array.isArray;function Dt(t){return"object"===(void 0===t?"undefined":m(t))&&null!==t}function Pt(t){return function(t){return"function"==typeof t}(t)||Dt(t)}var Ft=function(){};function Lt(t){var n;return function(){return void 0!==t&&(n=t(),t=void 0),n}}function Mt(t,n,r,i,e,u,o){try{var f=t[u](o),s=f.value}catch(t){return void r(t)}f.done?n(s):nt.resolve(s).then(i,e)}function Bt(t){return function(){var n=this,r=arguments;return new nt(function(i,e){var u=t.apply(n,r);function o(t){Mt(u,i,e,o,f,"next",t)}function f(t){Mt(u,i,e,o,f,"throw",t)}o(void 0)})}}function Ut(t,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 n&&(s[i]=function(){return this}),s;function c(n){return function(i){return function(n){if(e)throw new E("Generator is already executing.");for(;s&&(s=0,n[0]&&(f=0)),f;)try{if(e=1,u&&(o=2&n[0]?u.return:n[0]?u.throw||((o=u.return)&&o.call(u),0):u.next)&&!(o=o.call(u,n[1])).done)return o;switch(u=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return f.label++,{value:n[1],done:!1};case 5:f.label++,u=n[1],n=[0];continue;case 7:n=f.ops.pop(),f.trys.pop();continue;default:if(!(o=f.trys,(o=o.length>0&&o[o.length-1])||6!==n[0]&&2!==n[0])){f=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){f.label=n[1];break}if(6===n[0]&&f.label<o[1]){f.label=o[1],o=n;break}if(o&&f.label<o[2]){f.label=o[2],f.ops.push(n);break}o[2]&&f.ops.pop(),f.trys.pop();continue}n=r.call(t,f)}catch(t){n=[6,t],u=0}finally{e=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,i])}}}R.pow(2,-52),Array.prototype.find,Array.prototype.findLast;var Vt="function"==typeof Array.prototype.findIndex?function(t,n){return t.findIndex(n)}:function(t,n){for(var r=0;r<t.length;r+=1){if(n(t[r],r,t))return r}return-1},Ht="function"==typeof Array.prototype.findLastIndex?function(t,n){return t.findLastIndex(n)}:function(t,n){for(var r=t.length-1;r>=0;r-=1){if(n(t[r],r,t))return r}return-1};Array.prototype.at;function Wt(t,n){var r=t.indexOf(n);return-1!==r&&(function(t,n){0===n?t.shift():t.splice(n,1)}(t,r),!0)}function xt(t){t.length=0}Array.prototype.flat,Array.prototype.flatMap;var Gt=function(){function t(){this.gw=!1,this.ww=!1,this.mw=[],this.pw=[]}var n=t.prototype;return n._w=function(){if(!this.gw&&!this.ww){this.gw=!0;for(var t,n=_t(this.mw.slice());!(t=n()).done;){(0,t.value)()}this.Ku()}},n.Ku=function(){if(!this.ww){this.ww=!0;for(var t,n=_t(this.pw.slice());!(t=n()).done;){(0,t.value)()}xt(this.mw),xt(this.pw)}},n.yw=function(t){this.ww||this.mw.push(t)},n.Aw=function(t){this.ww||Wt(this.mw,t)},n.bw=function(t){this.ww||this.pw.push(t)},n.Tw=function(t){this.ww||Wt(this.pw,t)},t}(),jt=function(){function t(){this.Ew=new Gt}var n=t.prototype;return n.dd=function(){this.Ew._w()},n.Ku=function(){this.Ew.Ku()},n.Pw=function(t){var n=this.Ew;if(!n.gw)if(t.gw)n._w();else if(!n.ww&&!t.ww){var r=function(){i(),n._w()},i=function(){t.Aw(r),t.Tw(i),n.Aw(r),n.Tw(i)};t.yw(r),t.bw(i),n.yw(r),n.bw(i)}},n.Iw=function(){var n=new t,r=new t,i=n.Sw,e=r.Sw,u=this.Ew,o=function(){i.gw&&e.ww||e.gw&&i.ww?u._w():i.ww&&e.ww&&u.Ku()};i.yw(o),e.yw(o),i.bw(o),e.bw(o),n.Pw(u),r.Pw(u);return u.bw(function(){i.Aw(o),e.Aw(o),i.Tw(o),e.Tw(o)}),[n,r]},n[e]=function(){this.dd()},t.Rw=function(n){for(var r,i=new t,e=_t(n);!(r=e()).done;){var u=r.value;void 0!==u&&i.Pw(u)}return i},vt(t,[{key:"Sw",get:function(){return this.Ew}}]),t}(),Kt=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];I.apply(this,n)};(Kt.prototype=g.create(I.prototype)).constructor=Kt;var qt=function(t){function n(n,r){var i;return(i=t.call(this)||this).cause=void 0,i.message=n||"Unknown error",i.cause=r,I.captureStackTrace&&I.captureStackTrace(i,i.constructor),i}return at(n,t),vt(n,[{key:"name",get:function(){return"BaseError"}}]),n}(Kt);nt.resolve();function zt(){return void 0!==h?h.createElement("video"):void 0}var Xt=Lt(zt),Yt=(Lt(function(){return"undefined"!=typeof HTMLVideoElement&&b(Xt(),HTMLVideoElement)}),null);try{Yt=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(rt){}function $t(t,n,r){this.low=0|t,this.high=0|n,this.unsigned=!!r}function Zt(t){return!0===(t&&t.xw)}function Jt(t){var n=R.clz32(t&-t);return t?31-n:n}$t.prototype.xw,g.defineProperty($t.prototype,"xw",{value:!0}),$t.isLong=Zt;var Qt={},tn={};function nn(t,n){var r,i,e;return n?(e=0<=(t>>>=0)&&t<256)&&(i=tn[t])?i:(r=en(t,0,!0),e&&(tn[t]=r),r):(e=-128<=(t|=0)&&t<128)&&(i=Qt[t])?i:(r=en(t,t<0?-1:0,!1),e&&(Qt[t]=r),r)}function rn(t,n){if(O(t))return n?ln:vn;if(n){if(t<0)return ln;if(t>=cn)return In}else{if(t<=-an)return En;if(t+1>=an)return wn}return t<0?rn(-t,n).neg():en(t%sn|0,t/sn|0,n)}function en(t,n,r){return new $t(t,n,r)}$t.fromInt=nn,$t.fromNumber=rn,$t.fromBits=en;var un=R.pow;function on(t,n,r){if(0===t.length)throw I("empty string");if("number"==typeof n?(r=n,n=!1):n=!!n,"NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return n?ln:vn;if((r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=t.indexOf("-"))>0)throw I("interior hyphen");if(0===i)return on(t.substring(1),n,r).neg();for(var e=rn(un(r,8)),u=vn,o=0;o<t.length;o+=8){var f=R.min(8,t.length-o),s=S(t.substring(o,o+f),r);if(f<8){var c=rn(un(r,f));u=u.mul(c).add(rn(s))}else u=(u=u.mul(e)).add(rn(s))}return u.unsigned=n,u}function fn(t,n){return"number"==typeof t?rn(t,n):"string"==typeof t?on(t,n):en(t.low,t.high,"boolean"==typeof n?n:t.unsigned)}$t.fromString=on,$t.fromValue=fn;var sn=4294967296,cn=sn*sn,an=cn/2,hn=nn(1<<24),vn=nn(0);$t.ZERO=vn;var ln=nn(0,!0);$t.UZERO=ln;var _n=nn(1);$t.ONE=_n;var dn=nn(1,!0);$t.UONE=dn;var yn=nn(-1);$t.NEG_ONE=yn;var wn=en(-1,2147483647,!1);$t.MAX_VALUE=wn;var In=en(-1,-1,!0);$t.MAX_UNSIGNED_VALUE=In;var En=en(0,-2147483648,!1);$t.MIN_VALUE=En;var gn=$t.prototype;function Rn(){return Date.now()||(new Date).getTime()}gn.toInt=function(){return this.unsigned?this.low>>>0:this.low},gn.toNumber=function(){return this.unsigned?(this.high>>>0)*sn+(this.low>>>0):this.high*sn+(this.low>>>0)},gn.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(En)){var n=rn(t),r=this.div(n),i=r.mul(n).sub(this);return r.toString(t)+i.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var e=rn(un(t,6),this.unsigned),u=this,o="";;){var f=u.div(e),s=(u.sub(f.mul(e)).toInt()>>>0).toString(t);if((u=f).isZero())return s+o;for(;s.length<6;)s="0"+s;o=""+s+o}},gn.getHighBits=function(){return this.high},gn.getHighBitsUnsigned=function(){return this.high>>>0},gn.getLowBits=function(){return this.low},gn.getLowBitsUnsigned=function(){return this.low>>>0},gn.getNumBitsAbs=function(){if(this.isNegative())return this.eq(En)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,n=31;n>0&&!(t&1<<n);n--);return 0!=this.high?n+33:n+1},gn.isSafeInteger=function(){var t=this.high>>21;return!t||!this.unsigned&&(-1===t&&!(0===this.low&&-2097152===this.high))},gn.isZero=function(){return 0===this.high&&0===this.low},gn.eqz=gn.isZero,gn.isNegative=function(){return!this.unsigned&&this.high<0},gn.isPositive=function(){return this.unsigned||this.high>=0},gn.isOdd=function(){return!(1&~this.low)},gn.isEven=function(){return!(1&this.low)},gn.equals=function(t){return Zt(t)||(t=fn(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},gn.eq=gn.equals,gn.notEquals=function(t){return!this.eq(t)},gn.neq=gn.notEquals,gn.ne=gn.notEquals,gn.lessThan=function(t){return this.comp(t)<0},gn.lt=gn.lessThan,gn.lessThanOrEqual=function(t){return this.comp(t)<=0},gn.lte=gn.lessThanOrEqual,gn.le=gn.lessThanOrEqual,gn.greaterThan=function(t){return this.comp(t)>0},gn.gt=gn.greaterThan,gn.greaterThanOrEqual=function(t){return this.comp(t)>=0},gn.gte=gn.greaterThanOrEqual,gn.ge=gn.greaterThanOrEqual,gn.compare=function(t){if(Zt(t)||(t=fn(t)),this.eq(t))return 0;var n=this.isNegative(),r=t.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},gn.comp=gn.compare,gn.negate=function(){return!this.unsigned&&this.eq(En)?En:this.not().add(_n)},gn.neg=gn.negate,gn.add=function(t){Zt(t)||(t=fn(t));var n=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,f=t.low>>>16,s=0,c=0,a=0,h=0;return a+=(h+=e+(65535&t.low))>>>16,c+=(a+=i+f)>>>16,s+=(c+=r+o)>>>16,s+=n+u,en((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},gn.subtract=function(t){return Zt(t)||(t=fn(t)),this.add(t.neg())},gn.sub=gn.subtract,gn.multiply=function(t){if(this.isZero())return this;if(Zt(t)||(t=fn(t)),Yt)return en(Yt.mul(this.low,this.high,t.low,t.high),Yt.get_high(),this.unsigned);if(t.isZero())return this.unsigned?ln:vn;if(this.eq(En))return t.isOdd()?En:vn;if(t.eq(En))return this.isOdd()?En:vn;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(hn)&&t.lt(hn))return rn(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,f=t.low>>>16,s=65535&t.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+=n*s+r*f+i*o+e*u,en((h&=65535)<<16|(v&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},gn.mul=gn.multiply,gn.divide=function(t){if(Zt(t)||(t=fn(t)),t.isZero())throw I("division by zero");var n,r,i;if(Yt)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?en((this.unsigned?Yt.div_u:Yt.div_s)(this.low,this.high,t.low,t.high),Yt.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?ln:vn;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return ln;if(t.gt(this.shru(1)))return dn;i=ln}else{if(this.eq(En))return t.eq(_n)||t.eq(yn)?En:t.eq(En)?_n:(n=this.shr(1).div(t).shl(1)).eq(vn)?t.isNegative()?_n:yn:(r=this.sub(t.mul(n)),i=n.add(r.div(t)));if(t.eq(En))return this.unsigned?ln:vn;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=vn}for(r=this;r.gte(t);){n=R.max(1,R.floor(r.toNumber()/t.toNumber()));for(var e=R.ceil(R.log(n)/R.LN2),u=e<=48?1:un(2,e-48),o=rn(n),f=o.mul(t);f.isNegative()||f.gt(r);)f=(o=rn(n-=u,this.unsigned)).mul(t);o.isZero()&&(o=_n),i=i.add(o),r=r.sub(f)}return i},gn.div=gn.divide,gn.modulo=function(t){return Zt(t)||(t=fn(t)),Yt?en((this.unsigned?Yt.rem_u:Yt.rem_s)(this.low,this.high,t.low,t.high),Yt.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},gn.mod=gn.modulo,gn.rem=gn.modulo,gn.not=function(){return en(~this.low,~this.high,this.unsigned)},gn.countLeadingZeros=function(){return this.high?R.clz32(this.high):R.clz32(this.low)+32},gn.clz=gn.countLeadingZeros,gn.countTrailingZeros=function(){return this.low?Jt(this.low):Jt(this.high)+32},gn.ctz=gn.countTrailingZeros,gn.and=function(t){return Zt(t)||(t=fn(t)),en(this.low&t.low,this.high&t.high,this.unsigned)},gn.or=function(t){return Zt(t)||(t=fn(t)),en(this.low|t.low,this.high|t.high,this.unsigned)},gn.xor=function(t){return Zt(t)||(t=fn(t)),en(this.low^t.low,this.high^t.high,this.unsigned)},gn.shiftLeft=function(t){return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?en(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):en(0,this.low<<t-32,this.unsigned)},gn.shl=gn.shiftLeft,gn.shiftRight=function(t){return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?en(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):en(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},gn.shr=gn.shiftRight,gn.shiftRightUnsigned=function(t){return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?en(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):en(32===t?this.high:this.high>>>t-32,0,this.unsigned)},gn.shru=gn.shiftRightUnsigned,gn.shr_u=gn.shiftRightUnsigned,gn.rotateLeft=function(t){var n;return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?en(this.high,this.low,this.unsigned):t<32?(n=32-t,en(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned)):(n=32-(t-=32),en(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned))},gn.rotl=gn.rotateLeft,gn.rotateRight=function(t){var n;return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?en(this.high,this.low,this.unsigned):t<32?(n=32-t,en(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned)):(n=32-(t-=32),en(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned))},gn.rotr=gn.rotateRight,gn.toSigned=function(){return this.unsigned?en(this.low,this.high,!1):this},gn.toUnsigned=function(){return this.unsigned?this:en(this.low,this.high,!0)},gn.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},gn.toBytesLE=function(){var t=this.high,n=this.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},gn.toBytesBE=function(){var t=this.high,n=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]},$t.fromBytes=function(t,n,r){return r?$t.fromBytesLE(t,n):$t.fromBytesBE(t,n)},$t.fromBytesLE=function(t,n){return new $t(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},$t.fromBytesBE=function(t,n){return new $t(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)},"function"==typeof BigInt&&($t.fromBigInt=function(t,n){return en(Number(BigInt.asIntN(32,t)),Number(BigInt.asIntN(32,t>>BigInt(32))),n)},$t.fromValue=function(t,n){return"bigint"===(void 0===t?"undefined":m(t))?$t.fromBigInt(t,n):fn(t,n)},gn.toBigInt=function(){var t=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|t});var Sn=1/6,pn=($t.fromNumber(9007199254740991),Boolean("ontouchstart"in self||self.DocumentTouch&&b(h,self.DocumentTouch))||Boolean(l&&l.msMaxTouchPoints)),On=Xt(),Tn=Boolean(On&&On.webkitShowPlaybackTargetPicker),kn=function(){function t(){this.Nw=void 0,this.um=!1,this.tn=pn,this.te=!1,this.Cw=!0}var n=t.prototype;return n.Bw=function(){return 0},n.tm=function(t,n){return!0},n.im=function(t){return t>=2*Sn},vt(t,[{key:"Dw",get:function(){return void 0===this.Nw&&(this.Nw=this.Bw()),this.Nw}},{key:"Mw",get:function(){return Nt.Z_?"android":Nt.X_?"macos":Nt.Av?"ios":Nt.Q_?"windows":"other"}},{key:"Lw",get:function(){return Nt.Og?"tv":Nt.te?"mobile":"desktop"}},{key:"Ow",get:function(){return!Nt.Og}},{key:"Fw",get:function(){if(a.screen)return{width:a.screen.width,height:a.screen.height}}},{key:"Uw",get:function(){return a.devicePixelRatio||1}},{key:"Vw",get:function(){return Tn}},{key:"Hw",get:function(){return!1}},{key:"Ww",get:function(){return!0}},{key:"qw",get:function(){return!!(Nt.Pg||Nt.Av||Nt.Hv)||!!Nt.ag}},{key:"zw",get:function(){return Nt.ag}},{key:"Xw",get:function(){return!Nt.Av}},{key:"Gw",get:function(){return!0}},{key:"Qw",get:function(){return!0}},{key:"Kw",get:function(){return!1}},{key:"jw",get:function(){}},{key:"Yw",get:function(){return!0}},{key:"Zw",get:function(){return!1}},{key:"Jw",get:function(){return Nt.ag}},{key:"$w",get:function(){return!1}},{key:"nm",get:function(){return!1}},{key:"hm",get:function(){return!1}}]),t}(),bn=function(t){function n(){return t.call(this)||this}return at(n,t),n}(kn),mn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),n.prototype.tm=function(t,n){if(t&&t.dm&&n&&n.dm){var r=Nn(t.dm,"mp4a.40.2")&&Nn(n.dm,"mp4a.40.5"),i=Nn(t.dm,"mp4a.40.5")&&Nn(n.dm,"mp4a.40.2"),e=Nn(t.dm,"mp4a.40.2")&&Nn(n.dm,"mp4a.40.34"),u=Nn(t.dm,"mp4a.40.34")&&Nn(n.dm,"mp4a.40.2"),o=Nn(t.dm,"mp4a.40.5")&&Nn(n.dm,"mp4a.40.34"),f=Nn(t.dm,"mp4a.40.34")&&Nn(n.dm,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},vt(n,[{key:"jw",get:function(){if(Nt.X_)return 4096}}]),n}(bn);function Nn(t,n){return t.indexOf(n)>-1}var An,Cn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),n.prototype.im=function(t){return t>=2},n}(bn),Dn=function(t){function n(){var n;return(n=t.call(this)||this).um=Nt.Rg>=11,n.Cw=Nt.Pg&&!(Nt.Av&&Nt.Rg<10),n}return at(n,t),vt(n,[{key:"$w",get:function(){return Nt.Rg<17}},{key:"nm",get:function(){return!0}}]),n}(bn),Pn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"Yw",get:function(){return!Nt.Q_||(Nt.Uv?92!==Nt.qv:Nt.Lv>=100)}}]),n}(bn);var Fn=function(){var t=zt();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(Nt.wv)return!1;var t=zt();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var Ln=function(t){function n(n){var r;return(r=t.call(this)||this).lm=void 0,r.lm=n,r.um=r.lm.um,r.tn=r.lm.tn,r.Cw=Fn&&r.lm.Cw,r}at(n,t);var r=n.prototype;return r.Bw=function(){return this.lm.Dw},r.tm=function(t,n){return this.lm.tm(t,n)},r.im=function(t){return this.lm.im(t)},vt(n,[{key:"jw",get:function(){return this.lm.jw}},{key:"Yw",get:function(){return this.lm.Yw}},{key:"$w",get:function(){return this.lm.$w}}]),n}(kn),Mn=function(t){function n(n){var r;return(r=t.call(this,n)||this).um=!0,r.te=!0,r}return at(n,t),vt(n,[{key:"Kw",get:function(){return Nt.Av}}]),n}(Ln);var Bn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),n.prototype.Bw=function(){return function(t){return t&&Pt(a.ManagedMediaSource)?a.ManagedMediaSource:Pt(a.MediaSource)?a.MediaSource:void 0}(!0)?t.prototype.Bw.call(this):1},vt(n,[{key:"Kw",get:function(){return!0}}]),n}(Mn),Un=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).gm=void 0,n}return at(n,t),n.prototype.tm=function(n,r){return t.prototype.tm.call(this,n,r)},vt(n,[{key:"Hw",get:function(){return Nt.Gv<3}},{key:"Ww",get:function(){return Nt.Gv>=3}},{key:"Fw",get:function(){var t=this;return a.tizen&&!this.gm&&a.tizen.systeminfo.getPropertyValue("DISPLAY",function(n){var r=n.resolutionWidth,i=n.resolutionHeight;1===r&&1===i||(t.gm={width:r,height:i})}),this.gm}},{key:"Zw",get:function(){return Nt.Gv<3}}]),n}(Ln),Vn=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).gm=void 0,n}return at(n,t),vt(n,[{key:"Fw",get:function(){var t=this;return a.webOS&&!this.gm&&a.webOS.deviceInfo(function(n){t.gm={width:n.screenWidth,height:n.screenHeight}}),this.gm}},{key:"Gw",get:function(){return!1}}]),n}(Ln),Hn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"Kw",get:function(){return!0}},{key:"nm",get:function(){return this.lm.nm}}]),n}(Ln),Wn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"hm",get:function(){return Nt.IS_FIRETV_AFTMM}}]),n}(Ln);!function(t){An=t}(function(){var t=function(){if(Nt.Ag)return new mn;if(Nt.dg||Nt._g)return new Cn;if(Nt.Pg)return new Dn;if(Nt.Bv)return new Pn;return new bn}();return Nt.Av?new Bn(t):Nt.rg?new Wn(t):Nt.te?new Mn(t):Nt.zv?new Un(t):Nt.Kv?new Vn(t):Nt.X_?new Hn(t):new Ln(t)}());var xn=!(Nt._g&&!Nt.gg),Gn=self.console;function jn(t){if(Dt(t))try{return JSON.stringify(t)}catch(t){}return t}function Kn(t){return t.map(jn).join(" ")}function qn(t){var n=Gn&&Gn[t];return n?n.bind&&xn?n.bind(Gn):function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];Gn[t](Kn(r))}:void 0}var zn=qn("log")||Ft,Xn=qn("warn")||zn.bind(void 0,"WARNING:"),Yn=qn("error")||zn.bind(void 0,"ERROR:"),$n=function(){var t=Gn&&Gn.assert;return t?t.bind&&xn?t.bind(Gn):function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];Gn.assert(t,Kn(r))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t||Yn.apply(void 0,[].concat(["Assertion failed:"],r))}}();function Zn(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),g.defineProperty(t,i.key,i)}}function Jn(t,n){var r=function(t,n){var r=t.length;if(r<=1)return t;for(var i=new Array(r),e=1;e<r;e*=2){Qn(t,n,e,i);var u=t;t=i,i=u}return t}(t,n);return r!==t&&Qn(r,null,t.length,t),t}function Qn(t,n,r,i){var e,u,o,f,s,c=t.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)n(t[f],t[s])<=0?i[a++]=t[f++]:i[a++]=t[s++];else if(f<u)i[a++]=t[f++];else{if(!(s<o))break;i[a++]=t[s++]}}var tr=/[a-zA-Z]/,nr=/[0-9]/,rr=/[0-9a-fA-F]/,ir=/^0x/i,er=/^[0-9]+$/,ur=/^[0-9a-fA-F]+$/,or=/^[0-7]+$/,fr=g.prototype.toString,sr=Array.isArray||function(t){return"[object Array]"===fr.call(t)},cr=void 0!==n&&"symbol"==typeof i;function ar(t){return sr(t)?t:Array.from(t)}function hr(t,n,r){var i=t[n];t[n]=t[r],t[r]=i}function vr(t){return t>=65&&t<=90}function lr(t){return vr(t)||function(t){return t>=97&&t<=122}(t)}function _r(t){return t>=48&&t<=57}function dr(t){return _r(t)||lr(t)}function yr(t){return _r(t)||t>=65&&t<=70||t>=97&&t<=102}function wr(t){return vr(t)?t+32:t}function Ir(t){return _r(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function Er(t,n){return void 0===n&&(n=!1),0<=t&&t<=9?t+48:10<=t&&t<=15?t+(n?87:55):-1}var gr=R.min,Rr=String.fromCharCode;function Sr(t){for(var n=t.length,r=[],i=0;i<n;i+=16384){var e=gr(i+16384,n);r.push(Rr.apply(null,t.slice(i,e)))}return r.join("")}var pr=2147483647,Or=/[^\0-\x7E]/,Tr=/[\x2E\u3002\uFF0E\uFF61]/g,kr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},br=R.floor,mr=String.fromCharCode;function Nr(t){throw new RangeError(kr[t])}function Ar(t){for(var n=[],r=0,i=t.length;r<i;){var e=t.charCodeAt(r++);if(e>=55296&&e<=56319&&r<i){var u=t.charCodeAt(r++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),r--)}else n.push(e)}return n}var Cr,Dr,Pr,Fr=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},Lr=function(t,n,r){var i=0;for(t=r?br(t/700):t>>1,t+=br(t/n);t>455;i+=36)t=br(t/35);return br(i+36*t/(t+38))},Mr=function(t){return function(t,n){var r=t.split("@"),i="";r.length>1&&(i=r[0]+"@",t=r[1]);var e=function(t,n){for(var r=[],i=t.length;i--;)r[i]=n(t[i]);return r}((t=t.replace(Tr,".")).split("."),n).join(".");return i+e}(t,function(t){return Or.test(t)?"xn--"+function(t){for(var n=[],r=(t=Ar(t)).length,i=128,e=0,u=72,o=0,f=t;o<f.length;o++){var s=f[o];s<128&&n.push(mr(s))}var c=n.length,a=c;for(c&&n.push("-");a<r;){for(var h=pr,v=0,l=t;v<l.length;v++){var _=l[v];_>=i&&_<h&&(h=_)}var d=a+1;h-i>br((pr-e)/d)&&Nr("overflow"),e+=(h-i)*d,i=h;for(var y=0,w=t;y<w.length;y++){var I=w[y];if(I<i&&++e>pr&&Nr("overflow"),I==i){for(var E=e,g=36;;g+=36){var R=g<=u?1:g>=u+26?26:g-u;if(E<R)break;var S=E-R,p=36-R;n.push(mr(Fr(R+S%p,0))),E=br(S/p)}n.push(mr(Fr(E,0))),u=Lr(e,d,a==c),e=0,++a}}++e,++i}return n.join("")}(t):t})};function Br(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i)}return Sr(n)}function Ur(t){if(t>=55296&&t<=57343)throw new I("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function Vr(t,n){return t>>n&63|128}function Hr(t,n){4294967168&t?(4294965248&t?4294901760&t?4292870144&t||(n.push(t>>18&7|240),n.push(Vr(t,12)),n.push(Vr(t,6))):(Ur(t),n.push(t>>12&15|224),n.push(Vr(t,6))):n.push(t>>6&31|192),n.push(63&t|128)):n.push(t)}function Wr(t){for(var n=[],r=0;r<t.length;r++){Hr(t[r],n)}return n}function xr(){if(Pr>=Dr)throw new I("Invalid byte index");var t=255&Cr[Pr];if(Pr++,128==(192&t))return 63&t;throw new I("Invalid continuation byte")}function Gr(){var t,n;if(Pr>Dr)throw new I("Invalid byte index");if(Pr===Dr)return!1;if(t=255&Cr[Pr],Pr++,!(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|xr())>=128)return n;throw new I("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|xr()<<6|xr())>=2048)return Ur(n),n;throw new I("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|xr()<<12|xr()<<6|xr())>=65536&&n<=1114111)return n;throw new I("Invalid UTF-8 detected")}function jr(t){return[37,Er(t>>4),Er(15&t)]}function Kr(t){return function(t){return t>=0&&t<=31}(t)||t>126}function qr(t){return Kr(t)||32===t||34===t||60===t||62===t||96===t}function zr(t){return qr(t)||35===t||63===t||123===t||125===t}function Xr(t){return zr(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function Yr(t){return t<33||t>126||34===t||35===t||60===t||62===t}function $r(t){return Yr(t)||39===t}function Zr(t,n){if(!n(t))return[t];for(var r=Wr([t]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,jr(u))}return i}function Jr(t,n){for(var r=[],i=0,e=Ar(t);i<e.length;i++){var u=e[i];r.push.apply(r,Zr(u,n))}return Br(r)}function Qr(t){return function(t){for(var n=[],r=t.length,i=0;i<r;i++){var e=t[i];if(37===e&&i+2<r&&yr(t[i+1])&&yr(t[i+2])){var u=Ir(t[i+1])<<4|Ir(t[i+2]);n.push(u),i+=2}else n.push(e)}return n}(Wr(t))}function ti(t){return Br(function(t){Cr=t.slice(),Dr=Cr.length,Pr=0;for(var n,r=[];!1!==(n=Gr());)r.push(n);return r}(Qr(Ar(t))))}function ni(t){var n=t.length,r=[0,0,0,0,0,0,0,0],i=0,e=null,u=0;if(u<n&&":"===t[u]){if(!(u+1<n&&":"===t[u+1]))throw new E;u+=2,e=i+=1}for(;u<n;){if(8===i)throw new E("Too many groups");if(":"!==t[u]){for(var o=0,f=0;f<4&&u<n&&rr.test(t[u]);)o=o<<4|S(t[u],16),u+=1,f+=1;if("."===t[u]){if(0===f)throw new E;if(u-=f,i>6)throw new E;for(var s=0;u<n;){var c=null;if(s>0){if(!("."===t[u]&&s<4))throw new E;u+=1}if(!nr.test(t[u]))throw new E;for(;u<n&&nr.test(t[u]);){var a=S(t[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(":"===t[u]){if((u+=1)===n)throw new E}else if(u<n)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;)hr(r,i,e+h-1),i-=1,h-=1}else if(8!==i)throw new E;return r}function ri(t){var n=10,r=er;return ir.test(t)?(t=t.slice(2),n=16,r=ur):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,r=or),""===t?0:r.test(t)?S(t,n):void 0}var ii={wm:4},ei=/[\0\t\n\r #%/:?@\[\\\]]/,ui=/[\0\t\n\r #/:?@\[\\\]]/;function oi(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new E("Invalid IPv6 address");return{wm:2,pm:ni(t.slice(1,-1))}}if(!n)return function(t){if(ui.test(t))throw new E("Invalid code point in opaque host");var n=Jr(t,Kr);return""===n?ii:{wm:3,ym:n}}(t);var r=function(t){var n=function(t){return Mr(t.toLowerCase())}(t);return n}(ti(t));if(ei.test(r))throw new E("Invalid code point in host");var i=function(t){var n=t.split(".");if(""===n[n.length-1]&&n.pop(),!(n.length>4)){for(var r=[],i=0;i<n.length;i++){var e=n[i];if(""===e)return;var u=ri(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?{wm:1,pm:i}:""===r?ii:{wm:0,Am:r}}function fi(t){switch(t.wm){case 0:return t.Am;case 1:return function(t){for(var n=[],r=t,i=1;i<=4;i++)n.push(""+(255&r)),4!==i&&n.push("."),r>>>=8;return n.reverse().join("")}(t.pm);case 2:return"["+function(t){for(var n="",r=function(t){for(var n=0,r=0,i=0,e=0,u=0;u<8;u++)0===t[u]?(0===e&&(i=u),e++):(e>r&&(n=i,r=e),e=0);return e>r&&(n=i,r=e),r>1?n:null}(t),i=!1,e=0;e<8;e++){if(i){if(0===t[e])continue;i=!1}r!==e?(n+=t[e].toString(16),7!==e&&(n+=":")):(n+=0===e?"::":":",i=!0)}return n}(t.pm)+"]";case 3:return t.ym;case 4:return""}}var si=/\+/g;function ci(t){return 42===t||45===t||46===t||95===t||dr(t)}function ai(t){for(var n=t.split("&"),r=[],i=0;i<n.length;i++){var e=n[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(si," "),f=f.replace(si," ");var s=ti(o),c=ti(f);r.push([s,c])}}return r}function hi(t){for(var n="",r=0;r<t.length;r++){var i=t[r];r>0&&(n+="&"),n+=vi(Wr(Ar(i[0])))+"="+vi(Wr(Ar(i[1])))}return n}function vi(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];32===i?n.push(43):ci(i)?n.push(i):n.push.apply(n,jr(i))}return Sr(n)}var li=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function _i(t){var n=""+t,r=li.exec(n);return r?function(t,n){for(var r=t.length,i=[],e=n;e<r;e++){var u=t.charCodeAt(e);if(yi(u))if(wi(u)||e===r-1)i.push(di);else{var o=t.charCodeAt(e+1);wi(o)?(i.push(u,o),e++):i.push(di)}else i.push(u)}return t.slice(0,n)+Sr(i)}(n,r.index):n}var di=65533,yi=function(t){return 55296==(63488&t)},wi=function(t){return!!(1024&t)};function Ii(t,n){var r=t[0],i=n[0];return r===i?0:r<i?-1:1}function Ei(t){t.Tm.length=0}function gi(t,n){!function(t,n){for(var r=0;r<n.length;r++)t[r]=n[r];t.length=n.length}(t.Tm,ai(n))}function Ri(t){if(t.Sm){var n=hi(t.Tm);""===n&&(n=null),t.Sm.Sm.Em=n}}var Si=function(){function t(t){if(void 0===t&&(t=void 0),this.Sm=null,null==t)this.Tm=[];else if("object"==typeof t||"function"==typeof t)if(function(t){return t instanceof Si&&!!sr(t.Tm)&&(!cr||t[i]===pi)}(t))this.Tm=t.Tm.slice();else if(function(t){return null!=t&&(!!sr(t)||!!cr&&"function"==typeof t[i])}(t)){this.Tm=[];for(var n=0,r=ar(t);n<r.length;n++){var e=ar(r[n]);if(2!==e.length)throw new E("Invalid name-value pair");this.Tm.push([_i(e[0]),_i(e[1])])}}else for(var u in this.Tm=[],t)g.prototype.hasOwnProperty.call(t,u)&&this.Tm.push([_i(u),_i(t[u])]);else(t=_i(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Tm=ai(t)}var n=t.prototype;return n.append=function(t,n){t=_i(t),n=_i(n),this.Tm.push([t,n]),Ri(this)},n.delete=function(t){t=_i(t);for(var n=this.Tm,r=0;r<n.length;){n[r][0]===t?n.splice(r,1):r++}Ri(this)},n.get=function(t){t=_i(t);for(var n=this.Tm,r=0;r<n.length;r++){var i=n[r];if(i[0]===t)return i[1]}return null},n.getAll=function(t){t=_i(t);for(var n=this.Tm,r=[],i=0;i<n.length;i++){var e=n[i];e[0]===t&&r.push(e[1])}return r},n.has=function(t){t=_i(t);for(var n=this.Tm,r=0;r<n.length;r++){if(n[r][0]===t)return!0}return!1},n.set=function(t,n){t=_i(t),n=_i(n);for(var r=this.Tm,i=!1,e=0;e<r.length;){var u=r[e];u[0]===t?i?r.splice(e,1):(u[1]=n,i=!0,e++):e++}i||r.push([t,n]),Ri(this)},n.sort=function(){Jn(this.Tm,Ii),Ri(this)},n.toString=function(){return hi(this.Tm)},n.entries=function(){return new bi(this.Tm,Oi)},n.keys=function(){return new bi(this.Tm,Ti)},n.values=function(){return new bi(this.Tm,ki)},n.forEach=function(t){var n=this;this.Tm.forEach(function(r){return t(r[1],r[0],n)})},t}(),pi=Si.prototype.entries;cr&&(Si.prototype[i]=pi);var Oi=function(t){return[t[0],t[1]]},Ti=function(t){return t[0]},ki=function(t){return t[1]},bi=function(){function t(t,n){this.Pm=0,this.Tm=t,this.Im=n}return t.prototype.next=function(){return this.Pm<this.Tm.length?{done:!1,value:this.Im(this.Tm[this.Pm++])}:{done:!0,value:void 0}},t}(),mi="null";var Ni=g.create(null);Ni.ftp=21,Ni.file=0,Ni.gopher=70,Ni.http=80,Ni.https=443,Ni.ws=80,Ni.wss=443;var Ai=/^(?:\.|%2e)$/i,Ci=/^(?:\.|%2e){2}$/i;function Di(t){return Ai.test(t)}function Pi(t){return Ci.test(t)}function Fi(t){return void 0!==Ni[t]}function Li(t){return Fi(t.Rm)}function Mi(t){return""!==t.Cm||""!==t.xm}function Bi(t){var n=t.length;if(!(n>=2))return!1;if(!Vi(t.slice(0,2)))return!1;if(2!==n){var r=t[2];if(47!==r&&92!==r&&63!==r&&35!==r)return!1}return!0}function Ui(t){return 2===t.length&&tr.test(t[0])&&(":"===t[1]||"|"===t[1])}function Vi(t){return 2===t.length&&Ui(Sr(t))}function Hi(t){return Ui(t)&&":"===t[1]}function Wi(t){var n=t.Dm;0!==n.length&&("file"===t.Rm&&1===n.length&&Hi(n[0])||n.pop())}function xi(t){return null===t.Nm||ii===t.Nm||t.Bm||"file"===t.Rm}var Gi=-1,ji=/\t|\n|\r/g,Ki=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function qi(t,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new Xi,t=t.replace(Ki,""));var e=null!==i?i:0;n=n||null;for(var u=[],o=!1,f=!1,s=!1,c=Ar(t=t.replace(ji,"")),a=c.length,h=0;h<=a;){var v=h<a?c[h]:Gi;switch(e){case 0:if(!lr(v)){if(null===i){u.length=0,e=2;continue}throw new E("Invalid scheme")}u.push(wr(v)),e=1;break;case 1:if(dr(v)||43===v||45===v||46===v)u.push(wr(v));else{if(58!==v){if(null===i){u.length=0,e=2,h=0;continue}throw new E("Invalid scheme")}var l=Br(u);if(null!==i){if(Fi(r.Rm)&&!Fi(l))return;if(!Fi(r.Rm)&&Fi(l))return;if((Mi(r)||null!==r.Mm)&&"file"===l)return;if("file"===r.Rm&&(r.Nm===ii||null===r.Nm))return}if(r.Rm=l,null!==i)return void(Li(r)&&r.Mm===Ni[r.Rm]&&(r.Mm=null));u.length=0,"file"===r.Rm?e=13:Li(r)&&n&&n.Rm===r.Rm?e=3:Li(r)?e=7:47===c[h+1]?(e=4,h+=1):(r.Bm=!0,r.Dm.push(""),e=18)}break;case 2:if(!n||n.Bm&&35!==v)throw new E("Invalid scheme");n.Bm&&35===v?(r.Rm=n.Rm,r.Dm=n.Dm.slice(),r.Em=n.Em,r.Lm="",r.Bm=!0,e=20):"file"!==n.Rm?(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.Rm=n.Rm,Gi===v?(r.Cm=n.Cm,r.xm=n.xm,r.Nm=n.Nm,r.Mm=n.Mm,r.Dm=n.Dm.slice(),r.Em=n.Em):47===v?e=6:63===v?(r.Cm=n.Cm,r.xm=n.xm,r.Nm=n.Nm,r.Mm=n.Mm,r.Dm=n.Dm.slice(),r.Em="",e=19):35===v?(r.Cm=n.Cm,r.xm=n.xm,r.Nm=n.Nm,r.Mm=n.Mm,r.Dm=n.Dm.slice(),r.Em=n.Em,r.Lm="",e=20):92===v&&Li(r)?e=6:(r.Cm=n.Cm,r.xm=n.xm,r.Nm=n.Nm,r.Mm=n.Mm,r.Dm=n.Dm.slice(),r.Dm.pop(),e=17,h-=1);break;case 6:!Li(r)||47!==v&&92!==v?47===v?e=9:(r.Cm=n.Cm,r.xm=n.xm,r.Nm=n.Nm,r.Mm=n.Mm,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=Br(Zr(d,Xr));s?r.xm+=y:r.Cm+=y}else s=!0}u.length=0}else if(Gi===v||47===v||63===v||35===v||Li(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.Rm)h-=1,e=15;else if(58!==v||f)if(Gi===v||47===v||63===v||35===v||Li(r)&&92===v){if(h-=1,Li(r)&&0===u.length)throw new E("Invalid host");if(null!==i&&0===u.length&&(Mi(r)||null!==r.Mm))return;var w=oi(Br(u),Li(r));if(r.Nm=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=oi(Br(u),Li(r));if(r.Nm=I,u.length=0,e=12,11===i)return}break;case 12:if(_r(v))u.push(v);else{if(!(Gi===v||47===v||63===v||35===v||Li(r)&&92===v||null!==i))throw new E("Invalid port");if(0!==u.length){var g=S(Br(u),10);if(g>65535)throw new E("Invalid port");r.Mm=g===Ni[r.Rm]?null:g,u.length=0}if(null!==i)return;e=16,h-=1}break;case 13:r.Rm="file",47===v||92===v?e=14:n&&"file"===n.Rm?Gi===v?(r.Nm=n.Nm,r.Dm=n.Dm.slice(),r.Em=n.Em):63===v?(r.Nm=n.Nm,r.Dm=n.Dm.slice(),r.Em="",e=19):35===v?(r.Nm=n.Nm,r.Dm=n.Dm.slice(),r.Em=n.Em,r.Lm="",e=20):(Bi(c.slice(h))||(r.Nm=n.Nm,r.Dm=n.Dm.slice(),Wi(r)),e=17,h-=1):(e=17,h-=1);break;case 14:47===v||92===v?e=15:(n&&"file"===n.Rm&&!Bi(c.slice(h))&&(Hi(n.Dm[0])?r.Dm.push(n.Dm[0]):r.Nm=n.Nm),e=17,h-=1);break;case 15:if(Gi===v||47===v||92===v||63===v||35===v)if(h-=1,null===i&&Vi(u))e=17;else if(0===u.length){if(r.Nm=ii,null!==i)return;e=16}else{var R=oi(Br(u),Li(r));if(0===R.wm&&"localhost"===R.Am&&(R=ii),r.Nm=R,null!==i)return;u.length=0,e=16}else u.push(v);break;case 16:Li(r)?(e=17,47!==v&&92!==v&&(h-=1)):null===i&&63===v?(r.Em="",e=19):null===i&&35===v?(r.Lm="",e=20):Gi!==v&&(e=17,47!==v&&(h-=1));break;case 17:if(Gi===v||47===v||Li(r)&&92===v||null===i&&(63===v||35===v)){var p=Br(u);if(Pi(p)?(Wi(r),47===v||Li(r)&&92===v||r.Dm.push("")):!Di(p)||47===v||Li(r)&&92===v?Di(p)||("file"===r.Rm&&0===r.Dm.length&&Vi(u)&&(ii!==r.Nm&&null!==r.Nm&&(r.Nm=ii),u[1]=58,p=Br(u)),r.Dm.push(p)):r.Dm.push(""),u.length=0,"file"===r.Rm&&(Gi===v||63===v||35===v))for(;r.Dm.length>1&&""===r.Dm[0];)r.Dm.shift();63===v?(r.Em="",e=19):35===v&&(r.Lm="",e=20)}else u.push.apply(u,Zr(v,zr));break;case 18:63===v?(r.Em="",e=19):35===v?(r.Lm="",e=20):Gi!==v&&(r.Dm[0]+=Br(Zr(v,Kr)));break;case 19:null===i&&35===v?(r.Lm="",e=20):Gi!==v&&(r.Em+=Br(Zr(v,Li(r)?$r:Yr)));break;case 20:Gi===v||0===v||(r.Lm+=Br(Zr(v,qr)))}h++}return r}function zi(t,n,r,i){try{qi(t,n,r,i)}catch(t){}}var Xi=function(){this.Rm="",this.Cm="",this.xm="",this.Nm=null,this.Mm=null,this.Dm=[],this.Em=null,this.Lm=null,this.Bm=!1};function Yi(t){switch(t.Rm){case"blob":var n;try{n=qi(t.Dm[0],null)}catch(t){return mi}return Yi(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(t,n,r){return t+"://"+fi(n)+(null===r?"":":"+r)}(t.Rm,t.Nm,t.Mm);default:return mi}}var $i=function(){function t(t,n){var r,i=null;if(null!=n)if(function(t){return null!=t&&t instanceof $i&&"object"==typeof t.Sm}(n))i=n.Sm;else try{i=qi(String(n),null)}catch(t){throw new E("Invalid base URL: "+t.message)}try{r=qi(String(t),i)}catch(t){throw new E("Invalid URL: "+t.message)}var e=r.Em;this.Sm=r,this.Em=function(t){var n=new Si;return null!==t&&gi(n,t),n}(e),this.Em.Sm=this}var n=t.prototype;return n.toString=function(){return this.href},n.toJSON=function(){return this.href},function(t,n,r){n&&Zn(t.prototype,n),r&&Zn(t,r)}(t,[{key:"href",get:function(){return function(t,n){void 0===n&&(n=!1);var r=t.Rm+":";if(null!==t.Nm?(r+="//",Mi(t)&&(r+=t.Cm,""!==t.xm&&(r+=":"+t.xm),r+="@"),r+=fi(t.Nm),null!==t.Mm&&(r+=":"+t.Mm)):null===t.Nm&&"file"===t.Rm&&(r+="//"),t.Bm)r+=t.Dm[0];else for(var i=0,e=t.Dm;i<e.length;i++)r+="/"+e[i];return null!==t.Em&&(r+="?"+t.Em),n||null===t.Lm||(r+="#"+t.Lm),r}(this.Sm)},set:function(t){var n;try{n=qi(String(t),null)}catch(t){throw new E("Invalid URL: "+t.message)}this.Sm=n,Ei(this.Em);var r=this.Sm.Em;null!==r&&gi(this.Em,r)}},{key:"origin",get:function(){return Yi(this.Sm)}},{key:"protocol",get:function(){return this.Sm.Rm+":"},set:function(t){zi(t+":",null,this.Sm,0)}},{key:"username",get:function(){return this.Sm.Cm},set:function(t){xi(this.Sm)||(this.Sm.Cm=Jr(t,Xr))}},{key:"password",get:function(){return this.Sm.xm},set:function(t){xi(this.Sm)||(this.Sm.xm=Jr(t,Xr))}},{key:"host",get:function(){var t=this.Sm,n=t.Nm;if(null===n)return"";var r=t.Mm,i=fi(n);return null!==r&&(i+=":"+r),i},set:function(t){this.Sm.Bm||zi(t,null,this.Sm,10)}},{key:"hostname",get:function(){var t=this.Sm.Nm;return null===t?"":fi(t)},set:function(t){this.Sm.Bm||zi(t,null,this.Sm,11)}},{key:"port",get:function(){var t=this.Sm.Mm;return null===t?"":""+t},set:function(t){xi(this.Sm)||(""===t?this.Sm.Mm=null:zi(t,null,this.Sm,12))}},{key:"pathname",get:function(){var t=this.Sm.Dm;return this.Sm.Bm?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.Sm.Bm||(this.Sm.Dm.length=0,zi(t,null,this.Sm,16))}},{key:"search",get:function(){var t=this.Sm.Em;return null===t||""===t?"":"?"+t},set:function(t){t=_i(t);var n=this.Sm;if(""===t)return n.Em=null,void Ei(this.Em);"?"===t[0]&&(t=t.slice(1)),n.Em="",zi(t,null,n,19),gi(this.Em,t)}},{key:"searchParams",get:function(){return this.Em}},{key:"hash",get:function(){var t=this.Sm.Lm;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.Sm.Lm="",zi(t,null,this.Sm,20)):this.Sm.Lm=null}}]),t}();function Zi(t){return t.document&&t.document.baseURI||t.location.href||""}var Ji=function(){function t(){this.uw=void 0,this.Jm=new Qi,this.ip=An,this.tp=function(){if(self.URL)try{var t=new self.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href}catch(t){}return!1}(),self.performance&&self.performance.now?this.uw=function(){return self.performance.now()}:this.uw=Rn}var n=t.prototype;return n.Om=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];zn.apply(void 0,[].concat(n))},n.Fm=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Xn.apply(void 0,[].concat(n))},n.Um=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Yn.apply(void 0,[].concat(n))},n.Vm=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];$n.apply(void 0,[].concat([t],r))},n.dw=function(t,n){return _(t,n)},n.Hm=function(t,n){return y(t,n)},n.cw=function(t){d(t)},n.Wm=function(t){w(t)},n.qm=function(){return this.zm.qm()},n.Xm=function(){return this.zm.Xm()},n.Gm=function(){return this.zm.Gm()},n.Qm=function(){return this.zm.Qm()},n.Km=function(){return this.zm.Km()},n.jm=function(t,n){return this.zm.jm(t,n)},n.Ym=function(t){return this.zm.Ym(t)},n.Rh=function(t,n){var r;return void 0===n&&(n=Zi(a)),r="object"!==(void 0===n?"undefined":m(n))||b(n,$i)?n:n.href,new $i(t,r)},n.$m=function(t,n){if(void 0===n&&(n=Zi(a)),this.tp){var r=function(t){return"string"==typeof t}(n)?n:n.toString();return new self.URL(t,r).href}return this.Rh(t,n).href},vt(t,[{key:"Zm",get:function(){return this.Jm}},{key:"ie",get:function(){return this.ip}},{key:"ep",get:function(){return{sp:l&&l.userAgent.match(/Android /i)?"Android":"other",np:Boolean(l&&l.userAgent.match(/Android 8.0.0/i))}}},{key:"rp",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"hp",get:function(){return"languages"in l?l.languages.slice():[l.language]}}]),t}(),Qi=function(){function t(){}return vt(t,[{key:"op",get:function(){return l.oscpu}},{key:"ie",get:function(){return l.platform}},{key:"ap",get:function(){return l.vendor}},{key:"cp",get:function(){return l.vendorSub}}]),t}();var te=function(){function t(){}var n=t.prototype;return n.Km=function(){return nt.resolve(!1)},n.Xm=function(){return nt.resolve(!1)},n.Qm=function(){return nt.resolve(!1)},n.Gm=function(){return nt.resolve(!1)},n.Ym=function(t){return nt.resolve(!1)},n.jm=function(t,n){return nt.resolve(!1)},n.qm=function(){return nt.resolve(!1)},t}(),ne=function(){function t(){}var n=t.prototype;return n.IS=function(){},n.iA=function(t){},n.Jy=function(t){},n.$y=function(t,n){},t}(),re=function(t){return t.CS="arraybuffer",t.xS="json",t.DS="stream",t.NS="text",t}({}),ie=function(){function t(n){var r=this;this._p=void 0,this._p={},b(n,t)?n.asList().forEach(function(t){var n=t[0],i=t[1];r.append(n,i)}):Array.isArray(n)?n.forEach(function(t){var n=t[0],i=t[1];r.append(n,i)}):n&&g.getOwnPropertyNames(n).forEach(function(t){r.append(t,n[t])})}var n=t.prototype;return n.append=function(t,n){var r=t,i=n;r=ee(r),i=ue(i);var e=r.toLowerCase();if(this._p.hasOwnProperty(e)){var u=this._p[e],o=u[1];u[1]=o?o+", "+i:i}else this._p[e]=[r,i]},n.delete=function(t){var n=ee(t).toLowerCase();delete this._p[n]},n.get=function(t){var n=ee(t).toLowerCase();return this._p.hasOwnProperty(n)?this._p[n][1]:null},n.has=function(t){var n=ee(t).toLowerCase();return this._p.hasOwnProperty(n)},n.set=function(t,n){var r=t,i=(r=ee(r)).toLowerCase();this._p[i]=[r,ue(n)]},n.forEach=function(t,n){for(var r in this._p)this._p.hasOwnProperty(r)&&t.call(n,this._p[r][1],r,this)},n.asList=function(){var t=[];for(var n in this._p)if(this._p.hasOwnProperty(n)){var r=this._p[n],i=r[0],e=r[1];t.push([i,e])}return t},n.MS=function(){var t={};return this.forEach(function(n,r){t[r]=n}),t},n.LS=function(t){var n=this;t.forEach(function(t,r){n.append(r,t)})},n.OS=function(t){var n=this;t.forEach(function(t,r){n.set(r,t)})},t}();function ee(t){var n=t;if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new E("Invalid character in header field name");return n}function ue(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}var oe=function(t,n){this.zS=void 0,this.fk=void 0,this.Uk=void 0,this.dk=void 0,this.Vk=void 0,this.Hk=void 0,this.Sw=void 0,this.Ap=void 0,this.Wk=void 0,this.qk=void 0,this.wk=void 0,this.zk=void 0,this.Xk=void 0,this.Gk=void 0,this.Qk=void 0,this.Kk=void 0;var r,i,e,u,o,f,s,c,a,h,v,l,_,d,y,w,I,E,g=t.wk;n?(r=n.zS,i=n.fk,e=n.Uk,u=n.dk,o=n.Vk,f=n.Hk,s=n.Sw,c=n.Ap,a=n.Wk,h=n.qk,v=n.zk,l=n.Xk,_=n.Gk,d=n.Qk,y=n.Kk):(r=null,i={},e="GET",u=re.NS,o=0,f=0,c="",a="",h="",v=!1,_=void 0,d=!1,y=void 0),this.wk=g,this.zS=t.zS||r,this.fk=new ie(t.fk||i),this.Uk=t.Uk||e,this.dk=t.dk||u,this.Vk=void 0!==t.Vk?Number(t.Vk)||0:o,this.Hk=void 0!==t.Hk?Number(t.Hk)||0:f,this.Sw=t.Sw||s||(new jt).Sw,this.Ap=t.Ap||c,this.Wk=t.Wk||a,this.qk=t.qk||h,this.zk=void 0!==t.zk?Boolean(t.zk):v,this.Xk=t.Xk||l,this.Gk=null!=(w=t.Gk)?w:_,this.Qk=null!=(I=t.Qk)?I:d,this.Kk=null!=(E=t.Kk)?E:y},fe=function(t){return t.sE="HttpOpenError",t.nE="HttpResponseError",t.rE="HttpTimeoutError",t}({}),se=function(t){function n(n,r,i){var e;return(e=t.call(this,r,i)||this).hE=void 0,e.hE=n,e}return at(n,t),vt(n,[{key:"lk",get:function(){return this.hE}}]),n}(qt),ce=function(t){function n(n,r){return t.call(this,n,"Error while opening "+n.wk+".",r)||this}return at(n,t),vt(n,[{key:"name",get:function(){return fe.sE}}]),n}(se),ae=function(){function t(){}var n=t.prototype;return n.lk=function(t){return nt.reject(new ce(new oe(t)))},n.jk=function(t){},n._n=function(){},t}(),he=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return at(n,t),n}(qt),ve=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).aP=new te,n.fU=new ae,n.i=new ne,n}return at(n,t),n.prototype.OE=function(t){throw new he},vt(n,[{key:"zm",get:function(){return this.aP}},{key:"uP",get:function(){return!1}},{key:"dP",get:function(){return!1}},{key:"vP",get:function(){return!1}},{key:"fP",get:function(){return!1}},{key:"gP",get:function(){return this.i}},{key:"wP",get:function(){return{mP:Ft}}},{key:"pP",get:function(){return"default"}},{key:"yP",get:function(){return"unknown"}},{key:"ff",get:function(){return this.fU}}]),n}(Ji);!function(t){0}(new ve);var le=function(t){return t[t.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",t[t.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4",t}({}),_e=function(t){return t[t.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",t[t.LICENSE_ERROR=2e3]="LICENSE_ERROR",t[t.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",t[t.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",t[t.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",t[t.LICENSE_INVALID_FEATURE=2004]="LICENSE_INVALID_FEATURE",t[t.SOURCE_INVALID=3e3]="SOURCE_INVALID",t[t.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",t[t.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",t[t.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",t[t.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",t[t.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",t[t.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",t[t.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",t[t.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",t[t.MEDIA_ABORTED=5004]="MEDIA_ABORTED",t[t.NETWORK_ERROR=6e3]="NETWORK_ERROR",t[t.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",t[t.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",t[t.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",t[t.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",t[t.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",t[t.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",t[t.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",t[t.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",t[t.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",t[t.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",t[t.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",t[t.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",t[t.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",t[t.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",t[t.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",t[t.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",t[t.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",t[t.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",t[t.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",t[t.AD_ERROR=1e4]="AD_ERROR",t[t.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",t[t.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR",t[t.PICTURE_IN_PICTURE_ERROR=11001]="PICTURE_IN_PICTURE_ERROR",t[t.CACHE_SOURCE_ERROR=12e3]="CACHE_SOURCE_ERROR",t[t.CACHE_CONTENT_PROTECTION_ERROR=12001]="CACHE_CONTENT_PROTECTION_ERROR",t[t.THEO_LIVE_UNKNOWN_ERROR=13e3]="THEO_LIVE_UNKNOWN_ERROR",t[t.THEO_LIVE_CHANNEL_NOT_FOUND=13001]="THEO_LIVE_CHANNEL_NOT_FOUND",t[t.THEO_LIVE_END_OF_DEMO=13002]="THEO_LIVE_END_OF_DEMO",t[t.THEO_LIVE_ANALYTICS_ERROR=13003]="THEO_LIVE_ANALYTICS_ERROR",t}({}),de=function(t){return t[t.CONFIGURATION=1]="CONFIGURATION",t[t.LICENSE=2]="LICENSE",t[t.SOURCE=3]="SOURCE",t[t.MANIFEST=4]="MANIFEST",t[t.MEDIA=5]="MEDIA",t[t.NETWORK=6]="NETWORK",t[t.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",t[t.SUBTITLE=8]="SUBTITLE",t[t.VR=9]="VR",t[t.AD=10]="AD",t[t.FULLSCREEN=11]="FULLSCREEN",t[t.CACHE=12]="CACHE",t[t.THEOLIVE=13]="THEOLIVE",t}({});!function(t){t.fromCode=function(n){var r=R.floor(n/1e3);if(r in t)return r;throw new E("Invalid error code: "+n)}}(de||(de={}));var ye=function(t){function n(n,r,i){var e;return(e=t.call(this,r,i)||this).code=void 0,e.code=n,e}return at(n,t),vt(n,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return de.fromCode(this.code)}}]),n}(qt);var we,Ie=function(){function t(t){this.encoding=t}var n=t.prototype;return n.encode=function(t){if(!t)return new T(0);for(var n=new T(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n},n.encodeInto=function(t,n){for(var r=R.min(t.length,n.byteLength),i=0;i<r;i++)n[i]=t.charCodeAt(i);return{read:r,written:r}},t}(),Ee=function(){function t(t,n){this.encoding=t,this.fatal=(null==n?void 0:n.fatal)||!1,this.ignoreBOM=(null==n?void 0:n.ignoreBOM)||!1}return t.prototype.decode=function(t,n){return t?(r=b(t,ArrayBuffer)?new T(t):new T(t.buffer,t.byteOffset,t.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},t}();var ge=new Array(128).fill(void 0);function Re(t){return ge[t]}ge.push(void 0,null,!0,!1);var Se=ge.length;function pe(t){var n=Re(t);return function(t){t<132||(ge[t]=Se,Se=t)}(t),n}var Oe=void 0!==Ee?new Ee("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:function(){throw I("TextDecoder not available")}};void 0!==Ee&&Oe.decode();var Te=null;function ke(){return null!==Te&&Te.buffer===we.memory.buffer||(Te=new T(we.memory.buffer)),Te}function be(t,n){return t>>>=0,Oe.decode(ke().subarray(t,t+n))}function me(t){Se===ge.length&&ge.push(ge.length+1);var n=Se;return Se=ge[n],ge[n]=t,n}var Ne=0;function Ae(t,n){var r=n(1*t.length,1)>>>0;return ke().set(t,r/1),Ne=t.length,r}var Ce=null;function De(){return null!==Ce&&Ce.buffer===we.memory.buffer||(Ce=new Int32Array(we.memory.buffer)),Ce}function Pe(t){return null==t}function Fe(t,n){return t>>>=0,ke().subarray(t/1,t/1+n)}function Le(t){try{var n=we.__wbindgen_add_to_stack_pointer(-16);we.mpegts_to_fmp4(n,me(t));var r=De()[n/4+0],i=De()[n/4+1];if(De()[n/4+2])throw pe(i);return pe(r)}finally{we.__wbindgen_add_to_stack_pointer(16)}}function Me(t){try{var n=we.__wbindgen_add_to_stack_pointer(-16);we.raw_audio_to_fmp4(n,me(t));var r=De()[n/4+0],i=De()[n/4+1];if(De()[n/4+2])throw pe(i);return pe(r)}finally{we.__wbindgen_add_to_stack_pointer(16)}}var Be=void 0!==Ie?new Ie("utf-8"):{encode:function(){throw I("TextEncoder not available")}},Ue="function"==typeof Be.encodeInto?function(t,n){return Be.encodeInto(t,n)}:function(t,n){var r=Be.encode(t);return n.set(r),{read:t.length,written:r.length}};function Ve(t,n){return Bt(function(){var r,i,e;return Ut(this,function(u){switch(u.label){case 0:if("function"!=typeof Response||!b(t,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(t,n)];case 2:return[2,u.sent()];case 3:if(r=u.sent(),"application/wasm"==t.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,t.arrayBuffer()];case 5:return i=u.sent(),[4,WebAssembly.instantiate(i,n)];case 6:return[2,u.sent()];case 7:return[4,WebAssembly.instantiate(t,n)];case 8:return b(e=u.sent(),WebAssembly.Instance)?[2,{instance:e,module:t}]:[2,e];case 9:return[2]}})})()}function He(){var t={wbg:{}};return t.wbg.__wbg_data_88128afc928c671c=function(t,n){var r=Ae(Re(n).data,we.__wbindgen_export_0),i=Ne;De()[t/4+1]=i,De()[t/4+0]=r},t.wbg.__wbg_metadata_4fad98bf01a9214c=function(t){var n=Re(t).metadata;return Pe(n)?0:me(n)},t.wbg.__wbg_spsnal_8d37c9c08c451465=function(t,n){var r=Re(n).sps_nal,i=Pe(r)?0:Ae(r,we.__wbindgen_export_0),e=Ne;De()[t/4+1]=e,De()[t/4+0]=i},t.wbg.__wbg_ppsnal_dce3653ab694e269=function(t,n){var r=Re(n).pps_nal,i=Pe(r)?0:Ae(r,we.__wbindgen_export_0),e=Ne;De()[t/4+1]=e,De()[t/4+0]=i},t.wbg.__wbg_videopid_104d156b2ba6bc7a=function(t){var n=Re(t).video_pid;return Pe(n)?16777215:n},t.wbg.__wbg_audiopid_f08186bc78c6651c=function(t){var n=Re(t).audio_pid;return Pe(n)?16777215:n},t.wbg.__wbg_programmaptablepid_df06a5b67473487c=function(t){var n=Re(t).program_map_table_pid;return Pe(n)?16777215:n},t.wbg.__wbindgen_object_drop_ref=function(t){pe(t)},t.wbg.__wbg_createoutputdata_33c7567cebae8889=function(t,n,r,i,e,u,o,f){var s,c,a,h;0!==t&&(s=Fe(t,n).slice(),we.__wbindgen_export_1(t,1*n,1)),0!==r&&(c=Fe(r,i).slice(),we.__wbindgen_export_1(r,1*i,1)),0!==e&&(a=Fe(e,u).slice(),we.__wbindgen_export_1(e,1*u,1)),0!==o&&(h=Fe(o,f).slice(),we.__wbindgen_export_1(o,1*f,1));var v=function(t,n,r,i){return{video_init:t,audio_init:n,video_media:r,audio_media:i}}(s,c,a,h);return me(v)},t.wbg.__wbg_createtimestampwithbase_cdcc16b8210fc8cc=function(t,n,r){var i=function(t,n,r){return{low:t,high:n,base:r}}(t>>>0,n>>>0,r>>>0);return me(i)},t.wbg.__wbg_createoutputmetadata_cf1303a7c4055e7f=function(t,n,r,i,e,u,o,f,s,c,a,h,v,l,_,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=Fe(o,f).slice(),we.__wbindgen_export_1(o,1*f,1)),0!==s&&(E=Fe(s,c).slice(),we.__wbindgen_export_1(s,1*c,1));var g=function(t,n,r,i,e,u,o,f,s,c,a){return{video_pid:t,audio_pid:n,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===t?void 0:t,16777215===n?void 0:n,y,w,I,E,pe(a),pe(h),pe(v),16777215===l?void 0:l,0===_?void 0:d);return me(g)},t.wbg.__wbg_createoutput_4ffe577c1c6155fb=function(t,n){var r=function(t,n){return{data:t,metadata:n}}(pe(t),pe(n));return me(r)},t.wbg.__wbindgen_string_new=function(t,n){return me(be(t,n))},t.wbg.__wbg_new_abda76e883ba8a5f=function(){return me(new I)},t.wbg.__wbg_stack_658279fe44541cf6=function(t,n){var r=function(t,n,r){if(void 0===r){var i=Be.encode(t),e=n(i.length,1)>>>0;return ke().subarray(e,e+i.length).set(i),Ne=i.length,e}for(var u=t.length,o=n(u,1)>>>0,f=ke(),s=0;s<u;s++){var c=t.charCodeAt(s);if(c>127)break;f[o+s]=c}if(s!==u){0!==s&&(t=t.slice(s)),o=r(o,u,u=s+3*t.length,1)>>>0;var a=ke().subarray(o+s,o+u);s+=Ue(t,a).written}return Ne=s,o}(Re(n).stack,we.__wbindgen_export_0,we.__wbindgen_export_2),i=Ne;De()[t/4+1]=i,De()[t/4+0]=r},t.wbg.__wbg_error_f851667af71bcfc6=function(t,n){var r,i;try{r=t,i=n,console.error(be(t,n))}finally{we.__wbindgen_export_1(r,i,1)}},t}function We(t,n){return we=t.exports,xe.__wbindgen_wasm_module=n,Ce=null,Te=null,we.__wbindgen_start(),we}function xe(t){return Bt(function(){var n,r,i,e;return Ut(this,function(u){switch(u.label){case 0:return void 0!==we?[2,we]:(void 0===t&&(t=new URL("theomux_bg.wasm",void 0)),n=He(),("string"==typeof t||"function"==typeof Request&&b(t,Request)||"function"==typeof URL&&b(t,URL))&&(t=fetch(t)),[4,t]);case 1:return[4,Ve.apply(void 0,[u.sent(),n])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,We(i,e)]}})})()}function Ge(t){return Bt(function(){var n,r;return Ut(this,function(i){switch(i.label){case 0:return b(t,WebAssembly.Module)?n=t:(r="string"==typeof t?new URL(t):t,n="http:"===r.protocol||"https:"===r.protocol?fetch(r.href):function(t){return new nt(function(n,r){var i=new k;i.onload=function(){n(i.response||new ArrayBuffer(0))},i.onerror=function(){r(new E('Failed to fetch "'+t+'", status '+i.status))},i.open("GET",t,!0),i.responseType="arraybuffer",i.send()})}(r.href)),[4,xe(n)];case 1:return i.sent(),[2,{mpegts_to_fmp4:Le,raw_audio_to_fmp4:Me}]}})})()}var je=new URL("./THEOplayer.transmux.wasm",v.href);!function(t){var n,r=nt.resolve(t()).then(function(t){n=t,r=void 0,self.postMessage({RFt:"9.10.0"})},function(t){var n=t,r={success:!1,error:n.message,errorCode:b(n,ye)?n.code:_e.MEDIA_DECODE_ERROR};self.postMessage(r)});self.addEventListener("message",function(t){var i=t.data.id;(function(t){return Bt(function(){var i,e,u,o,f,s;return Ut(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=t.id,t.type===le.MPEGTS_TO_FMP4)o=n.mpegts_to_fmp4(t.input);else{if(t.type!==le.RAW_AUDIO_TO_FMP4)throw new I("Unknown request type: "+t.type);o=n.raw_audio_to_fmp4(t.input)}return f={success:!0,requestId:u,output:o},s=[null==(i=t.input.metadata)?void 0:i.sps_nal,null==(e=t.input.metadata)?void 0:e.pps_nal,t.input.data,o.data.video_init,o.data.audio_init,o.data.video_media,o.data.audio_media].filter(Ct).map(function(t){return t.buffer}),self.postMessage(f,s),[2]}})})()})(t.data).catch(function(t){var n=t,r={success:!1,requestId:i,error:n.message,errorCode:b(n,ye)?n.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);
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.10.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/",