@theoplayer/extended 9.6.0 → 9.7.0

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