@theoplayer/extended 11.2.0 → 11.4.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,8 +24,8 @@
24
24
  THEOplayer is based on patented technology developed by
25
25
  THEO Technologies (https://www.theoplayer.com).
26
26
 
27
- Version: 11.2.0
28
- Created: 2026-05-07T15:20:43.693Z
27
+ Version: 11.4.0
28
+ Created: 2026-06-04T13:15:25.833Z
29
29
  */
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,g=t.TypeError,E=(t.SyntaxError,t.Object),p=t.Math,S=t.parseInt,R=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 g("Promises must be constructed via new");if("function"!=typeof t)throw new g("not a function");this.Va=0,this.ttn=!1,this.STt=void 0,this.ntn=[],U(t,this)}function P(t,n){for(;3===t.Va;)t=t.STt;0!==t.Va?(t.ttn=!0,D.itn(function(){var r=1===t.Va?n.onFulfilled:n.onRejected;if(null!==r){var i;try{i=r(t.STt)}catch(t){return void L(n.promise,t)}F(n.promise,i)}else(1===t.Va?F:L)(n.promise,t.STt)})):t.ntn.push(n)}function F(t,n){try{if(n===t)throw new g("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.STt=n,void B(t);if("function"==typeof r)return void U(function(t,n){return function(){t.apply(n,arguments)}}(r,n),t)}t.Va=1,t.STt=n,B(t)}catch(n){L(t,n)}}function L(t,n){t.Va=2,t.STt=n,B(t)}function B(t){2===t.Va&&0===t.ntn.length&&D.itn(function(){t.ttn||D.rtn(t.STt)});for(var n=0,r=t.ntn.length;n<r;n++)P(t,t.ntn[n]);t.ntn=null}function M(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 M(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 g("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 g((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 g("Promise.race accepts an array"));for(var i=0,e=t.length;i<e;i++)D.resolve(t[i]).then(n,r)})},D.itn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){N(t,0)},D.rtn=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.Wb=0,this.Tf=0,this.Fp=[],this.etn=t}return t.prototype.stn=function(t){var n=this.length();this.utn(n+1);var r=this.Tf+n&this.etn-1;this.Fp[r]=t,this.Wb=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.etn<n)this.stn(t);else{var r=this.Tf+n-1,i=this.etn-1;this.Fp[r&i]=t,this.Wb=n}},t.prototype.shift=function(){var t=this.Tf,n=this.Fp[t];return this.Fp[t]=void 0,this.Tf=t+1&this.etn-1,this.Wb--,n},t.prototype.length=function(){return this.Wb},t.prototype.utn=function(t){this.etn<t&&this.otn(this.etn<<1)},t.prototype.otn=function(t){var n=this.etn;this.etn=t;var r=this.Tf+this.Wb&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.Fp,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 E.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=E.setPrototypeOf||function(t,n){return t.__proto__=n,t},ct(t,n)}function at(t,n){if("function"!=typeof n&&null!==n)throw new g("Super expression must either be null or a function");t.prototype=E.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),E.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=E.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 g("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.itn,rt=ot,it=new z(16),et=!1,(ft={x4:function(t){it.push(t),et||(et=!0,rt(ut))},wQ:ut=function(){for(;it.length()>0;)it.shift()();et=!1}}).wQ,D.itn=ft.x4,D.rtn=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.u_="web",t.c_="android",t.d_="android-tv",t.l_="ios",t.f_="tvos",t.v_="chromecast",t.__="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),gt=yt.match(/Android ([0-9\.]+)/i),Et=yt.match(/Windows NT ([0-9\.]+)/i),pt=yt.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),St=yt.match(/Firefox\/([0-9\.]+)/i),Rt=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.g_=Boolean("ontouchstart"in self||self.DocumentTouch&&b(h,self.DocumentTouch)||l&&l.msMaxTouchPoints),this.p_=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(yt)||/(macintosh|mac(?=_powerpc)\s)/i.test(yt),this.y_=/Windows NT/i.test(yt),this.A_=Et?R(Et[1]):0,this.T_=/Android/i.test(yt),this.E_=gt?R(gt[1]):0,this.P_=/windows phone (8|8\.1)/i.test(yt),this.I_=/iPhone/i.test(yt),this.D_=/iPad/i.test(yt),this.B_=this.p_&&this.g_&&!this.D_,this.L_=/iPod/i.test(yt),this.G_=/Mobile Safari/i.test(yt),this.q_=/EOS\d*STB/i.test(yt),this.W_=/APP\d*STB/i.test(yt),this.F_=(this.I_||this.D_||this.B_||this.L_)&&!this.P_,this.V_=Tt?R(Tt[2]):0,this.X_=this.P_||this.F_||this.T_||this.G_,this.Q_=/CriOS/i.test(yt),this.Y_=Boolean(self.chrome&&/google/i.test(l.vendor))||this.Q_,this.og=this.Y_&&/Edg\//i.test(l.userAgent),this.ag=It?S(It[1],10):0,this.Cm=Boolean(/CriOS/i.test(yt)),this.Im=Boolean(self.chrome||/Chrome/i.test(yt)||this.Cm),this.eg=wt?S(wt[1],10):0,this.fg=/SMART-TV.*Tizen/i.test(yt),this._g=Ot?R(Ot[1]):0,this.Z_=this._g>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._g):void 0,this.pg=/webos|web0s/i.test(yt),this.yg=/HbbTV/i.test(yt),this.Sg=!!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.Eg=/AFT.* Build/i.test(yt),this.xg=bt?bt[1]:void 0,this.Rg=/VIZIO/i.test(yt),this.Ng=/Edge\/\d+/i.test(yt),this.Mg=/Trident/i.test(yt),this.Og=this.Mg&&!self.ActiveXObject&&"ActiveXObject"in self,this.Ug=/Vivaldi/i.test(yt),this.Hg=/Firefox/i.test(yt)&&!/Seamonkey/i.test(yt),this.Wg=St?R(St[1]):0,this.Gg=/Safari/i.test(yt)&&!/Chrome/i.test(yt)&&!this.P_&&!this.fg,this.jg=pt?R(pt[2]):0,this.Kg=Boolean(Rt),this.Jg=Rt?R(Rt[1]):0,this.Cg=/Sky_STB/i.test(yt),this.$g=/CrKey/.test(yt),this.nm=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(yt)||this.Cg,this.dm=/PlayStation 4/i.test(yt),this.fm=/PlayStation 5/i.test(yt),this._m="web"===dt.d_,this.pm="web"===dt.c_,this.ym=this.pm||this._m,this.Sm="web"===dt.l_,this.Em="web"===dt.f_,this.Pm="web"===dt.v_}return vt(t,[{key:"tn",get:function(){return this.g_}},{key:"m_",get:function(){return this.p_}},{key:"w_",get:function(){return this.y_}},{key:"b_",get:function(){return this.A_}},{key:"S_",get:function(){return this.T_}},{key:"k_",get:function(){return this.E_}},{key:"x_",get:function(){return this.P_}},{key:"R_",get:function(){return this.I_}},{key:"C_",get:function(){return this.D_}},{key:"N_",get:function(){return this.B_}},{key:"M_",get:function(){return this.L_}},{key:"O_",get:function(){return this.F_}},{key:"U_",get:function(){return this.V_}},{key:"H_",get:function(){return this.q_||this.W_}},{key:"z_",get:function(){return this.G_}},{key:"te",get:function(){return this.X_}},{key:"j_",get:function(){return this.Q_}},{key:"K_",get:function(){return this.Y_}},{key:"J_",get:function(){var t;return null!=(t=this.Z_)?t:this.eg}},{key:"rg",get:function(){return this.og}},{key:"hg",get:function(){var t;return(null==(t=a.chrome)?void 0:t.webview)&&this.ag>0}},{key:"cg",get:function(){return this.ag}},{key:"dg",get:function(){return this.fg}},{key:"vg",get:function(){return this._g}},{key:"gg",get:function(){return this.pg}},{key:"wg",get:function(){return this.yg}},{key:"Ag",get:function(){return this.Sg}},{key:"Tg",get:function(){return this.Eg}},{key:"IS_FIRETV_AFTMM",get:function(){return"AFTMM"===this.xg}},{key:"Pg",get:function(){return this.Rg}},{key:"Ig",get:function(){return this.Cg}},{key:"Dg",get:function(){return this.Ng}},{key:"Bg",get:function(){return this.Mg}},{key:"Lg",get:function(){return this.Og}},{key:"Fg",get:function(){return this.Ug}},{key:"Vg",get:function(){return this.Hg}},{key:"qg",get:function(){return this.Wg}},{key:"zg",get:function(){return this.Gg}},{key:"Xg",get:function(){return 0===this.jg&&Nt.O_?this.V_:this.jg}},{key:"Qg",get:function(){return this.Kg}},{key:"Yg",get:function(){return this.Jg}},{key:"Zg",get:function(){return this.$g}},{key:"im",get:function(){return this.nm}},{key:"hm",get:function(){return!(!this.gg&&!this.dg)&&this.J_<=56}},{key:"um",get:function(){return this.dm}},{key:"lm",get:function(){return this.fm}},{key:"vm",get:function(){return this._m}},{key:"gm",get:function(){return this.pm}},{key:"wm",get:function(){return this.ym}},{key:"Am",get:function(){return this.Sm}},{key:"Tm",get:function(){return this.Em}},{key:"xm",get:function(){return this.Pm}},{key:"Rm",get:function(){return this.Im}},{key:"IS_IOS_CHROME",get:function(){return this.Cm}}]),t}();mt.Dm=new mt;var Nt=mt.Dm,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 Bt(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 Mt(t){return function(){var n=this,r=arguments;return new nt(function(i,e){var u=t.apply(n,r);function o(t){Bt(u,i,e,o,f,"next",t)}function f(t){Bt(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=E.create(("function"==typeof Iterator?Iterator:E).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 g("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])}}}p.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.Um=!1,this.Vm=!1,this.Hm=[],this.qm=[]}var n=t.prototype;return n.Fm=function(){if(!this.Um&&!this.Vm){this.Um=!0;for(var t,n=_t(this.Hm.slice());!(t=n()).done;){(0,t.value)()}this.Ku()}},n.Ku=function(){if(!this.Vm){this.Vm=!0;for(var t,n=_t(this.qm.slice());!(t=n()).done;){(0,t.value)()}xt(this.Hm),xt(this.qm)}},n.Wm=function(t){this.Vm||this.Hm.push(t)},n.zm=function(t){this.Vm||Wt(this.Hm,t)},n.Gm=function(t){this.Vm||this.qm.push(t)},n.Xm=function(t){this.Vm||Wt(this.qm,t)},t}(),jt=function(){function t(){this.Qm=new Gt}var n=t.prototype;return n.dd=function(){this.Qm.Fm()},n.Ku=function(){this.Qm.Ku()},n.Km=function(t){var n=this.Qm;if(!n.Um)if(t.Um)n.Fm();else if(!n.Vm&&!t.Vm){var r=function(){i(),n.Fm()},i=function(){t.zm(r),t.Xm(i),n.zm(r),n.Xm(i)};t.Wm(r),t.Gm(i),n.Wm(r),n.Gm(i)}},n.Ym=function(){var n=new t,r=new t,i=n.jm,e=r.jm,u=this.Qm,o=function(){i.Um&&e.Vm||e.Um&&i.Vm?u.Fm():i.Vm&&e.Vm&&u.Ku()};i.Wm(o),e.Wm(o),i.Gm(o),e.Gm(o),n.Km(u),r.Km(u);return u.Gm(function(){i.zm(o),e.zm(o),i.Xm(o),e.Xm(o)}),[n,r]},n[e]=function(){this.dd()},t.Jm=function(n){for(var r,i=new t,e=_t(n);!(r=e()).done;){var u=r.value;void 0!==u&&i.Km(u)}return i},vt(t,[{key:"jm",get:function(){return this.Qm}}]),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=E.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.$m)}function Jt(t){var n=p.clz32(t&-t);return t?31-n:n}$t.prototype.$m,E.defineProperty($t.prototype,"$m",{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 gn;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=p.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=p.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 gn=en(0,-2147483648,!1);$t.MIN_VALUE=gn;var En=$t.prototype;function pn(){return Date.now()||(new Date).getTime()}En.toInt=function(){return this.unsigned?this.low>>>0:this.low},En.toNumber=function(){return this.unsigned?(this.high>>>0)*sn+(this.low>>>0):this.high*sn+(this.low>>>0)},En.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(gn)){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}},En.getHighBits=function(){return this.high},En.getHighBitsUnsigned=function(){return this.high>>>0},En.getLowBits=function(){return this.low},En.getLowBitsUnsigned=function(){return this.low>>>0},En.getNumBitsAbs=function(){if(this.isNegative())return this.eq(gn)?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},En.isSafeInteger=function(){var t=this.high>>21;return!t||!this.unsigned&&(-1===t&&!(0===this.low&&-2097152===this.high))},En.isZero=function(){return 0===this.high&&0===this.low},En.eqz=En.isZero,En.isNegative=function(){return!this.unsigned&&this.high<0},En.isPositive=function(){return this.unsigned||this.high>=0},En.isOdd=function(){return!(1&~this.low)},En.isEven=function(){return!(1&this.low)},En.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)},En.eq=En.equals,En.notEquals=function(t){return!this.eq(t)},En.neq=En.notEquals,En.ne=En.notEquals,En.lessThan=function(t){return this.comp(t)<0},En.lt=En.lessThan,En.lessThanOrEqual=function(t){return this.comp(t)<=0},En.lte=En.lessThanOrEqual,En.le=En.lessThanOrEqual,En.greaterThan=function(t){return this.comp(t)>0},En.gt=En.greaterThan,En.greaterThanOrEqual=function(t){return this.comp(t)>=0},En.gte=En.greaterThanOrEqual,En.ge=En.greaterThanOrEqual,En.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},En.comp=En.compare,En.negate=function(){return!this.unsigned&&this.eq(gn)?gn:this.not().add(_n)},En.neg=En.negate,En.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)},En.subtract=function(t){return Zt(t)||(t=fn(t)),this.add(t.neg())},En.sub=En.subtract,En.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(gn))return t.isOdd()?gn:vn;if(t.eq(gn))return this.isOdd()?gn: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)},En.mul=En.multiply,En.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(gn))return t.eq(_n)||t.eq(yn)?gn:t.eq(gn)?_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(gn))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=p.max(1,p.floor(r.toNumber()/t.toNumber()));for(var e=p.ceil(p.log(n)/p.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},En.div=En.divide,En.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))},En.mod=En.modulo,En.rem=En.modulo,En.not=function(){return en(~this.low,~this.high,this.unsigned)},En.countLeadingZeros=function(){return this.high?p.clz32(this.high):p.clz32(this.low)+32},En.clz=En.countLeadingZeros,En.countTrailingZeros=function(){return this.low?Jt(this.low):Jt(this.high)+32},En.ctz=En.countTrailingZeros,En.and=function(t){return Zt(t)||(t=fn(t)),en(this.low&t.low,this.high&t.high,this.unsigned)},En.or=function(t){return Zt(t)||(t=fn(t)),en(this.low|t.low,this.high|t.high,this.unsigned)},En.xor=function(t){return Zt(t)||(t=fn(t)),en(this.low^t.low,this.high^t.high,this.unsigned)},En.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)},En.shl=En.shiftLeft,En.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)},En.shr=En.shiftRight,En.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)},En.shru=En.shiftRightUnsigned,En.shr_u=En.shiftRightUnsigned,En.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))},En.rotl=En.rotateLeft,En.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))},En.rotr=En.rotateRight,En.toSigned=function(){return this.unsigned?en(this.low,this.high,!1):this},En.toUnsigned=function(){return this.unsigned?this:en(this.low,this.high,!0)},En.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},En.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]},En.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)},En.toBigInt=function(){var t=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|t});var Sn=1/6,Rn=($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.ep=void 0,this.Rp=!1,this.tn=Rn,this.te=!1,this.Zm=!0}var n=t.prototype;return n.sp=function(){return 0},n.Tp=function(t,n){return!0},n.kp=function(t){return t>=2*Sn},vt(t,[{key:"tp",get:function(){return void 0===this.ep&&(this.ep=this.sp()),this.ep}},{key:"np",get:function(){return Nt.S_?"android":Nt.m_?"macos":Nt.O_?"ios":Nt.w_?"windows":"other"}},{key:"rp",get:function(){return Nt.im?"tv":Nt.te?"mobile":"desktop"}},{key:"op",get:function(){return!Nt.im}},{key:"hp",get:function(){if(a.screen)return{width:a.screen.width*this.ap,height:a.screen.height*this.ap}}},{key:"ap",get:function(){return a.devicePixelRatio||1}},{key:"cp",get:function(){return Tn}},{key:"dp",get:function(){return!1}},{key:"lp",get:function(){return!0}},{key:"fp",get:function(){return!!(Nt.zg||Nt.O_||Nt.hg)||!!Nt.Pg}},{key:"vp",get:function(){return Nt.Pg}},{key:"_p",get:function(){return!Nt.O_}},{key:"gp",get:function(){return!0}},{key:"mp",get:function(){return!0}},{key:"pp",get:function(){return!1}},{key:"wp",get:function(){}},{key:"yp",get:function(){return!0}},{key:"bp",get:function(){return!1}},{key:"Ap",get:function(){return Nt.Pg}},{key:"Sp",get:function(){return!1}},{key:"Ep",get:function(){return!1}},{key:"xp",get:function(){return!1}},{key:"Pp",get:function(){return!0}}]),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.Tp=function(t,n){if(t&&t.Ip&&n&&n.Ip){var r=Nn(t.Ip,"mp4a.40.2")&&Nn(n.Ip,"mp4a.40.5"),i=Nn(t.Ip,"mp4a.40.5")&&Nn(n.Ip,"mp4a.40.2"),e=Nn(t.Ip,"mp4a.40.2")&&Nn(n.Ip,"mp4a.40.34"),u=Nn(t.Ip,"mp4a.40.34")&&Nn(n.Ip,"mp4a.40.2"),o=Nn(t.Ip,"mp4a.40.5")&&Nn(n.Ip,"mp4a.40.34"),f=Nn(t.Ip,"mp4a.40.34")&&Nn(n.Ip,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},vt(n,[{key:"wp",get:function(){if(Nt.m_)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.kp=function(t){return t>=2},n}(bn),Dn=function(t){function n(){var n;return(n=t.call(this)||this).Rp=Nt.Xg>=11,n.Zm=Nt.zg&&!(Nt.O_&&Nt.Xg<10),n}return at(n,t),vt(n,[{key:"Sp",get:function(){return Nt.Xg<17}},{key:"Ep",get:function(){return!0}}]),n}(bn),Pn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"yp",get:function(){return!(Nt.J_>=133)}}]),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.N_)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).Cp=void 0,r.Cp=n,r.Rp=r.Cp.Rp,r.tn=r.Cp.tn,r.Zm=Fn&&r.Cp.Zm,r}at(n,t);var r=n.prototype;return r.sp=function(){return this.Cp.tp},r.Tp=function(t,n){return this.Cp.Tp(t,n)},r.kp=function(t){return this.Cp.kp(t)},vt(n,[{key:"wp",get:function(){return this.Cp.wp}},{key:"yp",get:function(){return this.Cp.yp}},{key:"Sp",get:function(){return this.Cp.Sp}}]),n}(kn),Bn=function(t){function n(n){var r;return(r=t.call(this,n)||this).Rp=!0,r.te=!0,r}return at(n,t),vt(n,[{key:"pp",get:function(){return Nt.O_}}]),n}(Ln);var Mn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),n.prototype.sp=function(){return function(t){return t&&Pt(a.ManagedMediaSource)?a.ManagedMediaSource:Pt(a.MediaSource)?a.MediaSource:void 0}(!0)?t.prototype.sp.call(this):1},vt(n,[{key:"pp",get:function(){return!0}}]),n}(Bn),Un=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).Mp=void 0,n}return at(n,t),n.prototype.Tp=function(n,r){return t.prototype.Tp.call(this,n,r)},vt(n,[{key:"dp",get:function(){return Nt.vg<3}},{key:"lp",get:function(){return Nt.vg>=3}},{key:"hp",get:function(){var t=this;return a.tizen&&!this.Mp&&a.tizen.systeminfo.getPropertyValue("DISPLAY",function(n){var r=n.resolutionWidth,i=n.resolutionHeight;1===r&&1===i||(t.Mp={width:r,height:i})}),this.Mp}},{key:"bp",get:function(){return Nt.vg<3}}]),n}(Ln),Vn=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).Mp=void 0,n}return at(n,t),vt(n,[{key:"hp",get:function(){var t=this;return a.webOS&&!this.Mp&&a.webOS.deviceInfo(function(n){t.Mp={width:n.screenWidth,height:n.screenHeight}}),this.Mp}},{key:"gp",get:function(){return!1}}]),n}(Ln),Hn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"pp",get:function(){return!0}},{key:"Ep",get:function(){return this.Cp.Ep}}]),n}(Ln),Wn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"xp",get:function(){return Nt.IS_FIRETV_AFTMM}}]),n}(Ln);!function(t){An=t}(function(){var t=function(){if(Nt.Vg)return new mn;if(Nt.Dg||Nt.Bg)return new Cn;if(Nt.zg)return new Dn;if(Nt.Rm)return new Pn;return new bn}();return Nt.O_?new Mn(t):Nt.Tg?new Wn(t):Nt.te?new Bn(t):Nt.dg?new Un(t):Nt.gg?new Vn(t):Nt.m_?new Hn(t):new Ln(t)}());var xn=!(Nt.Bg&&!Nt.Lg),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("debug")||zn.bind(void 0,"DEBUG:"),Yn=qn("warn")||zn.bind(void 0,"WARNING:"),$n=qn("error")||zn.bind(void 0,"ERROR:"),Zn=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||$n.apply(void 0,[].concat(["Assertion failed:"],r))}}();function Jn(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),E.defineProperty(t,i.key,i)}}function Qn(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){tr(t,n,e,i);var u=t;t=i,i=u}return t}(t,n);return r!==t&&tr(r,null,t.length,t),t}function tr(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 nr=/[a-zA-Z]/,rr=/[0-9]/,ir=/[0-9a-fA-F]/,er=/^0x/i,ur=/^[0-9]+$/,or=/^[0-9a-fA-F]+$/,fr=/^[0-7]+$/,sr=E.prototype.toString,cr=Array.isArray||function(t){return"[object Array]"===sr.call(t)},ar=void 0!==n&&"symbol"==typeof i;function hr(t){return cr(t)?t:Array.from(t)}function vr(t,n,r){var i=t[n];t[n]=t[r],t[r]=i}function lr(t){return t>=65&&t<=90}function _r(t){return lr(t)||function(t){return t>=97&&t<=122}(t)}function dr(t){return t>=48&&t<=57}function yr(t){return dr(t)||_r(t)}function wr(t){return dr(t)||t>=65&&t<=70||t>=97&&t<=102}function Ir(t){return lr(t)?t+32:t}function gr(t){return dr(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 pr=p.min,Sr=String.fromCharCode;function Rr(t){for(var n=t.length,r=[],i=0;i<n;i+=16384){var e=pr(i+16384,n);r.push(Sr.apply(null,t.slice(i,e)))}return r.join("")}var Or=2147483647,Tr=/[^\0-\x7E]/,kr=/[\x2E\u3002\uFF0E\uFF61]/g,br={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},mr=p.floor,Nr=String.fromCharCode;function Ar(t){throw new RangeError(br[t])}function Cr(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 Dr,Pr,Fr,Lr=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},Br=function(t,n,r){var i=0;for(t=r?mr(t/700):t>>1,t+=mr(t/n);t>455;i+=36)t=mr(t/35);return mr(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(kr,".")).split("."),n).join(".");return i+e}(t,function(t){return Tr.test(t)?"xn--"+function(t){for(var n=[],r=(t=Cr(t)).length,i=128,e=0,u=72,o=0,f=t;o<f.length;o++){var s=f[o];s<128&&n.push(Nr(s))}var c=n.length,a=c;for(c&&n.push("-");a<r;){for(var h=Or,v=0,l=t;v<l.length;v++){var _=l[v];_>=i&&_<h&&(h=_)}var d=a+1;h-i>mr((Or-e)/d)&&Ar("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>Or&&Ar("overflow"),I==i){for(var g=e,E=36;;E+=36){var p=E<=u?1:E>=u+26?26:E-u;if(g<p)break;var S=g-p,R=36-p;n.push(Nr(Lr(p+S%R,0))),g=mr(S/R)}n.push(Nr(Lr(g,0))),u=Br(e,d,a==c),e=0,++a}}++e,++i}return n.join("")}(t):t})};function Ur(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 Rr(n)}function Vr(t){if(t>=55296&&t<=57343)throw new I("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function Hr(t,n){return t>>n&63|128}function Wr(t,n){4294967168&t?(4294965248&t?4294901760&t?4292870144&t||(n.push(t>>18&7|240),n.push(Hr(t,12)),n.push(Hr(t,6))):(Vr(t),n.push(t>>12&15|224),n.push(Hr(t,6))):n.push(t>>6&31|192),n.push(63&t|128)):n.push(t)}function xr(t){for(var n=[],r=0;r<t.length;r++){Wr(t[r],n)}return n}function Gr(){if(Fr>=Pr)throw new I("Invalid byte index");var t=255&Dr[Fr];if(Fr++,128==(192&t))return 63&t;throw new I("Invalid continuation byte")}function jr(){var t,n;if(Fr>Pr)throw new I("Invalid byte index");if(Fr===Pr)return!1;if(t=255&Dr[Fr],Fr++,!(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|Gr())>=128)return n;throw new I("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|Gr()<<6|Gr())>=2048)return Vr(n),n;throw new I("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|Gr()<<12|Gr()<<6|Gr())>=65536&&n<=1114111)return n;throw new I("Invalid UTF-8 detected")}function Kr(t){return[37,Er(t>>4),Er(15&t)]}function qr(t){return function(t){return t>=0&&t<=31}(t)||t>126}function zr(t){return qr(t)||32===t||34===t||60===t||62===t||96===t}function Xr(t){return zr(t)||35===t||63===t||123===t||125===t}function Yr(t){return Xr(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function $r(t){return t<33||t>126||34===t||35===t||60===t||62===t}function Zr(t){return $r(t)||39===t}function Jr(t,n){if(!n(t))return[t];for(var r=xr([t]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,Kr(u))}return i}function Qr(t,n){for(var r=[],i=0,e=Cr(t);i<e.length;i++){var u=e[i];r.push.apply(r,Jr(u,n))}return Ur(r)}function ti(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&&wr(t[i+1])&&wr(t[i+2])){var u=gr(t[i+1])<<4|gr(t[i+2]);n.push(u),i+=2}else n.push(e)}return n}(xr(t))}function ni(t){return Ur(function(t){Dr=t.slice(),Pr=Dr.length,Fr=0;for(var n,r=[];!1!==(n=jr());)r.push(n);return r}(ti(Cr(t))))}function ri(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 g;u+=2,e=i+=1}for(;u<n;){if(8===i)throw new g("Too many groups");if(":"!==t[u]){for(var o=0,f=0;f<4&&u<n&&ir.test(t[u]);)o=o<<4|S(t[u],16),u+=1,f+=1;if("."===t[u]){if(0===f)throw new g;if(u-=f,i>6)throw new g;for(var s=0;u<n;){var c=null;if(s>0){if(!("."===t[u]&&s<4))throw new g;u+=1}if(!rr.test(t[u]))throw new g;for(;u<n&&rr.test(t[u]);){var a=S(t[u],10);if(null===c)c=a;else{if(0===c)throw new g;if((c=10*c+a)>255)throw new g}u+=1}r[i]=r[i]<<8|c,2!==(s+=1)&&4!==s||(i+=1)}if(4!==s)throw new g;break}if(":"===t[u]){if((u+=1)===n)throw new g}else if(u<n)throw new g;r[i]=o,i+=1}else{if(null!==e)throw new g("Too many :: groups");u+=1,e=i+=1}}if(null!==e){var h=i-e;for(i=7;0!==i&&h>0;)vr(r,i,e+h-1),i-=1,h-=1}else if(8!==i)throw new g;return r}function ii(t){var n=10,r=ur;return er.test(t)?(t=t.slice(2),n=16,r=or):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,r=fr),""===t?0:r.test(t)?S(t,n):void 0}var ei={Lp:4},ui=/[\0\t\n\r #%/:?@\[\\\]]/,oi=/[\0\t\n\r #/:?@\[\\\]]/;function fi(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new g("Invalid IPv6 address");return{Lp:2,Op:ri(t.slice(1,-1))}}if(!n)return function(t){if(oi.test(t))throw new g("Invalid code point in opaque host");var n=Qr(t,qr);return""===n?ei:{Lp:3,Fp:n}}(t);var r=function(t){var n=function(t){return Mr(t.toLowerCase())}(t);return n}(ni(t));if(ui.test(r))throw new g("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=ii(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new g;if(r[r.length-1]>=p.pow(256,5-r.length))throw new g;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*p.pow(256,3-s);return f}}(r);return void 0!==i?{Lp:1,Op:i}:""===r?ei:{Lp:0,Up:r}}function si(t){switch(t.Lp){case 0:return t.Up;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.Op);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.Op)+"]";case 3:return t.Fp;case 4:return""}}var ci=/\+/g;function ai(t){return 42===t||45===t||46===t||95===t||yr(t)}function hi(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(ci," "),f=f.replace(ci," ");var s=ni(o),c=ni(f);r.push([s,c])}}return r}function vi(t){for(var n="",r=0;r<t.length;r++){var i=t[r];r>0&&(n+="&"),n+=li(xr(Cr(i[0])))+"="+li(xr(Cr(i[1])))}return n}function li(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];32===i?n.push(43):ai(i)?n.push(i):n.push.apply(n,Kr(i))}return Rr(n)}var _i=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function di(t){var n=""+t,r=_i.exec(n);return r?function(t,n){for(var r=t.length,i=[],e=n;e<r;e++){var u=t.charCodeAt(e);if(wi(u))if(Ii(u)||e===r-1)i.push(yi);else{var o=t.charCodeAt(e+1);Ii(o)?(i.push(u,o),e++):i.push(yi)}else i.push(u)}return t.slice(0,n)+Rr(i)}(n,r.index):n}var yi=65533,wi=function(t){return 55296==(63488&t)},Ii=function(t){return!!(1024&t)};function gi(t,n){var r=t[0],i=n[0];return r===i?0:r<i?-1:1}function Ei(t){t.Vp.length=0}function pi(t,n){!function(t,n){for(var r=0;r<n.length;r++)t[r]=n[r];t.length=n.length}(t.Vp,hi(n))}function Si(t){if(t.Hp){var n=vi(t.Vp);""===n&&(n=null),t.Hp.Hp.qp=n}}var Ri=function(){function t(t){if(void 0===t&&(t=void 0),this.Hp=null,null==t)this.Vp=[];else if("object"==typeof t||"function"==typeof t)if(function(t){return t instanceof Ri&&!!cr(t.Vp)&&(!ar||t[i]===Oi)}(t))this.Vp=t.Vp.slice();else if(function(t){return null!=t&&(!!cr(t)||!!ar&&"function"==typeof t[i])}(t)){this.Vp=[];for(var n=0,r=hr(t);n<r.length;n++){var e=hr(r[n]);if(2!==e.length)throw new g("Invalid name-value pair");this.Vp.push([di(e[0]),di(e[1])])}}else for(var u in this.Vp=[],t)E.prototype.hasOwnProperty.call(t,u)&&this.Vp.push([di(u),di(t[u])]);else(t=di(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Vp=hi(t)}var n=t.prototype;return n.append=function(t,n){t=di(t),n=di(n),this.Vp.push([t,n]),Si(this)},n.delete=function(t){t=di(t);for(var n=this.Vp,r=0;r<n.length;){n[r][0]===t?n.splice(r,1):r++}Si(this)},n.get=function(t){t=di(t);for(var n=this.Vp,r=0;r<n.length;r++){var i=n[r];if(i[0]===t)return i[1]}return null},n.getAll=function(t){t=di(t);for(var n=this.Vp,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=di(t);for(var n=this.Vp,r=0;r<n.length;r++){if(n[r][0]===t)return!0}return!1},n.set=function(t,n){t=di(t),n=di(n);for(var r=this.Vp,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]),Si(this)},n.sort=function(){Qn(this.Vp,gi),Si(this)},n.toString=function(){return vi(this.Vp)},n.entries=function(){return new mi(this.Vp,Ti)},n.keys=function(){return new mi(this.Vp,ki)},n.values=function(){return new mi(this.Vp,bi)},n.forEach=function(t){var n=this;this.Vp.forEach(function(r){return t(r[1],r[0],n)})},t}(),Oi=Ri.prototype.entries;ar&&(Ri.prototype[i]=Oi);var Ti=function(t){return[t[0],t[1]]},ki=function(t){return t[0]},bi=function(t){return t[1]},mi=function(){function t(t,n){this.Wp=0,this.Vp=t,this.zp=n}return t.prototype.next=function(){return this.Wp<this.Vp.length?{done:!1,value:this.zp(this.Vp[this.Wp++])}:{done:!0,value:void 0}},t}(),Ni="null";var Ai=E.create(null);Ai.ftp=21,Ai.file=0,Ai.gopher=70,Ai.http=80,Ai.https=443,Ai.ws=80,Ai.wss=443;var Ci=/^(?:\.|%2e)$/i,Di=/^(?:\.|%2e){2}$/i;function Pi(t){return Ci.test(t)}function Fi(t){return Di.test(t)}function Li(t){return void 0!==Ai[t]}function Bi(t){return Li(t.Gp)}function Mi(t){return""!==t.Xp||""!==t.jp}function Ui(t){var n=t.length;if(!(n>=2))return!1;if(!Hi(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 Vi(t){return 2===t.length&&nr.test(t[0])&&(":"===t[1]||"|"===t[1])}function Hi(t){return 2===t.length&&Vi(Rr(t))}function Wi(t){return Vi(t)&&":"===t[1]}function xi(t){var n=t.Qp;0!==n.length&&("file"===t.Gp&&1===n.length&&Wi(n[0])||n.pop())}function Gi(t){return null===t.Kp||ei===t.Kp||t.Yp||"file"===t.Gp}var ji=-1,Ki=/\t|\n|\r/g,qi=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function zi(t,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new Yi,t=t.replace(qi,""));var e=null!==i?i:0;n=n||null;for(var u=[],o=!1,f=!1,s=!1,c=Cr(t=t.replace(Ki,"")),a=c.length,h=0;h<=a;){var v=h<a?c[h]:ji;switch(e){case 0:if(!_r(v)){if(null===i){u.length=0,e=2;continue}throw new g("Invalid scheme")}u.push(Ir(v)),e=1;break;case 1:if(yr(v)||43===v||45===v||46===v)u.push(Ir(v));else{if(58!==v){if(null===i){u.length=0,e=2,h=0;continue}throw new g("Invalid scheme")}var l=Ur(u);if(null!==i){if(Li(r.Gp)&&!Li(l))return;if(!Li(r.Gp)&&Li(l))return;if((Mi(r)||null!==r.Jp)&&"file"===l)return;if("file"===r.Gp&&(r.Kp===ei||null===r.Kp))return}if(r.Gp=l,null!==i)return void(Bi(r)&&r.Jp===Ai[r.Gp]&&(r.Jp=null));u.length=0,"file"===r.Gp?e=13:Bi(r)&&n&&n.Gp===r.Gp?e=3:Bi(r)?e=7:47===c[h+1]?(e=4,h+=1):(r.Yp=!0,r.Qp.push(""),e=18)}break;case 2:if(!n||n.Yp&&35!==v)throw new g("Invalid scheme");n.Yp&&35===v?(r.Gp=n.Gp,r.Qp=n.Qp.slice(),r.qp=n.qp,r.Zp="",r.Yp=!0,e=20):"file"!==n.Gp?(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.Gp=n.Gp,ji===v?(r.Xp=n.Xp,r.jp=n.jp,r.Kp=n.Kp,r.Jp=n.Jp,r.Qp=n.Qp.slice(),r.qp=n.qp):47===v?e=6:63===v?(r.Xp=n.Xp,r.jp=n.jp,r.Kp=n.Kp,r.Jp=n.Jp,r.Qp=n.Qp.slice(),r.qp="",e=19):35===v?(r.Xp=n.Xp,r.jp=n.jp,r.Kp=n.Kp,r.Jp=n.Jp,r.Qp=n.Qp.slice(),r.qp=n.qp,r.Zp="",e=20):92===v&&Bi(r)?e=6:(r.Xp=n.Xp,r.jp=n.jp,r.Kp=n.Kp,r.Jp=n.Jp,r.Qp=n.Qp.slice(),r.Qp.pop(),e=17,h-=1);break;case 6:!Bi(r)||47!==v&&92!==v?47===v?e=9:(r.Xp=n.Xp,r.jp=n.jp,r.Kp=n.Kp,r.Jp=n.Jp,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=Ur(Jr(d,Yr));s?r.jp+=y:r.Xp+=y}else s=!0}u.length=0}else if(ji===v||47===v||63===v||35===v||Bi(r)&&92===v){if(o&&0===u.length)throw new g("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.Gp)h-=1,e=15;else if(58!==v||f)if(ji===v||47===v||63===v||35===v||Bi(r)&&92===v){if(h-=1,Bi(r)&&0===u.length)throw new g("Invalid host");if(null!==i&&0===u.length&&(Mi(r)||null!==r.Jp))return;var w=fi(Ur(u),Bi(r));if(r.Kp=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 g("Invalid host");var I=fi(Ur(u),Bi(r));if(r.Kp=I,u.length=0,e=12,11===i)return}break;case 12:if(dr(v))u.push(v);else{if(!(ji===v||47===v||63===v||35===v||Bi(r)&&92===v||null!==i))throw new g("Invalid port");if(0!==u.length){var E=S(Ur(u),10);if(E>65535)throw new g("Invalid port");r.Jp=E===Ai[r.Gp]?null:E,u.length=0}if(null!==i)return;e=16,h-=1}break;case 13:r.Gp="file",47===v||92===v?e=14:n&&"file"===n.Gp?ji===v?(r.Kp=n.Kp,r.Qp=n.Qp.slice(),r.qp=n.qp):63===v?(r.Kp=n.Kp,r.Qp=n.Qp.slice(),r.qp="",e=19):35===v?(r.Kp=n.Kp,r.Qp=n.Qp.slice(),r.qp=n.qp,r.Zp="",e=20):(Ui(c.slice(h))||(r.Kp=n.Kp,r.Qp=n.Qp.slice(),xi(r)),e=17,h-=1):(e=17,h-=1);break;case 14:47===v||92===v?e=15:(n&&"file"===n.Gp&&!Ui(c.slice(h))&&(Wi(n.Qp[0])?r.Qp.push(n.Qp[0]):r.Kp=n.Kp),e=17,h-=1);break;case 15:if(ji===v||47===v||92===v||63===v||35===v)if(h-=1,null===i&&Hi(u))e=17;else if(0===u.length){if(r.Kp=ei,null!==i)return;e=16}else{var p=fi(Ur(u),Bi(r));if(0===p.Lp&&"localhost"===p.Up&&(p=ei),r.Kp=p,null!==i)return;u.length=0,e=16}else u.push(v);break;case 16:Bi(r)?(e=17,47!==v&&92!==v&&(h-=1)):null===i&&63===v?(r.qp="",e=19):null===i&&35===v?(r.Zp="",e=20):ji!==v&&(e=17,47!==v&&(h-=1));break;case 17:if(ji===v||47===v||Bi(r)&&92===v||null===i&&(63===v||35===v)){var R=Ur(u);if(Fi(R)?(xi(r),47===v||Bi(r)&&92===v||r.Qp.push("")):!Pi(R)||47===v||Bi(r)&&92===v?Pi(R)||("file"===r.Gp&&0===r.Qp.length&&Hi(u)&&(ei!==r.Kp&&null!==r.Kp&&(r.Kp=ei),u[1]=58,R=Ur(u)),r.Qp.push(R)):r.Qp.push(""),u.length=0,"file"===r.Gp&&(ji===v||63===v||35===v))for(;r.Qp.length>1&&""===r.Qp[0];)r.Qp.shift();63===v?(r.qp="",e=19):35===v&&(r.Zp="",e=20)}else u.push.apply(u,Jr(v,Xr));break;case 18:63===v?(r.qp="",e=19):35===v?(r.Zp="",e=20):ji!==v&&(r.Qp[0]+=Ur(Jr(v,qr)));break;case 19:null===i&&35===v?(r.Zp="",e=20):ji!==v&&(r.qp+=Ur(Jr(v,Bi(r)?Zr:$r)));break;case 20:ji===v||0===v||(r.Zp+=Ur(Jr(v,zr)))}h++}return r}function Xi(t,n,r,i){try{zi(t,n,r,i)}catch(t){}}var Yi=function(){this.Gp="",this.Xp="",this.jp="",this.Kp=null,this.Jp=null,this.Qp=[],this.qp=null,this.Zp=null,this.Yp=!1};function $i(t){switch(t.Gp){case"blob":var n;try{n=zi(t.Qp[0],null)}catch(t){return Ni}return $i(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(t,n,r){return t+"://"+si(n)+(null===r?"":":"+r)}(t.Gp,t.Kp,t.Jp);default:return Ni}}var Zi=function(){function t(t,n){var r,i=null;if(null!=n)if(function(t){return null!=t&&t instanceof Zi&&"object"==typeof t.Hp}(n))i=n.Hp;else try{i=zi(String(n),null)}catch(t){throw new g("Invalid base URL: "+t.message)}try{r=zi(String(t),i)}catch(t){throw new g("Invalid URL: "+t.message)}var e=r.qp;this.Hp=r,this.qp=function(t){var n=new Ri;return null!==t&&pi(n,t),n}(e),this.qp.Hp=this}var n=t.prototype;return n.toString=function(){return this.href},n.toJSON=function(){return this.href},function(t,n,r){n&&Jn(t.prototype,n),r&&Jn(t,r)}(t,[{key:"href",get:function(){return function(t,n){void 0===n&&(n=!1);var r=t.Gp+":";if(null!==t.Kp?(r+="//",Mi(t)&&(r+=t.Xp,""!==t.jp&&(r+=":"+t.jp),r+="@"),r+=si(t.Kp),null!==t.Jp&&(r+=":"+t.Jp)):null===t.Kp&&"file"===t.Gp&&(r+="//"),t.Yp)r+=t.Qp[0];else for(var i=0,e=t.Qp;i<e.length;i++)r+="/"+e[i];return null!==t.qp&&(r+="?"+t.qp),n||null===t.Zp||(r+="#"+t.Zp),r}(this.Hp)},set:function(t){var n;try{n=zi(String(t),null)}catch(t){throw new g("Invalid URL: "+t.message)}this.Hp=n,Ei(this.qp);var r=this.Hp.qp;null!==r&&pi(this.qp,r)}},{key:"origin",get:function(){return $i(this.Hp)}},{key:"protocol",get:function(){return this.Hp.Gp+":"},set:function(t){Xi(t+":",null,this.Hp,0)}},{key:"username",get:function(){return this.Hp.Xp},set:function(t){Gi(this.Hp)||(this.Hp.Xp=Qr(t,Yr))}},{key:"password",get:function(){return this.Hp.jp},set:function(t){Gi(this.Hp)||(this.Hp.jp=Qr(t,Yr))}},{key:"host",get:function(){var t=this.Hp,n=t.Kp;if(null===n)return"";var r=t.Jp,i=si(n);return null!==r&&(i+=":"+r),i},set:function(t){this.Hp.Yp||Xi(t,null,this.Hp,10)}},{key:"hostname",get:function(){var t=this.Hp.Kp;return null===t?"":si(t)},set:function(t){this.Hp.Yp||Xi(t,null,this.Hp,11)}},{key:"port",get:function(){var t=this.Hp.Jp;return null===t?"":""+t},set:function(t){Gi(this.Hp)||(""===t?this.Hp.Jp=null:Xi(t,null,this.Hp,12))}},{key:"pathname",get:function(){var t=this.Hp.Qp;return this.Hp.Yp?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.Hp.Yp||(this.Hp.Qp.length=0,Xi(t,null,this.Hp,16))}},{key:"search",get:function(){var t=this.Hp.qp;return null===t||""===t?"":"?"+t},set:function(t){t=di(t);var n=this.Hp;if(""===t)return n.qp=null,void Ei(this.qp);"?"===t[0]&&(t=t.slice(1)),n.qp="",Xi(t,null,n,19),pi(this.qp,t)}},{key:"searchParams",get:function(){return this.qp}},{key:"hash",get:function(){var t=this.Hp.Zp;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.Hp.Zp="",Xi(t,null,this.Hp,20)):this.Hp.Zp=null}}]),t}();function Ji(t){return t.document&&t.document.baseURI||t.location.href||""}var Qi=function(){function t(){this.Nm=void 0,this.ww=new te,this.Aw=An,this.bw=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.Nm=function(){return self.performance.now()}:this.Nm=pn}var n=t.prototype;return n.$p=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.iw=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.ew=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.nw=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];$n.apply(void 0,[].concat(n))},n.ow=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];Zn.apply(void 0,[].concat([t],r))},n.Mm=function(t,n){return _(t,n)},n.hw=function(t,n){return y(t,n)},n.Bm=function(t){d(t)},n.aw=function(t){w(t)},n.uw=function(){return this.cw.uw()},n.dw=function(){return this.cw.dw()},n.lw=function(){return this.cw.lw()},n.fw=function(){return this.cw.fw()},n._w=function(){return this.cw._w()},n.gw=function(t,n){return this.cw.gw(t,n)},n.mw=function(t){return this.cw.mw(t)},n.Rh=function(t,n){var r;return void 0===n&&(n=Ji(a)),r="object"!==(void 0===n?"undefined":m(n))||b(n,Zi)?n:n.href,new Zi(t,r)},n.yw=function(t,n){if(void 0===n&&(n=Ji(a)),this.bw){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:"pw",get:function(){return this.ww}},{key:"ie",get:function(){return this.Aw}},{key:"Sw",get:function(){return{Tw:l&&l.userAgent.match(/Android /i)?"Android":"other",Ew:Boolean(l&&l.userAgent.match(/Android 8.0.0/i))}}},{key:"xw",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"Pw",get:function(){return"languages"in l?l.languages.slice():[l.language]}}]),t}(),te=function(){function t(){}return vt(t,[{key:"Rw",get:function(){return l.oscpu}},{key:"ie",get:function(){return l.platform}},{key:"Iw",get:function(){return l.vendor}},{key:"Cw",get:function(){return l.vendorSub}}]),t}();var ne=function(){function t(){}var n=t.prototype;return n._w=function(){return nt.resolve(!1)},n.dw=function(){return nt.resolve(!1)},n.fw=function(){return nt.resolve(!1)},n.lw=function(){return nt.resolve(!1)},n.mw=function(t){return nt.resolve(!1)},n.gw=function(t,n){return nt.resolve(!1)},n.uw=function(){return nt.resolve(!1)},t}(),re=function(){function t(){}var n=t.prototype;return n.rk=function(){},n.Db=function(t){},n.Rb=function(t){},n.Ib=function(t,n){},t}(),ie=function(t){return t.ck="arraybuffer",t.dk="json",t.lk="stream",t.fk="text",t}({});var ee=function(){function t(n){var r=this;if(this.Mw=void 0,this.Mw={},n)if(b(n,t))n.asList().forEach(function(t){var n=t[0],i=t[1];r.append(n,i)});else if(function(t){return Dt(t)&&"function"==typeof t.forEach}(n))n.forEach(function(t,n){Array.isArray(t)&&2===t.length?r.append(t[0],t[1]):r.append(n,t)});else if(function(t){return void 0!==i&&Dt(t)&&i in t}(n))for(var e,u=_t(n);!(e=u()).done;){var o=e.value,f=o[0],s=o[1];this.append(f,s)}else E.getOwnPropertyNames(n).forEach(function(t){r.append(t,n[t])});else;}var n=t.prototype;return n.append=function(t,n){var r=t,i=n;r=ue(r),i=oe(i);var e=r.toLowerCase();if(this.Mw.hasOwnProperty(e)){var u=this.Mw[e],o=u[1];u[1]=o?o+", "+i:i}else this.Mw[e]=[r,i]},n.delete=function(t){var n=ue(t).toLowerCase();delete this.Mw[n]},n.get=function(t){var n=ue(t).toLowerCase();return this.Mw.hasOwnProperty(n)?this.Mw[n][1]:null},n.has=function(t){var n=ue(t).toLowerCase();return this.Mw.hasOwnProperty(n)},n.set=function(t,n){var r=t,i=(r=ue(r)).toLowerCase();this.Mw[i]=[r,oe(n)]},n.forEach=function(t,n){for(var r in this.Mw)this.Mw.hasOwnProperty(r)&&t.call(n,this.Mw[r][1],r,this)},n.asList=function(){var t=[];for(var n in this.Mw)if(this.Mw.hasOwnProperty(n)){var r=this.Mw[n],i=r[0],e=r[1];t.push([i,e])}return t},n.vk=function(){var t={};return this.forEach(function(n,r){t[r]=n}),t},n._k=function(t){var n=this;t.forEach(function(t,r){n.append(r,t)})},n.gk=function(t){var n=this;t.forEach(function(t,r){n.set(r,t)})},t}();function ue(t){var n=t;if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new g("Invalid character in header field name");return n}function oe(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}var fe=function(t,n){this.Tk=void 0,this.qk=void 0,this.fE=void 0,this.Vk=void 0,this.vE=void 0,this._E=void 0,this.jm=void 0,this.qw=void 0,this.gE=void 0,this.mE=void 0,this.Xk=void 0,this.pE=void 0,this.wE=void 0,this.yE=void 0,this.bE=void 0,this.AE=void 0;var r,i,e,u,o,f,s,c,a,h,v,l,_,d,y,w,I,g,E=t.Xk;n?(r=n.Tk,i=n.qk,e=n.fE,u=n.Vk,o=n.vE,f=n._E,s=n.jm,c=n.qw,a=n.gE,h=n.mE,v=n.pE,l=n.wE,_=n.yE,d=n.bE,y=n.AE):(r=null,i={},e="GET",u=ie.fk,o=0,f=0,c="",a="",h="",v=!1,_=void 0,d=!1,y=void 0),this.Xk=E,this.Tk=t.Tk||r,this.qk=new ee(t.qk||i),this.fE=t.fE||e,this.Vk=t.Vk||u,this.vE=void 0!==t.vE?Number(t.vE)||0:o,this._E=void 0!==t._E?Number(t._E)||0:f,this.jm=t.jm||s||(new jt).jm,this.qw=t.qw||c,this.gE=t.gE||a,this.mE=t.mE||h,this.pE=void 0!==t.pE?Boolean(t.pE):v,this.wE=t.wE||l,this.yE=null!=(w=t.yE)?w:_,this.bE=null!=(I=t.bE)?I:d,this.AE=null!=(g=t.AE)?g:y},se=function(t){return t.NE="HttpOpenError",t.BE="HttpResponseError",t.LE="HttpTimeoutError",t}({}),ce=function(t){function n(n,r,i){var e;return(e=t.call(this,r,i)||this).OE=void 0,e.OE=n,e}return at(n,t),vt(n,[{key:"Hk",get:function(){return this.OE}}]),n}(qt),ae=function(t){function n(n,r){return t.call(this,n,"Error while opening "+n.Xk+".",r)||this}return at(n,t),vt(n,[{key:"name",get:function(){return se.NE}}]),n}(ce),he=function(){function t(){}var n=t.prototype;return n.Hk=function(t){return nt.reject(new ae(new fe(t)))},n.SE=function(t){},n._n=function(){},t}(),ve=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return at(n,t),n}(qt),le=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).Xx=new ne,n.wq=new he,n.i=new re,n}return at(n,t),n.prototype.bx=function(t){throw new ve},vt(n,[{key:"cw",get:function(){return this.Xx}},{key:"jx",get:function(){return!1}},{key:"Kx",get:function(){return!1}},{key:"$x",get:function(){return!1}},{key:"Jx",get:function(){return!1}},{key:"tP",get:function(){return this.i}},{key:"iP",get:function(){return{eP:Ft}}},{key:"sP",get:function(){return"default"}},{key:"nP",get:function(){return"unknown"}},{key:"rP",get:function(){return!0}},{key:"ff",get:function(){return this.wq}},{key:"hP",get:function(){return!1}}]),n}(Qi);!function(t){0}(new le);var _e=function(t){return t[t.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",t[t.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4",t}({}),de=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}({}),ye=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=p.floor(n/1e3);if(r in t)return r;throw new g("Invalid error code: "+n)}}(ye||(ye={}));var we=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 ye.fromCode(this.code)}}]),n}(qt);var Ie,ge=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=p.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 pe=new Array(128).fill(void 0);function Se(t){return pe[t]}function Re(t){return null==t}pe.push(void 0,null,!0,!1);var Oe=pe.length;function Te(t){var n=Se(t);return function(t){t<132||(pe[t]=Oe,Oe=t)}(t),n}function ke(t){Oe===pe.length&&pe.push(pe.length+1);var n=Oe;return Oe=pe[n],pe[n]=t,n}var be=null;function me(){return(null===be||be.buffer.detached||be.buffer!==Ie.memory.buffer)&&(be=new T(Ie.memory.buffer)),be}function Ne(t,n){return t>>>=0,me().subarray(t/1,t/1+n)}var Ae=void 0!==Ee?new Ee("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:function(){throw I("TextDecoder not available")}};function Ce(t,n){return t>>>=0,Ae.decode(me().subarray(t,t+n))}void 0!==Ee&&Ae.decode();var De=0;function Pe(t,n){var r=n(1*t.length,1)>>>0;return me().set(t,r/1),De=t.length,r}var Fe=null;function Le(){return(null===Fe||Fe.buffer.detached||Fe.buffer!==Ie.memory.buffer)&&(Fe=new DataView(Ie.memory.buffer)),Fe}var Be=void 0!==ge?new ge("utf-8"):{encode:function(){throw I("TextEncoder not available")}},Me="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 Ue(t){try{var n=Ie.__wbindgen_add_to_stack_pointer(-16);Ie.mpegts_to_fmp4(n,ke(t));var r=Le().getInt32(n+0,!0),i=Le().getInt32(n+4,!0);if(Le().getInt32(n+8,!0))throw Te(i);return Te(r)}finally{Ie.__wbindgen_add_to_stack_pointer(16)}}function Ve(t){try{var n=Ie.__wbindgen_add_to_stack_pointer(-16);Ie.raw_audio_to_fmp4(n,ke(t));var r=Le().getInt32(n+0,!0),i=Le().getInt32(n+4,!0);if(Le().getInt32(n+8,!0))throw Te(i);return Te(r)}finally{Ie.__wbindgen_add_to_stack_pointer(16)}}function He(t,n){return Mt(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 We(){var t={wbg:{}};return t.wbg.__wbg_audiopid_cf63a2881fb603de=function(t){var n=Se(t).audio_pid;return Re(n)?16777215:n},t.wbg.__wbg_createoutput_f81a086f372d422e=function(t,n){var r=function(t,n){return{data:t,metadata:n}}(Te(t),Te(n));return ke(r)},t.wbg.__wbg_createoutputdata_f9352c5065ea01aa=function(t,n,r,i,e,u,o,f){var s,c,a,h;0!==t&&(s=Ne(t,n).slice(),Ie.__wbindgen_export_0(t,1*n,1)),0!==r&&(c=Ne(r,i).slice(),Ie.__wbindgen_export_0(r,1*i,1)),0!==e&&(a=Ne(e,u).slice(),Ie.__wbindgen_export_0(e,1*u,1)),0!==o&&(h=Ne(o,f).slice(),Ie.__wbindgen_export_0(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 ke(v)},t.wbg.__wbg_createoutputmetadata_79a74f7d3aafd2c5=function(t,n,r,i,e,u,o,f,s,c,a,h,v,l,_,d){var y,w,I,g;0!==r&&(y=Ce(r,i).slice(),Ie.__wbindgen_export_0(r,1*i,1)),0!==e&&(w=Ce(e,u).slice(),Ie.__wbindgen_export_0(e,1*u,1)),0!==o&&(I=Ne(o,f).slice(),Ie.__wbindgen_export_0(o,1*f,1)),0!==s&&(g=Ne(s,c).slice(),Ie.__wbindgen_export_0(s,1*c,1));var E=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,g,Te(a),Te(h),Te(v),16777215===l?void 0:l,0===_?void 0:d);return ke(E)},t.wbg.__wbg_createtimestampwithbase_9f3b56a7f281a060=function(t,n,r){var i=function(t,n,r){return{low:t,high:n,base:r}}(t>>>0,n>>>0,r>>>0);return ke(i)},t.wbg.__wbg_data_0dfa593a0aa2e64c=function(t,n){var r=Pe(Se(n).data,Ie.__wbindgen_export_1),i=De;Le().setInt32(t+4,i,!0),Le().setInt32(t+0,r,!0)},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,n){var r,i;try{r=t,i=n,console.error(Ce(t,n))}finally{Ie.__wbindgen_export_0(r,i,1)}},t.wbg.__wbg_metadata_262906c02690f219=function(t){var n=Se(t).metadata;return Re(n)?0:ke(n)},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){return ke(new I)},t.wbg.__wbg_ppsnal_24d7d831a1284b13=function(t,n){var r=Se(n).pps_nal,i=Re(r)?0:Pe(r,Ie.__wbindgen_export_1),e=De;Le().setInt32(t+4,e,!0),Le().setInt32(t+0,i,!0)},t.wbg.__wbg_programmaptablepid_2bf8112d9d4d8cb1=function(t){var n=Se(t).program_map_table_pid;return Re(n)?16777215:n},t.wbg.__wbg_spsnal_b5454d39031feeca=function(t,n){var r=Se(n).sps_nal,i=Re(r)?0:Pe(r,Ie.__wbindgen_export_1),e=De;Le().setInt32(t+4,e,!0),Le().setInt32(t+0,i,!0)},t.wbg.__wbg_stack_0ed75d68575b0f3c=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 me().subarray(e,e+i.length).set(i),De=i.length,e}for(var u=t.length,o=n(u,1)>>>0,f=me(),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=me().subarray(o+s,o+u);o=r(o,u,s+=Me(t,a).written,1)>>>0}return De=s,o}(Se(n).stack,Ie.__wbindgen_export_1,Ie.__wbindgen_export_2),i=De;Le().setInt32(t+4,i,!0),Le().setInt32(t+0,r,!0)},t.wbg.__wbg_videopid_60d3be6c566fc051=function(t){var n=Se(t).video_pid;return Re(n)?16777215:n},t.wbg.__wbindgen_object_drop_ref=function(t){Te(t)},t.wbg.__wbindgen_string_new=function(t,n){return ke(Ce(t,n))},t}function xe(t,n){return Ie=t.exports,Ge.__wbindgen_wasm_module=n,Fe=null,be=null,Ie.__wbindgen_start(),Ie}function Ge(t){return Mt(function(){var n,r,i,e;return Ut(this,function(u){switch(u.label){case 0:return void 0!==Ie?[2,Ie]:(void 0!==t&&(E.getPrototypeOf(t)===E.prototype?t=t.module_or_path:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===t&&(t=new URL("theomux_bg.wasm",void 0)),n=We(),("string"==typeof t||"function"==typeof Request&&b(t,Request)||"function"==typeof URL&&b(t,URL))&&(t=fetch(t)),[4,t]);case 1:return[4,He.apply(void 0,[u.sent(),n])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,xe(i,e)]}})})()}function je(t){return Mt(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 g('Failed to fetch "'+t+'", status '+i.status))},i.open("GET",t,!0),i.responseType="arraybuffer",i.send()})}(r.href)),[4,Ge({module_or_path:n})];case 1:return i.sent(),[2,{mpegts_to_fmp4:Ue,raw_audio_to_fmp4:Ve}]}})})()}var Ke=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({TKt:"11.2.0"})},function(t){var n=t,r={success:!1,error:n.message,errorCode:b(n,we)?n.code:de.MEDIA_DECODE_ERROR};self.postMessage(r)});self.addEventListener("message",function(t){var i=t.data.id;(function(t){return Mt(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===_e.MPEGTS_TO_FMP4)o=n.mpegts_to_fmp4(t.input);else{if(t.type!==_e.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,we)?n.code:de.MEDIA_DECODE_ERROR};self.postMessage(r)})})}(function(){return je(Ke)})}("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,g=t.TypeError,E=(t.SyntaxError,t.Object),S=t.Math,p=t.parseInt,R=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 g("Promises must be constructed via new");if("function"!=typeof t)throw new g("not a function");this.Va=0,this.ttn=!1,this.tkt=void 0,this.ntn=[],U(t,this)}function P(t,n){for(;3===t.Va;)t=t.tkt;0!==t.Va?(t.ttn=!0,D.itn(function(){var r=1===t.Va?n.onFulfilled:n.onRejected;if(null!==r){var i;try{i=r(t.tkt)}catch(t){return void L(n.promise,t)}F(n.promise,i)}else(1===t.Va?F:L)(n.promise,t.tkt)})):t.ntn.push(n)}function F(t,n){try{if(n===t)throw new g("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.tkt=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.tkt=n,M(t)}catch(n){L(t,n)}}function L(t,n){t.Va=2,t.tkt=n,M(t)}function M(t){2===t.Va&&0===t.ntn.length&&D.itn(function(){t.ttn||D.rtn(t.tkt)});for(var n=0,r=t.ntn.length;n<r;n++)P(t,t.ntn[n]);t.ntn=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 g("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 g((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 g("Promise.race accepts an array"));for(var i=0,e=t.length;i<e;i++)D.resolve(t[i]).then(n,r)})},D.itn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){N(t,0)},D.rtn=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,K=H.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),j=null!=K,Y=K?Number(K[3]):0,q=function(){function t(t){this.$b=0,this.Tf=0,this.jp=[],this.etn=t}return t.prototype.stn=function(t){var n=this.length();this.utn(n+1);var r=this.Tf+n&this.etn-1;this.jp[r]=t,this.$b=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.etn<n)this.stn(t);else{var r=this.Tf+n-1,i=this.etn-1;this.jp[r&i]=t,this.$b=n}},t.prototype.shift=function(){var t=this.Tf,n=this.jp[t];return this.jp[t]=void 0,this.Tf=t+1&this.etn-1,this.$b--,n},t.prototype.length=function(){return this.$b},t.prototype.utn=function(t){this.etn<t&&this.otn(this.etn<<1)},t.prototype.otn=function(t){var n=this.etn;this.etn=t;var r=this.Tf+this.$b&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.jp,0,n,r)},t}();var z="unhandledrejection",X=self.PromiseRejectionEvent,$=self.CustomEvent;function Z(t){return new X(z,{reason:t,promise:V.reject(t).catch(function(){}),cancelable:!0})}function Q(t){var n=new $(z,{detail:{reason:t},cancelable:!0});return E.defineProperty(n,"reason",{value:t}),n}function J(t){var n=h.createEvent("CustomEvent");return n.initCustomEvent(z,!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 X(z,{reason:n,promise:t});return z===r.type&&n===r.reason}catch(t){}return!1}()?Z:function(){try{var t="error",n=new $(z,{detail:{reason:t}});return z===n.type&&t===n.detail.reason}catch(t){}return!1}()?Q:J,st(t)};function ct(t,n){return ct=E.setPrototypeOf||function(t,n){return t.__proto__=n,t},ct(t,n)}function at(t,n){if("function"!=typeof n&&null!==n)throw new g("Super expression must either be null or a function");t.prototype=E.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),E.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=E.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 g("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||j&&Y<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.itn,rt=ot,it=new q(16),et=!1,(ft={O4:function(t){it.push(t),et||(et=!0,rt(ut))},CQ:ut=function(){for(;it.length()>0;)it.shift()();et=!1}}).CQ,D.itn=ft.O4,D.rtn=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.u_="web",t.c_="android",t.d_="android-tv",t.l_="ios",t.f_="tvos",t.v_="chromecast",t.__="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),gt=yt.match(/Android ([0-9\.]+)/i),Et=yt.match(/Windows NT ([0-9\.]+)/i),St=yt.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),pt=yt.match(/Firefox\/([0-9\.]+)/i),Rt=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.g_=Boolean("ontouchstart"in self||self.DocumentTouch&&b(h,self.DocumentTouch)||l&&l.msMaxTouchPoints),this.p_=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(yt)||/(macintosh|mac(?=_powerpc)\s)/i.test(yt),this.y_=/Windows NT/i.test(yt),this.A_=Et?R(Et[1]):0,this.T_=/Android/i.test(yt),this.E_=gt?R(gt[1]):0,this.P_=/windows phone (8|8\.1)/i.test(yt),this.R_=/iPhone/i.test(yt),this.D_=/iPad/i.test(yt),this.B_=this.p_&&this.g_&&!this.D_,this.L_=/iPod/i.test(yt),this.G_=/Mobile Safari/i.test(yt),this.q_=/EOS\d*STB/i.test(yt),this.W_=/APP\d*STB/i.test(yt),this.F_=(this.R_||this.D_||this.B_||this.L_)&&!this.P_,this.V_=Tt?R(Tt[2]):0,this.X_=this.P_||this.F_||this.T_||this.G_,this.Q_=/CriOS/i.test(yt),this.Y_=Boolean(self.chrome&&/google/i.test(l.vendor))||this.Q_,this.og=this.Y_&&/Edg\//i.test(l.userAgent),this.ag=It?p(It[1],10):0,this.Vm=Boolean(/CriOS/i.test(yt)),this.Um=Boolean(self.chrome||/Chrome/i.test(yt)||this.Vm),this.eg=wt?p(wt[1],10):0,this.fg=/SMART-TV.*Tizen/i.test(yt),this._g=Ot?R(Ot[1]):0,this.Z_=this._g>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._g):void 0,this.pg=/webos|web0s/i.test(yt),this.yg=/HbbTV/i.test(yt),this.Sg=!!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.Eg=/AFT.* Build/i.test(yt),this.Pg=bt?bt[1]:void 0,this.Cg=/VIZIO/i.test(yt),this.Vg=/Edge\/\d+/i.test(yt),this.qg=/Trident/i.test(yt),this.zg=this.qg&&!self.ActiveXObject&&"ActiveXObject"in self,this.Xg=/Vivaldi/i.test(yt),this.Qg=/Firefox/i.test(yt)&&!/Seamonkey/i.test(yt),this.Yg=pt?R(pt[1]):0,this.Zg=/Safari/i.test(yt)&&!/Chrome/i.test(yt)&&!this.P_&&!this.fg,this.im=St?R(St[2]):0,this.hm=Boolean(Rt),this.dm=Rt?R(Rt[1]):0,this.Ng=/Sky_STB/i.test(yt),this.Mg=/Sky_TV/i.test(yt),this.Og=/Sky_OTT/i.test(yt),this.fm=/CrKey/.test(yt),this._m=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(yt)||this.Ng,this.wm=/OculusBrowser|Meta Quest/i.test(yt),this.Am=/PlayStation 4/i.test(yt),this.Tm=/PlayStation 5/i.test(yt),this.xm="web"===dt.d_,this.Im="web"===dt.c_,this.Cm=this.Im||this.xm,this.Nm="web"===dt.l_,this.Mm="web"===dt.f_,this.Om="web"===dt.v_}return vt(t,[{key:"tn",get:function(){return this.g_}},{key:"m_",get:function(){return this.p_}},{key:"w_",get:function(){return this.y_}},{key:"b_",get:function(){return this.A_}},{key:"S_",get:function(){return this.T_}},{key:"k_",get:function(){return this.E_}},{key:"x_",get:function(){return this.P_}},{key:"I_",get:function(){return this.R_}},{key:"C_",get:function(){return this.D_}},{key:"N_",get:function(){return this.B_}},{key:"M_",get:function(){return this.L_}},{key:"O_",get:function(){return this.F_}},{key:"U_",get:function(){return this.V_}},{key:"H_",get:function(){return this.q_||this.W_}},{key:"z_",get:function(){return this.G_}},{key:"te",get:function(){return this.X_}},{key:"j_",get:function(){return this.Q_}},{key:"K_",get:function(){return this.Y_}},{key:"J_",get:function(){var t;return null!=(t=this.Z_)?t:this.eg}},{key:"rg",get:function(){return this.og}},{key:"hg",get:function(){var t;return(null==(t=a.chrome)?void 0:t.webview)&&this.ag>0}},{key:"cg",get:function(){return this.ag}},{key:"dg",get:function(){return this.fg}},{key:"vg",get:function(){return this._g}},{key:"gg",get:function(){return this.pg}},{key:"wg",get:function(){return this.yg}},{key:"Ag",get:function(){return this.Sg}},{key:"Tg",get:function(){return this.Eg}},{key:"xg",get:function(){return"AFTMM"===this.Pg}},{key:"Ig",get:function(){return"AFTM"===this.Pg}},{key:"Rg",get:function(){return this.Cg}},{key:"Dg",get:function(){return this.Ng}},{key:"Bg",get:function(){return this.Mg}},{key:"Lg",get:function(){return this.Og}},{key:"Fg",get:function(){return this.Dg||this.Lg||this.Bg}},{key:"Ug",get:function(){return this.Vg}},{key:"Hg",get:function(){return this.qg}},{key:"Wg",get:function(){return this.zg}},{key:"Gg",get:function(){return this.Xg}},{key:"jg",get:function(){return this.Qg}},{key:"Kg",get:function(){return this.Yg}},{key:"Jg",get:function(){return this.Zg}},{key:"$g",get:function(){return 0===this.im&&Nt.O_?this.V_:this.im}},{key:"nm",get:function(){return this.hm}},{key:"um",get:function(){return this.dm}},{key:"lm",get:function(){return this.fm}},{key:"vm",get:function(){return this._m}},{key:"gm",get:function(){return!(!this.gg&&!this.dg)&&this.J_<=56}},{key:"pm",get:function(){return this.wm}},{key:"ym",get:function(){return this.Am}},{key:"Sm",get:function(){return this.Tm}},{key:"Em",get:function(){return this.xm}},{key:"Pm",get:function(){return this.Im}},{key:"Rm",get:function(){return this.Cm}},{key:"Dm",get:function(){return this.Nm}},{key:"Bm",get:function(){return this.Mm}},{key:"Lm",get:function(){return this.Om}},{key:"Fm",get:function(){return this.Um}},{key:"IS_IOS_CHROME",get:function(){return this.Vm}}]),t}();mt.Hm=new mt;var Nt=mt.Hm,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=E.create(("function"==typeof Iterator?Iterator:E).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 g("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])}}}S.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.Qm=!1,this.Km=!1,this.Ym=[],this.Jm=[]}var n=t.prototype;return n.jm=function(){if(!this.Qm&&!this.Km){this.Qm=!0;for(var t,n=_t(this.Ym.slice());!(t=n()).done;){(0,t.value)()}this.Ku()}},n.Ku=function(){if(!this.Km){this.Km=!0;for(var t,n=_t(this.Jm.slice());!(t=n()).done;){(0,t.value)()}xt(this.Ym),xt(this.Jm)}},n.Zm=function(t){this.Km||this.Ym.push(t)},n.$m=function(t){this.Km||Wt(this.Ym,t)},n.tp=function(t){this.Km||this.Jm.push(t)},n.ep=function(t){this.Km||Wt(this.Jm,t)},t}(),Kt=function(){function t(){this.np=new Gt}var n=t.prototype;return n.dd=function(){this.np.jm()},n.Ku=function(){this.np.Ku()},n.rp=function(t){var n=this.np;if(!n.Qm)if(t.Qm)n.jm();else if(!n.Km&&!t.Km){var r=function(){i(),n.jm()},i=function(){t.$m(r),t.ep(i),n.$m(r),n.ep(i)};t.Zm(r),t.tp(i),n.Zm(r),n.tp(i)}},n.op=function(){var n=new t,r=new t,i=n.sp,e=r.sp,u=this.np,o=function(){i.Qm&&e.Km||e.Qm&&i.Km?u.jm():i.Km&&e.Km&&u.Ku()};i.Zm(o),e.Zm(o),i.tp(o),e.tp(o),n.rp(u),r.rp(u);return u.tp(function(){i.$m(o),e.$m(o),i.ep(o),e.ep(o)}),[n,r]},n[e]=function(){this.dd()},t.hp=function(n){for(var r,i=new t,e=_t(n);!(r=e()).done;){var u=r.value;void 0!==u&&i.rp(u)}return i},vt(t,[{key:"sp",get:function(){return this.np}}]),t}(),jt=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];I.apply(this,n)};(jt.prototype=E.create(I.prototype)).constructor=jt;var Yt=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}(jt);nt.resolve();function qt(){return void 0!==h?h.createElement("video"):void 0}var zt=Lt(qt),Xt=(Lt(function(){return"undefined"!=typeof HTMLVideoElement&&b(zt(),HTMLVideoElement)}),null);try{Xt=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.cp)}function Qt(t){var n=S.clz32(t&-t);return t?31-n:n}$t.prototype.cp,E.defineProperty($t.prototype,"cp",{value:!0}),$t.isLong=Zt;var Jt={},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=Jt[t])?i:(r=en(t,t<0?-1:0,!1),e&&(Jt[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 gn;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=S.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=S.min(8,t.length-o),s=p(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 gn=en(0,-2147483648,!1);$t.MIN_VALUE=gn;var En=$t.prototype;function Sn(){return Date.now()||(new Date).getTime()}En.toInt=function(){return this.unsigned?this.low>>>0:this.low},En.toNumber=function(){return this.unsigned?(this.high>>>0)*sn+(this.low>>>0):this.high*sn+(this.low>>>0)},En.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(gn)){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}},En.getHighBits=function(){return this.high},En.getHighBitsUnsigned=function(){return this.high>>>0},En.getLowBits=function(){return this.low},En.getLowBitsUnsigned=function(){return this.low>>>0},En.getNumBitsAbs=function(){if(this.isNegative())return this.eq(gn)?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},En.isSafeInteger=function(){var t=this.high>>21;return!t||!this.unsigned&&(-1===t&&!(0===this.low&&-2097152===this.high))},En.isZero=function(){return 0===this.high&&0===this.low},En.eqz=En.isZero,En.isNegative=function(){return!this.unsigned&&this.high<0},En.isPositive=function(){return this.unsigned||this.high>=0},En.isOdd=function(){return!(1&~this.low)},En.isEven=function(){return!(1&this.low)},En.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)},En.eq=En.equals,En.notEquals=function(t){return!this.eq(t)},En.neq=En.notEquals,En.ne=En.notEquals,En.lessThan=function(t){return this.comp(t)<0},En.lt=En.lessThan,En.lessThanOrEqual=function(t){return this.comp(t)<=0},En.lte=En.lessThanOrEqual,En.le=En.lessThanOrEqual,En.greaterThan=function(t){return this.comp(t)>0},En.gt=En.greaterThan,En.greaterThanOrEqual=function(t){return this.comp(t)>=0},En.gte=En.greaterThanOrEqual,En.ge=En.greaterThanOrEqual,En.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},En.comp=En.compare,En.negate=function(){return!this.unsigned&&this.eq(gn)?gn:this.not().add(_n)},En.neg=En.negate,En.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)},En.subtract=function(t){return Zt(t)||(t=fn(t)),this.add(t.neg())},En.sub=En.subtract,En.multiply=function(t){if(this.isZero())return this;if(Zt(t)||(t=fn(t)),Xt)return en(Xt.mul(this.low,this.high,t.low,t.high),Xt.get_high(),this.unsigned);if(t.isZero())return this.unsigned?ln:vn;if(this.eq(gn))return t.isOdd()?gn:vn;if(t.eq(gn))return this.isOdd()?gn: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)},En.mul=En.multiply,En.divide=function(t){if(Zt(t)||(t=fn(t)),t.isZero())throw I("division by zero");var n,r,i;if(Xt)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?en((this.unsigned?Xt.div_u:Xt.div_s)(this.low,this.high,t.low,t.high),Xt.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(gn))return t.eq(_n)||t.eq(yn)?gn:t.eq(gn)?_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(gn))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=S.max(1,S.floor(r.toNumber()/t.toNumber()));for(var e=S.ceil(S.log(n)/S.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},En.div=En.divide,En.modulo=function(t){return Zt(t)||(t=fn(t)),Xt?en((this.unsigned?Xt.rem_u:Xt.rem_s)(this.low,this.high,t.low,t.high),Xt.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},En.mod=En.modulo,En.rem=En.modulo,En.not=function(){return en(~this.low,~this.high,this.unsigned)},En.countLeadingZeros=function(){return this.high?S.clz32(this.high):S.clz32(this.low)+32},En.clz=En.countLeadingZeros,En.countTrailingZeros=function(){return this.low?Qt(this.low):Qt(this.high)+32},En.ctz=En.countTrailingZeros,En.and=function(t){return Zt(t)||(t=fn(t)),en(this.low&t.low,this.high&t.high,this.unsigned)},En.or=function(t){return Zt(t)||(t=fn(t)),en(this.low|t.low,this.high|t.high,this.unsigned)},En.xor=function(t){return Zt(t)||(t=fn(t)),en(this.low^t.low,this.high^t.high,this.unsigned)},En.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)},En.shl=En.shiftLeft,En.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)},En.shr=En.shiftRight,En.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)},En.shru=En.shiftRightUnsigned,En.shr_u=En.shiftRightUnsigned,En.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))},En.rotl=En.rotateLeft,En.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))},En.rotr=En.rotateRight,En.toSigned=function(){return this.unsigned?en(this.low,this.high,!1):this},En.toUnsigned=function(){return this.unsigned?this:en(this.low,this.high,!0)},En.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},En.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]},En.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)},En.toBigInt=function(){var t=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|t});var pn=1/6,Rn=($t.fromNumber(9007199254740991),Boolean("ontouchstart"in self||self.DocumentTouch&&b(h,self.DocumentTouch))||Boolean(l&&l.msMaxTouchPoints)),On=zt(),Tn=Boolean(On&&On.webkitShowPlaybackTargetPicker),kn=function(){function t(){this.lp=void 0,this.Fp=!1,this.tn=Rn,this.te=!1,this.ap=!0}var n=t.prototype;return n.fp=function(){return 0},n.Np=function(t,n){return!0},n.Bp=function(t){return t>=2*pn},vt(t,[{key:"dp",get:function(){return void 0===this.lp&&(this.lp=this.fp()),this.lp}},{key:"vp",get:function(){return Nt.S_?"android":Nt.m_?"macos":Nt.O_?"ios":Nt.w_?"windows":"other"}},{key:"_p",get:function(){return Nt.vm?"tv":Nt.te?"mobile":"desktop"}},{key:"gp",get:function(){return!Nt.vm}},{key:"mp",get:function(){if(a.screen)return{width:a.screen.width*this.pp,height:a.screen.height*this.pp}}},{key:"pp",get:function(){return a.devicePixelRatio||1}},{key:"wp",get:function(){return Tn}},{key:"yp",get:function(){return!1}},{key:"bp",get:function(){return!0}},{key:"Ap",get:function(){return!!(Nt.Jg||Nt.O_||Nt.hg)||!!Nt.Rg}},{key:"Sp",get:function(){return Nt.Rg}},{key:"Tp",get:function(){return!Nt.O_}},{key:"kp",get:function(){return!0}},{key:"Ep",get:function(){return!0}},{key:"xp",get:function(){return!1}},{key:"Pp",get:function(){}},{key:"Ip",get:function(){return!0}},{key:"Rp",get:function(){return!1}},{key:"Cp",get:function(){return Nt.Rg}},{key:"Dp",get:function(){return!1}},{key:"Mp",get:function(){return!1}},{key:"Lp",get:function(){return!1}},{key:"Op",get:function(){return!0}}]),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.Np=function(t,n){if(t&&t.Up&&n&&n.Up){var r=Nn(t.Up,"mp4a.40.2")&&Nn(n.Up,"mp4a.40.5"),i=Nn(t.Up,"mp4a.40.5")&&Nn(n.Up,"mp4a.40.2"),e=Nn(t.Up,"mp4a.40.2")&&Nn(n.Up,"mp4a.40.34"),u=Nn(t.Up,"mp4a.40.34")&&Nn(n.Up,"mp4a.40.2"),o=Nn(t.Up,"mp4a.40.5")&&Nn(n.Up,"mp4a.40.34"),f=Nn(t.Up,"mp4a.40.34")&&Nn(n.Up,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},vt(n,[{key:"Pp",get:function(){if(Nt.m_)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.Bp=function(t){return t>=2},n}(bn),Dn=function(t){function n(){var n;return(n=t.call(this)||this).Fp=Nt.$g>=11,n.ap=Nt.Jg&&!(Nt.O_&&Nt.$g<10),n}return at(n,t),vt(n,[{key:"Dp",get:function(){return Nt.$g<17}},{key:"Mp",get:function(){return!0}}]),n}(bn),Pn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"Ip",get:function(){return!(Nt.J_>=133)}}]),n}(bn);var Fn=function(){var t=qt();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(Nt.N_)return!1;var t=qt();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).Vp=void 0,r.Vp=n,r.Fp=r.Vp.Fp,r.tn=r.Vp.tn,r.ap=Fn&&r.Vp.ap,r}at(n,t);var r=n.prototype;return r.fp=function(){return this.Vp.dp},r.Np=function(t,n){return this.Vp.Np(t,n)},r.Bp=function(t){return this.Vp.Bp(t)},vt(n,[{key:"Pp",get:function(){return this.Vp.Pp}},{key:"Ip",get:function(){return this.Vp.Ip}},{key:"Dp",get:function(){return this.Vp.Dp}}]),n}(kn),Mn=function(t){function n(n){var r;return(r=t.call(this,n)||this).Fp=!0,r.te=!0,r}return at(n,t),vt(n,[{key:"xp",get:function(){return Nt.O_}}]),n}(Ln);var Bn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),n.prototype.fp=function(){return function(t){return t&&Pt(a.ManagedMediaSource)?a.ManagedMediaSource:Pt(a.MediaSource)?a.MediaSource:void 0}(!0)?t.prototype.fp.call(this):1},vt(n,[{key:"xp",get:function(){return!0}}]),n}(Mn),Un=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).zp=void 0,n}return at(n,t),n.prototype.Np=function(n,r){return t.prototype.Np.call(this,n,r)},vt(n,[{key:"yp",get:function(){return Nt.vg<3}},{key:"bp",get:function(){return Nt.vg>=3}},{key:"mp",get:function(){var t=this;return a.tizen&&!this.zp&&a.tizen.systeminfo.getPropertyValue("DISPLAY",function(n){var r=n.resolutionWidth,i=n.resolutionHeight;1===r&&1===i||(t.zp={width:r,height:i})}),this.zp}},{key:"Rp",get:function(){return Nt.vg<3}}]),n}(Ln),Vn=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).zp=void 0,n}return at(n,t),vt(n,[{key:"mp",get:function(){var t=this;return a.webOS&&!this.zp&&a.webOS.deviceInfo(function(n){t.zp={width:n.screenWidth,height:n.screenHeight}}),this.zp}},{key:"kp",get:function(){return!1}}]),n}(Ln),Hn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"xp",get:function(){return!0}},{key:"Mp",get:function(){return this.Vp.Mp}}]),n}(Ln),Wn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"Lp",get:function(){return Nt.xg}}]),n}(Ln);!function(t){An=t}(function(){var t=function(){if(Nt.jg)return new mn;if(Nt.Ug||Nt.Hg)return new Cn;if(Nt.Jg)return new Dn;if(Nt.Fm)return new Pn;return new bn}();return Nt.O_?new Bn(t):Nt.Tg?new Wn(t):Nt.te?new Mn(t):Nt.dg?new Un(t):Nt.gg?new Vn(t):Nt.m_?new Hn(t):new Ln(t)}());var xn=!(Nt.Hg&&!Nt.Wg),Gn=self.console;function Kn(t){if(Dt(t))try{return JSON.stringify(t)}catch(t){}return t}function jn(t){return t.map(Kn).join(" ")}function Yn(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](jn(r))}:void 0}var qn=Yn("log")||Ft,zn=Yn("debug")||qn.bind(void 0,"DEBUG:"),Xn=Yn("warn")||qn.bind(void 0,"WARNING:"),$n=Yn("error")||qn.bind(void 0,"ERROR:"),Zn=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,jn(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||$n.apply(void 0,[].concat(["Assertion failed:"],r))}}();function Qn(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),E.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){tr(t,n,e,i);var u=t;t=i,i=u}return t}(t,n);return r!==t&&tr(r,null,t.length,t),t}function tr(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 nr=/[a-zA-Z]/,rr=/[0-9]/,ir=/[0-9a-fA-F]/,er=/^0x/i,ur=/^[0-9]+$/,or=/^[0-9a-fA-F]+$/,fr=/^[0-7]+$/,sr=E.prototype.toString,cr=Array.isArray||function(t){return"[object Array]"===sr.call(t)},ar=void 0!==n&&"symbol"==typeof i;function hr(t){return cr(t)?t:Array.from(t)}function vr(t,n,r){var i=t[n];t[n]=t[r],t[r]=i}function lr(t){return t>=65&&t<=90}function _r(t){return lr(t)||function(t){return t>=97&&t<=122}(t)}function dr(t){return t>=48&&t<=57}function yr(t){return dr(t)||_r(t)}function wr(t){return dr(t)||t>=65&&t<=70||t>=97&&t<=102}function Ir(t){return lr(t)?t+32:t}function gr(t){return dr(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 Sr=S.min,pr=String.fromCharCode;function Rr(t){for(var n=t.length,r=[],i=0;i<n;i+=16384){var e=Sr(i+16384,n);r.push(pr.apply(null,t.slice(i,e)))}return r.join("")}var Or=2147483647,Tr=/[^\0-\x7E]/,kr=/[\x2E\u3002\uFF0E\uFF61]/g,br={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},mr=S.floor,Nr=String.fromCharCode;function Ar(t){throw new RangeError(br[t])}function Cr(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 Dr,Pr,Fr,Lr=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},Mr=function(t,n,r){var i=0;for(t=r?mr(t/700):t>>1,t+=mr(t/n);t>455;i+=36)t=mr(t/35);return mr(i+36*t/(t+38))},Br=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(kr,".")).split("."),n).join(".");return i+e}(t,function(t){return Tr.test(t)?"xn--"+function(t){for(var n=[],r=(t=Cr(t)).length,i=128,e=0,u=72,o=0,f=t;o<f.length;o++){var s=f[o];s<128&&n.push(Nr(s))}var c=n.length,a=c;for(c&&n.push("-");a<r;){for(var h=Or,v=0,l=t;v<l.length;v++){var _=l[v];_>=i&&_<h&&(h=_)}var d=a+1;h-i>mr((Or-e)/d)&&Ar("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>Or&&Ar("overflow"),I==i){for(var g=e,E=36;;E+=36){var S=E<=u?1:E>=u+26?26:E-u;if(g<S)break;var p=g-S,R=36-S;n.push(Nr(Lr(S+p%R,0))),g=mr(p/R)}n.push(Nr(Lr(g,0))),u=Mr(e,d,a==c),e=0,++a}}++e,++i}return n.join("")}(t):t})};function Ur(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 Rr(n)}function Vr(t){if(t>=55296&&t<=57343)throw new I("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function Hr(t,n){return t>>n&63|128}function Wr(t,n){4294967168&t?(4294965248&t?4294901760&t?4292870144&t||(n.push(t>>18&7|240),n.push(Hr(t,12)),n.push(Hr(t,6))):(Vr(t),n.push(t>>12&15|224),n.push(Hr(t,6))):n.push(t>>6&31|192),n.push(63&t|128)):n.push(t)}function xr(t){for(var n=[],r=0;r<t.length;r++){Wr(t[r],n)}return n}function Gr(){if(Fr>=Pr)throw new I("Invalid byte index");var t=255&Dr[Fr];if(Fr++,128==(192&t))return 63&t;throw new I("Invalid continuation byte")}function Kr(){var t,n;if(Fr>Pr)throw new I("Invalid byte index");if(Fr===Pr)return!1;if(t=255&Dr[Fr],Fr++,!(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|Gr())>=128)return n;throw new I("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|Gr()<<6|Gr())>=2048)return Vr(n),n;throw new I("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|Gr()<<12|Gr()<<6|Gr())>=65536&&n<=1114111)return n;throw new I("Invalid UTF-8 detected")}function jr(t){return[37,Er(t>>4),Er(15&t)]}function Yr(t){return function(t){return t>=0&&t<=31}(t)||t>126}function qr(t){return Yr(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 $r(t){return t<33||t>126||34===t||35===t||60===t||62===t}function Zr(t){return $r(t)||39===t}function Qr(t,n){if(!n(t))return[t];for(var r=xr([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=Cr(t);i<e.length;i++){var u=e[i];r.push.apply(r,Qr(u,n))}return Ur(r)}function ti(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&&wr(t[i+1])&&wr(t[i+2])){var u=gr(t[i+1])<<4|gr(t[i+2]);n.push(u),i+=2}else n.push(e)}return n}(xr(t))}function ni(t){return Ur(function(t){Dr=t.slice(),Pr=Dr.length,Fr=0;for(var n,r=[];!1!==(n=Kr());)r.push(n);return r}(ti(Cr(t))))}function ri(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 g;u+=2,e=i+=1}for(;u<n;){if(8===i)throw new g("Too many groups");if(":"!==t[u]){for(var o=0,f=0;f<4&&u<n&&ir.test(t[u]);)o=o<<4|p(t[u],16),u+=1,f+=1;if("."===t[u]){if(0===f)throw new g;if(u-=f,i>6)throw new g;for(var s=0;u<n;){var c=null;if(s>0){if(!("."===t[u]&&s<4))throw new g;u+=1}if(!rr.test(t[u]))throw new g;for(;u<n&&rr.test(t[u]);){var a=p(t[u],10);if(null===c)c=a;else{if(0===c)throw new g;if((c=10*c+a)>255)throw new g}u+=1}r[i]=r[i]<<8|c,2!==(s+=1)&&4!==s||(i+=1)}if(4!==s)throw new g;break}if(":"===t[u]){if((u+=1)===n)throw new g}else if(u<n)throw new g;r[i]=o,i+=1}else{if(null!==e)throw new g("Too many :: groups");u+=1,e=i+=1}}if(null!==e){var h=i-e;for(i=7;0!==i&&h>0;)vr(r,i,e+h-1),i-=1,h-=1}else if(8!==i)throw new g;return r}function ii(t){var n=10,r=ur;return er.test(t)?(t=t.slice(2),n=16,r=or):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,r=fr),""===t?0:r.test(t)?p(t,n):void 0}var ei={Gp:4},ui=/[\0\t\n\r #%/:?@\[\\\]]/,oi=/[\0\t\n\r #/:?@\[\\\]]/;function fi(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new g("Invalid IPv6 address");return{Gp:2,Xp:ri(t.slice(1,-1))}}if(!n)return function(t){if(oi.test(t))throw new g("Invalid code point in opaque host");var n=Jr(t,Yr);return""===n?ei:{Gp:3,jp:n}}(t);var r=function(t){var n=function(t){return Br(t.toLowerCase())}(t);return n}(ni(t));if(ui.test(r))throw new g("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=ii(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new g;if(r[r.length-1]>=S.pow(256,5-r.length))throw new g;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*S.pow(256,3-s);return f}}(r);return void 0!==i?{Gp:1,Xp:i}:""===r?ei:{Gp:0,Qp:r}}function si(t){switch(t.Gp){case 0:return t.Qp;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.Xp);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.Xp)+"]";case 3:return t.jp;case 4:return""}}var ci=/\+/g;function ai(t){return 42===t||45===t||46===t||95===t||yr(t)}function hi(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(ci," "),f=f.replace(ci," ");var s=ni(o),c=ni(f);r.push([s,c])}}return r}function vi(t){for(var n="",r=0;r<t.length;r++){var i=t[r];r>0&&(n+="&"),n+=li(xr(Cr(i[0])))+"="+li(xr(Cr(i[1])))}return n}function li(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];32===i?n.push(43):ai(i)?n.push(i):n.push.apply(n,jr(i))}return Rr(n)}var _i=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function di(t){var n=""+t,r=_i.exec(n);return r?function(t,n){for(var r=t.length,i=[],e=n;e<r;e++){var u=t.charCodeAt(e);if(wi(u))if(Ii(u)||e===r-1)i.push(yi);else{var o=t.charCodeAt(e+1);Ii(o)?(i.push(u,o),e++):i.push(yi)}else i.push(u)}return t.slice(0,n)+Rr(i)}(n,r.index):n}var yi=65533,wi=function(t){return 55296==(63488&t)},Ii=function(t){return!!(1024&t)};function gi(t,n){var r=t[0],i=n[0];return r===i?0:r<i?-1:1}function Ei(t){t.Kp.length=0}function Si(t,n){!function(t,n){for(var r=0;r<n.length;r++)t[r]=n[r];t.length=n.length}(t.Kp,hi(n))}function pi(t){if(t.Yp){var n=vi(t.Kp);""===n&&(n=null),t.Yp.Yp.Jp=n}}var Ri=function(){function t(t){if(void 0===t&&(t=void 0),this.Yp=null,null==t)this.Kp=[];else if("object"==typeof t||"function"==typeof t)if(function(t){return t instanceof Ri&&!!cr(t.Kp)&&(!ar||t[i]===Oi)}(t))this.Kp=t.Kp.slice();else if(function(t){return null!=t&&(!!cr(t)||!!ar&&"function"==typeof t[i])}(t)){this.Kp=[];for(var n=0,r=hr(t);n<r.length;n++){var e=hr(r[n]);if(2!==e.length)throw new g("Invalid name-value pair");this.Kp.push([di(e[0]),di(e[1])])}}else for(var u in this.Kp=[],t)E.prototype.hasOwnProperty.call(t,u)&&this.Kp.push([di(u),di(t[u])]);else(t=di(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Kp=hi(t)}var n=t.prototype;return n.append=function(t,n){t=di(t),n=di(n),this.Kp.push([t,n]),pi(this)},n.delete=function(t){t=di(t);for(var n=this.Kp,r=0;r<n.length;){n[r][0]===t?n.splice(r,1):r++}pi(this)},n.get=function(t){t=di(t);for(var n=this.Kp,r=0;r<n.length;r++){var i=n[r];if(i[0]===t)return i[1]}return null},n.getAll=function(t){t=di(t);for(var n=this.Kp,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=di(t);for(var n=this.Kp,r=0;r<n.length;r++){if(n[r][0]===t)return!0}return!1},n.set=function(t,n){t=di(t),n=di(n);for(var r=this.Kp,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]),pi(this)},n.sort=function(){Jn(this.Kp,gi),pi(this)},n.toString=function(){return vi(this.Kp)},n.entries=function(){return new mi(this.Kp,Ti)},n.keys=function(){return new mi(this.Kp,ki)},n.values=function(){return new mi(this.Kp,bi)},n.forEach=function(t){var n=this;this.Kp.forEach(function(r){return t(r[1],r[0],n)})},t}(),Oi=Ri.prototype.entries;ar&&(Ri.prototype[i]=Oi);var Ti=function(t){return[t[0],t[1]]},ki=function(t){return t[0]},bi=function(t){return t[1]},mi=function(){function t(t,n){this.Zp=0,this.Kp=t,this.$p=n}return t.prototype.next=function(){return this.Zp<this.Kp.length?{done:!1,value:this.$p(this.Kp[this.Zp++])}:{done:!0,value:void 0}},t}(),Ni="null";var Ai=E.create(null);Ai.ftp=21,Ai.file=0,Ai.gopher=70,Ai.http=80,Ai.https=443,Ai.ws=80,Ai.wss=443;var Ci=/^(?:\.|%2e)$/i,Di=/^(?:\.|%2e){2}$/i;function Pi(t){return Ci.test(t)}function Fi(t){return Di.test(t)}function Li(t){return void 0!==Ai[t]}function Mi(t){return Li(t.iw)}function Bi(t){return""!==t.ew||""!==t.nw}function Ui(t){var n=t.length;if(!(n>=2))return!1;if(!Hi(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 Vi(t){return 2===t.length&&nr.test(t[0])&&(":"===t[1]||"|"===t[1])}function Hi(t){return 2===t.length&&Vi(Rr(t))}function Wi(t){return Vi(t)&&":"===t[1]}function xi(t){var n=t.ow;0!==n.length&&("file"===t.iw&&1===n.length&&Wi(n[0])||n.pop())}function Gi(t){return null===t.hw||ei===t.hw||t.aw||"file"===t.iw}var Ki=-1,ji=/\t|\n|\r/g,Yi=/^[\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(Yi,""));var e=null!==i?i:0;n=n||null;for(var u=[],o=!1,f=!1,s=!1,c=Cr(t=t.replace(ji,"")),a=c.length,h=0;h<=a;){var v=h<a?c[h]:Ki;switch(e){case 0:if(!_r(v)){if(null===i){u.length=0,e=2;continue}throw new g("Invalid scheme")}u.push(Ir(v)),e=1;break;case 1:if(yr(v)||43===v||45===v||46===v)u.push(Ir(v));else{if(58!==v){if(null===i){u.length=0,e=2,h=0;continue}throw new g("Invalid scheme")}var l=Ur(u);if(null!==i){if(Li(r.iw)&&!Li(l))return;if(!Li(r.iw)&&Li(l))return;if((Bi(r)||null!==r.uw)&&"file"===l)return;if("file"===r.iw&&(r.hw===ei||null===r.hw))return}if(r.iw=l,null!==i)return void(Mi(r)&&r.uw===Ai[r.iw]&&(r.uw=null));u.length=0,"file"===r.iw?e=13:Mi(r)&&n&&n.iw===r.iw?e=3:Mi(r)?e=7:47===c[h+1]?(e=4,h+=1):(r.aw=!0,r.ow.push(""),e=18)}break;case 2:if(!n||n.aw&&35!==v)throw new g("Invalid scheme");n.aw&&35===v?(r.iw=n.iw,r.ow=n.ow.slice(),r.Jp=n.Jp,r.cw="",r.aw=!0,e=20):"file"!==n.iw?(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.iw=n.iw,Ki===v?(r.ew=n.ew,r.nw=n.nw,r.hw=n.hw,r.uw=n.uw,r.ow=n.ow.slice(),r.Jp=n.Jp):47===v?e=6:63===v?(r.ew=n.ew,r.nw=n.nw,r.hw=n.hw,r.uw=n.uw,r.ow=n.ow.slice(),r.Jp="",e=19):35===v?(r.ew=n.ew,r.nw=n.nw,r.hw=n.hw,r.uw=n.uw,r.ow=n.ow.slice(),r.Jp=n.Jp,r.cw="",e=20):92===v&&Mi(r)?e=6:(r.ew=n.ew,r.nw=n.nw,r.hw=n.hw,r.uw=n.uw,r.ow=n.ow.slice(),r.ow.pop(),e=17,h-=1);break;case 6:!Mi(r)||47!==v&&92!==v?47===v?e=9:(r.ew=n.ew,r.nw=n.nw,r.hw=n.hw,r.uw=n.uw,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=Ur(Qr(d,Xr));s?r.nw+=y:r.ew+=y}else s=!0}u.length=0}else if(Ki===v||47===v||63===v||35===v||Mi(r)&&92===v){if(o&&0===u.length)throw new g("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.iw)h-=1,e=15;else if(58!==v||f)if(Ki===v||47===v||63===v||35===v||Mi(r)&&92===v){if(h-=1,Mi(r)&&0===u.length)throw new g("Invalid host");if(null!==i&&0===u.length&&(Bi(r)||null!==r.uw))return;var w=fi(Ur(u),Mi(r));if(r.hw=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 g("Invalid host");var I=fi(Ur(u),Mi(r));if(r.hw=I,u.length=0,e=12,11===i)return}break;case 12:if(dr(v))u.push(v);else{if(!(Ki===v||47===v||63===v||35===v||Mi(r)&&92===v||null!==i))throw new g("Invalid port");if(0!==u.length){var E=p(Ur(u),10);if(E>65535)throw new g("Invalid port");r.uw=E===Ai[r.iw]?null:E,u.length=0}if(null!==i)return;e=16,h-=1}break;case 13:r.iw="file",47===v||92===v?e=14:n&&"file"===n.iw?Ki===v?(r.hw=n.hw,r.ow=n.ow.slice(),r.Jp=n.Jp):63===v?(r.hw=n.hw,r.ow=n.ow.slice(),r.Jp="",e=19):35===v?(r.hw=n.hw,r.ow=n.ow.slice(),r.Jp=n.Jp,r.cw="",e=20):(Ui(c.slice(h))||(r.hw=n.hw,r.ow=n.ow.slice(),xi(r)),e=17,h-=1):(e=17,h-=1);break;case 14:47===v||92===v?e=15:(n&&"file"===n.iw&&!Ui(c.slice(h))&&(Wi(n.ow[0])?r.ow.push(n.ow[0]):r.hw=n.hw),e=17,h-=1);break;case 15:if(Ki===v||47===v||92===v||63===v||35===v)if(h-=1,null===i&&Hi(u))e=17;else if(0===u.length){if(r.hw=ei,null!==i)return;e=16}else{var S=fi(Ur(u),Mi(r));if(0===S.Gp&&"localhost"===S.Qp&&(S=ei),r.hw=S,null!==i)return;u.length=0,e=16}else u.push(v);break;case 16:Mi(r)?(e=17,47!==v&&92!==v&&(h-=1)):null===i&&63===v?(r.Jp="",e=19):null===i&&35===v?(r.cw="",e=20):Ki!==v&&(e=17,47!==v&&(h-=1));break;case 17:if(Ki===v||47===v||Mi(r)&&92===v||null===i&&(63===v||35===v)){var R=Ur(u);if(Fi(R)?(xi(r),47===v||Mi(r)&&92===v||r.ow.push("")):!Pi(R)||47===v||Mi(r)&&92===v?Pi(R)||("file"===r.iw&&0===r.ow.length&&Hi(u)&&(ei!==r.hw&&null!==r.hw&&(r.hw=ei),u[1]=58,R=Ur(u)),r.ow.push(R)):r.ow.push(""),u.length=0,"file"===r.iw&&(Ki===v||63===v||35===v))for(;r.ow.length>1&&""===r.ow[0];)r.ow.shift();63===v?(r.Jp="",e=19):35===v&&(r.cw="",e=20)}else u.push.apply(u,Qr(v,zr));break;case 18:63===v?(r.Jp="",e=19):35===v?(r.cw="",e=20):Ki!==v&&(r.ow[0]+=Ur(Qr(v,Yr)));break;case 19:null===i&&35===v?(r.cw="",e=20):Ki!==v&&(r.Jp+=Ur(Qr(v,Mi(r)?Zr:$r)));break;case 20:Ki===v||0===v||(r.cw+=Ur(Qr(v,qr)))}h++}return r}function zi(t,n,r,i){try{qi(t,n,r,i)}catch(t){}}var Xi=function(){this.iw="",this.ew="",this.nw="",this.hw=null,this.uw=null,this.ow=[],this.Jp=null,this.cw=null,this.aw=!1};function $i(t){switch(t.iw){case"blob":var n;try{n=qi(t.ow[0],null)}catch(t){return Ni}return $i(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(t,n,r){return t+"://"+si(n)+(null===r?"":":"+r)}(t.iw,t.hw,t.uw);default:return Ni}}var Zi=function(){function t(t,n){var r,i=null;if(null!=n)if(function(t){return null!=t&&t instanceof Zi&&"object"==typeof t.Yp}(n))i=n.Yp;else try{i=qi(String(n),null)}catch(t){throw new g("Invalid base URL: "+t.message)}try{r=qi(String(t),i)}catch(t){throw new g("Invalid URL: "+t.message)}var e=r.Jp;this.Yp=r,this.Jp=function(t){var n=new Ri;return null!==t&&Si(n,t),n}(e),this.Jp.Yp=this}var n=t.prototype;return n.toString=function(){return this.href},n.toJSON=function(){return this.href},function(t,n,r){n&&Qn(t.prototype,n),r&&Qn(t,r)}(t,[{key:"href",get:function(){return function(t,n){void 0===n&&(n=!1);var r=t.iw+":";if(null!==t.hw?(r+="//",Bi(t)&&(r+=t.ew,""!==t.nw&&(r+=":"+t.nw),r+="@"),r+=si(t.hw),null!==t.uw&&(r+=":"+t.uw)):null===t.hw&&"file"===t.iw&&(r+="//"),t.aw)r+=t.ow[0];else for(var i=0,e=t.ow;i<e.length;i++)r+="/"+e[i];return null!==t.Jp&&(r+="?"+t.Jp),n||null===t.cw||(r+="#"+t.cw),r}(this.Yp)},set:function(t){var n;try{n=qi(String(t),null)}catch(t){throw new g("Invalid URL: "+t.message)}this.Yp=n,Ei(this.Jp);var r=this.Yp.Jp;null!==r&&Si(this.Jp,r)}},{key:"origin",get:function(){return $i(this.Yp)}},{key:"protocol",get:function(){return this.Yp.iw+":"},set:function(t){zi(t+":",null,this.Yp,0)}},{key:"username",get:function(){return this.Yp.ew},set:function(t){Gi(this.Yp)||(this.Yp.ew=Jr(t,Xr))}},{key:"password",get:function(){return this.Yp.nw},set:function(t){Gi(this.Yp)||(this.Yp.nw=Jr(t,Xr))}},{key:"host",get:function(){var t=this.Yp,n=t.hw;if(null===n)return"";var r=t.uw,i=si(n);return null!==r&&(i+=":"+r),i},set:function(t){this.Yp.aw||zi(t,null,this.Yp,10)}},{key:"hostname",get:function(){var t=this.Yp.hw;return null===t?"":si(t)},set:function(t){this.Yp.aw||zi(t,null,this.Yp,11)}},{key:"port",get:function(){var t=this.Yp.uw;return null===t?"":""+t},set:function(t){Gi(this.Yp)||(""===t?this.Yp.uw=null:zi(t,null,this.Yp,12))}},{key:"pathname",get:function(){var t=this.Yp.ow;return this.Yp.aw?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.Yp.aw||(this.Yp.ow.length=0,zi(t,null,this.Yp,16))}},{key:"search",get:function(){var t=this.Yp.Jp;return null===t||""===t?"":"?"+t},set:function(t){t=di(t);var n=this.Yp;if(""===t)return n.Jp=null,void Ei(this.Jp);"?"===t[0]&&(t=t.slice(1)),n.Jp="",zi(t,null,n,19),Si(this.Jp,t)}},{key:"searchParams",get:function(){return this.Jp}},{key:"hash",get:function(){var t=this.Yp.cw;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.Yp.cw="",zi(t,null,this.Yp,20)):this.Yp.cw=null}}]),t}();function Qi(t){return t.document&&t.document.baseURI||t.location.href||""}var Ji=function(){function t(){this.qm=void 0,this.Iw=new te,this.Dw=An,this.Cw=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.qm=function(){return self.performance.now()}:this.qm=Sn}var n=t.prototype;return n.dw=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.lw=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];qn.apply(void 0,[].concat(n))},n.fw=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._w=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];$n.apply(void 0,[].concat(n))},n.gw=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];Zn.apply(void 0,[].concat([t],r))},n.zm=function(t,n){return _(t,n)},n.mw=function(t,n){return y(t,n)},n.Wm=function(t){d(t)},n.pw=function(t){w(t)},n.ww=function(){return this.yw.ww()},n.bw=function(){return this.yw.bw()},n.Aw=function(){return this.yw.Aw()},n.Sw=function(){return this.yw.Sw()},n.Tw=function(){return this.yw.Tw()},n.Ew=function(t,n){return this.yw.Ew(t,n)},n.xw=function(t){return this.yw.xw(t)},n.Rh=function(t,n){var r;return void 0===n&&(n=Qi(a)),r="object"!==(void 0===n?"undefined":m(n))||b(n,Zi)?n:n.href,new Zi(t,r)},n.Rw=function(t,n){if(void 0===n&&(n=Qi(a)),this.Cw){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:"Pw",get:function(){return this.Iw}},{key:"ie",get:function(){return this.Dw}},{key:"Nw",get:function(){return{Bw:l&&l.userAgent.match(/Android /i)?"Android":"other",Mw:Boolean(l&&l.userAgent.match(/Android 8.0.0/i))}}},{key:"Lw",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"Ow",get:function(){return"languages"in l?l.languages.slice():[l.language]}}]),t}(),te=function(){function t(){}return vt(t,[{key:"Fw",get:function(){return l.oscpu}},{key:"ie",get:function(){return l.platform}},{key:"Uw",get:function(){return l.vendor}},{key:"Vw",get:function(){return l.vendorSub}}]),t}();var ne=function(){function t(){}var n=t.prototype;return n.Tw=function(){return nt.resolve(!1)},n.bw=function(){return nt.resolve(!1)},n.Sw=function(){return nt.resolve(!1)},n.Aw=function(){return nt.resolve(!1)},n.xw=function(t){return nt.resolve(!1)},n.Ew=function(t,n){return nt.resolve(!1)},n.ww=function(){return nt.resolve(!1)},t}(),re=function(){function t(){}var n=t.prototype;return n.pk=function(){},n.qb=function(t){},n.Ub=function(t){},n.Vb=function(t,n){},t}(),ie=function(t){return t.yk="arraybuffer",t.bk="json",t.Ak="stream",t.Sk="text",t}({});var ee=function(){function t(n){var r=this;if(this.zw=void 0,this.zw={},n)if(b(n,t))n.asList().forEach(function(t){var n=t[0],i=t[1];r.append(n,i)});else if(function(t){return Dt(t)&&"function"==typeof t.forEach}(n))n.forEach(function(t,n){Array.isArray(t)&&2===t.length?r.append(t[0],t[1]):r.append(n,t)});else if(function(t){return void 0!==i&&Dt(t)&&i in t}(n))for(var e,u=_t(n);!(e=u()).done;){var o=e.value,f=o[0],s=o[1];this.append(f,s)}else E.getOwnPropertyNames(n).forEach(function(t){r.append(t,n[t])});else;}var n=t.prototype;return n.append=function(t,n){var r=t,i=n;r=ue(r),i=oe(i);var e=r.toLowerCase();if(this.zw.hasOwnProperty(e)){var u=this.zw[e],o=u[1];u[1]=o?o+", "+i:i}else this.zw[e]=[r,i]},n.delete=function(t){var n=ue(t).toLowerCase();delete this.zw[n]},n.get=function(t){var n=ue(t).toLowerCase();return this.zw.hasOwnProperty(n)?this.zw[n][1]:null},n.has=function(t){var n=ue(t).toLowerCase();return this.zw.hasOwnProperty(n)},n.set=function(t,n){var r=t,i=(r=ue(r)).toLowerCase();this.zw[i]=[r,oe(n)]},n.forEach=function(t,n){for(var r in this.zw)this.zw.hasOwnProperty(r)&&t.call(n,this.zw[r][1],r,this)},n.asList=function(){var t=[];for(var n in this.zw)if(this.zw.hasOwnProperty(n)){var r=this.zw[n],i=r[0],e=r[1];t.push([i,e])}return t},n.Tk=function(){var t={};return this.forEach(function(n,r){t[r]=n}),t},n.Ek=function(t){var n=this;t.forEach(function(t,r){n.append(r,t)})},n.xk=function(t){var n=this;t.forEach(function(t,r){n.set(r,t)})},t}();function ue(t){var n=t;if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new g("Invalid character in header field name");return n}function oe(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}var fe=function(t,n){this.Bk=void 0,this.Jk=void 0,this.AE=void 0,this.Kk=void 0,this.SE=void 0,this.TE=void 0,this.sp=void 0,this.Jw=void 0,this.kE=void 0,this.EE=void 0,this.iE=void 0,this.xE=void 0,this.PE=void 0,this.RE=void 0,this.CE=void 0,this.DE=void 0;var r,i,e,u,o,f,s,c,a,h,v,l,_,d,y,w,I,g,E=t.iE;n?(r=n.Bk,i=n.Jk,e=n.AE,u=n.Kk,o=n.SE,f=n.TE,s=n.sp,c=n.Jw,a=n.kE,h=n.EE,v=n.xE,l=n.PE,_=n.RE,d=n.CE,y=n.DE):(r=null,i={},e="GET",u=ie.Sk,o=0,f=0,c="",a="",h="",v=!1,_=void 0,d=!1,y=void 0),this.iE=E,this.Bk=t.Bk||r,this.Jk=new ee(t.Jk||i),this.AE=t.AE||e,this.Kk=t.Kk||u,this.SE=void 0!==t.SE?Number(t.SE)||0:o,this.TE=void 0!==t.TE?Number(t.TE)||0:f,this.sp=t.sp||s||(new Kt).sp,this.Jw=t.Jw||c,this.kE=t.kE||a,this.EE=t.EE||h,this.xE=void 0!==t.xE?Boolean(t.xE):v,this.PE=t.PE||l,this.RE=null!=(w=t.RE)?w:_,this.CE=null!=(I=t.CE)?I:d,this.DE=null!=(g=t.DE)?g:y},se=function(t){return t.WE="HttpOpenError",t.zE="HttpResponseError",t.GE="HttpTimeoutError",t}({}),ce=function(t){function n(n,r,i){var e;return(e=t.call(this,r,i)||this).XE=void 0,e.XE=n,e}return at(n,t),vt(n,[{key:"Yk",get:function(){return this.XE}}]),n}(Yt),ae=function(t){function n(n,r){return t.call(this,n,"Error while opening "+n.iE+".",r)||this}return at(n,t),vt(n,[{key:"name",get:function(){return se.WE}}]),n}(ce),he=function(){function t(){}var n=t.prototype;return n.Yk=function(t){return nt.reject(new ae(new fe(t)))},n.NE=function(t){},n._n=function(){},t}(),ve=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return at(n,t),n}(Yt),le=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).eP=new ne,n.Iq=new he,n.i=new re,n}return at(n,t),n.prototype.Cx=function(t){throw new ve},vt(n,[{key:"yw",get:function(){return this.eP}},{key:"sP",get:function(){return!1}},{key:"rP",get:function(){return!1}},{key:"uP",get:function(){return!1}},{key:"hP",get:function(){return!1}},{key:"cP",get:function(){return this.i}},{key:"dP",get:function(){return{lP:Ft}}},{key:"fP",get:function(){return"default"}},{key:"vP",get:function(){return"unknown"}},{key:"_P",get:function(){return!0}},{key:"ff",get:function(){return this.Iq}},{key:"mP",get:function(){return!1}}]),n}(Ji);!function(t){0}(new le);var _e=function(t){return t[t.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",t[t.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4",t}({}),de=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}({}),ye=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=S.floor(n/1e3);if(r in t)return r;throw new g("Invalid error code: "+n)}}(ye||(ye={}));var we=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 ye.fromCode(this.code)}}]),n}(Yt);var Ie,ge=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=S.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 Se=new Array(128).fill(void 0);function pe(t){return Se[t]}function Re(t){return null==t}Se.push(void 0,null,!0,!1);var Oe=Se.length;function Te(t){var n=pe(t);return function(t){t<132||(Se[t]=Oe,Oe=t)}(t),n}function ke(t){Oe===Se.length&&Se.push(Se.length+1);var n=Oe;return Oe=Se[n],Se[n]=t,n}var be=null;function me(){return(null===be||be.buffer.detached||be.buffer!==Ie.memory.buffer)&&(be=new T(Ie.memory.buffer)),be}function Ne(t,n){return t>>>=0,me().subarray(t/1,t/1+n)}var Ae=void 0!==Ee?new Ee("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:function(){throw I("TextDecoder not available")}};function Ce(t,n){return t>>>=0,Ae.decode(me().subarray(t,t+n))}void 0!==Ee&&Ae.decode();var De=0;function Pe(t,n){var r=n(1*t.length,1)>>>0;return me().set(t,r/1),De=t.length,r}var Fe=null;function Le(){return(null===Fe||Fe.buffer.detached||Fe.buffer!==Ie.memory.buffer)&&(Fe=new DataView(Ie.memory.buffer)),Fe}var Me=void 0!==ge?new ge("utf-8"):{encode:function(){throw I("TextEncoder not available")}},Be="function"==typeof Me.encodeInto?function(t,n){return Me.encodeInto(t,n)}:function(t,n){var r=Me.encode(t);return n.set(r),{read:t.length,written:r.length}};function Ue(t){try{var n=Ie.__wbindgen_add_to_stack_pointer(-16);Ie.mpegts_to_fmp4(n,ke(t));var r=Le().getInt32(n+0,!0),i=Le().getInt32(n+4,!0);if(Le().getInt32(n+8,!0))throw Te(i);return Te(r)}finally{Ie.__wbindgen_add_to_stack_pointer(16)}}function Ve(t){try{var n=Ie.__wbindgen_add_to_stack_pointer(-16);Ie.raw_audio_to_fmp4(n,ke(t));var r=Le().getInt32(n+0,!0),i=Le().getInt32(n+4,!0);if(Le().getInt32(n+8,!0))throw Te(i);return Te(r)}finally{Ie.__wbindgen_add_to_stack_pointer(16)}}function He(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 We(){var t={wbg:{}};return t.wbg.__wbg_audiopid_cf63a2881fb603de=function(t){var n=pe(t).audio_pid;return Re(n)?16777215:n},t.wbg.__wbg_createoutput_f81a086f372d422e=function(t,n){var r=function(t,n){return{data:t,metadata:n}}(Te(t),Te(n));return ke(r)},t.wbg.__wbg_createoutputdata_f9352c5065ea01aa=function(t,n,r,i,e,u,o,f){var s,c,a,h;0!==t&&(s=Ne(t,n).slice(),Ie.__wbindgen_export_0(t,1*n,1)),0!==r&&(c=Ne(r,i).slice(),Ie.__wbindgen_export_0(r,1*i,1)),0!==e&&(a=Ne(e,u).slice(),Ie.__wbindgen_export_0(e,1*u,1)),0!==o&&(h=Ne(o,f).slice(),Ie.__wbindgen_export_0(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 ke(v)},t.wbg.__wbg_createoutputmetadata_79a74f7d3aafd2c5=function(t,n,r,i,e,u,o,f,s,c,a,h,v,l,_,d){var y,w,I,g;0!==r&&(y=Ce(r,i).slice(),Ie.__wbindgen_export_0(r,1*i,1)),0!==e&&(w=Ce(e,u).slice(),Ie.__wbindgen_export_0(e,1*u,1)),0!==o&&(I=Ne(o,f).slice(),Ie.__wbindgen_export_0(o,1*f,1)),0!==s&&(g=Ne(s,c).slice(),Ie.__wbindgen_export_0(s,1*c,1));var E=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,g,Te(a),Te(h),Te(v),16777215===l?void 0:l,0===_?void 0:d);return ke(E)},t.wbg.__wbg_createtimestampwithbase_9f3b56a7f281a060=function(t,n,r){var i=function(t,n,r){return{low:t,high:n,base:r}}(t>>>0,n>>>0,r>>>0);return ke(i)},t.wbg.__wbg_data_0dfa593a0aa2e64c=function(t,n){var r=Pe(pe(n).data,Ie.__wbindgen_export_1),i=De;Le().setInt32(t+4,i,!0),Le().setInt32(t+0,r,!0)},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,n){var r,i;try{r=t,i=n,console.error(Ce(t,n))}finally{Ie.__wbindgen_export_0(r,i,1)}},t.wbg.__wbg_metadata_262906c02690f219=function(t){var n=pe(t).metadata;return Re(n)?0:ke(n)},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){return ke(new I)},t.wbg.__wbg_ppsnal_24d7d831a1284b13=function(t,n){var r=pe(n).pps_nal,i=Re(r)?0:Pe(r,Ie.__wbindgen_export_1),e=De;Le().setInt32(t+4,e,!0),Le().setInt32(t+0,i,!0)},t.wbg.__wbg_programmaptablepid_2bf8112d9d4d8cb1=function(t){var n=pe(t).program_map_table_pid;return Re(n)?16777215:n},t.wbg.__wbg_spsnal_b5454d39031feeca=function(t,n){var r=pe(n).sps_nal,i=Re(r)?0:Pe(r,Ie.__wbindgen_export_1),e=De;Le().setInt32(t+4,e,!0),Le().setInt32(t+0,i,!0)},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,n){var r=function(t,n,r){if(void 0===r){var i=Me.encode(t),e=n(i.length,1)>>>0;return me().subarray(e,e+i.length).set(i),De=i.length,e}for(var u=t.length,o=n(u,1)>>>0,f=me(),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=me().subarray(o+s,o+u);o=r(o,u,s+=Be(t,a).written,1)>>>0}return De=s,o}(pe(n).stack,Ie.__wbindgen_export_1,Ie.__wbindgen_export_2),i=De;Le().setInt32(t+4,i,!0),Le().setInt32(t+0,r,!0)},t.wbg.__wbg_videopid_60d3be6c566fc051=function(t){var n=pe(t).video_pid;return Re(n)?16777215:n},t.wbg.__wbindgen_object_drop_ref=function(t){Te(t)},t.wbg.__wbindgen_string_new=function(t,n){return ke(Ce(t,n))},t}function xe(t,n){return Ie=t.exports,Ge.__wbindgen_wasm_module=n,Fe=null,be=null,Ie.__wbindgen_start(),Ie}function Ge(t){return Bt(function(){var n,r,i,e;return Ut(this,function(u){switch(u.label){case 0:return void 0!==Ie?[2,Ie]:(void 0!==t&&(E.getPrototypeOf(t)===E.prototype?t=t.module_or_path:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===t&&(t=new URL("theomux_bg.wasm",void 0)),n=We(),("string"==typeof t||"function"==typeof Request&&b(t,Request)||"function"==typeof URL&&b(t,URL))&&(t=fetch(t)),[4,t]);case 1:return[4,He.apply(void 0,[u.sent(),n])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,xe(i,e)]}})})()}function Ke(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 g('Failed to fetch "'+t+'", status '+i.status))},i.open("GET",t,!0),i.responseType="arraybuffer",i.send()})}(r.href)),[4,Ge({module_or_path:n})];case 1:return i.sent(),[2,{mpegts_to_fmp4:Ue,raw_audio_to_fmp4:Ve}]}})})()}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({sYt:"11.4.0"})},function(t){var n=t,r={success:!1,error:n.message,errorCode:b(n,we)?n.code:de.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===_e.MPEGTS_TO_FMP4)o=n.mpegts_to_fmp4(t.input);else{if(t.type!==_e.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,we)?n.code:de.MEDIA_DECODE_ERROR};self.postMessage(r)})})}(function(){return Ke(je)})}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof a?a:"undefined"!=typeof global?global:this);
31
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": "11.2.0",
5
+ "version": "11.4.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/",