/*!
 THEOplayer

 Usage of this software is limited by the THEOplayer License.

 It is prohibited to reverse engineer, decompile, translate,
 disassemble, decipher, decrypt, or otherwise attempt to
 discover the source code of this software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 OTHER DEALINGS IN THE SOFTWARE.

 For more information, visit https://www.theoplayer.com or contact
 contact @ theoplayer . com



 THEOplayer is based on patented technology developed by
 THEO Technologies (https://www.theoplayer.com).

 Version: 10.7.1
 Created: 2026-01-26T18:49:57.213Z
 */
!function(t){"use strict";var n,r,i,e,u,o,f,s,c,a=t.window,h=t.document,v=t.location,l=t.navigator,_=t.setTimeout,d=t.clearTimeout,y=t.setInterval,w=t.clearInterval,I=t.Error,E=t.TypeError,g=(t.SyntaxError,t.Object),p=t.Math,R=t.parseInt,S=t.parseFloat,O=t.isNaN,T=t.Uint8Array,k=(t.Worker,t.WorkerGlobalScope,t.XMLHttpRequest);function b(t,r){return null!=r&&void 0!==n&&r[n.hasInstance]?!!r[n.hasInstance](t):t instanceof r}function m(t){return t&&void 0!==n&&t.constructor===n?"symbol":typeof t}"function"==typeof Symbol&&Symbol.iterator?(n=Symbol,r=null!=(o=Symbol.for)?o:Symbol,i=Symbol.iterator,e=null!=(f=Symbol.dispose)?f:r("Symbol.dispose"),u=null!=(s=Symbol.asyncDispose)?s:r("Symbol.asyncDispose")):(c=0,n=function(t){return"ui"+t+"_"+ ++c},i=(r=function(t){return"ui"+t})("Symbol.iterator"),e=r("Symbol.dispose"),u=r("Symbol.asyncDispose"),n.for=r,n.iterator=i,n.dispose=e,n.asyncDispose=u);var N=_;function A(t){return Boolean(t&&void 0!==t.length)}function C(){}function D(t){if(!b(this,D))throw new E("Promises must be constructed via new");if("function"!=typeof t)throw new E("not a function");this.Ua=0,this.tIt=!1,this.ilt=void 0,this.nIt=[],U(t,this)}function P(t,n){for(;3===t.Ua;)t=t.ilt;0!==t.Ua?(t.tIt=!0,D.iIt(function(){var r=1===t.Ua?n.onFulfilled:n.onRejected;if(null!==r){var i;try{i=r(t.ilt)}catch(t){return void L(n.promise,t)}F(n.promise,i)}else(1===t.Ua?F:L)(n.promise,t.ilt)})):t.nIt.push(n)}function F(t,n){try{if(n===t)throw new E("A promise cannot be resolved with itself.");if(n&&("object"===(void 0===n?"undefined":m(n))||"function"==typeof n)){var r=n.then;if(b(n,D))return t.Ua=3,t.ilt=n,void B(t);if("function"==typeof r)return void U(function(t,n){return function(){t.apply(n,arguments)}}(r,n),t)}t.Ua=1,t.ilt=n,B(t)}catch(n){L(t,n)}}function L(t,n){t.Ua=2,t.ilt=n,B(t)}function B(t){2===t.Ua&&0===t.nIt.length&&D.iIt(function(){t.tIt||D.rIt(t.ilt)});for(var n=0,r=t.nIt.length;n<r;n++)P(t,t.nIt[n]);t.nIt=null}function M(t,n,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=r}function U(t,n){var r=!1;try{t(function(t){r||(r=!0,F(n,t))},function(t){r||(r=!0,L(n,t))})}catch(t){if(r)return;r=!0,L(n,t)}}D.prototype.catch=function(t){return this.then(null,t)},D.prototype.then=function(t,n){var r=new this.constructor(C);return P(this,new M(t,n,r)),r},D.prototype.finally=function(t){var n=this.constructor;return this.then(function(r){return n.resolve(t()).then(function(){return r})},function(r){return n.resolve(t()).then(function(){return n.reject(r)})})},D.all=function(t){return new D(function(n,r){if(!A(t))return r(new E("Promise.all accepts an array"));var i=Array.prototype.slice.call(t);if(0===i.length)return n([]);var e=i.length;function u(t,o){try{if(o&&("object"===(void 0===o?"undefined":m(o))||"function"==typeof o)){var f=o.then;if("function"==typeof f)return void f.call(o,function(n){u(t,n)},r)}i[t]=o,0===--e&&n(i)}catch(t){r(t)}}for(var o=0;o<i.length;o++)u(o,i[o])})},D.allSettled=function(t){return new this(function(n,r){if(!t||void 0===t.length)return r(new E((void 0===t?"undefined":m(t))+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(t);if(0===i.length)return n([]);var e=i.length;function u(t,r){if(r&&("object"===(void 0===r?"undefined":m(r))||"function"==typeof r)){var o=r.then;if("function"==typeof o)return void o.call(r,function(n){u(t,n)},function(r){i[t]={status:"rejected",reason:r},0===--e&&n(i)})}i[t]={status:"fulfilled",value:r},0===--e&&n(i)}for(var o=0;o<i.length;o++)u(o,i[o])})},D.resolve=function(t){return t&&"object"===(void 0===t?"undefined":m(t))&&t.constructor===D?t:new D(function(n){n(t)})},D.reject=function(t){return new D(function(n,r){r(t)})},D.race=function(t){return new D(function(n,r){if(!A(t))return r(new E("Promise.race accepts an array"));for(var i=0,e=t.length;i<e;i++)D.resolve(t[i]).then(n,r)})},D.iIt="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){N(t,0)},D.rIt=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var V=function(){var t=self.Promise;if(void 0!==t)try{if(-1!==t.toString().indexOf("[native code]"))return t}catch(t){}}(),H=l?l.userAgent:"",W=H.match(/Firefox\/([0-9]+)/i),x=null!=W,G=W?Number(W[1]):0,j=H.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),K=null!=j,q=j?Number(j[3]):0,z=function(){function t(t){this.hw=0,this.Vu=0,this.B_=[],this.eIt=t}return t.prototype.uIt=function(t){var n=this.length();this.sIt(n+1);var r=this.Vu+n&this.eIt-1;this.B_[r]=t,this.hw=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.eIt<n)this.uIt(t);else{var r=this.Vu+n-1,i=this.eIt-1;this.B_[r&i]=t,this.hw=n}},t.prototype.shift=function(){var t=this.Vu,n=this.B_[t];return this.B_[t]=void 0,this.Vu=t+1&this.eIt-1,this.hw--,n},t.prototype.length=function(){return this.hw},t.prototype.sIt=function(t){this.eIt<t&&this.oIt(this.eIt<<1)},t.prototype.oIt=function(t){var n=this.eIt;this.eIt=t;var r=this.Vu+this.hw&n-1;!function(t,n,r,i){for(var e=0;e<i;++e)t[e+r]=t[e+n],t[e+n]=void 0}(this.B_,0,n,r)},t}();var X="unhandledrejection",Y=self.PromiseRejectionEvent,$=self.CustomEvent;function Z(t){return new Y(X,{reason:t,promise:V.reject(t).catch(function(){}),cancelable:!0})}function J(t){var n=new $(X,{detail:{reason:t},cancelable:!0});return g.defineProperty(n,"reason",{value:t}),n}function Q(t){var n=h.createEvent("CustomEvent");return n.initCustomEvent(X,!1,!0,{reason:t}),n}var tt,nt,rt,it,et,ut,ot,ft,st=function(t){return st=function(){try{var t=V.resolve(),n="error",r=new Y(X,{reason:n,promise:t});return X===r.type&&n===r.reason}catch(t){}return!1}()?Z:function(){try{var t="error",n=new $(X,{detail:{reason:t}});return X===n.type&&t===n.detail.reason}catch(t){}return!1}()?J:Q,st(t)};function ct(t,n){return ct=g.setPrototypeOf||function(t,n){return t.__proto__=n,t},ct(t,n)}function at(t,n){if("function"!=typeof n&&null!==n)throw new E("Super expression must either be null or a function");t.prototype=g.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&ct(t,n)}function ht(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),g.defineProperty(t,i.key,i)}}function vt(t,n,r){return n&&ht(t.prototype,n),r&&ht(t,r),t}function lt(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=t[r];return i}function _t(t,r){var e=void 0!==n&&t[i]||t["@@iterator"];if(e)return(e=e.call(t)).next.bind(e);if(Array.isArray(t)||(e=function(t,n){if(t){if("string"==typeof t)return lt(t,n);var r=g.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lt(t,n):void 0}}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var u=0;return function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new E("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}V&&!(x&&G<60||K&&q<15)?nt=V:(nt=D,ot=null!==(tt=function(){var t=self.queueMicrotask;if("function"==typeof t)return function(n){return t(n)};var n=V;if(n&&"function"==typeof n.resolve){var r=n.resolve();return function(t){return r.then(t)}}}())&&void 0!==tt?tt:D.iIt,rt=ot,it=new z(16),et=!1,(ft={C1:function(t){it.push(t),et||(et=!0,rt(ut))},vW:ut=function(){for(;it.length()>0;)it.shift()();et=!1}}).vW,D.iIt=ft.C1,D.rIt=function(t){try{var n=st(t);if(!self.dispatchEvent(n)||n.defaultPrevented)return}catch(t){}_(function(){throw new I("Unhandled promise rejection: ".concat(t))},0)});var dt=function(t){return t.ld="web",t.fd="android",t._d="android-tv",t.vd="ios",t.md="tvos",t.wd="chromecast",t.pd="theoliveweb",t}({});var yt=l?l.userAgent:"",wt=yt.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),It=yt.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Et=yt.match(/Android ([0-9\.]+)/i),gt=yt.match(/Windows NT ([0-9\.]+)/i),pt=yt.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),Rt=yt.match(/Firefox\/([0-9\.]+)/i),St=yt.match(/OPR\/(\d+\.\d+)/i),Ot=yt.match(/Tizen ([0-9\.]+)/i),Tt=yt.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),kt=yt.match(/HbbTV\/([0-9.]+)/i),bt=yt.match(/(AFT.*) Build/i),mt=function(){function t(){this.Ad=Boolean("ontouchstart"in self||self.DocumentTouch&&b(h,self.DocumentTouch)||l&&l.msMaxTouchPoints),this.bd=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(yt)||/(macintosh|mac(?=_powerpc)\s)/i.test(yt),this.Sd=/Windows NT/i.test(yt),this.Ed=gt?S(gt[1]):0,this.Pd=/Android/i.test(yt),this.Rd=Et?S(Et[1]):0,this.Bd=/windows phone (8|8\.1)/i.test(yt),this.Nd=/iPhone/i.test(yt),this.Ld=/iPad/i.test(yt),this.Fd=this.bd&&this.Ad&&!this.Ld,this.qd=/iPod/i.test(yt),this.Kd=/Mobile Safari/i.test(yt),this.Gd=/EOS\d*STB/i.test(yt),this.jd=/APP\d*STB/i.test(yt),this.Vd=(this.Nd||this.Ld||this.Fd||this.qd)&&!this.Bd,this.Xd=Tt?S(Tt[2]):0,this.Yd=this.Bd||this.Vd||this.Pd||this.Kd,this.Jd=/CriOS/i.test(yt),this.il=Boolean(self.chrome&&/google/i.test(l.vendor))||this.Jd,this.cl=this.il&&/Edg\//i.test(l.userAgent),this.ll=It?R(It[1],10):0,this.kf=Boolean(/CriOS/i.test(yt)),this.Sf=Boolean(self.chrome||/Chrome/i.test(yt)||this.kf),this.al=wt?R(wt[1],10):0,this.vl=/SMART-TV.*Tizen/i.test(yt),this.Al=Ot?S(Ot[1]):0,this.hl=this.Al>0?function(t){return t>=8?108:t>=7?94:t>=6.5?85:t>=6?76:t>=5.5?69:t>=5?63:t>=4?56:t>=3?47:0}(this.Al):void 0,this.bl=/webos|web0s/i.test(yt),this.Sl=/HbbTV/i.test(yt),this.Cl=!!kt&&function(t){if(!t)return!1;var n=t.split(".").map(Number);return 3===n.length&&1===n[0]&&2===n[1]}(kt[1]),this.Il=/AFT.* Build/i.test(yt),this.Rl=bt?bt[1]:void 0,this.Bl=/VIZIO/i.test(yt),this.Nl=/Edge\/\d+/i.test(yt),this.Ll=/Trident/i.test(yt),this.Fl=this.Ll&&!self.ActiveXObject&&"ActiveXObject"in self,this.ql=/Vivaldi/i.test(yt),this.Vl=/Firefox/i.test(yt)&&!/Seamonkey/i.test(yt),this.Xl=Rt?S(Rt[1]):0,this.Gl=/Safari/i.test(yt)&&!/Chrome/i.test(yt)&&!this.Bd&&!this.vl,this.Ql=pt?S(pt[2]):0,this.Yl=Boolean(St),this.Jl=St?S(St[1]):0,this.tf=/CrKey/.test(yt),this.ef=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(yt),this.rf=/PlayStation 4/i.test(yt),this.uf=/PlayStation 5/i.test(yt),this.df="web"===dt._d,this._f="web"===dt.fd,this.gf=this._f||this.df,this.wf="web"===dt.vd,this.Af="web"===dt.md,this.bf="web"===dt.wd}return vt(t,[{key:"tn",get:function(){return this.Ad}},{key:"yd",get:function(){return this.bd}},{key:"Td",get:function(){return this.Sd}},{key:"kd",get:function(){return this.Ed}},{key:"Cd",get:function(){return this.Pd}},{key:"Id",get:function(){return this.Rd}},{key:"xd",get:function(){return this.Bd}},{key:"Dd",get:function(){return this.Nd}},{key:"Od",get:function(){return this.Ld}},{key:"Md",get:function(){return this.Fd}},{key:"Hd",get:function(){return this.qd}},{key:"Ud",get:function(){return this.Vd}},{key:"Wd",get:function(){return this.Xd}},{key:"zd",get:function(){return this.Gd||this.jd}},{key:"Qd",get:function(){return this.Kd}},{key:"te",get:function(){return this.Yd}},{key:"Zd",get:function(){return this.Jd}},{key:"$d",get:function(){return this.il}},{key:"ol",get:function(){var t;return null!=(t=this.hl)?t:this.al}},{key:"ul",get:function(){return this.cl}},{key:"dl",get:function(){var t;return(null==(t=a.chrome)?void 0:t.webview)&&this.ll>0}},{key:"fl",get:function(){return this.ll}},{key:"_l",get:function(){return this.vl}},{key:"wl",get:function(){return this.Al}},{key:"yl",get:function(){return this.bl}},{key:"Tl",get:function(){return this.Sl}},{key:"El",get:function(){return this.Cl}},{key:"Pl",get:function(){return this.Il}},{key:"IS_FIRETV_AFTMM",get:function(){return"AFTMM"===this.Rl}},{key:"xl",get:function(){return this.Bl}},{key:"Dl",get:function(){return this.Nl}},{key:"Ol",get:function(){return this.Ll}},{key:"Ml",get:function(){return this.Fl}},{key:"Hl",get:function(){return this.ql}},{key:"Ul",get:function(){return this.Vl}},{key:"Wl",get:function(){return this.Xl}},{key:"zl",get:function(){return this.Gl}},{key:"jl",get:function(){return 0===this.Ql&&Nt.Ud?this.Xd:this.Ql}},{key:"Kl",get:function(){return this.Yl}},{key:"Zl",get:function(){return this.Jl}},{key:"$l",get:function(){return this.tf}},{key:"if",get:function(){return this.ef}},{key:"sf",get:function(){return!(!this.yl&&!this._l)&&this.ol<=56}},{key:"nf",get:function(){return this.rf}},{key:"hf",get:function(){return this.uf}},{key:"cf",get:function(){return this.df}},{key:"lf",get:function(){return this._f}},{key:"vf",get:function(){return this.gf}},{key:"mf",get:function(){return this.wf}},{key:"pf",get:function(){return this.Af}},{key:"yf",get:function(){return this.bf}},{key:"Tf",get:function(){return this.Sf}},{key:"IS_IOS_CHROME",get:function(){return this.kf}}]),t}();mt.Ef=new mt;var Nt=mt.Ef,At={}.toString;function Ct(t){return null!=t}Array.isArray;function Dt(t){return"object"===(void 0===t?"undefined":m(t))&&null!==t}function Pt(t){return function(t){return"function"==typeof t}(t)||Dt(t)}var Ft=function(){};function Lt(t){var n;return function(){return void 0!==t&&(n=t(),t=void 0),n}}function Bt(t,n,r,i,e,u,o){try{var f=t[u](o),s=f.value}catch(t){return void r(t)}f.done?n(s):nt.resolve(s).then(i,e)}function Mt(t){return function(){var n=this,r=arguments;return new nt(function(i,e){var u=t.apply(n,r);function o(t){Bt(u,i,e,o,f,"next",t)}function f(t){Bt(u,i,e,o,f,"throw",t)}o(void 0)})}}function Ut(t,r){var e,u,o,f={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=g.create(("function"==typeof Iterator?Iterator:g).prototype);return s.next=c(0),s.throw=c(1),s.return=c(2),"function"==typeof n&&(s[i]=function(){return this}),s;function c(n){return function(i){return function(n){if(e)throw new E("Generator is already executing.");for(;s&&(s=0,n[0]&&(f=0)),f;)try{if(e=1,u&&(o=2&n[0]?u.return:n[0]?u.throw||((o=u.return)&&o.call(u),0):u.next)&&!(o=o.call(u,n[1])).done)return o;switch(u=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return f.label++,{value:n[1],done:!1};case 5:f.label++,u=n[1],n=[0];continue;case 7:n=f.ops.pop(),f.trys.pop();continue;default:if(!(o=f.trys,(o=o.length>0&&o[o.length-1])||6!==n[0]&&2!==n[0])){f=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){f.label=n[1];break}if(6===n[0]&&f.label<o[1]){f.label=o[1],o=n;break}if(o&&f.label<o[2]){f.label=o[2],f.ops.push(n);break}o[2]&&f.ops.pop(),f.trys.pop();continue}n=r.call(t,f)}catch(t){n=[6,t],u=0}finally{e=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,i])}}}p.pow(2,-52),Array.prototype.find,Array.prototype.findLast;var Vt="function"==typeof Array.prototype.findIndex?function(t,n){return t.findIndex(n)}:function(t,n){for(var r=0;r<t.length;r+=1){if(n(t[r],r,t))return r}return-1},Ht="function"==typeof Array.prototype.findLastIndex?function(t,n){return t.findLastIndex(n)}:function(t,n){for(var r=t.length-1;r>=0;r-=1){if(n(t[r],r,t))return r}return-1};Array.prototype.at;function Wt(t,n){var r=t.indexOf(n);return-1!==r&&(function(t,n){0===n?t.shift():t.splice(n,1)}(t,r),!0)}function xt(t){t.length=0}Array.prototype.flat,Array.prototype.flatMap;var Gt=function(){function t(){this.Df=!1,this.Nf=!1,this.Of=[],this.Mf=[]}var n=t.prototype;return n.Bf=function(){if(!this.Df&&!this.Nf){this.Df=!0;for(var t,n=_t(this.Of.slice());!(t=n()).done;){(0,t.value)()}this.Lf()}},n.Lf=function(){if(!this.Nf){this.Nf=!0;for(var t,n=_t(this.Mf.slice());!(t=n()).done;){(0,t.value)()}xt(this.Of),xt(this.Mf)}},n.Ff=function(t){this.Nf||this.Of.push(t)},n.Hf=function(t){this.Nf||Wt(this.Of,t)},n.qf=function(t){this.Nf||this.Mf.push(t)},n.Uf=function(t){this.Nf||Wt(this.Mf,t)},t}(),jt=function(){function t(){this.Wf=new Gt}var n=t.prototype;return n.Xf=function(){this.Wf.Bf()},n.Lf=function(){this.Wf.Lf()},n.zf=function(t){var n=this.Wf;if(!n.Df)if(t.Df)n.Bf();else if(!n.Nf&&!t.Nf){var r=function(){i(),n.Bf()},i=function(){t.Hf(r),t.Uf(i),n.Hf(r),n.Uf(i)};t.Ff(r),t.qf(i),n.Ff(r),n.qf(i)}},n.Gf=function(){var n=new t,r=new t,i=n.Vf,e=r.Vf,u=this.Wf,o=function(){i.Df&&e.Nf||e.Df&&i.Nf?u.Bf():i.Nf&&e.Nf&&u.Lf()};i.Ff(o),e.Ff(o),i.qf(o),e.qf(o),n.zf(u),r.zf(u);return u.qf(function(){i.Hf(o),e.Hf(o),i.Uf(o),e.Uf(o)}),[n,r]},n[e]=function(){this.Xf()},t.jf=function(n){for(var r,i=new t,e=_t(n);!(r=e()).done;){var u=r.value;void 0!==u&&i.zf(u)}return i},vt(t,[{key:"Vf",get:function(){return this.Wf}}]),t}(),Kt=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];I.apply(this,n)};(Kt.prototype=g.create(I.prototype)).constructor=Kt;var qt=function(t){function n(n,r){var i;return(i=t.call(this)||this).cause=void 0,i.message=n||"Unknown error",i.cause=r,I.captureStackTrace&&I.captureStackTrace(i,i.constructor),i}return at(n,t),vt(n,[{key:"name",get:function(){return"BaseError"}}]),n}(Kt);nt.resolve();function zt(){return void 0!==h?h.createElement("video"):void 0}var Xt=Lt(zt),Yt=(Lt(function(){return"undefined"!=typeof HTMLVideoElement&&b(Xt(),HTMLVideoElement)}),null);try{Yt=new WebAssembly.Instance(new WebAssembly.Module(new T([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(rt){}function $t(t,n,r){this.low=0|t,this.high=0|n,this.unsigned=!!r}function Zt(t){return!0===(t&&t.Kf)}function Jt(t){var n=p.clz32(t&-t);return t?31-n:n}$t.prototype.Kf,g.defineProperty($t.prototype,"Kf",{value:!0}),$t.isLong=Zt;var Qt={},tn={};function nn(t,n){var r,i,e;return n?(e=0<=(t>>>=0)&&t<256)&&(i=tn[t])?i:(r=en(t,0,!0),e&&(tn[t]=r),r):(e=-128<=(t|=0)&&t<128)&&(i=Qt[t])?i:(r=en(t,t<0?-1:0,!1),e&&(Qt[t]=r),r)}function rn(t,n){if(O(t))return n?ln:vn;if(n){if(t<0)return ln;if(t>=cn)return In}else{if(t<=-an)return En;if(t+1>=an)return wn}return t<0?rn(-t,n).neg():en(t%sn|0,t/sn|0,n)}function en(t,n,r){return new $t(t,n,r)}$t.fromInt=nn,$t.fromNumber=rn,$t.fromBits=en;var un=p.pow;function on(t,n,r){if(0===t.length)throw I("empty string");if("number"==typeof n?(r=n,n=!1):n=!!n,"NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return n?ln:vn;if((r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=t.indexOf("-"))>0)throw I("interior hyphen");if(0===i)return on(t.substring(1),n,r).neg();for(var e=rn(un(r,8)),u=vn,o=0;o<t.length;o+=8){var f=p.min(8,t.length-o),s=R(t.substring(o,o+f),r);if(f<8){var c=rn(un(r,f));u=u.mul(c).add(rn(s))}else u=(u=u.mul(e)).add(rn(s))}return u.unsigned=n,u}function fn(t,n){return"number"==typeof t?rn(t,n):"string"==typeof t?on(t,n):en(t.low,t.high,"boolean"==typeof n?n:t.unsigned)}$t.fromString=on,$t.fromValue=fn;var sn=4294967296,cn=sn*sn,an=cn/2,hn=nn(1<<24),vn=nn(0);$t.ZERO=vn;var ln=nn(0,!0);$t.UZERO=ln;var _n=nn(1);$t.ONE=_n;var dn=nn(1,!0);$t.UONE=dn;var yn=nn(-1);$t.NEG_ONE=yn;var wn=en(-1,2147483647,!1);$t.MAX_VALUE=wn;var In=en(-1,-1,!0);$t.MAX_UNSIGNED_VALUE=In;var En=en(0,-2147483648,!1);$t.MIN_VALUE=En;var gn=$t.prototype;function pn(){return Date.now()||(new Date).getTime()}gn.toInt=function(){return this.unsigned?this.low>>>0:this.low},gn.toNumber=function(){return this.unsigned?(this.high>>>0)*sn+(this.low>>>0):this.high*sn+(this.low>>>0)},gn.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(En)){var n=rn(t),r=this.div(n),i=r.mul(n).sub(this);return r.toString(t)+i.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var e=rn(un(t,6),this.unsigned),u=this,o="";;){var f=u.div(e),s=(u.sub(f.mul(e)).toInt()>>>0).toString(t);if((u=f).isZero())return s+o;for(;s.length<6;)s="0"+s;o=""+s+o}},gn.getHighBits=function(){return this.high},gn.getHighBitsUnsigned=function(){return this.high>>>0},gn.getLowBits=function(){return this.low},gn.getLowBitsUnsigned=function(){return this.low>>>0},gn.getNumBitsAbs=function(){if(this.isNegative())return this.eq(En)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,n=31;n>0&&!(t&1<<n);n--);return 0!=this.high?n+33:n+1},gn.isSafeInteger=function(){var t=this.high>>21;return!t||!this.unsigned&&(-1===t&&!(0===this.low&&-2097152===this.high))},gn.isZero=function(){return 0===this.high&&0===this.low},gn.eqz=gn.isZero,gn.isNegative=function(){return!this.unsigned&&this.high<0},gn.isPositive=function(){return this.unsigned||this.high>=0},gn.isOdd=function(){return!(1&~this.low)},gn.isEven=function(){return!(1&this.low)},gn.equals=function(t){return Zt(t)||(t=fn(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},gn.eq=gn.equals,gn.notEquals=function(t){return!this.eq(t)},gn.neq=gn.notEquals,gn.ne=gn.notEquals,gn.lessThan=function(t){return this.comp(t)<0},gn.lt=gn.lessThan,gn.lessThanOrEqual=function(t){return this.comp(t)<=0},gn.lte=gn.lessThanOrEqual,gn.le=gn.lessThanOrEqual,gn.greaterThan=function(t){return this.comp(t)>0},gn.gt=gn.greaterThan,gn.greaterThanOrEqual=function(t){return this.comp(t)>=0},gn.gte=gn.greaterThanOrEqual,gn.ge=gn.greaterThanOrEqual,gn.compare=function(t){if(Zt(t)||(t=fn(t)),this.eq(t))return 0;var n=this.isNegative(),r=t.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},gn.comp=gn.compare,gn.negate=function(){return!this.unsigned&&this.eq(En)?En:this.not().add(_n)},gn.neg=gn.negate,gn.add=function(t){Zt(t)||(t=fn(t));var n=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,f=t.low>>>16,s=0,c=0,a=0,h=0;return a+=(h+=e+(65535&t.low))>>>16,c+=(a+=i+f)>>>16,s+=(c+=r+o)>>>16,s+=n+u,en((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},gn.subtract=function(t){return Zt(t)||(t=fn(t)),this.add(t.neg())},gn.sub=gn.subtract,gn.multiply=function(t){if(this.isZero())return this;if(Zt(t)||(t=fn(t)),Yt)return en(Yt.mul(this.low,this.high,t.low,t.high),Yt.get_high(),this.unsigned);if(t.isZero())return this.unsigned?ln:vn;if(this.eq(En))return t.isOdd()?En:vn;if(t.eq(En))return this.isOdd()?En:vn;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(hn)&&t.lt(hn))return rn(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,r=65535&this.high,i=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,f=t.low>>>16,s=65535&t.low,c=0,a=0,h=0,v=0;return h+=(v+=e*s)>>>16,a+=(h+=i*s)>>>16,h&=65535,a+=(h+=e*f)>>>16,c+=(a+=r*s)>>>16,a&=65535,c+=(a+=i*f)>>>16,a&=65535,c+=(a+=e*o)>>>16,c+=n*s+r*f+i*o+e*u,en((h&=65535)<<16|(v&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},gn.mul=gn.multiply,gn.divide=function(t){if(Zt(t)||(t=fn(t)),t.isZero())throw I("division by zero");var n,r,i;if(Yt)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?en((this.unsigned?Yt.div_u:Yt.div_s)(this.low,this.high,t.low,t.high),Yt.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?ln:vn;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return ln;if(t.gt(this.shru(1)))return dn;i=ln}else{if(this.eq(En))return t.eq(_n)||t.eq(yn)?En:t.eq(En)?_n:(n=this.shr(1).div(t).shl(1)).eq(vn)?t.isNegative()?_n:yn:(r=this.sub(t.mul(n)),i=n.add(r.div(t)));if(t.eq(En))return this.unsigned?ln:vn;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=vn}for(r=this;r.gte(t);){n=p.max(1,p.floor(r.toNumber()/t.toNumber()));for(var e=p.ceil(p.log(n)/p.LN2),u=e<=48?1:un(2,e-48),o=rn(n),f=o.mul(t);f.isNegative()||f.gt(r);)f=(o=rn(n-=u,this.unsigned)).mul(t);o.isZero()&&(o=_n),i=i.add(o),r=r.sub(f)}return i},gn.div=gn.divide,gn.modulo=function(t){return Zt(t)||(t=fn(t)),Yt?en((this.unsigned?Yt.rem_u:Yt.rem_s)(this.low,this.high,t.low,t.high),Yt.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},gn.mod=gn.modulo,gn.rem=gn.modulo,gn.not=function(){return en(~this.low,~this.high,this.unsigned)},gn.countLeadingZeros=function(){return this.high?p.clz32(this.high):p.clz32(this.low)+32},gn.clz=gn.countLeadingZeros,gn.countTrailingZeros=function(){return this.low?Jt(this.low):Jt(this.high)+32},gn.ctz=gn.countTrailingZeros,gn.and=function(t){return Zt(t)||(t=fn(t)),en(this.low&t.low,this.high&t.high,this.unsigned)},gn.or=function(t){return Zt(t)||(t=fn(t)),en(this.low|t.low,this.high|t.high,this.unsigned)},gn.xor=function(t){return Zt(t)||(t=fn(t)),en(this.low^t.low,this.high^t.high,this.unsigned)},gn.shiftLeft=function(t){return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?en(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):en(0,this.low<<t-32,this.unsigned)},gn.shl=gn.shiftLeft,gn.shiftRight=function(t){return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?en(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):en(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},gn.shr=gn.shiftRight,gn.shiftRightUnsigned=function(t){return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?en(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):en(32===t?this.high:this.high>>>t-32,0,this.unsigned)},gn.shru=gn.shiftRightUnsigned,gn.shr_u=gn.shiftRightUnsigned,gn.rotateLeft=function(t){var n;return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?en(this.high,this.low,this.unsigned):t<32?(n=32-t,en(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned)):(n=32-(t-=32),en(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned))},gn.rotl=gn.rotateLeft,gn.rotateRight=function(t){var n;return Zt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?en(this.high,this.low,this.unsigned):t<32?(n=32-t,en(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned)):(n=32-(t-=32),en(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned))},gn.rotr=gn.rotateRight,gn.toSigned=function(){return this.unsigned?en(this.low,this.high,!1):this},gn.toUnsigned=function(){return this.unsigned?this:en(this.low,this.high,!0)},gn.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},gn.toBytesLE=function(){var t=this.high,n=this.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},gn.toBytesBE=function(){var t=this.high,n=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]},$t.fromBytes=function(t,n,r){return r?$t.fromBytesLE(t,n):$t.fromBytesBE(t,n)},$t.fromBytesLE=function(t,n){return new $t(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},$t.fromBytesBE=function(t,n){return new $t(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)},"function"==typeof BigInt&&($t.fromBigInt=function(t,n){return en(Number(BigInt.asIntN(32,t)),Number(BigInt.asIntN(32,t>>BigInt(32))),n)},$t.fromValue=function(t,n){return"bigint"===(void 0===t?"undefined":m(t))?$t.fromBigInt(t,n):fn(t,n)},gn.toBigInt=function(){var t=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|t});var Rn=1/6,Sn=($t.fromNumber(9007199254740991),Boolean("ontouchstart"in self||self.DocumentTouch&&b(h,self.DocumentTouch))||Boolean(l&&l.msMaxTouchPoints)),On=Xt(),Tn=Boolean(On&&On.webkitShowPlaybackTargetPicker),kn=function(){function t(){this.Zf=void 0,this.T_=!1,this.tn=Sn,this.te=!1,this.Qf=!0}var n=t.prototype;return n.Jf=function(){return 0},n.w_=function(t,n){return!0},n.p_=function(t){return t>=2*Rn},vt(t,[{key:"Yf",get:function(){return void 0===this.Zf&&(this.Zf=this.Jf()),this.Zf}},{key:"$f",get:function(){return Nt.Cd?"android":Nt.yd?"macos":Nt.Ud?"ios":Nt.Td?"windows":"other"}},{key:"t_",get:function(){return Nt.if?"tv":Nt.te?"mobile":"desktop"}},{key:"i_",get:function(){return!Nt.if}},{key:"e_",get:function(){if(a.screen)return{width:a.screen.width*this.s_,height:a.screen.height*this.s_}}},{key:"s_",get:function(){return a.devicePixelRatio||1}},{key:"n_",get:function(){return Tn}},{key:"r_",get:function(){return!1}},{key:"o_",get:function(){return!0}},{key:"h_",get:function(){return!!(Nt.zl||Nt.Ud||Nt.dl)||!!Nt.xl}},{key:"a_",get:function(){return Nt.xl}},{key:"u_",get:function(){return!Nt.Ud}},{key:"c_",get:function(){return!0}},{key:"d_",get:function(){return!0}},{key:"l_",get:function(){return!1}},{key:"f_",get:function(){}},{key:"__",get:function(){return!0}},{key:"v_",get:function(){return!1}},{key:"g_",get:function(){return Nt.xl}},{key:"m_",get:function(){return!1}},{key:"A_",get:function(){return!1}},{key:"y_",get:function(){return!1}},{key:"b_",get:function(){return!0}}]),t}(),bn=function(t){function n(){return t.call(this)||this}return at(n,t),n}(kn),mn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),n.prototype.w_=function(t,n){if(t&&t.S_&&n&&n.S_){var r=Nn(t.S_,"mp4a.40.2")&&Nn(n.S_,"mp4a.40.5"),i=Nn(t.S_,"mp4a.40.5")&&Nn(n.S_,"mp4a.40.2"),e=Nn(t.S_,"mp4a.40.2")&&Nn(n.S_,"mp4a.40.34"),u=Nn(t.S_,"mp4a.40.34")&&Nn(n.S_,"mp4a.40.2"),o=Nn(t.S_,"mp4a.40.5")&&Nn(n.S_,"mp4a.40.34"),f=Nn(t.S_,"mp4a.40.34")&&Nn(n.S_,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},vt(n,[{key:"f_",get:function(){if(Nt.yd)return 4096}}]),n}(bn);function Nn(t,n){return t.indexOf(n)>-1}var An,Cn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),n.prototype.p_=function(t){return t>=2},n}(bn),Dn=function(t){function n(){var n;return(n=t.call(this)||this).T_=Nt.jl>=11,n.Qf=Nt.zl&&!(Nt.Ud&&Nt.jl<10),n}return at(n,t),vt(n,[{key:"m_",get:function(){return Nt.jl<17}},{key:"A_",get:function(){return!0}}]),n}(bn),Pn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"__",get:function(){return!(Nt.ol>=133)}}]),n}(bn);var Fn=function(){var t=zt();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(Nt.Md)return!1;var t=zt();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var Ln=function(t){function n(n){var r;return(r=t.call(this)||this).k_=void 0,r.k_=n,r.T_=r.k_.T_,r.tn=r.k_.tn,r.Qf=Fn&&r.k_.Qf,r}at(n,t);var r=n.prototype;return r.Jf=function(){return this.k_.Yf},r.w_=function(t,n){return this.k_.w_(t,n)},r.p_=function(t){return this.k_.p_(t)},vt(n,[{key:"f_",get:function(){return this.k_.f_}},{key:"__",get:function(){return this.k_.__}},{key:"m_",get:function(){return this.k_.m_}}]),n}(kn),Bn=function(t){function n(n){var r;return(r=t.call(this,n)||this).T_=!0,r.te=!0,r}return at(n,t),vt(n,[{key:"l_",get:function(){return Nt.Ud}}]),n}(Ln);var Mn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),n.prototype.Jf=function(){return function(t){return t&&Pt(a.ManagedMediaSource)?a.ManagedMediaSource:Pt(a.MediaSource)?a.MediaSource:void 0}(!0)?t.prototype.Jf.call(this):1},vt(n,[{key:"l_",get:function(){return!0}}]),n}(Bn),Un=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).I_=void 0,n}return at(n,t),n.prototype.w_=function(n,r){return t.prototype.w_.call(this,n,r)},vt(n,[{key:"r_",get:function(){return Nt.wl<3}},{key:"o_",get:function(){return Nt.wl>=3}},{key:"e_",get:function(){var t=this;return a.tizen&&!this.I_&&a.tizen.systeminfo.getPropertyValue("DISPLAY",function(n){var r=n.resolutionWidth,i=n.resolutionHeight;1===r&&1===i||(t.I_={width:r,height:i})}),this.I_}},{key:"v_",get:function(){return Nt.wl<3}}]),n}(Ln),Vn=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).I_=void 0,n}return at(n,t),vt(n,[{key:"e_",get:function(){var t=this;return a.webOS&&!this.I_&&a.webOS.deviceInfo(function(n){t.I_={width:n.screenWidth,height:n.screenHeight}}),this.I_}},{key:"c_",get:function(){return!1}}]),n}(Ln),Hn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"l_",get:function(){return!0}},{key:"A_",get:function(){return this.k_.A_}}]),n}(Ln),Wn=function(t){function n(){return t.apply(this,arguments)||this}return at(n,t),vt(n,[{key:"y_",get:function(){return Nt.IS_FIRETV_AFTMM}}]),n}(Ln);!function(t){An=t}(function(){var t=function(){if(Nt.Ul)return new mn;if(Nt.Dl||Nt.Ol)return new Cn;if(Nt.zl)return new Dn;if(Nt.Tf)return new Pn;return new bn}();return Nt.Ud?new Mn(t):Nt.Pl?new Wn(t):Nt.te?new Bn(t):Nt._l?new Un(t):Nt.yl?new Vn(t):Nt.yd?new Hn(t):new Ln(t)}());var xn=!(Nt.Ol&&!Nt.Ml),Gn=self.console;function jn(t){if(Dt(t))try{return JSON.stringify(t)}catch(t){}return t}function Kn(t){return t.map(jn).join(" ")}function qn(t){var n=Gn&&Gn[t];return n?n.bind&&xn?n.bind(Gn):function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];Gn[t](Kn(r))}:void 0}var zn=qn("log")||Ft,Xn=qn("warn")||zn.bind(void 0,"WARNING:"),Yn=qn("error")||zn.bind(void 0,"ERROR:"),$n=function(){var t=Gn&&Gn.assert;return t?t.bind&&xn?t.bind(Gn):function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];Gn.assert(t,Kn(r))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t||Yn.apply(void 0,[].concat(["Assertion failed:"],r))}}();function Zn(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),g.defineProperty(t,i.key,i)}}function Jn(t,n){var r=function(t,n){var r=t.length;if(r<=1)return t;for(var i=new Array(r),e=1;e<r;e*=2){Qn(t,n,e,i);var u=t;t=i,i=u}return t}(t,n);return r!==t&&Qn(r,null,t.length,t),t}function Qn(t,n,r,i){var e,u,o,f,s,c=t.length,a=0,h=2*r;for(e=0;e<c;e+=h)for(o=(u=e+r)+r,u>c&&(u=c),o>c&&(o=c),f=e,s=u;;)if(f<u&&s<o)n(t[f],t[s])<=0?i[a++]=t[f++]:i[a++]=t[s++];else if(f<u)i[a++]=t[f++];else{if(!(s<o))break;i[a++]=t[s++]}}var tr=/[a-zA-Z]/,nr=/[0-9]/,rr=/[0-9a-fA-F]/,ir=/^0x/i,er=/^[0-9]+$/,ur=/^[0-9a-fA-F]+$/,or=/^[0-7]+$/,fr=g.prototype.toString,sr=Array.isArray||function(t){return"[object Array]"===fr.call(t)},cr=void 0!==n&&"symbol"==typeof i;function ar(t){return sr(t)?t:Array.from(t)}function hr(t,n,r){var i=t[n];t[n]=t[r],t[r]=i}function vr(t){return t>=65&&t<=90}function lr(t){return vr(t)||function(t){return t>=97&&t<=122}(t)}function _r(t){return t>=48&&t<=57}function dr(t){return _r(t)||lr(t)}function yr(t){return _r(t)||t>=65&&t<=70||t>=97&&t<=102}function wr(t){return vr(t)?t+32:t}function Ir(t){return _r(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function Er(t,n){return void 0===n&&(n=!1),0<=t&&t<=9?t+48:10<=t&&t<=15?t+(n?87:55):-1}var gr=p.min,pr=String.fromCharCode;function Rr(t){for(var n=t.length,r=[],i=0;i<n;i+=16384){var e=gr(i+16384,n);r.push(pr.apply(null,t.slice(i,e)))}return r.join("")}var Sr=2147483647,Or=/[^\0-\x7E]/,Tr=/[\x2E\u3002\uFF0E\uFF61]/g,kr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},br=p.floor,mr=String.fromCharCode;function Nr(t){throw new RangeError(kr[t])}function Ar(t){for(var n=[],r=0,i=t.length;r<i;){var e=t.charCodeAt(r++);if(e>=55296&&e<=56319&&r<i){var u=t.charCodeAt(r++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),r--)}else n.push(e)}return n}var Cr,Dr,Pr,Fr=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},Lr=function(t,n,r){var i=0;for(t=r?br(t/700):t>>1,t+=br(t/n);t>455;i+=36)t=br(t/35);return br(i+36*t/(t+38))},Br=function(t){return function(t,n){var r=t.split("@"),i="";r.length>1&&(i=r[0]+"@",t=r[1]);var e=function(t,n){for(var r=[],i=t.length;i--;)r[i]=n(t[i]);return r}((t=t.replace(Tr,".")).split("."),n).join(".");return i+e}(t,function(t){return Or.test(t)?"xn--"+function(t){for(var n=[],r=(t=Ar(t)).length,i=128,e=0,u=72,o=0,f=t;o<f.length;o++){var s=f[o];s<128&&n.push(mr(s))}var c=n.length,a=c;for(c&&n.push("-");a<r;){for(var h=Sr,v=0,l=t;v<l.length;v++){var _=l[v];_>=i&&_<h&&(h=_)}var d=a+1;h-i>br((Sr-e)/d)&&Nr("overflow"),e+=(h-i)*d,i=h;for(var y=0,w=t;y<w.length;y++){var I=w[y];if(I<i&&++e>Sr&&Nr("overflow"),I==i){for(var E=e,g=36;;g+=36){var p=g<=u?1:g>=u+26?26:g-u;if(E<p)break;var R=E-p,S=36-p;n.push(mr(Fr(p+R%S,0))),E=br(R/S)}n.push(mr(Fr(E,0))),u=Lr(e,d,a==c),e=0,++a}}++e,++i}return n.join("")}(t):t})};function Mr(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i)}return Rr(n)}function Ur(t){if(t>=55296&&t<=57343)throw new I("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function Vr(t,n){return t>>n&63|128}function Hr(t,n){4294967168&t?(4294965248&t?4294901760&t?4292870144&t||(n.push(t>>18&7|240),n.push(Vr(t,12)),n.push(Vr(t,6))):(Ur(t),n.push(t>>12&15|224),n.push(Vr(t,6))):n.push(t>>6&31|192),n.push(63&t|128)):n.push(t)}function Wr(t){for(var n=[],r=0;r<t.length;r++){Hr(t[r],n)}return n}function xr(){if(Pr>=Dr)throw new I("Invalid byte index");var t=255&Cr[Pr];if(Pr++,128==(192&t))return 63&t;throw new I("Invalid continuation byte")}function Gr(){var t,n;if(Pr>Dr)throw new I("Invalid byte index");if(Pr===Dr)return!1;if(t=255&Cr[Pr],Pr++,!(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|xr())>=128)return n;throw new I("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|xr()<<6|xr())>=2048)return Ur(n),n;throw new I("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|xr()<<12|xr()<<6|xr())>=65536&&n<=1114111)return n;throw new I("Invalid UTF-8 detected")}function jr(t){return[37,Er(t>>4),Er(15&t)]}function Kr(t){return function(t){return t>=0&&t<=31}(t)||t>126}function qr(t){return Kr(t)||32===t||34===t||60===t||62===t||96===t}function zr(t){return qr(t)||35===t||63===t||123===t||125===t}function Xr(t){return zr(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function Yr(t){return t<33||t>126||34===t||35===t||60===t||62===t}function $r(t){return Yr(t)||39===t}function Zr(t,n){if(!n(t))return[t];for(var r=Wr([t]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,jr(u))}return i}function Jr(t,n){for(var r=[],i=0,e=Ar(t);i<e.length;i++){var u=e[i];r.push.apply(r,Zr(u,n))}return Mr(r)}function Qr(t){return function(t){for(var n=[],r=t.length,i=0;i<r;i++){var e=t[i];if(37===e&&i+2<r&&yr(t[i+1])&&yr(t[i+2])){var u=Ir(t[i+1])<<4|Ir(t[i+2]);n.push(u),i+=2}else n.push(e)}return n}(Wr(t))}function ti(t){return Mr(function(t){Cr=t.slice(),Dr=Cr.length,Pr=0;for(var n,r=[];!1!==(n=Gr());)r.push(n);return r}(Qr(Ar(t))))}function ni(t){var n=t.length,r=[0,0,0,0,0,0,0,0],i=0,e=null,u=0;if(u<n&&":"===t[u]){if(!(u+1<n&&":"===t[u+1]))throw new E;u+=2,e=i+=1}for(;u<n;){if(8===i)throw new E("Too many groups");if(":"!==t[u]){for(var o=0,f=0;f<4&&u<n&&rr.test(t[u]);)o=o<<4|R(t[u],16),u+=1,f+=1;if("."===t[u]){if(0===f)throw new E;if(u-=f,i>6)throw new E;for(var s=0;u<n;){var c=null;if(s>0){if(!("."===t[u]&&s<4))throw new E;u+=1}if(!nr.test(t[u]))throw new E;for(;u<n&&nr.test(t[u]);){var a=R(t[u],10);if(null===c)c=a;else{if(0===c)throw new E;if((c=10*c+a)>255)throw new E}u+=1}r[i]=r[i]<<8|c,2!==(s+=1)&&4!==s||(i+=1)}if(4!==s)throw new E;break}if(":"===t[u]){if((u+=1)===n)throw new E}else if(u<n)throw new E;r[i]=o,i+=1}else{if(null!==e)throw new E("Too many :: groups");u+=1,e=i+=1}}if(null!==e){var h=i-e;for(i=7;0!==i&&h>0;)hr(r,i,e+h-1),i-=1,h-=1}else if(8!==i)throw new E;return r}function ri(t){var n=10,r=er;return ir.test(t)?(t=t.slice(2),n=16,r=ur):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,r=or),""===t?0:r.test(t)?R(t,n):void 0}var ii={R_:4},ei=/[\0\t\n\r #%/:?@\[\\\]]/,ui=/[\0\t\n\r #/:?@\[\\\]]/;function oi(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new E("Invalid IPv6 address");return{R_:2,x_:ni(t.slice(1,-1))}}if(!n)return function(t){if(ui.test(t))throw new E("Invalid code point in opaque host");var n=Jr(t,Kr);return""===n?ii:{R_:3,B_:n}}(t);var r=function(t){var n=function(t){return Br(t.toLowerCase())}(t);return n}(ti(t));if(ei.test(r))throw new E("Invalid code point in host");var i=function(t){var n=t.split(".");if(""===n[n.length-1]&&n.pop(),!(n.length>4)){for(var r=[],i=0;i<n.length;i++){var e=n[i];if(""===e)return;var u=ri(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new E;if(r[r.length-1]>=p.pow(256,5-r.length))throw new E;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*p.pow(256,3-s);return f}}(r);return void 0!==i?{R_:1,x_:i}:""===r?ii:{R_:0,D_:r}}function fi(t){switch(t.R_){case 0:return t.D_;case 1:return function(t){for(var n=[],r=t,i=1;i<=4;i++)n.push(""+(255&r)),4!==i&&n.push("."),r>>>=8;return n.reverse().join("")}(t.x_);case 2:return"["+function(t){for(var n="",r=function(t){for(var n=0,r=0,i=0,e=0,u=0;u<8;u++)0===t[u]?(0===e&&(i=u),e++):(e>r&&(n=i,r=e),e=0);return e>r&&(n=i,r=e),r>1?n:null}(t),i=!1,e=0;e<8;e++){if(i){if(0===t[e])continue;i=!1}r!==e?(n+=t[e].toString(16),7!==e&&(n+=":")):(n+=0===e?"::":":",i=!0)}return n}(t.x_)+"]";case 3:return t.B_;case 4:return""}}var si=/\+/g;function ci(t){return 42===t||45===t||46===t||95===t||dr(t)}function ai(t){for(var n=t.split("&"),r=[],i=0;i<n.length;i++){var e=n[i];if(""!==e){var u=e.indexOf("="),o=void 0,f=void 0;-1!==u?(o=e.slice(0,u),f=e.slice(u+1)):(o=e,f=""),o=o.replace(si," "),f=f.replace(si," ");var s=ti(o),c=ti(f);r.push([s,c])}}return r}function hi(t){for(var n="",r=0;r<t.length;r++){var i=t[r];r>0&&(n+="&"),n+=vi(Wr(Ar(i[0])))+"="+vi(Wr(Ar(i[1])))}return n}function vi(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];32===i?n.push(43):ci(i)?n.push(i):n.push.apply(n,jr(i))}return Rr(n)}var li=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function _i(t){var n=""+t,r=li.exec(n);return r?function(t,n){for(var r=t.length,i=[],e=n;e<r;e++){var u=t.charCodeAt(e);if(yi(u))if(wi(u)||e===r-1)i.push(di);else{var o=t.charCodeAt(e+1);wi(o)?(i.push(u,o),e++):i.push(di)}else i.push(u)}return t.slice(0,n)+Rr(i)}(n,r.index):n}var di=65533,yi=function(t){return 55296==(63488&t)},wi=function(t){return!!(1024&t)};function Ii(t,n){var r=t[0],i=n[0];return r===i?0:r<i?-1:1}function Ei(t){t.N_.length=0}function gi(t,n){!function(t,n){for(var r=0;r<n.length;r++)t[r]=n[r];t.length=n.length}(t.N_,ai(n))}function pi(t){if(t.O_){var n=hi(t.N_);""===n&&(n=null),t.O_.O_.L_=n}}var Ri=function(){function t(t){if(void 0===t&&(t=void 0),this.O_=null,null==t)this.N_=[];else if("object"==typeof t||"function"==typeof t)if(function(t){return t instanceof Ri&&!!sr(t.N_)&&(!cr||t[i]===Si)}(t))this.N_=t.N_.slice();else if(function(t){return null!=t&&(!!sr(t)||!!cr&&"function"==typeof t[i])}(t)){this.N_=[];for(var n=0,r=ar(t);n<r.length;n++){var e=ar(r[n]);if(2!==e.length)throw new E("Invalid name-value pair");this.N_.push([_i(e[0]),_i(e[1])])}}else for(var u in this.N_=[],t)g.prototype.hasOwnProperty.call(t,u)&&this.N_.push([_i(u),_i(t[u])]);else(t=_i(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.N_=ai(t)}var n=t.prototype;return n.append=function(t,n){t=_i(t),n=_i(n),this.N_.push([t,n]),pi(this)},n.delete=function(t){t=_i(t);for(var n=this.N_,r=0;r<n.length;){n[r][0]===t?n.splice(r,1):r++}pi(this)},n.get=function(t){t=_i(t);for(var n=this.N_,r=0;r<n.length;r++){var i=n[r];if(i[0]===t)return i[1]}return null},n.getAll=function(t){t=_i(t);for(var n=this.N_,r=[],i=0;i<n.length;i++){var e=n[i];e[0]===t&&r.push(e[1])}return r},n.has=function(t){t=_i(t);for(var n=this.N_,r=0;r<n.length;r++){if(n[r][0]===t)return!0}return!1},n.set=function(t,n){t=_i(t),n=_i(n);for(var r=this.N_,i=!1,e=0;e<r.length;){var u=r[e];u[0]===t?i?r.splice(e,1):(u[1]=n,i=!0,e++):e++}i||r.push([t,n]),pi(this)},n.sort=function(){Jn(this.N_,Ii),pi(this)},n.toString=function(){return hi(this.N_)},n.entries=function(){return new bi(this.N_,Oi)},n.keys=function(){return new bi(this.N_,Ti)},n.values=function(){return new bi(this.N_,ki)},n.forEach=function(t){var n=this;this.N_.forEach(function(r){return t(r[1],r[0],n)})},t}(),Si=Ri.prototype.entries;cr&&(Ri.prototype[i]=Si);var Oi=function(t){return[t[0],t[1]]},Ti=function(t){return t[0]},ki=function(t){return t[1]},bi=function(){function t(t,n){this.M_=0,this.N_=t,this.F_=n}return t.prototype.next=function(){return this.M_<this.N_.length?{done:!1,value:this.F_(this.N_[this.M_++])}:{done:!0,value:void 0}},t}(),mi="null";var Ni=g.create(null);Ni.ftp=21,Ni.file=0,Ni.gopher=70,Ni.http=80,Ni.https=443,Ni.ws=80,Ni.wss=443;var Ai=/^(?:\.|%2e)$/i,Ci=/^(?:\.|%2e){2}$/i;function Di(t){return Ai.test(t)}function Pi(t){return Ci.test(t)}function Fi(t){return void 0!==Ni[t]}function Li(t){return Fi(t.H_)}function Bi(t){return""!==t.q_||""!==t.U_}function Mi(t){var n=t.length;if(!(n>=2))return!1;if(!Vi(t.slice(0,2)))return!1;if(2!==n){var r=t[2];if(47!==r&&92!==r&&63!==r&&35!==r)return!1}return!0}function Ui(t){return 2===t.length&&tr.test(t[0])&&(":"===t[1]||"|"===t[1])}function Vi(t){return 2===t.length&&Ui(Rr(t))}function Hi(t){return Ui(t)&&":"===t[1]}function Wi(t){var n=t.V_;0!==n.length&&("file"===t.H_&&1===n.length&&Hi(n[0])||n.pop())}function xi(t){return null===t.W_||ii===t.W_||t.X_||"file"===t.H_}var Gi=-1,ji=/\t|\n|\r/g,Ki=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function qi(t,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new Xi,t=t.replace(Ki,""));var e=null!==i?i:0;n=n||null;for(var u=[],o=!1,f=!1,s=!1,c=Ar(t=t.replace(ji,"")),a=c.length,h=0;h<=a;){var v=h<a?c[h]:Gi;switch(e){case 0:if(!lr(v)){if(null===i){u.length=0,e=2;continue}throw new E("Invalid scheme")}u.push(wr(v)),e=1;break;case 1:if(dr(v)||43===v||45===v||46===v)u.push(wr(v));else{if(58!==v){if(null===i){u.length=0,e=2,h=0;continue}throw new E("Invalid scheme")}var l=Mr(u);if(null!==i){if(Fi(r.H_)&&!Fi(l))return;if(!Fi(r.H_)&&Fi(l))return;if((Bi(r)||null!==r.z_)&&"file"===l)return;if("file"===r.H_&&(r.W_===ii||null===r.W_))return}if(r.H_=l,null!==i)return void(Li(r)&&r.z_===Ni[r.H_]&&(r.z_=null));u.length=0,"file"===r.H_?e=13:Li(r)&&n&&n.H_===r.H_?e=3:Li(r)?e=7:47===c[h+1]?(e=4,h+=1):(r.X_=!0,r.V_.push(""),e=18)}break;case 2:if(!n||n.X_&&35!==v)throw new E("Invalid scheme");n.X_&&35===v?(r.H_=n.H_,r.V_=n.V_.slice(),r.L_=n.L_,r.G_="",r.X_=!0,e=20):"file"!==n.H_?(e=5,h-=1):(e=13,h-=1);break;case 3:47===v&&47===c[h+1]?e=8:(e=5,h-=1);break;case 4:47===v?e=9:(e=17,h-=1);break;case 5:r.H_=n.H_,Gi===v?(r.q_=n.q_,r.U_=n.U_,r.W_=n.W_,r.z_=n.z_,r.V_=n.V_.slice(),r.L_=n.L_):47===v?e=6:63===v?(r.q_=n.q_,r.U_=n.U_,r.W_=n.W_,r.z_=n.z_,r.V_=n.V_.slice(),r.L_="",e=19):35===v?(r.q_=n.q_,r.U_=n.U_,r.W_=n.W_,r.z_=n.z_,r.V_=n.V_.slice(),r.L_=n.L_,r.G_="",e=20):92===v&&Li(r)?e=6:(r.q_=n.q_,r.U_=n.U_,r.W_=n.W_,r.z_=n.z_,r.V_=n.V_.slice(),r.V_.pop(),e=17,h-=1);break;case 6:!Li(r)||47!==v&&92!==v?47===v?e=9:(r.q_=n.q_,r.U_=n.U_,r.W_=n.W_,r.z_=n.z_,e=17,h-=1):e=8;break;case 7:if(47!==v||47!==c[h+1]){e=8;continue}e=8,h+=1;break;case 8:47!==v&&92!==v&&(e=9,h-=1);break;case 9:if(64===v){o&&u.unshift(37,52,48),o=!0;for(var _=0;_<u.length;_++){var d=u[_];if(58!==d||s){var y=Mr(Zr(d,Xr));s?r.U_+=y:r.q_+=y}else s=!0}u.length=0}else if(Gi===v||47===v||63===v||35===v||Li(r)&&92===v){if(o&&0===u.length)throw new E("Invalid host");h-=u.length+1,u.length=0,e=10}else u.push(v);break;case 10:case 11:if(null!==i&&"file"===r.H_)h-=1,e=15;else if(58!==v||f)if(Gi===v||47===v||63===v||35===v||Li(r)&&92===v){if(h-=1,Li(r)&&0===u.length)throw new E("Invalid host");if(null!==i&&0===u.length&&(Bi(r)||null!==r.z_))return;var w=oi(Mr(u),Li(r));if(r.W_=w,u.length=0,e=16,null!==i)return}else 91===v?f=!0:93===v&&(f=!1),u.push(v);else{if(0===u.length)throw new E("Invalid host");var I=oi(Mr(u),Li(r));if(r.W_=I,u.length=0,e=12,11===i)return}break;case 12:if(_r(v))u.push(v);else{if(!(Gi===v||47===v||63===v||35===v||Li(r)&&92===v||null!==i))throw new E("Invalid port");if(0!==u.length){var g=R(Mr(u),10);if(g>65535)throw new E("Invalid port");r.z_=g===Ni[r.H_]?null:g,u.length=0}if(null!==i)return;e=16,h-=1}break;case 13:r.H_="file",47===v||92===v?e=14:n&&"file"===n.H_?Gi===v?(r.W_=n.W_,r.V_=n.V_.slice(),r.L_=n.L_):63===v?(r.W_=n.W_,r.V_=n.V_.slice(),r.L_="",e=19):35===v?(r.W_=n.W_,r.V_=n.V_.slice(),r.L_=n.L_,r.G_="",e=20):(Mi(c.slice(h))||(r.W_=n.W_,r.V_=n.V_.slice(),Wi(r)),e=17,h-=1):(e=17,h-=1);break;case 14:47===v||92===v?e=15:(n&&"file"===n.H_&&!Mi(c.slice(h))&&(Hi(n.V_[0])?r.V_.push(n.V_[0]):r.W_=n.W_),e=17,h-=1);break;case 15:if(Gi===v||47===v||92===v||63===v||35===v)if(h-=1,null===i&&Vi(u))e=17;else if(0===u.length){if(r.W_=ii,null!==i)return;e=16}else{var p=oi(Mr(u),Li(r));if(0===p.R_&&"localhost"===p.D_&&(p=ii),r.W_=p,null!==i)return;u.length=0,e=16}else u.push(v);break;case 16:Li(r)?(e=17,47!==v&&92!==v&&(h-=1)):null===i&&63===v?(r.L_="",e=19):null===i&&35===v?(r.G_="",e=20):Gi!==v&&(e=17,47!==v&&(h-=1));break;case 17:if(Gi===v||47===v||Li(r)&&92===v||null===i&&(63===v||35===v)){var S=Mr(u);if(Pi(S)?(Wi(r),47===v||Li(r)&&92===v||r.V_.push("")):!Di(S)||47===v||Li(r)&&92===v?Di(S)||("file"===r.H_&&0===r.V_.length&&Vi(u)&&(ii!==r.W_&&null!==r.W_&&(r.W_=ii),u[1]=58,S=Mr(u)),r.V_.push(S)):r.V_.push(""),u.length=0,"file"===r.H_&&(Gi===v||63===v||35===v))for(;r.V_.length>1&&""===r.V_[0];)r.V_.shift();63===v?(r.L_="",e=19):35===v&&(r.G_="",e=20)}else u.push.apply(u,Zr(v,zr));break;case 18:63===v?(r.L_="",e=19):35===v?(r.G_="",e=20):Gi!==v&&(r.V_[0]+=Mr(Zr(v,Kr)));break;case 19:null===i&&35===v?(r.G_="",e=20):Gi!==v&&(r.L_+=Mr(Zr(v,Li(r)?$r:Yr)));break;case 20:Gi===v||0===v||(r.G_+=Mr(Zr(v,qr)))}h++}return r}function zi(t,n,r,i){try{qi(t,n,r,i)}catch(t){}}var Xi=function(){this.H_="",this.q_="",this.U_="",this.W_=null,this.z_=null,this.V_=[],this.L_=null,this.G_=null,this.X_=!1};function Yi(t){switch(t.H_){case"blob":var n;try{n=qi(t.V_[0],null)}catch(t){return mi}return Yi(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(t,n,r){return t+"://"+fi(n)+(null===r?"":":"+r)}(t.H_,t.W_,t.z_);default:return mi}}var $i=function(){function t(t,n){var r,i=null;if(null!=n)if(function(t){return null!=t&&t instanceof $i&&"object"==typeof t.O_}(n))i=n.O_;else try{i=qi(String(n),null)}catch(t){throw new E("Invalid base URL: "+t.message)}try{r=qi(String(t),i)}catch(t){throw new E("Invalid URL: "+t.message)}var e=r.L_;this.O_=r,this.L_=function(t){var n=new Ri;return null!==t&&gi(n,t),n}(e),this.L_.O_=this}var n=t.prototype;return n.toString=function(){return this.href},n.toJSON=function(){return this.href},function(t,n,r){n&&Zn(t.prototype,n),r&&Zn(t,r)}(t,[{key:"href",get:function(){return function(t,n){void 0===n&&(n=!1);var r=t.H_+":";if(null!==t.W_?(r+="//",Bi(t)&&(r+=t.q_,""!==t.U_&&(r+=":"+t.U_),r+="@"),r+=fi(t.W_),null!==t.z_&&(r+=":"+t.z_)):null===t.W_&&"file"===t.H_&&(r+="//"),t.X_)r+=t.V_[0];else for(var i=0,e=t.V_;i<e.length;i++)r+="/"+e[i];return null!==t.L_&&(r+="?"+t.L_),n||null===t.G_||(r+="#"+t.G_),r}(this.O_)},set:function(t){var n;try{n=qi(String(t),null)}catch(t){throw new E("Invalid URL: "+t.message)}this.O_=n,Ei(this.L_);var r=this.O_.L_;null!==r&&gi(this.L_,r)}},{key:"origin",get:function(){return Yi(this.O_)}},{key:"protocol",get:function(){return this.O_.H_+":"},set:function(t){zi(t+":",null,this.O_,0)}},{key:"username",get:function(){return this.O_.q_},set:function(t){xi(this.O_)||(this.O_.q_=Jr(t,Xr))}},{key:"password",get:function(){return this.O_.U_},set:function(t){xi(this.O_)||(this.O_.U_=Jr(t,Xr))}},{key:"host",get:function(){var t=this.O_,n=t.W_;if(null===n)return"";var r=t.z_,i=fi(n);return null!==r&&(i+=":"+r),i},set:function(t){this.O_.X_||zi(t,null,this.O_,10)}},{key:"hostname",get:function(){var t=this.O_.W_;return null===t?"":fi(t)},set:function(t){this.O_.X_||zi(t,null,this.O_,11)}},{key:"port",get:function(){var t=this.O_.z_;return null===t?"":""+t},set:function(t){xi(this.O_)||(""===t?this.O_.z_=null:zi(t,null,this.O_,12))}},{key:"pathname",get:function(){var t=this.O_.V_;return this.O_.X_?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.O_.X_||(this.O_.V_.length=0,zi(t,null,this.O_,16))}},{key:"search",get:function(){var t=this.O_.L_;return null===t||""===t?"":"?"+t},set:function(t){t=_i(t);var n=this.O_;if(""===t)return n.L_=null,void Ei(this.L_);"?"===t[0]&&(t=t.slice(1)),n.L_="",zi(t,null,n,19),gi(this.L_,t)}},{key:"searchParams",get:function(){return this.L_}},{key:"hash",get:function(){var t=this.O_.G_;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.O_.G_="",zi(t,null,this.O_,20)):this.O_.G_=null}}]),t}();function Zi(t){return t.document&&t.document.baseURI||t.location.href||""}var Ji=function(){function t(){this.Cf=void 0,this.wv=new Qi,this.yv=An,this.Av=function(){if(self.URL)try{var t=new self.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href}catch(t){}return!1}(),self.performance&&self.performance.now?this.Cf=function(){return self.performance.now()}:this.Cf=pn}var n=t.prototype;return n.j_=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];zn.apply(void 0,[].concat(n))},n.Q_=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Xn.apply(void 0,[].concat(n))},n.K_=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Yn.apply(void 0,[].concat(n))},n.Y_=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];$n.apply(void 0,[].concat([t],r))},n.If=function(t,n){return _(t,n)},n.Z_=function(t,n){return y(t,n)},n.Pf=function(t){d(t)},n.J_=function(t){w(t)},n.ev=function(){return this.rv.ev()},n.ov=function(){return this.rv.ov()},n.hv=function(){return this.rv.hv()},n.uv=function(){return this.rv.uv()},n.fv=function(){return this.rv.fv()},n._v=function(t,n){return this.rv._v(t,n)},n.vv=function(t){return this.rv.vv(t)},n.Oh=function(t,n){var r;return void 0===n&&(n=Zi(a)),r="object"!==(void 0===n?"undefined":m(n))||b(n,$i)?n:n.href,new $i(t,r)},n.pv=function(t,n){if(void 0===n&&(n=Zi(a)),this.Av){var r=function(t){return"string"==typeof t}(n)?n:n.toString();return new self.URL(t,r).href}return this.Oh(t,n).href},vt(t,[{key:"mv",get:function(){return this.wv}},{key:"ie",get:function(){return this.yv}},{key:"bv",get:function(){return{Tv:l&&l.userAgent.match(/Android /i)?"Android":"other",Sv:Boolean(l&&l.userAgent.match(/Android 8.0.0/i))}}},{key:"Ev",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"Cv",get:function(){return"languages"in l?l.languages.slice():[l.language]}}]),t}(),Qi=function(){function t(){}return vt(t,[{key:"Pv",get:function(){return l.oscpu}},{key:"ie",get:function(){return l.platform}},{key:"Iv",get:function(){return l.vendor}},{key:"Rv",get:function(){return l.vendorSub}}]),t}();var te=function(){function t(){}var n=t.prototype;return n.fv=function(){return nt.resolve(!1)},n.ov=function(){return nt.resolve(!1)},n.uv=function(){return nt.resolve(!1)},n.hv=function(){return nt.resolve(!1)},n.vv=function(t){return nt.resolve(!1)},n._v=function(t,n){return nt.resolve(!1)},n.ev=function(){return nt.resolve(!1)},t}(),ne=function(){function t(){}var n=t.prototype;return n.Ny=function(){},n.zm=function(t){},n.Vm=function(t){},n.Wm=function(t,n){},t}(),re=function(t){return t.Ly="arraybuffer",t.My="json",t.Fy="stream",t.Hy="text",t}({});var ie=function(){function t(n){var r=this;if(this.Nv=void 0,this.Nv={},n)if(b(n,t))n.asList().forEach(function(t){var n=t[0],i=t[1];r.append(n,i)});else if(function(t){return Dt(t)&&"function"==typeof t.forEach}(n))n.forEach(function(t,n){Array.isArray(t)&&2===t.length?r.append(t[0],t[1]):r.append(n,t)});else if(function(t){return void 0!==i&&Dt(t)&&i in t}(n))for(var e,u=_t(n);!(e=u()).done;){var o=e.value,f=o[0],s=o[1];this.append(f,s)}else g.getOwnPropertyNames(n).forEach(function(t){r.append(t,n[t])});else;}var n=t.prototype;return n.append=function(t,n){var r=t,i=n;r=ee(r),i=ue(i);var e=r.toLowerCase();if(this.Nv.hasOwnProperty(e)){var u=this.Nv[e],o=u[1];u[1]=o?o+", "+i:i}else this.Nv[e]=[r,i]},n.delete=function(t){var n=ee(t).toLowerCase();delete this.Nv[n]},n.get=function(t){var n=ee(t).toLowerCase();return this.Nv.hasOwnProperty(n)?this.Nv[n][1]:null},n.has=function(t){var n=ee(t).toLowerCase();return this.Nv.hasOwnProperty(n)},n.set=function(t,n){var r=t,i=(r=ee(r)).toLowerCase();this.Nv[i]=[r,ue(n)]},n.forEach=function(t,n){for(var r in this.Nv)this.Nv.hasOwnProperty(r)&&t.call(n,this.Nv[r][1],r,this)},n.asList=function(){var t=[];for(var n in this.Nv)if(this.Nv.hasOwnProperty(n)){var r=this.Nv[n],i=r[0],e=r[1];t.push([i,e])}return t},n.qy=function(){var t={};return this.forEach(function(n,r){t[r]=n}),t},n.Uy=function(t){var n=this;t.forEach(function(t,r){n.append(r,t)})},n.Vy=function(t){var n=this;t.forEach(function(t,r){n.set(r,t)})},t}();function ee(t){var n=t;if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new E("Invalid character in header field name");return n}function ue(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}var oe=function(t,n){this.Ky=void 0,this.pb=void 0,this.Xb=void 0,this.mb=void 0,this.zb=void 0,this.Gb=void 0,this.Vf=void 0,this.Uv=void 0,this.jb=void 0,this.Qb=void 0,this.Tb=void 0,this.Kb=void 0,this.Yb=void 0,this.Zb=void 0,this.Jb=void 0,this.$b=void 0;var r,i,e,u,o,f,s,c,a,h,v,l,_,d,y,w,I,E,g=t.Tb;n?(r=n.Ky,i=n.pb,e=n.Xb,u=n.mb,o=n.zb,f=n.Gb,s=n.Vf,c=n.Uv,a=n.jb,h=n.Qb,v=n.Kb,l=n.Yb,_=n.Zb,d=n.Jb,y=n.$b):(r=null,i={},e="GET",u=re.Hy,o=0,f=0,c="",a="",h="",v=!1,_=void 0,d=!1,y=void 0),this.Tb=g,this.Ky=t.Ky||r,this.pb=new ie(t.pb||i),this.Xb=t.Xb||e,this.mb=t.mb||u,this.zb=void 0!==t.zb?Number(t.zb)||0:o,this.Gb=void 0!==t.Gb?Number(t.Gb)||0:f,this.Vf=t.Vf||s||(new jt).Vf,this.Uv=t.Uv||c,this.jb=t.jb||a,this.Qb=t.Qb||h,this.Kb=void 0!==t.Kb?Boolean(t.Kb):v,this.Yb=t.Yb||l,this.Zb=null!=(w=t.Zb)?w:_,this.Jb=null!=(I=t.Jb)?I:d,this.$b=null!=(E=t.$b)?E:y},fe=function(t){return t.aT="HttpOpenError",t.uT="HttpResponseError",t.cT="HttpTimeoutError",t}({}),se=function(t){function n(n,r,i){var e;return(e=t.call(this,r,i)||this).dT=void 0,e.dT=n,e}return at(n,t),vt(n,[{key:"wb",get:function(){return this.dT}}]),n}(qt),ce=function(t){function n(n,r){return t.call(this,n,"Error while opening "+n.Tb+".",r)||this}return at(n,t),vt(n,[{key:"name",get:function(){return fe.aT}}]),n}(se),ae=function(){function t(){}var n=t.prototype;return n.wb=function(t){return nt.reject(new ce(new oe(t)))},n.tT=function(t){},n.jn=function(){},t}(),he=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return at(n,t),n}(qt),ve=function(t){function n(){var n;return(n=t.apply(this,arguments)||this).fS=new te,n.wM=new ae,n.i=new ne,n}return at(n,t),n.prototype.VT=function(t){throw new he},vt(n,[{key:"rv",get:function(){return this.fS}},{key:"_S",get:function(){return!1}},{key:"gS",get:function(){return!1}},{key:"AS",get:function(){return!1}},{key:"wS",get:function(){return!1}},{key:"yS",get:function(){return this.i}},{key:"bS",get:function(){return{TS:Ft}}},{key:"SS",get:function(){return"default"}},{key:"kS",get:function(){return"unknown"}},{key:"ES",get:function(){return this.wM}},{key:"PS",get:function(){return!1}}]),n}(Ji);!function(t){0}(new ve);var le=function(t){return t[t.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",t[t.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4",t}({}),_e=function(t){return t[t.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",t[t.LICENSE_ERROR=2e3]="LICENSE_ERROR",t[t.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",t[t.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",t[t.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",t[t.LICENSE_INVALID_FEATURE=2004]="LICENSE_INVALID_FEATURE",t[t.SOURCE_INVALID=3e3]="SOURCE_INVALID",t[t.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",t[t.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",t[t.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",t[t.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",t[t.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",t[t.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",t[t.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",t[t.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",t[t.MEDIA_ABORTED=5004]="MEDIA_ABORTED",t[t.NETWORK_ERROR=6e3]="NETWORK_ERROR",t[t.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",t[t.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",t[t.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",t[t.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",t[t.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",t[t.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",t[t.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",t[t.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",t[t.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",t[t.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",t[t.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",t[t.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",t[t.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",t[t.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",t[t.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",t[t.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",t[t.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",t[t.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",t[t.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",t[t.AD_ERROR=1e4]="AD_ERROR",t[t.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",t[t.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR",t[t.PICTURE_IN_PICTURE_ERROR=11001]="PICTURE_IN_PICTURE_ERROR",t[t.CACHE_SOURCE_ERROR=12e3]="CACHE_SOURCE_ERROR",t[t.CACHE_CONTENT_PROTECTION_ERROR=12001]="CACHE_CONTENT_PROTECTION_ERROR",t[t.THEO_LIVE_UNKNOWN_ERROR=13e3]="THEO_LIVE_UNKNOWN_ERROR",t[t.THEO_LIVE_CHANNEL_NOT_FOUND=13001]="THEO_LIVE_CHANNEL_NOT_FOUND",t[t.THEO_LIVE_END_OF_DEMO=13002]="THEO_LIVE_END_OF_DEMO",t[t.THEO_LIVE_ANALYTICS_ERROR=13003]="THEO_LIVE_ANALYTICS_ERROR",t}({}),de=function(t){return t[t.CONFIGURATION=1]="CONFIGURATION",t[t.LICENSE=2]="LICENSE",t[t.SOURCE=3]="SOURCE",t[t.MANIFEST=4]="MANIFEST",t[t.MEDIA=5]="MEDIA",t[t.NETWORK=6]="NETWORK",t[t.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",t[t.SUBTITLE=8]="SUBTITLE",t[t.VR=9]="VR",t[t.AD=10]="AD",t[t.FULLSCREEN=11]="FULLSCREEN",t[t.CACHE=12]="CACHE",t[t.THEOLIVE=13]="THEOLIVE",t}({});!function(t){t.fromCode=function(n){var r=p.floor(n/1e3);if(r in t)return r;throw new E("Invalid error code: "+n)}}(de||(de={}));var ye=function(t){function n(n,r,i){var e;return(e=t.call(this,r,i)||this).code=void 0,e.code=n,e}return at(n,t),vt(n,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return de.fromCode(this.code)}}]),n}(qt);var we,Ie=function(){function t(t){this.encoding=t}var n=t.prototype;return n.encode=function(t){if(!t)return new T(0);for(var n=new T(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n},n.encodeInto=function(t,n){for(var r=p.min(t.length,n.byteLength),i=0;i<r;i++)n[i]=t.charCodeAt(i);return{read:r,written:r}},t}(),Ee=function(){function t(t,n){this.encoding=t,this.fatal=(null==n?void 0:n.fatal)||!1,this.ignoreBOM=(null==n?void 0:n.ignoreBOM)||!1}return t.prototype.decode=function(t,n){return t?(r=b(t,ArrayBuffer)?new T(t):new T(t.buffer,t.byteOffset,t.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},t}();var ge=new Array(128).fill(void 0);function pe(t){return ge[t]}function Re(t){return null==t}ge.push(void 0,null,!0,!1);var Se=ge.length;function Oe(t){var n=pe(t);return function(t){t<132||(ge[t]=Se,Se=t)}(t),n}function Te(t){Se===ge.length&&ge.push(ge.length+1);var n=Se;return Se=ge[n],ge[n]=t,n}var ke=null;function be(){return(null===ke||ke.buffer.detached||ke.buffer!==we.memory.buffer)&&(ke=new T(we.memory.buffer)),ke}function me(t,n){return t>>>=0,be().subarray(t/1,t/1+n)}var Ne=void 0!==Ee?new Ee("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:function(){throw I("TextDecoder not available")}};function Ae(t,n){return t>>>=0,Ne.decode(be().subarray(t,t+n))}void 0!==Ee&&Ne.decode();var Ce=0;function De(t,n){var r=n(1*t.length,1)>>>0;return be().set(t,r/1),Ce=t.length,r}var Pe=null;function Fe(){return(null===Pe||Pe.buffer.detached||Pe.buffer!==we.memory.buffer)&&(Pe=new DataView(we.memory.buffer)),Pe}var Le=void 0!==Ie?new Ie("utf-8"):{encode:function(){throw I("TextEncoder not available")}},Be="function"==typeof Le.encodeInto?function(t,n){return Le.encodeInto(t,n)}:function(t,n){var r=Le.encode(t);return n.set(r),{read:t.length,written:r.length}};function Me(t){try{var n=we.__wbindgen_add_to_stack_pointer(-16);we.mpegts_to_fmp4(n,Te(t));var r=Fe().getInt32(n+0,!0),i=Fe().getInt32(n+4,!0);if(Fe().getInt32(n+8,!0))throw Oe(i);return Oe(r)}finally{we.__wbindgen_add_to_stack_pointer(16)}}function Ue(t){try{var n=we.__wbindgen_add_to_stack_pointer(-16);we.raw_audio_to_fmp4(n,Te(t));var r=Fe().getInt32(n+0,!0),i=Fe().getInt32(n+4,!0);if(Fe().getInt32(n+8,!0))throw Oe(i);return Oe(r)}finally{we.__wbindgen_add_to_stack_pointer(16)}}function Ve(t,n){return Mt(function(){var r,i,e;return Ut(this,function(u){switch(u.label){case 0:if("function"!=typeof Response||!b(t,Response))return[3,7];if("function"!=typeof WebAssembly.instantiateStreaming)return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,WebAssembly.instantiateStreaming(t,n)];case 2:return[2,u.sent()];case 3:if(r=u.sent(),"application/wasm"==t.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r),[3,4];case 4:return[4,t.arrayBuffer()];case 5:return i=u.sent(),[4,WebAssembly.instantiate(i,n)];case 6:return[2,u.sent()];case 7:return[4,WebAssembly.instantiate(t,n)];case 8:return b(e=u.sent(),WebAssembly.Instance)?[2,{instance:e,module:t}]:[2,e];case 9:return[2]}})})()}function He(){var t={wbg:{}};return t.wbg.__wbg_audiopid_cf63a2881fb603de=function(t){var n=pe(t).audio_pid;return Re(n)?16777215:n},t.wbg.__wbg_createoutput_f81a086f372d422e=function(t,n){var r=function(t,n){return{data:t,metadata:n}}(Oe(t),Oe(n));return Te(r)},t.wbg.__wbg_createoutputdata_f9352c5065ea01aa=function(t,n,r,i,e,u,o,f){var s,c,a,h;0!==t&&(s=me(t,n).slice(),we.__wbindgen_export_0(t,1*n,1)),0!==r&&(c=me(r,i).slice(),we.__wbindgen_export_0(r,1*i,1)),0!==e&&(a=me(e,u).slice(),we.__wbindgen_export_0(e,1*u,1)),0!==o&&(h=me(o,f).slice(),we.__wbindgen_export_0(o,1*f,1));var v=function(t,n,r,i){return{video_init:t,audio_init:n,video_media:r,audio_media:i}}(s,c,a,h);return Te(v)},t.wbg.__wbg_createoutputmetadata_79a74f7d3aafd2c5=function(t,n,r,i,e,u,o,f,s,c,a,h,v,l,_,d){var y,w,I,E;0!==r&&(y=Ae(r,i).slice(),we.__wbindgen_export_0(r,1*i,1)),0!==e&&(w=Ae(e,u).slice(),we.__wbindgen_export_0(e,1*u,1)),0!==o&&(I=me(o,f).slice(),we.__wbindgen_export_0(o,1*f,1)),0!==s&&(E=me(s,c).slice(),we.__wbindgen_export_0(s,1*c,1));var g=function(t,n,r,i,e,u,o,f,s,c,a){return{video_pid:t,audio_pid:n,video_codec:r,audio_codec:i,sps_nal:e,pps_nal:u,first_decode_timestamp:o,first_presentation_timestamp:f,first_video_presentation_timestamp:s,program_map_table_pid:c,video_frame_rate:a}}(16777215===t?void 0:t,16777215===n?void 0:n,y,w,I,E,Oe(a),Oe(h),Oe(v),16777215===l?void 0:l,0===_?void 0:d);return Te(g)},t.wbg.__wbg_createtimestampwithbase_9f3b56a7f281a060=function(t,n,r){var i=function(t,n,r){return{low:t,high:n,base:r}}(t>>>0,n>>>0,r>>>0);return Te(i)},t.wbg.__wbg_data_0dfa593a0aa2e64c=function(t,n){var r=De(pe(n).data,we.__wbindgen_export_1),i=Ce;Fe().setInt32(t+4,i,!0),Fe().setInt32(t+0,r,!0)},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,n){var r,i;try{r=t,i=n,console.error(Ae(t,n))}finally{we.__wbindgen_export_0(r,i,1)}},t.wbg.__wbg_metadata_262906c02690f219=function(t){var n=pe(t).metadata;return Re(n)?0:Te(n)},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){return Te(new I)},t.wbg.__wbg_ppsnal_24d7d831a1284b13=function(t,n){var r=pe(n).pps_nal,i=Re(r)?0:De(r,we.__wbindgen_export_1),e=Ce;Fe().setInt32(t+4,e,!0),Fe().setInt32(t+0,i,!0)},t.wbg.__wbg_programmaptablepid_2bf8112d9d4d8cb1=function(t){var n=pe(t).program_map_table_pid;return Re(n)?16777215:n},t.wbg.__wbg_spsnal_b5454d39031feeca=function(t,n){var r=pe(n).sps_nal,i=Re(r)?0:De(r,we.__wbindgen_export_1),e=Ce;Fe().setInt32(t+4,e,!0),Fe().setInt32(t+0,i,!0)},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,n){var r=function(t,n,r){if(void 0===r){var i=Le.encode(t),e=n(i.length,1)>>>0;return be().subarray(e,e+i.length).set(i),Ce=i.length,e}for(var u=t.length,o=n(u,1)>>>0,f=be(),s=0;s<u;s++){var c=t.charCodeAt(s);if(c>127)break;f[o+s]=c}if(s!==u){0!==s&&(t=t.slice(s)),o=r(o,u,u=s+3*t.length,1)>>>0;var a=be().subarray(o+s,o+u);o=r(o,u,s+=Be(t,a).written,1)>>>0}return Ce=s,o}(pe(n).stack,we.__wbindgen_export_1,we.__wbindgen_export_2),i=Ce;Fe().setInt32(t+4,i,!0),Fe().setInt32(t+0,r,!0)},t.wbg.__wbg_videopid_60d3be6c566fc051=function(t){var n=pe(t).video_pid;return Re(n)?16777215:n},t.wbg.__wbindgen_object_drop_ref=function(t){Oe(t)},t.wbg.__wbindgen_string_new=function(t,n){return Te(Ae(t,n))},t}function We(t,n){return we=t.exports,xe.__wbindgen_wasm_module=n,Pe=null,ke=null,we.__wbindgen_start(),we}function xe(t){return Mt(function(){var n,r,i,e;return Ut(this,function(u){switch(u.label){case 0:return void 0!==we?[2,we]:(void 0!==t&&(g.getPrototypeOf(t)===g.prototype?t=t.module_or_path:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===t&&(t=new URL("theomux_bg.wasm",void 0)),n=He(),("string"==typeof t||"function"==typeof Request&&b(t,Request)||"function"==typeof URL&&b(t,URL))&&(t=fetch(t)),[4,t]);case 1:return[4,Ve.apply(void 0,[u.sent(),n])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,We(i,e)]}})})()}function Ge(t){return Mt(function(){var n,r;return Ut(this,function(i){switch(i.label){case 0:return b(t,WebAssembly.Module)?n=t:(r="string"==typeof t?new URL(t):t,n="http:"===r.protocol||"https:"===r.protocol?fetch(r.href):function(t){return new nt(function(n,r){var i=new k;i.onload=function(){n(i.response||new ArrayBuffer(0))},i.onerror=function(){r(new E('Failed to fetch "'+t+'", status '+i.status))},i.open("GET",t,!0),i.responseType="arraybuffer",i.send()})}(r.href)),[4,xe({module_or_path:n})];case 1:return i.sent(),[2,{mpegts_to_fmp4:Me,raw_audio_to_fmp4:Ue}]}})})()}var je=new URL("./THEOplayer.transmux.wasm",v.href);!function(t){var n,r=nt.resolve(t()).then(function(t){n=t,r=void 0,self.postMessage({OAt:"10.7.1"})},function(t){var n=t,r={success:!1,error:n.message,errorCode:b(n,ye)?n.code:_e.MEDIA_DECODE_ERROR};self.postMessage(r)});self.addEventListener("message",function(t){var i=t.data.id;(function(t){return Mt(function(){var i,e,u,o,f,s;return Ut(this,function(c){switch(c.label){case 0:return void 0===r?[3,2]:[4,r];case 1:c.sent(),c.label=2;case 2:if(u=t.id,t.type===le.MPEGTS_TO_FMP4)o=n.mpegts_to_fmp4(t.input);else{if(t.type!==le.RAW_AUDIO_TO_FMP4)throw new I("Unknown request type: "+t.type);o=n.raw_audio_to_fmp4(t.input)}return f={success:!0,requestId:u,output:o},s=[null==(i=t.input.metadata)?void 0:i.sps_nal,null==(e=t.input.metadata)?void 0:e.pps_nal,t.input.data,o.data.video_init,o.data.audio_init,o.data.video_media,o.data.audio_media].filter(Ct).map(function(t){return t.buffer}),self.postMessage(f,s),[2]}})})()})(t.data).catch(function(t){var n=t,r={success:!1,requestId:i,error:n.message,errorCode:b(n,ye)?n.code:_e.MEDIA_DECODE_ERROR};self.postMessage(r)})})}(function(){return Ge(je)})}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof s?s:"undefined"!=typeof global?global:this);
//# sourceMappingURL=THEOplayer.transmux.js.map