@theoplayer/extended 5.11.0 → 6.0.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: 5.11.0 (5.11.0)
28
- Created: 2023-09-11T13:54:10.051Z
27
+ Version: 6.0.0
28
+ Created: 2023-09-13T14:03:31.125Z
29
29
  */
30
- !function(n){"use strict";var t=n.window,r=n.document,i=n.location,e=n.navigator,u=n.setTimeout,o=n.clearTimeout,f=n.setInterval,s=n.clearInterval,c=n.Error,a=n.TypeError,h=(n.SyntaxError,n.Object),l=n.Math,v=n.parseInt,_=n.parseFloat,y=n.isNaN,d=n.Uint8Array,w=(n.Worker,n.WorkerGlobalScope,n.XMLHttpRequest);var I=u;function E(n){return Boolean(n&&void 0!==n.length)}function p(){}function R(n){if(!(this instanceof R))throw new a("Promises must be constructed via new");if("function"!=typeof n)throw new a("not a function");this.l=0,this.g=!1,this.I=void 0,this.R=[],b(n,this)}function g(n,t){for(;3===n.l;)n=n.I;0!==n.l?(n.g=!0,R.N((function(){var r=1===n.l?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.I)}catch(n){return void O(t.promise,n)}S(t.promise,i)}else(1===n.l?S:O)(t.promise,n.I)}))):n.R.push(t)}function S(n,t){try{if(t===n)throw new a("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof R)return n.l=3,n.I=t,void T(n);if("function"==typeof r)return void b((i=r,e=t,function(){i.apply(e,arguments)}),n)}n.l=1,n.I=t,T(n)}catch(t){O(n,t)}var i,e}function O(n,t){n.l=2,n.I=t,T(n)}function T(n){2===n.l&&0===n.R.length&&R.N((function(){n.g||R.U(n.I)}));for(var t=0,r=n.R.length;t<r;t++)g(n,n.R[t]);n.R=null}function k(n,t,r){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function b(n,t){var r=!1;try{n((function(n){r||(r=!0,S(t,n))}),(function(n){r||(r=!0,O(t,n))}))}catch(n){if(r)return;r=!0,O(t,n)}}R.prototype.catch=function(n){return this.then(null,n)},R.prototype.then=function(n,t){var r=new this.constructor(p);return g(this,new k(n,t,r)),r},R.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)}))}))},R.all=function(n){return new R((function(t,r){if(!E(n))return r(new a("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"==typeof 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])}))},R.allSettled=function(n){return new this((function(t,r){if(!n||void 0===n.length)return r(new a((void 0===n?"undefined":(i=n)&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i,e=Array.prototype.slice.call(n);if(0===e.length)return t([]);var u=e.length;function o(n,r){if(r&&("object"==typeof r||"function"==typeof r)){var i=r.then;if("function"==typeof i)return void i.call(r,(function(t){o(n,t)}),(function(r){e[n]={status:"rejected",reason:r},0==--u&&t(e)}))}e[n]={status:"fulfilled",value:r},0==--u&&t(e)}for(var f=0;f<e.length;f++)o(f,e[f])}))},R.resolve=function(n){return n&&"object"==typeof n&&n.constructor===R?n:new R((function(t){t(n)}))},R.reject=function(n){return new R((function(t,r){r(n)}))},R.race=function(n){return new R((function(t,r){if(!E(n))return r(new a("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)R.resolve(n[i]).then(t,r)}))},R.N="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){I(n,0)},R.U=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};var m,A=function(){var t=n.Promise;if(void 0!==t)try{if(-1!==t.toString().indexOf("[native code]"))return t}catch(n){}}(),N=e?e.userAgent:"",C=N.match(/Firefox\/([0-9]+)/i),D=null!=C,P=C?Number(C[1]):0,F=N.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),L=null!=F,U=F?Number(F[3]):0,M=((m=function(n){this.V=0,this.q=0,this.G=[],this.Y=n}).prototype.F=function(n){var t=this.length();this.j(t+1);var r=this.q+t&this.Y-1;this.G[r]=n,this.V=t+1},m.prototype.push=function(n){var t=this.length()+1;if(this.Y<t)this.F(n);else{var r=this.q+t-1,i=this.Y-1;this.G[r&i]=n,this.V=t}},m.prototype.shift=function(){var n=this.q,t=this.G[n];return this.G[n]=void 0,this.q=n+1&this.Y-1,this.V--,t},m.prototype.length=function(){return this.V},m.prototype.j=function(n){this.Y<n&&this.K(this.Y<<1)},m.prototype.K=function(n){var t=this.Y;this.Y=n;var r=this.q+this.V&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.G,0,t,r)},m);var W="unhandledrejection",V=n.PromiseRejectionEvent,B=n.CustomEvent;function x(n){return new V(W,{reason:n,promise:A.reject(n).catch((function(){})),cancelable:!0})}function H(n){var t=new B(W,{detail:{reason:n},cancelable:!0});return h.defineProperty(t,"reason",{value:n}),t}function G(n){var t=r.createEvent("CustomEvent");return t.initCustomEvent(W,!1,!0,{reason:n}),t}var j,K,q,z,X,$,Z,Y,J,Q,nn=function(n){return(nn=function(){try{var n=A.resolve(),t="error",r=new V(W,{reason:t,promise:n});return W===r.type&&t===r.reason}catch(n){}return!1}()?x:function(){try{var n="error",t=new B(W,{detail:{reason:n}});return W===t.type&&n===t.detail.reason}catch(n){}return!1}()?H:G)(n)};function tn(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),h.defineProperty(n,i.key,i)}}function rn(n,t,r){return t&&tn(n.prototype,t),r&&tn(n,r),n}function en(n,t){return(en=h.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function un(n,t){if("function"!=typeof t&&null!==t)throw new a("Super expression must either be null or a function");n.prototype=h.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&en(n,t)}function on(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 fn(n,t){if(n){if("string"==typeof n)return on(n,t);var r=h.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)?on(n,t):void 0}}function sn(n){return function(n){if(Array.isArray(n))return on(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||fn(n)||function(){throw new a("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}A&&!(D&&P<60||L&&U<15)?K=A:(K=R,Z=null!==(j=function(){var t=n.queueMicrotask;if("function"==typeof t)return function(n){return t(n)};var r=A;if(r&&"function"==typeof r.resolve){var i=r.resolve();return function(n){return i.then(n)}}}())&&void 0!==j?j:R.N,q=Z,z=new M(16),X=!1,(Y={J:function(n){z.push(n),X||(X=!0,q($))},Z:$=function(){for(;z.length()>0;)z.shift()();X=!1}}).Z,R.N=Y.J,R.U=function(t){try{var r=nn(t);if(!n.dispatchEvent(r)||r.defaultPrevented)return}catch(n){}u((function(){throw new c("Unhandled promise rejection: ".concat(t))}),0)}),(Q=J||(J={})).Mn="web",Q.xn="android",Q.Un="android-tv",Q.Fn="ios",Q.Hn="tvos",Q.Vn="chromecast";var cn=e?e.userAgent:"",an=cn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),hn=cn.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),ln=cn.match(/Android ([0-9\.]+)/i),vn=cn.match(/Windows NT ([0-9\.]+)/i),_n=cn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),yn=cn.match(/Firefox\/([0-9\.]+)/i),dn=cn.match(/OPR\/(\d+\.\d+)/i),wn=cn.match(/Tizen ([0-9\.]+)/i),In=cn.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),En=function(){function t(){this.Xn=Boolean("ontouchstart"in n||n.DocumentTouch&&r instanceof n.DocumentTouch||e&&e.msMaxTouchPoints),this.zn=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(cn)||/(macintosh|mac(?=_powerpc)\s)/i.test(cn),this.Wn=/Windows NT/i.test(cn),this.qn=vn?_(vn[1]):0,this.Gn=/Android/i.test(cn),this.Yn=ln?_(ln[1]):0,this.jn=/windows phone (8|8\.1)/i.test(cn),this.Qn=/iPhone/i.test(cn),this.Kn=/iPad/i.test(cn),this.Zn=this.zn&&this.Xn&&!this.Kn,this.Jn=/iPod/i.test(cn),this.$n=/Mobile Safari/i.test(cn),this.ni=/EOS\d*STB/i.test(cn),this.ri=/APP\d*STB/i.test(cn),this.ei=(this.Qn||this.Kn||this.Zn||this.Jn)&&!this.jn,this.oi=In?_(In[2]):0,this.ai=this.jn||this.ei||this.Gn||this.$n,this.ci=/CriOS/i.test(cn),this.di=Boolean(n.chrome&&/google/i.test(e.vendor))||this.ci,this._i=this.di&&/Edg\//i.test(e.userAgent),this.gi=hn?v(hn[1],10):0,this.wi=Boolean(n.chrome||/Chrome/i.test(cn)||/CriOS/i.test(cn)),this.Ai=an?v(an[1],10):0,this.Ti=/SMART-TV.*Tizen/i.test(cn),this.Si=wn?_(wn[1]):0,this.Ei=/webos|web0s/i.test(cn),this.Ii=/VIZIO/i.test(cn),this.Ri=/Edge\/\d+/i.test(cn),this.Ni=/Trident/i.test(cn),this.Di=this.Ni&&!n.ActiveXObject&&"ActiveXObject"in n,this.Ci=/Vivaldi/i.test(cn),this.Pi=/Firefox/i.test(cn)&&!/Seamonkey/i.test(cn),this.Oi=yn?_(yn[1]):0,this.Bi=/Safari/i.test(cn)&&!/Chrome/i.test(cn)&&!this.jn&&!this.Ti,this.Li=_n?_(_n[2]):0,this.Mi=Boolean(dn),this.xi=dn?_(dn[1]):0,this.Ui=/CrKey/.test(cn),this.Fi=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(cn),this.Hi="web"===J.Un,this.Vi="web"===J.xn,this.Xi=this.Vi||this.Hi,this.zi="web"===J.Fn,this.Wi="web"===J.Hn,this.qi="web"===J.Vn}return rn(t,[{key:"Gi",get:function(){return this.Xn}},{key:"Yi",get:function(){return this.zn}},{key:"ji",get:function(){return this.Wn}},{key:"Qi",get:function(){return this.qn}},{key:"Ki",get:function(){return this.Gn}},{key:"Zi",get:function(){return this.Yn}},{key:"Ji",get:function(){return this.jn}},{key:"$i",get:function(){return this.Qn}},{key:"ir",get:function(){return this.Kn}},{key:"rr",get:function(){return this.Zn}},{key:"dr",get:function(){return this.Jn}},{key:"_r",get:function(){return this.ei}},{key:"gr",get:function(){return this.oi}},{key:"wr",get:function(){return this.ni||this.ri}},{key:"yr",get:function(){return this.$n}},{key:"pr",get:function(){return this.ai}},{key:"Ar",get:function(){return this.ci}},{key:"Tr",get:function(){return this.di}},{key:"Sr",get:function(){return this.Ai}},{key:"Er",get:function(){return this._i}},{key:"Ir",get:function(){return this.gi}},{key:"Rr",get:function(){return this.Ti}},{key:"Nr",get:function(){return this.Si}},{key:"Dr",get:function(){return this.Ei}},{key:"Cr",get:function(){return this.Ii}},{key:"Pr",get:function(){return this.Ri}},{key:"Or",get:function(){return this.Ni}},{key:"Br",get:function(){return this.Di}},{key:"Lr",get:function(){return this.Ci}},{key:"Mr",get:function(){return this.Pi}},{key:"Ur",get:function(){return this.Oi}},{key:"Fr",get:function(){return this.Bi}},{key:"Hr",get:function(){return this.Li}},{key:"Vr",get:function(){return this.Mi}},{key:"Xr",get:function(){return this.xi}},{key:"zr",get:function(){return this.Ui}},{key:"Wr",get:function(){return this.Fi}},{key:"qr",get:function(){return!(!this.Dr&&!this.Rr)&&this.Sr<=56}},{key:"Gr",get:function(){return this.Hi}},{key:"Yr",get:function(){return this.Vi}},{key:"jr",get:function(){return this.Xi}},{key:"Qr",get:function(){return this.zi}},{key:"Kr",get:function(){return this.Wi}},{key:"Zr",get:function(){return this.qi}},{key:"Jr",get:function(){return this.wi}}]),t}();En.$r=new En;var pn=En.$r,Rn={}.toString;function gn(n){return null!=n}Array.isArray;var Sn=function(){},On=!(pn.Or&&!pn.Br),Tn=n.console;function kn(n){if(function(n){return"object"==typeof n&&null!==n}(n))try{return JSON.stringify(n)}catch(n){}return n}function bn(n){return n.map(kn).join(" ")}function mn(n){var t=Tn&&Tn[n];return t?t.bind&&On?t.bind(Tn):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];Tn[n](bn(r))}:void 0}var An,Nn=mn("log")||Sn,Cn=mn("warn")||Nn.bind(void 0,"WARNING:"),Dn=mn("error")||Nn.bind(void 0,"ERROR:"),Pn=(An=Tn&&Tn.assert)?An.bind&&On?An.bind(Tn):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];Tn.assert(n,bn(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||Dn.apply(void 0,["Assertion failed:"].concat(sn(r)))},Fn=null;try{Fn=new WebAssembly.Instance(new WebAssembly.Module(new d([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(n){}function Ln(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function Un(n){return!0===(n&&n.fe)}function Mn(n){var t=l.clz32(n&-n);return n?31-t:t}Ln.prototype.fe,h.defineProperty(Ln.prototype,"fe",{value:!0}),Ln.isLong=Un;var Wn={},Vn={};function Bn(n,t){var r,i,e;return t?(e=0<=(n>>>=0)&&n<256)&&(i=Vn[n])?i:(r=Hn(n,0,!0),e&&(Vn[n]=r),r):(e=-128<=(n|=0)&&n<128)&&(i=Wn[n])?i:(r=Hn(n,n<0?-1:0,!1),e&&(Wn[n]=r),r)}function xn(n,t){if(y(n))return t?Yn:Zn;if(t){if(n<0)return Yn;if(n>=zn)return rt}else{if(n<=-Xn)return it;if(n+1>=Xn)return tt}return n<0?xn(-n,t).neg():Hn(n%qn|0,n/qn|0,t)}function Hn(n,t,r){return new Ln(n,t,r)}Ln.fromInt=Bn,Ln.fromNumber=xn,Ln.fromBits=Hn;var Gn=l.pow;function jn(n,t,r){if(0===n.length)throw c("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===n||"Infinity"===n||"+Infinity"===n||"-Infinity"===n)return t?Yn:Zn;if((r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=n.indexOf("-"))>0)throw c("interior hyphen");if(0===i)return jn(n.substring(1),t,r).neg();for(var e=xn(Gn(r,8)),u=Zn,o=0;o<n.length;o+=8){var f=l.min(8,n.length-o),s=v(n.substring(o,o+f),r);if(f<8){var a=xn(Gn(r,f));u=u.mul(a).add(xn(s))}else u=(u=u.mul(e)).add(xn(s))}return u.unsigned=t,u}function Kn(n,t){return"number"==typeof n?xn(n,t):"string"==typeof n?jn(n,t):Hn(n.low,n.high,"boolean"==typeof t?t:n.unsigned)}Ln.fromString=jn,Ln.fromValue=Kn;var qn=4294967296,zn=qn*qn,Xn=zn/2,$n=Bn(1<<24),Zn=Bn(0);Ln.ZERO=Zn;var Yn=Bn(0,!0);Ln.UZERO=Yn;var Jn=Bn(1);Ln.ONE=Jn;var Qn=Bn(1,!0);Ln.UONE=Qn;var nt=Bn(-1);Ln.NEG_ONE=nt;var tt=Hn(-1,2147483647,!1);Ln.MAX_VALUE=tt;var rt=Hn(-1,-1,!0);Ln.MAX_UNSIGNED_VALUE=rt;var it=Hn(0,-2147483648,!1);Ln.MIN_VALUE=it;var et=Ln.prototype;et.toInt=function(){return this.unsigned?this.low>>>0:this.low},et.toNumber=function(){return this.unsigned?(this.high>>>0)*qn+(this.low>>>0):this.high*qn+(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=xn(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=xn(Gn(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 Un(n)||(n=Kn(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(Un(n)||(n=Kn(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(Jn)},et.neg=et.negate,et.add=function(n){Un(n)||(n=Kn(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,Hn((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},et.subtract=function(n){return Un(n)||(n=Kn(n)),this.add(n.neg())},et.sub=et.subtract,et.multiply=function(n){if(this.isZero())return this;if(Un(n)||(n=Kn(n)),Fn)return Hn(Fn.mul(this.low,this.high,n.low,n.high),Fn.get_high(),this.unsigned);if(n.isZero())return this.unsigned?Yn:Zn;if(this.eq(it))return n.isOdd()?it:Zn;if(n.eq(it))return this.isOdd()?it:Zn;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($n)&&n.lt($n))return xn(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,Hn((h&=65535)<<16|(l&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},et.mul=et.multiply,et.divide=function(n){if(Un(n)||(n=Kn(n)),n.isZero())throw c("division by zero");var t,r,i;if(Fn)return this.unsigned||-2147483648!==this.high||-1!==n.low||-1!==n.high?Hn((this.unsigned?Fn.div_u:Fn.div_s)(this.low,this.high,n.low,n.high),Fn.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?Yn:Zn;if(this.unsigned){if(n.unsigned||(n=n.toUnsigned()),n.gt(this))return Yn;if(n.gt(this.shru(1)))return Qn;i=Yn}else{if(this.eq(it))return n.eq(Jn)||n.eq(nt)?it:n.eq(it)?Jn:(t=this.shr(1).div(n).shl(1)).eq(Zn)?n.isNegative()?Jn:nt:(r=this.sub(n.mul(t)),i=t.add(r.div(n)));if(n.eq(it))return this.unsigned?Yn:Zn;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=Zn}for(r=this;r.gte(n);){t=l.max(1,l.floor(r.toNumber()/n.toNumber()));for(var e=l.ceil(l.log(t)/l.LN2),u=e<=48?1:Gn(2,e-48),o=xn(t),f=o.mul(n);f.isNegative()||f.gt(r);)f=(o=xn(t-=u,this.unsigned)).mul(n);o.isZero()&&(o=Jn),i=i.add(o),r=r.sub(f)}return i},et.div=et.divide,et.modulo=function(n){return Un(n)||(n=Kn(n)),Fn?Hn((this.unsigned?Fn.rem_u:Fn.rem_s)(this.low,this.high,n.low,n.high),Fn.get_high(),this.unsigned):this.sub(this.div(n).mul(n))},et.mod=et.modulo,et.rem=et.modulo,et.not=function(){return Hn(~this.low,~this.high,this.unsigned)},et.countLeadingZeros=function(){return this.high?l.clz32(this.high):l.clz32(this.low)+32},et.clz=et.countLeadingZeros,et.countTrailingZeros=function(){return this.low?Mn(this.low):Mn(this.high)+32},et.ctz=et.countTrailingZeros,et.and=function(n){return Un(n)||(n=Kn(n)),Hn(this.low&n.low,this.high&n.high,this.unsigned)},et.or=function(n){return Un(n)||(n=Kn(n)),Hn(this.low|n.low,this.high|n.high,this.unsigned)},et.xor=function(n){return Un(n)||(n=Kn(n)),Hn(this.low^n.low,this.high^n.high,this.unsigned)},et.shiftLeft=function(n){return Un(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Hn(this.low<<n,this.high<<n|this.low>>>32-n,this.unsigned):Hn(0,this.low<<n-32,this.unsigned)},et.shl=et.shiftLeft,et.shiftRight=function(n){return Un(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Hn(this.low>>>n|this.high<<32-n,this.high>>n,this.unsigned):Hn(this.high>>n-32,this.high>=0?0:-1,this.unsigned)},et.shr=et.shiftRight,et.shiftRightUnsigned=function(n){return Un(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Hn(this.low>>>n|this.high<<32-n,this.high>>>n,this.unsigned):Hn(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 Un(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Hn(this.high,this.low,this.unsigned):n<32?(t=32-n,Hn(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned)):(t=32-(n-=32),Hn(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 Un(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Hn(this.high,this.low,this.unsigned):n<32?(t=32-n,Hn(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned)):(t=32-(n-=32),Hn(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned))},et.rotr=et.rotateRight,et.toSigned=function(){return this.unsigned?Hn(this.low,this.high,!1):this},et.toUnsigned=function(){return this.unsigned?this:Hn(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]},Ln.fromBytes=function(n,t,r){return r?Ln.fromBytesLE(n,t):Ln.fromBytesBE(n,t)},Ln.fromBytesLE=function(n,t){return new Ln(n[0]|n[1]<<8|n[2]<<16|n[3]<<24,n[4]|n[5]<<8|n[6]<<16|n[7]<<24,t)},Ln.fromBytesBE=function(n,t){return new Ln(n[4]<<24|n[5]<<16|n[6]<<8|n[7],n[0]<<24|n[1]<<16|n[2]<<8|n[3],t)};var ut=Ln;l.pow(2,-52);function ot(){return Date.now()||(new Date).getTime()}ut.fromNumber(9007199254740991);function ft(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),h.defineProperty(n,i.key,i)}}function st(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){ct(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&ct(r,null,n.length,n),n}function ct(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 at=/[a-zA-Z]/,ht=/[0-9]/,lt=/[0-9a-fA-F]/,vt=/^0x/i,_t=/^[0-9]+$/,yt=/^[0-9a-fA-F]+$/,dt=/^[0-7]+$/,wt=h.prototype.toString,It=Array.isArray||function(n){return"[object Array]"===wt.call(n)},Et="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function pt(n){return It(n)?n:Array.from(n)}function Rt(n){return n>=65&&n<=90}function gt(n){return Rt(n)||function(n){return n>=97&&n<=122}(n)}function St(n){return n>=48&&n<=57}function Ot(n){return St(n)||gt(n)}function Tt(n){return St(n)||n>=65&&n<=70||n>=97&&n<=102}function kt(n){return Rt(n)?n+32:n}function bt(n){return St(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function mt(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var At=l.min,Nt=String.fromCharCode;function Ct(n){for(var t=n.length,r=[],i=0;i<t;i+=16384){var e=At(i+16384,t);r.push(Nt.apply(null,n.slice(i,e)))}return r.join("")}var Dt=2147483647,Pt=/[^\0-\x7E]/,Ft=/[\x2E\u3002\uFF0E\uFF61]/g,Lt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ut=l.floor,Mt=String.fromCharCode;function Wt(n){throw new RangeError(Lt[n])}function Vt(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 Bt,xt,Ht,Gt=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},jt=function(n,t,r){var i=0;for(n=r?Ut(n/700):n>>1,n+=Ut(n/t);n>455;i+=36)n=Ut(n/35);return Ut(i+36*n/(n+38))},Kt=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(Ft,".")).split("."),t).join(".");return i+e}(n,(function(n){return Pt.test(n)?"xn--"+function(n){for(var t=[],r=(n=Vt(n)).length,i=128,e=0,u=72,o=0,f=n;o<f.length;o++){var s=f[o];s<128&&t.push(Mt(s))}var c=t.length,a=c;for(c&&t.push("-");a<r;){for(var h=Dt,l=0,v=n;l<v.length;l++){var _=v[l];_>=i&&_<h&&(h=_)}var y=a+1;h-i>Ut((Dt-e)/y)&&Wt("overflow"),e+=(h-i)*y,i=h;for(var d=0,w=n;d<w.length;d++){var I=w[d];if(I<i&&++e>Dt&&Wt("overflow"),I==i){for(var E=e,p=36;;p+=36){var R=p<=u?1:p>=u+26?26:p-u;if(E<R)break;var g=E-R,S=36-R;t.push(Mt(Gt(R+g%S,0))),E=Ut(g/S)}t.push(Mt(Gt(E,0))),u=jt(e,y,a==c),e=0,++a}}++e,++i}return t.join("")}(n):n}))};function qt(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 Ct(t)}function zt(n){if(n>=55296&&n<=57343)throw new c("Lone surrogate U+"+n.toString(16).toUpperCase()+" is not a scalar value")}function Xt(n,t){return n>>t&63|128}function $t(n,t){0!=(4294967168&n)?(0==(4294965248&n)?t.push(n>>6&31|192):0==(4294901760&n)?(zt(n),t.push(n>>12&15|224),t.push(Xt(n,6))):0==(4292870144&n)&&(t.push(n>>18&7|240),t.push(Xt(n,12)),t.push(Xt(n,6))),t.push(63&n|128)):t.push(n)}function Zt(n){for(var t=[],r=0;r<n.length;r++){$t(n[r],t)}return t}function Yt(){if(Ht>=xt)throw new c("Invalid byte index");var n=255&Bt[Ht];if(Ht++,128==(192&n))return 63&n;throw new c("Invalid continuation byte")}function Jt(){var n,t;if(Ht>xt)throw new c("Invalid byte index");if(Ht===xt)return!1;if(n=255&Bt[Ht],Ht++,0==(128&n))return n;if(192==(224&n)){if((t=(31&n)<<6|Yt())>=128)return t;throw new c("Invalid continuation byte")}if(224==(240&n)){if((t=(15&n)<<12|Yt()<<6|Yt())>=2048)return zt(t),t;throw new c("Invalid continuation byte")}if(240==(248&n)&&(t=(7&n)<<18|Yt()<<12|Yt()<<6|Yt())>=65536&&t<=1114111)return t;throw new c("Invalid UTF-8 detected")}function Qt(n){return[37,mt(n>>4),mt(15&n)]}function nr(n){return function(n){return n>=0&&n<=31}(n)||n>126}function tr(n){return nr(n)||32===n||34===n||60===n||62===n||96===n}function rr(n){return tr(n)||35===n||63===n||123===n||125===n}function ir(n){return rr(n)||47===n||58===n||59===n||61===n||64===n||n>=91&&n<=94||124===n}function er(n){return n<33||n>126||34===n||35===n||60===n||62===n}function ur(n){return er(n)||39===n}function or(n,t){if(!t(n))return[n];for(var r=Zt([n]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,Qt(u))}return i}function fr(n,t){for(var r=[],i=0,e=Vt(n);i<e.length;i++){var u=e[i];r.push.apply(r,or(u,t))}return qt(r)}function sr(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&&Tt(n[i+1])&&Tt(n[i+2])){var u=bt(n[i+1])<<4|bt(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(Zt(n))}function cr(n){return qt(function(n){Bt=n.slice(),xt=Bt.length,Ht=0;for(var t,r=[];!1!==(t=Jt());)r.push(t);return r}(sr(Vt(n))))}function ar(n){var t,r,i,e,u=n.length,o=[0,0,0,0,0,0,0,0],f=0,s=null,c=0;if(c<u&&":"===n[c]){if(!(c+1<u&&":"===n[c+1]))throw new a;c+=2,s=f+=1}for(;c<u;){if(8===f)throw new a("Too many groups");if(":"!==n[c]){for(var h=0,l=0;l<4&&c<u&&lt.test(n[c]);)h=h<<4|v(n[c],16),c+=1,l+=1;if("."===n[c]){if(0===l)throw new a;if(c-=l,f>6)throw new a;for(var _=0;c<u;){var y=null;if(_>0){if(!("."===n[c]&&_<4))throw new a;c+=1}if(!ht.test(n[c]))throw new a;for(;c<u&&ht.test(n[c]);){var d=v(n[c],10);if(null===y)y=d;else{if(0===y)throw new a;if((y=10*y+d)>255)throw new a}c+=1}o[f]=o[f]<<8|y,2!==(_+=1)&&4!==_||(f+=1)}if(4!==_)throw new a;break}if(":"===n[c]){if((c+=1)===u)throw new a}else if(c<u)throw new a;o[f]=h,f+=1}else{if(null!==s)throw new a("Too many :: groups");c+=1,s=f+=1}}if(null!==s){var w=f-s;for(f=7;0!==f&&w>0;)i=s+w-1,e=void 0,e=(t=o)[r=f],t[r]=t[i],t[i]=e,f-=1,w-=1}else if(8!==f)throw new a;return o}function hr(n){var t=10,r=_t;return vt.test(n)?(n=n.slice(2),t=16,r=yt):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=dt),""===n?0:r.test(n)?v(n,t):void 0}var lr={_e:4},vr=/[\0\t\n\r #%/:?@\[\\\]]/,_r=/[\0\t\n\r #/:?@\[\\\]]/;function yr(n,t){if("["===n[0]){if("]"!==n[n.length-1])throw new a("Invalid IPv6 address");return{_e:2,we:ar(n.slice(1,-1))}}if(!t)return function(n){if(_r.test(n))throw new a("Invalid code point in opaque host");var t=fr(n,nr);return""===t?lr:{_e:3,G:t}}(n);var r=function(n){return function(n){return Kt(n.toLowerCase())}(n)}(cr(n));if(vr.test(r))throw new a("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=hr(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new a;if(r[r.length-1]>=l.pow(256,5-r.length))throw new a;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*l.pow(256,3-s);return f}}(r);return void 0!==i?{_e:1,we:i}:""===r?lr:{_e:0,ye:r}}function dr(n){switch(n._e){case 0:return n.ye;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.we);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.we)+"]";case 3:return n.G;case 4:return""}}var wr=/\+/g;function Ir(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(wr," "),f=f.replace(wr," ");var s=cr(o),c=cr(f);r.push([s,c])}}return r}function Er(n){for(var t="",r=0;r<n.length;r++){var i=n[r];r>0&&(t+="&"),t+=pr(Zt(Vt(i[0])))+"="+pr(Zt(Vt(i[1])))}return t}function pr(n){for(var t,r=[],i=0;i<n.length;i++){var e=n[i];32===e?r.push(43):42===(t=e)||45===t||46===t||95===t||Ot(t)?r.push(e):r.push.apply(r,Qt(e))}return Ct(r)}var Rr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function gr(n){var t=""+n,r=Rr.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(Or(u))if(Tr(u)||e===r-1)i.push(Sr);else{var o=n.charCodeAt(e+1);Tr(o)?(i.push(u,o),e++):i.push(Sr)}else i.push(u)}return n.slice(0,t)+Ct(i)}(t,r.index):t}var Sr=65533,Or=function(n){return 55296==(63488&n)},Tr=function(n){return 0!=(1024&n)};function kr(n,t){var r=n[0],i=t[0];return r===i?0:r<i?-1:1}function br(n){n.me.length=0}function mr(n,t){!function(n,t){for(var r=0;r<t.length;r++)n[r]=t[r];n.length=t.length}(n.me,Ir(t))}function Ar(n){if(n.pe){var t=Er(n.me);""===t&&(t=null),n.pe.pe.ke=t}}var Nr=function(){function n(n){if(void 0===n&&(n=void 0),this.pe=null,null==n)this.me=[];else if("object"==typeof n||"function"==typeof n)if((u=n)instanceof Nr&&It(u.me)&&(!Et||u[Symbol.iterator]===Cr))this.me=n.me.slice();else if(function(n){return null!=n&&(!!It(n)||!!Et&&"function"==typeof n[Symbol.iterator])}(n)){this.me=[];for(var t=0,r=pt(n);t<r.length;t++){var i=pt(r[t]);if(2!==i.length)throw new a("Invalid name-value pair");this.me.push([gr(i[0]),gr(i[1])])}}else for(var e in this.me=[],n)h.prototype.hasOwnProperty.call(n,e)&&this.me.push([gr(e),gr(n[e])]);else(n=gr(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.me=Ir(n);var u}var t=n.prototype;return t.append=function(n,t){n=gr(n),t=gr(t),this.me.push([n,t]),Ar(this)},t.delete=function(n){n=gr(n);for(var t=this.me,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}Ar(this)},t.get=function(n){n=gr(n);for(var t=this.me,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},t.getAll=function(n){n=gr(n);for(var t=this.me,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=gr(n);for(var t=this.me,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},t.set=function(n,t){n=gr(n),t=gr(t);for(var r=this.me,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]),Ar(this)},t.sort=function(){st(this.me,kr),Ar(this)},t.toString=function(){return Er(this.me)},t.entries=function(){return new Lr(this.me,Dr)},t.keys=function(){return new Lr(this.me,Pr)},t.values=function(){return new Lr(this.me,Fr)},t.forEach=function(n){var t=this;this.me.forEach((function(r){return n(r[1],r[0],t)}))},n}(),Cr=Nr.prototype.entries;Et&&(Nr.prototype[Symbol.iterator]=Cr);var Dr=function(n){return[n[0],n[1]]},Pr=function(n){return n[0]},Fr=function(n){return n[1]},Lr=function(){function n(n,t){this.Ae=0,this.me=n,this.Te=t}return n.prototype.next=function(){return this.Ae<this.me.length?{done:!1,value:this.Te(this.me[this.Ae++])}:{done:!0,value:void 0}},n}(),Ur="null";var Mr=h.create(null);Mr.ftp=21,Mr.file=0,Mr.gopher=70,Mr.http=80,Mr.https=443,Mr.ws=80,Mr.wss=443;var Wr=/^(?:\.|%2e)$/i,Vr=/^(?:\.|%2e){2}$/i;function Br(n){return Wr.test(n)}function xr(n){return Vr.test(n)}function Hr(n){return void 0!==Mr[n]}function Gr(n){return Hr(n.Se)}function jr(n){return""!==n.Ee||""!==n.Ie}function Kr(n){var t=n.length;if(!(t>=2))return!1;if(!zr(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 qr(n){return 2===n.length&&at.test(n[0])&&(":"===n[1]||"|"===n[1])}function zr(n){return 2===n.length&&qr(Ct(n))}function Xr(n){return qr(n)&&":"===n[1]}function $r(n){var t=n.Re;0!==t.length&&("file"===n.Se&&1===t.length&&Xr(t[0])||t.pop())}function Zr(n){return null===n.Ne||lr===n.Ne||n.De||"file"===n.Se}var Yr=-1,Jr=/\t|\n|\r/g,Qr=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function ni(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new ri,n=n.replace(Qr,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=Vt(n=n.replace(Jr,"")),h=c.length,l=0;l<=h;){var _=l<h?c[l]:Yr;switch(e){case 0:if(!gt(_)){if(null===i){u.length=0,e=2;continue}throw new a("Invalid scheme")}u.push(kt(_)),e=1;break;case 1:if(Ot(_)||43===_||45===_||46===_)u.push(kt(_));else{if(58!==_){if(null===i){u.length=0,e=2,l=0;continue}throw new a("Invalid scheme")}var y=qt(u);if(null!==i){if(Hr(r.Se)&&!Hr(y))return;if(!Hr(r.Se)&&Hr(y))return;if((jr(r)||null!==r.Ce)&&"file"===y)return;if("file"===r.Se&&(r.Ne===lr||null===r.Ne))return}if(r.Se=y,null!==i)return void(Gr(r)&&r.Ce===Mr[r.Se]&&(r.Ce=null));u.length=0,"file"===r.Se?e=13:Gr(r)&&t&&t.Se===r.Se?e=3:Gr(r)?e=7:47===c[l+1]?(e=4,l+=1):(r.De=!0,r.Re.push(""),e=18)}break;case 2:if(!t||t.De&&35!==_)throw new a("Invalid scheme");t.De&&35===_?(r.Se=t.Se,r.Re=t.Re.slice(),r.ke=t.ke,r.Pe="",r.De=!0,e=20):"file"!==t.Se?(e=5,l-=1):(e=13,l-=1);break;case 3:47===_&&47===c[l+1]?e=8:(e=5,l-=1);break;case 4:47===_?e=9:(e=17,l-=1);break;case 5:r.Se=t.Se,Yr===_?(r.Ee=t.Ee,r.Ie=t.Ie,r.Ne=t.Ne,r.Ce=t.Ce,r.Re=t.Re.slice(),r.ke=t.ke):47===_?e=6:63===_?(r.Ee=t.Ee,r.Ie=t.Ie,r.Ne=t.Ne,r.Ce=t.Ce,r.Re=t.Re.slice(),r.ke="",e=19):35===_?(r.Ee=t.Ee,r.Ie=t.Ie,r.Ne=t.Ne,r.Ce=t.Ce,r.Re=t.Re.slice(),r.ke=t.ke,r.Pe="",e=20):92===_&&Gr(r)?e=6:(r.Ee=t.Ee,r.Ie=t.Ie,r.Ne=t.Ne,r.Ce=t.Ce,r.Re=t.Re.slice(),r.Re.pop(),e=17,l-=1);break;case 6:!Gr(r)||47!==_&&92!==_?47===_?e=9:(r.Ee=t.Ee,r.Ie=t.Ie,r.Ne=t.Ne,r.Ce=t.Ce,e=17,l-=1):e=8;break;case 7:if(47!==_||47!==c[l+1]){e=8;continue}e=8,l+=1;break;case 8:47!==_&&92!==_&&(e=9,l-=1);break;case 9:if(64===_){o&&u.unshift(37,52,48),o=!0;for(var d=0;d<u.length;d++){var w=u[d];if(58!==w||s){var I=qt(or(w,ir));s?r.Ie+=I:r.Ee+=I}else s=!0}u.length=0}else if(Yr===_||47===_||63===_||35===_||Gr(r)&&92===_){if(o&&0===u.length)throw new a("Invalid host");l-=u.length+1,u.length=0,e=10}else u.push(_);break;case 10:case 11:if(null!==i&&"file"===r.Se)l-=1,e=15;else if(58!==_||f)if(Yr===_||47===_||63===_||35===_||Gr(r)&&92===_){if(l-=1,Gr(r)&&0===u.length)throw new a("Invalid host");if(null!==i&&0===u.length&&(jr(r)||null!==r.Ce))return;var E=yr(qt(u),Gr(r));if(r.Ne=E,u.length=0,e=16,null!==i)return}else 91===_?f=!0:93===_&&(f=!1),u.push(_);else{if(0===u.length)throw new a("Invalid host");var p=yr(qt(u),Gr(r));if(r.Ne=p,u.length=0,e=12,11===i)return}break;case 12:if(St(_))u.push(_);else{if(!(Yr===_||47===_||63===_||35===_||Gr(r)&&92===_||null!==i))throw new a("Invalid port");if(0!==u.length){var R=v(qt(u),10);if(R>65535)throw new a("Invalid port");r.Ce=R===Mr[r.Se]?null:R,u.length=0}if(null!==i)return;e=16,l-=1}break;case 13:r.Se="file",47===_||92===_?e=14:t&&"file"===t.Se?Yr===_?(r.Ne=t.Ne,r.Re=t.Re.slice(),r.ke=t.ke):63===_?(r.Ne=t.Ne,r.Re=t.Re.slice(),r.ke="",e=19):35===_?(r.Ne=t.Ne,r.Re=t.Re.slice(),r.ke=t.ke,r.Pe="",e=20):(Kr(c.slice(l))||(r.Ne=t.Ne,r.Re=t.Re.slice(),$r(r)),e=17,l-=1):(e=17,l-=1);break;case 14:47===_||92===_?e=15:(t&&"file"===t.Se&&!Kr(c.slice(l))&&(Xr(t.Re[0])?r.Re.push(t.Re[0]):r.Ne=t.Ne),e=17,l-=1);break;case 15:if(Yr===_||47===_||92===_||63===_||35===_)if(l-=1,null===i&&zr(u))e=17;else if(0===u.length){if(r.Ne=lr,null!==i)return;e=16}else{var g=yr(qt(u),Gr(r));if(0===g._e&&"localhost"===g.ye&&(g=lr),r.Ne=g,null!==i)return;u.length=0,e=16}else u.push(_);break;case 16:Gr(r)?(e=17,47!==_&&92!==_&&(l-=1)):null===i&&63===_?(r.ke="",e=19):null===i&&35===_?(r.Pe="",e=20):Yr!==_&&(e=17,47!==_&&(l-=1));break;case 17:if(Yr===_||47===_||Gr(r)&&92===_||null===i&&(63===_||35===_)){var S=qt(u);if(xr(S)?($r(r),47===_||Gr(r)&&92===_||r.Re.push("")):!Br(S)||47===_||Gr(r)&&92===_?Br(S)||("file"===r.Se&&0===r.Re.length&&zr(u)&&(lr!==r.Ne&&null!==r.Ne&&(r.Ne=lr),u[1]=58,S=qt(u)),r.Re.push(S)):r.Re.push(""),u.length=0,"file"===r.Se&&(Yr===_||63===_||35===_))for(;r.Re.length>1&&""===r.Re[0];)r.Re.shift();63===_?(r.ke="",e=19):35===_&&(r.Pe="",e=20)}else u.push.apply(u,or(_,rr));break;case 18:63===_?(r.ke="",e=19):35===_?(r.Pe="",e=20):Yr!==_&&(r.Re[0]+=qt(or(_,nr)));break;case 19:null===i&&35===_?(r.Pe="",e=20):Yr!==_&&(r.ke+=qt(or(_,Gr(r)?ur:er)));break;case 20:Yr===_||0===_||(r.Pe+=qt(or(_,tr)))}l++}return r}function ti(n,t,r,i){try{ni(n,t,r,i)}catch(n){}}var ri=function(){this.Se="",this.Ee="",this.Ie="",this.Ne=null,this.Ce=null,this.Re=[],this.ke=null,this.Pe=null,this.De=!1};function ii(n){switch(n.Se){case"blob":var t;try{t=ni(n.Re[0],null)}catch(n){return Ur}return ii(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return r=n.Se,i=n.Ne,e=n.Ce,r+"://"+dr(i)+(null===e?"":":"+e);case"file":default:return Ur}var r,i,e}var ei,ui,oi=function(){function n(n,t){var r,i,e=null;if(null!=t)if(null!=(r=t)&&r instanceof oi&&"object"==typeof r.pe)e=t.pe;else try{e=ni(String(t),null)}catch(n){throw new a("Invalid base URL: "+n.message)}try{i=ni(String(n),e)}catch(n){throw new a("Invalid URL: "+n.message)}var u=i.ke;this.pe=i,this.ke=function(n){var t=new Nr;return null!==n&&mr(t,n),t}(u),this.ke.pe=this}var t,r,i,e=n.prototype;return e.toString=function(){return this.href},e.toJSON=function(){return this.href},t=n,(r=[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.Se+":";if(null!==n.Ne?(r+="//",jr(n)&&(r+=n.Ee,""!==n.Ie&&(r+=":"+n.Ie),r+="@"),r+=dr(n.Ne),null!==n.Ce&&(r+=":"+n.Ce)):null===n.Ne&&"file"===n.Se&&(r+="//"),n.De)r+=n.Re[0];else for(var i=0,e=n.Re;i<e.length;i++)r+="/"+e[i];return null!==n.ke&&(r+="?"+n.ke),t||null===n.Pe||(r+="#"+n.Pe),r}(this.pe)},set:function(n){var t;try{t=ni(String(n),null)}catch(n){throw new a("Invalid URL: "+n.message)}this.pe=t,br(this.ke);var r=this.pe.ke;null!==r&&mr(this.ke,r)}},{key:"origin",get:function(){return ii(this.pe)}},{key:"protocol",get:function(){return this.pe.Se+":"},set:function(n){ti(n+":",null,this.pe,0)}},{key:"username",get:function(){return this.pe.Ee},set:function(n){Zr(this.pe)||(this.pe.Ee=fr(n,ir))}},{key:"password",get:function(){return this.pe.Ie},set:function(n){Zr(this.pe)||(this.pe.Ie=fr(n,ir))}},{key:"host",get:function(){var n=this.pe,t=n.Ne;if(null===t)return"";var r=n.Ce,i=dr(t);return null!==r&&(i+=":"+r),i},set:function(n){this.pe.De||ti(n,null,this.pe,10)}},{key:"hostname",get:function(){var n=this.pe.Ne;return null===n?"":dr(n)},set:function(n){this.pe.De||ti(n,null,this.pe,11)}},{key:"port",get:function(){var n=this.pe.Ce;return null===n?"":""+n},set:function(n){Zr(this.pe)||(""===n?this.pe.Ce=null:ti(n,null,this.pe,12))}},{key:"pathname",get:function(){var n=this.pe.Re;return this.pe.De?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.pe.De||(this.pe.Re.length=0,ti(n,null,this.pe,16))}},{key:"search",get:function(){var n=this.pe.ke;return null===n||""===n?"":"?"+n},set:function(n){n=gr(n);var t=this.pe;if(""===n)return t.ke=null,void br(this.ke);"?"===n[0]&&(n=n.slice(1)),t.ke="",ti(n,null,t,19),mr(this.ke,n)}},{key:"searchParams",get:function(){return this.ke}},{key:"hash",get:function(){var n=this.pe.Pe;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.pe.Pe="",ti(n,null,this.pe,20)):this.pe.Pe=null}}])&&ft(t.prototype,r),i&&ft(t,i),n}();function fi(n){return n.document&&n.document.baseURI||n.location.href||""}function si(){return void 0!==r?r.createElement("video"):void 0}var ci=!!("ontouchstart"in n||n.DocumentTouch&&r instanceof n.DocumentTouch)||!(!e||!e.msMaxTouchPoints),ai=(ui||(ui=si()),ui),hi=!(!ai||!ai.webkitShowPlaybackTargetPicker),li=function(){function n(){this.Oe=void 0,this.Be=!1,this.Gi=ci,this.pr=!1,this.Le=!0}var r=n.prototype;return r.Me=function(){return 0},r.xe=function(n,t){return!0},r.Ue=function(n){return n>=.3333333333333333},rn(n,[{key:"Fe",get:function(){return void 0===this.Oe&&(this.Oe=this.Me()),this.Oe}},{key:"He",get:function(){return!pn.Wr}},{key:"Ve",get:function(){if(t.screen)return{width:t.screen.width,height:t.screen.height}}},{key:"Xe",get:function(){return t.devicePixelRatio||1}},{key:"ze",get:function(){return hi}},{key:"We",get:function(){return!1}},{key:"qe",get:function(){return!0}},{key:"Ge",get:function(){return pn.Fr||pn._r}},{key:"Ye",get:function(){return!0}},{key:"je",get:function(){return!0}},{key:"Qe",get:function(){return!1}},{key:"Ke",get:function(){}},{key:"Ze",get:function(){return!0}},{key:"Je",get:function(){return!1}},{key:"$e",get:function(){return!1}},{key:"tu",get:function(){return pn.Cr}}]),n}(),vi=function(){var n=si();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(pn.rr)return!1;var n=si();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var _i=function(n){function t(t){var r;return(r=n.call(this)||this).nu=t,r.nu&&(r.Be=r.nu.Be,r.Gi=r.nu.Gi,r.Le=vi&&r.nu.Le),r}un(t,n);var r=t.prototype;return r.Me=function(){return this.nu?this.nu.Fe:n.prototype.Me.call(this)},r.xe=function(t,r){return this.nu?this.nu.xe(t,r):n.prototype.xe.call(this,t,r)},r.Ue=function(t){return this.nu?this.nu.Ue(t):n.prototype.Ue.call(this,t)},rn(t,[{key:"Ke",get:function(){var n;return null==(n=this.nu)?void 0:n.Ke}},{key:"Ze",get:function(){var n,t;return null==(t=null==(n=this.nu)?void 0:n.Ze)||t}}]),t}(li),yi=function(n){function t(t){var r;return(r=n.call(this,t)||this).Be=!0,r.pr=!0,r}return un(t,n),rn(t,[{key:"Qe",get:function(){return pn._r}}]),t}(_i),di=function(n){function t(){return n.apply(this,arguments)}return un(t,n),t.prototype.Me=function(){return ei.MediaSource?n.prototype.Me.call(this):1},rn(t,[{key:"Qe",get:function(){return!0}}]),t}(yi),wi=function(n){function r(){return n.apply(this,arguments)}return un(r,n),r.prototype.xe=function(t,r){return n.prototype.xe.call(this,t,r)},rn(r,[{key:"We",get:function(){return pn.Nr<3}},{key:"qe",get:function(){return pn.Nr>=3}},{key:"Ve",get:function(){var n=this;return t.tizen&&!this.uu&&t.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.uu={width:r,height:i})})),this.uu}},{key:"Je",get:function(){return pn.Nr<3}},{key:"$e",get:function(){return!0}}]),r}(_i),Ii=function(n){function t(){return n.call(this)}return un(t,n),t}(li),Ei=function(n){function t(){return n.apply(this,arguments)}return un(t,n),t.prototype.xe=function(n,t){if(n&&n.ou&&t&&t.ou){var r=pi(n.ou,"mp4a.40.2")&&pi(t.ou,"mp4a.40.5"),i=pi(n.ou,"mp4a.40.5")&&pi(t.ou,"mp4a.40.2"),e=pi(n.ou,"mp4a.40.2")&&pi(t.ou,"mp4a.40.34"),u=pi(n.ou,"mp4a.40.34")&&pi(t.ou,"mp4a.40.2"),o=pi(n.ou,"mp4a.40.5")&&pi(t.ou,"mp4a.40.34"),f=pi(n.ou,"mp4a.40.34")&&pi(t.ou,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},rn(t,[{key:"Ke",get:function(){if(pn.Yi)return 4096}}]),t}(Ii);function pi(n,t){return n.indexOf(t)>-1}var Ri=function(n){function t(){return n.apply(this,arguments)}return un(t,n),t.prototype.Ue=function(n){return n>=2},t}(Ii),gi=function(n){function t(){var t;return(t=n.call(this)||this).Be=pn.Hr>=11,t.Le=pn.Fr&&!(pn._r&&pn.Hr<10),t}return un(t,n),t}(Ii),Si=function(n){function r(){return n.apply(this,arguments)}return un(r,n),rn(r,[{key:"Ve",get:function(){var n=this;return t.webOS&&!this.uu&&t.webOS.deviceInfo((function(t){n.uu={width:t.screenWidth,height:t.screenHeight}})),this.uu}},{key:"Ye",get:function(){return!1}},{key:"$e",get:function(){return!0}}]),r}(_i),Oi=function(n){function t(){return n.apply(this,arguments)}return un(t,n),rn(t,[{key:"Ze",get:function(){return!pn.ji||(pn.Er?92!==pn.Ir:pn.Sr>=100)}}]),t}(Ii),Ti=function(n){function t(){return n.apply(this,arguments)}return un(t,n),rn(t,[{key:"Qe",get:function(){return!0}}]),t}(_i),ki=function(){function t(){var t;this.au=new bi,this.fu=(t=pn.Mr?new Ei:pn.Pr||pn.Or?new Ri:pn.Fr?new gi:pn.Tr?new Oi:new Ii,pn._r?new di(t):pn.pr?new yi(t):pn.Rr?new wi(t):pn.Dr?new Si(t):pn.Yi?new Ti(t):new _i(t)),this.vu=function(){if(n.URL)try{var t=new n.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href}catch(n){}return!1}(),n.performance&&n.performance.now?this.re=function(){return n.performance.now()}:this.re=ot}var r=t.prototype;return r.du=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Nn.apply(void 0,sn(t))},r._u=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Cn.apply(void 0,sn(t))},r.wu=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Dn.apply(void 0,sn(t))},r.yu=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];Pn.apply(void 0,[n].concat(sn(r)))},r.oe=function(n,t){return u(n,t)},r.mu=function(n,t){return f(n,t)},r.ue=function(n){o(n)},r.pu=function(n){s(n)},r.Au=function(){return this.bu.Au()},r.Tu=function(){return this.bu.Tu()},r.Su=function(){return this.bu.Su()},r.Eu=function(){return this.bu.Eu()},r.Iu=function(){return this.bu.Iu()},r.Ru=function(n,t){return this.bu.Ru(n,t)},r.Nu=function(n){return this.bu.Nu(n)},r.Du=function(n,t){var r;return void 0===t&&(t=fi(ei)),r="object"!=typeof t||t instanceof oi?t:t.href,new oi(n,r)},r.Cu=function(t,r){if(void 0===r&&(r=fi(ei)),this.vu){var i="string"==typeof r?r:r.toString();return new n.URL(t,i).href}return this.Du(t,r).href},rn(t,[{key:"Pu",get:function(){return this.au}},{key:"Ou",get:function(){return this.fu}},{key:"Bu",get:function(){return{Lu:e&&e.userAgent.match(/Android /i)?"Android":"other",Mu:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"xu",get:function(){return n&&n.location&&"https:"===n.location.protocol}},{key:"Uu",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),t}(),bi=function(){function n(){}return rn(n,[{key:"Fu",get:function(){return e.oscpu}},{key:"Ou",get:function(){return e.platform}},{key:"Hu",get:function(){return e.vendor}},{key:"Vu",get:function(){return e.vendorSub}}]),n}();var mi,Ai,Ni=function(){function n(){}var t=n.prototype;return t.Iu=function(){return K.resolve(!1)},t.Tu=function(){return K.resolve(!1)},t.Eu=function(){return K.resolve(!1)},t.Su=function(){return K.resolve(!1)},t.Nu=function(n){return K.resolve(!1)},t.Ru=function(n,t){return K.resolve(!1)},t.Au=function(){return K.resolve(!1)},n}(),Ci=function(){function n(){}var t=n.prototype;return t.Jf=function(){},t.Po=function(n){},t.No=function(n){},t.$f=function(n,t){},n}();function Di(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var i,e,u=[],o=!0,f=!1;try{for(r=r.call(n);!(o=(i=r.next()).done)&&(u.push(i.value),!t||u.length!==t);o=!0);}catch(n){f=!0,e=n}finally{try{o||null==r.return||r.return()}finally{if(f)throw e}}return u}}(n,t)||fn(n,t)||function(){throw new a("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Ai=mi||(mi={})).Jv="arraybuffer",Ai.$v="json",Ai.td="stream",Ai.rd="text";var Pi,Fi,Li=function(){function n(t){var r=this;this.Yu={},t instanceof n?t.asList().forEach((function(n){var t=Di(n,2),i=t[0],e=t[1];r.append(i,e)})):Array.isArray(t)?t.forEach((function(n){r.append(n[0],n[1])})):t&&h.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=Ui(r),i=Mi(i);var e=r.toLowerCase();if(this.Yu.hasOwnProperty(e)){var u=this.Yu[e],o=u[1];u[1]=o?o+", "+i:i}else this.Yu[e]=[r,i]},t.delete=function(n){var t=Ui(n).toLowerCase();delete this.Yu[t]},t.get=function(n){var t=Ui(n).toLowerCase();return this.Yu.hasOwnProperty(t)?this.Yu[t][1]:null},t.has=function(n){var t=Ui(n).toLowerCase();return this.Yu.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=Ui(r)).toLowerCase();this.Yu[i]=[r,Mi(t)]},t.forEach=function(n,t){for(var r in this.Yu)this.Yu.hasOwnProperty(r)&&n.call(t,this.Yu[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.Yu)if(this.Yu.hasOwnProperty(t)){var r=Di(this.Yu[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.ed=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.ud=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.od=function(n){var t=this;n.forEach((function(n,r){t.set(r,n)}))},n}();function Ui(n){var t=n;if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new a("Invalid character in header field name");return t}function Mi(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}function Wi(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):K.resolve(s).then(i,e)}function Vi(n){return function(){var t=this,r=arguments;return new K((function(i,e){var u=n.apply(t,r);function o(n){Wi(u,i,e,o,f,"next",n)}function f(n){Wi(u,i,e,o,f,"throw",n)}o(void 0)}))}}function Bi(n,t){var r,i,e,u,o=function(n){return function(t){return f([n,t])}},f=function(u){if(r)throw new a("Generator is already executing.");for(;s;)try{if(r=1,i&&(e=2&u[0]?i.return:u[0]?i.throw||((e=i.return)&&e.call(i),0):i.next)&&!(e=e.call(i,u[1])).done)return e;switch(i=0,e&&(u=[2&u[0],e.value]),u[0]){case 0:case 1:e=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,i=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(e=s.trys,(e=e.length>0&&e[e.length-1])||6!==u[0]&&2!==u[0])){s=0;continue}if(3===u[0]&&(!e||u[1]>e[0]&&u[1]<e[3])){s.label=u[1];break}if(6===u[0]&&s.label<e[1]){s.label=e[1],e=u;break}if(e&&s.label<e[2]){s.label=e[2],s.ops.push(u);break}e[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(n,s)}catch(n){u=[6,n],i=0}finally{r=e=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}},s={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return u={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u}function xi(n,t){var r=n.indexOf(t);return-1!==r&&(function(n,t){n.splice(t,1)}(n,r),!0)}function Hi(n){n.length=0}(Fi=Pi||(Pi={}))[Fi.ys=0]="ys",Fi[Fi.As=1]="As",Fi[Fi.Ts=-1]="Ts";var Gi,ji,Ki,qi,zi,Xi,$i,Zi,Yi=function(){function n(){this.Ss=!1,this.Es=!1,this.Is=[],this.Rs=[]}var t=n.prototype;return t.Ns=function(){if(!this.Ss&&!this.Es){this.Ss=!0;for(var n=0,t=this.Is.slice();n<t.length;n++){(0,t[n])()}this.Ds()}},t.Ds=function(){if(!this.Es){this.Es=!0;for(var n=0,t=this.Rs.slice();n<t.length;n++){(0,t[n])()}Hi(this.Is),Hi(this.Rs)}},t.Cs=function(n){this.Es||this.Is.push(n)},t.Ps=function(n){this.Es||xi(this.Is,n)},t.Os=function(n){this.Es||this.Rs.push(n)},t.Bs=function(n){this.Es||xi(this.Rs,n)},n}(),Ji=function(){function n(){this.Ls=new Yi}var t=n.prototype;return t.Ms=function(){this.Ls.Ns()},t.Ds=function(){this.Ls.Ds()},t.xs=function(n){var t=this.Ls;if(!t.Ss)if(n.Ss)t.Ns();else if(!t.Es&&!n.Es){var r=function(){i(),t.Ns()},i=function(){n.Ps(r),n.Bs(i),t.Ps(r),t.Bs(i)};n.Cs(r),n.Os(i),t.Cs(r),t.Os(i)}},t.Us=function(){var t=new n,r=new n,i=t.Fs,e=r.Fs,u=this.Ls,o=function(){i.Ss&&e.Es||e.Ss&&i.Es?u.Ns():i.Es&&e.Es&&u.Ds()};i.Cs(o),e.Cs(o),i.Os(o),e.Os(o),t.xs(u),r.xs(u);return u.Os((function(){i.Ps(o),e.Ps(o),i.Bs(o),e.Bs(o)})),[t,r]},rn(n,[{key:"Fs",get:function(){return this.Ls}}]),n}();(ji=Gi||(Gi={})).DELETE="DELETE",ji.GET="GET",ji.HEAD="HEAD",ji.OPTIONS="OPTIONS",ji.POST="POST",ji.PUT="PUT",(qi=Ki||(Ki={})).Hd="",qi.Vd="manifest",qi.Xd="segment",qi.zd="preload-hint",qi.Wd="content-protection",(Xi=zi||(zi={})).Hd="",Xi.qd="initialization-segment",Xi.Gd="fairplay-license",Xi.Yd="fairplay-certificate",Xi.jd="widevine-license",Xi.Qd="widevine-certificate",Xi.Kd="playready-license",Xi.Zd="clearkey-license",Xi.Jd="aes128-key",(Zi=$i||($i={})).Hd="",Zi.$d="audio",Zi.il="video",Zi.rd="text",Zi.ul="image";var Qi=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_=n.xd;t?(r=t.yd,i=t.Cd,e=t.ol,u=t.Pd,o=t.al,f=t.cl,s=t.Fs,c=t.$u,a=t.hl,h=t.fl,l=t.vl,v=t.dl):(r=null,i={},e="GET",u=mi.rd,o=0,f=0,c="",a="",h="",l=!1),this.xd=_,this.yd=n.yd||r,this.Cd=new Li(n.Cd||i),this.ol=n.ol||e,this.Pd=n.Pd||u,this.al=void 0!==n.al?Number(n.al)||0:o,this.cl=void 0!==n.cl?Number(n.cl)||0:f,this.Fs=n.Fs||s||(new Ji).Fs,this.$u=n.$u||c,this.hl=n.hl||a,this.fl=n.fl||h,this.vl=void 0!==n.vl?Boolean(n.vl):l,this.dl=n.dl||v};var ne=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];c.apply(this,t)};(ne.prototype=h.create(c.prototype)).constructor=ne;var te,re,ie=function(n){function t(t,r){var i;return(i=n.call(this)||this).message=t||"Unknown error",i.cause=r,c.captureStackTrace&&c.captureStackTrace(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(i),i.constructor),i}return un(t,n),rn(t,[{key:"name",get:function(){return"BaseError"}}]),t}(ne);(re=te||(te={})).El="HttpOpenError",re.Il="HttpResponseError",re.Rl="HttpTimeoutError";var ee,ue,oe,fe,se,ce,ae,he=function(n){function t(t,r){return n.call(this,t,"Error while opening "+t.xd+". Invalid URL.",r)}return un(t,n),rn(t,[{key:"name",get:function(){return te.El}}]),t}(function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).Nl=t,e}return un(t,n),rn(t,[{key:"Ld",get:function(){return this.Nl}}]),t}(ie)),le=function(){function n(){}var t=n.prototype;return t.Ld=function(n){return K.reject(new he(new Qi(n)))},t.ll=function(n){},t.Bf=function(){},n}(),ve=function(n){function t(t){return n.call(this,"Invalid XML",t)}return un(t,n),t}(ie);ee=new(function(n){function t(){var t;return(t=n.apply(this,arguments)||this).Y_=new Ni,t.wI=new le,t.t=new Ci,t}return un(t,n),t.prototype.p_=function(n){throw new ve},rn(t,[{key:"bu",get:function(){return this.Y_}},{key:"rg",get:function(){return!1}},{key:"eg",get:function(){return!1}},{key:"ag",get:function(){return!1}},{key:"og",get:function(){return!1}},{key:"cg",get:function(){return this.t}},{key:"hg",get:function(){return{fg:Sn}}},{key:"vg",get:function(){return"default"}},{key:"dg",get:function(){return"unknown"}},{key:"_g",get:function(){return this.wI}}]),t}(ki)),(oe=ue||(ue={}))[oe.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",oe[oe.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4",(se=fe||(fe={}))[se.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",se[se.LICENSE_ERROR=2e3]="LICENSE_ERROR",se[se.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",se[se.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",se[se.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",se[se.LICENSE_INVALID_FEATURE=2004]="LICENSE_INVALID_FEATURE",se[se.SOURCE_INVALID=3e3]="SOURCE_INVALID",se[se.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",se[se.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",se[se.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",se[se.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",se[se.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",se[se.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",se[se.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",se[se.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",se[se.MEDIA_ABORTED=5004]="MEDIA_ABORTED",se[se.NETWORK_ERROR=6e3]="NETWORK_ERROR",se[se.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",se[se.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",se[se.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",se[se.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",se[se.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",se[se.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",se[se.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",se[se.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",se[se.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",se[se.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",se[se.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",se[se.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",se[se.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",se[se.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",se[se.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",se[se.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",se[se.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",se[se.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",se[se.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",se[se.AD_ERROR=1e4]="AD_ERROR",se[se.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",se[se.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR",se[se.CACHE_SOURCE_ERROR=12e3]="CACHE_SOURCE_ERROR",se[se.CACHE_CONTENT_PROTECTION_ERROR=12001]="CACHE_CONTENT_PROTECTION_ERROR",(ae=ce||(ce={}))[ae.CONFIGURATION=1]="CONFIGURATION",ae[ae.LICENSE=2]="LICENSE",ae[ae.SOURCE=3]="SOURCE",ae[ae.MANIFEST=4]="MANIFEST",ae[ae.MEDIA=5]="MEDIA",ae[ae.NETWORK=6]="NETWORK",ae[ae.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",ae[ae.SUBTITLE=8]="SUBTITLE",ae[ae.VR=9]="VR",ae[ae.AD=10]="AD",ae[ae.FULLSCREEN=11]="FULLSCREEN",ae[ae.CACHE=12]="CACHE",(ce||(ce={})).fromCode=function(n){var t=l.floor(n/1e3);if(t in ce)return t;throw new a("Invalid error code: "+n)};var _e=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).code=t,e}return un(t,n),rn(t,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return ce.fromCode(this.code)}}]),t}(ie);var ye,de=function(){function n(n){this.encoding=n}var t=n.prototype;return t.encode=function(n){if(!n)return new d(0);for(var t=new d(n.length),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},t.encodeInto=function(n,t){for(var r=l.min(n.length,t.byteLength),i=0;i<r;i++)t[i]=n.charCodeAt(i);return{read:r,written:r}},n}();var we=new(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 d(n):new d(n.buffer,n.byteOffset,n.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},n}())("utf-8",{ignoreBOM:!0,fatal:!0});we.decode();var Ie=new d;function Ee(){return Ie.buffer!==ye.memory.buffer&&(Ie=new d(ye.memory.buffer)),Ie}function pe(n,t){return we.decode(Ee().subarray(n,n+t))}var Re=new Array(32).fill(void 0);Re.push(void 0,null,!0,!1);var ge=Re.length;function Se(n){ge===Re.length&&Re.push(Re.length+1);var t=ge;return ge=Re[t],Re[t]=n,t}function Oe(n){return Re[n]}function Te(n){var t=Oe(n);return function(n){n<36||(Re[n]=ge,ge=n)}(n),t}var ke=0;function be(n,t){var r=t(1*n.length);return Ee().set(n,r/1),ke=n.length,r}var me=new Int32Array;function Ae(){return me.buffer!==ye.memory.buffer&&(me=new Int32Array(ye.memory.buffer)),me}function Ne(n){return null==n}function Ce(n,t){return Ee().subarray(n/1,n/1+t)}var De=new de("utf-8"),Pe="function"==typeof De.encodeInto?function(n,t){return De.encodeInto(n,t)}:function(n,t){var r=De.encode(n);return t.set(r),{read:n.length,written:r.length}};function Fe(n,t){return Le.apply(this,arguments)}function Le(){return(Le=Vi((function(n,t){var r,i,e;return Bi(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]}}))}))).apply(this,arguments)}function Ue(){var n={wbg:{}};return n.wbg.__wbg_createoutputdata_bccee5979d8be2f0=function(n,t,r,i,e,u,o,f){var s,c,a,h;return 0!==n&&(s=Ce(n,t).slice(),ye.__wbindgen_export_1(n,1*t)),0!==r&&(c=Ce(r,i).slice(),ye.__wbindgen_export_1(r,1*i)),0!==e&&(a=Ce(e,u).slice(),ye.__wbindgen_export_1(e,1*u)),0!==o&&(h=Ce(o,f).slice(),ye.__wbindgen_export_1(o,1*f)),Se({video_init:s,audio_init:c,video_media:a,audio_media:h})},n.wbg.__wbg_createtimestampwithbase_946dfd2c21189740=function(n,t,r){return Se({low:n>>>0,high:t>>>0,base:r>>>0})},n.wbg.__wbg_createoutputmetadata_447237f2cefc820a=function(n,t,r,i,e,u,o,f,s,c,a,h,l,v,_,y){var d,w,I,E,p,R,g,S,O,T,k,b,m;return 0!==r&&(d=pe(r,i).slice(),ye.__wbindgen_export_1(r,1*i)),0!==e&&(w=pe(e,u).slice(),ye.__wbindgen_export_1(e,1*u)),0!==o&&(I=Ce(o,f).slice(),ye.__wbindgen_export_1(o,1*f)),0!==s&&(E=Ce(s,c).slice(),ye.__wbindgen_export_1(s,1*c)),Se((p=16777215===n?void 0:n,R=16777215===t?void 0:t,g=d,S=w,O=I,T=E,k=Te(a),b=Te(h),m=Te(l),{video_pid:p,audio_pid:R,video_codec:g,audio_codec:S,sps_nal:O,pps_nal:T,first_decode_timestamp:k,first_presentation_timestamp:b,first_video_presentation_timestamp:m,program_map_table_pid:16777215===v?void 0:v,video_frame_rate:0===_?void 0:y}))},n.wbg.__wbg_createoutput_57eadab690ca8f38=function(n,t){var r,i;return Se((r=Te(n),i=Te(t),{data:r,metadata:i}))},n.wbg.__wbindgen_string_new=function(n,t){return Se(pe(n,t))},n.wbg.__wbg_new_693216e109162396=function(){return Se(new c)},n.wbg.__wbg_stack_0ddaca5d1abfb52f=function(n,t){var r=function(n,t,r){if(void 0===r){var i=De.encode(n),e=t(i.length);return Ee().subarray(e,e+i.length).set(i),ke=i.length,e}for(var u=n.length,o=t(u),f=Ee(),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);var a=Ee().subarray(o+s,o+u);s+=Pe(n,a).written}return ke=s,o}(Oe(t).stack,ye.__wbindgen_export_0,ye.__wbindgen_export_2),i=ke;Ae()[n/4+1]=i,Ae()[n/4+0]=r},n.wbg.__wbg_error_09919627ac0992f5=function(n,t){try{console.error(pe(n,t))}finally{ye.__wbindgen_export_1(n,t)}},n.wbg.__wbindgen_object_drop_ref=function(n){Te(n)},n.wbg.__wbg_data_cc2d56efd30827c5=function(n,t){var r=be(Oe(t).data,ye.__wbindgen_export_0),i=ke;Ae()[n/4+1]=i,Ae()[n/4+0]=r},n.wbg.__wbg_metadata_ca2e3d23c7c1a6ca=function(n){var t=Oe(n).metadata;return Ne(t)?0:Se(t)},n.wbg.__wbg_spsnal_b4bfd05148141930=function(n,t){var r=Oe(t).sps_nal,i=Ne(r)?0:be(r,ye.__wbindgen_export_0),e=ke;Ae()[n/4+1]=e,Ae()[n/4+0]=i},n.wbg.__wbg_ppsnal_f7bfb23a31ee4c34=function(n,t){var r=Oe(t).pps_nal,i=Ne(r)?0:be(r,ye.__wbindgen_export_0),e=ke;Ae()[n/4+1]=e,Ae()[n/4+0]=i},n.wbg.__wbg_videopid_7a1f9f6b54cf877d=function(n){var t=Oe(n).video_pid;return Ne(t)?16777215:t},n.wbg.__wbg_audiopid_30bbe0807c83c7cc=function(n){var t=Oe(n).audio_pid;return Ne(t)?16777215:t},n.wbg.__wbg_programmaptablepid_1551464a82dd2746=function(n){var t=Oe(n).program_map_table_pid;return Ne(t)?16777215:t},n}function Me(n,t){return ye=n.exports,We.__wbindgen_wasm_module=t,me=new Int32Array,Ie=new d,ye.__wbindgen_start(),ye}function We(n){return Ve.apply(this,arguments)}function Ve(){return(Ve=Vi((function(n){var t,r,i,e;return Bi(this,(function(u){switch(u.label){case 0:return void 0===n&&(n=new URL("theomux_bg.wasm",void 0)),t=Ue(),("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n)),[4,n];case 1:return[4,Fe.apply(void 0,[u.sent(),t])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,Me(i,e)]}}))}))).apply(this,arguments)}function Be(){return(Be=Vi((function(n){var t;return Bi(this,(function(r){switch(r.label){case 0:return"string"==typeof n&&(n=new URL(n)),n instanceof WebAssembly.Module?(t=n,[3,3]):[3,1];case 1:return[4,He(n)];case 2:t=r.sent(),r.label=3;case 3:return[4,We(t)];case 4:return r.sent(),[2,new xe(t)]}}))}))).apply(this,arguments)}var xe=function(){function n(n){this.ve=n}var t=n.prototype;return t.mpegts_to_fmp4=function(n){return function(n){try{var t=ye.__wbindgen_add_to_stack_pointer(-16);ye.mpegts_to_fmp4(t,Se(n));var r=Ae()[t/4+0],i=Ae()[t/4+1];if(Ae()[t/4+2])throw Te(i);return Te(r)}finally{ye.__wbindgen_add_to_stack_pointer(16)}}(n)},t.raw_audio_to_fmp4=function(n){return function(n){try{var t=ye.__wbindgen_add_to_stack_pointer(-16);ye.raw_audio_to_fmp4(t,Se(n));var r=Ae()[t/4+0],i=Ae()[t/4+1];if(Ae()[t/4+2])throw Te(i);return Te(r)}finally{ye.__wbindgen_add_to_stack_pointer(16)}}(n)},t.restart=function(){var n=this;return Vi((function(){return Bi(this,(function(t){switch(t.label){case 0:return[4,We(n.ve)];case 1:return t.sent(),[2]}}))}))()},n}();function He(n){return Ge.apply(this,arguments)}function Ge(){return(Ge=Vi((function(n){var t,r,i,e;return Bi(this,(function(u){switch(u.label){case 0:return"http:"!==n.protocol&&"https:"!==n.protocol?[3,8]:[4,fetch(n.href)];case 1:if(t=u.sent(),"function"!=typeof WebAssembly.compileStreaming)return[3,5];u.label=2;case 2:return u.trys.push([2,4,,5]),[4,WebAssembly.compileStreaming(t)];case 3:return[2,u.sent()];case 4:if(r=u.sent(),"application/wasm"===t.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.compileStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.compile` which is slower. Original error:\n",r),[3,5];case 5:return[4,t.arrayBuffer()];case 6:return i=u.sent(),[4,WebAssembly.compile(i)];case 7:return[2,u.sent()];case 8:return[4,je(n.href)];case 9:return e=u.sent(),[4,WebAssembly.compile(e)];case 10:return[2,u.sent()];case 11:return[2]}}))}))).apply(this,arguments)}function je(n){return new K((function(t,r){var i=new w;i.onload=function(){t(i.response||new ArrayBuffer(0))},i.onerror=function(){r(new a('Failed to fetch "'+n+'", status '+i.status))},i.open("GET",n,!0),i.responseType="arraybuffer",i.send()}))}var Ke=new URL("./THEOplayer.transmux.wasm",i.href);!function(t){var r,i=K.resolve(t()).then((function(t){r=t,i=void 0,n.postMessage({REt:"5.11.0"})}),(function(t){var r=t,i={success:!1,error:r.message,errorCode:r instanceof _e?r.code:fe.MEDIA_DECODE_ERROR};n.postMessage(i)}));function e(){return(e=Vi((function(t){var e,u,o,f,s,a;return Bi(this,(function(h){switch(h.label){case 0:return void 0===i?[3,2]:[4,i];case 1:h.sent(),h.label=2;case 2:if(o=t.id,t.type===ue.MPEGTS_TO_FMP4)f=r.mpegts_to_fmp4(t.input);else{if(t.type!==ue.RAW_AUDIO_TO_FMP4)throw new c("Unknown request type: "+t.type);f=r.raw_audio_to_fmp4(t.input)}return s={success:!0,requestId:o,output:f},a=[null==(e=t.input.metadata)?void 0:e.sps_nal,null==(u=t.input.metadata)?void 0:u.pps_nal,t.input.data,f.data.video_init,f.data.audio_init,f.data.video_media,f.data.audio_media].filter(gn).map((function(n){return n.buffer})),n.postMessage(s,a),[2]}}))}))).apply(this,arguments)}n.addEventListener("message",(function(t){var r=t.data.id;(function(n){return e.apply(this,arguments)})(t.data).catch((function(t){var i=t,e={success:!1,requestId:r,error:i.message,errorCode:i instanceof _e?i.code:fe.MEDIA_DECODE_ERROR};n.postMessage(e)}))}))}((function(){return function(n){return Be.apply(this,arguments)}(Ke)}))}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this);
30
+ !function(n){"use strict";var t=n.window,r=n.document,i=n.location,e=n.navigator,u=n.setTimeout,o=n.clearTimeout,f=n.setInterval,s=n.clearInterval,c=n.Error,a=n.TypeError,h=(n.SyntaxError,n.Object),l=n.Math,v=n.parseInt,_=n.parseFloat,y=n.isNaN,d=n.Uint8Array,w=(n.Worker,n.WorkerGlobalScope,n.XMLHttpRequest);var I=u;function E(n){return Boolean(n&&void 0!==n.length)}function p(){}function R(n){if(!(this instanceof R))throw new a("Promises must be constructed via new");if("function"!=typeof n)throw new a("not a function");this.Pa=0,this.$$t=!1,this.drt=void 0,this.t0t=[],b(n,this)}function g(n,t){for(;3===n.Pa;)n=n.drt;0!==n.Pa?(n.$$t=!0,R.n0t((function(){var r=1===n.Pa?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(n.drt)}catch(n){return void O(t.promise,n)}S(t.promise,i)}else(1===n.Pa?S:O)(t.promise,n.drt)}))):n.t0t.push(t)}function S(n,t){try{if(t===n)throw new a("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if(t instanceof R)return n.Pa=3,n.drt=t,void T(n);if("function"==typeof r)return void b(function(n,t){return function(){n.apply(t,arguments)}}(r,t),n)}n.Pa=1,n.drt=t,T(n)}catch(t){O(n,t)}}function O(n,t){n.Pa=2,n.drt=t,T(n)}function T(n){2===n.Pa&&0===n.t0t.length&&R.n0t((function(){n.$$t||R.i0t(n.drt)}));for(var t=0,r=n.t0t.length;t<r;t++)g(n,n.t0t[t]);n.t0t=null}function k(n,t,r){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=r}function b(n,t){var r=!1;try{n((function(n){r||(r=!0,S(t,n))}),(function(n){r||(r=!0,O(t,n))}))}catch(n){if(r)return;r=!0,O(t,n)}}R.prototype.catch=function(n){return this.then(null,n)},R.prototype.then=function(n,t){var r=new this.constructor(p);return g(this,new k(n,t,r)),r},R.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)}))}))},R.all=function(n){return new R((function(t,r){if(!E(n))return r(new a("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"==typeof 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])}))},R.allSettled=function(n){return new this((function(t,r){if(!n||void 0===n.length)return r(new a((void 0===n?"undefined":function(n){return n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n}(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"==typeof 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])}))},R.resolve=function(n){return n&&"object"==typeof n&&n.constructor===R?n:new R((function(t){t(n)}))},R.reject=function(n){return new R((function(t,r){r(n)}))},R.race=function(n){return new R((function(t,r){if(!E(n))return r(new a("Promise.race accepts an array"));for(var i=0,e=n.length;i<e;i++)R.resolve(n[i]).then(t,r)}))},R.n0t="function"==typeof setImmediate&&function(n){setImmediate(n)}||function(n){I(n,0)},R.i0t=function(n){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};var m,A=function(){var n=self.Promise;if(void 0!==n)try{if(-1!==n.toString().indexOf("[native code]"))return n}catch(n){}}(),N=e?e.userAgent:"",C=N.match(/Firefox\/([0-9]+)/i),D=null!=C,P=C?Number(C[1]):0,F=N.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),L=null!=F,U=F?Number(F[3]):0,M=((m=function(n){this.gI=0,this.Iu=0,this.sR=[],this.r0t=n}).prototype.e0t=function(n){var t=this.length();this.u0t(t+1);var r=this.Iu+t&this.r0t-1;this.sR[r]=n,this.gI=t+1},m.prototype.push=function(n){var t=this.length()+1;if(this.r0t<t)this.e0t(n);else{var r=this.Iu+t-1,i=this.r0t-1;this.sR[r&i]=n,this.gI=t}},m.prototype.shift=function(){var n=this.Iu,t=this.sR[n];return this.sR[n]=void 0,this.Iu=n+1&this.r0t-1,this.gI--,t},m.prototype.length=function(){return this.gI},m.prototype.u0t=function(n){this.r0t<n&&this.s0t(this.r0t<<1)},m.prototype.s0t=function(n){var t=this.r0t;this.r0t=n;var r=this.Iu+this.gI&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.sR,0,t,r)},m);var W="unhandledrejection",V=self.PromiseRejectionEvent,B=self.CustomEvent;function x(n){return new V(W,{reason:n,promise:A.reject(n).catch((function(){})),cancelable:!0})}function H(n){var t=new B(W,{detail:{reason:n},cancelable:!0});return h.defineProperty(t,"reason",{value:n}),t}function G(n){var t=r.createEvent("CustomEvent");return t.initCustomEvent(W,!1,!0,{reason:n}),t}var j,K,q,z,X=function(n){return(X=function(){try{var n=A.resolve(),t="error",r=new V(W,{reason:t,promise:n});return W===r.type&&t===r.reason}catch(n){}return!1}()?x:function(){try{var n="error",t=new B(W,{detail:{reason:n}});return W===t.type&&n===t.detail.reason}catch(n){}return!1}()?H:G)(n)};function $(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),h.defineProperty(n,i.key,i)}}function Z(n,t,r){return t&&$(n.prototype,t),r&&$(n,r),n}function Y(n,t){return(Y=h.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function J(n,t){if("function"!=typeof t&&null!==t)throw new a("Super expression must either be null or a function");n.prototype=h.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&Y(n,t)}function Q(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 nn(n,t){if(n){if("string"==typeof n)return Q(n,t);var r=h.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)?Q(n,t):void 0}}function tn(n){return function(n){if(Array.isArray(n))return Q(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||nn(n)||function(){throw new a("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}A&&!(D&&P<60||L&&U<15)?K=A:(K=R,(q=function(n){var t=new M(16),r=!1,i=function(){for(;t.length()>0;)t.shift()();r=!1};return{bY:function(e){t.push(e),r||(r=!0,n(i))},N2:i}}(null!==(j=function(){var n=self.queueMicrotask;if("function"==typeof n)return function(t){return n(t)};var t=A;if(t&&"function"==typeof t.resolve){var r=t.resolve();return function(n){return r.then(n)}}}())&&void 0!==j?j:R.n0t)).N2,R.n0t=q.bY,R.i0t=function(n){try{var t=X(n);if(!self.dispatchEvent(t)||t.defaultPrevented)return}catch(n){}u((function(){throw new c("Unhandled promise rejection: ".concat(n))}),0)}),function(n){n.US="web",n.HS="android",n.VS="android-tv",n.qS="ios",n.WS="tvos",n.zS="chromecast"}(z||(z={}));var rn=e?e.userAgent:"",en=rn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),un=rn.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),on=rn.match(/Android ([0-9\.]+)/i),fn=rn.match(/Windows NT ([0-9\.]+)/i),sn=rn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),cn=rn.match(/Firefox\/([0-9\.]+)/i),an=rn.match(/OPR\/(\d+\.\d+)/i),hn=rn.match(/Tizen ([0-9\.]+)/i),ln=rn.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),vn=function(){function n(){this.XS=Boolean("ontouchstart"in self||self.DocumentTouch&&r instanceof self.DocumentTouch||e&&e.msMaxTouchPoints),this.QS=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(rn)||/(macintosh|mac(?=_powerpc)\s)/i.test(rn),this.YS=/Windows NT/i.test(rn),this.ZS=fn?_(fn[1]):0,this.$S=/Android/i.test(rn),this.nk=on?_(on[1]):0,this.hk=/windows phone (8|8\.1)/i.test(rn),this.lk=/iPhone/i.test(rn),this.fk=/iPad/i.test(rn),this.gk=this.QS&&this.XS&&!this.fk,this.wk=/iPod/i.test(rn),this.Rk=/Mobile Safari/i.test(rn),this.Sk=/EOS\d*STB/i.test(rn),this.Ek=/APP\d*STB/i.test(rn),this.yk=(this.lk||this.fk||this.gk||this.wk)&&!this.hk,this.bk=ln?_(ln[2]):0,this.Pk=this.hk||this.yk||this.$S||this.Rk,this.Ck=/CriOS/i.test(rn),this.Dk=Boolean(self.chrome&&/google/i.test(e.vendor))||this.Ck,this.Mk=this.Dk&&/Edg\//i.test(e.userAgent),this.Uk=un?v(un[1],10):0,this.NE=Boolean(self.chrome||/Chrome/i.test(rn)||/CriOS/i.test(rn)),this.Lk=en?v(en[1],10):0,this.Vk=/SMART-TV.*Tizen/i.test(rn),this.Wk=hn?_(hn[1]):0,this.Xk=/webos|web0s/i.test(rn),this.Qk=/VIZIO/i.test(rn),this.Yk=/Edge\/\d+/i.test(rn),this.Zk=/Trident/i.test(rn),this.$k=this.Zk&&!self.ActiveXObject&&"ActiveXObject"in self,this.eE=/Vivaldi/i.test(rn),this.sE=/Firefox/i.test(rn)&&!/Seamonkey/i.test(rn),this.rE=cn?_(cn[1]):0,this.oE=/Safari/i.test(rn)&&!/Chrome/i.test(rn)&&!this.hk&&!this.Vk,this.uE=sn?_(sn[2]):0,this.lE=Boolean(an),this.fE=an?_(an[1]):0,this.gE=/CrKey/.test(rn),this.wE=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv|vizio)\b/i.test(rn),this.yE="web"===z.VS,this.bE="web"===z.HS,this.SE=this.bE||this.yE,this.EE="web"===z.qS,this.RE="web"===z.WS,this.xE="web"===z.zS}return Z(n,[{key:"Ye",get:function(){return this.XS}},{key:"GS",get:function(){return this.QS}},{key:"KS",get:function(){return this.YS}},{key:"jS",get:function(){return this.ZS}},{key:"JS",get:function(){return this.$S}},{key:"ek",get:function(){return this.nk}},{key:"rk",get:function(){return this.hk}},{key:"ck",get:function(){return this.lk}},{key:"dk",get:function(){return this.fk}},{key:"_k",get:function(){return this.gk}},{key:"vk",get:function(){return this.wk}},{key:"pk",get:function(){return this.yk}},{key:"Ak",get:function(){return this.bk}},{key:"Tk",get:function(){return this.Sk||this.Ek}},{key:"Ik",get:function(){return this.Rk}},{key:"Ks",get:function(){return this.Pk}},{key:"xk",get:function(){return this.Ck}},{key:"Nk",get:function(){return this.Dk}},{key:"Bk",get:function(){return this.Lk}},{key:"Ok",get:function(){return this.Mk}},{key:"Fk",get:function(){return this.Uk}},{key:"Hk",get:function(){return this.Vk}},{key:"qk",get:function(){return this.Wk}},{key:"zk",get:function(){return this.Xk}},{key:"Gk",get:function(){return this.Qk}},{key:"Kk",get:function(){return this.Yk}},{key:"jk",get:function(){return this.Zk}},{key:"Jk",get:function(){return this.$k}},{key:"tE",get:function(){return this.eE}},{key:"iE",get:function(){return this.sE}},{key:"nE",get:function(){return this.rE}},{key:"hE",get:function(){return this.oE}},{key:"aE",get:function(){return this.uE}},{key:"cE",get:function(){return this.lE}},{key:"dE",get:function(){return this.fE}},{key:"_E",get:function(){return this.gE}},{key:"vE",get:function(){return this.wE}},{key:"mE",get:function(){return!(!this.zk&&!this.Hk)&&this.Bk<=56}},{key:"pE",get:function(){return this.yE}},{key:"AE",get:function(){return this.bE}},{key:"TE",get:function(){return this.SE}},{key:"kE",get:function(){return this.EE}},{key:"IE",get:function(){return this.RE}},{key:"PE",get:function(){return this.xE}},{key:"CE",get:function(){return this.NE}}]),n}();vn.zf=new vn;var _n=vn.zf,yn={}.toString;function dn(n){return null!=n}Array.isArray;var wn=function(){},In=!(_n.jk&&!_n.Jk),En=self.console;function pn(n){if(function(n){return"object"==typeof n&&null!==n}(n))try{return JSON.stringify(n)}catch(n){}return n}function Rn(n){return n.map(pn).join(" ")}function gn(n){var t=En&&En[n];return t?t.bind&&In?t.bind(En):function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];En[n](Rn(r))}:void 0}var Sn=gn("log")||wn,On=gn("warn")||Sn.bind(void 0,"WARNING:"),Tn=gn("error")||Sn.bind(void 0,"ERROR:"),kn=function(){var n=En&&En.assert;return n?n.bind&&In?n.bind(En):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];En.assert(n,Rn(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||Tn.apply(void 0,["Assertion failed:"].concat(tn(r)))}}(),bn=null;try{bn=new WebAssembly.Instance(new WebAssembly.Module(new d([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(m){}function mn(n,t,r){this.low=0|n,this.high=0|t,this.unsigned=!!r}function An(n){return!0===(n&&n.Nf)}function Nn(n){var t=l.clz32(n&-n);return n?31-t:t}mn.prototype.Nf,h.defineProperty(mn.prototype,"Nf",{value:!0}),mn.isLong=An;var Cn={},Dn={};function Pn(n,t){var r,i,e;return t?(e=0<=(n>>>=0)&&n<256)&&(i=Dn[n])?i:(r=Ln(n,0,!0),e&&(Dn[n]=r),r):(e=-128<=(n|=0)&&n<128)&&(i=Cn[n])?i:(r=Ln(n,n<0?-1:0,!1),e&&(Cn[n]=r),r)}function Fn(n,t){if(y(n))return t?jn:Gn;if(t){if(n<0)return jn;if(n>=Bn)return $n}else{if(n<=-xn)return Zn;if(n+1>=xn)return Xn}return n<0?Fn(-n,t).neg():Ln(n%Vn|0,n/Vn|0,t)}function Ln(n,t,r){return new mn(n,t,r)}mn.fromInt=Pn,mn.fromNumber=Fn,mn.fromBits=Ln;var Un=l.pow;function Mn(n,t,r){if(0===n.length)throw c("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===n||"Infinity"===n||"+Infinity"===n||"-Infinity"===n)return t?jn:Gn;if((r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=n.indexOf("-"))>0)throw c("interior hyphen");if(0===i)return Mn(n.substring(1),t,r).neg();for(var e=Fn(Un(r,8)),u=Gn,o=0;o<n.length;o+=8){var f=l.min(8,n.length-o),s=v(n.substring(o,o+f),r);if(f<8){var a=Fn(Un(r,f));u=u.mul(a).add(Fn(s))}else u=(u=u.mul(e)).add(Fn(s))}return u.unsigned=t,u}function Wn(n,t){return"number"==typeof n?Fn(n,t):"string"==typeof n?Mn(n,t):Ln(n.low,n.high,"boolean"==typeof t?t:n.unsigned)}mn.fromString=Mn,mn.fromValue=Wn;var Vn=4294967296,Bn=Vn*Vn,xn=Bn/2,Hn=Pn(1<<24),Gn=Pn(0);mn.ZERO=Gn;var jn=Pn(0,!0);mn.UZERO=jn;var Kn=Pn(1);mn.ONE=Kn;var qn=Pn(1,!0);mn.UONE=qn;var zn=Pn(-1);mn.NEG_ONE=zn;var Xn=Ln(-1,2147483647,!1);mn.MAX_VALUE=Xn;var $n=Ln(-1,-1,!0);mn.MAX_UNSIGNED_VALUE=$n;var Zn=Ln(0,-2147483648,!1);mn.MIN_VALUE=Zn;var Yn=mn.prototype;Yn.toInt=function(){return this.unsigned?this.low>>>0:this.low},Yn.toNumber=function(){return this.unsigned?(this.high>>>0)*Vn+(this.low>>>0):this.high*Vn+(this.low>>>0)},Yn.toString=function(n){if((n=n||10)<2||36<n)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(Zn)){var t=Fn(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=Fn(Un(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}},Yn.getHighBits=function(){return this.high},Yn.getHighBitsUnsigned=function(){return this.high>>>0},Yn.getLowBits=function(){return this.low},Yn.getLowBitsUnsigned=function(){return this.low>>>0},Yn.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Zn)?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},Yn.isZero=function(){return 0===this.high&&0===this.low},Yn.eqz=Yn.isZero,Yn.isNegative=function(){return!this.unsigned&&this.high<0},Yn.isPositive=function(){return this.unsigned||this.high>=0},Yn.isOdd=function(){return 1==(1&this.low)},Yn.isEven=function(){return 0==(1&this.low)},Yn.equals=function(n){return An(n)||(n=Wn(n)),(this.unsigned===n.unsigned||this.high>>>31!=1||n.high>>>31!=1)&&(this.high===n.high&&this.low===n.low)},Yn.eq=Yn.equals,Yn.notEquals=function(n){return!this.eq(n)},Yn.neq=Yn.notEquals,Yn.ne=Yn.notEquals,Yn.lessThan=function(n){return this.comp(n)<0},Yn.lt=Yn.lessThan,Yn.lessThanOrEqual=function(n){return this.comp(n)<=0},Yn.lte=Yn.lessThanOrEqual,Yn.le=Yn.lessThanOrEqual,Yn.greaterThan=function(n){return this.comp(n)>0},Yn.gt=Yn.greaterThan,Yn.greaterThanOrEqual=function(n){return this.comp(n)>=0},Yn.gte=Yn.greaterThanOrEqual,Yn.ge=Yn.greaterThanOrEqual,Yn.compare=function(n){if(An(n)||(n=Wn(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},Yn.comp=Yn.compare,Yn.negate=function(){return!this.unsigned&&this.eq(Zn)?Zn:this.not().add(Kn)},Yn.neg=Yn.negate,Yn.add=function(n){An(n)||(n=Wn(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,Ln((a&=65535)<<16|(h&=65535),(s&=65535)<<16|(c&=65535),this.unsigned)},Yn.subtract=function(n){return An(n)||(n=Wn(n)),this.add(n.neg())},Yn.sub=Yn.subtract,Yn.multiply=function(n){if(this.isZero())return this;if(An(n)||(n=Wn(n)),bn)return Ln(bn.mul(this.low,this.high,n.low,n.high),bn.get_high(),this.unsigned);if(n.isZero())return this.unsigned?jn:Gn;if(this.eq(Zn))return n.isOdd()?Zn:Gn;if(n.eq(Zn))return this.isOdd()?Zn:Gn;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(Hn)&&n.lt(Hn))return Fn(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,Ln((h&=65535)<<16|(l&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},Yn.mul=Yn.multiply,Yn.divide=function(n){if(An(n)||(n=Wn(n)),n.isZero())throw c("division by zero");var t,r,i;if(bn)return this.unsigned||-2147483648!==this.high||-1!==n.low||-1!==n.high?Ln((this.unsigned?bn.div_u:bn.div_s)(this.low,this.high,n.low,n.high),bn.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?jn:Gn;if(this.unsigned){if(n.unsigned||(n=n.toUnsigned()),n.gt(this))return jn;if(n.gt(this.shru(1)))return qn;i=jn}else{if(this.eq(Zn))return n.eq(Kn)||n.eq(zn)?Zn:n.eq(Zn)?Kn:(t=this.shr(1).div(n).shl(1)).eq(Gn)?n.isNegative()?Kn:zn:(r=this.sub(n.mul(t)),i=t.add(r.div(n)));if(n.eq(Zn))return this.unsigned?jn:Gn;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=Gn}for(r=this;r.gte(n);){t=l.max(1,l.floor(r.toNumber()/n.toNumber()));for(var e=l.ceil(l.log(t)/l.LN2),u=e<=48?1:Un(2,e-48),o=Fn(t),f=o.mul(n);f.isNegative()||f.gt(r);)f=(o=Fn(t-=u,this.unsigned)).mul(n);o.isZero()&&(o=Kn),i=i.add(o),r=r.sub(f)}return i},Yn.div=Yn.divide,Yn.modulo=function(n){return An(n)||(n=Wn(n)),bn?Ln((this.unsigned?bn.rem_u:bn.rem_s)(this.low,this.high,n.low,n.high),bn.get_high(),this.unsigned):this.sub(this.div(n).mul(n))},Yn.mod=Yn.modulo,Yn.rem=Yn.modulo,Yn.not=function(){return Ln(~this.low,~this.high,this.unsigned)},Yn.countLeadingZeros=function(){return this.high?l.clz32(this.high):l.clz32(this.low)+32},Yn.clz=Yn.countLeadingZeros,Yn.countTrailingZeros=function(){return this.low?Nn(this.low):Nn(this.high)+32},Yn.ctz=Yn.countTrailingZeros,Yn.and=function(n){return An(n)||(n=Wn(n)),Ln(this.low&n.low,this.high&n.high,this.unsigned)},Yn.or=function(n){return An(n)||(n=Wn(n)),Ln(this.low|n.low,this.high|n.high,this.unsigned)},Yn.xor=function(n){return An(n)||(n=Wn(n)),Ln(this.low^n.low,this.high^n.high,this.unsigned)},Yn.shiftLeft=function(n){return An(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Ln(this.low<<n,this.high<<n|this.low>>>32-n,this.unsigned):Ln(0,this.low<<n-32,this.unsigned)},Yn.shl=Yn.shiftLeft,Yn.shiftRight=function(n){return An(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Ln(this.low>>>n|this.high<<32-n,this.high>>n,this.unsigned):Ln(this.high>>n-32,this.high>=0?0:-1,this.unsigned)},Yn.shr=Yn.shiftRight,Yn.shiftRightUnsigned=function(n){return An(n)&&(n=n.toInt()),0==(n&=63)?this:n<32?Ln(this.low>>>n|this.high<<32-n,this.high>>>n,this.unsigned):Ln(32===n?this.high:this.high>>>n-32,0,this.unsigned)},Yn.shru=Yn.shiftRightUnsigned,Yn.shr_u=Yn.shiftRightUnsigned,Yn.rotateLeft=function(n){var t;return An(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Ln(this.high,this.low,this.unsigned):n<32?(t=32-n,Ln(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned)):(t=32-(n-=32),Ln(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned))},Yn.rotl=Yn.rotateLeft,Yn.rotateRight=function(n){var t;return An(n)&&(n=n.toInt()),0==(n&=63)?this:32===n?Ln(this.high,this.low,this.unsigned):n<32?(t=32-n,Ln(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned)):(t=32-(n-=32),Ln(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned))},Yn.rotr=Yn.rotateRight,Yn.toSigned=function(){return this.unsigned?Ln(this.low,this.high,!1):this},Yn.toUnsigned=function(){return this.unsigned?this:Ln(this.low,this.high,!0)},Yn.toBytes=function(n){return n?this.toBytesLE():this.toBytesBE()},Yn.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]},Yn.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]},mn.fromBytes=function(n,t,r){return r?mn.fromBytesLE(n,t):mn.fromBytesBE(n,t)},mn.fromBytesLE=function(n,t){return new mn(n[0]|n[1]<<8|n[2]<<16|n[3]<<24,n[4]|n[5]<<8|n[6]<<16|n[7]<<24,t)},mn.fromBytesBE=function(n,t){return new mn(n[4]<<24|n[5]<<16|n[6]<<8|n[7],n[0]<<24|n[1]<<16|n[2]<<8|n[3],t)};var Jn=mn;l.pow(2,-52);function Qn(){return Date.now()||(new Date).getTime()}Jn.fromNumber(9007199254740991);function nt(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),h.defineProperty(n,i.key,i)}}function tt(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){rt(n,t,e,i);var u=n;n=i,i=u}return n}(n,t);return r!==n&&rt(r,null,n.length,n),n}function rt(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 it=/[a-zA-Z]/,et=/[0-9]/,ut=/[0-9a-fA-F]/,ot=/^0x/i,ft=/^[0-9]+$/,st=/^[0-9a-fA-F]+$/,ct=/^[0-7]+$/,at=h.prototype.toString,ht=Array.isArray||function(n){return"[object Array]"===at.call(n)},lt="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function vt(n){return ht(n)?n:Array.from(n)}function _t(n,t,r){var i=n[t];n[t]=n[r],n[r]=i}function yt(n){return n>=65&&n<=90}function dt(n){return yt(n)||function(n){return n>=97&&n<=122}(n)}function wt(n){return n>=48&&n<=57}function It(n){return wt(n)||dt(n)}function Et(n){return wt(n)||n>=65&&n<=70||n>=97&&n<=102}function pt(n){return yt(n)?n+32:n}function Rt(n){return wt(n)?n-48:n>=65&&n<=70?n-65+10:n>=97&&n<=102?n-97+10:-1}function gt(n,t){return void 0===t&&(t=!1),0<=n&&n<=9?n+48:10<=n&&n<=15?n+(t?87:55):-1}var St=l.min,Ot=String.fromCharCode;function Tt(n){for(var t=n.length,r=[],i=0;i<t;i+=16384){var e=St(i+16384,t);r.push(Ot.apply(null,n.slice(i,e)))}return r.join("")}var kt=2147483647,bt=/[^\0-\x7E]/,mt=/[\x2E\u3002\uFF0E\uFF61]/g,At={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Nt=l.floor,Ct=String.fromCharCode;function Dt(n){throw new RangeError(At[n])}function Pt(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 Ft,Lt,Ut,Mt=function(n,t){return n+22+75*(n<26)-((0!=t)<<5)},Wt=function(n,t,r){var i=0;for(n=r?Nt(n/700):n>>1,n+=Nt(n/t);n>455;i+=36)n=Nt(n/35);return Nt(i+36*n/(n+38))},Vt=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(mt,".")).split("."),t).join(".");return i+e}(n,(function(n){return bt.test(n)?"xn--"+function(n){for(var t=[],r=(n=Pt(n)).length,i=128,e=0,u=72,o=0,f=n;o<f.length;o++){var s=f[o];s<128&&t.push(Ct(s))}var c=t.length,a=c;for(c&&t.push("-");a<r;){for(var h=kt,l=0,v=n;l<v.length;l++){var _=v[l];_>=i&&_<h&&(h=_)}var y=a+1;h-i>Nt((kt-e)/y)&&Dt("overflow"),e+=(h-i)*y,i=h;for(var d=0,w=n;d<w.length;d++){var I=w[d];if(I<i&&++e>kt&&Dt("overflow"),I==i){for(var E=e,p=36;;p+=36){var R=p<=u?1:p>=u+26?26:p-u;if(E<R)break;var g=E-R,S=36-R;t.push(Ct(Mt(R+g%S,0))),E=Nt(g/S)}t.push(Ct(Mt(E,0))),u=Wt(e,y,a==c),e=0,++a}}++e,++i}return t.join("")}(n):n}))};function Bt(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 Tt(t)}function xt(n){if(n>=55296&&n<=57343)throw new c("Lone surrogate U+"+n.toString(16).toUpperCase()+" is not a scalar value")}function Ht(n,t){return n>>t&63|128}function Gt(n,t){0!=(4294967168&n)?(0==(4294965248&n)?t.push(n>>6&31|192):0==(4294901760&n)?(xt(n),t.push(n>>12&15|224),t.push(Ht(n,6))):0==(4292870144&n)&&(t.push(n>>18&7|240),t.push(Ht(n,12)),t.push(Ht(n,6))),t.push(63&n|128)):t.push(n)}function jt(n){for(var t=[],r=0;r<n.length;r++){Gt(n[r],t)}return t}function Kt(){if(Ut>=Lt)throw new c("Invalid byte index");var n=255&Ft[Ut];if(Ut++,128==(192&n))return 63&n;throw new c("Invalid continuation byte")}function qt(){var n,t;if(Ut>Lt)throw new c("Invalid byte index");if(Ut===Lt)return!1;if(n=255&Ft[Ut],Ut++,0==(128&n))return n;if(192==(224&n)){if((t=(31&n)<<6|Kt())>=128)return t;throw new c("Invalid continuation byte")}if(224==(240&n)){if((t=(15&n)<<12|Kt()<<6|Kt())>=2048)return xt(t),t;throw new c("Invalid continuation byte")}if(240==(248&n)&&(t=(7&n)<<18|Kt()<<12|Kt()<<6|Kt())>=65536&&t<=1114111)return t;throw new c("Invalid UTF-8 detected")}function zt(n){return[37,gt(n>>4),gt(15&n)]}function Xt(n){return function(n){return n>=0&&n<=31}(n)||n>126}function $t(n){return Xt(n)||32===n||34===n||60===n||62===n||96===n}function Zt(n){return $t(n)||35===n||63===n||123===n||125===n}function Yt(n){return Zt(n)||47===n||58===n||59===n||61===n||64===n||n>=91&&n<=94||124===n}function Jt(n){return n<33||n>126||34===n||35===n||60===n||62===n}function Qt(n){return Jt(n)||39===n}function nr(n,t){if(!t(n))return[n];for(var r=jt([n]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,zt(u))}return i}function tr(n,t){for(var r=[],i=0,e=Pt(n);i<e.length;i++){var u=e[i];r.push.apply(r,nr(u,t))}return Bt(r)}function rr(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&&Et(n[i+1])&&Et(n[i+2])){var u=Rt(n[i+1])<<4|Rt(n[i+2]);t.push(u),i+=2}else t.push(e)}return t}(jt(n))}function ir(n){return Bt(function(n){Ft=n.slice(),Lt=Ft.length,Ut=0;for(var t,r=[];!1!==(t=qt());)r.push(t);return r}(rr(Pt(n))))}function er(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 a;u+=2,e=i+=1}for(;u<t;){if(8===i)throw new a("Too many groups");if(":"!==n[u]){for(var o=0,f=0;f<4&&u<t&&ut.test(n[u]);)o=o<<4|v(n[u],16),u+=1,f+=1;if("."===n[u]){if(0===f)throw new a;if(u-=f,i>6)throw new a;for(var s=0;u<t;){var c=null;if(s>0){if(!("."===n[u]&&s<4))throw new a;u+=1}if(!et.test(n[u]))throw new a;for(;u<t&&et.test(n[u]);){var h=v(n[u],10);if(null===c)c=h;else{if(0===c)throw new a;if((c=10*c+h)>255)throw new a}u+=1}r[i]=r[i]<<8|c,2!==(s+=1)&&4!==s||(i+=1)}if(4!==s)throw new a;break}if(":"===n[u]){if((u+=1)===t)throw new a}else if(u<t)throw new a;r[i]=o,i+=1}else{if(null!==e)throw new a("Too many :: groups");u+=1,e=i+=1}}if(null!==e){var l=i-e;for(i=7;0!==i&&l>0;)_t(r,i,e+l-1),i-=1,l-=1}else if(8!==i)throw new a;return r}function ur(n){var t=10,r=ft;return ot.test(n)?(n=n.slice(2),t=16,r=st):n.length>=2&&"0"===n[0]&&(n=n.slice(1),t=8,r=ct),""===n?0:r.test(n)?v(n,t):void 0}var or={bK:4},fr=/[\0\t\n\r #%/:?@\[\\\]]/,sr=/[\0\t\n\r #/:?@\[\\\]]/;function cr(n,t){if("["===n[0]){if("]"!==n[n.length-1])throw new a("Invalid IPv6 address");return{bK:2,e4:er(n.slice(1,-1))}}if(!t)return function(n){if(sr.test(n))throw new a("Invalid code point in opaque host");var t=tr(n,Xt);return""===t?or:{bK:3,sR:t}}(n);var r=function(n){return function(n){return Vt(n.toLowerCase())}(n)}(ir(n));if(fr.test(r))throw new a("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=ur(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new a;if(r[r.length-1]>=l.pow(256,5-r.length))throw new a;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*l.pow(256,3-s);return f}}(r);return void 0!==i?{bK:1,e4:i}:""===r?or:{bK:0,i4:r}}function ar(n){switch(n.bK){case 0:return n.i4;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.e4);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.e4)+"]";case 3:return n.sR;case 4:return""}}var hr=/\+/g;function lr(n){return 42===n||45===n||46===n||95===n||It(n)}function vr(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(hr," "),f=f.replace(hr," ");var s=ir(o),c=ir(f);r.push([s,c])}}return r}function _r(n){for(var t="",r=0;r<n.length;r++){var i=n[r];r>0&&(t+="&"),t+=yr(jt(Pt(i[0])))+"="+yr(jt(Pt(i[1])))}return t}function yr(n){for(var t=[],r=0;r<n.length;r++){var i=n[r];32===i?t.push(43):lr(i)?t.push(i):t.push.apply(t,zt(i))}return Tt(t)}var dr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function wr(n){var t=""+n,r=dr.exec(t);return r?function(n,t){for(var r=n.length,i=[],e=t;e<r;e++){var u=n.charCodeAt(e);if(Er(u))if(pr(u)||e===r-1)i.push(Ir);else{var o=n.charCodeAt(e+1);pr(o)?(i.push(u,o),e++):i.push(Ir)}else i.push(u)}return n.slice(0,t)+Tt(i)}(t,r.index):t}var Ir=65533,Er=function(n){return 55296==(63488&n)},pr=function(n){return 0!=(1024&n)};function Rr(n,t){var r=n[0],i=t[0];return r===i?0:r<i?-1:1}function gr(n){n.s4.length=0}function Sr(n,t){!function(n,t){for(var r=0;r<t.length;r++)n[r]=t[r];n.length=t.length}(n.s4,vr(t))}function Or(n){if(n.n4){var t=_r(n.s4);""===t&&(t=null),n.n4.n4.r4=t}}var Tr=function(){function n(n){if(void 0===n&&(n=void 0),this.n4=null,null==n)this.s4=[];else if("object"==typeof n||"function"==typeof n)if(function(n){return n instanceof Tr&&!!ht(n.s4)&&(!lt||n[Symbol.iterator]===kr)}(n))this.s4=n.s4.slice();else if(function(n){return null!=n&&(!!ht(n)||!!lt&&"function"==typeof n[Symbol.iterator])}(n)){this.s4=[];for(var t=0,r=vt(n);t<r.length;t++){var i=vt(r[t]);if(2!==i.length)throw new a("Invalid name-value pair");this.s4.push([wr(i[0]),wr(i[1])])}}else for(var e in this.s4=[],n)h.prototype.hasOwnProperty.call(n,e)&&this.s4.push([wr(e),wr(n[e])]);else(n=wr(n)).length>0&&"?"===n[0]&&(n=n.slice(1)),this.s4=vr(n)}var t=n.prototype;return t.append=function(n,t){n=wr(n),t=wr(t),this.s4.push([n,t]),Or(this)},t.delete=function(n){n=wr(n);for(var t=this.s4,r=0;r<t.length;){t[r][0]===n?t.splice(r,1):r++}Or(this)},t.get=function(n){n=wr(n);for(var t=this.s4,r=0;r<t.length;r++){var i=t[r];if(i[0]===n)return i[1]}return null},t.getAll=function(n){n=wr(n);for(var t=this.s4,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=wr(n);for(var t=this.s4,r=0;r<t.length;r++){if(t[r][0]===n)return!0}return!1},t.set=function(n,t){n=wr(n),t=wr(t);for(var r=this.s4,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]),Or(this)},t.sort=function(){tt(this.s4,Rr),Or(this)},t.toString=function(){return _r(this.s4)},t.entries=function(){return new Nr(this.s4,br)},t.keys=function(){return new Nr(this.s4,mr)},t.values=function(){return new Nr(this.s4,Ar)},t.forEach=function(n){var t=this;this.s4.forEach((function(r){return n(r[1],r[0],t)}))},n}(),kr=Tr.prototype.entries;lt&&(Tr.prototype[Symbol.iterator]=kr);var br=function(n){return[n[0],n[1]]},mr=function(n){return n[0]},Ar=function(n){return n[1]},Nr=function(){function n(n,t){this.h4=0,this.s4=n,this.o4=t}return n.prototype.next=function(){return this.h4<this.s4.length?{done:!1,value:this.o4(this.s4[this.h4++])}:{done:!0,value:void 0}},n}(),Cr="null";var Dr=h.create(null);Dr.ftp=21,Dr.file=0,Dr.gopher=70,Dr.http=80,Dr.https=443,Dr.ws=80,Dr.wss=443;var Pr=/^(?:\.|%2e)$/i,Fr=/^(?:\.|%2e){2}$/i;function Lr(n){return Pr.test(n)}function Ur(n){return Fr.test(n)}function Mr(n){return void 0!==Dr[n]}function Wr(n){return Mr(n.a4)}function Vr(n){return""!==n.u4||""!==n.c4}function Br(n){var t=n.length;if(!(t>=2))return!1;if(!Hr(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 xr(n){return 2===n.length&&it.test(n[0])&&(":"===n[1]||"|"===n[1])}function Hr(n){return 2===n.length&&xr(Tt(n))}function Gr(n){return xr(n)&&":"===n[1]}function jr(n){var t=n.l4;0!==t.length&&("file"===n.a4&&1===t.length&&Gr(t[0])||t.pop())}function Kr(n){return null===n.d4||or===n.d4||n.f4||"file"===n.a4}var qr=-1,zr=/\t|\n|\r/g,Xr=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function $r(n,t,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new Yr,n=n.replace(Xr,""));var e=null!==i?i:0;t=t||null;for(var u=[],o=!1,f=!1,s=!1,c=Pt(n=n.replace(zr,"")),h=c.length,l=0;l<=h;){var _=l<h?c[l]:qr;switch(e){case 0:if(!dt(_)){if(null===i){u.length=0,e=2;continue}throw new a("Invalid scheme")}u.push(pt(_)),e=1;break;case 1:if(It(_)||43===_||45===_||46===_)u.push(pt(_));else{if(58!==_){if(null===i){u.length=0,e=2,l=0;continue}throw new a("Invalid scheme")}var y=Bt(u);if(null!==i){if(Mr(r.a4)&&!Mr(y))return;if(!Mr(r.a4)&&Mr(y))return;if((Vr(r)||null!==r.F1)&&"file"===y)return;if("file"===r.a4&&(r.d4===or||null===r.d4))return}if(r.a4=y,null!==i)return void(Wr(r)&&r.F1===Dr[r.a4]&&(r.F1=null));u.length=0,"file"===r.a4?e=13:Wr(r)&&t&&t.a4===r.a4?e=3:Wr(r)?e=7:47===c[l+1]?(e=4,l+=1):(r.f4=!0,r.l4.push(""),e=18)}break;case 2:if(!t||t.f4&&35!==_)throw new a("Invalid scheme");t.f4&&35===_?(r.a4=t.a4,r.l4=t.l4.slice(),r.r4=t.r4,r._4="",r.f4=!0,e=20):"file"!==t.a4?(e=5,l-=1):(e=13,l-=1);break;case 3:47===_&&47===c[l+1]?e=8:(e=5,l-=1);break;case 4:47===_?e=9:(e=17,l-=1);break;case 5:r.a4=t.a4,qr===_?(r.u4=t.u4,r.c4=t.c4,r.d4=t.d4,r.F1=t.F1,r.l4=t.l4.slice(),r.r4=t.r4):47===_?e=6:63===_?(r.u4=t.u4,r.c4=t.c4,r.d4=t.d4,r.F1=t.F1,r.l4=t.l4.slice(),r.r4="",e=19):35===_?(r.u4=t.u4,r.c4=t.c4,r.d4=t.d4,r.F1=t.F1,r.l4=t.l4.slice(),r.r4=t.r4,r._4="",e=20):92===_&&Wr(r)?e=6:(r.u4=t.u4,r.c4=t.c4,r.d4=t.d4,r.F1=t.F1,r.l4=t.l4.slice(),r.l4.pop(),e=17,l-=1);break;case 6:!Wr(r)||47!==_&&92!==_?47===_?e=9:(r.u4=t.u4,r.c4=t.c4,r.d4=t.d4,r.F1=t.F1,e=17,l-=1):e=8;break;case 7:if(47!==_||47!==c[l+1]){e=8;continue}e=8,l+=1;break;case 8:47!==_&&92!==_&&(e=9,l-=1);break;case 9:if(64===_){o&&u.unshift(37,52,48),o=!0;for(var d=0;d<u.length;d++){var w=u[d];if(58!==w||s){var I=Bt(nr(w,Yt));s?r.c4+=I:r.u4+=I}else s=!0}u.length=0}else if(qr===_||47===_||63===_||35===_||Wr(r)&&92===_){if(o&&0===u.length)throw new a("Invalid host");l-=u.length+1,u.length=0,e=10}else u.push(_);break;case 10:case 11:if(null!==i&&"file"===r.a4)l-=1,e=15;else if(58!==_||f)if(qr===_||47===_||63===_||35===_||Wr(r)&&92===_){if(l-=1,Wr(r)&&0===u.length)throw new a("Invalid host");if(null!==i&&0===u.length&&(Vr(r)||null!==r.F1))return;var E=cr(Bt(u),Wr(r));if(r.d4=E,u.length=0,e=16,null!==i)return}else 91===_?f=!0:93===_&&(f=!1),u.push(_);else{if(0===u.length)throw new a("Invalid host");var p=cr(Bt(u),Wr(r));if(r.d4=p,u.length=0,e=12,11===i)return}break;case 12:if(wt(_))u.push(_);else{if(!(qr===_||47===_||63===_||35===_||Wr(r)&&92===_||null!==i))throw new a("Invalid port");if(0!==u.length){var R=v(Bt(u),10);if(R>65535)throw new a("Invalid port");r.F1=R===Dr[r.a4]?null:R,u.length=0}if(null!==i)return;e=16,l-=1}break;case 13:r.a4="file",47===_||92===_?e=14:t&&"file"===t.a4?qr===_?(r.d4=t.d4,r.l4=t.l4.slice(),r.r4=t.r4):63===_?(r.d4=t.d4,r.l4=t.l4.slice(),r.r4="",e=19):35===_?(r.d4=t.d4,r.l4=t.l4.slice(),r.r4=t.r4,r._4="",e=20):(Br(c.slice(l))||(r.d4=t.d4,r.l4=t.l4.slice(),jr(r)),e=17,l-=1):(e=17,l-=1);break;case 14:47===_||92===_?e=15:(t&&"file"===t.a4&&!Br(c.slice(l))&&(Gr(t.l4[0])?r.l4.push(t.l4[0]):r.d4=t.d4),e=17,l-=1);break;case 15:if(qr===_||47===_||92===_||63===_||35===_)if(l-=1,null===i&&Hr(u))e=17;else if(0===u.length){if(r.d4=or,null!==i)return;e=16}else{var g=cr(Bt(u),Wr(r));if(0===g.bK&&"localhost"===g.i4&&(g=or),r.d4=g,null!==i)return;u.length=0,e=16}else u.push(_);break;case 16:Wr(r)?(e=17,47!==_&&92!==_&&(l-=1)):null===i&&63===_?(r.r4="",e=19):null===i&&35===_?(r._4="",e=20):qr!==_&&(e=17,47!==_&&(l-=1));break;case 17:if(qr===_||47===_||Wr(r)&&92===_||null===i&&(63===_||35===_)){var S=Bt(u);if(Ur(S)?(jr(r),47===_||Wr(r)&&92===_||r.l4.push("")):!Lr(S)||47===_||Wr(r)&&92===_?Lr(S)||("file"===r.a4&&0===r.l4.length&&Hr(u)&&(or!==r.d4&&null!==r.d4&&(r.d4=or),u[1]=58,S=Bt(u)),r.l4.push(S)):r.l4.push(""),u.length=0,"file"===r.a4&&(qr===_||63===_||35===_))for(;r.l4.length>1&&""===r.l4[0];)r.l4.shift();63===_?(r.r4="",e=19):35===_&&(r._4="",e=20)}else u.push.apply(u,nr(_,Zt));break;case 18:63===_?(r.r4="",e=19):35===_?(r._4="",e=20):qr!==_&&(r.l4[0]+=Bt(nr(_,Xt)));break;case 19:null===i&&35===_?(r._4="",e=20):qr!==_&&(r.r4+=Bt(nr(_,Wr(r)?Qt:Jt)));break;case 20:qr===_||0===_||(r._4+=Bt(nr(_,$t)))}l++}return r}function Zr(n,t,r,i){try{$r(n,t,r,i)}catch(n){}}var Yr=function(){this.a4="",this.u4="",this.c4="",this.d4=null,this.F1=null,this.l4=[],this.r4=null,this._4=null,this.f4=!1};function Jr(n){switch(n.a4){case"blob":var t;try{t=$r(n.l4[0],null)}catch(n){return Cr}return Jr(t);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(n,t,r){return n+"://"+ar(t)+(null===r?"":":"+r)}(n.a4,n.d4,n.F1);case"file":default:return Cr}}var Qr,ni,ti=function(){function n(n,t){var r,i=null;if(null!=t)if(function(n){return null!=n&&n instanceof ti&&"object"==typeof n.n4}(t))i=t.n4;else try{i=$r(String(t),null)}catch(n){throw new a("Invalid base URL: "+n.message)}try{r=$r(String(n),i)}catch(n){throw new a("Invalid URL: "+n.message)}var e=r.r4;this.n4=r,this.r4=function(n){var t=new Tr;return null!==n&&Sr(t,n),t}(e),this.r4.n4=this}var t=n.prototype;return t.toString=function(){return this.href},t.toJSON=function(){return this.href},function(n,t,r){t&&nt(n.prototype,t),r&&nt(n,r)}(n,[{key:"href",get:function(){return function(n,t){void 0===t&&(t=!1);var r=n.a4+":";if(null!==n.d4?(r+="//",Vr(n)&&(r+=n.u4,""!==n.c4&&(r+=":"+n.c4),r+="@"),r+=ar(n.d4),null!==n.F1&&(r+=":"+n.F1)):null===n.d4&&"file"===n.a4&&(r+="//"),n.f4)r+=n.l4[0];else for(var i=0,e=n.l4;i<e.length;i++)r+="/"+e[i];return null!==n.r4&&(r+="?"+n.r4),t||null===n._4||(r+="#"+n._4),r}(this.n4)},set:function(n){var t;try{t=$r(String(n),null)}catch(n){throw new a("Invalid URL: "+n.message)}this.n4=t,gr(this.r4);var r=this.n4.r4;null!==r&&Sr(this.r4,r)}},{key:"origin",get:function(){return Jr(this.n4)}},{key:"protocol",get:function(){return this.n4.a4+":"},set:function(n){Zr(n+":",null,this.n4,0)}},{key:"username",get:function(){return this.n4.u4},set:function(n){Kr(this.n4)||(this.n4.u4=tr(n,Yt))}},{key:"password",get:function(){return this.n4.c4},set:function(n){Kr(this.n4)||(this.n4.c4=tr(n,Yt))}},{key:"host",get:function(){var n=this.n4,t=n.d4;if(null===t)return"";var r=n.F1,i=ar(t);return null!==r&&(i+=":"+r),i},set:function(n){this.n4.f4||Zr(n,null,this.n4,10)}},{key:"hostname",get:function(){var n=this.n4.d4;return null===n?"":ar(n)},set:function(n){this.n4.f4||Zr(n,null,this.n4,11)}},{key:"port",get:function(){var n=this.n4.F1;return null===n?"":""+n},set:function(n){Kr(this.n4)||(""===n?this.n4.F1=null:Zr(n,null,this.n4,12))}},{key:"pathname",get:function(){var n=this.n4.l4;return this.n4.f4?n[0]:0===n.length?"":"/"+n.join("/")},set:function(n){this.n4.f4||(this.n4.l4.length=0,Zr(n,null,this.n4,16))}},{key:"search",get:function(){var n=this.n4.r4;return null===n||""===n?"":"?"+n},set:function(n){n=wr(n);var t=this.n4;if(""===n)return t.r4=null,void gr(this.r4);"?"===n[0]&&(n=n.slice(1)),t.r4="",Zr(n,null,t,19),Sr(this.r4,n)}},{key:"searchParams",get:function(){return this.r4}},{key:"hash",get:function(){var n=this.n4._4;return null===n||""===n?"":"#"+n},set:function(n){""!==n?("#"===n[0]&&(n=n.slice(1)),this.n4._4="",Zr(n,null,this.n4,20)):this.n4._4=null}}]),n}();function ri(n){return n.document&&n.document.baseURI||n.location.href||""}function ii(){return void 0!==r?r.createElement("video"):void 0}var ei=!!("ontouchstart"in self||self.DocumentTouch&&r instanceof self.DocumentTouch)||!(!e||!e.msMaxTouchPoints),ui=(ni||(ni=ii()),ni),oi=!(!ui||!ui.webkitShowPlaybackTargetPicker),fi=function(){function n(){this.v4=void 0,this.P4=!1,this.Ye=ei,this.Ks=!1,this.q1=!0}var r=n.prototype;return r.w4=function(){return 0},r.I4=function(n,t){return!0},r.R4=function(n){return n>=.3333333333333333},Z(n,[{key:"g4",get:function(){return void 0===this.v4&&(this.v4=this.w4()),this.v4}},{key:"m4",get:function(){return!_n.vE}},{key:"y4",get:function(){if(t.screen)return{width:t.screen.width,height:t.screen.height}}},{key:"Mj",get:function(){return t.devicePixelRatio||1}},{key:"A4",get:function(){return oi}},{key:"wj",get:function(){return!1}},{key:"aj",get:function(){return!0}},{key:"D_",get:function(){return _n.hE||_n.pk}},{key:"rN",get:function(){return!0}},{key:"L_",get:function(){return!0}},{key:"B_",get:function(){return!1}},{key:"b4",get:function(){}},{key:"T4",get:function(){return!0}},{key:"SG",get:function(){return!1}},{key:"S4",get:function(){return!1}},{key:"E4",get:function(){return _n.Gk}}]),n}(),si=function(){var n=ii();if(!n)return!1;var t=n.muted;return n.muted=!t,n.muted!==t}();!function(){if(_n._k)return!1;var n=ii();if(!n)return!1;var t=n.volume;n.volume=t/2+.1,n.volume}();var ci=function(n){function t(t){var r;return(r=n.call(this)||this).x4=t,r.x4&&(r.P4=r.x4.P4,r.Ye=r.x4.Ye,r.q1=si&&r.x4.q1),r}J(t,n);var r=t.prototype;return r.w4=function(){return this.x4?this.x4.g4:n.prototype.w4.call(this)},r.I4=function(t,r){return this.x4?this.x4.I4(t,r):n.prototype.I4.call(this,t,r)},r.R4=function(t){return this.x4?this.x4.R4(t):n.prototype.R4.call(this,t)},Z(t,[{key:"b4",get:function(){var n;return null==(n=this.x4)?void 0:n.b4}},{key:"T4",get:function(){var n,t;return null==(t=null==(n=this.x4)?void 0:n.T4)||t}}]),t}(fi),ai=function(n){function t(t){var r;return(r=n.call(this,t)||this).P4=!0,r.Ks=!0,r}return J(t,n),Z(t,[{key:"B_",get:function(){return _n.pk}}]),t}(ci),hi=function(n){function t(){return n.apply(this,arguments)}return J(t,n),t.prototype.w4=function(){return Qr.MediaSource?n.prototype.w4.call(this):1},Z(t,[{key:"B_",get:function(){return!0}}]),t}(ai),li=function(n){function r(){return n.apply(this,arguments)}return J(r,n),r.prototype.I4=function(t,r){return n.prototype.I4.call(this,t,r)},Z(r,[{key:"wj",get:function(){return _n.qk<3}},{key:"aj",get:function(){return _n.qk>=3}},{key:"y4",get:function(){var n=this;return t.tizen&&!this.C4&&t.tizen.systeminfo.getPropertyValue("DISPLAY",(function(t){var r=t.resolutionWidth,i=t.resolutionHeight;1===r&&1===i||(n.C4={width:r,height:i})})),this.C4}},{key:"SG",get:function(){return _n.qk<3}},{key:"S4",get:function(){return!0}}]),r}(ci),vi=function(n){function t(){return n.call(this)}return J(t,n),t}(fi),_i=function(n){function t(){return n.apply(this,arguments)}return J(t,n),t.prototype.I4=function(n,t){if(n&&n.N4&&t&&t.N4){var r=yi(n.N4,"mp4a.40.2")&&yi(t.N4,"mp4a.40.5"),i=yi(n.N4,"mp4a.40.5")&&yi(t.N4,"mp4a.40.2"),e=yi(n.N4,"mp4a.40.2")&&yi(t.N4,"mp4a.40.34"),u=yi(n.N4,"mp4a.40.34")&&yi(t.N4,"mp4a.40.2"),o=yi(n.N4,"mp4a.40.5")&&yi(t.N4,"mp4a.40.34"),f=yi(n.N4,"mp4a.40.34")&&yi(t.N4,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},Z(t,[{key:"b4",get:function(){if(_n.GS)return 4096}}]),t}(vi);function yi(n,t){return n.indexOf(t)>-1}var di=function(n){function t(){return n.apply(this,arguments)}return J(t,n),t.prototype.R4=function(n){return n>=2},t}(vi),wi=function(n){function t(){var t;return(t=n.call(this)||this).P4=_n.aE>=11,t.q1=_n.hE&&!(_n.pk&&_n.aE<10),t}return J(t,n),t}(vi),Ii=function(n){function r(){return n.apply(this,arguments)}return J(r,n),Z(r,[{key:"y4",get:function(){var n=this;return t.webOS&&!this.C4&&t.webOS.deviceInfo((function(t){n.C4={width:t.screenWidth,height:t.screenHeight}})),this.C4}},{key:"rN",get:function(){return!1}},{key:"S4",get:function(){return!0}}]),r}(ci),Ei=function(n){function t(){return n.apply(this,arguments)}return J(t,n),Z(t,[{key:"T4",get:function(){return!_n.KS||(_n.Ok?92!==_n.Fk:_n.Bk>=100)}}]),t}(vi),pi=function(n){function t(){return n.apply(this,arguments)}return J(t,n),Z(t,[{key:"B_",get:function(){return!0}}]),t}(ci),Ri=function(){function n(){this.N6=new gi,this.B6=function(){var n=function(){if(_n.iE)return new _i;if(_n.Kk||_n.jk)return new di;if(_n.hE)return new wi;if(_n.Nk)return new Ei;return new vi}();return _n.pk?new hi(n):_n.Ks?new ai(n):_n.Hk?new li(n):_n.zk?new Ii(n):_n.GS?new pi(n):new ci(n)}(),this.D6=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.Il=function(){return self.performance.now()}:this.Il=Qn}var t=n.prototype;return t.b6=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Sn.apply(void 0,tn(t))},t.f_=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];On.apply(void 0,tn(t))},t.T6=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];Tn.apply(void 0,tn(t))},t.S6=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];kn.apply(void 0,[n].concat(tn(r)))},t.Pl=function(n,t){return u(n,t)},t.DQ=function(n,t){return f(n,t)},t.Rl=function(n){o(n)},t.LQ=function(n){s(n)},t.vj=function(){return this.k6.vj()},t.E6=function(){return this.k6.E6()},t.I6=function(){return this.k6.I6()},t.R6=function(){return this.k6.R6()},t.P6=function(){return this.k6.P6()},t.x6=function(n,t){return this.k6.x6(n,t)},t.C6=function(n){return this.k6.C6(n)},t.Ih=function(n,t){var r;return void 0===t&&(t=ri(Qr)),r="object"!=typeof t||t instanceof ti?t:t.href,new ti(n,r)},t.Xf=function(n,t){if(void 0===t&&(t=ri(Qr)),this.D6){var r=function(n){return"string"==typeof n}(t)?t:t.toString();return new self.URL(n,r).href}return this.Ih(n,t).href},Z(n,[{key:"JC",get:function(){return this.N6}},{key:"Zs",get:function(){return this.B6}},{key:"M_",get:function(){return{O_:e&&e.userAgent.match(/Android /i)?"Android":"other",F_:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"QF",get:function(){return self&&self.location&&"https:"===self.location.protocol}},{key:"L6",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),gi=function(){function n(){}return Z(n,[{key:"$C",get:function(){return e.oscpu}},{key:"Zs",get:function(){return e.platform}},{key:"tN",get:function(){return e.vendor}},{key:"eN",get:function(){return e.vendorSub}}]),n}();var Si,Oi=function(){function n(){}var t=n.prototype;return t.P6=function(){return K.resolve(!1)},t.E6=function(){return K.resolve(!1)},t.R6=function(){return K.resolve(!1)},t.I6=function(){return K.resolve(!1)},t.C6=function(n){return K.resolve(!1)},t.x6=function(n,t){return K.resolve(!1)},t.vj=function(){return K.resolve(!1)},n}(),Ti=function(){function n(){}var t=n.prototype;return t.JO=function(){},t.iI=function(n){},t.Lf=function(n){},t.Ff=function(n,t){},n}();function ki(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var r=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=r){var i,e,u=[],o=!0,f=!1;try{for(r=r.call(n);!(o=(i=r.next()).done)&&(u.push(i.value),!t||u.length!==t);o=!0);}catch(n){f=!0,e=n}finally{try{o||null==r.return||r.return()}finally{if(f)throw e}}return u}}(n,t)||nn(n,t)||function(){throw new a("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}!function(n){n.tS="arraybuffer",n.eS="json",n.iS="stream",n.S_="text"}(Si||(Si={}));var bi,mi=function(){function n(t){var r=this;this.ol={},t instanceof n?t.asList().forEach((function(n){var t=ki(n,2),i=t[0],e=t[1];r.append(i,e)})):Array.isArray(t)?t.forEach((function(n){r.append(n[0],n[1])})):t&&h.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=Ai(r),i=Ni(i);var e=r.toLowerCase();if(this.ol.hasOwnProperty(e)){var u=this.ol[e],o=u[1];u[1]=o?o+", "+i:i}else this.ol[e]=[r,i]},t.delete=function(n){var t=Ai(n).toLowerCase();delete this.ol[t]},t.get=function(n){var t=Ai(n).toLowerCase();return this.ol.hasOwnProperty(t)?this.ol[t][1]:null},t.has=function(n){var t=Ai(n).toLowerCase();return this.ol.hasOwnProperty(t)},t.set=function(n,t){var r=n,i=(r=Ai(r)).toLowerCase();this.ol[i]=[r,Ni(t)]},t.forEach=function(n,t){for(var r in this.ol)this.ol.hasOwnProperty(r)&&n.call(t,this.ol[r][1],r,this)},t.asList=function(){var n=[];for(var t in this.ol)if(this.ol.hasOwnProperty(t)){var r=ki(this.ol[t],2),i=r[0],e=r[1];n.push([i,e])}return n},t.sS=function(){var n={};return this.forEach((function(t,r){n[r]=t})),n},t.nS=function(n){var t=this;n.forEach((function(n,r){t.append(r,n)}))},t.rS=function(n){var t=this;n.forEach((function(n,r){t.set(r,n)}))},n}();function Ai(n){var t=n;if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new a("Invalid character in header field name");return t}function Ni(n){var t=n;return"string"!=typeof t&&(t=String(t)),t}function Ci(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):K.resolve(s).then(i,e)}function Di(n){return function(){var t=this,r=arguments;return new K((function(i,e){var u=n.apply(t,r);function o(n){Ci(u,i,e,o,f,"next",n)}function f(n){Ci(u,i,e,o,f,"throw",n)}o(void 0)}))}}function Pi(n,t){var r,i,e,u,o=function(n){return function(t){return f([n,t])}},f=function(u){if(r)throw new a("Generator is already executing.");for(;s;)try{if(r=1,i&&(e=2&u[0]?i.return:u[0]?i.throw||((e=i.return)&&e.call(i),0):i.next)&&!(e=e.call(i,u[1])).done)return e;switch(i=0,e&&(u=[2&u[0],e.value]),u[0]){case 0:case 1:e=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,i=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(e=s.trys,(e=e.length>0&&e[e.length-1])||6!==u[0]&&2!==u[0])){s=0;continue}if(3===u[0]&&(!e||u[1]>e[0]&&u[1]<e[3])){s.label=u[1];break}if(6===u[0]&&s.label<e[1]){s.label=e[1],e=u;break}if(e&&s.label<e[2]){s.label=e[2],s.ops.push(u);break}e[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(n,s)}catch(n){u=[6,n],i=0}finally{r=e=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}},s={label:0,sent:function(){if(1&e[0])throw e[1];return e[1]},trys:[],ops:[]};return u={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u}function Fi(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 Li(n){n.length=0}!function(n){n[n.qr=0]="qr",n[n.Zc=1]="Zc",n[n.Jc=-1]="Jc"}(bi||(bi={}));var Ui,Mi,Wi,Vi,Bi=function(){function n(){this._l=!1,this.vl=!1,this.Sl=[],this.El=[]}var t=n.prototype;return t.ll=function(){if(!this._l&&!this.vl){this._l=!0;for(var n=0,t=this.Sl.slice();n<t.length;n++){(0,t[n])()}this.dl()}},t.dl=function(){if(!this.vl){this.vl=!0;for(var n=0,t=this.El.slice();n<t.length;n++){(0,t[n])()}Li(this.Sl),Li(this.El)}},t.Al=function(n){this.vl||this.Sl.push(n)},t.wl=function(n){this.vl||Fi(this.Sl,n)},t.bl=function(n){this.vl||this.El.push(n)},t.yl=function(n){this.vl||Fi(this.El,n)},n}(),xi=function(){function n(){this.ul=new Bi}var t=n.prototype;return t.cl=function(){this.ul.ll()},t.dl=function(){this.ul.dl()},t.fl=function(n){var t=this.ul;if(!t._l)if(n._l)t.ll();else if(!t.vl&&!n.vl){var r=function(){i(),t.ll()},i=function(){n.wl(r),n.yl(i),t.wl(r),t.yl(i)};n.Al(r),n.bl(i),t.Al(r),t.bl(i)}},t.Tl=function(){var t=new n,r=new n,i=t.al,e=r.al,u=this.ul,o=function(){i._l&&e.vl||e._l&&i.vl?u.ll():i.vl&&e.vl&&u.dl()};i.Al(o),e.Al(o),i.bl(o),e.bl(o),t.fl(u),r.fl(u);return u.bl((function(){i.wl(o),e.wl(o),i.yl(o),e.yl(o)})),[t,r]},Z(n,[{key:"al",get:function(){return this.ul}}]),n}();!function(n){n.DELETE="DELETE",n.GET="GET",n.HEAD="HEAD",n.OPTIONS="OPTIONS",n.POST="POST",n.PUT="PUT"}(Ui||(Ui={})),function(n){n.E_="",n.hS="manifest",n.oS="segment",n.aS="preload-hint",n.uS="content-protection"}(Mi||(Mi={})),function(n){n.E_="",n.cS="initialization-segment",n.lS="fairplay-license",n.dS="fairplay-certificate",n.fS="widevine-license",n._S="widevine-certificate",n.gS="playready-license",n.vS="clearkey-license",n.wS="aes128-key"}(Wi||(Wi={})),function(n){n.E_="",n.d_="audio",n.l_="video",n.S_="text",n.k_="image"}(Vi||(Vi={}));var Hi=function(n,t){var r,i,e,u,o,f,s,c,a,h,l,v,_=n.qT;t?(r=t.mS,i=t.pS,e=t.yS,u=t.AS,o=t.zT,f=t.bS,s=t.al,c=t.Hd,a=t.TS,h=t.SS,l=t.kS,v=t.ES):(r=null,i={},e="GET",u=Si.S_,o=0,f=0,c="",a="",h="",l=!1),this.qT=_,this.mS=n.mS||r,this.pS=new mi(n.pS||i),this.yS=n.yS||e,this.AS=n.AS||u,this.zT=void 0!==n.zT?Number(n.zT)||0:o,this.bS=void 0!==n.bS?Number(n.bS)||0:f,this.al=n.al||s||(new xi).al,this.Hd=n.Hd||c,this.TS=n.TS||a,this.SS=n.SS||h,this.kS=void 0!==n.kS?Boolean(n.kS):l,this.ES=n.ES||v};var Gi=function(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];c.apply(this,t)};(Gi.prototype=h.create(c.prototype)).constructor=Gi;var ji,Ki=function(n){function t(t,r){var i;return(i=n.call(this)||this).message=t||"Unknown error",i.cause=r,c.captureStackTrace&&c.captureStackTrace(function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(i),i.constructor),i}return J(t,n),Z(t,[{key:"name",get:function(){return"BaseError"}}]),t}(Gi);!function(n){n.LT="HttpOpenError",n.OT="HttpResponseError",n.MT="HttpTimeoutError"}(ji||(ji={}));var qi,zi,Xi,$i=function(n){function t(t,r){return n.call(this,t,function(n){return"Error while opening "+n+". Invalid URL."}(t.qT),r)}return J(t,n),Z(t,[{key:"name",get:function(){return ji.LT}}]),t}(function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).UT=t,e}return J(t,n),Z(t,[{key:"FT",get:function(){return this.UT}}]),t}(Ki)),Zi=function(){function n(){}var t=n.prototype;return t.FT=function(n){return K.reject(new $i(new Hi(n)))},t.VF=function(n){},t.fn=function(){},n}(),Yi=function(n){function t(t){return n.call(this,"Invalid XML",t)}return J(t,n),t}(Ki);!function(n){n}(new(function(n){function t(){var t;return(t=n.apply(this,arguments)||this).O6=new Oi,t.CS=new Zi,t.i=new Ti,t}return J(t,n),t.prototype.ET=function(n){throw new Yi},Z(t,[{key:"k6",get:function(){return this.O6}},{key:"H6",get:function(){return!1}},{key:"SQ",get:function(){return!1}},{key:"z6",get:function(){return!1}},{key:"WQ",get:function(){return!1}},{key:"Bf",get:function(){return this.i}},{key:"X6",get:function(){return{G6:wn}}},{key:"Q6",get:function(){return"default"}},{key:"K6",get:function(){return"unknown"}},{key:"oC",get:function(){return this.CS}}]),t}(Ri))),function(n){n[n.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",n[n.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4"}(qi||(qi={})),function(n){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.CACHE_SOURCE_ERROR=12e3]="CACHE_SOURCE_ERROR",n[n.CACHE_CONTENT_PROTECTION_ERROR=12001]="CACHE_CONTENT_PROTECTION_ERROR"}(zi||(zi={})),function(n){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"}(Xi||(Xi={})),function(n){n.fromCode=function(n){var t=l.floor(n/1e3);if(t in Xi)return t;throw new a("Invalid error code: "+n)}}(Xi||(Xi={}));var Ji=function(n){function t(t,r,i){var e;return(e=n.call(this,r,i)||this).code=t,e}return J(t,n),Z(t,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return Xi.fromCode(this.code)}}]),t}(Ki);var Qi,ne=function(){function n(n){this.encoding=n}var t=n.prototype;return t.encode=function(n){if(!n)return new d(0);for(var t=new d(n.length),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return t},t.encodeInto=function(n,t){for(var r=l.min(n.length,t.byteLength),i=0;i<r;i++)t[i]=n.charCodeAt(i);return{read:r,written:r}},n}();var te=new(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 d(n):new d(n.buffer,n.byteOffset,n.byteLength),String.fromCharCode.apply(void 0,r)):"";var r},n}())("utf-8",{ignoreBOM:!0,fatal:!0});te.decode();var re=new d;function ie(){return re.buffer!==Qi.memory.buffer&&(re=new d(Qi.memory.buffer)),re}function ee(n,t){return te.decode(ie().subarray(n,n+t))}var ue=new Array(32).fill(void 0);ue.push(void 0,null,!0,!1);var oe=ue.length;function fe(n){oe===ue.length&&ue.push(ue.length+1);var t=oe;return oe=ue[t],ue[t]=n,t}function se(n){return ue[n]}function ce(n){var t=se(n);return function(n){n<36||(ue[n]=oe,oe=n)}(n),t}var ae=0;function he(n,t){var r=t(1*n.length);return ie().set(n,r/1),ae=n.length,r}var le=new Int32Array;function ve(){return le.buffer!==Qi.memory.buffer&&(le=new Int32Array(Qi.memory.buffer)),le}function _e(n){return null==n}function ye(n,t){return ie().subarray(n/1,n/1+t)}var de=new ne("utf-8"),we="function"==typeof de.encodeInto?function(n,t){return de.encodeInto(n,t)}:function(n,t){var r=de.encode(n);return t.set(r),{read:n.length,written:r.length}};function Ie(n,t){return Ee.apply(this,arguments)}function Ee(){return(Ee=Di((function(n,t){var r,i,e;return Pi(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]}}))}))).apply(this,arguments)}function pe(){var n={wbg:{}};return n.wbg.__wbg_createoutputdata_bccee5979d8be2f0=function(n,t,r,i,e,u,o,f){var s,c,a,h;return 0!==n&&(s=ye(n,t).slice(),Qi.__wbindgen_export_1(n,1*t)),0!==r&&(c=ye(r,i).slice(),Qi.__wbindgen_export_1(r,1*i)),0!==e&&(a=ye(e,u).slice(),Qi.__wbindgen_export_1(e,1*u)),0!==o&&(h=ye(o,f).slice(),Qi.__wbindgen_export_1(o,1*f)),fe(function(n,t,r,i){return{video_init:n,audio_init:t,video_media:r,audio_media:i}}(s,c,a,h))},n.wbg.__wbg_createtimestampwithbase_946dfd2c21189740=function(n,t,r){return fe(function(n,t,r){return{low:n,high:t,base:r}}(n>>>0,t>>>0,r>>>0))},n.wbg.__wbg_createoutputmetadata_447237f2cefc820a=function(n,t,r,i,e,u,o,f,s,c,a,h,l,v,_,y){var d,w,I,E;return 0!==r&&(d=ee(r,i).slice(),Qi.__wbindgen_export_1(r,1*i)),0!==e&&(w=ee(e,u).slice(),Qi.__wbindgen_export_1(e,1*u)),0!==o&&(I=ye(o,f).slice(),Qi.__wbindgen_export_1(o,1*f)),0!==s&&(E=ye(s,c).slice(),Qi.__wbindgen_export_1(s,1*c)),fe(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,d,w,I,E,ce(a),ce(h),ce(l),16777215===v?void 0:v,0===_?void 0:y))},n.wbg.__wbg_createoutput_57eadab690ca8f38=function(n,t){return fe(function(n,t){return{data:n,metadata:t}}(ce(n),ce(t)))},n.wbg.__wbindgen_string_new=function(n,t){return fe(ee(n,t))},n.wbg.__wbg_new_693216e109162396=function(){return fe(new c)},n.wbg.__wbg_stack_0ddaca5d1abfb52f=function(n,t){var r=function(n,t,r){if(void 0===r){var i=de.encode(n),e=t(i.length);return ie().subarray(e,e+i.length).set(i),ae=i.length,e}for(var u=n.length,o=t(u),f=ie(),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);var a=ie().subarray(o+s,o+u);s+=we(n,a).written}return ae=s,o}(se(t).stack,Qi.__wbindgen_export_0,Qi.__wbindgen_export_2),i=ae;ve()[n/4+1]=i,ve()[n/4+0]=r},n.wbg.__wbg_error_09919627ac0992f5=function(n,t){try{console.error(ee(n,t))}finally{Qi.__wbindgen_export_1(n,t)}},n.wbg.__wbindgen_object_drop_ref=function(n){ce(n)},n.wbg.__wbg_data_cc2d56efd30827c5=function(n,t){var r=he(se(t).data,Qi.__wbindgen_export_0),i=ae;ve()[n/4+1]=i,ve()[n/4+0]=r},n.wbg.__wbg_metadata_ca2e3d23c7c1a6ca=function(n){var t=se(n).metadata;return _e(t)?0:fe(t)},n.wbg.__wbg_spsnal_b4bfd05148141930=function(n,t){var r=se(t).sps_nal,i=_e(r)?0:he(r,Qi.__wbindgen_export_0),e=ae;ve()[n/4+1]=e,ve()[n/4+0]=i},n.wbg.__wbg_ppsnal_f7bfb23a31ee4c34=function(n,t){var r=se(t).pps_nal,i=_e(r)?0:he(r,Qi.__wbindgen_export_0),e=ae;ve()[n/4+1]=e,ve()[n/4+0]=i},n.wbg.__wbg_videopid_7a1f9f6b54cf877d=function(n){var t=se(n).video_pid;return _e(t)?16777215:t},n.wbg.__wbg_audiopid_30bbe0807c83c7cc=function(n){var t=se(n).audio_pid;return _e(t)?16777215:t},n.wbg.__wbg_programmaptablepid_1551464a82dd2746=function(n){var t=se(n).program_map_table_pid;return _e(t)?16777215:t},n}function Re(n,t){return Qi=n.exports,ge.__wbindgen_wasm_module=t,le=new Int32Array,re=new d,Qi.__wbindgen_start(),Qi}function ge(n){return Se.apply(this,arguments)}function Se(){return(Se=Di((function(n){var t,r,i,e;return Pi(this,(function(u){switch(u.label){case 0:return void 0===n&&(n=new URL("theomux_bg.wasm",void 0)),t=pe(),("string"==typeof n||"function"==typeof Request&&n instanceof Request||"function"==typeof URL&&n instanceof URL)&&(n=fetch(n)),[4,n];case 1:return[4,Ie.apply(void 0,[u.sent(),t])];case 2:return r=u.sent(),i=r.instance,e=r.module,[2,Re(i,e)]}}))}))).apply(this,arguments)}function Oe(){return(Oe=Di((function(n){var t;return Pi(this,(function(r){switch(r.label){case 0:return"string"==typeof n&&(n=new URL(n)),n instanceof WebAssembly.Module?(t=n,[3,3]):[3,1];case 1:return[4,ke(n)];case 2:t=r.sent(),r.label=3;case 3:return[4,ge(t)];case 4:return r.sent(),[2,new Te(t)]}}))}))).apply(this,arguments)}var Te=function(){function n(n){this.TR=n}var t=n.prototype;return t.mpegts_to_fmp4=function(n){return function(n){try{var t=Qi.__wbindgen_add_to_stack_pointer(-16);Qi.mpegts_to_fmp4(t,fe(n));var r=ve()[t/4+0],i=ve()[t/4+1];if(ve()[t/4+2])throw ce(i);return ce(r)}finally{Qi.__wbindgen_add_to_stack_pointer(16)}}(n)},t.raw_audio_to_fmp4=function(n){return function(n){try{var t=Qi.__wbindgen_add_to_stack_pointer(-16);Qi.raw_audio_to_fmp4(t,fe(n));var r=ve()[t/4+0],i=ve()[t/4+1];if(ve()[t/4+2])throw ce(i);return ce(r)}finally{Qi.__wbindgen_add_to_stack_pointer(16)}}(n)},t.restart=function(){var n=this;return Di((function(){return Pi(this,(function(t){switch(t.label){case 0:return[4,ge(n.TR)];case 1:return t.sent(),[2]}}))}))()},n}();function ke(n){return be.apply(this,arguments)}function be(){return(be=Di((function(n){var t,r,i,e;return Pi(this,(function(u){switch(u.label){case 0:return"http:"!==n.protocol&&"https:"!==n.protocol?[3,8]:[4,fetch(n.href)];case 1:if(t=u.sent(),"function"!=typeof WebAssembly.compileStreaming)return[3,5];u.label=2;case 2:return u.trys.push([2,4,,5]),[4,WebAssembly.compileStreaming(t)];case 3:return[2,u.sent()];case 4:if(r=u.sent(),"application/wasm"===t.headers.get("Content-Type"))throw r;return console.warn("`WebAssembly.compileStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.compile` which is slower. Original error:\n",r),[3,5];case 5:return[4,t.arrayBuffer()];case 6:return i=u.sent(),[4,WebAssembly.compile(i)];case 7:return[2,u.sent()];case 8:return[4,me(n.href)];case 9:return e=u.sent(),[4,WebAssembly.compile(e)];case 10:return[2,u.sent()];case 11:return[2]}}))}))).apply(this,arguments)}function me(n){return new K((function(t,r){var i=new w;i.onload=function(){t(i.response||new ArrayBuffer(0))},i.onerror=function(){r(new a('Failed to fetch "'+n+'", status '+i.status))},i.open("GET",n,!0),i.responseType="arraybuffer",i.send()}))}var Ae=new URL("./THEOplayer.transmux.wasm",i.href);!function(n){var t,r=K.resolve(n()).then((function(n){t=n,r=void 0,self.postMessage({zCt:"6.0.0"})}),(function(n){var t=n,r={success:!1,error:t.message,errorCode:t instanceof Ji?t.code:zi.MEDIA_DECODE_ERROR};self.postMessage(r)}));function i(){return(i=Di((function(n){var i,e,u,o,f,s;return Pi(this,(function(a){switch(a.label){case 0:return void 0===r?[3,2]:[4,r];case 1:a.sent(),a.label=2;case 2:if(u=n.id,n.type===qi.MPEGTS_TO_FMP4)o=t.mpegts_to_fmp4(n.input);else{if(n.type!==qi.RAW_AUDIO_TO_FMP4)throw new c("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(dn).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 Ji?r.code:zi.MEDIA_DECODE_ERROR};self.postMessage(i)}))}))}((function(){return function(n){return Oe.apply(this,arguments)}(Ae)}))}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof s?s:"undefined"!=typeof global?global:this);
package/package.json CHANGED
@@ -2,14 +2,54 @@
2
2
  "name": "@theoplayer/extended",
3
3
  "main": "THEOplayer.js",
4
4
  "types": "THEOplayer.d.ts",
5
- "version": "5.11.0",
5
+ "version": "6.0.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/",
9
9
  "license": "SEE LICENSE AT https://www.theoplayer.com/terms",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./THEOplayer.d.ts",
13
+ "import": "./THEOplayer.esm.js",
14
+ "default": "./THEOplayer.js"
15
+ },
16
+ "./chromeless": {
17
+ "types": "./THEOplayer.chromeless.d.ts",
18
+ "import": "./THEOplayer.chromeless.esm.js",
19
+ "default": "./THEOplayer.chromeless.js"
20
+ },
21
+ "./THEOplayer": {
22
+ "types": "./THEOplayer.d.ts",
23
+ "import": "./THEOplayer.esm.js",
24
+ "default": "./THEOplayer.js"
25
+ },
26
+ "./THEOplayer.js": "./THEOplayer.js",
27
+ "./THEOplayer.d.ts": "./THEOplayer.d.ts",
28
+ "./THEOplayer.chromeless": {
29
+ "types": "./THEOplayer.chromeless.d.ts",
30
+ "import": "./THEOplayer.chromeless.esm.js",
31
+ "default": "./THEOplayer.chromeless.js"
32
+ },
33
+ "./THEOplayer.chromeless.js": "./THEOplayer.chromeless.js",
34
+ "./THEOplayer.chromeless.d.ts": "./THEOplayer.chromeless.d.ts",
35
+ "./THEOplayer.transmux.js": "./THEOplayer.transmux.js",
36
+ "./THEOplayer.transmux.asmjs.js": "./THEOplayer.transmux.asmjs.js",
37
+ "./THEOplayer.transmux.wasm": "./THEOplayer.transmux.wasm",
38
+ "./theoplayer.sw.js": "./theoplayer.sw.js",
39
+ "./theoplayer.d.js": "./theoplayer.d.js",
40
+ "./theoplayer.e.js": "./theoplayer.e.js",
41
+ "./theoplayer.p.js": "./theoplayer.p.js",
42
+ "./iframe.html": "./iframe.html",
43
+ "./ui.css": "./ui.css",
44
+ "./package": "./package.json",
45
+ "./package.json": "./package.json"
46
+ },
10
47
  "files": [
11
48
  "THEOplayer.js",
49
+ "THEOplayer.esm.js",
12
50
  "THEOplayer.chromeless.js",
51
+ "THEOplayer.chromeless.esm.js",
52
+ "THEOplayer.common.esm.js",
13
53
  "theoplayer.sw.js",
14
54
  "theoplayer.d.js",
15
55
  "theoplayer.e.js",