@theoplayer/extended 4.3.1 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THEOplayer.chromeless.js +3 -3
- package/THEOplayer.d.ts +12 -314
- package/THEOplayer.js +3 -3
- package/THEOplayer.transmux.asmjs.js +3 -3
- package/THEOplayer.transmux.js +3 -3
- package/THEOplayer.transmux.wasm +0 -0
- package/package.json +1 -1
- package/theoplayer.d.js +3 -3
- package/theoplayer.e.js +3 -3
- package/theoplayer.p.js +3 -3
- package/theoplayer.sw.js +3 -3
package/theoplayer.sw.js
CHANGED
|
@@ -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: 2022.4.
|
|
28
|
-
Created: 2022-11-
|
|
27
|
+
Version: 2022.4.2 (4.4.0)
|
|
28
|
+
Created: 2022-11-28T10:29:15.135Z
|
|
29
29
|
*/
|
|
30
|
-
!function(t){!function(){"use strict";var n=t.window,i=t.document,e=(t.location,t.navigator),r=t.setTimeout,o=t.clearTimeout,u=t.setInterval,s=t.clearInterval,f=t.Error,h=t.TypeError,c=(t.SyntaxError,t.Object),a=t.Math,v=t.parseInt,d=t.parseFloat,l=t.isNaN,w=t.Uint8Array,b=(t.Worker,t.WorkerGlobalScope,t.XMLHttpRequest);var g=r;function m(t){return Boolean(t&&void 0!==t.length)}function p(){}function y(t){if(!(this instanceof y))throw new h("Promises must be constructed via new");if("function"!=typeof t)throw new h("not a function");this.ke=0,this.ye=!1,this.pe=void 0,this.Ae=[],R(t,this)}function _(t,n){for(;3===t.ke;)t=t.pe;0!==t.ke?(t.ye=!0,y.Te(function(){var i=1===t.ke?n.onFulfilled:n.onRejected;if(null!==i){var e;try{e=i(t.pe)}catch(t){return void I(n.promise,t)}S(n.promise,e)}else(1===t.ke?S:I)(n.promise,t.pe)})):t.Ae.push(n)}function S(t,n){try{if(n===t)throw new h("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var i=n.then;if(n instanceof y)return t.ke=3,t.pe=n,void T(t);if("function"==typeof i)return void R((e=i,r=n,function(){e.apply(r,arguments)}),t)}t.ke=1,t.pe=n,T(t)}catch(n){I(t,n)}var e,r}function I(t,n){t.ke=2,t.pe=n,T(t)}function T(t){2===t.ke&&0===t.Ae.length&&y.Te(function(){t.ye||y.Se(t.pe)});for(var n=0,i=t.Ae.length;n<i;n++)_(t,t.Ae[n]);t.Ae=null}function E(t,n,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=i}function R(t,n){var i=!1;try{t(function(t){i||(i=!0,S(n,t))},function(t){i||(i=!0,I(n,t))})}catch(t){if(i)return;i=!0,I(n,t)}}y.prototype.catch=function(t){return this.then(null,t)},y.prototype.then=function(t,n){var i=new this.constructor(p);return _(this,new E(t,n,i)),i},y.prototype.finally=function(t){var n=this.constructor;return this.then(function(i){return n.resolve(t()).then(function(){return i})},function(i){return n.resolve(t()).then(function(){return n.reject(i)})})},y.all=function(t){return new y(function(n,i){if(!m(t))return i(new h("Promise.all accepts an array"));var e=Array.prototype.slice.call(t);if(0===e.length)return n([]);var r=e.length;function o(t,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var s=u.then;if("function"==typeof s)return void s.call(u,function(n){o(t,n)},i)}e[t]=u,0==--r&&n(e)}catch(t){i(t)}}for(var u=0;u<e.length;u++)o(u,e[u])})},y.allSettled=function(t){return new this(function(n,i){if(!t||void 0===t.length)return i(new h(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var e=Array.prototype.slice.call(t);if(0===e.length)return n([]);var r=e.length;function o(t,i){if(i&&("object"==typeof i||"function"==typeof i)){var u=i.then;if("function"==typeof u)return void u.call(i,function(n){o(t,n)},function(i){e[t]={status:"rejected",reason:i},0==--r&&n(e)})}e[t]={status:"fulfilled",value:i},0==--r&&n(e)}for(var u=0;u<e.length;u++)o(u,e[u])})},y.resolve=function(t){return t&&"object"==typeof t&&t.constructor===y?t:new y(function(n){n(t)})},y.reject=function(t){return new y(function(n,i){i(t)})},y.race=function(t){return new y(function(n,i){if(!m(t))return i(new h("Promise.race accepts an array"));for(var e=0,r=t.length;e<r;e++)y.resolve(t[e]).then(n,i)})},y.Te="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){g(t,0)},y.Se=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var k=function(){var n=t.Promise;if(void 0!==n)try{if(-1!==n.toString().indexOf("[native code]"))return n}catch(t){}}(),N=e?e.userAgent:"",O=N.match(/Firefox\/([0-9]+)/i),P=null!=O,A=O?Number(O[1]):0,D=N.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),x=null!=D,C=D?Number(D[3]):0,B=function(){function t(t){this.Ee=0,this.Ie=0,this.Gi=[],this.Re=t}return t.prototype.Ne=function(t){var n=this.length();this.De(n+1);var i=this.Ie+n&this.Re-1;this.Gi[i]=t,this.Ee=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.Re<n)this.Ne(t);else{var i=this.Ie+n-1,e=this.Re-1;this.Gi[i&e]=t,this.Ee=n}},t.prototype.shift=function(){var t=this.Ie,n=this.Gi[t];return this.Gi[t]=void 0,this.Ie=t+1&this.Re-1,this.Ee--,n},t.prototype.length=function(){return this.Ee},t.prototype.De=function(t){this.Re<t&&this.Ce(this.Re<<1)},t.prototype.Ce=function(t){var n=this.Re;this.Re=t;var i=this.Ie+this.Ee&n-1;!function(t,n,i,e){for(var r=0;r<e;++r)t[r+i]=t[r+n],t[r+n]=void 0}(this.Gi,0,n,i)},t}();var F="unhandledrejection",L=t.PromiseRejectionEvent,U=t.CustomEvent;function M(t){return new L(F,{reason:t,promise:k.reject(t).catch(function(){}),cancelable:!0})}function z(t){var n=new U(F,{detail:{reason:t},cancelable:!0});return c.defineProperty(n,"reason",{value:t}),n}function W(t){var n=i.createEvent("CustomEvent");return n.initCustomEvent(F,!1,!0,{reason:t}),n}var q,j,V,H,X,G,Y=function(t){return(Y=function(){try{var t=k.resolve(),n=new L(F,{reason:"error",promise:t});return F===n.type&&"error"===n.reason}catch(t){}return!1}()?M:function(){try{var t=new U(F,{detail:{reason:"error"}});return F===t.type&&"error"===t.detail.reason}catch(t){}return!1}()?z:W)(t)};if(k&&!(P&&A<60||x&&C<15))j=k;else{j=y;var K=null!==(q=function(){var n=t.queueMicrotask;if("function"==typeof n)return function(t){return n(t)};var i=k;if(i&&"function"==typeof i.resolve){var e=i.resolve();return function(t){return e.then(t)}}}())&&void 0!==q?q:y.Te,$=(V=K,H=new B(16),X=!1,{Pe:function(t){H.push(t),X||(X=!0,V(G))},Oe:G=function(){for(;H.length()>0;)H.shift()();X=!1}});y.Te=$.Pe,y.Se=function(n){try{var i=Y(n);if(!t.dispatchEvent(i)||i.defaultPrevented)return}catch(t){}r(function(){throw new f("Unhandled promise rejection: ".concat(n))},0)}}var J={exports:{}};!function(t){var n,i=c.prototype,e=i.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",u=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function a(t,n,i,e){var r=n&&n.prototype instanceof p?n:p,o=c.create(r.prototype),u=new A(e||[]);return o.Yr=function(t,n,i){var e=d;return function(r,o){if(e===b)throw new f("Generator is already running");if(e===g){if("throw"===r)throw o;return x()}for(i.method=r,i.arg=o;;){var u=i.delegate;if(u){var s=N(u,i);if(s){if(s===m)continue;return s}}if("next"===i.method)i.sent=i.Qr=i.arg;else if("throw"===i.method){if(e===d)throw e=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);e=b;var h=v(t,n,i);if("normal"===h.type){if(e=i.done?g:w,h.arg===m)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(e=g,i.method="throw",i.arg=h.arg)}}}(t,i,u),o}function v(t,n,i){try{return{type:"normal",arg:t.call(n,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var d="suspendedStart",w="suspendedYield",b="executing",g="completed",m={};function p(){}function y(){}function _(){}var S={};S[o]=function(){return this};var I=c.getPrototypeOf,T=I&&I(I(D([])));T&&T!==i&&e.call(T,o)&&(S=T);var E=_.prototype=p.prototype=c.create(S);function R(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this.Yr(n,t)}})}function k(t){var n;this.Yr=function(i,r){function o(){return new j(function(n,o){!function n(i,r,o,u){var s=v(t[i],t,r);if("throw"!==s.type){var f=s.arg,h=f.value;return h&&"object"==typeof h&&e.call(h,"jr")?j.resolve(h.jr).then(function(t){n("next",t,o,u)},function(t){n("throw",t,o,u)}):j.resolve(h).then(function(t){f.value=t,o(f)},function(t){return n("throw",t,o,u)})}u(s.arg)}(i,r,n,o)})}return n=n?n.then(o,o):o()}}function N(t,i){var e=t.iterator[i.method];if(e===n){if(i.delegate=null,"throw"===i.method){if(t.iterator.return&&(i.method="return",i.arg=n,N(t,i),"throw"===i.method))return m;i.method="throw",i.arg=new h("The iterator does not provide a 'throw' method")}return m}var r=v(e,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,m;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=n),i.delegate=null,m):o:(i.method="throw",i.arg=new h("iterator result is not an object"),i.delegate=null,m)}function O(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function D(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!l(t.length)){var r=-1,u=function i(){for(;++r<t.length;)if(e.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=n,i.done=!0,i};return u.next=u}}return{next:x}}function x(){return{value:n,done:!0}}y.prototype=E.constructor=_,_.constructor=y,_[s]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return c.setPrototypeOf?c.setPrototypeOf(t,_):(t.__proto__=_,s in t||(t[s]="GeneratorFunction")),t.prototype=c.create(E),t},t.awrap=function(t){return{jr:t}},R(k.prototype),k.prototype[u]=function(){return this},t.AsyncIterator=k,t.async=function(n,i,e,r){var o=new k(a(n,i,e,r));return t.isGeneratorFunction(i)?o:o.next().then(function(t){return t.done?t.value:o.next()})},R(E),E[s]="Generator",E[o]=function(){return this},E.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var i in t)n.push(i);return n.reverse(),function i(){for(;n.length;){var e=n.pop();if(e in t)return i.value=e,i.done=!1,i}return i.done=!0,i}},t.values=D,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this.Qr=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!t)for(var i in this)"t"===i.charAt(0)&&e.call(this,i)&&!l(+i.slice(1))&&(this[i]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function r(e,r){return s.type="throw",s.arg=t,i.next=e,r&&(i.method="next",i.arg=n),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],s=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var h=e.call(u,"catchLoc"),c=e.call(u,"finallyLoc");if(h&&c){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(h){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!c)throw new f("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.finallyLoc)}}}},abrupt:function(t,n){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&e.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),m},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),m}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===t){var e=i.completion;if("throw"===e.type){var r=e.arg;P(i)}return r}}throw new f("illegal catch attempt")},delegateYield:function(t,i,e){return this.delegate={iterator:D(t),resultName:i,nextLoc:e},"next"===this.method&&(this.arg=n),m}}}(J.exports);var Z,Q=J.exports;function tt(t){Z=t}var nt={}.toString;var it=Array.isArray||function(t){return"[object Array]"===nt.call(t)};function et(t){return"object"==typeof t&&null!==t}var rt,ot=9007199254740991,ut=a.pow(2,-52);function st(t,n){for(var i=t,e=n;0!==e;){var r=i%e;i=e,e=r}return i<0?-i:i}!function(t){t[t.Rs=0]="Rs",t[t.Ns=1]="Ns",t[t.Ds=-1]="Ds"}(rt||(rt={}));var ft=function(t,n){return function(t,n){if(t===n)return!0;var i=a.abs(t-n);return i<ut||i<a.max(a.abs(t),a.abs(n))*ut}(t,n)?rt.Rs:function(t,n){return t===n?rt.Rs:t<n?rt.Ds:t>n?rt.Ns:l(t)?l(n)?rt.Rs:rt.Ns:rt.Ds}(t,n)};function ht(t,n,i){for(var e=0;e<t.length;e+=1){var r=t[e];if(n.call(i,r,e,t))return e}return-1}function ct(t,n){var i=t.indexOf(n);return-1!==i&&(function(t,n){t.splice(n,1)}(t,i),!0)}function at(t,n){return-1!==t.indexOf(n)}function vt(t){t.length=0}var dt=function(){};function lt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*a.random()|0;return("x"===t?n:3&n|8).toString(16)})}var wt,bt="https://theo.proxy";function gt(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),c.defineProperty(t,e.key,e)}}function mt(t,n,i){return n&>(t.prototype,n),i&>(t,i),c.defineProperty(t,"prototype",{writable:!1}),t}function pt(){var t=c.create(null);return t.__=void 0,delete t.__,t}function yt(){return new It}!function(t){t.dl="audio",t.ll="video",t.xA="metadata"}(wt||(wt={}));var _t,St,It=("undefined"!=typeof Map&&"entries"in Map.prototype?Map:void 0)||(_t=function(){function t(t,n){this.data=void 0,this.keys=void 0,this.index=0,this.selector=void 0,this.data=t,this.selector=n,this.keys=c.keys(t)}var n=t.prototype;return n.next=function(){var t=this.index;return t<this.keys.length?(this.index++,{value:this.selector(this.data,this.keys[t]),done:!1}):{value:void 0,done:!0}},t}(),function(){function t(){this.data=pt(),this.size=0}var n=t.prototype;return n.get=function(t){return this.data[t]},n.set=function(t,n){return this.has(t)||this.size++,this.data[t]=n,this},n.has=function(t){return t in this.data},n.delete=function(t){return!!this.has(t)&&(this.size--,delete this.data[t],!0)},n.clear=function(){this.data=pt(),this.size=0},n.keys=function(){return new _t(this.data,function(t,n){return n})},n.values=function(){return new _t(this.data,function(t,n){return t[n]})},n.entries=function(){return new _t(this.data,function(t,n){return[n,t[n]]})},n.forEach=function(t){for(var n in this.data)t(this.data[n],n)},t}());!function(t){t.Jd="#EXTINF",t.kyt="#EXT-X-MAP",t.CO="#EXTM3U",t.i="#EXT-X-VERSION",t.o="#EXT-X-TARGETDURATION",t.U5="#EXT-X-START",t.s="#EXT-X-INDEPENDENT-SEGMENTS",t.Qf="#EXT-X-STREAM-INF",t.h="#EXT-X-MEDIA-SEQUENCE",t.m="#EXT-X-ENDLIST",t.PO="#EXT-X-MEDIA",t.p="#EXT-X-DISCONTINUITY",t.S="#EXT-X-DISCONTINUITY-SEQUENCE",t.I="#EXT-X-PLAYLIST-TYPE"}(St||(St={}));var Tt,Et=function(){function t(t,n){this.vs=St.Jd,this.T=void 0,this.k=void 0,this.T=t,this.k=n}return t.prototype.oR=function(){return this.vs+":"+this.T+",\n"+this.k},t}(),Rt=function(){function t(){this.vs=St.CO}return t.prototype.oR=function(){return this.vs},t}(),kt=function(){function t(t){this.vs=St.i,this.vT=void 0,this.vT=t}return t.prototype.oR=function(){return this.vs+":"+this.vT},t}(),Nt=function(){function t(t){this.vs=St.o,this._pt=void 0,this._pt=t}return t.prototype.oR=function(){return this.vs+":"+this._pt},t}(),Ot=function(){function t(t){this.vs=St.U5,this.Zpt=void 0,this.Zpt=t}return t.prototype.oR=function(){return this.vs+":TIME-OFFSET="+this.Zpt},t}(),Pt=function(){function t(){this.vs=St.s}return t.prototype.oR=function(){return this.vs},t}(),At=function(){function t(t){this.vs=St.Qf,this.kN=1,this.k=void 0,this.k=t}return t.prototype.oR=function(){return this.vs+":BANDWIDTH="+this.kN+',AUDIO="audio"\n'+this.k},t}(),Dt=function(){function t(t){this.vs=St.h,this.JS=void 0,this.JS=t}return t.prototype.oR=function(){return this.vs+":"+this.JS},t}(),xt=function(){function t(){this.vs=St.p}return t.prototype.oR=function(){return this.vs},t}(),Ct=function(){function t(t){this.vs=St.S,this.JS=void 0,this.JS=t}return t.prototype.oR=function(){return this.vs+":"+this.JS},t}();!function(t){t.Ayt="VOD",t.tPt="EVENT"}(Tt||(Tt={}));var Bt=function(){function t(t){this.vs=St.PO,this.k=void 0,this.k=t}return t.prototype.oR=function(){var t=yt();t.set("TYPE","AUDIO"),t.set("GROUP-ID",'"audio"'),t.set("NAME",'"audio"'),t.set("AUTOSELECT","YES"),t.set("DEFAULT","YES"),t.set("CHANNELS",'"2"'),t.set("URI",'"'+this.k+'"');var n=[];return t.forEach(function(t,i){return n.push(i+"="+t)}),this.vs+":"+n.join(",")},t}(),Ft=function(){function t(t){this.Vo=[],this.Vo=t}return t.prototype.O=function(){for(var t="",n=0,i=this.Vo;n<i.length;n++){t+=i[n].oR()+"\n"}return t},mt(t,[{key:"eS",get:function(){return this.Vo}}]),t}(),Lt=function(){function t(){this.Vo=[];for(var t=[new Rt,new kt(8)],n=0;n<t.length;n++){var i=t[n];this.P(i)}}var n=t.prototype;return n.P=function(t){this.Vo.push(t)},n.Ms=function(){this.Vo.length=0},mt(t,[{key:"eS",get:function(){return new Ft(this.Vo)}}]),t}();function Ut(t,n){return(Ut=c.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function Mt(t,n){t.prototype=c.create(n.prototype),t.prototype.constructor=t,Ut(t,n)}var zt=function(){function t(){}var n=t.prototype;return n.vp=function(t){return this.dp()*t},n.lp=function(t){return this._p(t)>0},n.gp=function(t){return this._p(t)>=0},n.wp=function(t,n){return this.kp(t).mp(n)},n.np=function(t){return 0===this._p(t)},n.yp=function(t){return this._p(t)<0},n.mp=function(t){return this._p(t)<=0},n.pp=function(){return this.bp()?this.Ap():this},n.Tp=function(t){return this.wy(t.Ap())},n.kp=function(t){return this.Tp(t).pp()},t}();function Wt(t,n){return t.Sp()?n.Sp()?rt.Rs:rt.Ns:n.Sp()?rt.Ds:t.Ep()?n.Ep()&&t.bp()===n.bp()?rt.Rs:t.bp()?rt.Ds:rt.Ns:n.bp()?rt.Ns:rt.Ds}var qt=null;try{qt=new WebAssembly.Instance(new WebAssembly.Module(new w([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(t){}function jt(t,n,i){this.low=0|t,this.high=0|n,this.unsigned=!!i}function Vt(t){return!0===(t&&t.Kn)}function Ht(t){var n=a.clz32(t&-t);return t?31-n:n}jt.prototype.Kn,c.defineProperty(jt.prototype,"Kn",{value:!0}),jt.isLong=Vt;var Xt={},Gt={};function Yt(t,n){var i,e,r;return n?(r=0<=(t>>>=0)&&t<256)&&(e=Gt[t])?e:(i=$t(t,0,!0),r&&(Gt[t]=i),i):(r=-128<=(t|=0)&&t<128)&&(e=Xt[t])?e:(i=$t(t,t<0?-1:0,!1),r&&(Xt[t]=i),i)}function Kt(t,n){if(l(t))return n?un:on;if(n){if(t<0)return un;if(t>=nn)return an}else{if(t<=-en)return vn;if(t+1>=en)return cn}return t<0?Kt(-t,n).neg():$t(t%tn|0,t/tn|0,n)}function $t(t,n,i){return new jt(t,n,i)}jt.fromInt=Yt,jt.fromNumber=Kt,jt.fromBits=$t;var Jt=a.pow;function Zt(t,n,i){if(0===t.length)throw f("empty string");if("number"==typeof n?(i=n,n=!1):n=!!n,"NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return n?un:on;if((i=i||10)<2||36<i)throw RangeError("radix");var e;if((e=t.indexOf("-"))>0)throw f("interior hyphen");if(0===e)return Zt(t.substring(1),n,i).neg();for(var r=Kt(Jt(i,8)),o=on,u=0;u<t.length;u+=8){var s=a.min(8,t.length-u),h=v(t.substring(u,u+s),i);if(s<8){var c=Kt(Jt(i,s));o=o.mul(c).add(Kt(h))}else o=(o=o.mul(r)).add(Kt(h))}return o.unsigned=n,o}function Qt(t,n){return"number"==typeof t?Kt(t,n):"string"==typeof t?Zt(t,n):$t(t.low,t.high,"boolean"==typeof n?n:t.unsigned)}jt.fromString=Zt,jt.fromValue=Qt;var tn=4294967296,nn=tn*tn,en=nn/2,rn=Yt(1<<24),on=Yt(0);jt.ZERO=on;var un=Yt(0,!0);jt.UZERO=un;var sn=Yt(1);jt.ONE=sn;var fn=Yt(1,!0);jt.UONE=fn;var hn=Yt(-1);jt.NEG_ONE=hn;var cn=$t(-1,2147483647,!1);jt.MAX_VALUE=cn;var an=$t(-1,-1,!0);jt.MAX_UNSIGNED_VALUE=an;var vn=$t(0,-2147483648,!1);jt.MIN_VALUE=vn;var dn=jt.prototype;dn.toInt=function(){return this.unsigned?this.low>>>0:this.low},dn.toNumber=function(){return this.unsigned?(this.high>>>0)*tn+(this.low>>>0):this.high*tn+(this.low>>>0)},dn.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(vn)){var n=Kt(t),i=this.div(n),e=i.mul(n).sub(this);return i.toString(t)+e.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var r=Kt(Jt(t,6),this.unsigned),o=this,u="";;){var s=o.div(r),f=(o.sub(s.mul(r)).toInt()>>>0).toString(t);if((o=s).isZero())return f+u;for(;f.length<6;)f="0"+f;u=""+f+u}},dn.getHighBits=function(){return this.high},dn.getHighBitsUnsigned=function(){return this.high>>>0},dn.getLowBits=function(){return this.low},dn.getLowBitsUnsigned=function(){return this.low>>>0},dn.getNumBitsAbs=function(){if(this.isNegative())return this.eq(vn)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,n=31;n>0&&0==(t&1<<n);n--);return 0!=this.high?n+33:n+1},dn.isZero=function(){return 0===this.high&&0===this.low},dn.eqz=dn.isZero,dn.isNegative=function(){return!this.unsigned&&this.high<0},dn.isPositive=function(){return this.unsigned||this.high>=0},dn.isOdd=function(){return 1==(1&this.low)},dn.isEven=function(){return 0==(1&this.low)},dn.equals=function(t){return Vt(t)||(t=Qt(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},dn.eq=dn.equals,dn.notEquals=function(t){return!this.eq(t)},dn.neq=dn.notEquals,dn.ne=dn.notEquals,dn.lessThan=function(t){return this.comp(t)<0},dn.lt=dn.lessThan,dn.lessThanOrEqual=function(t){return this.comp(t)<=0},dn.lte=dn.lessThanOrEqual,dn.le=dn.lessThanOrEqual,dn.greaterThan=function(t){return this.comp(t)>0},dn.gt=dn.greaterThan,dn.greaterThanOrEqual=function(t){return this.comp(t)>=0},dn.gte=dn.greaterThanOrEqual,dn.ge=dn.greaterThanOrEqual,dn.compare=function(t){if(Vt(t)||(t=Qt(t)),this.eq(t))return 0;var n=this.isNegative(),i=t.isNegative();return n&&!i?-1:!n&&i?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},dn.comp=dn.compare,dn.negate=function(){return!this.unsigned&&this.eq(vn)?vn:this.not().add(sn)},dn.neg=dn.negate,dn.add=function(t){Vt(t)||(t=Qt(t));var n=this.high>>>16,i=65535&this.high,e=this.low>>>16,r=65535&this.low,o=t.high>>>16,u=65535&t.high,s=t.low>>>16,f=0,h=0,c=0,a=0;return c+=(a+=r+(65535&t.low))>>>16,h+=(c+=e+s)>>>16,f+=(h+=i+u)>>>16,f+=n+o,$t((c&=65535)<<16|(a&=65535),(f&=65535)<<16|(h&=65535),this.unsigned)},dn.subtract=function(t){return Vt(t)||(t=Qt(t)),this.add(t.neg())},dn.sub=dn.subtract,dn.multiply=function(t){if(this.isZero())return this;if(Vt(t)||(t=Qt(t)),qt)return $t(qt.mul(this.low,this.high,t.low,t.high),qt.get_high(),this.unsigned);if(t.isZero())return this.unsigned?un:on;if(this.eq(vn))return t.isOdd()?vn:on;if(t.eq(vn))return this.isOdd()?vn:on;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(rn)&&t.lt(rn))return Kt(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,e=this.low>>>16,r=65535&this.low,o=t.high>>>16,u=65535&t.high,s=t.low>>>16,f=65535&t.low,h=0,c=0,a=0,v=0;return a+=(v+=r*f)>>>16,c+=(a+=e*f)>>>16,a&=65535,c+=(a+=r*s)>>>16,h+=(c+=i*f)>>>16,c&=65535,h+=(c+=e*s)>>>16,c&=65535,h+=(c+=r*u)>>>16,h+=n*f+i*s+e*u+r*o,$t((a&=65535)<<16|(v&=65535),(h&=65535)<<16|(c&=65535),this.unsigned)},dn.mul=dn.multiply,dn.divide=function(t){if(Vt(t)||(t=Qt(t)),t.isZero())throw f("division by zero");var n,i,e;if(qt)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?$t((this.unsigned?qt.div_u:qt.div_s)(this.low,this.high,t.low,t.high),qt.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?un:on;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return un;if(t.gt(this.shru(1)))return fn;e=un}else{if(this.eq(vn))return t.eq(sn)||t.eq(hn)?vn:t.eq(vn)?sn:(n=this.shr(1).div(t).shl(1)).eq(on)?t.isNegative()?sn:hn:(i=this.sub(t.mul(n)),e=n.add(i.div(t)));if(t.eq(vn))return this.unsigned?un:on;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();e=on}for(i=this;i.gte(t);){n=a.max(1,a.floor(i.toNumber()/t.toNumber()));for(var r=a.ceil(a.log(n)/a.LN2),o=r<=48?1:Jt(2,r-48),u=Kt(n),s=u.mul(t);s.isNegative()||s.gt(i);)s=(u=Kt(n-=o,this.unsigned)).mul(t);u.isZero()&&(u=sn),e=e.add(u),i=i.sub(s)}return e},dn.div=dn.divide,dn.modulo=function(t){return Vt(t)||(t=Qt(t)),qt?$t((this.unsigned?qt.rem_u:qt.rem_s)(this.low,this.high,t.low,t.high),qt.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},dn.mod=dn.modulo,dn.rem=dn.modulo,dn.not=function(){return $t(~this.low,~this.high,this.unsigned)},dn.countLeadingZeros=function(){return this.high?a.clz32(this.high):a.clz32(this.low)+32},dn.clz=dn.countLeadingZeros,dn.countTrailingZeros=function(){return this.low?Ht(this.low):Ht(this.high)+32},dn.ctz=dn.countTrailingZeros,dn.and=function(t){return Vt(t)||(t=Qt(t)),$t(this.low&t.low,this.high&t.high,this.unsigned)},dn.or=function(t){return Vt(t)||(t=Qt(t)),$t(this.low|t.low,this.high|t.high,this.unsigned)},dn.xor=function(t){return Vt(t)||(t=Qt(t)),$t(this.low^t.low,this.high^t.high,this.unsigned)},dn.shiftLeft=function(t){return Vt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?$t(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):$t(0,this.low<<t-32,this.unsigned)},dn.shl=dn.shiftLeft,dn.shiftRight=function(t){return Vt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?$t(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):$t(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},dn.shr=dn.shiftRight,dn.shiftRightUnsigned=function(t){return Vt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?$t(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):$t(32===t?this.high:this.high>>>t-32,0,this.unsigned)},dn.shru=dn.shiftRightUnsigned,dn.shr_u=dn.shiftRightUnsigned,dn.rotateLeft=function(t){var n;return Vt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?$t(this.high,this.low,this.unsigned):t<32?(n=32-t,$t(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned)):(n=32-(t-=32),$t(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned))},dn.rotl=dn.rotateLeft,dn.rotateRight=function(t){var n;return Vt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?$t(this.high,this.low,this.unsigned):t<32?(n=32-t,$t(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned)):(n=32-(t-=32),$t(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned))},dn.rotr=dn.rotateRight,dn.toSigned=function(){return this.unsigned?$t(this.low,this.high,!1):this},dn.toUnsigned=function(){return this.unsigned?this:$t(this.low,this.high,!0)},dn.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},dn.toBytesLE=function(){var t=this.high,n=this.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},dn.toBytesBE=function(){var t=this.high,n=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]},jt.fromBytes=function(t,n,i){return i?jt.fromBytesLE(t,n):jt.fromBytesBE(t,n)},jt.fromBytesLE=function(t,n){return new jt(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},jt.fromBytesBE=function(t,n){return new jt(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)};var ln=function(){function t(t,n){this.Ip=void 0,this.Rp=void 0,this.Ip=t,this.Rp=n}t.Np=function(n,i,e){return e?new t(n.toUnsigned(),i.toUnsigned()):new t(n.toSigned(),i.toSigned())},t.Dp=function(n){return n.unsigned?new t(n,jt.UZERO):new t(n,n.isNegative()?jt.NEG_ONE:jt.ZERO)},t.Cp=function(n,i){if(l(n))return i?t.Pp:t.Op;if(i){if(n<0)return t.Pp;if(n>=3.402823669209385e38)return t.Bp}else{if(n<=-1.7014118346046923e38)return t.Lp;if(n+1>=1.7014118346046923e38)return t.Mp}return n<0?t.Cp(-n,i).Ap():t.Np(jt.fromNumber(n%0x10000000000000000),jt.fromNumber(n/0x10000000000000000),i)};var n=t.prototype;return n.xp=function(){return this.Rp.unsigned},n.Fp=function(){return this.Ip.isZero()&&this.Rp.isZero()},n.bp=function(){return this.Rp.isNegative()},n.Up=function(){return this.xp()?t.Np(this.Ip,this.Rp,!1):this},n.Hp=function(){return this.xp()?this:t.Np(this.Ip,this.Rp,!0)},n.Vp=function(){return this.Ip},n.dp=function(){return this.bp()?-this.Ap().dp():0x10000000000000000*this.Rp.toNumber()+this.Ip.toUnsigned().toNumber()},n.Xp=function(){return this.Ip.toInt()},n.np=function(t){return(this.xp()===t.xp()||this.Rp.getHighBits()>>>31!=1||t.Rp.getHighBits()>>>31!=1)&&(this.Rp.toUnsigned().eq(t.Rp.toUnsigned())&&this.Ip.toUnsigned().eq(t.Ip.toUnsigned()))},n._p=function(t){if(this.np(t))return rt.Rs;var n=this.bp(),i=t.bp();if(n&&!i)return rt.Ds;if(!n&&i)return rt.Ns;if(!this.xp())return this.Tp(t).bp()?rt.Ds:rt.Ns;var e=this.Hp(),r=t.Hp(),o=r.Rp.comp(e.Rp);return o>0||0===o&&r.Ip.gt(e.Ip)?rt.Ds:rt.Ns},n.yp=function(t){return this._p(t)<0},n.mp=function(t){return this._p(t)<=0},n.zp=function(t){return this._p(t)>0},n.qp=function(t){return this._p(t)>=0},n.Wp=function(){return new t(this.Ip.not(),this.Rp.not())},n.Gp=function(n){return new t(this.Ip.and(n.Ip),this.Rp.and(n.Rp))},n.Yp=function(n){return new t(this.Ip.or(n.Ip),this.Rp.or(n.Rp))},n.Qp=function(n){var i=127&n;return 0===i?this:i<64?t.Np(this.Ip.shl(i),this.Rp.shl(i).or(this.Ip.shru(64-i)),this.xp()):t.Np(jt.ZERO,this.Ip.shl(i-64),this.xp())},n.jp=function(n){var i=127&n;return 0===i?this:i<64?t.Np(this.Ip.shru(i).or(this.Rp.shl(64-i)),this.Rp.shr(i),this.xp()):t.Np(this.Rp.shr(i-64),this.Rp.isNegative()?jt.NEG_ONE:jt.ZERO,this.xp())},n.Kp=function(n){var i=127&n;return 0===i?this:i<64?t.Np(this.Ip.shru(i).or(this.Rp.shl(64-i)),this.Rp.shru(i),this.xp()):64===i?t.Np(this.Rp,jt.ZERO,this.xp()):t.Np(this.Rp.shru(i-64),jt.ZERO,this.xp())},n.wy=function(n){var i=this.Rp.high>>>16,e=65535&this.Rp.high,r=this.Rp.low>>>16,o=65535&this.Rp.low,u=this.Ip.high>>>16,s=65535&this.Ip.high,f=this.Ip.low>>>16,h=65535&this.Ip.low,c=n.Rp.high>>>16,a=65535&n.Rp.high,v=n.Rp.low>>>16,d=65535&n.Rp.low,l=n.Ip.high>>>16,w=65535&n.Ip.high,b=n.Ip.low>>>16,g=0,m=0,p=0,y=0,_=0,S=0,I=0,T=0;I+=(T+=h+(65535&n.Ip.low))>>>16,T&=65535,S+=(I+=f+b)>>>16,I&=65535,_+=(S+=s+w)>>>16,S&=65535,y+=(_+=u+l)>>>16,_&=65535,p+=(y+=o+d)>>>16,y&=65535,m+=(p+=r+v)>>>16,p&=65535,g+=(m+=e+a)>>>16,m&=65535,g+=i+c,g&=65535;var E=this.xp(),R=jt.fromBits(p<<16|y,g<<16|m,E),k=jt.fromBits(I<<16|T,_<<16|S,E);return t.Np(k,R,E)},n.Tp=function(t){return this.wy(t.Ap())},n.Ap=function(){return this.Wp().wy(t.Zp)},n.Jp=function(n){if(this.Fp()||n.Fp())return this.xp()?t.Pp:t.Op;if(this.bp())return n.bp()?this.Ap().Jp(n.Ap()):this.Ap().Jp(n).Ap();if(n.bp())return this.Jp(n.Ap()).Ap();if(this.Rp.isZero()&&0===this.Ip.high&&n.Rp.isZero()&&0===n.Ip.high)return t.Dp(this.Ip.multiply(n.Ip));var i=jt.fromBits(4294967295,0,!0),e=this.Ip.and(i),r=this.Ip.shru(32),o=this.Rp.and(i),u=this.Rp.shru(32),s=n.Ip.and(i),f=n.Ip.shru(32),h=n.Rp.and(i),c=n.Rp.shru(32),a=jt.UZERO,v=jt.UZERO,d=jt.UZERO,l=jt.UZERO;a=a.add(e.mul(s)),v=v.add(a.shru(32)),a=a.and(i),v=v.add(r.mul(s)),d=d.add(v.shru(32)),v=(v=v.and(i)).add(e.mul(f)),d=d.add(v.shru(32)),v=v.and(i),d=d.add(o.mul(s)),l=l.add(d.shru(32)),d=(d=d.and(i)).add(r.mul(f)),l=l.add(d.shru(32)),d=(d=d.and(i)).add(e.mul(h)),l=l.add(d.shru(32)),d=d.and(i),l=l.add(u.mul(s)).add(o.mul(f)).add(r.mul(h)).add(e.mul(c)).and(i);var w=jt.fromBits(a.getLowBitsUnsigned(),v.getLowBitsUnsigned(),!0),b=jt.fromBits(d.getLowBitsUnsigned(),l.getLowBitsUnsigned(),!0);return t.Np(w,b,this.xp())},n.$p=function(n){var i,e,r=n;if(r.Fp())throw new RangeError("division by zero");if(this.Fp())return this.xp()?[t.Pp,t.Pp]:[t.Op,t.Op];if(this.xp()){if(r.xp()||(r=r.Hp()),r.zp(this))return[t.Pp,this];if(r.zp(this.Kp(1)))return[e=t.ib,i=this.Tp(r)];e=t.Pp}else{if(this.np(t.Lp)){if(r.np(t.Zp)||r.np(t.eb))return[t.Lp,t.Op];if(r.np(t.Lp))return[t.Zp,t.Op];var o=this.jp(1).sb(r).Qp(1);return o.np(t.Op)?e=r.bp()?t.Zp:t.eb:(i=this.Tp(r.Jp(o)),e=o.wy(i.sb(r))),[e,i=this.Tp(r.Jp(e))]}if(r.np(t.Lp))return this.xp()?[t.Pp,this]:[t.Op,this];if(this.bp()){if(r.bp())return this.Ap().$p(r.Ap());var u=this.Ap().$p(r);return e=u[0],i=u[1],[e.Ap(),i.Ap()]}if(r.bp()){var s=this.$p(r.Ap());return e=s[0],i=s[1],[e.Ap(),i.Ap()]}e=t.Op}for(i=this;i.qp(r);){for(var f=a.max(1,a.floor(i.dp()/r.dp())),h=a.ceil(a.log(f)/a.LN2),c=h<=48?1:a.pow(2,h-48),v=t.Cp(f),d=v.Jp(r);d.bp()||d.zp(i);)f-=c,d=(v=t.Cp(f,this.xp())).Jp(r);v.Fp()&&(v=t.Zp),e=e.wy(v),i=i.Tp(d)}return[e,i]},n.sb=function(t){return this.$p(t)[0]},n.ub=function(t){return this.$p(t)[1]},n.toString=function(n){var i=n||10;if(i<2||i>36)throw new RangeError("radix");if(this.Fp())return"0";if(this.bp()){if(this.np(t.Lp)){var e=t.Cp(i),r=this.sb(e),o=r.Jp(e).Tp(this);return r.toString(i)+o.Xp().toString(i)}return"-"+this.Ap().toString(i)}for(var u=t.Cp(a.pow(i,6),this.xp()),s=this,f="";;){var h=s.sb(u),c=(s.Tp(h.Jp(u)).Xp()>>>0).toString(i);if((s=h).Fp())return c+f;for(;c.length<6;)c="0"+c;f=String(c)+f}},t}();ln.Op=ln.Dp(jt.ZERO),ln.Pp=ln.Dp(jt.UZERO),ln.Zp=ln.Dp(jt.ONE),ln.ib=ln.Dp(jt.UONE),ln.eb=ln.Dp(jt.NEG_ONE),ln.Mp=ln.Np(jt.NEG_ONE,jt.MAX_VALUE,!1),ln.Bp=ln.Np(jt.MAX_UNSIGNED_VALUE,jt.MAX_UNSIGNED_VALUE,!0),ln.Lp=ln.Np(jt.ZERO,jt.MIN_VALUE,!1);var wn=function(){function t(t,n){void 0===n&&(n=1),this.ob=void 0,this.hb=void 0,this.ob=t,this.hb=n}t.cb=function(n){return new t(a.ceil(n.ob),n.hb)},t.fb=function(n){return new t(a.floor(n.ob),n.hb)},t.vb=function(t,n){return t.gp(n)?t:n},t._b=function(t,n){return t.mp(n)?t:n};var n=t.prototype;return n.wy=function(n){return this.hb>=n.hb?new t(this.ob+n.gb(this.hb).ob,this.hb):new t(this.gb(n.hb).ob+n.ob,n.hb)},n.lp=function(t){return t.yp(this)},n.gp=function(t){return t.mp(this)},n.kp=function(n){return this.hb>=n.hb?new t(a.abs(this.ob-n.gb(this.hb).ob),this.hb):n.kp(this)},n.wp=function(t,n){return this.kp(t).mp(n)},n._p=function(t){return i=t,(n=this).hb>=i.hb?ft(n.ob,i.gb(n.hb).ob):ft(n.gb(i.hb).ob,i.ob);var n,i},n.np=function(t){return 0===this._p(t)},n.yp=function(t){return this._p(t)<0},n.mp=function(t){return this._p(t)<=0},n.gb=function(n){return new t(this.ob*(n/this.hb),n)},n.Tp=function(n){return this.hb>=n.hb?new t(this.ob-n.gb(this.hb).ob,this.hb):new t(this.gb(n.hb).ob-n.ob,n.hb)},n.wb=function(n){return new t(this.ob*n,this.hb)},mt(t,[{key:"Ep",get:function(){return!isFinite(this.ob)}},{key:"mb",get:function(){return this.ob/this.hb}}]),t}();wn.kb=new wn(1/6,1),wn.Op=new wn(0),wn.yb=new wn(1/0),wn.pb=1e6;var bn=function(t){function n(n,i){var e;return(e=t.call(this)||this).Ti=void 0,e.hb=void 0,e.Ti=n.toSigned(),e.hb=i>>>0,e}Mt(n,t),n.bb=function(t,i){return void 0===i&&(i=1e6),n.Cp(t*i,i)},n.Cp=function(t,i){return l(t)?n.Ab:t===1/0?n.Tb:t===-1/0?n.Sb:new n(jt.fromNumber(t),i)},n.Dp=function(t,i){return new n(t,i)},n.Eb=function(t){return n.bb(t.mb,1e6)},n.Ib=function(t){return new n(jt.fromNumber(t.getTime()),1e3)},n.vb=function(t,n){return t.gp(n)?t:n},n._b=function(t,n){return t.mp(n)?t:n},n.Rb=function(t,i,e){return n.vb(i,n._b(e,t))};var i=n.prototype;return i.bp=function(){return this.Ti.isNegative()},i.Fp=function(){return 0!==this.hb&&this.Ti.isZero()},i.Ep=function(){return 0===this.hb&&!this.Ti.isZero()},i.Sp=function(){return 0===this.hb&&this.Ti.isZero()},i.dp=function(){if(0===this.hb)return this.Ti.isZero()?NaN:this.Ti.isNegative()?-1/0:1/0;var t=this.Ti.divide(this.hb),n=this.Ti.subtract(t.multiply(this.hb));return t.toNumber()+n.toNumber()/this.hb},i.Vp=function(){if(0===this.hb)throw new f("Failed to convert timestamp");return this.Ti},i.Nb=function(){return new Date(0===this.hb?NaN:this.gb(1e3).Ti.toNumber())},i.Db=function(){return new wn(0===this.hb?this.dp():this.Ti.toNumber(),this.hb)},i.gb=function(t,i){void 0===i&&(i=pn.Cb);var e=this.hb;if(e===t)return this;if(0===e)return this;var r=st(e,t);return new n(function(t,n,i){var e=t.$p(n),r=e[0],o=e[1];if(o.Fp())return r;if(i===pn.Cb)return o.bp()?r.Tp(ln.Zp):r;if(i===pn.Pb)return o.bp()?r:r.wy(ln.Zp);var u=o.Jp(ln.Cp(2));return u.bp()?u.Ap().yp(n)?r:r.Tp(ln.Zp):u.yp(n)?r:r.wy(ln.Zp)}(ln.Dp(this.Ti).Jp(ln.Cp(t/r)),ln.Cp(e/r),i).Vp(),t)},i._p=function(t){if(this===t)return rt.Rs;if(0===this.hb||0===t.hb)return Wt(this,t);if(this.Fp())return t.Fp()?rt.Rs:t.bp()?rt.Ns:rt.Ds;if(t.Fp())return this.bp()?rt.Ds:rt.Ns;var n=a.min(this.hb,t.hb),i=this.gb(n,pn.Ob).Ti,e=t.gb(n,pn.Ob).Ti;return i.compare(e)},i.Ap=function(){return 0===this.hb?gn(this):new n(this.Ti.negate(),this.hb)},i.wy=function(t){if(0===this.hb||0===t.hb)return mn(this,t);if(this.Fp())return t;if(t.Fp())return this;var i=a.max(this.hb,t.hb),e=this.gb(i,pn.Ob),r=t.gb(i,pn.Ob);return new n(e.Ti.add(r.Ti),i)},i.Jp=function(t){if(this.Sp()||l(t))return n.Ab;if(this.Ep()||!isFinite(t)){if(this.Fp()||0===t)return n.Ab;var i=this.bp()?n.Sb:n.Tb;return t<0?i.Ap():i}return this.Fp()?this:new n(0===t?jt.ZERO:this.Ti.multiply(t),this.hb)},i.sb=function(t){if(this.Sp()||l(t))return n.Ab;if(this.Ep())return isFinite(t)?0===t?1/t<0?this.Ap():this:t<0?this.Ap():this:n.Ab;if(!isFinite(t))return new n(jt.ZERO,this.hb);if(this.Fp())return 0===t?n.Ab:new n(jt.ZERO,this.hb);if(0===t){var i=this.bp()?n.Sb:n.Tb;return 1/t<0?i.Ap():i}return new n(this.Ti.divide(t),this.hb)},i.Bb=function(){return[this.Ti.low,this.Ti.high,this.hb]},n}(zt);function gn(t){return t.Sp()?t:t.bp()?bn.Tb:bn.Sb}function mn(t,n){return t.Sp()||n.Sp()?bn.Ab:t.Ep()&&n.Ep()?t.bp()===n.bp()?t:bn.Ab:t.Ep()?t:n}bn.Op=new bn(jt.ZERO,1e6),bn.Ab=new bn(jt.ZERO,0),bn.Tb=new bn(jt.ONE,0),bn.Sb=new bn(jt.NEG_ONE,0);var pn,yn=function(t){function n(n,i){var e;return(e=t.call(this)||this).Ti=void 0,e.hb=void 0,e.Ti=BigInt.asIntN(64,n),e.hb=i>>>0,e}Mt(n,t),n.bb=function(t,i){return void 0===i&&(i=1e6),n.Cp(t*i,i)},n.Cp=function(t,i){return l(t)?n.Ab:t===1/0?n.Tb:t===-1/0?n.Sb:new n(BigInt(a.floor(t)),i)},n.Dp=function(t,i){return new n(BigInt(t.high)<<BigInt(32)|BigInt(t.low>>>0),i)},n.Eb=function(t){return n.bb(t.mb,1e6)},n.Ib=function(t){return n.Cp(t.getTime(),1e3)},n.vb=function(t,n){return t.gp(n)?t:n},n._b=function(t,n){return t.mp(n)?t:n},n.Rb=function(t,i,e){return n.vb(i,n._b(e,t))};var i=n.prototype;return i.bp=function(){return this.Ti<BigInt(0)},i.Fp=function(){return 0!==this.hb&&this.Ti===BigInt(0)},i.Ep=function(){return 0===this.hb&&this.Ti!==BigInt(0)},i.Sp=function(){return 0===this.hb&&this.Ti===BigInt(0)},i.dp=function(){if(0===this.hb)return this.Ti===BigInt(0)?NaN:this.Ti<BigInt(0)?-1/0:1/0;var t=this.Ti/BigInt(this.hb),n=this.Ti-t*BigInt(this.hb);return Number(t)+Number(n)/this.hb},i.Vp=function(){if(0===this.hb)throw new f("Failed to convert timestamp");return this.Lb()},i.Lb=function(){var t=this.Ti&BigInt(4294967295),n=this.Ti>>BigInt(32)&BigInt(4294967295);return jt.fromBits(Number(t),Number(n))},i.Nb=function(){return new Date(0===this.hb?NaN:Number(this.gb(1e3).Ti))},i.Db=function(){return new wn(0===this.hb?this.dp():Number(this.Ti),this.hb)},i.gb=function(t,i){void 0===i&&(i=pn.Cb);var e=this.hb;if(e===t)return this;if(0===e)return this;var r=st(e,t);return new n(function(t,n,i){var e=t/n,r=t-e*n;if(r===BigInt(0))return e;if(i===pn.Cb)return r<BigInt(0)?e-BigInt(1):e;if(i===pn.Pb)return r<BigInt(0)?e:e+BigInt(1);var o=r*BigInt(2);return o<BigInt(0)?-o<n?e:e-BigInt(1):o<n?e:e+BigInt(1)}(this.Ti*BigInt(t/r),BigInt(e/r),i),t)},i._p=function(t){if(this===t)return rt.Rs;if(0===this.hb||0===t.hb)return Wt(this,t);if(this.Fp())return t.Fp()?rt.Rs:t.bp()?rt.Ns:rt.Ds;if(t.Fp())return this.bp()?rt.Ds:rt.Ns;var n=a.min(this.hb,t.hb),i=this.gb(n,pn.Ob).Ti,e=t.gb(n,pn.Ob).Ti;return i>e?rt.Ns:i<e?rt.Ds:rt.Rs},i.Ap=function(){return 0===this.hb?_n(this):new n(-this.Ti,this.hb)},i.wy=function(t){if(0===this.hb||0===t.hb)return Sn(this,t);if(this.Fp())return t;if(t.Fp())return this;var i=a.max(this.hb,t.hb),e=this.gb(i,pn.Ob),r=t.gb(i,pn.Ob);return new n(e.Ti+r.Ti,i)},i.Jp=function(t){if(this.Sp()||l(t))return n.Ab;if(this.Ep()||!isFinite(t)){if(this.Fp()||0===t)return n.Ab;var i=this.bp()?n.Sb:n.Tb;return t<0?i.Ap():i}return this.Fp()?this:new n(0===t?BigInt(0):this.Ti*BigInt(t),this.hb)},i.sb=function(t){if(this.Sp()||l(t))return n.Ab;if(this.Ep())return isFinite(t)?0===t?1/t<0?this.Ap():this:t<0?this.Ap():this:n.Ab;if(!isFinite(t))return new n(BigInt(0),this.hb);if(this.Fp())return 0===t?n.Ab:new n(BigInt(0),this.hb);if(0===t){var i=this.bp()?n.Sb:n.Tb;return 1/t<0?i.Ap():i}return new n(this.Ti/BigInt(t),this.hb)},i.Bb=function(){var t=this.Lb();return[t.low,t.high,this.hb]},mt(n,null,[{key:"Op",get:function(){return n.Mb||(n.Mb=new n(BigInt(0),1e6)),n.Mb}},{key:"Ab",get:function(){return n.xb||(n.xb=new n(BigInt(0),0)),n.xb}},{key:"Tb",get:function(){return n.Fb||(n.Fb=new n(BigInt(1),0)),n.Fb}},{key:"Sb",get:function(){return n.Ub||(n.Ub=new n(BigInt(-1),0)),n.Ub}}]),n}(zt);function _n(t){return t.Sp()?t:t.bp()?yn.Tb:yn.Sb}function Sn(t,n){return t.Sp()||n.Sp()?yn.Ab:t.Ep()&&n.Ep()?t.bp()===n.bp()?t:yn.Ab:t.Ep()?t:n}yn.Mb=void 0,yn.xb=void 0,yn.Fb=void 0,yn.Ub=void 0,function(t){t[t.Cb=0]="Cb",t[t.Pb=1]="Pb",t[t.Ob=2]="Ob"}(pn||(pn={}));var In=function(){try{return"function"==typeof BigInt&&"bigint"==typeof BigInt(0)}catch(t){return!1}}()?yn:bn;function Tn(t){return In.Dp(jt.fromBits(t[0],t[1],!1),t[2])}function En(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Rn=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];f.apply(this,n)};(Rn.prototype=c.create(f.prototype)).constructor=Rn;var kn,Nn=function(t){function n(n,i){var e;return(e=t.call(this)||this).cause=void 0,e.message=n||"Unknown error",e.cause=i,f.captureStackTrace&&f.captureStackTrace(En(e),e.constructor),e}return Mt(n,t),mt(n,[{key:"name",get:function(){return"BaseError"}}]),n}(Rn),On=function(){function t(){this.Cs=!1,this.Ps=!1,this.Os=[],this.Bs=[]}var n=t.prototype;return n.Ls=function(){if(!this.Cs&&!this.Ps){this.Cs=!0;for(var t=0,n=this.Os.slice();t<n.length;t++){(0,n[t])()}this.Ms()}},n.Ms=function(){if(!this.Ps){this.Ps=!0;for(var t=0,n=this.Bs.slice();t<n.length;t++){(0,n[t])()}vt(this.Os),vt(this.Bs)}},n.xs=function(t){this.Ps||this.Os.push(t)},n.Fs=function(t){this.Ps||ct(this.Os,t)},n.Us=function(t){this.Ps||this.Bs.push(t)},n.Hs=function(t){this.Ps||ct(this.Bs,t)},t}(),Pn=function(){function t(){this.Vs=new On}var n=t.prototype;return n.Xs=function(){this.Vs.Ls()},n.Ms=function(){this.Vs.Ms()},n.zs=function(t){var n=this.Vs;if(!n.Cs)if(t.Cs)n.Ls();else if(!n.Ps&&!t.Ps){var i=function(){e(),n.Ls()},e=function e(){t.Fs(i),t.Hs(e),n.Fs(i),n.Hs(e)};t.xs(i),t.Us(e),n.xs(i),n.Us(e)}},n.qs=function(){var n=new t,i=new t,e=n.Ws,r=i.Ws,o=this.Vs,u=function(){e.Cs&&r.Ps||r.Cs&&e.Ps?o.Ls():e.Ps&&r.Ps&&o.Ms()};e.xs(u),r.xs(u),e.Us(u),r.Us(u),n.zs(o),i.zs(o);return o.Us(function(){e.Fs(u),r.Fs(u),e.Hs(u),r.Hs(u)}),[n,i]},mt(t,[{key:"Ws",get:function(){return this.Vs}}]),t}(),An=function(t){function n(n,i){return t.call(this,n||"Aborted",i)||this}return Mt(n,t),mt(n,[{key:"name",get:function(){return"AbortError"}}]),n}(Nn);function Dn(t){return t instanceof f&&"AbortError"===t.name}function xn(t,n){return t.then(function(t){return n.Ms(),t},function(t){throw n.Ms(),t})}j.resolve(),function(t){t.DZ="HELLO",t.CZ="HI_THERE",t.PZ="INITIALIZE",t.OZ="APPEND_INIT",t.BZ="APPEND_DATA",t.LZ="ACK",t.MZ="REMOVE",t.xZ="DESTROY_SESSION"}(kn||(kn={}));var Cn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Bn=16383;function Fn(t,n,i){for(var e,r,o,u=[],s=n;s<i;s+=3)u.push((e=t[s],r=t[s+1],o=t[s+2],Cn[e>>2]+Cn[(3&e)<<4|r>>4]+Cn[(15&r)<<2|o>>6]+Cn[63&o]));return u.join("")}var Ln=function(){function t(t){void 0===t&&(t=0),this.Lu=t}var n=t.prototype;return n.Bu=function(t){this.Lu+=t},n.Mu=function(t){this.Lu=t},n.xu=function(){return new t(this.Ou)},mt(t,[{key:"Ou",get:function(){return this.Lu}}]),t}();function Un(t,n){return null!=t&&t.substr(0,n.length)===n}var Mn=16384;function zn(t){var n=t.length;if(n<=Mn)return String.fromCharCode.apply(String,t);for(var i=[],e=0;e<n;e+=Mn)i.push(String.fromCharCode.apply(String,t.slice(e,e+Mn)));return i.join("")}function Wn(t){return function(t){for(var n=[],i=0;i<t.length;i++){var e=t[i];e>65535&&(e-=65536,n.push(e>>>10&1023|55296),e=56320|1023&e),n.push(e)}return zn(n)}(t)}function qn(t){if(t>=55296&&t<=57343)throw new f("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function jn(t,n){return t>>n&63|128}function Vn(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(qn(t),n.push(t>>12&15|224),n.push(jn(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(jn(t,12)),n.push(jn(t,6))),n.push(63&t|128)):n.push(t)}function Hn(t,n){if(n.Ou>=t.length)throw new f("Invalid byte index");var i=255&t[n.Ou];if(n.Bu(1),128==(192&i))return 63&i;throw new f("Invalid continuation byte")}function Xn(t,n){var i=n.Ou;if(i>t.length)throw new f("Invalid byte index");if(i===t.length)return!1;var e=255&t[i];if(n.Bu(1),0==(128&e))return e;if(192==(224&e)){var r=(31&e)<<6|Hn(t,n);if(r>=128)return r;throw new f("Invalid continuation byte")}if(224==(240&e)){var o=(15&e)<<12|Hn(t,n)<<6|Hn(t,n);if(o>=2048)return qn(o),o;throw new f("Invalid continuation byte")}if(240==(248&e)){var u=(7&e)<<18|Hn(t,n)<<12|Hn(t,n)<<6|Hn(t,n);if(u>=65536&&u<=1114111)return u}throw new f("Invalid UTF-8 detected")}var Gn=65279;function Yn(t,n,i){void 0===i&&(i=!1);var e=t.getUint16(n.Ou,i);return n.Bu(2),e}function Kn(t,n,i,e){void 0===e&&(e=!1),t.setUint16(n.Ou,i,e),n.Bu(2)}function $n(t,n){return void 0===n&&(n=!1),function(t,n,i,e){for(var r=[];n.Ou+2<=t.byteLength;){var o=Yn(t,n,i);if(e&&!o)break;r.push(o)}return zn(r)}(ti(t),new ri,n,!1)}function Jn(t,n){void 0===n&&(n=!1);var i=new w(2*t.length);return function(t,n,i,e){void 0===e&&(e=!1);for(var r=i.length,o=0;o<r;o+=1)Kn(t,n,i.charCodeAt(o),e)}(ti(i),new ri,t,n),i}function Zn(t){return Wn(function(t,n){var i,e=[],r=new ri;if(!n){if(!1===(i=Xn(t,r)))return e;i===Gn||e.push(i)}for(;!1!==(i=Xn(t,r));)e.push(i);return e}(ni(t)))}function Qn(t){return new w(function(t){for(var n=[],i=0;i<t.length;i++)Vn(t[i],n);return n}(function(t){for(var n=[],i=0,e=t.length;i<e;){var r=t.charCodeAt(i++);if(r>=55296&&r<=56319&&i<e){var o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&r)<<10)+(1023&o)+65536):(n.push(r),i--)}else n.push(r)}return n}(t)))}function ti(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function ni(t){return new w(t.buffer,t.byteOffset,t.byteLength)}function ii(t){return t instanceof ArrayBuffer?new w(t):ni(t)}function ei(t){if(t.slice)return t.slice(0);var n=new w(t.byteLength);return n.set(t,0),n}var ri=function(){function t(t){void 0===t&&(t=0),this.Lu=t}var n=t.prototype;return n.Bu=function(t){this.Lu+=t},n.Mu=function(t){this.Lu=t},n.xu=function(){return new t(this.Ou)},n.Hu=function(){return new Ln(this.Ou<<3)},mt(t,[{key:"Ou",get:function(){return this.Lu}}]),t}(),oi=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"],ui=ArrayBuffer.isView||function(t){return t&&at(oi,nt.call(t))};function si(t){var n=t.reduce(function(t,n){return t+n.byteLength},0);return function(t,n){for(var i=new w(n),e=0,r=0;r<t.length;r++){var o=t[r];i.set(o,e),e+=o.byteLength}return i}(t,n)}function fi(t){return function(t){for(var n=t.length,i=n%3,e=[],r=n-i,o=0;o<r;o+=Bn)e.push(Fn(t,o,a.min(r,o+Bn)));if(1===i){var u=t[n-1];e.push(Cn[u>>2]+Cn[(3&u)<<4]+"==")}else if(2===i){var s=t[n-2],f=t[n-1];e.push(Cn[s>>2]+Cn[(3&s)<<4|f>>4]+Cn[(15&f)<<2]+"=")}return e.join("")}(new w(t))}function hi(t){return t&&"function"!=typeof t?t.slice():t}function ci(t,n,i){if(i)if("function"==typeof i)i.call(t,n);else for(var e=0;e<i.length;e++){i[e].call(t,n)}}var ai=function(){function t(t){var n=this;this.Gs=pt(),this.Ys=void 0,this.Qs=void 0,this.js=function(t){n.Ks(t)},this.Qs=t||this}var n=t.prototype;return n.Zs=function(t,n){if("function"==typeof n)if("string"==typeof t)this.Js(t,n);else for(var i=0;i<t.length;i++){var e=t[i];this.Js(e,n)}},n.Js=function(t,n){var i=this.Gs[t];i?"function"==typeof i?this.Gs[t]=[i,n]:i.push(n):this.Gs[t]=n},n.$s=function(t){if("function"==typeof t){var n=this.Ys;n?"function"==typeof n?this.Ys=[n,t]:n.push(t):this.Ys=t}},n.tu=function(){this.Gs=pt(),this.Ys=void 0},n.Ks=function(t){var n=hi(this.Gs[t.type]),i=hi(this.Ys);ci(this.Qs,t,n),ci(this.Qs,t,i)},n.nu=function(t,n){if("function"==typeof n)if("string"==typeof t)this.uu(t,n);else for(var i=0;i<t.length;i++){var e=t[i];this.uu(e,n)}},n.uu=function(t,n){var i=this.Gs[t];i&&("function"==typeof i?i===n&&(this.Gs[t]=void 0):ct(i,n))},n.ou=function(t){if("string"==typeof t)this.Gs[t]=void 0;else for(var n=0;n<t.length;n++){var i=t[n];this.Gs[i]=void 0}},n.au=function(t){var n=this.Ys;n&&("function"==typeof n?n===t&&(this.Ys=void 0):ct(n,t))},n.fu=function(t,n){var i=this;return new j(function(e,r){if(n&&n.Cs)return r(new An);var o=function(t){s(),e(t)},u=function(){s(),r(new An)},s=function(){i.nu(t,o),n&&n.Fs(u)};i.Zs(t,o),n&&n.xs(u)})},t}(),vi=function(t,n){void 0===n&&(n=new Date),this.type=t,this.date=n},di=function(t){function n(n){var i;return(i=t.call(this,"append")||this).Xi=void 0,i.Xi=n,i}return Mt(n,t),n}(vi),li=function(t){function n(n){var i;return(i=t.call(this)||this).Xw=void 0,i.Uft=0,i.Gi=new w(0),i._o=!1,i.A=!1,i.D=void 0,i.Xw=n,i}Mt(n,t);var i=n.prototype;return i.Tz=function(t,n){this.C&&0===this.Gi.length&&(this.Gi=this.D.slice()),this.Uft+=n.dp(),this.Gi=si([this.Gi,t]),this.Ks(new di(t))},i.Ga=function(){this.$a||(this.Ks(new vi("close")),this._o=!0)},mt(n,[{key:"Bm",get:function(){return this.Uft}},{key:"Xi",get:function(){return this.Gi}},{key:"$a",get:function(){return this._o}},{key:"C",get:function(){return this.A},set:function(t){this.A=t}},{key:"B",get:function(){return this.D},set:function(t){this.D=t}}]),n}(ai),wi=function(){function t(t){this.L=!1,this.W=void 0,this.H=void 0,this.DEFAULT_SEGMENT_DURATION_IN_SECONDS=1.1,this.Hg="sync-seg-"+lt(),this.X=this.DEFAULT_SEGMENT_DURATION_IN_SECONDS,this.tt=t;for(var n=0,i=this.tt;n<i.length;n++){var e=i[n];if(e.match(/video/))this.W=new li(this.it(e));else{if(!e.match(/audio/))throw new f("Unsupported MIME type.");this.H=new li(this.it(e))}}}var n=t.prototype;return n.it=function(t){for(var n=0,i=this.tt;n<i.length;n++){if(i[n]===t)return this.X}},n.Ga=function(){this.W&&this.W.Ga(),this.H&&this.H.Ga()},mt(t,[{key:"et",get:function(){return this.L},set:function(t){this.L=t}},{key:"rt",get:function(){var t,n;return Boolean((null==(t=this.W)?void 0:t.C)||(null==(n=this.H)?void 0:n.C))}}]),t}(),bi=function(t){function n(n){var i;return(i=t.call(this,"remove")||this).Fy=void 0,i.Fy=n,i}return Mt(n,t),n}(vi),gi=function(t){function n(n){var i;return(i=t.call(this)||this).st=[],i.ht=void 0,i.pt=[],i.tn=yt(),i.nn=yt(),i.en=0,i.rn=0,i.tt=n,i.ht=new wi(i.tt),i.ht.H&&(i.ht.H.C=!0),i.ht.W&&(i.ht.W.C=!0),i.pt.push(new wi(i.tt)),i}Mt(n,t);var i=n.prototype;return i.sn=function(){var t=[].concat(this.st,[this.ht],this.pt);return this.st.length=0,t},i.Tz=function(t){this.an(t),this.ln(t),this.bn(t)},i.Iz=function(t){this.an(t)},i.Ka=function(t){this.an(t),this.bn(t)},i.Ms=function(){this.ht.Ga(),this.pt.forEach(function(t){return t.Ga()}),this.st.length=0},i.ln=function(t){var n=Tn(t.startPts),i=Tn(t.totalDuration);this.nn.set(t.mimeType,n.wy(i))},i.gn=function(){this.ht.Ga(),this.st.push(this.ht);var t=this.pt.shift(),n=this.mn();t?(this.ht=t,this.pt.push(n)):this.ht=n},i.mn=function(){var t=new wi(this.tt);return t.H&&(t.H.B=this.ht.H.B),t.W&&(t.W.B=this.ht.W.B),t},i.kn=function(t){var i=!this.ht.H||0===this.ht.H.Bm,e=!this.ht.W||0===this.ht.W.Bm,r=this.ht.H&&this.ht.H.C,o=this.ht.W&&this.ht.W.C,u=e&&(i&&!this.ht.et||r),s=i&&(e&&!this.ht.et||o);("audio"===n.ti(t)&&!s||"video"===n.ti(t)&&!u)&&(this.gn(),this.gn())},i.an=function(t){var n=t.mimeType,i=t.kind,e=this.tn.get(n);void 0===e&&(i!==kn.OZ&&i!==kn.BZ||(e=[],this.tn.set(n,e))),void 0!==e&&e.push(t)},i.bn=function(t){for(var n=this.ii(t),i=0;i<n.length;i++){var e=n[i];switch(e.kind){case kn.OZ:this.ui(e),this.en=0,this.rn=0;break;case kn.MZ:this.si(e);break;case kn.BZ:this.fi(e)}}},i.ui=function(t){var n=t.mimeType,i=t.segment;this.kn(n),n.match(/video/)?(this.ht.W.B=i,this.pt.forEach(function(t){t.W.B=i})):(this.ht.H.B=i,this.pt.forEach(function(t){t.H.B=i})),this.ht.H&&(this.ht.H.C=!0),this.ht.W&&(this.ht.W.C=!0)},i.fi=function(t){var n=t.mimeType.match(/audio/),i=Tn(t.totalDuration);if(n?this.ht.H.Tz(t.segment,i):this.ht.W.Tz(t.segment,i),n||1===this.tt.length){this.en+=i.dp();var e=this.ht.it(t.mimeType);this.en>=this.rn+e&&(this.rn+=e,this.gn())}},i.si=function(t){this.nn.set(t.mimeType,void 0),this.kn(t.mimeType),this.ht.H&&(this.ht.H.C=!0),this.ht.W&&(this.ht.W.C=!0),this.st.length=0,this.Ks(new bi(Tn(t.endTime)))},i.ii=function(t){var n=this;if(t.kind===kn.MZ)return this.hi(t);var i=[];return this.tn.forEach(function(t){if(t&&t.length>0){var e=ht(t,function(t){return t.kind===kn.MZ});-1===e&&(e=t.length);for(var r=t.slice(0,e),o=0;o<r.length;o++){var u=r[o];if(!at(i,u)){var s=n.hi(u);if(s.length>0)i.push.apply(i,s);else if(u.kind===kn.BZ)break}}}}),i},i.hi=function(t){for(var i,e=this.tn.get(t.mimeType),r=0,o=this.tt;r<o.length;r++){var u=o[r];if(u!==t.mimeType){i=u;break}}if(!i)return e.splice(0,e.indexOf(t)+1);if(t.kind===kn.OZ)return[];var s=this.nn.get(i);if(void 0===s)return[];if(t.kind===kn.MZ){var f=this.vi(i);if(f.length>0){var h=e.splice(0,e.indexOf(t));return e.splice(0,1),[].concat(h,f,[t])}return[]}if(n.li(t,s)){var c=e.splice(0,e.indexOf(t));e.splice(0,1);var a=this.bi(t,c,i);return[].concat(c,a,[t])}return[]},i.bi=function(t,i,e){var r=this.tn.get(e);if(!r)return[];var o=Tn(t.startPts),u=Tn(t.totalDuration),s=o.wy(u),f=ht(r,function(t){return t.kind===kn.MZ}),h=f-1;-1===f&&(h=r.length-1);for(var c=h+1,a=0;a<=h&&c===h+1;a++){var v=r[a];v.kind!==kn.BZ||n.li(v,s)||(c=a)}var d=-1;return-1!==ht(i,function(t){return t.kind===kn.OZ})&&(d=ht(r,function(t){return t.kind===kn.OZ})),d>c&&(c=d+1),c>0?(r[c-1].kind===kn.OZ&&(c-=1),r.splice(0,c)):[]},i.vi=function(t){var n=this.tn.get(t);if(n){var i=ht(n,function(t){return t.kind===kn.MZ});if(i>=0)return n.splice(0,i+1)}return[]},n.li=function(t,n){var i=n,e=Tn(t.startPts);return i.gp(e)},i.mi=function(){var t="[MEDIABUFFER] endPTS: ";this.nn.forEach(function(i,e){t=t.concat(n.ti(e)+" = "+(null==i?void 0:i.dp())+" ")}),Z.yr(t)},i.pi=function(){var t=this;Z.yr("[MEDIABUFFER] unsyncedMessageMap:"),this.tn.forEach(function(i,e){void 0!==i&&t.yi(n.ti(e),i)})},i.yi=function(t,i){var e=t+": [";null==i||i.forEach(function(t){e=e.concat(" "+t.kind+"("+n.ti(t.mimeType)+")")}),e=e.concat(" ]"),Z.yr(e)},n.ti=function(t){return t.match(/audio/)?"audio":"video"},n}(ai);var mi=function(){function t(t,n,i){var e=this;this.ki=[],this.te=yt(),this.ie=0,this.Trt=void 0,this.ee=void 0,this.se=function(t){if(t.Fy.gp(In.bb(ot)))for(;e.ki.length>0;)e.he()},this.ce=n,this.ae=i,this.ee=[new Rt,new kt(8),new Nt(1),new Pt,new Ot(0)],this.Trt=t,this.Trt.Zs("remove",this.se)}var n=t.prototype;return n.Hnt=function(t,n){var i=this.te.get(t);if(i)if(n===wt.ll){var e=i.W;if(e)return e}else{var r=i.H;if(r)return r}throw new f(t+" segment not available!")},n.Ms=function(){this.ki.length=0,this.ce.JS=0,this.te.clear(),this.ie=0},n.eS=function(){return this.ve(),new Ft([].concat(this.ee,[this.ce,this.ae],this.ki))},n.ve=function(){for(var t=this.Trt.sn(),n=0;n<t.length;n++){var i=t[n];if(!this.te.has(i.Hg)){i.et=!0;var e=i.X;i.rt&&this.ki.push(new xt),this.te.set(i.Hg,i),this.ki.push(new Et(e,i.Hg)),this.ie+=e}}this.de()},n.de=function(){for(;this.ie>300;)this.he()},n.he=function(){var t=this.ki.shift();void 0!==t&&(t.vs===St.Jd?(this.be(t),this.ie-=t.T,this.ce.JS++):function(t){return t.vs===St.p}(t)&&this.ae.JS++)},n.be=function(t){this.te.delete(t.k)},t}(),pi=function(){function t(t){this.X0t=void 0,this.tr=void 0,this.nr=void 0,this.tt=t,this.X0t=new Lt,this.tr=new gi(this.tt);for(var n=0,i=this.tt;n<i.length;n++){var e=i[n];if(this.nr=new mi(this.tr,new Dt(0),new Ct(0)),e.match(/video/)){var r=new At("video/index.m3u8");this.X0t.P(r)}else{if(!e.match(/audio/))throw new f("Unsupported MIME type.");var o=new Bt("audio/index.m3u8");this.X0t.P(o)}}}var n=t.prototype;return n.er=function(t){if("master.m3u8"===t){if(this.X0t)return this.X0t.eS;throw new f("Master playlist not ready yet")}if(this.nr)return this.nr.eS();throw new f("Media playlist not ready yet")},n.Hnt=function(n){var i=n.split("/")[1];return this.nr.Hnt(i,t.ur(n))},n.Iz=function(t){this.tr.Iz(t)},n.Tz=function(t){this.tr.Tz(t)},n.Vet=function(t){this.tr.Ka(t)},n.Ms=function(){this.tr.Ms(),this.X0t.Ms(),this.nr&&this.nr.Ms()},t.ur=function(t){return t.match(/video/)?wt.ll:wt.dl},t}();var yi,_i=function(){function n(t,n){var i=this;this._it=void 0,this.yDt=function(t){var n,e,r;return Q.async(function(o){for(;;)switch(o.prev=o.next){case 0:n=t.data,o.t0=n.kind,o.next=o.t0===kn.PZ?4:o.t0===kn.OZ?7:o.t0===kn.BZ?9:o.t0===kn.MZ?11:13;break;case 4:return e=n.mediaBufferConfigs,i._it=new pi(e),o.abrupt("break",13);case 7:return i._it.Iz(n),o.abrupt("break",13);case 9:return i._it.Tz(n),o.abrupt("break",13);case 11:return i._it.Vet(n),o.abrupt("break",13);case 13:r={kind:kn.LZ},i.sr.postMessage(r);case 15:case"end":return o.stop()}},null,null,null,j)},this.sr=t,this.hr=n,this.sr.onmessage=this.yDt}var i=n.prototype;return i.cr=function(t){return this._it.er(t)},i.ar=function(n){if(this._it){if(n.match(/m3u8/)){var i=this.cr(n);return new Response(i.O(),{headers:{"Content-Type":"application/x-mpegurl; charset=utf-8"}})}var e={"Content-Type":n.match(/video/)?"video/mp4":"audio/mp4"},r=function(n){var i,e=function(t){i.enqueue(t.Xi)},r=function t(){i.close(),n.nu("append",e),n.nu("close",t)};return new t.ReadableStream({start:function(t){(i=t).enqueue(n.Xi),n.$a?i.close():(n.Zs("append",e),n.Zs("close",r))},cancel:function(){n.nu("append",e),n.nu("close",r),n.Ga()}})}(this.xnt(n));return new Response(r,{headers:e})}throw new f("Stream not active.")},i.xnt=function(t){return this._it.Hnt(t)},i.close=function(){this.sr.close(),this._it&&this._it.Ms()},n}(),Si=function(){function t(){var t=this;this.KG=yt(),this.YNt=void 0,this.yDt=function(n){var i=n.data;switch(i.kind){case kn.DZ:t.vr().catch(dt);var e=i.port,r=lt(),o=new _i(e,n.source.id);t.KG.set(r,o);e.addEventListener("message",function n(i){i.data.kind===kn.xZ&&(t.lr(r),e.removeEventListener("message",n))});var u={kind:kn.CZ,sessionId:r};e.postMessage(u)}},this.br=function(n){if(Un(n.request.url,bt)){var i=new URL(n.request.url).pathname.split("/"),e=i[1],r=i.slice(2).join("/");if(void 0!==e&&void 0!==r){var o=t.KG.get(e);if(o)try{var u=o.ar(r);n.respondWith(u)}catch(t){n.respondWith(j.resolve(new Response(void 0,{headers:{message:"Segment not found"},status:404,statusText:"Not Found"})))}else n.respondWith(j.resolve(new Response(void 0,{headers:{message:"Given session ["+e+"] not found"},status:404,statusText:"Not Found"})))}else n.respondWith(j.resolve(new Response(void 0,{headers:{message:"No session ["+e+"] or resource ["+r+"] provided"},status:404,statusText:"Not Found"})))}}}var n=t.prototype;return n.Lk=function(t){this.YNt=t,t.addEventListener("message",this.yDt),t.addEventListener("fetch",this.br)},n.lr=function(t){var n=this.KG.get(t);n&&n.close(),this.KG.delete(t)},n.vr=function(){var t,n,i=this;return Q.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.awrap(this.YNt.clients.matchAll());case 2:t=e.sent,n=t.map(function(t){return t.id}),this.KG.forEach(function(t,e){at(n,t.hr)||i.lr(e)});case 5:case"end":return e.stop()}},null,this,null,j)},t}();Si.mr=new Si,function(t){t.l="web",t.g="android",t.R="android-tv",t.N="ios",t.M="tvos",t.F="chromecast"}(yi||(yi={}));var Ii=e?e.userAgent:"",Ti=Ii.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Ei=Ii.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Ri=Ii.match(/Android ([0-9\.]+)/i),ki=Ii.match(/Windows NT ([0-9\.]+)/i),Ni=Ii.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),Oi=Ii.match(/Firefox\/([0-9\.]+)/i),Pi=Ii.match(/OPR\/(\d+\.\d+)/i),Ai=Ii.match(/Tizen ([0-9\.]+)/i),Di=Ii.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),xi=function(){function n(){this.U=Boolean("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch||e&&e.msMaxTouchPoints),this.V=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(Ii)||/(macintosh|mac(?=_powerpc)\s)/i.test(Ii),this.q=/Windows NT/i.test(Ii),this.G=ki?d(ki[1]):0,this.Y=/Android/i.test(Ii),this.j=Ri?d(Ri[1]):0,this.K=/windows phone (8|8\.1)/i.test(Ii),this.Z=/iPhone/i.test(Ii),this.J=/iPad/i.test(Ii),this.nt=this.V&&this.U&&!this.J,this.ut=/iPod/i.test(Ii),this.ot=/Mobile Safari/i.test(Ii),this.ct=/EOSSTB/i.test(Ii),this.ft=(this.Z||this.J||this.nt||this.ut)&&!this.K,this.vt=Di?d(Di[2]):0,this.dt=this.K||this.ft||this.Y||this.ot,this._t=/CriOS/i.test(Ii),this.wt=Boolean(t.chrome&&/google/i.test(e.vendor))||this._t,this.kt=this.wt&&/Edg\//i.test(e.userAgent),this.yt=Ei?v(Ei[1],10):0,this.bt=Boolean(t.chrome||/Chrome/i.test(Ii)||/CriOS/i.test(Ii)),this.At=Ti?v(Ti[1],10):0,this.Tt=/SMART-TV.*Tizen/i.test(Ii),this.St=Ai?d(Ai[1]):0,this.Et=/webos|web0s/i.test(Ii),this.It=/Edge\/\d+/i.test(Ii),this.Rt=/Trident/i.test(Ii),this.Nt=this.Rt&&!t.ActiveXObject&&"ActiveXObject"in t,this.Dt=/Vivaldi/i.test(Ii),this.Ct=/Firefox/i.test(Ii)&&!/Seamonkey/i.test(Ii),this.Pt=Oi?d(Oi[1]):0,this.Ot=/Safari/i.test(Ii)&&!/Chrome/i.test(Ii)&&!this.K&&!this.Tt,this.Bt=Ni?d(Ni[2]):0,this.Lt=Boolean(Pi),this.Mt=Pi?d(Pi[1]):0,this.xt=/CrKey/.test(Ii),this.Ft=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(Ii),this.Ut="web"===yi.R,this.Ht="web"===yi.g,this.Vt=this.Ht||this.Ut,this.Xt="web"===yi.N,this.zt="web"===yi.M,this.qt="web"===yi.F}return mt(n,[{key:"Wt",get:function(){return this.U}},{key:"Gt",get:function(){return this.V}},{key:"Yt",get:function(){return this.q}},{key:"Qt",get:function(){return this.G}},{key:"jt",get:function(){return this.Y}},{key:"Kt",get:function(){return this.j}},{key:"Zt",get:function(){return this.K}},{key:"Jt",get:function(){return this.Z}},{key:"$t",get:function(){return this.J}},{key:"in",get:function(){return this.nt}},{key:"un",get:function(){return this.ut}},{key:"hn",get:function(){return this.ft}},{key:"cn",get:function(){return this.vt}},{key:"fn",get:function(){return this.ct}},{key:"vn",get:function(){return this.ot}},{key:"dn",get:function(){return this.dt}},{key:"_n",get:function(){return this._t}},{key:"wn",get:function(){return this.wt}},{key:"yn",get:function(){return this.At}},{key:"pn",get:function(){return this.kt}},{key:"An",get:function(){return this.yt}},{key:"Tn",get:function(){return this.Tt}},{key:"Sn",get:function(){return this.St}},{key:"En",get:function(){return this.Et}},{key:"In",get:function(){return this.It}},{key:"Rn",get:function(){return this.Rt}},{key:"Nn",get:function(){return this.Nt}},{key:"Dn",get:function(){return this.Dt}},{key:"Cn",get:function(){return this.Ct}},{key:"Pn",get:function(){return this.Pt}},{key:"On",get:function(){return this.Ot}},{key:"Bn",get:function(){return this.Bt}},{key:"Ln",get:function(){return this.Lt}},{key:"Mn",get:function(){return this.Mt}},{key:"xn",get:function(){return this.xt}},{key:"Fn",get:function(){return this.Ft}},{key:"Un",get:function(){return!(!this.En&&!this.Tn)&&this.yn<=56}},{key:"Hn",get:function(){return this.Ut}},{key:"Vn",get:function(){return this.Ht}},{key:"Xn",get:function(){return this.Vt}},{key:"zn",get:function(){return this.Xt}},{key:"qn",get:function(){return this.zt}},{key:"Wn",get:function(){return this.qt}},{key:"Gn",get:function(){return this.bt}}]),n}();xi.Yn=new xi;var Ci=xi.Yn,Bi=!(Ci.Rn&&!Ci.Nn),Fi=t.console;function Li(t){if(et(t))try{return JSON.stringify(t)}catch(t){}return t}function Ui(t){return t.map(Li).join(" ")}function Mi(t){var n=Fi&&Fi[t];return n?n.bind&&Bi?n.bind(Fi):function(){for(var n=arguments.length,i=new Array(n),e=0;e<n;e++)i[e]=arguments[e];Fi[t](Ui(i))}:void 0}var zi,Wi=Mi("log")||dt,qi=Mi("warn")||Wi.bind(void 0,"WARNING:"),ji=Mi("error")||Wi.bind(void 0,"ERROR:"),Vi=(zi=Fi&&Fi.assert)?zi.bind&&Bi?zi.bind(Fi):function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),e=1;e<n;e++)i[e-1]=arguments[e];Fi.assert(t,Ui(i))}:function(t){if(!t){for(var n=arguments.length,i=new Array(n>1?n-1:0),e=1;e<n;e++)i[e-1]=arguments[e];ji.apply(void 0,["Assertion failed:"].concat(i))}};function Hi(){return Date.now()||(new Date).getTime()}var Xi;jt.fromNumber(ot),function(t){t[t.Jn=1]="Jn",t[t.ni=2]="ni",t[t.$n=3]="$n",t[t.ei=4]="ei",t[t.ri=9]="ri"}(Xi||(Xi={}));var Gi=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return Mt(n,t),n}(Nn),Yi=function(){function t(){}return t.prototype.oi=function(t){var n,i=new DOMParser;try{n=i.parseFromString(t,"text/xml")}catch(t){throw new Gi(t)}if(!n||n.getElementsByTagName("parsererror").length>0)throw new Gi;return new ne(n)},t}(),Ki=function(){function t(t){this.ai=void 0,this.ai=t}var n=t.prototype;return n.ci=function(t){return this.ai.isEqualNode(t.ai)},n.di=function(n){return new t(this.ai.cloneNode(n))},mt(t,[{key:"Zn",get:function(){return Xi.ni}},{key:"_i",get:function(){var t;return null!=(t=this.ai.localName)?t:re(this.ai.nodeName)}},{key:"gi",get:function(){return this.ai.nodeName}},{key:"wi",get:function(){var t;return null!=(t=this.ai.namespaceURI)?t:void 0}},{key:"Ai",get:function(){var t;return null!=(t=this.ai.prefix)?t:void 0}},{key:"Ti",get:function(){return this.ai.nodeValue}}]),t}(),$i=function(){function t(t){this.Si=void 0,this.Ei=void 0,this.Si=t}var n=t.prototype;return n.Ii=function(t){return this.Ri.filter(function(n){return ie(n)&&n.Ni===t})},n.Di=function(t,n){return this.Ri.filter(function(i){return ie(i)&&i._i===n&&i.wi===t})},n.Ci=function(t){this.Si.appendChild(t.Pi),this.Ei&&this.Ei.push(t)},n.ci=function(t){return this.Si.isEqualNode(t.Pi)},mt(t,[{key:"Ri",get:function(){return void 0===this.Ei&&(this.Ei=function(t){for(var n=[],i=0;i<t.length;i++){var e=ee(t.item(i));e&&n.push(e)}return n}(this.Si.childNodes)),this.Ei}},{key:"Oi",get:function(){return this.Ri.filter(ie)}},{key:"Pi",get:function(){return this.Si}}]),t}(),Ji=function(t){function n(n){return t.call(this,n)||this}Mt(n,t);var i=n.prototype;return i.Bi=function(t){if(this.Si.hasAttribute(t))return this.Si.getAttribute(t)},i.Li=function(t,n){if(this.Si.hasAttributeNS(t,n))return this.Si.getAttributeNS(t,n)},i.Mi=function(t){this.Si.removeAttribute(t)},i.xi=function(t,n){this.Si.removeAttributeNS(t,n)},i.Fi=function(t,n){this.Si.setAttribute(t,n)},i.Ui=function(t,n,i){this.Si.setAttributeNS(t,n,i)},i.di=function(t){return new n(this.Si.cloneNode(t))},mt(n,[{key:"Zn",get:function(){return Xi.Jn}},{key:"_i",get:function(){var t;return null!=(t=this.Si.localName)?t:re(this.Si.nodeName)}},{key:"wi",get:function(){var t;return null!=(t=this.Si.namespaceURI)?t:void 0}},{key:"Ai",get:function(){var t;return null!=(t=this.Si.prefix)?t:void 0}},{key:"Ni",get:function(){return this.Si.nodeName}},{key:"Hi",get:function(){return function(t){for(var n=[],i=0;i<t.length;i++)n.push(new Ki(t.item(i)));return n}(this.Si.attributes)}},{key:"Vi",get:function(){return this.Si.textContent}}]),n}($i),Zi=function(){function t(t){this.Si=void 0,this.Si=t}return t.prototype.ci=function(t){return this.Xi===t.Xi},mt(t,[{key:"Xi",get:function(){return this.Si.nodeValue}},{key:"Pi",get:function(){return this.Si}}]),t}(),Qi=function(t){function n(n){return t.call(this,n)||this}return Mt(n,t),n.prototype.di=function(t){return new n(this.Si.cloneNode(t))},mt(n,[{key:"Zn",get:function(){return Xi.$n}}]),n}(Zi),te=function(t){function n(n){return t.call(this,n)||this}return Mt(n,t),n.prototype.di=function(t){return new n(this.Si.cloneNode(t))},mt(n,[{key:"Zn",get:function(){return Xi.ei}}]),n}(Zi),ne=function(t){function n(n){return t.call(this,n)||this}return Mt(n,t),n.prototype.di=function(t){return new n(this.Si.cloneNode(t))},mt(n,[{key:"Zn",get:function(){return Xi.ri}},{key:"zi",get:function(){return new Ji(this.Si.documentElement)}}]),n}($i);function ie(t){return function(t){return t.Zn===Xi.Jn}(t)}function ee(t){switch(t.nodeType){case Xi.Jn:return new Ji(t);case Xi.$n:return new Qi(t);case Xi.ei:return new te(t)}}function re(t){var n=t.indexOf(":");return n<0?t:t.substr(n+1)}function oe(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),c.defineProperty(t,e.key,e)}}function ue(t,n){var i=function(t,n){var i=t.length;if(i<=1)return t;for(var e=new Array(i),r=1;r<i;r*=2){se(t,n,r,e);var o=t;t=e,e=o}return t}(t,n);return i!==t&&se(i,null,t.length,t),t}function se(t,n,i,e){var r,o,u,s,f,h=t.length,c=0,a=2*i;for(r=0;r<h;r+=a)for(u=(o=r+i)+i,o>h&&(o=h),u>h&&(u=h),s=r,f=o;;)if(s<o&&f<u)n(t[s],t[f])<=0?e[c++]=t[s++]:e[c++]=t[f++];else if(s<o)e[c++]=t[s++];else{if(!(f<u))break;e[c++]=t[f++]}}var fe=/[a-zA-Z]/,he=/[0-9]/,ce=/[0-9a-fA-F]/,ae=/^0x/i,ve=/^[0-9]+$/,de=/^[0-9a-fA-F]+$/,le=/^[0-7]+$/,we=c.prototype.toString,be=Array.isArray||function(t){return"[object Array]"===we.call(t)},ge="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function me(t){return be(t)?t:Array.from(t)}function pe(t){return t>=65&&t<=90}function ye(t){return pe(t)||function(t){return t>=97&&t<=122}(t)}function _e(t){return t>=48&&t<=57}function Se(t){return _e(t)||ye(t)}function Ie(t){return _e(t)||t>=65&&t<=70||t>=97&&t<=102}function Te(t){return pe(t)?t+32:t}function Ee(t){return _e(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function Re(t,n){return void 0===n&&(n=!1),0<=t&&t<=9?t+48:10<=t&&t<=15?t+(n?87:55):-1}var ke=a.min,Ne=String.fromCharCode,Oe=16384;function Pe(t){for(var n=t.length,i=[],e=0;e<n;e+=Oe){var r=ke(e+Oe,n);i.push(Ne.apply(null,t.slice(e,r)))}return i.join("")}var Ae=/[^\0-\x7E]/,De=/[\x2E\u3002\uFF0E\uFF61]/g,xe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ce=a.floor,Be=String.fromCharCode;function Fe(t){throw new RangeError(xe[t])}function Le(t){for(var n=[],i=0,e=t.length;i<e;){var r=t.charCodeAt(i++);if(r>=55296&&r<=56319&&i<e){var o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&r)<<10)+(1023&o)+65536):(n.push(r),i--)}else n.push(r)}return n}var Ue,Me,ze,We=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},qe=function(t,n,i){var e=0;for(t=i?Ce(t/700):t>>1,t+=Ce(t/n);t>455;e+=36)t=Ce(t/35);return Ce(e+36*t/(t+38))},je=function(t){return function(t,n){var i=t.split("@"),e="";i.length>1&&(e=i[0]+"@",t=i[1]);var r=function(t,n){for(var i=[],e=t.length;e--;)i[e]=n(t[e]);return i}((t=t.replace(De,".")).split("."),n).join(".");return e+r}(t,function(t){return Ae.test(t)?"xn--"+function(t){for(var n=[],i=(t=Le(t)).length,e=128,r=0,o=72,u=0,s=t;u<s.length;u++){var f=s[u];f<128&&n.push(Be(f))}var h=n.length,c=h;for(h&&n.push("-");c<i;){for(var a=2147483647,v=0,d=t;v<d.length;v++){var l=d[v];l>=e&&l<a&&(a=l)}var w=c+1;a-e>Ce((2147483647-r)/w)&&Fe("overflow"),r+=(a-e)*w,e=a;for(var b=0,g=t;b<g.length;b++){var m=g[b];if(m<e&&++r>2147483647&&Fe("overflow"),m==e){for(var p=r,y=36;;y+=36){var _=y<=o?1:y>=o+26?26:y-o;if(p<_)break;var S=p-_,I=36-_;n.push(Be(We(_+S%I,0))),p=Ce(S/I)}n.push(Be(We(p,0))),o=qe(r,w,c==h),r=0,++c}}++r,++e}return n.join("")}(t):t})};function Ve(t){for(var n=[],i=0;i<t.length;i++){var e=t[i];e>65535&&(e-=65536,n.push(e>>>10&1023|55296),e=56320|1023&e),n.push(e)}return Pe(n)}function He(t){if(t>=55296&&t<=57343)throw new f("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function Xe(t,n){return t>>n&63|128}function Ge(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(He(t),n.push(t>>12&15|224),n.push(Xe(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(Xe(t,12)),n.push(Xe(t,6))),n.push(63&t|128)):n.push(t)}function Ye(t){for(var n=[],i=0;i<t.length;i++){Ge(t[i],n)}return n}function Ke(){if(ze>=Me)throw new f("Invalid byte index");var t=255&Ue[ze];if(ze++,128==(192&t))return 63&t;throw new f("Invalid continuation byte")}function $e(){var t,n;if(ze>Me)throw new f("Invalid byte index");if(ze===Me)return!1;if(t=255&Ue[ze],ze++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|Ke())>=128)return n;throw new f("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|Ke()<<6|Ke())>=2048)return He(n),n;throw new f("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|Ke()<<12|Ke()<<6|Ke())>=65536&&n<=1114111)return n;throw new f("Invalid UTF-8 detected")}function Je(t){return[37,Re(t>>4),Re(15&t)]}function Ze(t){return function(t){return t>=0&&t<=31}(t)||t>126}function Qe(t){return Ze(t)||32===t||34===t||60===t||62===t||96===t}function tr(t){return Qe(t)||35===t||63===t||123===t||125===t}function nr(t){return tr(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function ir(t){return t<33||t>126||34===t||35===t||60===t||62===t}function er(t){return ir(t)||39===t}function rr(t,n){if(!n(t))return[t];for(var i=Ye([t]),e=[],r=0;r<i.length;r++){var o=i[r];e.push.apply(e,Je(o))}return e}function or(t,n){for(var i=[],e=0,r=Le(t);e<r.length;e++){var o=r[e];i.push.apply(i,rr(o,n))}return Ve(i)}function ur(t){return function(t){for(var n=[],i=t.length,e=0;e<i;e++){var r=t[e];if(37===r&&e+2<i&&Ie(t[e+1])&&Ie(t[e+2])){var o=Ee(t[e+1])<<4|Ee(t[e+2]);n.push(o),e+=2}else n.push(r)}return n}(Ye(t))}function sr(t){return Ve(function(t){Ue=t.slice(),Me=Ue.length,ze=0;for(var n,i=[];!1!==(n=$e());)i.push(n);return i}(ur(Le(t))))}function fr(t){var n,i,e,r,o=t.length,u=[0,0,0,0,0,0,0,0],s=0,f=null,c=0;if(c<o&&":"===t[c]){if(!(c+1<o&&":"===t[c+1]))throw new h;c+=2,f=s+=1}for(;c<o;){if(8===s)throw new h("Too many groups");if(":"!==t[c]){for(var a=0,d=0;d<4&&c<o&&ce.test(t[c]);)a=a<<4|v(t[c],16),c+=1,d+=1;if("."===t[c]){if(0===d)throw new h;if(c-=d,s>6)throw new h;for(var l=0;c<o;){var w=null;if(l>0){if(!("."===t[c]&&l<4))throw new h;c+=1}if(!he.test(t[c]))throw new h;for(;c<o&&he.test(t[c]);){var b=v(t[c],10);if(null===w)w=b;else{if(0===w)throw new h;if((w=10*w+b)>255)throw new h}c+=1}u[s]=u[s]<<8|w,2!==(l+=1)&&4!==l||(s+=1)}if(4!==l)throw new h;break}if(":"===t[c]){if((c+=1)===o)throw new h}else if(c<o)throw new h;u[s]=a,s+=1}else{if(null!==f)throw new h("Too many :: groups");c+=1,f=s+=1}}if(null!==f){var g=s-f;for(s=7;0!==s&&g>0;)e=f+g-1,r=void 0,r=(n=u)[i=s],n[i]=n[e],n[e]=r,s-=1,g-=1}else if(8!==s)throw new h;return u}function hr(t){var n=10,i=ve;return ae.test(t)?(t=t.slice(2),n=16,i=de):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,i=le),""===t?0:i.test(t)?v(t,n):void 0}var cr={qi:4},ar=/[\0\t\n\r #%/:?@\[\\\]]/,vr=/[\0\t\n\r #/:?@\[\\\]]/;function dr(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new h("Invalid IPv6 address");return{qi:2,Wi:fr(t.slice(1,-1))}}if(!n)return function(t){if(vr.test(t))throw new h("Invalid code point in opaque host");var n=or(t,Ze);return""===n?cr:{qi:3,Gi:n}}(t);var i=function(t){return function(t){return je(t.toLowerCase())}(t)}(sr(t));if(ar.test(i))throw new h("Invalid code point in host");var e=function(t){var n=t.split(".");if(""===n[n.length-1]&&n.pop(),!(n.length>4)){for(var i=[],e=0;e<n.length;e++){var r=n[e];if(""===r)return;var o=hr(r);if(void 0===o)return;i.push(o)}for(var u=0;u<i.length-1;u++)if(i[u]>255)throw new h;if(i[i.length-1]>=a.pow(256,5-i.length))throw new h;for(var s=i.pop(),f=0;f<i.length;f++)s+=i[f]*a.pow(256,3-f);return s}}(i);return void 0!==e?{qi:1,Wi:e}:""===i?cr:{qi:0,Yi:i}}function lr(t){switch(t.qi){case 0:return t.Yi;case 1:return function(t){for(var n=[],i=t,e=1;e<=4;e++)n.push(""+(255&i)),4!==e&&n.push("."),i>>>=8;return n.reverse().join("")}(t.Wi);case 2:return"["+function(t){for(var n="",i=function(t){for(var n=0,i=0,e=0,r=0,o=0;o<8;o++)0===t[o]?(0===r&&(e=o),r++):(r>i&&(n=e,i=r),r=0);return r>i&&(n=e,i=r),i>1?n:null}(t),e=!1,r=0;r<8;r++){if(e){if(0===t[r])continue;e=!1}i!==r?(n+=t[r].toString(16),7!==r&&(n+=":")):(n+=0===r?"::":":",e=!0)}return n}(t.Wi)+"]";case 3:return t.Gi;case 4:return""}}var wr=/\+/g;function br(t){for(var n=t.split("&"),i=[],e=0;e<n.length;e++){var r=n[e];if(""!==r){var o=r.indexOf("="),u=void 0,s=void 0;-1!==o?(u=r.slice(0,o),s=r.slice(o+1)):(u=r,s=""),u=u.replace(wr," "),s=s.replace(wr," ");var f=sr(u),h=sr(s);i.push([f,h])}}return i}function gr(t){for(var n="",i=0;i<t.length;i++){var e=t[i];i>0&&(n+="&"),n+=mr(Ye(Le(e[0])))+"="+mr(Ye(Le(e[1])))}return n}function mr(t){for(var n,i=[],e=0;e<t.length;e++){var r=t[e];32===r?i.push(43):42===(n=r)||45===n||46===n||95===n||Se(n)?i.push(r):i.push.apply(i,Je(r))}return Pe(i)}var pr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function yr(t){var n=""+t,i=pr.exec(n);return i?function(t,n){for(var i=t.length,e=[],r=n;r<i;r++){var o=t.charCodeAt(r);if(Sr(o))if(Ir(o)||r===i-1)e.push(_r);else{var u=t.charCodeAt(r+1);Ir(u)?(e.push(o,u),r++):e.push(_r)}else e.push(o)}return t.slice(0,n)+Pe(e)}(n,i.index):n}var _r=65533,Sr=function(t){return 55296==(63488&t)},Ir=function(t){return 0!=(1024&t)};function Tr(t,n){var i=t[0],e=n[0];return i===e?0:i<e?-1:1}function Er(t){t.Qi.length=0}function Rr(t,n){!function(t,n){for(var i=0;i<n.length;i++)t[i]=n[i];t.length=n.length}(t.Qi,br(n))}function kr(t){if(t.ji){var n=gr(t.Qi);""===n&&(n=null),t.ji.ji.Ki=n}}var Nr=function(){function t(t){if(void 0===t&&(t=void 0),this.ji=null,null==t)this.Qi=[];else if("object"==typeof t||"function"==typeof t)if((o=t)instanceof Nr&&be(o.Qi)&&(!ge||o[Symbol.iterator]===Or))this.Qi=t.Qi.slice();else if(function(t){return null!=t&&(!!be(t)||!!ge&&"function"==typeof t[Symbol.iterator])}(t)){this.Qi=[];for(var n=0,i=me(t);n<i.length;n++){var e=me(i[n]);if(2!==e.length)throw new h("Invalid name-value pair");this.Qi.push([yr(e[0]),yr(e[1])])}}else for(var r in this.Qi=[],t)c.prototype.hasOwnProperty.call(t,r)&&this.Qi.push([yr(r),yr(t[r])]);else(t=yr(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Qi=br(t);var o}var n=t.prototype;return n.append=function(t,n){t=yr(t),n=yr(n),this.Qi.push([t,n]),kr(this)},n.delete=function(t){t=yr(t);for(var n=this.Qi,i=0;i<n.length;){n[i][0]===t?n.splice(i,1):i++}kr(this)},n.get=function(t){t=yr(t);for(var n=this.Qi,i=0;i<n.length;i++){var e=n[i];if(e[0]===t)return e[1]}return null},n.getAll=function(t){t=yr(t);for(var n=this.Qi,i=[],e=0;e<n.length;e++){var r=n[e];r[0]===t&&i.push(r[1])}return i},n.has=function(t){t=yr(t);for(var n=this.Qi,i=0;i<n.length;i++){if(n[i][0]===t)return!0}return!1},n.set=function(t,n){t=yr(t),n=yr(n);for(var i=this.Qi,e=!1,r=0;r<i.length;){var o=i[r];o[0]===t?e?i.splice(r,1):(o[1]=n,e=!0,r++):r++}e||i.push([t,n]),kr(this)},n.sort=function(){ue(this.Qi,Tr),kr(this)},n.toString=function(){return gr(this.Qi)},n.entries=function(){return new xr(this.Qi,Pr)},n.keys=function(){return new xr(this.Qi,Ar)},n.values=function(){return new xr(this.Qi,Dr)},n.forEach=function(t){var n=this;this.Qi.forEach(function(i){return t(i[1],i[0],n)})},t}(),Or=Nr.prototype.entries;ge&&(Nr.prototype[Symbol.iterator]=Or);var Pr=function(t){return[t[0],t[1]]},Ar=function(t){return t[0]},Dr=function(t){return t[1]},xr=function(){function t(t,n){this.Zi=0,this.Qi=t,this.Ji=n}return t.prototype.next=function(){return this.Zi<this.Qi.length?{done:!1,value:this.Ji(this.Qi[this.Zi++])}:{done:!0,value:void 0}},t}(),Cr="null";var Br=c.create(null);Br.ftp=21,Br.file=0,Br.gopher=70,Br.http=80,Br.https=443,Br.ws=80,Br.wss=443;var Fr=/^(?:\.|%2e)$/i,Lr=/^(?:\.|%2e){2}$/i;function Ur(t){return Fr.test(t)}function Mr(t){return Lr.test(t)}function zr(t){return void 0!==Br[t]}function Wr(t){return zr(t.$i)}function qr(t){return""!==t.re||""!==t.ue}function jr(t){var n=t.length;if(!(n>=2))return!1;if(!Hr(t.slice(0,2)))return!1;if(2!==n){var i=t[2];if(47!==i&&92!==i&&63!==i&&35!==i)return!1}return!0}function Vr(t){return 2===t.length&&fe.test(t[0])&&(":"===t[1]||"|"===t[1])}function Hr(t){return 2===t.length&&Vr(Pe(t))}function Xr(t){return Vr(t)&&":"===t[1]}function Gr(t){var n=t.oe;0!==n.length&&("file"===t.$i&&1===n.length&&Xr(n[0])||n.pop())}function Yr(t){return null===t.fe||cr===t.fe||t._e||"file"===t.$i}var Kr=-1,$r=/\t|\n|\r/g,Jr=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function Zr(t,n,i,e){void 0===i&&(i=null),void 0===e&&(e=null),i||(i=new to,t=t.replace(Jr,""));var r=null!==e?e:0;n=n||null;for(var o=[],u=!1,s=!1,f=!1,c=Le(t=t.replace($r,"")),a=c.length,d=0;d<=a;){var l=d<a?c[d]:Kr;switch(r){case 0:if(!ye(l)){if(null===e){o.length=0,r=2;continue}throw new h("Invalid scheme")}o.push(Te(l)),r=1;break;case 1:if(Se(l)||43===l||45===l||46===l)o.push(Te(l));else{if(58!==l){if(null===e){o.length=0,r=2,d=0;continue}throw new h("Invalid scheme")}var w=Ve(o);if(null!==e){if(zr(i.$i)&&!zr(w))return;if(!zr(i.$i)&&zr(w))return;if((qr(i)||null!==i.we)&&"file"===w)return;if("file"===i.$i&&(i.fe===cr||null===i.fe))return}if(i.$i=w,null!==e)return void(Wr(i)&&i.we===Br[i.$i]&&(i.we=null));o.length=0,"file"===i.$i?r=13:Wr(i)&&n&&n.$i===i.$i?r=3:Wr(i)?r=7:47===c[d+1]?(r=4,d+=1):(i._e=!0,i.oe.push(""),r=18)}break;case 2:if(!n||n._e&&35!==l)throw new h("Invalid scheme");n._e&&35===l?(i.$i=n.$i,i.oe=n.oe.slice(),i.Ki=n.Ki,i.me="",i._e=!0,r=20):"file"!==n.$i?(r=5,d-=1):(r=13,d-=1);break;case 3:47===l&&47===c[d+1]?r=8:(r=5,d-=1);break;case 4:47===l?r=9:(r=17,d-=1);break;case 5:i.$i=n.$i,Kr===l?(i.re=n.re,i.ue=n.ue,i.fe=n.fe,i.we=n.we,i.oe=n.oe.slice(),i.Ki=n.Ki):47===l?r=6:63===l?(i.re=n.re,i.ue=n.ue,i.fe=n.fe,i.we=n.we,i.oe=n.oe.slice(),i.Ki="",r=19):35===l?(i.re=n.re,i.ue=n.ue,i.fe=n.fe,i.we=n.we,i.oe=n.oe.slice(),i.Ki=n.Ki,i.me="",r=20):92===l&&Wr(i)?r=6:(i.re=n.re,i.ue=n.ue,i.fe=n.fe,i.we=n.we,i.oe=n.oe.slice(),i.oe.pop(),r=17,d-=1);break;case 6:!Wr(i)||47!==l&&92!==l?47===l?r=9:(i.re=n.re,i.ue=n.ue,i.fe=n.fe,i.we=n.we,r=17,d-=1):r=8;break;case 7:if(47!==l||47!==c[d+1]){r=8;continue}r=8,d+=1;break;case 8:47!==l&&92!==l&&(r=9,d-=1);break;case 9:if(64===l){u&&o.unshift(37,52,48),u=!0;for(var b=0;b<o.length;b++){var g=o[b];if(58!==g||f){var m=Ve(rr(g,nr));f?i.ue+=m:i.re+=m}else f=!0}o.length=0}else if(Kr===l||47===l||63===l||35===l||Wr(i)&&92===l){if(u&&0===o.length)throw new h("Invalid host");d-=o.length+1,o.length=0,r=10}else o.push(l);break;case 10:case 11:if(null!==e&&"file"===i.$i)d-=1,r=15;else if(58!==l||s)if(Kr===l||47===l||63===l||35===l||Wr(i)&&92===l){if(d-=1,Wr(i)&&0===o.length)throw new h("Invalid host");if(null!==e&&0===o.length&&(qr(i)||null!==i.we))return;var p=dr(Ve(o),Wr(i));if(i.fe=p,o.length=0,r=16,null!==e)return}else 91===l?s=!0:93===l&&(s=!1),o.push(l);else{if(0===o.length)throw new h("Invalid host");var y=dr(Ve(o),Wr(i));if(i.fe=y,o.length=0,r=12,11===e)return}break;case 12:if(_e(l))o.push(l);else{if(!(Kr===l||47===l||63===l||35===l||Wr(i)&&92===l||null!==e))throw new h("Invalid port");if(0!==o.length){var _=v(Ve(o),10);if(_>65535)throw new h("Invalid port");i.we=_===Br[i.$i]?null:_,o.length=0}if(null!==e)return;r=16,d-=1}break;case 13:i.$i="file",47===l||92===l?r=14:n&&"file"===n.$i?Kr===l?(i.fe=n.fe,i.oe=n.oe.slice(),i.Ki=n.Ki):63===l?(i.fe=n.fe,i.oe=n.oe.slice(),i.Ki="",r=19):35===l?(i.fe=n.fe,i.oe=n.oe.slice(),i.Ki=n.Ki,i.me="",r=20):(jr(c.slice(d))||(i.fe=n.fe,i.oe=n.oe.slice(),Gr(i)),r=17,d-=1):(r=17,d-=1);break;case 14:47===l||92===l?r=15:(n&&"file"===n.$i&&!jr(c.slice(d))&&(Xr(n.oe[0])?i.oe.push(n.oe[0]):i.fe=n.fe),r=17,d-=1);break;case 15:if(Kr===l||47===l||92===l||63===l||35===l)if(d-=1,null===e&&Hr(o))r=17;else if(0===o.length){if(i.fe=cr,null!==e)return;r=16}else{var S=dr(Ve(o),Wr(i));if(0===S.qi&&"localhost"===S.Yi&&(S=cr),i.fe=S,null!==e)return;o.length=0,r=16}else o.push(l);break;case 16:Wr(i)?(r=17,47!==l&&92!==l&&(d-=1)):null===e&&63===l?(i.Ki="",r=19):null===e&&35===l?(i.me="",r=20):Kr!==l&&(r=17,47!==l&&(d-=1));break;case 17:if(Kr===l||47===l||Wr(i)&&92===l||null===e&&(63===l||35===l)){var I=Ve(o);if(Mr(I)?(Gr(i),47===l||Wr(i)&&92===l||i.oe.push("")):!Ur(I)||47===l||Wr(i)&&92===l?Ur(I)||("file"===i.$i&&0===i.oe.length&&Hr(o)&&(cr!==i.fe&&null!==i.fe&&(i.fe=cr),o[1]=58,I=Ve(o)),i.oe.push(I)):i.oe.push(""),o.length=0,"file"===i.$i&&(Kr===l||63===l||35===l))for(;i.oe.length>1&&""===i.oe[0];)i.oe.shift();63===l?(i.Ki="",r=19):35===l&&(i.me="",r=20)}else o.push.apply(o,rr(l,tr));break;case 18:63===l?(i.Ki="",r=19):35===l?(i.me="",r=20):Kr!==l&&(i.oe[0]+=Ve(rr(l,Ze)));break;case 19:null===e&&35===l?(i.me="",r=20):Kr!==l&&(i.Ki+=Ve(rr(l,Wr(i)?er:ir)));break;case 20:Kr===l||0===l||(i.me+=Ve(rr(l,Qe)))}d++}return i}function Qr(t,n,i,e){try{Zr(t,n,i,e)}catch(t){}}var to=function(){this.$i="",this.re="",this.ue="",this.fe=null,this.we=null,this.oe=[],this.Ki=null,this.me=null,this._e=!1};function no(t){switch(t.$i){case"blob":var n;try{n=Zr(t.oe[0],null)}catch(t){return Cr}return no(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return i=t.$i,e=t.fe,r=t.we,i+"://"+lr(e)+(null===r?"":":"+r);case"file":default:return Cr}var i,e,r}var io,eo,ro=function(){function t(t,n){var i,e,r=null;if(null!=n)if(null!=(i=n)&&i instanceof ro&&"object"==typeof i.ji)r=n.ji;else try{r=Zr(String(n),null)}catch(t){throw new h("Invalid base URL: "+t.message)}try{e=Zr(String(t),r)}catch(t){throw new h("Invalid URL: "+t.message)}var o=e.Ki;this.ji=e,this.Ki=function(t){var n=new Nr;return null!==t&&Rr(n,t),n}(o),this.Ki.ji=this}var n,i,e,r=t.prototype;return r.toString=function(){return this.href},r.toJSON=function(){return this.href},n=t,(i=[{key:"href",get:function(){return function(t,n){void 0===n&&(n=!1);var i=t.$i+":";if(null!==t.fe?(i+="//",qr(t)&&(i+=t.re,""!==t.ue&&(i+=":"+t.ue),i+="@"),i+=lr(t.fe),null!==t.we&&(i+=":"+t.we)):null===t.fe&&"file"===t.$i&&(i+="//"),t._e)i+=t.oe[0];else for(var e=0,r=t.oe;e<r.length;e++)i+="/"+r[e];return null!==t.Ki&&(i+="?"+t.Ki),n||null===t.me||(i+="#"+t.me),i}(this.ji)},set:function(t){var n;try{n=Zr(String(t),null)}catch(t){throw new h("Invalid URL: "+t.message)}this.ji=n,Er(this.Ki);var i=this.ji.Ki;null!==i&&Rr(this.Ki,i)}},{key:"origin",get:function(){return no(this.ji)}},{key:"protocol",get:function(){return this.ji.$i+":"},set:function(t){Qr(t+":",null,this.ji,0)}},{key:"username",get:function(){return this.ji.re},set:function(t){Yr(this.ji)||(this.ji.re=or(t,nr))}},{key:"password",get:function(){return this.ji.ue},set:function(t){Yr(this.ji)||(this.ji.ue=or(t,nr))}},{key:"host",get:function(){var t=this.ji,n=t.fe;if(null===n)return"";var i=t.we,e=lr(n);return null!==i&&(e+=":"+i),e},set:function(t){this.ji._e||Qr(t,null,this.ji,10)}},{key:"hostname",get:function(){var t=this.ji.fe;return null===t?"":lr(t)},set:function(t){this.ji._e||Qr(t,null,this.ji,11)}},{key:"port",get:function(){var t=this.ji.we;return null===t?"":""+t},set:function(t){Yr(this.ji)||(""===t?this.ji.we=null:Qr(t,null,this.ji,12))}},{key:"pathname",get:function(){var t=this.ji.oe;return this.ji._e?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.ji._e||(this.ji.oe.length=0,Qr(t,null,this.ji,16))}},{key:"search",get:function(){var t=this.ji.Ki;return null===t||""===t?"":"?"+t},set:function(t){t=yr(t);var n=this.ji;if(""===t)return n.Ki=null,void Er(this.Ki);"?"===t[0]&&(t=t.slice(1)),n.Ki="",Qr(t,null,n,19),Rr(this.Ki,t)}},{key:"searchParams",get:function(){return this.Ki}},{key:"hash",get:function(){var t=this.ji.me;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.ji.me="",Qr(t,null,this.ji,20)):this.ji.me=null}}])&&oe(n.prototype,i),e&&oe(n,e),t}();function oo(t){return t.document&&t.document.baseURI||t.location.href||""}function uo(){return void 0!==i?i.createElement("video"):void 0}function so(){return eo||(eo=uo()),eo}var fo=!!("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch)||!(!e||!e.msMaxTouchPoints),ho=so(),co=!(!ho||!ho.webkitShowPlaybackTargetPicker),ao=function(){function t(){this.Be=void 0,this.Le=!1,this.Wt=fo,this.dn=!1,this.Me=!0}var i=t.prototype;return i.xe=function(){return 0},i.Fe=function(t,n){return!0},i.Ue=function(t){return t>=1/6*2},mt(t,[{key:"He",get:function(){return void 0===this.Be&&(this.Be=this.xe()),this.Be}},{key:"Ve",get:function(){return!Ci.Fn}},{key:"Xe",get:function(){return n.devicePixelRatio||1}},{key:"ze",get:function(){return co}},{key:"qe",get:function(){return!1}},{key:"We",get:function(){return!0}},{key:"Ge",get:function(){return Ci.On||Ci.hn}},{key:"Ye",get:function(){return!0}},{key:"Qe",get:function(){return!0}},{key:"je",get:function(){return!1}},{key:"Ke",get:function(){}},{key:"Ze",get:function(){return!0}},{key:"Je",get:function(){return!1}}]),t}(),vo=function(){var t=uo();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(Ci.in)return!1;var t=uo();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var lo=function(t){function n(n){var i;return(i=t.call(this)||this).$e=void 0,i.$e=n,i.$e&&(i.Le=i.$e.Le,i.Wt=i.$e.Wt,i.Me=vo&&i.$e.Me),i}Mt(n,t);var i=n.prototype;return i.xe=function(){return this.$e?this.$e.He:t.prototype.xe.call(this)},i.Fe=function(n,i){return this.$e?this.$e.Fe(n,i):t.prototype.Fe.call(this,n,i)},i.Ue=function(n){return this.$e?this.$e.Ue(n):t.prototype.Ue.call(this,n)},mt(n,[{key:"Ke",get:function(){var t;return null==(t=this.$e)?void 0:t.Ke}},{key:"Ze",get:function(){var t,n;return null==(t=null==(n=this.$e)?void 0:n.Ze)||t}}]),n}(ao),wo=function(t){function n(n){var i;return(i=t.call(this,n)||this).Le=!0,i.dn=!0,i}return Mt(n,t),mt(n,[{key:"je",get:function(){return Ci.hn}}]),n}(lo),bo=function(t){function n(){return t.apply(this,arguments)||this}return Mt(n,t),n.prototype.xe=function(){if(!io.MediaSource)return 1},mt(n,[{key:"je",get:function(){return!0}}]),n}(wo),go=function(t){function n(){return t.apply(this,arguments)||this}return Mt(n,t),n.prototype.Fe=function(n,i){return t.prototype.Fe.call(this,n,i)},mt(n,[{key:"qe",get:function(){return Ci.Sn<3}},{key:"We",get:function(){return Ci.Sn>=3}},{key:"Je",get:function(){return Ci.Sn<3}}]),n}(lo),mo=function(t){function n(){return t.call(this)||this}return Mt(n,t),n}(ao),po=function(t){function n(){return t.apply(this,arguments)||this}return Mt(n,t),n.prototype.Fe=function(t,n){if(t&&t.ir&&n&&n.ir){var i=yo(t.ir,"mp4a.40.2")&&yo(n.ir,"mp4a.40.5"),e=yo(t.ir,"mp4a.40.5")&&yo(n.ir,"mp4a.40.2"),r=yo(t.ir,"mp4a.40.2")&&yo(n.ir,"mp4a.40.34"),o=yo(t.ir,"mp4a.40.34")&&yo(n.ir,"mp4a.40.2"),u=yo(t.ir,"mp4a.40.5")&&yo(n.ir,"mp4a.40.34"),s=yo(t.ir,"mp4a.40.34")&&yo(n.ir,"mp4a.40.5");return!(i||e||r||o||u||s)}return!0},mt(n,[{key:"Ke",get:function(){if(Ci.Gt)return 4096}}]),n}(mo);function yo(t,n){return t.indexOf(n)>-1}var _o,So=function(t){function n(){return t.apply(this,arguments)||this}return Mt(n,t),n.prototype.Ue=function(t){return t>=2},n}(mo),Io=function(t){function n(){var n;return(n=t.call(this)||this).Le=Ci.Bn>=11,n.Me=Ci.On&&!(Ci.hn&&Ci.Bn<10),n}return Mt(n,t),n}(mo),To=function(t){function n(){return t.apply(this,arguments)||this}return Mt(n,t),mt(n,[{key:"Ye",get:function(){return!1}}]),n}(lo),Eo=function(t){function n(){return t.apply(this,arguments)||this}return Mt(n,t),mt(n,[{key:"Ze",get:function(){return!Ci.Yt||(Ci.pn?92!==Ci.An:Ci.yn>=100)}}]),n}(mo),Ro=function(t){function n(){return t.apply(this,arguments)||this}return Mt(n,t),mt(n,[{key:"je",get:function(){return!0}}]),n}(lo),ko=function(){function n(){var n;this.rr=void 0,this.dr=new Yi,this._r=new No,this.gr=(n=function(){if(Ci.Cn)return new po;if(Ci.In||Ci.Rn)return new So;if(Ci.On)return new Io;if(Ci.wn)return new Eo;return new mo}(),Ci.hn?new bo(n):Ci.dn?new wo(n):Ci.Tn?new go(n):Ci.En?new To(n):Ci.Gt?new Ro(n):new lo(n)),this.wr=function(){if(t.URL)try{var n=new t.URL("b","http://a");return n.pathname="c d","http://a/c%20d"===n.href}catch(t){}return!1}(),t.performance&&t.performance.now?this.rr=function(){return t.performance.now()}:this.rr=Hi}var i=n.prototype;return i.yr=function(){Wi.apply(void 0,arguments)},i.pr=function(){qi.apply(void 0,arguments)},i.Ar=function(){ji.apply(void 0,arguments)},i.Tr=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),e=1;e<n;e++)i[e-1]=arguments[e];Vi.apply(void 0,[t].concat(i))},i.jn=function(t,n){return r(t,n)},i.Sr=function(t,n){return u(t,n)},i.Qn=function(t){o(t)},i.Er=function(t){s(t)},i.oi=function(t){return this.dr.oi(t)},i.Ir=function(){return this.Rr.Ir()},i.Nr=function(){return this.Rr.Nr()},i.Dr=function(){return this.Rr.Dr()},i.Cr=function(){return this.Rr.Cr()},i.Pr=function(){return this.Rr.Pr()},i.Or=function(t,n){return this.Rr.Or(t,n)},i.Br=function(t){return this.Rr.Br(t)},i.Lr=function(t,n){var i;return void 0===n&&(n=oo(io)),i="object"!=typeof n||n instanceof ro?n:n.href,new ro(t,i)},i.Mr=function(n,i){if(void 0===i&&(i=oo(io)),this.wr){var e="string"==typeof i?i:i.toString();return new t.URL(n,e).href}return this.Lr(n,i).href},mt(n,[{key:"xr",get:function(){return this._r}},{key:"Fr",get:function(){return this.gr}},{key:"Ur",get:function(){return{Hr:e&&e.userAgent.match(/Android /i)?"Android":"other",Vr:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"Xr",get:function(){return t&&t.location&&"https:"===t.location.protocol}},{key:"zr",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),No=function(){function t(){}return mt(t,[{key:"qr",get:function(){return e.oscpu}},{key:"Fr",get:function(){return e.platform}},{key:"Wr",get:function(){return e.vendor}},{key:"Gr",get:function(){return e.vendorSub}}]),t}();function Oo(){return(Oo=c.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)c.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}return t}).apply(this,arguments)}!function(t){t.ns="9a04f079-9840-4286-ab92-e65be0885f95",t.rs="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",t.us="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",t.hs="94ce86fb-07ff-4f43-adb8-93d2fa968ca2"}(_o||(_o={}));var Po,Ao=_o.ns,Do="urn:uuid:"+Ao,xo="com.microsoft.playready",Co=_o.rs,Bo="urn:uuid:"+Co,Fo=_o.us,Lo="urn:uuid:"+Fo,Uo=_o.hs,Mo="urn:uuid:"+Uo,zo="com.apple.fps.1_0";!function(t){t.ns="playready",t.rs="widevine",t.hs="fairplay",t.us="clearkey",t.fs="aes128"}(Po||(Po={}));var Wo={vs:Po.ns,ds:xo,ls:"cenc",_s:Ao,gs:Do,ys:"PlayReady"},qo={vs:Po.rs,ds:"com.widevine.alpha",ls:"cenc",_s:Co,gs:Bo,ys:"Widevine"},jo={vs:Po.hs,ds:zo,ls:"skd",_s:Uo,gs:Mo,ys:"FairPlay"};Po.hs;var Vo={vs:Po.us,ds:"org.w3.clearkey",ls:"cenc",_s:Fo,gs:Lo,ys:"ClearKey"},Ho=Ci.wn&&Ci.yn>=42||Ci.Cn&&Ci.Pn>=38||Ci.In||Ci.Nn||Ci.Ln&&Ci.Mn>=29;function Xo(t,n){return e="audio",null!=(i=t)&&-1!==i.indexOf(e)?{initDataTypes:["cenc"],audioCapabilities:[Oo({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[Oo({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]};var i,e}var Go,Yo=function(){function t(t){this.As=void 0,this.Ts=yt(),this.Ss=void 0,this.As=t}var n=t.prototype;return n.Pr=function(){return this.Br(qo)},n.Nr=function(){return this.Br(Vo)},n.Cr=function(){return this.Br(Wo)},n.Dr=function(){return this.Br(jo)},n.Br=function(t){var n=t.gs,i=this.Ts.get(n);if(i)return i;var e=this.Or(t,'video/mp4; codecs="avc1.42000a"');return this.Ts.set(n,e),e},n.Or=function(t,n){return Q.async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Q.awrap(this.As.Es(t.ds,[Xo(n,!0)]));case 3:return i.abrupt("return",!0);case 6:return i.prev=6,i.t0=i.catch(0),i.prev=8,i.next=11,Q.awrap(this.As.Es(t.ds,[Xo(n,!1)]));case 11:return i.abrupt("return",!0);case 14:return i.prev=14,i.t1=i.catch(8),i.abrupt("return",!1);case 17:case"end":return i.stop()}},null,this,[[0,6],[8,14]],j)},n.Ir=function(){return this.Ss||(this.Ss=this.Is()),this.Ss},n.Is=function(){return Q.async(function(t){for(;;)switch(t.prev=t.next){case 0:if("https:"!==(void 0).protocol){t.next=2;break}case 2:if(Ho){t.next=4;break}return t.abrupt("return",!1);case 4:return t.next=6,Q.awrap(this.Nr());case 6:if(!t.sent){t.next=8;break}return t.abrupt("return",!1);case 8:return t.abrupt("return",!0);case 9:case"end":return t.stop()}},null,this,null,j)},t}(),Ko=["cenc"],$o=function(t){function n(n){var i;return(i=t.call(this,"du")||this).vu=n,i}return Mt(n,t),n}(vi),Jo=function(t){function n(n,i,e,r){var o;return(o=t.call(this,"_u")||this).vu=n,o.wu=i,o._u=e,o.mu=r,o}return Mt(n,t),n}(vi);!function(t){t.pu="bu",t.Au="Tu"}(Go||(Go={}));var Zo=new w([0]).buffer,Qo=function(){function t(){this.Eu=void 0,this.Eu=[]}var n=t.prototype;return n.Iu=function(t){for(var n=0,i=this.Eu;n<i.length;n++){if(i[n][0]===t)return!0}return!1},n.Ru=function(t){for(var n=0,i=this.Eu;n<i.length;n++){var e=i[n];if(e[0]===t)return e[1]}},n.Nu=function(t,n){this.Eu.forEach(function(n){return t(n[1],n[0])},n)},n.Du=function(t,n){this.Eu.push([t,n])},n.Cu=function(){vt(this.Eu)},mt(t,[{key:"Pu",get:function(){return this.Eu.length}}]),t}(),tu=function(){function t(){var t=this;this.Vu=void 0,this.Xu=void 0,this.Wu=void 0,this.Vu=new j(function(n,i){t.Xu=n,t.Wu=i})}var n=t.prototype;return n.Gu=function(t){this.Xu&&(this.Xu(t),this.Ms())},n.Yu=function(t){this.Wu&&(this.Wu(t),this.Ms())},n.Xs=function(){this.Vu.catch(dt),this.Yu(new An)},n.Ms=function(){this.Xu=void 0,this.Wu=void 0},t}();function nu(t,n){return t===xo?function(t){if(t.byteLength<2*iu.length)return t;if($n(new DataView(t,0,2*iu.length),!0)===iu)return t;return n=t,Jn('<PlayReadyKeyMessage type="LicenseAcquisition"><LicenseAcquisition Version="1"><Challenge encoding="base64encoded">'+fi(n)+'</Challenge><HttpHeaders><HttpHeader><name>Content-Type</name><value>text/xml; charset=utf-8</value></HttpHeader><HttpHeader><name>SOAPAction</name><value>"http://schemas.microsoft.com/DRM/2007/03/protocols/AcquireLicense"</value></HttpHeader></HttpHeaders></LicenseAcquisition></PlayReadyKeyMessage>',!0).buffer;var n}(n):n}var iu="<PlayReady";var eu=function(t){function n(n,i,e,r){var o;return(o=t.call(this,n,r)||this).Qu=void 0,o.ju=void 0,o.Qu=i,o.ju=e,o}return Mt(n,t),n}(Nn),ru=function(t,n){return(ru=c.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)c.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)};function ou(t,n){if("function"!=typeof n&&null!==n)throw new h("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}ru(t,n),t.prototype=null===n?c.create(n):(i.prototype=n.prototype,new i)}function uu(t,n,i){return t.indexOf?t.indexOf(n,i):Array.prototype.indexOf.call(t,n,i)}function su(t,n,i){return a.min(a.max(t,n),i)}function fu(t,n){return t>>8-n}function hu(t,n){return t&(1<<n)-1}!function(){function t(t,n){this.Ku=t,this.Zu=n}t.prototype.get=function(t){var n=this.Ku.get(t);if(0===this.Zu||void 0===n)return n;var i=this.Ku.get(t+1)||0,e=n&(1<<8-this.Zu)-1,r=i>>8-this.Zu;return(e<<this.Zu)+r},t.prototype.getBit=function(t){if(!(t<0)){var n=this.Ku.get(a.floor((t+this.Zu)/8));if(void 0!==n)return(n&1<<7-this.Zu-t%8)>0?1:0}},c.defineProperty(t.prototype,"bitLength",{get:function(){return this.Ku.bitLength-this.Zu},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"length",{get:function(){return this.Ku.length},enumerable:!1,configurable:!0})}(),function(){function t(t){this.Ju=t,this.$u=0,this.uo=0}c.defineProperty(t.prototype,"totalBitsRead",{get:function(){return 8*this.$u+this.uo},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"done",{get:function(){return this.$u===this.Ju.length&&0===this.uo},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"location",{get:function(){return{byte:this.$u,bit:this.uo}},enumerable:!1,configurable:!0}),t.prototype.copy=function(){var n=new t(this.Ju);return n.seek(this.$u,this.uo),n},t.prototype.canReadBits=function(t){return 8*this.$u+t+this.uo<=8*this.Ju.length},t.prototype.canReadBytes=function(t){return 0===this.uo?this.$u+t<=this.Ju.length:this.$u+t<this.Ju.length},t.prototype.incBit=function(){this.uo++,this.uo>7&&(this.$u++,this.uo=0)},t.prototype.seek=function(t,n){this.$u=t,this.uo=n},t.prototype.peekBit=function(){if(!this.canReadBits(1))throw new f("Cannot read past end of buffer.");return this.Ju.get(this.$u)>>7-this.uo&1},t.prototype.readBit=function(){var t=this.peekBit();return this.incBit(),t},t.prototype.readByte=function(){if(!this.canReadBytes(1))throw new f("Cannot read past end of buffer.");if(0===this.uo)return this.Ju.get(this.$u++);var t=hu(this.Ju.get(this.$u),8-this.uo),n=fu(this.Ju.get(this.$u+1),this.uo);return this.$u++,t<<this.uo|n},t.prototype.readBits=function(t){if(!this.canReadBits(t))throw new f("Cannot read past end of buffer.");for(var n=[],i=0;i<t;i++)n.push(this.readBit());return n},t.prototype.readUInt=function(t){if(t>32)throw new f("The max bitlength that can be provided is 32.");if(!this.canReadBits(t))throw new f("Cannot read past end of buffer.");var n=0;if(0===this.uo&&t%8==0)for(var i=t-8;i>=0;i-=8)n|=this.readByte()<<i;else for(i=t-1;i>=0;i--)n|=this.readBit()<<i;return n},t.prototype.readInt=function(t){if(t>32)throw new f("The max bitlength that can be provided is 32.");if(!this.canReadBits(t))throw new f("Cannot read past end of buffer.");var n=this.readUInt(t);return 0===(n&1<<t-1)?n:n-a.pow(2,t)},t.prototype.readExponentialGolombCode=function(){for(var t=0;0===this.readBit();)t++;var n=1<<t;return n+=this.readUInt(t)-1},t.prototype.readSignedExponentialGolombCode=function(){var t=this.readExponentialGolombCode();return 1&t?(t+1)/2:-t/2},t.prototype.skipBits=function(t){if(!this.canReadBits(t))throw new f("Skipping over the buffer edge is not allowed.");var n=this.uo+t;this.$u+=n>>3,this.uo=7&n},t.prototype.readBool=function(){return this.readBit()>0},t.prototype.readString=function(t){if(!this.canReadBytes(t))throw new f("Cannot read past end of buffer.");for(var n=[],i=0;i<t;i++)n.push(this.readByte());return String.fromCharCode.apply(String,n)}}();var cu=function(t,n){return t===n?0:t<n?-1:t>n?1:l(t)?l(n)?0:1:-1},au=function(){function t(){this.oo=[],this.ao=[],this.Ee=0}return t.from=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var e=new t,r=0,o=n;r<o.length;r++){var u=o[r];e.pushRange(u)}return e},t.prototype.pushRange=function(t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=t.length),i<0)throw new f("The buffer length must be positive.");if(0!==i){if(0===this.ao.length)this.ao.push(0);else{var e=this.ao[this.ao.length-1]+this.oo[this.oo.length-1].length;this.ao.push(e)}this.oo.push(t.subarray(n,n+i)),this.Ee+=i}},t.prototype.concat=function(n){var i=new t;return i.pushRange(this.join()),i.pushRange(n.join()),i},t.prototype.copy=function(t,n,i,e){if(void 0===n&&(n=0),void 0===i&&(i=0),void 0===e&&(e=this.length),n<0||i<0||e<0)throw new RangeError;return this.slice(i,e).copyInternal(t,n)},t.prototype.copyInternal=function(t,n){for(var i=0,e=n,r=0,o=this.oo;r<o.length;r++){var u=o[r];t.set(u,e),i+=u.length,e+=u.length}return i},t.prototype.clear=function(){this.oo=[],this.ao=[],this.Ee=0},t.prototype.get=function(t){if(!(t<0||t>=this.length)){var n=this.findContainingBufferIndex(t),i=t-this.ao[n];return this.oo[n][i]}},c.defineProperty(t.prototype,"first",{get:function(){return this.get(0)},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){if(this.oo.length<1)return-1;if(this.oo.length>1){var n=this.join();this.clear(),this.pushRange(n)}var i=this.oo[0];return"number"==typeof t?uu(i,t):"undefined"!=typeof Buffer?Buffer.from(i.buffer,i.byteOffset,i.byteLength).indexOf(t):function(t,n){if(0===n.length)return 0;for(var i=n[0],e=n.length,r=t.length-e,o=0;o<=r&&!((o=uu(t,i,o))<0||o>r);o++){for(var u=o+1,s=o+e,f=1;u<s&&t[u]===n[f];u++,f++);if(u===s)return o}return-1}(i,t)},t.prototype.findContainingBufferIndex=function(t){return function(t,n,i){if(0!==t.length){var e=0,r=t.length-1;if(1!==i(t[e],n)){if(1===i(n,t[r]))return r;for(;e!==r;){var o=a.ceil((e+r)/2);i(t[o],n)<=0?e=o:r=o-1}return e}}}(this.ao,t,cu)},t.prototype.join=function(){if(1===this.oo.length)return this.oo[0];var t=new w(this.length);return this.copyInternal(t,0),t},c.defineProperty(t.prototype,"length",{get:function(){return this.Ee},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"bitLength",{get:function(){return 8*this.length},enumerable:!1,configurable:!0}),t.prototype.readUIntBE=function(t,n){if(n<=0||n>4)throw new f("Expected byteLength to be between 0 and 4 but was "+n);if(t<0||t>this.length-n)throw new f("Offset must be between 0 and buffer.length - byteLength, but was "+t+" (max allowed "+(this.length-n)+")");if(1===n)return this.get(t);for(var i=0,e=0;e<n;e++)i+=this.get(t+e)*a.pow(2,8*(n-e-1));return i},t.prototype.slice=function(n,i){void 0===i&&(i=this.length);var e=su(n,0,this.length),r=su(i,0,this.length);if(e>r)return new t;if(e===r)return new t;for(var o=new t,u=this.findContainingBufferIndex(e),s=this.oo[u],f=e,h=f-this.ao[u];f+s.length-h<r;)o.pushRange(s,h,s.length-h),u+=1,h=(f+=s.length-h)-this.ao[u],s=this.oo[u];var c=r-f;return o.pushRange(s,h,c),o},t.prototype.trim=function(){if(0===this.length)return new t;for(var n=this.length-1,i=this.oo.length-1,e=this.oo[i],r=e.length-1;n>=0&&i>=0;){if(0!==e[r])break;if(0===r){if(0===i)return new t;i-=1,r=(e=this.oo[i]).length-1}else r-=1;n-=1}return this.slice(0,n+1)},t}(),vu=function(){function t(n){this.do=n||t.BUFFER_CHUNK_SIZE,this._o=!1,this.mo=new au,this.Ju=new w(this.do),this.po=0,this.Ao=0,this.uo=7}return t.prototype.closeByte=function(){this.Ju[this.po++]=this.Ao,this.po>=this.do&&this.closeBuffer(),this.Ao=0,this.uo=7},t.prototype.closeBuffer=function(t){void 0===t&&(t=!0),0!==this.po&&(this.mo.pushRange(this.Ju,0,this.po),t&&(this.Ju=new w(this.do)),this.po=0)},c.defineProperty(t.prototype,"isWritingStartBit",{get:function(){return 7===this.uo},enumerable:!1,configurable:!0}),t.prototype.close=function(){if(this._o)throw new f("Cannot close a closed BitWriter.");return this.isWritingStartBit||this.closeByte(),this.closeBuffer(!1),this._o=!0,this.mo},t.prototype.writeBit=function(t){if(this._o)throw new f("Cannot write to a closed BitWriter.");this.Ao|=t<<this.uo,0===this.uo?this.closeByte():this.uo--},t.prototype.writeByte=function(t){if(this._o)throw new f("Cannot write to a closed BitWriter.");this.isWritingStartBit?(this.Ao=t,this.closeByte()):this.writeByteUnaligned(t)},t.prototype.writeByteUnaligned=function(t){var n=this.uo;this.Ao|=fu(t,n+1),this.closeByte(),this.Ao=hu(t,8-n)<<n+1,this.uo=n},t.prototype.writeBits=function(t){for(var n=0,i=t;n<i.length;n++){var e=i[n];this.writeBit(e)}},t.prototype.writeBytes=function(t){if(this._o)throw new f("Cannot write to a closed BitWriter.");this.isWritingStartBit?this.writeBytesAligned(t):this.writeBytesUnaligned(t)},t.prototype.writeBytesAligned=function(t){this.po+t.length<=this.do?(this.Ju.set(t,this.po),this.po+=t.length,this.po===this.do&&this.closeBuffer()):(this.closeBuffer(),this.mo.pushRange(t))},t.prototype.writeBytesUnaligned=function(t){if(0!==t.length){var n=this.uo;this.Ao|=fu(t[0],n+1),this.closeByte();for(var i=1;i<t.length;i++){var e=hu(t[i-1],8-n),r=fu(t[i],n+1);this.Ao=e<<n+1|r,this.closeByte()}this.Ao=hu(t[t.length-1],8-n)<<n+1,this.uo=n}},t.prototype.writeUInt=function(t,n){if(t<0)throw new f("Received a negative number.");if(n>32)throw new f("The max bitlength that can be provided is 32.");if(t>=a.pow(2,n))throw new f("Uint "+t+" cannot be represented in "+n+" bit(s).");if(this.isWritingStartBit&&n%8==0)for(var i=n-8;i>=0;i-=8)this.writeByte(t>>i&255);else for(i=n-1;i>=0;i--)this.writeBool((t&1<<i)>0)},t.prototype.writeInt=function(t,n){if(n>32)throw new f("The max bitlength that can be provided is 32.");if(a.abs(t)>=a.pow(2,n-1))throw new f("Signed integer "+t+" cannot be represented in "+n+" bit(s).");t<0?this.writeUInt(t+a.pow(2,n),n):this.writeUInt(t,n)},t.prototype.writeExponentialGolombCode=function(t){if(t<0)throw new f("Received a negative number.");for(var n=a.floor(a.log2(t+1))+1,i=0;i<n-1;i++)this.writeBit(0);this.writeUInt(t+1,n)},t.prototype.writeSignedExponentialGolombCode=function(t){0===t?this.writeExponentialGolombCode(0):t<0?this.writeExponentialGolombCode(-2*t):this.writeExponentialGolombCode(2*t-1)},t.prototype.padByte=function(t){for(;!this.isWritingStartBit;)this.writeBit(t)},t.prototype.writeBool=function(t){this.writeBit(t?1:0)},t.prototype.writeString=function(t){for(var n=function(t){for(var n=new w(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}(t),i=0;i<n.length;i++)this.writeByte(n[i])},t.BUFFER_CHUNK_SIZE=1024,t}(),du=function(){function t(t){this.rb=new au,this.To=t}return t.prototype.closeWriter=function(){void 0!==this.To&&(this.rb=this.rb.concat(this.To.close()),this.To=void 0)},c.defineProperty(t.prototype,"writer",{get:function(){return void 0===this.To&&(this.To=new vu),this.To},enumerable:!1,configurable:!0}),t.prototype.concat=function(t){this.closeWriter(),this.rb=this.rb.concat(t)},t.prototype.toRangedBuffer=function(){return this.closeWriter(),this.rb},t}(),lu=function(){function t(t){if(this.boxType=t,4!==t.length&&16!==t.length)throw new f("The provided box type does not conform to either a 4 character type or a 16 byte uuid.")}return t.prototype.serializeCommonBoxHeader=function(n){var i=this.getSize(),e=i>=t.LARGE_SIZE/8,r=16===this.boxType.length;n.writeUInt(e?1:i,32),n.writeString(r?"uuid":this.boxType),e&&(n.writeUInt(a.floor(i/t.LARGE_SIZE),32),n.writeUInt(i%t.LARGE_SIZE,32)),r&&n.writeString(this.boxType)},t.prototype.getSize=function(){var n=8+(this.boxType.length>4?16:0),i=this.getBoxContentSize()+n;return i>=t.LARGE_SIZE/8&&(i+=8),i},t.prototype.serialize=function(){var t=new du;return this.serializeCommonBoxHeader(t.writer),this.serializeBoxContent(t),t.toRangedBuffer()},t.LARGE_SIZE=a.pow(2,32),t}();function wu(t,n){return t instanceof jt?64===n:t<a.pow(2,n)}function bu(t,n){return a.round(t*a.pow(2,n))}function gu(t,n){for(var i=0;i<n.length;i++)t.writeByte(n[i])}var mu=function(t){function n(n,i,e){var r=t.call(this,n)||this;if(r.version=i,!wu(i,8))throw new f("the provided version cannot fit in 8 bits.");return r.flags=e,r}return ou(n,t),c.defineProperty(n.prototype,"flags",{get:function(){return this.So},set:function(t){this.So=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4},n.prototype.serializeFlags=function(t){if("number"!=typeof this.flags)throw new f("Missing custom serializeFlags method.");t.writer.writeUInt(this.flags,24)},n.prototype.serializeBoxContent=function(t){t.writer.writeByte(this.version),this.serializeFlags(t)},n}(lu);!function(t){function n(n,i){var e=t.call(this,n)||this;return e.data=i,e}ou(n,t),n.prototype.getBoxContentSize=function(){return this.data.length},n.prototype.serializeBoxContent=function(t){t.concat(au.from(this.data))}}(lu);var pu=function(){function t(t){void 0===t&&(t=0),this.offset=t}return t.prototype.shift=function(t){this.offset+=t},t.prototype.seek=function(t){this.offset=t},t.prototype.clone=function(){return new t(this.offset)},t}();var yu=16384;function _u(t){var n=t.length;if(n<=yu)return String.fromCharCode.apply(String,t);for(var i=[],e=0;e<n;e+=yu)i.push(String.fromCharCode.apply(String,t.slice(e,e+yu)));return i.join("")}function Su(t,n){var i=t.getUint8(n.offset);return n.shift(1),i}function Iu(t,n,i){var e,r=function(t,n,i){void 0===n&&(n=0);void 0===i&&(i=t.byteLength);return new w(t.buffer,t.byteOffset+n,i-n)}(new w((e=t).buffer,e.byteOffset,e.byteLength),n.offset,n.offset+i);return n.shift(r.byteLength),r}function Tu(t,n,i){return n.offset+i<=t.byteLength}function Eu(t,n,i){void 0===i&&(i=!1);var e=t.getUint32(n.offset,i);return n.shift(4),e}function Ru(t,n,i){void 0===i&&(i=!1);var e=Eu(t,n,i),r=Eu(t,n,i),o=i?r:e,u=i?e:r;return jt.fromBits(u,o,!0)}function ku(t,n,i){var e,r=Iu(t,n,i);return _u((e=r,[].slice.call(e)))}function Nu(t,n){var i,e=Su(t,n);return 0==(128&e)?i=e:192==(224&e)?i=64*(31&e)+(63&Su(t,n)):224==(240&e)?i=4096*(15&e)+64*(63&Su(t,n))+(63&Su(t,n)):240==(248&e)&&(i=262144*(7&e)+4096*(63&Su(t,n))+64*(63&Su(t,n))+(63&Su(t,n))),i}function Ou(t,n){return function(t,n,i){var e=[];(function(t,n){return n.offset+3<=t.byteLength&&239===t.getUint8(n.offset)&&187===t.getUint8(n.offset+1)&&191===t.getUint8(n.offset+2)})(t,n)&&n.shift(3);for(;n.offset<t.byteLength;){var r=Nu(t,n);if(void 0===r)break;if(i&&0===r)break;e.push(r)}return function(t){for(var n=[],i=0,e=t;i<e.length;i++){var r=e[i];r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}return _u(n)}(e)}(t,n,!0)}var Pu=function(){function t(t){void 0===t&&(t=0),this.offset=t}return t.prototype.shift=function(t){this.offset+=t},t.prototype.seek=function(t){this.offset=t},t.prototype.clone=function(){return new t(this.offset)},t.prototype.toBit=function(){return new pu(this.offset<<3)},t}(),Au=function(){function t(t,n){this.data=t,this.cursor=n}return t.prototype.nextUint8=function(){return Su(this.data,this.cursor)},t.prototype.nextUint16=function(){return function(t,n,i){void 0===i&&(i=!1);var e=t.getUint16(n.offset,i);return n.shift(2),e}(this.data,this.cursor)},t.prototype.nextInt16=function(){return function(t,n,i){void 0===i&&(i=!1);var e=t.getInt16(n.offset,i);return n.shift(2),e}(this.data,this.cursor)},t.prototype.nextUint32=function(){return Eu(this.data,this.cursor)},t.prototype.nextInt32=function(){return function(t,n,i){void 0===i&&(i=!1);var e=t.getInt32(n.offset,i);return n.shift(4),e}(this.data,this.cursor)},t.prototype.nextInt64=function(){return function(t,n,i){void 0===i&&(i=!1);var e=Eu(t,n,i),r=Eu(t,n,i),o=i?r:e,u=i?e:r;return jt.fromBits(u,o,!1)}(this.data,this.cursor)},t.prototype.nextUint64=function(){return Ru(this.data,this.cursor)},t.prototype.nextUint8Array=function(t){return Iu(this.data,this.cursor,t)},t.prototype.nextUint32Array=function(t){return function(t,n,i){for(var e=[],r=0;r<i;r++)e.push(Eu(t,n));return e}(this.data,this.cursor,t)},t.prototype.nextChars=function(t){return ku(this.data,this.cursor,t)},t.prototype.nextUTF8String=function(){return Ou(this.data,this.cursor)},t.prototype.skip=function(t){this.cursor.shift(t)},t.prototype.clone=function(){return new t(this.data,this.cursor.clone())},t}();function Du(t,n){return t.type===n}var xu=8;function Cu(t,n){var i=n.offset,e=function(t,n){var i=n.offset;if(!Tu(t,n,xu)){var e=n.offset+xu;return{complete:!1,neededOffset:e}}var r=Eu(t,n),o=ku(t,n,4);if(1===r){if(!Tu(t,n,8)){var e=n.offset+8;return n.seek(i),{complete:!1,neededOffset:e}}r=Ru(t,n).toNumber()}if("uuid"===o){if(!Tu(t,n,16)){var e=n.offset+16;return n.seek(i),{complete:!1,neededOffset:e}}o=ku(t,n,16)}var u=n.offset;return{complete:!0,header:{type:o,size:r,headerSize:u-i}}}(t,n);if(!e.complete)return e;var r=e.header,o=r.size;0===o&&(o=t.byteLength-i);var u=i+o;if(u>t.byteLength){var s=u;return n.seek(i),{complete:!1,neededOffset:s}}var f,h,c,a={type:r.type,offset:i,data:new Au((f=t,h=i,c=u,void 0===h&&(h=0),void 0===c&&(c=f.byteLength),new DataView(f.buffer,f.byteOffset+h,c-h)),new Pu(r.headerSize))};return n.seek(u),{complete:!0,box:a}}!function(t){function n(){return t.call(this,"mdir")||this}ou(n,t),n.prototype.serializeReserved=function(t){t.writer.writeString("appl"),t.writer.writeUInt(0,32),t.writer.writeUInt(0,32)}}(function(t){function n(n,i,e,r){void 0===e&&(e=0),void 0===r&&(r=0);var o=t.call(this,"hdlr",e,r)||this;return o.name=i,o.handlerType=n,o}return ou(n,t),c.defineProperty(n.prototype,"handlerType",{get:function(){return this.Eo},set:function(t){this.Eo=t},enumerable:!1,configurable:!0}),n.prototype.serializeReserved=function(t){t.writer.writeUInt(0,32),t.writer.writeUInt(0,32),t.writer.writeUInt(0,32)},n.prototype.getBoxContentSize=function(){var n,i;return t.prototype.getBoxContentSize.call(this)+4+4+12+(null!==(i=null===(n=this.name)||void 0===n?void 0:n.length)&&void 0!==i?i:0)+1},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(0,32),n.writer.writeString(this.handlerType),this.serializeReserved(n),this.name&&n.writer.writeString(this.name),n.writer.writeByte(0)},n}(mu));var Bu=function(){function t(t,n){void 0===n&&(n=!1),this.fixed28BitMode=n,this.tag=t}return t.prototype.encodeSize=function(t){for(var n=[];t>0;)n.length>0&&(n[n.length-1]+=128),n.push(t%128),t>>=7;if(this.fixed28BitMode)for(;n.length<4;)n.push(128);return n.reverse()},c.defineProperty(t.prototype,"tag",{get:function(){return this.Io},set:function(t){if(!wu(t,8))throw new f("Provided tag does not fit in 8 bits.");this.Io=t},enumerable:!1,configurable:!0}),t.prototype.getSize=function(){return this.getDescriptorSize()+1+this.encodeSize(this.getDescriptorSize()).length},t.prototype.serialize=function(t){t.writer.writeByte(this.tag);for(var n=0,i=this.encodeSize(this.getDescriptorSize());n<i.length;n++){var e=i[n];t.writer.writeByte(e)}this.serializeDescriptorContent(t)},t}();!function(t){function n(n,i,e,r,o,u,s){void 0===s&&(s={});var f=t.call(this,4,s.fixed28BitMode)||this;return f.upStream=e,f.decoderSpecificInfo=u,f.objectTypeIndication=n,f.streamType=i,f.bufferSizeDb=r,f.maxBitrate=o.max,f.avgBitrate=o.avg,f}ou(n,t),c.defineProperty(n.prototype,"objectTypeIndication",{get:function(){return this.Ro},set:function(t){if(!wu(t,8))throw new f("Provided objectTypeIndication does not fit in 8 bits.");this.Ro=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"streamType",{get:function(){return this.No},set:function(t){if(!wu(t,6))throw new f("Provided streamType does not fit in 6 bits.");this.No=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"bufferSizeDb",{get:function(){return this.Do},set:function(t){if(!wu(t,24))throw new f("Provided bufferSizeDb does not fit in 24 bits.");this.Do=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"maxBitrate",{get:function(){return this.Co},set:function(t){if(!wu(t,32))throw new f("Provided maxBitrate does not fit in 32 bits.");this.Co=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"avgBitrate",{get:function(){return this.Po},set:function(t){if(!wu(t,32))throw new f("Provided avgBitrate does not fit in 32 bits.");this.Po=t},enumerable:!1,configurable:!0}),n.prototype.getDescriptorSize=function(){return 13+this.decoderSpecificInfo.reduce(function(t,n){return t+n.getSize()},0)},n.prototype.serializeDescriptorContent=function(t){t.writer.writeByte(this.objectTypeIndication),t.writer.writeUInt(this.streamType,6),t.writer.writeBool(this.upStream),t.writer.writeBit(1),t.writer.writeUInt(this.bufferSizeDb,24),t.writer.writeUInt(this.maxBitrate,32),t.writer.writeUInt(this.avgBitrate,32);for(var n=0,i=this.decoderSpecificInfo;n<i.length;n++){i[n].serialize(t)}}}(Bu),function(t){function n(n,i){void 0===i&&(i={});var e=t.call(this,5,i.fixed28BitMode)||this;return e.data=n,e}ou(n,t),n.prototype.getDescriptorSize=function(){return this.data.length},n.prototype.serializeDescriptorContent=function(t){t.concat(au.from(this.data))}}(Bu);var Fu=function(t){function n(n){void 0===n&&(n=!1);var i=t.call(this,6,n)||this;return i.predefined=2,i}return ou(n,t),n.prototype.getDescriptorSize=function(){return 1},n.prototype.serializeDescriptorContent=function(t){t.writer.writeByte(this.predefined)},n}(Bu);!function(t){function n(n,i,e,r){void 0===r&&(r={});var o=t.call(this,3,r.fixed28BitMode)||this;return o.decoderConfigDescriptor=e,o.esId=n,o.streamPriority=i,o.dependsOnEsId=null==r?void 0:r.dependsOnEsId,o.urlString=null==r?void 0:r.url,o.ocrEsId=null==r?void 0:r.ocrEsId,o.slConfigDescriptor=new Fu(r.fixed28BitMode),o}ou(n,t),c.defineProperty(n.prototype,"streamDependenceFlag",{get:function(){return void 0!==this.dependsOnEsId},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"urlFlag",{get:function(){return void 0!==this.urlString},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"ocrStreamFlag",{get:function(){return void 0!==this.ocrEsId},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"esId",{get:function(){return this.Oo},set:function(t){if(!wu(t,16))throw new f("Provided esId does not fit in 16 bits.");this.Oo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"streamPriority",{get:function(){return this.Bo},set:function(t){if(!wu(t,5))throw new f("Provided streamPriority does not fit in 5 bits.");this.Bo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"dependsOnEsId",{get:function(){return this.Lo},set:function(t){if(t&&!wu(t,16))throw new f("Provided dependsOnEsId does not fit in 16 bits.");this.Lo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"ocrEsId",{get:function(){return this.Mo},set:function(t){if(t&&!wu(t,16))throw new f("Provided ocrEsId does not fit in 16 bits.");this.Mo=t},enumerable:!1,configurable:!0}),n.prototype.getDescriptorSize=function(){return 3+(this.streamDependenceFlag?2:0)+(this.urlFlag?1+this.urlString.length:0)+(this.ocrStreamFlag?2:0)+this.decoderConfigDescriptor.getSize()+this.slConfigDescriptor.getSize()},n.prototype.serializeDescriptorContent=function(t){t.writer.writeUInt(this.esId,16),t.writer.writeBool(this.streamDependenceFlag),t.writer.writeBool(this.urlFlag),t.writer.writeBool(this.ocrStreamFlag),t.writer.writeUInt(this.streamPriority,5),this.streamDependenceFlag&&t.writer.writeUInt(this.dependsOnEsId,16),this.urlFlag&&(t.writer.writeByte(this.urlString.length),t.writer.writeString(this.urlString)),this.ocrStreamFlag&&t.writer.writeUInt(this.ocrEsId,16),this.decoderConfigDescriptor.serialize(t),this.slConfigDescriptor.serialize(t)}}(Bu);var Lu=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.boxes=[],n}return ou(n,t),n.prototype.getSize=function(){return t.prototype.getSize.call(this)+this.boxes.reduce(function(t,n){return t+n.getSize()},0)},n.prototype.serialize=function(){for(var n=t.prototype.serialize.call(this),i=0,e=this.boxes;i<e.length;i++){var r=e[i];n=n.concat(r.serialize())}return n},n}(lu),Uu=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return ou(n,t),n.prototype.serializeBoxContent=function(t){},n.prototype.getBoxContentSize=function(){return 0},n}(Lu),Mu=function(t){function n(n,i){var e=t.call(this,n)||this;return e.dataReferenceIndex=i,e}return ou(n,t),c.defineProperty(n.prototype,"dataReferenceIndex",{get:function(){return this.xo},set:function(t){if(!wu(t,16))throw new f("Provided dataReferenceIndex does not fit in 16 bits.");this.xo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 8},n.prototype.serializeBoxContent=function(t){for(var n=0;n<6;n++)t.writer.writeByte(0);t.writer.writeUInt(this.dataReferenceIndex,16)},n}(Uu),zu=function(t){function n(n,i,e,r){var o,u,s=this;return(s=t.call(this,n,i)||this).extra=r,s.channelCount=null!==(o=e.channelCount)&&void 0!==o?o:2,s.sampleSize=null!==(u=e.sampleSize)&&void 0!==u?u:16,s.sampleRate=e.sampleRate,s}return ou(n,t),c.defineProperty(n.prototype,"channelCount",{get:function(){return this.Fo},set:function(t){if(!wu(t,16))throw new f("Provided channelCount does not fit in 16 bits.");this.Fo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"sampleSize",{get:function(){return this.Uo},set:function(t){if(!wu(t,16))throw new f("Provided sampleSize does not fit in 16 bits.");this.Uo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"sampleRate",{get:function(){return this.Ho},set:function(t){if(!wu(bu(t,16),32))throw new f("Provided rate does not fit in 32 bits (fixed 16.16).");this.Ho=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){var n,i;return t.prototype.getBoxContentSize.call(this)+8+2+2+2+2+(void 0!==this.sampleRate?4:0)+(null!==(i=null===(n=this.extra)||void 0===n?void 0:n.length)&&void 0!==i?i:0)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),n.writer.writeUInt(this.channelCount,16),n.writer.writeUInt(this.sampleSize,16),n.writer.writeUInt(0,16),n.writer.writeUInt(0,16),n.writer.writeUInt(bu(this.sampleRate,16),32),this.extra&&gu(n.writer,this.extra)},n}(Mu);!function(t){function n(n){var i=t.call(this,"stco",0,0)||this;return i.entries=n,i}ou(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Vo},set:function(t){if(!wu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!wu(t,32)}))throw new f("Not all entries can be represented in 32 bits.");this.Vo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r,32)}}}(mu),function(t){function n(n){var i=t.call(this,"clap")||this;return i.cleanApertureWidthN=n.cleanApertureWidthN,i.cleanApertureWidthD=n.cleanApertureWidthD,i.cleanApertureHeightN=n.cleanApertureHeightN,i.cleanApertureHeightD=n.cleanApertureHeightD,i.horizOffN=n.horizOffN,i.horizOffD=n.horizOffD,i.vertOffN=n.vertOffN,i.vertOffD=n.vertOffD,i}ou(n,t),c.defineProperty(n.prototype,"cleanApertureWidthN",{get:function(){return this.Xo},set:function(t){if(!wu(t,32))throw new f("Provided cleanApertureWidthN does not fit in 32 bits.");this.Xo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"cleanApertureWidthD",{get:function(){return this.zo},set:function(t){if(!wu(t,32))throw new f("Provided cleanApertureWidthD does not fit in 32 bits.");this.zo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"cleanApertureHeightN",{get:function(){return this.qo},set:function(t){if(!wu(t,32))throw new f("Provided cleanApertureHeightN does not fit in 32 bits.");this.qo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"cleanApertureHeightD",{get:function(){return this.Wo},set:function(t){if(!wu(t,32))throw new f("Provided cleanApertureHeightD does not fit in 32 bits.");this.Wo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"horizOffN",{get:function(){return this.Go},set:function(t){if(!wu(t,32))throw new f("Provided horizOffN does not fit in 32 bits.");this.Go=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"horizOffD",{get:function(){return this.Yo},set:function(t){if(!wu(t,32))throw new f("Provided horizOffD does not fit in 32 bits.");this.Yo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"vertOffN",{get:function(){return this.Qo},set:function(t){if(!wu(t,32))throw new f("Provided vertOffN does not fit in 32 bits.");this.Qo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"vertOffD",{get:function(){return this.jo},set:function(t){if(!wu(t,32))throw new f("Provided vertOffD does not fit in 32 bits.");this.jo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 32},n.prototype.serializeBoxContent=function(t){t.writer.writeUInt(this.cleanApertureWidthN,32),t.writer.writeUInt(this.cleanApertureWidthD,32),t.writer.writeUInt(this.cleanApertureHeightN,32),t.writer.writeUInt(this.cleanApertureHeightD,32),t.writer.writeUInt(this.horizOffN,32),t.writer.writeUInt(this.horizOffD,32),t.writer.writeUInt(this.vertOffN,32),t.writer.writeUInt(this.vertOffD,32)}}(lu),function(t){function n(n,i){var e=t.call(this,"ctts",n,0)||this;return e.entries=i,e}ou(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Vo},set:function(t){if(!wu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!wu(t.sampleCount,32)||!wu(t.sampleOffset,32)}))throw new f("Not all entries can be represented in 64 bits.");this.Vo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+8*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r.sampleCount,32),0===this.version?n.writer.writeUInt(r.sampleOffset,32):1===this.version&&n.writer.writeInt(r.sampleOffset,32)}}}(mu),function(t){function n(n){var i=t.call(this,"url ",0,void 0===n?1:0)||this;return i.location=n,i}ou(n,t),c.defineProperty(n.prototype,"location",{get:function(){return this.Ko},set:function(t){this.flags=void 0===t?1:0,this.Ko=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){var n=t.prototype.getBoxContentSize.call(this);return this.location?n+this.location.length+1:n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.location&&(n.writer.writeString(this.location),n.writer.writeByte(0))}}(mu),function(t){function n(n,i,e){var r=t.call(this,"urn ",0,e)||this;return r.name=n,r.location=i,r}ou(n,t),c.defineProperty(n.prototype,"location",{get:function(){return this.Ko},set:function(t){if(1&this.flags)throw new f("The moov containment flag is set, a DataEntryUrlBox should be used instead.");this.Ko=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){var n=t.prototype.getBoxContentSize.call(this)+this.name.length+1;return this.location?n+this.location.length+1:n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeString(this.name),n.writer.writeByte(0),this.location&&(n.writer.writeString(this.location),n.writer.writeByte(0))}}(mu),function(t){function n(){return t.call(this,"dinf")||this}ou(n,t)}(Uu);var Wu=function(t){function n(n,i,e){var r=t.call(this,n)||this;if(r.version=i,!wu(i,8))throw new f("the provided version cannot fit in 8 bits.");return r.flags=e,r}return ou(n,t),c.defineProperty(n.prototype,"flags",{get:function(){return this.So},set:function(t){this.So=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4},n.prototype.serializeFlags=function(t){if("number"!=typeof this.flags)throw new f("Missing custom serializeFlags method.");t.writer.writeUInt(this.flags,24)},n.prototype.serializeBoxContent=function(t){t.writer.writeByte(this.version),this.serializeFlags(t)},n}(Lu);!function(t){function n(){return t.call(this,"dref",0,0)||this}ou(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.boxes.length,32)}}(Wu);var qu=function(t){function n(n,i,e){void 0===e&&(e=0);var r=t.call(this,"elst",i,e)||this;return r.entries=n,r}return ou(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"entries",{get:function(){return this.Vo},set:function(t){for(var n=0,i=t;n<i.length;n++){var e=i[n];if(!wu(e.segmentDuration,this.bitSize))throw new f("SegmentDuration of one of the entries does not fit in ".concat(this.bitSize," bits."));if(!wu(e.mediaTime,this.bitSize))throw new f("MediaTime of one of the entries does not fit in ".concat(this.bitSize," bits."));if(!wu(e.mediaRateInteger,16))throw new f("Provided mediaRateInteger does not fit in 16 bits.");if(e.mediaRateFraction&&!wu(e.mediaRateFraction,16))throw new f("Provided mediaRateFraction does not fit in 16 bits.")}this.Vo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+this.entries.length*(2*this.bitSize/8+2+2)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32),this.serializeElstBoxContent(n)},n}(mu);!function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,0,i)||this}ou(n,t),n.prototype.serializeElstBoxContent=function(t){for(var n,i=0,e=this.entries;i<e.length;i++){var r=e[i];t.writer.writeUInt(r.segmentDuration,32),t.writer.writeInt(r.mediaTime,32),t.writer.writeUInt(r.mediaRateInteger,16),t.writer.writeUInt(null!==(n=r.mediaRateFraction)&&void 0!==n?n:0,16)}}}(qu),function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,1,i)||this}ou(n,t),n.prototype.serializeElstBoxContent=function(t){for(var n,i=0,e=this.entries;i<e.length;i++){var r=e[i];t.writer.writeUInt(r.segmentDuration.getHighBitsUnsigned(),32),t.writer.writeUInt(r.segmentDuration.getLowBitsUnsigned(),32),t.writer.writeInt(r.mediaTime.getHighBits(),32),t.writer.writeInt(r.mediaTime.getLowBits(),32),t.writer.writeUInt(r.mediaRateInteger,16),t.writer.writeUInt(null!==(n=r.mediaRateFraction)&&void 0!==n?n:0,16)}}}(qu),function(t){function n(){return t.call(this,"edts")||this}ou(n,t)}(Uu);var ju=function(t){function n(n,i,e,r){var o=t.call(this,n)||this;return o.majorBrand=i,o.minorVersion=e,o.compatibleBrands=r,o}return ou(n,t),c.defineProperty(n.prototype,"majorBrand",{get:function(){return this.Zo},set:function(t){if(4!==t.length)throw new f("the provided major brand does not conform to the 4 character requirement");this.Zo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"minorVersion",{get:function(){return this.Jo},set:function(t){if(!wu(t,32))throw new f("the provided minor version does not fit in 32 bits.");this.Jo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"compatibleBrands",{get:function(){return this.$o},set:function(t){if(t.some(function(t){return 4!==t.length}))throw new f("Some of the compatible brands do not conform to the 4 character requirement");this.$o=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4*(2+this.compatibleBrands.length)},n.prototype.serializeBoxContent=function(t){t.writer.writeString(this.majorBrand),t.writer.writeUInt(this.minorVersion,32);for(var n=0,i=this.compatibleBrands;n<i.length;n++){var e=i[n];t.writer.writeString(e)}},n}(lu);!function(t){function n(n,i,e){return t.call(this,"ftyp",n,i,e)||this}ou(n,t)}(ju),function(t){function n(n,i){void 0===i&&(i="free");var e=t.call(this,i)||this;return e.data=n,e}ou(n,t),n.prototype.getBoxContentSize=function(){var t,n;return null!==(n=null===(t=this.data)||void 0===t?void 0:t.length)&&void 0!==n?n:0},n.prototype.serializeBoxContent=function(t){this.data&&t.concat(au.from(this.data))}}(lu);var Vu,Hu=function(t){function n(n,i,e,r){void 0===r&&(r=0);var o=t.call(this,"mdhd",e,r)||this;return o.creationTime=n.creation,o.modificationTime=n.modification,o.timescale=n.scale,o.duration=n.duration,o.language=i,o}return ou(n,t),c.defineProperty(n.prototype,"creationTime",{get:function(){return this.nh},set:function(t){if(!wu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.nh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"modificationTime",{get:function(){return this.ih},set:function(t){if(!wu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.ih=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"timescale",{get:function(){return this.eh},set:function(t){if(!wu(t,32))throw new f("Provided sequence number does not fit in 32 bits.");this.eh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"duration",{get:function(){return this.rh},set:function(t){if(!wu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.rh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"language",{get:function(){return this.sh},set:function(t){if(!function(t){return/^[a-z]{3}$/.test(t)}(t))throw new f("Expected an ISO-639-2/T language code");this.sh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8*3+4+2+2},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.serializeMdiaContent(n),n.writer.writeBit(0);for(var i=0,e=this.language;i<e.length;i++){var r=e[i];n.writer.writeUInt(r.charCodeAt(0)-96,5)}n.writer.writeUInt(0,16)},n}(mu);!function(t){function n(n,i,e){return void 0===e&&(e=0),t.call(this,n,i,0,e)||this}ou(n,t),n.prototype.serializeMdiaContent=function(t){t.writer.writeUInt(this.creationTime,32),t.writer.writeUInt(this.modificationTime,32),t.writer.writeUInt(this.timescale,32),t.writer.writeUInt(this.duration,32)}}(Hu),function(t){function n(n,i,e){return void 0===e&&(e=0),t.call(this,n,i,1,e)||this}ou(n,t),n.prototype.serializeMdiaContent=function(t){t.writer.writeUInt(this.creationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.creationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.timescale,32),t.writer.writeUInt(this.duration.getHighBitsUnsigned(),32),t.writer.writeUInt(this.duration.getLowBitsUnsigned(),32)}}(Hu),function(t){function n(){return t.call(this,"mdia")||this}ou(n,t)}(Uu),function(t){function n(){var n=t.call(this,"mdat")||this;return n.data=new au,n}ou(n,t),n.prototype.getBoxContentSize=function(){return this.data.length},n.prototype.serializeBoxContent=function(t){t.concat(this.data)}}(lu),function(t){function n(){return t.call(this,"minf")||this}ou(n,t)}(Uu),function(t){function n(n){var i=t.call(this,"meta",0,0)||this;return i.handler=n,i}ou(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.handler.getSize()},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.concat(this.handler.serialize())}}(Wu),function(t){t.VIDEO="vide",t.AUXILIARY_VIDEO="auxv",t.AUDIO="soun",t.METADATA="meta",t.HINT="hint",t.TEXT="text",t.SUBTITLE="subt",t.FONT="fdsm"}(Vu||(Vu={}));var Xu,Gu,Yu={a:1,b:0,u:0,c:0,d:1,v:0,x:0,y:0,w:1};function Ku(t,n){n.writer.writeUInt(bu(t.a,16),32),n.writer.writeUInt(bu(t.b,16),32),n.writer.writeUInt(bu(0,30),32),n.writer.writeUInt(bu(t.c,16),32),n.writer.writeUInt(bu(t.d,16),32),n.writer.writeUInt(bu(0,30),32),n.writer.writeUInt(bu(t.x,16),32),n.writer.writeUInt(bu(t.y,16),32),n.writer.writeUInt(bu(1,30),32)}function $u(t,n){var i,e,r,o;n.writer.writeUInt(null!==(i=t.isLeading)&&void 0!==i?i:Xu.UNKNOWN,2),n.writer.writeUInt(null!==(e=t.sampleDependsOn)&&void 0!==e?e:Gu.UNKNOWN,2),n.writer.writeUInt(null!==(r=t.sampleIsDependedOn)&&void 0!==r?r:Gu.UNKNOWN,2),n.writer.writeUInt(null!==(o=t.sampleHasRedundancy)&&void 0!==o?o:Gu.UNKNOWN,2)}function Ju(t,n){var i,e,r;n.writer.writeUInt(0,4),$u(t,n),n.writer.writeUInt(null!==(i=t.samplePaddingValue)&&void 0!==i?i:0,3),n.writer.writeBool(null!==(e=t.sampleIsNonSyncSample)&&void 0!==e&&e),n.writer.writeUInt(null!==(r=t.sampleDegradationPriority)&&void 0!==r?r:0,16)}!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WITH_DEPENDENCY=1]="WITH_DEPENDENCY",t[t.NO=2]="NO",t[t.WITHOUT_DEPENDENCY=3]="WITHOUT_DEPENDENCY"}(Xu||(Xu={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.YES=1]="YES",t[t.NO=2]="NO",t[t.RESERVED=3]="RESERVED"}(Gu||(Gu={}));var Zu=function(){return function(){}}(),Qu=function(t){function n(n,i,e){var r=t.call(this,"pssh",n,0)||this;return r.systemId=i,r.data=e,r}return ou(n,t),c.defineProperty(n.prototype,"systemId",{get:function(){return this.uh},set:function(t){if(16!==t.length)throw new f("Provided systemId length is not 16.");this.uh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"data",{get:function(){return this.Gi},set:function(t){if(!wu(t.length,32))throw new f("Provided data length does not fit in 32 bits.");this.Gi=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+16+4+this.data.length},n.prototype.serializeVersionBoxContent=function(t){},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.concat(au.from(this.systemId)),this.serializeVersionBoxContent(n),n.writer.writeUInt(this.data.length,32),n.concat(au.from(this.data))},n}(mu),ts=function(t){function n(n,i){return t.call(this,0,n,i)||this}return ou(n,t),n}(Qu),ns=function(t){function n(n,i,e){var r=t.call(this,1,n,i)||this;return r.kIds=e,r}return ou(n,t),c.defineProperty(n.prototype,"kIds",{get:function(){return this.oh},set:function(t){if(!wu(t.length,32))throw new f("Provided kIds length cannot fit in 32 bits.");if(t.some(function(t){return 16!==t.length}))throw new f("Not all provided key ids are 16 bytes long.");this.oh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+16*this.kIds.length},n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.kIds.length,32);for(var n=0,i=this.kIds;n<i.length;n++){var e=i[n];t.concat(au.from(e))}},n}(Qu);var is=function(t){function n(n,i,e){void 0===e&&(e=0);var r=t.call(this,"mehd",i,e)||this;return r.fragmentDuration=n,r}return ou(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"fragmentDuration",{get:function(){return this.hh},set:function(t){if(!wu(t,this.bitSize))throw new f("The provided fragmentDuration does not fit in ".concat(this.bitSize," bits."));this.hh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8},n}(mu);!function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,0,i)||this}ou(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.fragmentDuration,32)}}(is),function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,1,i)||this}ou(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.fragmentDuration.getHighBitsUnsigned(),32),n.writer.writeUInt(this.fragmentDuration.getLowBitsUnsigned(),32)}}(is),function(t){function n(n,i,e,r){void 0===i&&(i={}),void 0===e&&(e=0),void 0===r&&(r=0);var o,u,s,f=this;return(f=t.call(this,"trex",e,r)||this).trackId=n,f.defaultSampleDescriptionIndex=null!==(o=null==i?void 0:i.sampleDescriptionIndex)&&void 0!==o?o:0,f.defaultSampleDuration=null!==(u=i.sampleDuration)&&void 0!==u?u:0,f.defaultSampleSize=null!==(s=i.sampleSize)&&void 0!==s?s:0,f.defaultSampleFlags=i.sampleFlags,f}ou(n,t),c.defineProperty(n.prototype,"trackId",{get:function(){return this.ah},set:function(t){if(!wu(t,32))throw new f("Provided track id does not fit in 32 bits.");this.ah=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleDescriptionIndex",{get:function(){return this.fh},set:function(t){if(!wu(t,32))throw new f("Provided default sample description index does not fit in 32 bits.");this.fh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleDuration",{get:function(){return this.vh},set:function(t){if(!wu(t,32))throw new f("Provided default sample duration does not fit in 32 bits.");this.vh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleSize",{get:function(){return this.dh},set:function(t){if(!wu(t,32))throw new f("Provided default sample size does not fit in 32 bits.");this.dh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleFlags",{get:function(){return this.lh},set:function(t){if((null==t?void 0:t.samplePaddingValue)&&!wu(t.samplePaddingValue,3))throw new f("Provided sample padding value does not fit in 3 bits.");if((null==t?void 0:t.sampleDegradationPriority)&&!wu(t.sampleDegradationPriority,16))throw new f("Provided sample degradation priority does not fit in 16 bits.");this.lh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+20},n.prototype.serializeBoxContent=function(n){var i;t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.trackId,32),n.writer.writeUInt(this.defaultSampleDescriptionIndex,32),n.writer.writeUInt(this.defaultSampleDuration,32),n.writer.writeUInt(this.defaultSampleSize,32),Ju(null!==(i=this.defaultSampleFlags)&&void 0!==i?i:{},n)}}(mu),function(t){function n(){return t.call(this,"mvex")||this}ou(n,t)}(Uu);var es=function(t){function n(i,e,r,o,u){void 0===u&&(u=0);var s,f,h,c=this;return(c=t.call(this,"mvhd",o,u)||this).creationTime=i.creation,c.modificationTime=i.modification,c.timescale=i.scale,c.duration=i.duration,c.rate=null!==(s=r.rate)&&void 0!==s?s:n.DEFAULT_RATE,c.volume=null!==(f=r.volume)&&void 0!==f?f:n.DEFAULT_VOLUME,c.matrix=null!==(h=r.matrix)&&void 0!==h?h:Yu,c._h=e,c}return ou(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"creationTime",{get:function(){return this.nh},set:function(t){if(!wu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.nh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"modificationTime",{get:function(){return this.ih},set:function(t){if(!wu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.ih=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"timescale",{get:function(){return this.eh},set:function(t){if(!wu(t,32))throw new f("Provided sequence number does not fit in 32 bits.");this.eh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"duration",{get:function(){return this.rh},set:function(t){if(!wu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.rh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"rate",{get:function(){return this.gh},set:function(t){if(!wu(bu(t,16),32))throw new f("Provided rate does not fit in 32 bits (fixed 16.16).");this.gh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"volume",{get:function(){return this.wh},set:function(t){if(!wu(bu(t,8),16))throw new f("Provided volume does not fit in 16 bits (fixed 8.8).");this.wh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"matrix",{get:function(){return this.kh},set:function(t){if(0!==t.u||0!==t.v||1!==t.w)throw new f("(u, v, w) does not match the required (0, 0, 1)");this.kh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"nextTrackId",{get:function(){return this._h},set:function(t){if(0===t)throw new f("NextTrackId cannot be 0.");if(!wu(t,32))throw new f("NextTrackId cannot exceed 32 bits.");this._h=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8*3+4+4+2+2+8+36+24+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.serializeMvhdContent(n),n.writer.writeUInt(bu(this.rate,16),32),n.writer.writeUInt(bu(this.volume,8),16),n.writer.writeUInt(0,16),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),Ku(this.matrix,n);for(var i=0;i<6;i++)n.writer.writeUInt(0,32);n.writer.writeUInt(this.nextTrackId,32)},n.DEFAULT_RATE=1,n.DEFAULT_VOLUME=1,n}(mu);!function(t){function n(n,i,e,r){return void 0===e&&(e={}),void 0===r&&(r=0),t.call(this,n,i,e,0,r)||this}ou(n,t),n.prototype.serializeMvhdContent=function(t){t.writer.writeUInt(this.creationTime,32),t.writer.writeUInt(this.modificationTime,32),t.writer.writeUInt(this.timescale,32),t.writer.writeUInt(this.duration,32)}}(es),function(t){function n(n,i,e,r){return void 0===e&&(e={}),void 0===r&&(r=0),t.call(this,n,i,e,1,r)||this}ou(n,t),n.prototype.serializeMvhdContent=function(t){t.writer.writeUInt(this.creationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.creationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.timescale,32),t.writer.writeUInt(this.duration.getHighBitsUnsigned(),32),t.writer.writeUInt(this.duration.getLowBitsUnsigned(),32)}}(es);var rs=function(t){function n(n,i,e,r,o,u,s){void 0===s&&(s={});var f,h,c,a=this;return(a=t.call(this,"tkhd",n,function(t){var n,i,e,r;return{trackEnabled:null===(n=null==t?void 0:t.trackEnabled)||void 0===n||n,trackInMovie:null===(i=null==t?void 0:t.trackInMovie)||void 0===i||i,trackInPreview:null===(e=null==t?void 0:t.trackInPreview)||void 0===e||e,trackSizeIsAspectRatio:null!==(r=null==t?void 0:t.trackSizeIsAspectRatio)&&void 0!==r&&r}}(s))||this).creationTime=i.creation,a.modificationTime=i.modification,a.trackId=e,a.duration=i.duration,a.volume=r,a.width=o,a.height=u,a.layer=null!==(f=s.layer)&&void 0!==f?f:0,a.alternateGroup=null!==(h=s.alternateGroup)&&void 0!==h?h:0,a.matrix=null!==(c=s.matrix)&&void 0!==c?c:Yu,a}return ou(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"creationTime",{get:function(){return this.nh},set:function(t){if(!wu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.nh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"modificationTime",{get:function(){return this.ih},set:function(t){if(!wu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.ih=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"trackId",{get:function(){return this.ah},set:function(t){if(0===t)throw new f("trackId cannot be 0.");if(!wu(t,32))throw new f("trackId cannot exceed 32 bits.");this.ah=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"duration",{get:function(){return this.rh},set:function(t){if(!wu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.rh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"volume",{get:function(){return this.wh},set:function(t){if(!wu(bu(t,8),16))throw new f("Provided volume does not fit in 16 bits (fixed 8.8).");this.wh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"width",{get:function(){return this.yh},set:function(t){if(!wu(bu(t,16),32))throw new f("Provided width does not fit in 32 bits (fixed 16.16).");this.yh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"height",{get:function(){return this.ph},set:function(t){if(!wu(bu(t,16),32))throw new f("Provided height does not fit in 32 bits (fixed 16.16).");this.ph=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"layer",{get:function(){return this.Ah},set:function(t){if(!wu(t,16))throw new f("Provided layer does not fit in 16 bits.");this.Ah=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"alternateGroup",{get:function(){return this.Th},set:function(t){if(!wu(t,16))throw new f("Provided alternateGroup does not fit in 16 bits.");this.Th=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"matrix",{get:function(){return this.kh},set:function(t){if(0!==t.u||0!==t.v||1!==t.w)throw new f("(u, v, w) does not match the required (0, 0, 1)");this.kh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8*3+4+4+8+2+2+2+2+36+4+4},n.prototype.serializeFlags=function(t){t.writer.writeUInt(0,20),t.writer.writeBool(this.flags.trackSizeIsAspectRatio),t.writer.writeBool(this.flags.trackInPreview),t.writer.writeBool(this.flags.trackInMovie),t.writer.writeBool(this.flags.trackEnabled)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.serializeTkhdContent(n),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),n.writer.writeUInt(this.layer,16),n.writer.writeUInt(this.alternateGroup,16),n.writer.writeUInt(bu(this.volume,8),16),n.writer.writeUInt(0,16),Ku(this.matrix,n),n.writer.writeUInt(bu(this.width,16),32),n.writer.writeUInt(bu(this.height,16),32)},n}(mu);!function(t){function n(n,i,e,r,o,u){return t.call(this,0,n,i,e,r,o,u)||this}ou(n,t),n.prototype.serializeTkhdContent=function(t){t.writer.writeUInt(this.creationTime,32),t.writer.writeUInt(this.modificationTime,32),t.writer.writeUInt(this.trackId,32),t.writer.writeUInt(0,32),t.writer.writeUInt(this.duration,32)}}(rs),function(t){function n(n,i,e,r,o,u){return t.call(this,1,n,i,e,r,o,u)||this}ou(n,t),n.prototype.serializeTkhdContent=function(t){t.writer.writeUInt(this.creationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.creationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.trackId,32),t.writer.writeUInt(0,32),t.writer.writeUInt(this.duration.getHighBitsUnsigned(),32),t.writer.writeUInt(this.duration.getLowBitsUnsigned(),32)}}(rs),function(t){function n(){return t.call(this,"trak")||this}ou(n,t)}(Uu),function(t){function n(){return t.call(this,"moov")||this}ou(n,t)}(Uu);var os=function(t){function n(n,i,e){void 0===e&&(e=0);var r=t.call(this,"tfdt",i,e)||this;return r.baseMediaDecodeTime=n,r}return ou(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"baseMediaDecodeTime",{get:function(){return this.Sh},set:function(t){if(!wu(t,this.bitSize))throw new f("Provided baseMediaDecodeTime does not fit in ".concat(this.bitSize," bits."));this.Sh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8},n}(mu);!function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,0,i)||this}ou(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.baseMediaDecodeTime,32)}}(os),function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,1,i)||this}ou(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.baseMediaDecodeTime.getHighBitsUnsigned(),32),n.writer.writeUInt(this.baseMediaDecodeTime.getLowBitsUnsigned(),32)}}(os),function(t){function n(n,i){void 0===i&&(i=0);var e=t.call(this,"tfhd",i,function(t){return{baseDataOffsetPresent:void 0!==t.baseDataOffset,sampleDescriptionIndexPresent:void 0!==t.sampleDescriptionIndex,defaultSampleDurationPresent:void 0!==t.defaultSampleDuration,defaultSampleSizePresent:void 0!==t.defaultSampleSize,defaultSampleFlagsPresent:void 0!==t.defaultSampleFlags,durationIsEmpty:t.durationIsEmpty,defaultBaseIsMoof:t.defaultBaseIsMoof}}(n))||this;return e.trackId=n.trackId,e.baseDataOffset=n.baseDataOffset,e.sampleDescriptionIndex=n.sampleDescriptionIndex,e.defaultSampleDuration=n.defaultSampleDuration,e.defaultSampleSize=n.defaultSampleSize,e.defaultSampleFlags=n.defaultSampleFlags,e}ou(n,t),c.defineProperty(n.prototype,"trackId",{get:function(){return this.ah},set:function(t){if(!wu(t,32))throw new f("Provided track id does not fit in 32 bits.");this.ah=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"baseDataOffset",{get:function(){return this.Eh},set:function(t){if(void 0===t&&this.flags.baseDataOffsetPresent)throw new f("The base data offset present flag is set.");if(void 0!==t&&!this.flags.baseDataOffsetPresent)throw new f("The base data offset present flag is not set.");if(t&&!wu(t,64))throw new f("Provided baseDataOffset does not fit in 32 bits.");this.Eh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"sampleDescriptionIndex",{get:function(){return this.Ih},set:function(t){if(void 0===t&&this.flags.sampleDescriptionIndexPresent)throw new f("The sample description index flag is set.");if(void 0!==t&&!this.flags.sampleDescriptionIndexPresent)throw new f("The sample description index flag is not set.");if(t&&!wu(t,32))throw new f("Provided sampleDescriptionIndex does not fit in 32 bits.");this.Ih=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleDuration",{get:function(){return this.vh},set:function(t){if(void 0===t&&this.flags.defaultSampleDurationPresent)throw new f("The default sample duration present flag is set.");if(void 0!==t&&!this.flags.defaultSampleDurationPresent)throw new f("The default sample duration present flag is not set.");if(t&&!wu(t,32))throw new f("Provided defaultSampleDuration does not fit in 32 bits.");this.vh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleSize",{get:function(){return this.dh},set:function(t){if(void 0===t&&this.flags.defaultSampleSizePresent)throw new f("The default sample size present flag is set.");if(void 0!==t&&!this.flags.defaultSampleSizePresent)throw new f("The default sample size present flag is not set.");if(t&&!wu(t,32))throw new f("Provided defaultSampleSize does not fit in 32 bits.");this.dh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleFlags",{get:function(){return this.lh},set:function(t){if(void 0===t&&this.flags.defaultSampleFlagsPresent)throw new f("The default sample flags present flag is set.");if(void 0!==t&&!this.flags.defaultSampleFlagsPresent)throw new f("The default sample flags present flag is not set.");if((null==t?void 0:t.samplePaddingValue)&&!wu(t.samplePaddingValue,3))throw new f("Provided sample padding value does not fit in 3 bits.");if((null==t?void 0:t.sampleDegradationPriority)&&!wu(t.sampleDegradationPriority,16))throw new f("Provided sample degradation priority does not fit in 16 bits.");this.lh=t},enumerable:!1,configurable:!0}),n.prototype.serializeFlags=function(t){t.writer.writeUInt(0,6),t.writer.writeBool(this.flags.defaultBaseIsMoof),t.writer.writeBool(this.flags.durationIsEmpty),t.writer.writeByte(0),t.writer.writeUInt(0,2),t.writer.writeBool(this.flags.defaultSampleFlagsPresent),t.writer.writeBool(this.flags.defaultSampleSizePresent),t.writer.writeBool(this.flags.defaultSampleDurationPresent),t.writer.writeBit(0),t.writer.writeBool(this.flags.sampleDescriptionIndexPresent),t.writer.writeBool(this.flags.baseDataOffsetPresent)},n.prototype.getBoxContentSize=function(){var n=t.prototype.getBoxContentSize.call(this)+4;return this.flags.baseDataOffsetPresent&&(n+=8),this.flags.sampleDescriptionIndexPresent&&(n+=4),this.flags.defaultSampleDurationPresent&&(n+=4),this.flags.defaultSampleSizePresent&&(n+=4),this.flags.defaultSampleFlagsPresent&&(n+=4),n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.trackId,32),this.flags.baseDataOffsetPresent&&(n.writer.writeUInt(this.baseDataOffset.getHighBitsUnsigned(),32),n.writer.writeUInt(this.baseDataOffset.getLowBitsUnsigned(),32)),this.flags.sampleDescriptionIndexPresent&&n.writer.writeUInt(this.sampleDescriptionIndex,32),this.flags.defaultSampleDurationPresent&&n.writer.writeUInt(this.defaultSampleDuration,32),this.flags.defaultSampleSizePresent&&n.writer.writeUInt(this.defaultSampleSize,32),this.flags.defaultSampleFlagsPresent&&Ju(this.defaultSampleFlags,n)}}(mu),function(t){function n(n,i,e){var r=t.call(this,"trun",n,function(t){var n,i,e,r;return{dataOffsetPresent:void 0!==t.dataOffset,firstSampleFlagsPresent:void 0!==t.firstSampleFlags,sampleDurationPresent:null!==(n=t.sampleDurationPresent)&&void 0!==n&&n,sampleSizePresent:null!==(i=t.sampleSizePresent)&&void 0!==i&&i,sampleFlagsPresent:null!==(e=t.sampleFlagsPresent)&&void 0!==e&&e,sampleCompositionTimeOffsetsPresent:null!==(r=t.sampleCompositionTimeOffsetsPresent)&&void 0!==r&&r}}(i))||this;return r.dataOffset=i.dataOffset,r.samples=e,r.firstSampleFlags=i.firstSampleFlags,r}ou(n,t),c.defineProperty(n.prototype,"dataOffset",{get:function(){return this.Rh},set:function(t){if(t&&!wu(t,32))throw new f("Provided data offset does not fit in 32 bits.");this.Rh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"firstSampleFlags",{get:function(){return this.Nh},set:function(t){if((null==t?void 0:t.samplePaddingValue)&&!wu(t.samplePaddingValue,3))throw new f("Provided sample padding value does not fit in 3 bits.");if((null==t?void 0:t.sampleDegradationPriority)&&!wu(t.sampleDegradationPriority,16))throw new f("Provided sample degradation priority does not fit in 16 bits.");this.Nh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"samples",{get:function(){return this.Dh},set:function(t){var n,i;if(!wu(t.length,32))throw new f("The sample count cannot be represented in 32 bits.");for(var e=0,r=t;e<r.length;e++){var o=r[e];if(void 0===o.duration&&this.flags.sampleDurationPresent)throw new f("The sample duration present flag is set.");if(void 0!==o.duration&&!this.flags.sampleDurationPresent)throw new f("The sample duration present flag is not set.");if(o.duration&&!wu(o.duration,32))throw new f("Provided sample duration does not fit in 32 bits.");if(void 0===o.size&&this.flags.sampleSizePresent)throw new f("The sample size present flag is set.");if(void 0!==o.size&&!this.flags.sampleSizePresent)throw new f("The sample size present flag is not set.");if(o.size&&!wu(o.size,32))throw new f("Provided sample size does not fit in 32 bits.");if(void 0===o.flags&&this.flags.sampleFlagsPresent)throw new f("The sample flags present flag is set.");if(void 0!==o.flags&&!this.flags.sampleFlagsPresent)throw new f("The sample flags present flag is not set.");if((null===(n=o.flags)||void 0===n?void 0:n.samplePaddingValue)&&!wu(o.flags.samplePaddingValue,3))throw new f("Provided sample padding value does not fit in 3 bits.");if((null===(i=o.flags)||void 0===i?void 0:i.sampleDegradationPriority)&&!wu(o.flags.sampleDegradationPriority,16))throw new f("Provided sample degradation priority does not fit in 16 bits.");if(void 0===o.compositionTimeOffset&&this.flags.sampleCompositionTimeOffsetsPresent)throw new f("The sample compositionTimeOffset present flag is set.");if(void 0!==o.compositionTimeOffset&&!this.flags.sampleCompositionTimeOffsetsPresent)throw new f("The sample compositionTimeOffset present flag is not set.");if(o.compositionTimeOffset&&!wu(o.compositionTimeOffset,32))throw new f("Provided sample compositionTimeOffset does not fit in 32 bits.")}this.Dh=t},enumerable:!1,configurable:!0}),n.prototype.serializeFlags=function(t){t.writer.writeByte(0),t.writer.writeUInt(0,4),t.writer.writeBool(this.flags.sampleCompositionTimeOffsetsPresent),t.writer.writeBool(this.flags.sampleFlagsPresent),t.writer.writeBool(this.flags.sampleSizePresent),t.writer.writeBool(this.flags.sampleDurationPresent),t.writer.writeUInt(0,5),t.writer.writeBool(this.flags.firstSampleFlagsPresent),t.writer.writeBit(0),t.writer.writeBool(this.flags.dataOffsetPresent)},n.prototype.getBoxContentSize=function(){var n=t.prototype.getBoxContentSize.call(this)+4;return this.flags.dataOffsetPresent&&(n+=4),this.flags.firstSampleFlagsPresent&&(n+=4),this.flags.sampleDurationPresent&&(n+=4*this.samples.length),this.flags.sampleSizePresent&&(n+=4*this.samples.length),this.flags.sampleFlagsPresent&&(n+=4*this.samples.length),this.flags.sampleCompositionTimeOffsetsPresent&&(n+=4*this.samples.length),n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.samples.length,32),this.flags.dataOffsetPresent&&n.writer.writeUInt(this.dataOffset,32),this.flags.firstSampleFlagsPresent&&Ju(this.firstSampleFlags,n);for(var i=0,e=this.samples;i<e.length;i++){var r=e[i];this.flags.sampleDurationPresent&&n.writer.writeUInt(r.duration,32),this.flags.sampleSizePresent&&n.writer.writeUInt(r.size,32),this.flags.sampleFlagsPresent&&Ju(r.flags,n),this.flags.sampleCompositionTimeOffsetsPresent&&(0===this.version?n.writer.writeUInt(r.compositionTimeOffset,32):n.writer.writeInt(r.compositionTimeOffset,32))}}}(mu),function(t){function n(){return t.call(this,"traf")||this}ou(n,t)}(Uu),function(t){function n(){return t.call(this,"moof")||this}ou(n,t)}(Uu),function(t){function n(n){var i=t.call(this,"mfhd",0,0)||this;return i.sequenceNumber=n,i}ou(n,t),c.defineProperty(n.prototype,"sequenceNumber",{get:function(){return this.Ch},set:function(t){if(!wu(t,32))throw new f("Provided sequence number does not fit in 32 bits.");this.Ch=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.sequenceNumber,32)}}(mu);var us=function(t){function n(n){var i=t.call(this,"frma")||this;return i.codingName=n,i}return ou(n,t),c.defineProperty(n.prototype,"codingName",{get:function(){return this.Ph},set:function(t){if(4!==t.length)throw new f("Provided coding name was not 4 characters long.");this.Ph=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4},n.prototype.serializeBoxContent=function(t){t.writer.writeString(this.codingName)},n}(lu);!function(t){function n(n,i){var e=t.call(this,"pasp")||this;return e.hSpacing=n,e.vSpacing=i,e}ou(n,t),c.defineProperty(n.prototype,"hSpacing",{get:function(){return this.Oh},set:function(t){if(!wu(t,32))throw new f("Provided hSpacing does not fit in 32 bits.");this.Oh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"vSpacing",{get:function(){return this.Bh},set:function(t){if(!wu(t,32))throw new f("Provided vSpacing does not fit in 32 bits.");this.Bh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 8},n.prototype.serializeBoxContent=function(t){t.writer.writeUInt(this.hSpacing,32),t.writer.writeUInt(this.vSpacing,32)}}(lu),function(t){function n(n,i,e){var r=t.call(this,n)||this;return r.sample=i,r.sinf=e,r}ou(n,t),n.prototype.getBoxContentSize=function(){return this.sample.getBoxContentSize()+this.sinf.getSize()},n.prototype.serializeBoxContent=function(t){this.sample.serializeBoxContent(t),t.concat(this.sinf.serialize())}}(Uu),function(t){function n(n,i,e){var r=t.call(this,"sinf")||this;return r.schm=i,r.schi=e,r.frma=new us(n),r}ou(n,t),n.prototype.getBoxContentSize=function(){var t,n,i,e;return this.frma.getSize()+(null!==(n=null===(t=this.schm)||void 0===t?void 0:t.getSize())&&void 0!==n?n:0)+(null!==(e=null===(i=this.schi)||void 0===i?void 0:i.getSize())&&void 0!==e?e:0)},n.prototype.serializeBoxContent=function(t){t.concat(this.frma.serialize()),this.schm&&t.concat(this.schm.serialize()),this.schi&&t.concat(this.schi.serialize())}}(lu);var ss=function(t){function n(n,i,e){var r=t.call(this,"saio",n,void 0===e?0:1)||this;return r.entries=i,r.explicitAuxInfoType=e,r}return ou(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"entries",{get:function(){return this.Vo},set:function(t){var n=this;if(!wu(t.length,32))throw new f("Number of entries provided does not fit in 32 bits.");if(t.some(function(t){return!wu(t,n.bitSize)}))throw new f("Not all provided entries fit in ".concat(this.bitSize," bits."));this.Vo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"explicitAuxInfoType",{get:function(){return this.Lh},set:function(t){if(void 0===t)this.flags=0;else{if(!wu(t.auxInfoType,32))throw new f("Provided auxInfoType does not fit in 32 bits.");if(!wu(t.auxInfoTypeParameter,32))throw new f("Provided auxInfoTypeParameter does not fit in 32 bits.");this.flags=1}this.Lh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+(void 0===this.explicitAuxInfoType?0:8)+4+this.entries.length*this.bitSize/8},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),void 0!==this.explicitAuxInfoType&&(n.writer.writeUInt(this.explicitAuxInfoType.auxInfoType,32),n.writer.writeUInt(this.explicitAuxInfoType.auxInfoTypeParameter,32)),n.writer.writeUInt(this.entries.length,32),this.serializeSaioContent(n)},n}(mu);!function(t){function n(){return null!==t&&t.apply(this,arguments)||this}ou(n,t),n.prototype.serializeSaioContent=function(t){for(var n=0,i=this.entries;n<i.length;n++){var e=i[n];t.writer.writeUInt(e,32)}}}(ss),function(t){function n(){return null!==t&&t.apply(this,arguments)||this}ou(n,t),n.prototype.serializeSaioContent=function(t){for(var n=0,i=this.entries;n<i.length;n++){var e=i[n];t.writer.writeUInt(e.getHighBitsUnsigned(),32),t.writer.writeUInt(e.getLowBitsUnsigned(),32)}}}(ss),function(t){function n(n,i,e){var r=t.call(this,"saiz",0,void 0===e?0:1)||this;return r.defaultSampleInfoSize=n,r.sampleInfoSizes=i,r.explicitAuxInfoType=e,r}ou(n,t),c.defineProperty(n.prototype,"defaultSampleInfoSize",{get:function(){return this.Mh},set:function(t){if(!wu(t,8))throw new f("Provided defaultSampleInfoSize does not fit in a single byte.");this.Mh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"sampleInfoSizes",{get:function(){return this.Fh},set:function(t){if(!wu(t.length,32))throw new f("Number of sampleInfoSizes provided does not fit in 32 bits.");if(t.some(function(t){return!wu(t,8)}))throw new f("Not all provided sampleInfoSizes fit in a byte.");this.Fh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"explicitAuxInfoType",{get:function(){return this.Lh},set:function(t){if(void 0===t)this.flags=0;else{if(!wu(t.auxInfoType,32))throw new f("Provided auxInfoType does not fit in 32 bits.");if(!wu(t.auxInfoTypeParameter,32))throw new f("Provided auxInfoTypeParameter does not fit in 32 bits.");this.flags=1}this.Lh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+(void 0===this.explicitAuxInfoType?0:8)+1+4+(0!==this.defaultSampleInfoSize?0:this.sampleInfoSizes.length)},n.prototype.serializeBoxContent=function(n){if(0!==this.defaultSampleInfoSize&&this.sampleInfoSizes.length>0)throw new f("Both a default size and specific sizes are provided. This is prohibited.");t.prototype.serializeBoxContent.call(this,n),void 0!==this.explicitAuxInfoType&&(n.writer.writeUInt(this.explicitAuxInfoType.auxInfoType,32),n.writer.writeUInt(this.explicitAuxInfoType.auxInfoTypeParameter,32)),n.writer.writeByte(this.defaultSampleInfoSize),n.writer.writeUInt(this.sampleInfoSizes.length,32);for(var i=0,e=this.sampleInfoSizes;i<e.length;i++){var r=e[i];n.writer.writeByte(r)}}}(mu),function(t){function n(n){var i=t.call(this,"sdtp",0,0)||this;return i.samples=n,i}ou(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.samples.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n);for(var i=0,e=this.samples;i<e.length;i++){$u(e[i],n)}}}(mu),function(t){function n(n){return t.call(this,"stsd",n,0)||this}ou(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.boxes.length,32)}}(Wu);var fs=function(t){function n(n,i,e){var r=t.call(this,"sgpd",n,0)||this;return r.entries=e,r.groupingType=i,r}return ou(n,t),c.defineProperty(n.prototype,"groupingType",{get:function(){return this.Uh},set:function(t){if(4!==t.length)throw new f("The provided groupingType does not equal 4 characters.");this.Uh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeString(this.groupingType),this.serializeVersionBoxContent(n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];this.serializeEntryBoxContent(n,r)}},n.prototype.serializeEntryBoxContent=function(t,n){n.serializeBoxContent(t)},n}(mu);!function(t){function n(n,i){return t.call(this,0,n,i)||this}ou(n,t),n.prototype.serializeVersionBoxContent=function(t){}}(fs),function(t){function n(n,i,e){var r=t.call(this,1,n,e)||this;return r.defaultLength=i,r}ou(n,t),c.defineProperty(n.prototype,"defaultLength",{get:function(){return this.Hh},set:function(t){if(!wu(t,32))throw new f("The provided defaultLength does not fit in 32 bits.");this.Hh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+this.entries.length*(this.defaultLength||4)},n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.defaultLength,32)},n.prototype.serializeEntryBoxContent=function(t,n){0===this.defaultLength&&t.writer.writeUInt(n.getBoxContentSize(),32),n.serializeBoxContent(t)}}(fs),function(t){function n(n,i,e,r){void 0===r&&(r=0);var o=this;if(n<2)throw new f("This constructor is only meant for versions 2 and up.");return(o=t.call(this,n,i,e)||this).defaultSampleDescriptionIndex=r,o}ou(n,t),c.defineProperty(n.prototype,"defaultSampleDescriptionIndex",{get:function(){return this.fh},set:function(t){if(!wu(t,32))throw new f("The provided defaultSampleDescriptionIndex does not fit in 32 bits.");this.fh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.defaultSampleDescriptionIndex,32)}}(fs),function(t){function n(n){void 0===n&&(n=[]);var i=t.call(this,"stsz",0,0)||this;return i.sampleSizes=n,i}ou(n,t),c.defineProperty(n.prototype,"sampleSizes",{get:function(){return this.Vh},set:function(t){if(!wu(t.length,32))throw new f("Number of allowed samples cannot fit in 32 bits.");if(t.some(function(t){return!wu(t,32)}))throw new f("Not all sampleSizes can be represented in 32 bits.");this.Vh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4+4*this.sampleSizes.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(0,32),n.writer.writeUInt(this.sampleSizes.length,32);for(var i=0,e=this.sampleSizes;i<e.length;i++){var r=e[i];n.writer.writeUInt(r,32)}}}(mu),function(t){function n(n,i){void 0===n&&(n=0),void 0===i&&(i=0);var e=t.call(this,"stsz",0,0)||this;return e.defaultSampleSize=n,e.samples=i,e}ou(n,t),c.defineProperty(n.prototype,"defaultSampleSize",{get:function(){return this.dh},set:function(t){if(!wu(t,32))throw new f("Provided defaultSampleSize does not fit in 32 bits.");this.dh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"samples",{get:function(){return this.Dh},set:function(t){if(!wu(t,32))throw new f("Number of allowed samples cannot fit in 32 bits.");this.Dh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.defaultSampleSize,32),n.writer.writeUInt(this.samples,32)}}(mu),function(t){function n(){return t.call(this,"stbl")||this}ou(n,t)}(Uu),function(t){function n(n){var i=t.call(this,"stsc",0,0)||this;return i.entries=n,i}ou(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Vo},set:function(t){if(!wu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!wu(t.firstChunk,32)||!wu(t.sampleDescriptionIndex,32)||!wu(t.samplesPerChunk,32)}))throw new f("Not all entries can be represented in 96 bits.");this.Vo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+12*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r.firstChunk,32),n.writer.writeUInt(r.samplesPerChunk,32),n.writer.writeUInt(r.sampleDescriptionIndex,32)}}}(mu),function(t){function n(){return t.call(this,"schi")||this}ou(n,t)}(Uu),function(t){function n(n,i,e){var r=t.call(this,"schm",0,void 0===e?0:1)||this;return r.schemeType=n,r.schemeVersion=i,r.schemeUri=e,r}ou(n,t),c.defineProperty(n.prototype,"schemeType",{get:function(){return this.Xh},set:function(t){if(4!==t.length)throw new f("The provided schemeType does not have a length of 4.");this.Xh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"schemeVersion",{get:function(){return this.qh},set:function(t){if(!wu(t,32))throw new f("The provided schemeVersion does not fit in 23 bits.");this.qh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"schemeUri",{get:function(){return this.Wh},set:function(t){if(t&&4!==t.length)throw new f("The provided schemeUri does not have a length of 4.");this.flags=void 0===t?0:1,this.Wh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4+(void 0===this.schemeUri?0:this.schemeUri.length+1)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeString(this.schemeType),n.writer.writeUInt(this.schemeVersion,32),this.schemeUri&&(n.writer.writeString(this.schemeUri),n.writer.writeByte(0))}}(mu);var hs=function(t){function n(n,i,e,r,o,u,s){void 0===s&&(s=0);var f=t.call(this,"sidx",n,s)||this;return f.referenceId=i,f.timescale=e,f.earliestPresentationTime=r,f.firstOffset=o,f.references=u,f}return ou(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"referenceId",{get:function(){return this.Gh},set:function(t){if(!wu(t,32))throw new f("Provided referenceId does not fit in 32 bits.");this.Gh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"timescale",{get:function(){return this.eh},set:function(t){if(!wu(t,32))throw new f("Provided timescale does not fit in 32 bits.");this.eh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"earliestPresentationTime",{get:function(){return this.Yh},set:function(t){if(!wu(t,this.bitSize))throw new f("Provided earliestPresentationTime does not fit in ".concat(this.bitSize," bits."));this.Yh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"firstOffset",{get:function(){return this.Qh},set:function(t){if(!wu(t,this.bitSize))throw new f("Provided timescale does not fit in ".concat(this.bitSize," bits."));this.Qh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"references",{get:function(){return this.jh},set:function(t){if(!wu(t.length,16))throw new f("The number of provided reference items does not fit in 16 bits.");for(var n=0,i=t;n<i.length;n++){var e=i[n];if(!wu(e.referencedSize,31))throw new f("Provided referenced size does not fit in 31 bits.");if(!wu(e.subsegmentDuration,32))throw new f("Provided subsegment duration does not fit in 31 bits.");if(!wu(e.sapType,3))throw new f("Provided SAP type does not fit in 3 bits.");if(!wu(e.sapDeltaTime,28))throw new f("Provided SAP delta time does not fit in 28 bits.")}this.jh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4+this.bitSize/8*2+2+2+12*this.references.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.referenceId,32),n.writer.writeUInt(this.timescale,32),this.serializeSidxBoxContent(n),n.writer.writeUInt(0,16),n.writer.writeUInt(this.references.length,16);for(var i=0,e=this.references;i<e.length;i++){var r=e[i];n.writer.writeBit(r.referenceType),n.writer.writeUInt(r.referencedSize,31),n.writer.writeUInt(r.subsegmentDuration,32),n.writer.writeBool(r.startsWithSap),n.writer.writeUInt(r.sapType,3),n.writer.writeUInt(r.sapDeltaTime,28)}},n}(mu);!function(t){function n(n,i,e,r,o,u){return void 0===u&&(u=0),t.call(this,0,n,i,e,r,o,u)||this}ou(n,t),n.prototype.serializeSidxBoxContent=function(t){t.writer.writeUInt(this.earliestPresentationTime,32),t.writer.writeUInt(this.firstOffset,32)}}(hs),function(t){function n(n,i,e,r,o,u){return void 0===u&&(u=0),t.call(this,1,n,i,e,r,o,u)||this}ou(n,t),n.prototype.serializeSidxBoxContent=function(t){t.writer.writeUInt(this.earliestPresentationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.earliestPresentationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.firstOffset.getHighBitsUnsigned(),32),t.writer.writeUInt(this.firstOffset.getLowBitsUnsigned(),32)}}(hs),function(t){function n(n,i,e){return t.call(this,"styp",n,i,e)||this}ou(n,t)}(ju),function(t){function n(n){void 0===n&&(n=0);var i=t.call(this,"smhd",0,0)||this;return i.balance=n,i}ou(n,t),c.defineProperty(n.prototype,"balance",{get:function(){return this.Kh},set:function(t){if(t<-1||t>1)throw new f("Provided balance does not fit in the allowed range [-1, 1].");if(!wu(bu(t,8),16))throw new f("Provided balance does not fit in 16 bits (fixed 8.8).");this.Kh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+2+2},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(bu(this.balance,8),16),n.writer.writeUInt(0,16)}}(mu),function(t){function n(n){var i=t.call(this,"stss",0,0)||this;return i.entries=n,i}ou(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Vo},set:function(t){if(!wu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!wu(t,32)}))throw new f("Not all entries can be represented in 32 bits.");this.Vo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r,32)}}}(mu),function(t){function n(n){var i=t.call(this,"stts",0,0)||this;return i.entries=n,i}ou(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Vo},set:function(t){if(!wu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!wu(t.sampleCount,32)||!wu(t.sampleDelta,32)}))throw new f("Not all entries can be represented in 64 bits.");this.Vo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+8*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r.sampleCount,32),n.writer.writeUInt(r.sampleDelta,32)}}}(mu),function(t){function n(n){var i=t.call(this,"trep",0,0)||this;return i.trackId=n,i}ou(n,t),c.defineProperty(n.prototype,"trackId",{get:function(){return this.ah},set:function(t){if(!wu(t,32))throw new f("The provided trackId does not fit in 32 bits.");this.ah=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.trackId,32)}}(Wu),function(t){function n(){return t.call(this,"udta")||this}ou(n,t)}(Uu);var cs={red:0,green:0,blue:0};!function(t){function n(n,i){void 0===n&&(n=0),void 0===i&&(i=cs);var e=t.call(this,"vmhd",0,1)||this;return e.graphicsMode=n,e.opColor=i,e}ou(n,t),c.defineProperty(n.prototype,"opColor",{get:function(){return this.Zh},set:function(t){if(!wu(t.red,16)||!wu(t.green,16)||!wu(t.blue,16))throw new f("Not all colors could be represented in 16 bits.");this.Zh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+2+6},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.graphicsMode,16),n.writer.writeUInt(this.opColor.red,16),n.writer.writeUInt(this.opColor.green,16),n.writer.writeUInt(this.opColor.blue,16)}}(mu);var as=function(t){function n(n,i,e,r,o){void 0===r&&(r={}),void 0===o&&(o=void 0);var u,s,f,h,c,a=this;return(a=t.call(this,n,i)||this).width=e.width,a.height=e.height,a.horizontalResolution=null!==(u=e.horizontal)&&void 0!==u?u:72,a.verticalResolution=null!==(s=e.vertical)&&void 0!==s?s:72,a.compressorName=null!==(f=r.compressorName)&&void 0!==f?f:"",a.frameCount=null!==(h=r.frameCount)&&void 0!==h?h:1,a.depth=null!==(c=r.depth)&&void 0!==c?c:24,a.clap=r.clap,a.pasp=r.pasp,a.extra=o,a}return ou(n,t),c.defineProperty(n.prototype,"width",{get:function(){return this.yh},set:function(t){if(!wu(t,16))throw new f("Provided width does not fit in 16 bits.");this.yh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"height",{get:function(){return this.ph},set:function(t){if(!wu(t,16))throw new f("Provided height does not fit in 16 bits.");this.ph=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"horizontalResolution",{get:function(){return this.Jh},set:function(t){if(!wu(bu(t,16),32))throw new f("Provided horizontalResolution does not fit in 32 bits (fixed 16.16).");this.Jh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"verticalResolution",{get:function(){return this.$h},set:function(t){if(!wu(bu(t,16),32))throw new f("Provided verticalResolution does not fit in 32 bits (fixed 16.16).");this.$h=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"compressorName",{get:function(){return this.ea},set:function(t){if(t.length>31)throw new f("The provided compressorName should at most be 31 characters long.");this.ea=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"frameCount",{get:function(){return this.ra},set:function(t){if(!wu(t,16))throw new f("Provided frameCount does not fit in 16 bits.");this.ra=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"depth",{get:function(){return this.ua},set:function(t){if(!wu(t,16))throw new f("Provided depth does not fit in 16 bits.");this.ua=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){var n,i,e,r,o,u;return t.prototype.getBoxContentSize.call(this)+2+2+12+2+2+4+4+4+2+32+2+2+(null!==(i=null===(n=this.clap)||void 0===n?void 0:n.getSize())&&void 0!==i?i:0)+(null!==(r=null===(e=this.pasp)||void 0===e?void 0:e.getSize())&&void 0!==r?r:0)+(null!==(u=null===(o=this.extra)||void 0===o?void 0:o.length)&&void 0!==u?u:0)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(0,16),n.writer.writeUInt(0,16),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),n.writer.writeUInt(this.width,16),n.writer.writeUInt(this.height,16),n.writer.writeUInt(bu(this.horizontalResolution,16),32),n.writer.writeUInt(bu(this.verticalResolution,16),32),n.writer.writeUInt(0,32),n.writer.writeUInt(this.frameCount,16),n.writer.writeByte(this.compressorName.length),n.writer.writeString(this.compressorName);for(var i=0;i<31-this.compressorName.length;i++)n.writer.writeByte(0);n.writer.writeUInt(this.depth,16),n.writer.writeInt(-1,16),this.clap&&n.concat(this.clap.serialize()),this.pasp&&n.concat(this.pasp.serialize()),this.extra&&gu(n.writer,this.extra)},n}(Mu);!function(t){function n(n){var i=t.call(this,"esds",0,0)||this;return i.esDescriptor=n,i}ou(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+(this.esDescriptor instanceof w?this.esDescriptor.length:this.esDescriptor.getSize())},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.esDescriptor instanceof w?n.concat(au.from(this.esDescriptor)):this.esDescriptor.serialize(n)}}(mu),function(t){function n(n,i,e){var r=t.call(this,"mp4a",n,e)||this;return r.esd=i,r}ou(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.esd.getSize()},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.concat(this.esd.serialize())}}(zu),function(t){function n(n,i,e,r){void 0===r&&(r={});var o=t.call(this,"mp4v",n,i,r)||this;return o.esDescriptor=e,o}ou(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.esDescriptor.getSize()},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.esDescriptor.serialize(n)}}(as),function(t){function n(n,i){var e=t.call(this,"mp4s",n)||this;return e.esDescriptor=i,e}ou(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.esDescriptor.getSize()},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.esDescriptor.serialize(n)}}(Mu),function(t){function n(n){var i=t.call(this,"avcC")||this;return i.decoderConfig=n,i}ou(n,t),n.prototype.getBoxContentSize=function(){return this.decoderConfig.getSize()},n.prototype.serializeBoxContent=function(t){this.decoderConfig.serialize(t)}}(lu),function(){function t(t,n,i,e,r,o){void 0===o&&(o=1),this.lengthSizeMinusOne=i,this.version=o,this.profileIndication=t.indication,this.profileCompatibility=t.compatibility,this.levelIndication=n,this.spsSets=e,this.ppsSets=r}c.defineProperty(t.prototype,"version",{get:function(){return this.oa},set:function(t){if(!wu(t,8))throw new f("Provided version does not fit in 8 bits.");this.oa=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"profileIndication",{get:function(){return this.va},set:function(t){if(!wu(t,8))throw new f("Provided profileIndication does not fit in 8 bits.");this.va=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"profileCompatibility",{get:function(){return this._a},set:function(t){if(!wu(t,8))throw new f("Provided profileCompatibility does not fit in 8 bits.");this._a=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"levelIndication",{get:function(){return this.ma},set:function(t){if(!wu(t,8))throw new f("Provided levelIndication does not fit in 8 bits.");this.ma=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"spsSets",{get:function(){return this.ya},set:function(t){if(!wu(t.length,5))throw new f("Provided number of spsSets exceeds the max (32)");this.ya=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"ppsSets",{get:function(){return this.Aa},set:function(t){if(!wu(t.length,8))throw new f("Provided number of ppsSets exceeds the max (256)");this.Aa=t},enumerable:!1,configurable:!0}),t.prototype.getSize=function(){return 7+2*this.spsSets.length+this.spsSets.reduce(function(t,n){return t+n.length},0)+2*this.ppsSets.length+this.ppsSets.reduce(function(t,n){return t+n.length},0)},t.prototype.serialize=function(t){t.writer.writeByte(this.version),t.writer.writeByte(this.profileIndication),t.writer.writeByte(this.profileCompatibility),t.writer.writeByte(this.levelIndication),t.writer.writeBits([1,1,1,1,1,1]),t.writer.writeUInt(this.lengthSizeMinusOne,2),t.writer.writeBits([1,1,1]),t.writer.writeUInt(this.spsSets.length,5);for(var n=0,i=this.spsSets;n<i.length;n++){var e=i[n];t.writer.writeUInt(e.length,16),t.concat(au.from(e))}t.writer.writeByte(this.ppsSets.length);for(var r=0,o=this.ppsSets;r<o.length;r++){var u=o[r];t.writer.writeUInt(u.length,16),t.concat(au.from(u))}}}(),function(t){function n(n,i,e,r,o){void 0===r&&(r={}),void 0===o&&(o=void 0);var u=t.call(this,"avc1",n,i,r)||this;return u.configurationBox=e,u.bitrateBox=o,u}ou(n,t),n.prototype.getBoxContentSize=function(){var n,i;return t.prototype.getBoxContentSize.call(this)+this.configurationBox.getSize()+(null!==(i=null===(n=this.bitrateBox)||void 0===n?void 0:n.getSize())&&void 0!==i?i:0)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.concat(this.configurationBox.serialize()),this.bitrateBox&&n.concat(this.bitrateBox.serialize())}}(as),function(t){function n(n,i,e){var r=t.call(this,"btrt")||this;return r.bufferSizeDb=n,r.max=i,r.avg=e,r}ou(n,t),c.defineProperty(n.prototype,"bufferSizeDb",{get:function(){return this.Do},set:function(t){if(!wu(t,32))throw new f("Provided bufferSizeDb does not fit in 32 bits.");this.Do=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"max",{get:function(){return this.Ta},set:function(t){if(!wu(t,32))throw new f("Provided max does not fit in 32 bits.");this.Ta=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"avg",{get:function(){return this.Sa},set:function(t){if(!wu(t,32))throw new f("Provided avg does not fit in 32 bits.");this.Sa=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 12},n.prototype.serializeBoxContent=function(t){t.writer.writeUInt(this.bufferSizeDb,32),t.writer.writeUInt(this.max,32),t.writer.writeUInt(this.avg,32)}}(lu);var vs=function(t){function n(n,i){var e,r,o,u,s=this;if(s=t.call(this,"tenc",n,0)||this,i.perSampleIvSize>0&&(null!==(r=null===(e=i.constantIv)||void 0===e?void 0:e.length)&&void 0!==r?r:0)>0)throw new f("Either perSampleSize should be > 0 or constantIv should be defined. Not both.");return s.kId=i.kId,s.isProtected=null!==(o=i.isProtected)&&void 0!==o?o:1,i.perSampleIvSize>0?s.perSampleIvSize=i.perSampleIvSize:s.constantIv=null!==(u=i.constantIv)&&void 0!==u?u:new w(0),s}return ou(n,t),c.defineProperty(n.prototype,"isProtected",{get:function(){return this.Ea},set:function(t){if(!wu(t,8))throw new f("Provided isProtected does not fit in 1 byte.");this.Ea=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"perSampleIvSize",{get:function(){return this.Ia},set:function(t){if(![8,16].includes(t))throw new f("Provided perSampleIvSize does not match any allowed value [8, 16].");this.Ia=t,this.Ra=new w(0)},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"kId",{get:function(){return this.Na},set:function(t){if(16!==t.length)throw new f("Provided kId length is not 16.");this.Na=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"constantIv",{get:function(){return this.Ra},set:function(t){if(![8,16].includes(t.length))throw new f("Provided constant IV length does not match any allowed value [8, 16].");this.Ra=t,this.Ia=0},enumerable:!1,configurable:!0}),n.prototype.getTencHeaderSize=function(){return 20+(this.constantIv.length>0?1+this.constantIv.length:0)},n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.getTencHeaderSize()},n.prototype.serializeVersionBoxContent=function(t){t.writer.writeByte(0)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.serializeOwnContent(n)},n.prototype.serializeOwnContent=function(t){t.writer.writeByte(0),this.serializeVersionBoxContent(t),t.writer.writeByte(this.isProtected),t.writer.writeByte(this.perSampleIvSize),gu(t.writer,this.kId),0===this.perSampleIvSize&&(t.writer.writeByte(this.constantIv.length),gu(t.writer,this.constantIv))},n}(mu);!function(t){function n(n){return t.call(this,0,n)||this}ou(n,t)}(vs);var ds=function(t){function n(n){var i=t.call(this,1,n)||this;return i.cryptByteBlocks=n.cryptByteBlock,i.skipByteBlocks=n.skipByteBlock,i}return ou(n,t),c.defineProperty(n.prototype,"cryptByteBlocks",{get:function(){return this.Da},set:function(t){if(!wu(t,4))throw new f("Provided cryptByteBlocks does not fit in 4 bits.");this.Da=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"skipByteBlocks",{get:function(){return this.Ca},set:function(t){if(!wu(t,4))throw new f("Provided skipByteBlocks does not fit in 4 bits.");this.Ca=t},enumerable:!1,configurable:!0}),n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.cryptByteBlocks,4),t.writer.writeUInt(this.skipByteBlocks,4)},n}(vs);function ls(t){return void 0!==t.iv}function ws(t){return void 0!==t.subsamples}!function(t){function n(n){var i=t.call(this)||this;return i.tencBox=new ds(n),i}ou(n,t),n.prototype.serializeBoxContent=function(t){this.tencBox.serializeOwnContent(t)},n.prototype.getBoxContentSize=function(){return this.tencBox.getTencHeaderSize()}}(Zu),function(t){function n(n){var i=t.call(this,"senc",0,{useSubsampleEncryption:!1})||this;return i.samples=n,i}ou(n,t),c.defineProperty(n.prototype,"samples",{get:function(){return this.Dh},set:function(t){var n;if(!wu(t.length,32))throw new f("The number of samples provided does not fit in 32 bits.");for(var i=0,e=t;i<e.length;i++){var r=e[i];if(ls(r)&&![8,16].includes(r.iv.length))throw new f("IV of one of the provided samples did not satisfy the required length constraints. [8, 16]");if(void 0===n&&(n=ws(r)),!0===n&&!ws(r)||!1===n&&ws(r))throw new f("Mix of samples with and without subsamples detected.");if(ws(r)){if(!wu(r.subsamples.length,16))throw new f("Subsample length of one of the provided samples does not fit in 16 bits.");for(var o=0,u=r.subsamples;o<u.length;o++){var s=u[o];if(!wu(s.clearData,16))throw new f("Subsample clearData of one of the provided samples does not fit in 16 bits.");if(!wu(s.protectedData,23))throw new f("Subsample protectedData of one of the provided samples does not fit in 23 bits.")}}}this.flags.useSubsampleEncryption=null!=n&&n,this.Dh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){for(var n=0,i=0,e=this.samples;i<e.length;i++){var r=e[i];ls(r)&&(n+=r.iv.length),ws(r)&&(n+=2+6*r.subsamples.length)}return t.prototype.getBoxContentSize.call(this)+4+n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.samples.length,32);for(var i=0,e=this.samples;i<e.length;i++){var r=e[i];if(ls(r)&&gu(n.writer,r.iv),ws(r)){n.writer.writeUInt(r.subsamples.length,16);for(var o=0,u=r.subsamples;o<u.length;o++){var s=u[o];n.writer.writeUInt(s.clearData,16),n.writer.writeUInt(s.protectedData,32)}}}},n.prototype.serializeFlags=function(t){t.writer.writeUInt(this.flags.useSubsampleEncryption?2:0,24)}}(mu),function(t){function n(n,i,e,r,o){var u=t.call(this,"emsg",0,0)||this;return u.schemeIdUri=n,u.value=i,u.data=o,u.id=e,u.timescale=r.timescale,u.presentationTimeDelta=r.presentationTimeDelta,u.eventDuration=r.eventDuration,u}ou(n,t),c.defineProperty(n.prototype,"timescale",{get:function(){return this.eh},set:function(t){if(!wu(t,32))throw new f("The provided timescale does not fit in 32 bits.");this.eh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"presentationTimeDelta",{get:function(){return this.Pa},set:function(t){if(!wu(t,32))throw new f("The provided presentationTimeDelta does not fit in 32 bits.");this.Pa=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"eventDuration",{get:function(){return this.Oa},set:function(t){if(!wu(t,32))throw new f("The provided eventDuration does not fit in 32 bits.");this.Oa=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"id",{get:function(){return this.Ba},set:function(t){if(!wu(t,32))throw new f("The provided id does not fit in 32 bits.");this.Ba=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.schemeIdUri.length+1+this.value.length+1+16+this.data.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeString(this.schemeIdUri),n.writer.writeByte(0),n.writer.writeString(this.value),n.writer.writeByte(0),n.writer.writeUInt(this.timescale,32),n.writer.writeUInt(this.presentationTimeDelta,32),n.writer.writeUInt(this.eventDuration,32),n.writer.writeUInt(this.id,32),n.concat(au.from(this.data))}}(mu);var bs,gs,ms=(bs="pssh",gs=function(t){var n=t.data.nextUint8();t.data.skip(3);var i=t.data.nextUint8Array(16),e=[];if(1===n)for(var r=t.data.nextUint32(),o=0;o<r;o++)e.push(t.data.nextUint8Array(16));var u=t.data.nextUint32(),s=t.data.nextUint8Array(u);return 1===n?new ns(i,s,e):new ts(i,s)},function(t){var n,i=function(t,n){for(var i=t.data,e=t.cursor;e.offset<i.byteLength;){var r=Cu(i,e);if(!r.complete)return;if(Du(r.box,n))return r.box}}(new Au((n=t,new DataView(n.buffer,n.byteOffset,n.byteLength)),new Pu),bs);if(!i)throw new f("".concat(bs," box not found"));return gs(i)}),ps=function(t){function n(n,i){var e;(e=t.call(this)||this).La=void 0,e.Ma=!1,e.xa=void 0,e.Fa=void 0,e.Ua=function(){e.Ha()},e.Va=function(t){e.Ks(new Jo(En(e),t.messageType,nu(e.Xa,t.message)))},e.qa=function(){e.Ma=!0,e.La.Pu>0&&(e.La.Cu(),e.Ks(new $o(En(e)))),e.Wa.removeEventListener("keystatuseschange",e.Ua),e.Wa.removeEventListener("message",e.Va)},e.Wa=n,e.Xa=i,e.Wa.addEventListener("keystatuseschange",e.Ua),e.Wa.addEventListener("message",e.Va),e.La=new Qo;var r=[];return e.Wa.closed&&r.push(j.resolve(e.Wa.closed)),e.Fa=new tu,r.push(e.Fa.Vu),e.xa=j.race(r).then(e.qa,e.qa),e.Ha(),e}Mt(n,t);var i=n.prototype;return i.Ga=function(){if(this.Ma)return this.xa;var t,n,i=[];return i.push(j.resolve(this.Wa.close())),i.push((t=1e3,new j(function(i,e){if(void 0!==n&&n.Cs)e(new An);else{var r=Z.jn(function(){void 0!==n&&n.Fs(o),i()},t),o=function(){Z.Qn(r),e(new An)};void 0!==n&&n.xs(o)}}))),this.Fa.Gu(j.race(i).catch(ys)),this.Ma=!0,this.xa},i.Ya=function(t,n,i){if(Ci.fn){var e=ms(ii(n));if(1===e.version)n=new ts(e.systemId,e.data).serialize().join()}return j.resolve(this.Wa.generateRequest(t,n)).catch(ys)},i.Qa=function(t){return j.resolve(this.Wa.load(t)).catch(ys)},i.Ka=function(){return j.resolve(this.Wa.remove()).catch(ys)},i.Za=function(t){return j.resolve(this.Wa.update(t)).catch(ys)},i.Ha=function(){var t=this;this.La.Cu(),this.Wa.keyStatuses.forEach(function(n,i){t.Ja(i,n)}),this.Ks(new $o(this))},i.Ja=function(t,n){if("string"==typeof t){var i=t;t=n,n=i}var e=ii(t);if(this.Xa===xo&&16===e.byteLength){var r=ti(e),o=r.getUint32(0,!0),u=r.getUint16(4,!0),s=r.getUint16(6,!0);r.setUint32(0,o,!1),r.setUint16(4,u,!1),r.setUint16(6,s,!1)}this.Xa===xo&&"status-pending"===n&&(n="usable"),this.La.Du(e,n)},mt(n,[{key:"$a",get:function(){return this.xa}},{key:"tc",get:function(){return this.Wa.expiration}},{key:"nc",get:function(){return this.La}},{key:"ic",get:function(){return this.Wa.sessionId}}]),n}(ai);function ys(t){var n;if(t.message){var i=t.message.match(/^SystemCode:0x([0-9a-fA-F]+)$/);i&&(n=0|v(i[1],16))}throw new eu(t.message,void 0,n,t)}var _s=function(){function t(t,n,i){this.ec=t,this.rc=n,this.uc=i}var n=t.prototype;return n.hc=function(t){return Q.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new ps(this.ec.createSession(t),this.rc));case 1:case"end":return n.stop()}},null,this,null,j)},n.ac=function(t){return j.resolve(this.ec.setServerCertificate(t))},n.cc=function(t){return j.resolve(t.setMediaKeys(this.ec))},n.fc=function(t){return j.resolve(t.setMediaKeys(null))},t}(),Ss=function(){function t(t,n,i){this.vc=t,this.Xa=n,this.dc=i}var n=t.prototype;return n.lc=function(){var t;return Q.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Q.awrap(this.vc.createMediaKeys());case 2:return t=n.sent,n.abrupt("return",new _s(t,this.Xa,this.dc));case 4:case"end":return n.stop()}},null,this,null,j)},n._c=function(){return this.dc},mt(t,[{key:"rc",get:function(){return this.vc.keySystem}}]),t}();function Is(t,n,i,e){var r=!1;if(!(e.persistentState&&"optional"!==e.persistentState||e.distinctiveIdentifier&&"optional"!==e.distinctiveIdentifier)){var o={audioCapabilities:[],videoCapabilities:[],persistentState:e.persistentState||"optional",distinctiveIdentifier:e.distinctiveIdentifier||"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label,mc:e.mc},u=!1;if(e.audioCapabilities){var s=e.audioCapabilities.filter(function(t){return Boolean(t.contentType)});s.length&&(o.audioCapabilities=s.filter(function(e){return Ts(t,n,i,e)}),u=!0,o.audioCapabilities.length&&(r=!0))}if(e.videoCapabilities){var f=e.videoCapabilities.filter(function(t){return Boolean(t.contentType)});f.length&&(o.videoCapabilities=f.filter(function(e){return Ts(t,n,i,e)}),u=!0,o.videoCapabilities.length&&(r=!0))}return u||(r=t(i,"video/mp4")),r?o:void 0}}function Ts(t,n,i,e){return!!e.contentType&&(!(e.encryptionScheme&&!at(n,e.encryptionScheme))&&(!e.robustness&&t(i,(r=e.contentType,o=r.trim(),(u=o.indexOf(";"))<0?o:o.substr(0,u).trim()))));var r,o,u}function Es(t){for(var n=[],i=0;i<t.length;i++){var e=t[i];e.encryptionScheme&&n.push({contentType:e.contentType,robustness:e.robustness})}return t.concat(n)}function Rs(t){return!(!t.audioCapabilities||!t.audioCapabilities.some(ks))||!(!t.videoCapabilities||!t.videoCapabilities.some(ks))}function ks(t){return!t.robustness}function Ns(t,n){for(var i=[],e=0;e<t.length;e++){var r=t[e];r.robustness?i.push(r):i.push(Oo({},r,{robustness:n}))}return i}var Os,Ps,As=function(){function t(){}return t.prototype.Es=function(t,n){var i,r,o,u,s,f,h,c;return Q.async(function(a){for(;;)switch(a.prev=a.next){case 0:for(n=n.filter(function(t){return!t.mc}),i=0,r=n;i<r.length;i++)(o=r[i]).audioCapabilities&&(o.audioCapabilities=Es(o.audioCapabilities)),o.videoCapabilities&&(o.videoCapabilities=Es(o.videoCapabilities));if("com.widevine.alpha"!==t||!n.some(Rs)){a.next=14;break}return u=n.map(function(t){return i="SW_SECURE_CRYPTO",Oo({},n=t,{videoCapabilities:n.videoCapabilities?Ns(n.videoCapabilities,i):void 0,audioCapabilities:n.audioCapabilities?Ns(n.audioCapabilities,i):void 0});var n,i}),a.prev=4,a.next=7,Q.awrap(e.requestMediaKeySystemAccess(t,u));case 7:return s=a.sent,f=s.getConfiguration(),a.abrupt("return",new Ss(s,t,f));case 12:a.prev=12,a.t0=a.catch(4);case 14:return a.next=16,Q.awrap(e.requestMediaKeySystemAccess(t,n));case 16:return h=a.sent,c=h.getConfiguration(),a.abrupt("return",new Ss(h,t,c));case 19:case"end":return a.stop()}},null,null,[[4,12]],j)},t.kc=function(){return void 0!==e&&"function"==typeof e.requestMediaKeySystemAccess},t}(),Ds=function(){function t(){}return t.prototype.Es=function(t,n){try{return j.resolve(function(t,n){if(!xs())throw new h("Unsupported key system "+t)}(t))}catch(t){return j.reject(t)}},t.kc=function(){return xs()},t}();function xs(){return void 0!==io.MSMediaKeys}!function(t){t[t.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",t[t.LICENSE_ERROR=2e3]="LICENSE_ERROR",t[t.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",t[t.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",t[t.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",t[t.LICENSE_INVALID_FEATURE=2004]="LICENSE_INVALID_FEATURE",t[t.SOURCE_INVALID=3e3]="SOURCE_INVALID",t[t.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",t[t.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",t[t.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",t[t.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",t[t.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",t[t.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",t[t.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",t[t.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",t[t.MEDIA_ABORTED=5004]="MEDIA_ABORTED",t[t.NETWORK_ERROR=6e3]="NETWORK_ERROR",t[t.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",t[t.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",t[t.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",t[t.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",t[t.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",t[t.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",t[t.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",t[t.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",t[t.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",t[t.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",t[t.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",t[t.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",t[t.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",t[t.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",t[t.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",t[t.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",t[t.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",t[t.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",t[t.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",t[t.AD_ERROR=1e4]="AD_ERROR",t[t.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",t[t.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR"}(Os||(Os={})),function(t){t[t.CONFIGURATION=1]="CONFIGURATION",t[t.LICENSE=2]="LICENSE",t[t.SOURCE=3]="SOURCE",t[t.MANIFEST=4]="MANIFEST",t[t.MEDIA=5]="MEDIA",t[t.NETWORK=6]="NETWORK",t[t.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",t[t.SUBTITLE=8]="SUBTITLE",t[t.VR=9]="VR",t[t.AD=10]="AD",t[t.FULLSCREEN=11]="FULLSCREEN"}(Ps||(Ps={})),function(t){(Ps||(Ps={})).fromCode=function(t){var n=a.floor(t/1e3);if(n in Ps)return n;throw new h("Invalid error code: "+t)}}();var Cs=function(){function t(){}return t.prototype.Es=function(t,n){try{return j.resolve(function(t,n){if(t!==zo)throw new h(t+" is not supported with webkit-prefixed Encrypted Media Extensions.");if(!Bs())throw new h("Unsupported key system "+t)}(t))}catch(t){return j.reject(t)}},t.kc=function(){return Bs()},t}();function Bs(){return void 0!==io.WebKitMediaKeys}var Fs,Ls=function(){function t(t){this.Hc=t}return t.prototype.Es=function(t,n){var i,e,r;return Q.async(function(o){for(;;)switch(o.prev=o.next){case 0:i=0,e=this.Hc;case 1:if(!(i<e.length)){o.next=14;break}return r=e[i],o.prev=3,o.next=6,Q.awrap(r.Es(t,n));case 6:return o.abrupt("return",o.sent);case 9:o.prev=9,o.t0=o.catch(3);case 11:i++,o.next=1;break;case 14:throw new h("Unsupported key system configuration for "+t);case 15:case"end":return o.stop()}},null,this,[[3,9]],j)},t}(),Us=function(t){function n(n){var i;return(i=t.call(this)||this).bc=void 0,i.Bc=void 0,i.yc=void 0,i._o=!1,i.Vc=void 0,i.Xc=void 0,i.zc=void 0,i.qc=void 0,i.Wc=void 0,i.Xa=n,i.yc=new tu,i.Xc="",i.Wc=new tu,i.zc=new Qo,i}Mt(n,t);var i=n.prototype;return i.Gc=function(){this.Bc&&(this.Rc("usable"),this.Bc.Gu(void 0),this.Bc=void 0)},i.Yc=function(t){var n=new eu("Unknown CDM error",t.errorCode,t.systemCode);this.Bc?(this.Bc.Yu(n),this.Bc=void 0):this.bc?(this.bc.Yu(n),this.bc=void 0):n.Qu===WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT?this.Rc("output-restricted"):1===n.ju?this.Rc("expired"):this.Rc("internal-error")},i.Qc=function(t){0!==t.message.byteLength&&(this.bc&&(this.bc.Gu(void 0),this.bc=void 0),this.Ks(new Jo(this,"license-request",nu(this.Xa,ei(t.message).buffer),t.defaultURL||void 0)))},i.jc=function(t){this.qc||(this.qc=t,this.Wc.Gu(t))},i.Ga=function(){return Q.async(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed(),this._o=!0,this.yc.Gu(void 0);case 3:case"end":return t.stop()}},null,this,null,j)},i.Ya=function(t,n){return Q.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.throwIfClosed(),this.bc=new tu,this.Vc=ii(n),t.t0=this.qc,t.t0){t.next=8;break}return t.next=7,Q.awrap(this.Wc.Vu);case 7:t.t0=t.sent;case 8:return t.t0.webkitGenerateKeyRequest(this.Xa,this.Vc),t.next=12,Q.awrap(this.bc.Vu);case 12:case"end":return t.stop()}},null,this,null,j)},i.Qa=function(t){return Q.async(function(t){for(;;)switch(t.prev=t.next){case 0:return this.throwIfClosed(),t.abrupt("return",!1);case 2:case"end":return t.stop()}},null,this,null,j)},i.Ka=function(){return Q.async(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed();case 1:case"end":return t.stop()}},null,this,null,j)},i.Za=function(t){return Q.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(this.throwIfClosed(),this.Bc=new tu,n.t0=this.qc,n.t0){n.next=7;break}return n.next=6,Q.awrap(this.Wc.Vu);case 6:n.t0=n.sent;case 7:return n.t0.webkitAddKey(this.Xa,ii(t),this.Vc,this.ic),n.next=11,Q.awrap(this.Bc.Vu);case 11:case"end":return n.stop()}},null,this,null,j)},i.throwIfClosed=function(){if(this._o)throw new h("Already closing or closed.")},i.Rc=function(t){this.zc.Cu(),this.zc.Du(Zo,t),this.Ks(new $o(this))},mt(n,[{key:"nc",get:function(){return this.zc}},{key:"ic",get:function(){return this.Xc},set:function(t){this.Xc=t}},{key:"$a",get:function(){return this.yc.Vu}},{key:"tc",get:function(){return NaN}}]),n}(ai),Ms=function(){function t(t,n){var i=this;this.qc=void 0,this.Kc=yt(),this.Zc=[],this.Ic=function(t){var n=i.Jc(t.sessionId);n&&n.Gc()},this.$c=function(t){var n=i.Jc(t.sessionId);n&&n.Yc(t)},this.tf=function(t){var n=i.Jc(t.sessionId);n&&n.Qc(t)},this.rc=t,this.uc=n}var n=t.prototype;return n.cc=function(t){return this.qc=t,this.qc.addEventListener("webkitkeyadded",this.Ic),this.qc.addEventListener("webkitkeyerror",this.$c),this.qc.addEventListener("webkitkeymessage",this.tf),this.Kc.forEach(function(n,i){return n.jc(t)}),this.Zc.forEach(function(n){return n.jc(t)}),j.resolve()},n.fc=function(t){return t.removeEventListener("webkitkeyadded",this.Ic),t.removeEventListener("webkitkeyerror",this.$c),t.removeEventListener("webkitkeymessage",this.tf),this.qc=void 0,j.resolve()},n.hc=function(t,n,i){var e;return Q.async(function(t){for(;;)switch(t.prev=t.next){case 0:return e=new Us(this.rc),this.qc&&e.jc(this.qc),this.Zc.push(e),t.abrupt("return",e);case 4:case"end":return t.stop()}},null,this,null,j)},n.ac=function(t){return j.resolve(!1)},n.Jc=function(t){if(t){var n=this.Kc.get(t);return n||((n=this.Zc.shift())?(n.ic=t,this.Kc.set(t,n),n):void 0)}},t}(),zs=function(){function t(t,n){this.rc=t,this.nf=n}var n=t.prototype;return n.lc=function(){return j.resolve(new Ms(this.rc,this.nf))},n._c=function(){return this.nf},t}(),Ws=function(){function t(){}return t.prototype.Es=function(t,n){try{return j.resolve(qs(t,n))}catch(t){return j.reject(t)}},t.kc=function(){return"undefined"!=typeof HTMLMediaElement&&void 0!==HTMLMediaElement.prototype.webkitGenerateKeyRequest&&void 0!==HTMLMediaElement.prototype.webkitAddKey&&void 0!==HTMLMediaElement.prototype.webkitCancelKeyRequest},t}();function qs(t,n){if(!Ws.kc())throw new h("Unsupported key system "+t);for(var i=0;i<n.length;i++){var e=n[i],r=Is(js,Ko,t,e);if(r)return new zs(t,r)}throw new h("Unsupported key system configuration for "+t)}function js(t,n){var i=so();return!(!i||!i.canPlayType||""===i.canPlayType(n,t))}function Vs(){return Fs||(Fs=function(){var t=[];Cs.kc()&&t.push(new Cs);As.kc()&&t.push(new As);Ds.kc()&&t.push(new Ds);Ws.kc()&&t.push(new Ws);return new Ls(t)}()),Fs}var Hs=function(){function t(){this.if=yt()}var n=t.prototype;return n.Cu=function(t){this.if.delete(t)},n.ef=function(){this.if.clear()},n.Ru=function(t){return this.if.get(t)},n.rf=function(t,n){this.if.set(t,n)},t}(),Xs=function(){function t(){}return t.sf=function(){return t.Yn||(t.Yn=Gs.kc()?new Gs:new Hs),t.Yn},t.Cu=function(n){t.sf().Cu(n)},t.ef=function(){t.sf().ef()},t.Ru=function(n){return t.sf().Ru(n)},t.rf=function(n,i){t.sf().rf(n,i)},t}();Xs.Yn=void 0;var Gs=function(n){function i(){return n.apply(this,arguments)||this}Mt(i,n),i.kc=function(){try{return t.sessionStorage.setItem("foobar","foobar"),t.sessionStorage.removeItem("foobar"),!0}catch(t){return!1}};var e=i.prototype;return e.Cu=function(n){t.sessionStorage.removeItem(n)},e.ef=function(){t.sessionStorage.clear()},e.Ru=function(n){return t.sessionStorage[n]},e.rf=function(n,i){t.sessionStorage[n]=i},i}(Xs);var Ys=function(){var n,i=t.Blob;if(i)try{return new i,n=i,function(t,i){return new n(t,i)}}catch(t){}var e,r=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder;if(r)return e=r,function(t,n){var i=new e;if(t)for(var r=0;r<t.length;r++){var o=t[r];i.append(o)}return i.getBlob(n&&n.type||"")}}();function Ks(t,n,e){var r=Ys([n],{type:"application/octet-stream"}),o=URL.createObjectURL(r),u=function(t,n){var i=t,e=i.indexOf("?");if(e>=0&&(i=i.substr(0,e)),i=i.substr(i.lastIndexOf("/")+1),n){var r=i.indexOf(".");r<0&&(r=i.length),i=i.substr(0,r)+n+i.substr(r)}return i}(t,e),s=i.createElement("a");s.href=o,s.download=u,i.body.appendChild(s),s.click(),i.body.removeChild(s),URL.revokeObjectURL(o)}var $s,Js;!function(t){t.uf="hf",t.cf="vf",t.df="contentprotectionerror",t.lf="contentprotectionsuccess",t._f="currentsourcechange",t.gf="destroy",t.wf="durationchange",t.mf="emptied",t.pu="encrypted",t.kf="ended",t.yf="pf",t.bf="loadstart",t.Af="manifestupdate",t.Tf="nosupportedrepresentationfound",t.Sf="offline",t.Ef="online",t.If="pause",t.Rf="play",t.Nf="progress",t.Df="ratechange",t.Cf="representationchange",t.Pf="resize",t.Of="seeked",t.Bf="seeking",t.Lf="segmentnotfound",t.Mf="xf",t.Ff="Uf",t.Hf="sourcechange",t.Vf="timeupdate",t.Xf="volumechange",t.zf="qf",t.Wf="metricschange"}($s||($s={})),function(t){t.Gf="arraybuffer",t.Yf="json",t.Qf="stream",t.$n="text"}(Js||(Js={}));var Zs=function(){function t(n){var i=this;this.$r=void 0,this.$r={},n instanceof t?n.asList().forEach(function(t){var n=t[0],e=t[1];i.append(n,e)}):Array.isArray(n)?n.forEach(function(t){i.append(t[0],t[1])}):n&&c.getOwnPropertyNames(n).forEach(function(t){i.append(t,n[t])})}var n=t.prototype;return n.append=function(t,n){var i=t,e=n;i=Qs(i),e=tf(e);var r=i.toLowerCase();if(this.$r.hasOwnProperty(r)){var o=this.$r[r],u=o[1];o[1]=u?u+", "+e:e}else this.$r[r]=[i,e]},n.delete=function(t){var n=Qs(t).toLowerCase();delete this.$r[n]},n.get=function(t){var n=Qs(t).toLowerCase();return this.$r.hasOwnProperty(n)?this.$r[n][1]:null},n.has=function(t){var n=Qs(t).toLowerCase();return this.$r.hasOwnProperty(n)},n.set=function(t,n){var i=t,e=(i=Qs(i)).toLowerCase();this.$r[e]=[i,tf(n)]},n.forEach=function(t,n){for(var i in this.$r)this.$r.hasOwnProperty(i)&&t.call(n,this.$r[i][1],i,this)},n.asList=function(){var t=[];for(var n in this.$r)if(this.$r.hasOwnProperty(n)){var i=this.$r[n],e=i[0],r=i[1];t.push([e,r])}return t},n.jf=function(){var t={};return this.forEach(function(n,i){t[i]=n}),t},n.Kf=function(t){var n=this;t.forEach(function(t,i){n.append(i,t)})},n.Zf=function(t){var n=this;t.forEach(function(t,i){n.set(i,t)})},t}();function Qs(t){var n=t;if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new h("Invalid character in header field name");return n}function tf(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}var nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"};function ef(){}var rf=Number.isNaN||function(t){return t!=t},of=ef;function uf(t){return"object"==typeof t&&null!==t||"function"==typeof t}function sf(t){return t.slice()}function ff(t){return!1!==function(t){if("number"!=typeof t)return!1;if(rf(t))return!1;if(t<0)return!1;return!0}(t)&&t!==1/0}function hf(t,n,i){if("function"!=typeof t)throw new h("Argument is not a function");return Function.prototype.apply.call(t,n,i)}function cf(t,n,i,e){var r=t[n];if(void 0!==r){if("function"!=typeof r)throw new h(r+" is not a method");switch(i){case 0:return function(){return vf(r,t,e)};case 1:return function(n){var i=[n].concat(e);return vf(r,t,i)}}}return function(){return _f(void 0)}}function af(t,n,i){var e=t[n];if(void 0!==e)return hf(e,t,i)}function vf(t,n,i){try{return _f(hf(t,n,i))}catch(t){return Sf(t)}}function df(t){return t}function lf(t){if(t=Number(t),rf(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function wf(t){if(void 0===t)return function(){return 1};if("function"!=typeof t)throw new h("size property of a queuing strategy must be a function");return function(n){return t(n)}}var bf=j,gf=j.prototype.then,mf=j.resolve.bind(bf),pf=j.reject.bind(bf);function yf(t){return new bf(t)}function _f(t){return mf(t)}function Sf(t){return pf(t)}function If(t,n,i){return gf.call(t,n,i)}function Tf(t,n,i){If(If(t,n,i),void 0,of)}function Ef(t,n){Tf(t,n)}function Rf(t,n){Tf(t,void 0,n)}function kf(t,n,i){return If(t,n,i)}function Nf(t){If(t,void 0,of)}var Of=function(){function t(){this.Jf=0,this.$f=0,this.Ie={tv:[],ev:void 0},this.rv=this.Ie,this.Jf=0,this.$f=0}return c.defineProperty(t.prototype,"length",{get:function(){return this.$f},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var n=this.rv,i=n;16383===n.tv.length&&(i={tv:[],ev:void 0}),n.tv.push(t),i!==n&&(this.rv=i,n.ev=i),++this.$f},t.prototype.shift=function(){var t=this.Ie,n=t,i=this.Jf,e=i+1,r=t.tv,o=r[i];return 16384===e&&(n=t.ev,e=0),--this.$f,this.Jf=e,t!==n&&(this.Ie=n),r[i]=void 0,o},t.prototype.forEach=function(t){for(var n=this.Jf,i=this.Ie,e=i.tv;!(n===e.length&&void 0===i.ev||n===e.length&&(n=0,0===(e=(i=i.ev).tv).length));)t(e[n]),++n},t.prototype.peek=function(){var t=this.Ie,n=this.Jf;return t.tv[n]},t}();function Pf(t,n,i){var e=null;!0===i&&(e=c.prototype);var r=c.create(e);return r.value=t,r.done=n,r}function Af(t,n){t.uv=!0,t.ov=n,n.hv=t,"readable"===n.ke?Bf(t):"closed"===n.ke?function(t){Bf(t),Uf(t)}(t):Ff(t,n.fv)}function Df(t,n){return qc(t.ov,n)}function xf(t){"readable"===t.ov.ke?Lf(t,new h("Reader was released and can no longer be used to monitor the stream's closedness")):function(t,n){Ff(t,n)}(t,new h("Reader was released and can no longer be used to monitor the stream's closedness")),t.ov.hv=void 0,t.ov=void 0}function Cf(t){return new h("Cannot "+t+" a stream using a released reader")}function Bf(t){t.xa=yf(function(n,i){t.vv=n,t._v=i})}function Ff(t,n){Bf(t),Lf(t,n)}function Lf(t,n){Nf(t.xa),t._v(n),t.vv=void 0,t._v=void 0}function Uf(t){t.vv(void 0),t.vv=void 0,t._v=void 0}var Mf=nf("[[CancelSteps]]"),zf=nf("[[PullSteps]]");function Wf(t,n){void 0===n&&(n=!1);var i=new Yf(t);return i.uv=n,i}function qf(t){return yf(function(n,i){var e={Xu:n,Wu:i};t.hv.wv.push(e)})}function jf(t,n,i){var e=t.hv;e.wv.shift().Xu(Pf(n,i,e.uv))}function Vf(t){return t.hv.wv.length}function Hf(t){var n=t.hv;return void 0!==n&&!!Kf(n)}var Xf,Gf,Yf=function(){function t(t){if(!1===zc(t))throw new h("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===Wc(t))throw new h("This stream has already been locked for exclusive reading by another reader");Af(this,t),this.wv=new Of}return c.defineProperty(t.prototype,"closed",{get:function(){return Kf(this)?this.xa:Sf(Jf("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Kf(this)?void 0===this.ov?Sf(Cf("cancel")):Df(this,t):Sf(Jf("cancel"))},t.prototype.read=function(){return Kf(this)?void 0===this.ov?Sf(Cf("read from")):$f(this):Sf(Jf("read"))},t.prototype.releaseLock=function(){if(!Kf(this))throw Jf("releaseLock");if(void 0!==this.ov){if(this.wv.length>0)throw new h("Tried to release a reader lock when that reader has pending read() calls un-settled");xf(this)}},t}();function Kf(t){return!!uf(t)&&!!c.prototype.hasOwnProperty.call(t,"wv")}function $f(t){var n=t.ov;return n.mv=!0,"closed"===n.ke?_f(Pf(void 0,!0,t.uv)):"errored"===n.ke?Sf(n.fv):n.yv[zf]()}function Jf(t){return new h("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof nf.asyncIterator&&((Xf={})[nf.asyncIterator]=function(){return this},Gf=Xf,c.defineProperty(Gf,nf.asyncIterator,{enumerable:!1}));var Zf={next:function(){if(!1===Qf(this))return Sf(th("next"));var t=this.pv;return void 0===t.ov?Sf(Cf("iterate")):kf($f(t),function(n){var i=n.done;return i&&xf(t),Pf(n.value,i,!0)})},return:function(t){if(!1===Qf(this))return Sf(th("next"));var n=this.pv;if(void 0===n.ov)return Sf(Cf("finish iterating"));if(n.wv.length>0)return Sf(new h("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this.bv){var i=Df(n,t);return xf(n),kf(i,function(){return Pf(t,!0,!0)})}return xf(n),_f(Pf(t,!0,!0))}};function Qf(t){return!!uf(t)&&!!c.prototype.hasOwnProperty.call(t,"pv")}function th(t){return new h("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function nh(t){var n=t.Av.shift();return t.Tv-=n.size,t.Tv<0&&(t.Tv=0),n.value}function ih(t,n,i){if(!ff(i=Number(i)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t.Av.push({value:n,size:i}),t.Tv+=i}function eh(t){t.Av=new Of,t.Tv=0}void 0!==Gf&&c.setPrototypeOf(Zf,Gf),c.defineProperty(Zf,"next",{enumerable:!1}),c.defineProperty(Zf,"return",{enumerable:!1});var rh=nf("[[AbortSteps]]"),oh=nf("[[ErrorSteps]]"),uh=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),fh(this);var i=n.size,e=n.highWaterMark;if(void 0!==t.type)throw new RangeError("Invalid type is specified");var r=wf(i);void 0===e&&(e=1),function(t,n,i,e){var r=c.create(Rh.prototype);var o=cf(n,"write",1,[r]),u=cf(n,"close",0,[]),s=cf(n,"abort",1,[]);kh(t,r,function(){return af(n,"start",[r])},o,u,s,i,e)}(this,t,e=lf(e),r)}return c.defineProperty(t.prototype,"locked",{get:function(){if(!1===hh(this))throw Ch("locked");return ch(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===hh(this)?Sf(Ch("abort")):!0===ch(this)?Sf(new h("Cannot abort a stream that already has a writer")):ah(this,t)},t.prototype.close=function(){return!1===hh(this)?Sf(Ch("close")):!0===ch(this)?Sf(new h("Cannot close a stream that already has a writer")):!0===bh(this)?Sf(new h("Cannot close an already-closing stream")):vh(this)},t.prototype.getWriter=function(){if(!1===hh(this))throw Ch("getWriter");return sh(this)},t}();function sh(t){return new ph(t)}function fh(t){t.ke="writable",t.fv=void 0,t.To=void 0,t.Sv=void 0,t.Ev=new Of,t.Iv=void 0,t.Rv=void 0,t.Nv=void 0,t.Dv=void 0,t.Cv=!1}function hh(t){return!!uf(t)&&!!c.prototype.hasOwnProperty.call(t,"Sv")}function ch(t){return void 0!==t.To}function ah(t,n){var i=t.ke;if("closed"===i||"errored"===i)return _f(void 0);if(void 0!==t.Dv)return t.Dv.Pv;var e=!1;"erroring"===i&&(e=!0,n=void 0);var r=yf(function(i,r){t.Dv={Pv:void 0,Xu:i,Wu:r,Ov:n,Bv:e}});return t.Dv.Pv=r,!1===e&&lh(t,n),r}function vh(t){var n=t.ke;if("closed"===n||"errored"===n)return Sf(new h("The stream (in "+n+" state) is not in the writable state and cannot be closed"));var i,e=yf(function(n,i){var e={Xu:n,Wu:i};t.Rv=e}),r=t.To;return void 0!==r&&!0===t.Cv&&"writable"===n&&Hh(r),ih(i=t.Sv,"close",0),Ph(i),e}function dh(t,n){"writable"!==t.ke?wh(t):lh(t,n)}function lh(t,n){var i=t.Sv;t.ke="erroring",t.fv=n;var e=t.To;void 0!==e&&Ih(e,n),!1===function(t){if(void 0===t.Iv&&void 0===t.Nv)return!1;return!0}(t)&&!0===i.Lv&&wh(t)}function wh(t){t.ke="errored",t.Sv[oh]();var n=t.fv;if(t.Ev.forEach(function(t){t.Wu(n)}),t.Ev=new Of,void 0!==t.Dv){var i=t.Dv;if(t.Dv=void 0,!0===i.Bv)return i.Wu(n),void gh(t);Tf(t.Sv[rh](i.Ov),function(){i.Xu(),gh(t)},function(n){i.Wu(n),gh(t)})}else gh(t)}function bh(t){return void 0!==t.Rv||void 0!==t.Nv}function gh(t){void 0!==t.Rv&&(t.Rv.Wu(t.fv),t.Rv=void 0);var n=t.To;void 0!==n&&Mh(n,t.fv)}function mh(t,n){var i=t.To;void 0!==i&&n!==t.Cv&&(!0===n?function(t){Wh(t)}(i):Hh(i)),t.Cv=n}var ph=function(){function t(t){if(!1===hh(t))throw new h("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===ch(t))throw new h("This stream has already been locked for exclusive writing by another writer");this.Mv=t,t.To=this;var n,i=t.ke;if("writable"===i)!1===bh(t)&&!0===t.Cv?Wh(this):jh(this),Lh(this);else if("erroring"===i)qh(this,t.fv),Lh(this);else if("closed"===i)jh(this),Lh(n=this),zh(n);else{var e=t.fv;qh(this,e),Uh(this,e)}}return c.defineProperty(t.prototype,"closed",{get:function(){return!1===yh(this)?Sf(Bh("closed")):this.xa},enumerable:!0,configurable:!0}),c.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===yh(this))throw Bh("desiredSize");if(void 0===this.Mv)throw Fh("desiredSize");return function(t){var n=t.Mv,i=n.ke;if("errored"===i||"erroring"===i)return null;if("closed"===i)return 0;return Oh(n.Sv)}(this)},enumerable:!0,configurable:!0}),c.defineProperty(t.prototype,"ready",{get:function(){return!1===yh(this)?Sf(Bh("ready")):this.xv},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===yh(this)?Sf(Bh("abort")):void 0===this.Mv?Sf(Fh("abort")):function(t,n){return ah(t.Mv,n)}(this,t)},t.prototype.close=function(){if(!1===yh(this))return Sf(Bh("close"));var t=this.Mv;return void 0===t?Sf(Fh("close")):!0===bh(t)?Sf(new h("Cannot close an already-closing stream")):_h(this)},t.prototype.releaseLock=function(){if(!1===yh(this))throw Bh("releaseLock");void 0!==this.Mv&&Th(this)},t.prototype.write=function(t){return!1===yh(this)?Sf(Bh("write")):void 0===this.Mv?Sf(Fh("write to")):Eh(this,t)},t}();function yh(t){return!!uf(t)&&!!c.prototype.hasOwnProperty.call(t,"Mv")}function _h(t){return vh(t.Mv)}function Sh(t,n){"pending"===t.Fv?Mh(t,n):function(t,n){Uh(t,n)}(t,n)}function Ih(t,n){"pending"===t.Uv?Vh(t,n):function(t,n){qh(t,n)}(t,n)}function Th(t){var n=t.Mv,i=new h("Writer was released and can no longer be used to monitor the stream's closedness");Ih(t,i),Sh(t,i),n.To=void 0,t.Mv=void 0}function Eh(t,n){var i=t.Mv,e=i.Sv,r=function(t,n){try{return t.Hv(n)}catch(n){return Ah(t,n),1}}(e,n);if(i!==t.Mv)return Sf(Fh("write to"));var o=i.ke;if("errored"===o)return Sf(i.fv);if(!0===bh(i)||"closed"===o)return Sf(new h("The stream is closing or closed and cannot be written to"));if("erroring"===o)return Sf(i.fv);var u=function(t){return yf(function(n,i){var e={Xu:n,Wu:i};t.Ev.push(e)})}(i);return function(t,n,i){var e={chunk:n};try{ih(t,e,i)}catch(n){return void Ah(t,n)}var r=t.Vv;if(!1===bh(r)&&"writable"===r.ke){var o=Dh(t);mh(r,o)}Ph(t)}(e,n,r),u}var Rh=function(){function t(){throw new h("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(!1===function(t){if(!uf(t))return!1;if(!c.prototype.hasOwnProperty.call(t,"Vv"))return!1;return!0}(this))throw new h("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this.Vv.ke&&xh(this,t)},t.prototype[rh]=function(t){var n=this.Xv(t);return Nh(this),n},t.prototype[oh]=function(){eh(this)},t}();function kh(t,n,i,e,r,o,u,s){n.Vv=t,t.Sv=n,n.Av=void 0,n.Tv=void 0,eh(n),n.Lv=!1,n.Hv=s,n.zv=u,n.qv=e,n.Wv=r,n.Xv=o;var f=Dh(n);mh(t,f),Tf(_f(i()),function(){n.Lv=!0,Ph(n)},function(i){n.Lv=!0,dh(t,i)})}function Nh(t){t.qv=void 0,t.Wv=void 0,t.Xv=void 0,t.Hv=void 0}function Oh(t){return t.zv-t.Tv}function Ph(t){var n=t.Vv;if(!1!==t.Lv&&void 0===n.Iv)if("erroring"!==n.ke){if(0!==t.Av.length){var i=t.Av.peek().value;"close"===i?function(t){var n=t.Vv;(function(t){t.Nv=t.Rv,t.Rv=void 0})(n),nh(t);var i=t.Wv();Nh(t),Tf(i,function(){!function(t){t.Nv.Xu(void 0),t.Nv=void 0,"erroring"===t.ke&&(t.fv=void 0,void 0!==t.Dv&&(t.Dv.Xu(),t.Dv=void 0)),t.ke="closed";var n=t.To;void 0!==n&&zh(n)}(n)},function(t){!function(t,n){t.Nv.Wu(n),t.Nv=void 0,void 0!==t.Dv&&(t.Dv.Wu(n),t.Dv=void 0),dh(t,n)}(n,t)})}(t):function(t,n){var i=t.Vv;(function(t){t.Iv=t.Ev.shift()})(i),Tf(t.qv(n),function(){!function(t){t.Iv.Xu(void 0),t.Iv=void 0}(i);var n=i.ke;if(nh(t),!1===bh(i)&&"writable"===n){var e=Dh(t);mh(i,e)}Ph(t)},function(n){"writable"===i.ke&&Nh(t),function(t,n){t.Iv.Wu(n),t.Iv=void 0,dh(t,n)}(i,n)})}(t,i.chunk)}}else wh(n)}function Ah(t,n){"writable"===t.Vv.ke&&xh(t,n)}function Dh(t){return Oh(t)<=0}function xh(t,n){var i=t.Vv;Nh(t),lh(i,n)}function Ch(t){return new h("WritableStream.prototype."+t+" can only be used on a WritableStream")}function Bh(t){return new h("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function Fh(t){return new h("Cannot "+t+" a stream using a released writer")}function Lh(t){t.xa=yf(function(n,i){t.vv=n,t._v=i,t.Fv="pending"})}function Uh(t,n){Lh(t),Mh(t,n)}function Mh(t,n){Nf(t.xa),t._v(n),t.vv=void 0,t._v=void 0,t.Fv="rejected"}function zh(t){t.vv(void 0),t.vv=void 0,t._v=void 0,t.Fv="resolved"}function Wh(t){t.xv=yf(function(n,i){t.Gv=n,t.Yv=i}),t.Uv="pending"}function qh(t,n){Wh(t),Vh(t,n)}function jh(t){Wh(t),Hh(t)}function Vh(t,n){Nf(t.xv),t.Yv(n),t.Gv=void 0,t.Yv=void 0,t.Uv="rejected"}function Hh(t){t.Gv(void 0),t.Gv=void 0,t.Yv=void 0,t.Uv="fulfilled"}function Xh(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}var Gh="undefined"!=typeof DOMException?DOMException:void 0;var Yh,Kh=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}(Gh)?Gh:((Yh=function(t,n){this.message=t||"",this.name=n||"Error",f.captureStackTrace&&f.captureStackTrace(this,this.constructor)}).prototype=c.create(f.prototype),c.defineProperty(Yh.prototype,"constructor",{value:Yh,writable:!0,configurable:!0}),Yh);function $h(t,n,i,e,r,o){var u=Wf(t),s=sh(n);t.mv=!0;var f=!1,c=_f(void 0);return yf(function(a,v){var d,l,w,b;if(void 0!==o){if(d=function(){var i=new Kh("Aborted","AbortError"),o=[];!1===e&&o.push(function(){return"writable"===n.ke?ah(n,i):_f(void 0)}),!1===r&&o.push(function(){return"readable"===t.ke?qc(t,i):_f(void 0)}),y(function(){return j.all(o.map(function(t){return t()}))},!0,i)},!0===o.aborted)return void d();o.addEventListener("abort",d)}if(p(t,u.xa,function(t){!1===e?y(function(){return ah(n,t)},!0,t):_(!0,t)}),p(n,s.xa,function(n){!1===r?y(function(){return qc(t,n)},!0,n):_(!0,n)}),l=t,w=u.xa,b=function(){!1===i?y(function(){return function(t){var n=t.Mv,i=n.ke;return!0===bh(n)||"closed"===i?_f(void 0):"errored"===i?Sf(n.fv):_h(t)}(s)}):_()},"closed"===l.ke?b():Ef(w,b),!0===bh(n)||"closed"===n.ke){var g=new h("the destination writable stream closed before all data could be piped to it");!1===r?y(function(){return qc(t,g)},!0,g):_(!0,g)}function m(){var t=c;return If(c,function(){return t!==c?m():void 0})}function p(t,n,i){"errored"===t.ke?i(t.fv):Rf(n,i)}function y(t,i,e){function r(){Tf(t(),function(){return S(i,e)},function(t){return S(!0,t)})}!0!==f&&(f=!0,"writable"===n.ke&&!1===bh(n)?Ef(m(),r):r())}function _(t,i){!0!==f&&(f=!0,"writable"===n.ke&&!1===bh(n)?Ef(m(),function(){return S(t,i)}):S(t,i))}function S(t,n){Th(s),xf(u),void 0!==o&&o.removeEventListener("abort",d),t?v(n):a(void 0)}Nf(yf(function(t,n){!function i(e){e?t():If(!0===f?_f(!0):If(s.xv,function(){return If($f(u),function(t){return!0===t.done||(c=If(Eh(s,t.value),void 0,ef),!1)})}),i,n)}(!1)}))})}var Jh=function(){function t(){throw new h}return c.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Zh(this))throw fc("desiredSize");return oc(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===Zh(this))throw fc("close");if(!1===uc(this))throw new h("The stream is not in a state that permits close");ic(this)},t.prototype.enqueue=function(t){if(!1===Zh(this))throw fc("enqueue");if(!1===uc(this))throw new h("The stream is not in a state that permits enqueue");return ec(this,t)},t.prototype.error=function(t){if(!1===Zh(this))throw fc("error");rc(this,t)},t.prototype[Mf]=function(t){eh(this);var n=this.Qv(t);return nc(this),n},t.prototype[zf]=function(){var t=this.Kv;if(this.Av.length>0){var n=nh(this);return!0===this.Zv&&0===this.Av.length?(nc(this),jc(t)):Qh(this),_f(Pf(n,!1,t.hv.uv))}var i=qf(t);return Qh(this),i},t}();function Zh(t){return!!uf(t)&&!!c.prototype.hasOwnProperty.call(t,"Kv")}function Qh(t){!1!==tc(t)&&(!0!==t.Jv?(t.Jv=!0,Tf(t.$v(),function(){t.Jv=!1,!0===t.td&&(t.td=!1,Qh(t))},function(n){rc(t,n)})):t.td=!0)}function tc(t){var n=t.Kv;return!1!==uc(t)&&(!1!==t.Lv&&(!0===Wc(n)&&Vf(n)>0||oc(t)>0))}function nc(t){t.$v=void 0,t.Qv=void 0,t.Hv=void 0}function ic(t){var n=t.Kv;t.Zv=!0,0===t.Av.length&&(nc(t),jc(n))}function ec(t,n){var i=t.Kv;if(!0===Wc(i)&&Vf(i)>0)jf(i,n,!1);else{var e=void 0;try{e=t.Hv(n)}catch(n){throw rc(t,n),n}try{ih(t,n,e)}catch(n){throw rc(t,n),n}}Qh(t)}function rc(t,n){var i=t.Kv;"readable"===i.ke&&(eh(t),nc(t),Vc(i,n))}function oc(t){var n=t.Kv.ke;return"errored"===n?null:"closed"===n?0:t.zv-t.Tv}function uc(t){var n=t.Kv.ke;return!1===t.Zv&&"readable"===n}function sc(t,n,i,e,r,o,u){n.Kv=t,n.Av=void 0,n.Tv=void 0,eh(n),n.Lv=!1,n.Zv=!1,n.td=!1,n.Jv=!1,n.Hv=u,n.zv=o,n.$v=e,n.Qv=r,t.yv=n,Tf(_f(i()),function(){n.Lv=!0,Qh(n)},function(t){rc(n,t)})}function fc(t){return new h("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}var hc=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&a.floor(t)===t},cc=function(){function t(){throw new h("ReadableStreamBYOBRequest cannot be used directly")}return c.defineProperty(t.prototype,"view",{get:function(){if(!1===dc(this))throw Oc("view");return this.ed},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===dc(this))throw Oc("respond");if(void 0===this.rd)throw new h("This BYOB request has been invalidated");this.ed.buffer,function(t,n){if(!1===ff(n=Number(n)))throw new RangeError("bytesWritten must be a finite");Ic(t,n)}(this.rd,t)},t.prototype.respondWithNewView=function(t){if(!1===dc(this))throw Oc("respond");if(void 0===this.rd)throw new h("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new h("You can only respond with array buffer views");t.buffer,function(t,n){var i=t.ud.peek();if(i.byteOffset+i.bytesFilled!==n.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(i.byteLength!==n.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");i.buffer=n.buffer,Ic(t,n.byteLength)}(this.rd,t)},t}(),ac=function(){function t(){throw new h("ReadableByteStreamController constructor cannot be used directly")}return c.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===vc(this))throw Pc("byobRequest");if(void 0===this.od&&this.ud.length>0){var t=this.ud.peek(),n=new w(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),i=c.create(cc.prototype);!function(t,n,i){t.rd=n,t.ed=i}(i,this,n),this.od=i}return this.od},enumerable:!0,configurable:!0}),c.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===vc(this))throw Pc("desiredSize");return kc(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===vc(this))throw Pc("close");if(!0===this.Zv)throw new h("The stream has already been closed; do not close it again!");var t=this.hd.ke;if("readable"!==t)throw new h("The stream (in "+t+" state) is not in the readable state and cannot be closed");!function(t){var n=t.hd;if(t.Tv>0)return void(t.Zv=!0);if(t.ud.length>0){var i=t.ud.peek();if(i.bytesFilled>0){var e=new h("Insufficient bytes to fill elements in the given buffer");throw Rc(t,e),e}}Ec(t),jc(n)}(this)},t.prototype.enqueue=function(t){if(!1===vc(this))throw Pc("enqueue");if(!0===this.Zv)throw new h("stream is closed or draining");var n=this.hd.ke;if("readable"!==n)throw new h("The stream (in "+n+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new h("You can only enqueue array buffer views when using a ReadableByteStreamController");t.buffer,function(t,n){var i=t.hd,e=n.buffer,r=n.byteOffset,o=n.byteLength,u=df(e);if(!0===Hf(i))if(0===Vf(i))gc(t,u,r,o);else{var s=new w(u,r,o);jf(i,s,!1)}else!0===xc(i)?(gc(t,u,r,o),Sc(t)):gc(t,u,r,o);lc(t)}(this,t)},t.prototype.error=function(t){if(!1===vc(this))throw Pc("error");Rc(this,t)},t.prototype[Mf]=function(t){this.ud.length>0&&(this.ud.peek().bytesFilled=0);eh(this);var n=this.Qv(t);return Ec(this),n},t.prototype[zf]=function(){var t=this.hd;if(this.Tv>0){var n=this.Av.shift();this.Tv-=n.byteLength,yc(this);var i=void 0;try{i=new w(n.buffer,n.byteOffset,n.byteLength)}catch(t){return Sf(t)}return _f(Pf(i,!1,t.hv.uv))}var e=this.fd;if(void 0!==e){var r=void 0;try{r=new ArrayBuffer(e)}catch(t){return Sf(t)}var o={buffer:r,byteOffset:0,byteLength:e,bytesFilled:0,elementSize:1,ctor:w,readerType:"default"};this.ud.push(o)}var u=qf(t);return lc(this),u},t}();function vc(t){return!!uf(t)&&!!c.prototype.hasOwnProperty.call(t,"hd")}function dc(t){return!!uf(t)&&!!c.prototype.hasOwnProperty.call(t,"rd")}function lc(t){!1!==function(t){var n=t.hd;if("readable"!==n.ke)return!1;if(!0===t.Zv)return!1;if(!1===t.Lv)return!1;if(!0===Hf(n)&&Vf(n)>0)return!0;if(!0===xc(n)&&Dc(n)>0)return!0;if(kc(t)>0)return!0;return!1}(t)&&(!0!==t.Jv?(t.Jv=!0,Tf(t.$v(),function(){t.Jv=!1,!0===t.td&&(t.td=!1,lc(t))},function(n){Rc(t,n)})):t.td=!0)}function wc(t,n){var i=!1;"closed"===t.ke&&(i=!0);var e=bc(n);"default"===n.readerType?jf(t,e,i):function(t,n,i){var e=t.hv;e.vd.shift().Xu(Pf(n,i,e.uv))}(t,e,i)}function bc(t){var n=t.bytesFilled,i=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,n/i)}function gc(t,n,i,e){t.Av.push({buffer:n,byteOffset:i,byteLength:e}),t.Tv+=e}function mc(t,n){var i=n.elementSize,e=n.bytesFilled-n.bytesFilled%i,r=a.min(t.Tv,n.byteLength-n.bytesFilled),o=n.bytesFilled+r,u=o-o%i,s=r,f=!1;u>e&&(s=u-n.bytesFilled,f=!0);for(var h,c,v,d,l,b=t.Av;s>0;){var g=b.peek(),m=a.min(s,g.byteLength),p=n.byteOffset+n.bytesFilled;h=n.buffer,c=p,v=g.buffer,d=g.byteOffset,l=m,new w(h).set(new w(v,d,l),c),g.byteLength===m?b.shift():(g.byteOffset+=m,g.byteLength-=m),t.Tv-=m,pc(t,m,n),s-=m}return f}function pc(t,n,i){_c(t),i.bytesFilled+=n}function yc(t){0===t.Tv&&!0===t.Zv?(Ec(t),jc(t.hd)):lc(t)}function _c(t){void 0!==t.od&&(t.od.rd=void 0,t.od.ed=void 0,t.od=void 0)}function Sc(t){for(;t.ud.length>0;){if(0===t.Tv)return;var n=t.ud.peek();!0===mc(t,n)&&(Tc(t),wc(t.hd,n))}}function Ic(t,n){var i=t.ud.peek();if("closed"===t.hd.ke){if(0!==n)throw new h("bytesWritten must be 0 when calling respond() on a closed stream");!function(t,n){n.buffer=df(n.buffer);var i=t.hd;if(!0===xc(i))for(;Dc(i)>0;)wc(i,Tc(t))}(t,i)}else!function(t,n,i){if(i.bytesFilled+n>i.byteLength)throw new RangeError("bytesWritten out of range");if(pc(t,n,i),!(i.bytesFilled<i.elementSize)){Tc(t);var e=i.bytesFilled%i.elementSize;if(e>0){var r=i.byteOffset+i.bytesFilled,o=i.buffer.slice(r-e,r);gc(t,o,0,o.byteLength)}i.buffer=df(i.buffer),i.bytesFilled-=e,wc(t.hd,i),Sc(t)}}(t,n,i);lc(t)}function Tc(t){var n=t.ud.shift();return _c(t),n}function Ec(t){t.$v=void 0,t.Qv=void 0}function Rc(t,n){var i=t.hd;"readable"===i.ke&&(!function(t){_c(t),t.ud=new Of}(t),eh(t),Ec(t),Vc(i,n))}function kc(t){var n=t.hd.ke;return"errored"===n?null:"closed"===n?0:t.zv-t.Tv}function Nc(t,n,i){var e=c.create(ac.prototype);var r=cf(n,"pull",0,[e]),o=cf(n,"cancel",1,[]),u=n.autoAllocateChunkSize;if(void 0!==u&&(u=Number(u),!1===hc(u)||u<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(t,n,i,e,r,o,u){n.hd=t,n.td=!1,n.Jv=!1,n.od=void 0,n.Av=n.Tv=void 0,eh(n),n.Zv=!1,n.Lv=!1,n.zv=lf(o),n.$v=e,n.Qv=r,n.fd=u,n.ud=new Of,t.yv=n,Tf(_f(i()),function(){n.Lv=!0,lc(n)},function(t){Rc(n,t)})}(t,e,function(){return af(n,"start",[e])},r,o,i,u)}function Oc(t){return new h("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function Pc(t){return new h("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function Ac(t){return yf(function(n,i){var e={Xu:n,Wu:i};t.hv.vd.push(e)})}function Dc(t){return t.hv.vd.length}function xc(t){var n=t.hv;return void 0!==n&&!!Bc(n)}var Cc=function(){function t(t){if(!zc(t))throw new h("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===vc(t.yv))throw new h("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(Wc(t))throw new h("This stream has already been locked for exclusive reading by another reader");Af(this,t),this.vd=new Of}return c.defineProperty(t.prototype,"closed",{get:function(){return Bc(this)?this.xa:Sf(Fc("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Bc(this)?void 0===this.ov?Sf(Cf("cancel")):Df(this,t):Sf(Fc("cancel"))},t.prototype.read=function(t){return Bc(this)?void 0===this.ov?Sf(Cf("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?Sf(new h("view must have non-zero byteLength")):function(t,n){var i=t.ov;if(i.mv=!0,"errored"===i.ke)return Sf(i.fv);return function(t,n){var i=t.hd,e=1;n.constructor!==DataView&&(e=n.constructor.BYTES_PER_ELEMENT);var r=n.constructor,o={buffer:df(n.buffer),byteOffset:n.byteOffset,byteLength:n.byteLength,bytesFilled:0,elementSize:e,ctor:r,readerType:"byob"};if(t.ud.length>0)return t.ud.push(o),Ac(i);if("closed"===i.ke)return _f(Pf(new r(o.buffer,o.byteOffset,0),!0,i.hv.uv));if(t.Tv>0){if(!0===mc(t,o)){var u=bc(o);return yc(t),_f(Pf(u,!1,i.hv.uv))}if(!0===t.Zv){var s=new h("Insufficient bytes to fill elements in the given buffer");return Rc(t,s),Sf(s)}}t.ud.push(o);var f=Ac(i);return lc(t),f}(i.yv,n)}(this,t)):Sf(new h("view must be an array buffer view")):Sf(Fc("read"))},t.prototype.releaseLock=function(){if(!Bc(this))throw Fc("releaseLock");if(void 0!==this.ov){if(this.vd.length>0)throw new h("Tried to release a reader lock when that reader has pending read() calls un-settled");xf(this)}},t}();function Bc(t){return!!uf(t)&&!!c.prototype.hasOwnProperty.call(t,"vd")}function Fc(t){return new h("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}var Lc=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),Mc(this);var i=n.size,e=n.highWaterMark,r=t.type;if("bytes"===String(r)){if(void 0!==i)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===e&&(e=0),Nc(this,t,e=lf(e))}else{if(void 0!==r)throw new RangeError("Invalid type is specified");var o=wf(i);void 0===e&&(e=1),function(t,n,i,e){var r=c.create(Jh.prototype),o=cf(n,"pull",0,[r]),u=cf(n,"cancel",1,[]);sc(t,r,function(){return af(n,"start",[r])},o,u,i,e)}(this,t,e=lf(e),o)}}return c.defineProperty(t.prototype,"locked",{get:function(){if(!1===zc(this))throw Hc("locked");return Wc(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===zc(this)?Sf(Hc("cancel")):!0===Wc(this)?Sf(new h("Cannot cancel a stream that already has a reader")):qc(this,t)},t.prototype.getReader=function(t){var n=(void 0===t?{}:t).mode;if(!1===zc(this))throw Hc("getReader");if(void 0===n)return Wf(this,!0);if("byob"===(n=String(n)))return function(t,n){void 0===n&&(n=!1);var i=new Cc(t);return i.uv=n,i}(this,!0);throw new RangeError("Invalid mode is specified")},t.prototype.pipeThrough=function(t,n){var i=t.writable,e=t.readable,r=void 0===n?{}:n,o=r.preventClose,u=r.preventAbort,s=r.preventCancel,f=r.signal;if(!1===zc(this))throw Hc("pipeThrough");if(!1===hh(i))throw new h("writable argument to pipeThrough must be a WritableStream");if(!1===zc(e))throw new h("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),u=Boolean(u),s=Boolean(s),void 0!==f&&!Xh(f))throw new h("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===Wc(this))throw new h("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===ch(i))throw new h("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return Nf($h(this,i,o,u,s,f)),e},t.prototype.pipeTo=function(t,n){var i=void 0===n?{}:n,e=i.preventClose,r=i.preventAbort,o=i.preventCancel,u=i.signal;return!1===zc(this)?Sf(Hc("pipeTo")):!1===hh(t)?Sf(new h("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(e=Boolean(e),r=Boolean(r),o=Boolean(o),void 0===u||Xh(u)?!0===Wc(this)?Sf(new h("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===ch(t)?Sf(new h("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):$h(this,t,e,r,o,u):Sf(new h("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===zc(this))throw Hc("tee");var t=function(t,n){var i,e,r,o,u,s=Wf(t),f=!1,h=!1,c=!1,a=yf(function(t){u=t});function v(){return!0===f?_f(void 0):(f=!0,Nf(kf($f(s),function(t){if(f=!1,!0===t.done)return!1===h&&ic(r.yv),void(!1===c&&ic(o.yv));var n=t.value,i=n,e=n;!1===h&&ec(r.yv,i),!1===c&&ec(o.yv,e)})),_f(void 0))}function d(){}return r=Uc(d,v,function(n){if(h=!0,i=n,!0===c){var r=sf([i,e]),o=qc(t,r);u(o)}return a}),o=Uc(d,v,function(n){if(c=!0,e=n,!0===h){var r=sf([i,e]),o=qc(t,r);u(o)}return a}),Rf(s.xa,function(t){rc(r.yv,t),rc(o.yv,t)}),[r,o]}(this);return sf(t)},t.prototype.getIterator=function(t){var n=(void 0===t?{}:t).preventCancel,i=void 0!==n&&n;if(!1===zc(this))throw Hc("getIterator");return function(t,n){void 0===n&&(n=!1);var i=Wf(t),e=c.create(Zf);return e.pv=i,e.bv=Boolean(n),e}(this,i)},t}();function Uc(t,n,i,e,r){void 0===e&&(e=1),void 0===r&&(r=function(){return 1});var o=c.create(Lc.prototype);return Mc(o),sc(o,c.create(Jh.prototype),t,n,i,e,r),o}function Mc(t){t.ke="readable",t.hv=void 0,t.fv=void 0,t.mv=!1}function zc(t){return!!uf(t)&&!!c.prototype.hasOwnProperty.call(t,"yv")}function Wc(t){return void 0!==t.hv}function qc(t,n){return t.mv=!0,"closed"===t.ke?_f(void 0):"errored"===t.ke?Sf(t.fv):(jc(t),kf(t.yv[Mf](n),ef))}function jc(t){t.ke="closed";var n=t.hv;void 0!==n&&(Kf(n)&&(n.wv.forEach(function(t){t.Xu(Pf(void 0,!0,n.uv))}),n.wv=new Of),Uf(n))}function Vc(t,n){t.ke="errored",t.fv=n;var i=t.hv;void 0!==i&&(Kf(i)?(i.wv.forEach(function(t){t.Wu(n)}),i.wv=new Of):(i.vd.forEach(function(t){t.Wu(n)}),i.vd=new Of),Lf(i,n))}function Hc(t){return new h("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}"symbol"==typeof nf.asyncIterator&&c.defineProperty(Lc.prototype,nf.asyncIterator,{value:Lc.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Xc=function(){function t(t,n,i){void 0===t&&(t={}),void 0===n&&(n={}),void 0===i&&(i={});var e=n.size,r=n.highWaterMark,o=i.size,u=i.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=wf(e);if(void 0===r&&(r=1),r=lf(r),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var f,a=wf(o);void 0===u&&(u=0),u=lf(u),function(t,n,i,e,r,o){function u(){return n}t.dd=function(t,n,i,e,r,o){void 0===r&&(r=1),void 0===o&&(o=function(){return 1});var u=c.create(uh.prototype);return fh(u),kh(u,c.create(Rh.prototype),t,n,i,e,r,o),u}(u,function(n){return function(t,n){var i=t.ld;if(!0===t.Cv){var e=t._d;return kf(e,function(){var e=t.dd,r=e.ke;if("erroring"===r)throw e.fv;return ia(i,n)})}return ia(i,n)}(t,n)},function(){return function(t){var n=t.wd,i=t.ld,e=i.md();return ta(i),kf(e,function(){if("errored"===n.ke)throw n.fv;var t=n.yv;!0===uc(t)&&ic(t)},function(i){throw Yc(t,i),n.fv})}(t)},function(n){return function(t,n){return Yc(t,n),_f(void 0)}(t,n)},i,e),t.wd=Uc(u,function(){return function(t){return $c(t,!1),t._d}(t)},function(n){return Kc(t,n),_f(void 0)},r,o),t.Cv=void 0,t._d=void 0,t.kd=void 0,$c(t,!0),t.ld=void 0}(this,yf(function(t){f=t}),r,s,u,a),function(t,n){var i=c.create(Zc.prototype),e=function(t){try{return na(i,t),_f(void 0)}catch(t){return Sf(t)}},r=n.transform;if(void 0!==r){if("function"!=typeof r)throw new h("transform is not a method");e=function(t){return vf(r,n,[t,i])}}var o=cf(n,"flush",0,[i]);!function(t,n,i,e){n.yd=t,t.ld=n,n.pd=i,n.md=e}(t,i,e,o)}(this,t);var v=af(t,"start",[this.ld]);f(v)}return c.defineProperty(t.prototype,"readable",{get:function(){if(!1===Gc(this))throw ra("readable");return this.wd},enumerable:!0,configurable:!0}),c.defineProperty(t.prototype,"writable",{get:function(){if(!1===Gc(this))throw ra("writable");return this.dd},enumerable:!0,configurable:!0}),t}();function Gc(t){return!!uf(t)&&!!c.prototype.hasOwnProperty.call(t,"ld")}function Yc(t,n){rc(t.wd.yv,n),Kc(t,n)}function Kc(t,n){ta(t.ld),Ah(t.dd.Sv,n),!0===t.Cv&&$c(t,!1)}function $c(t,n){void 0!==t._d&&t.kd(),t._d=yf(function(n){t.kd=n}),t.Cv=n}var Jc,Zc=function(){function t(){throw new h("TransformStreamDefaultController instances cannot be created directly")}return c.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Qc(this))throw ea("desiredSize");return oc(this.yd.wd.yv)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===Qc(this))throw ea("enqueue");na(this,t)},t.prototype.error=function(t){if(!1===Qc(this))throw ea("error");var n;n=t,Yc(this.yd,n)},t.prototype.terminate=function(){if(!1===Qc(this))throw ea("terminate");!function(t){var n=t.yd,i=n.wd.yv;!0===uc(i)&&ic(i);var e=new h("TransformStream terminated");Kc(n,e)}(this)},t}();function Qc(t){return!!uf(t)&&!!c.prototype.hasOwnProperty.call(t,"yd")}function ta(t){t.pd=void 0,t.md=void 0}function na(t,n){var i=t.yd,e=i.wd.yv;if(!1===uc(e))throw new h("Readable side is not in a state that permits enqueue");try{ec(e,n)}catch(t){throw Kc(i,t),i.wd.fv}(function(t){return!0!==tc(t)})(e)!==i.Cv&&$c(i,!0)}function ia(t,n){return kf(t.pd(n),void 0,function(n){throw Yc(t.yd,n),n})}function ea(t){return new h("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function ra(t){return new h("TransformStream.prototype."+t+" can only be used on a TransformStream")}function oa(t){return n=[t],new Lc({start:function(t){for(var i=0;i<n.length;i++){var e=n[i];t.enqueue(e)}t.close()}});var n}function ua(t){return oa(new w(t))}function sa(t,n){return function(t,n){var i=n,e=t.getReader(),r=new tu,o=function(){u();var t=new An;e.cancel(t).catch(dt),r.Yu(t)},u=function(){i&&(i.Fs(o),i=void 0)};i&&(i.Cs?o():i.xs(o));var s=[];return j.resolve(e.read()).then(function t(n){return n.done?(u(),j.resolve(s)):(s.push(n.value),j.resolve(e.read()).then(t))}).then(function(t){u(),r.Gu(t)},function(t){u(),r.Yu(t)}),r.Vu}(t,n).then(function(t){return si(t).buffer})}function fa(t,n){var i=n,e=new Xc,r=e.readable,o=e.writable,u=o.getWriter(),s=function(){i&&i.Xs()};return u.closed.then(s,s),t.then(function(t){return i=void 0,u.releaseLock(),t.pipeTo(o).catch(dt)},function(t){return i=void 0,u.releaseLock(),o.abort(t).catch(dt)}),r}function ha(t){return Zn(new w(t))}function ca(t){return Qn(t).buffer}!function(t){t[t.Qf=0]="Qf",t[t.bd=1]="bd"}(Jc||(Jc={}));var aa="content-type",va="text/plain;charset=UTF-8",da=function(){function t(){}var n=t.prototype;return n.Td=function(t){return this.Sd(t).then(JSON.parse)},n.Ed=function(t,n){switch(t){case Js.Gf:return this.Id(n);case Js.Yf:return this.Td(n);case Js.Qf:return this.Rd();case Js.$n:return this.Sd(n);default:throw new h}},t}();function la(t,n,i){if(t instanceof da)return t;if(t instanceof Lc)return function(t,n){return new ba({vs:Jc.Qf,Rd:t,Nd:wa(n)})}(t,i);var e=wa(i),r=j.resolve(t).then(function(t){return function(t,n){if(t){if("string"==typeof t)return{vs:Js.$n,Dd:t,Nd:n||va};if(t instanceof ArrayBuffer||ui(t))return{vs:Js.Gf,Dd:Ia(t),Nd:n};if(et(i=t)&&i.constructor&&i.constructor===c||it(t))return{vs:Js.Yf,Dd:t,Nd:n};throw new h("Unsupported BodyInit type")}return{vs:Js.$n,Dd:null,Nd:n};var i}(t,e)});return new ba({vs:Jc.bd,Vu:r,Cd:n})}function wa(t){return(t.get(aa)||"").toLowerCase()}var ba=function(t){function n(n){var i;return(i=t.call(this)||this).Pd=!1,i.Od=void 0,i.Bd=new tu,i.Bd.Vu.catch(dt),i.Ld(n),i}Mt(n,t);var i=n.prototype;return i.Md=function(){return this.Bd.Vu},i.Sd=function(t){return this.xd(ga,t)},i.Td=function(t){return this.xd(pa,t)},i.Id=function(t){return this.xd(_a,t)},i.Rd=function(){return this.Fd((t=this.Od).vs===Jc.Qf?t.Rd:fa(t.Vu.then(Sa).then(ua),t.Cd));var t},i.xd=function(t,n){if(this.Pd)return j.reject(new h("Already used"));this.Pd=!0;var i=t(this.Od,n);return this.Bd.Gu(i.then(dt)),i},i.Fd=function(t){if(this.Pd)throw new h("Already used");if(t.locked)throw new h("Body stream is locked");this.Pd=!0;var n=new Xc,i=j.resolve(t.pipeTo(n.writable));return this.Bd.Gu(i),n.readable},i.Ld=function(t){this.Od=t,t.vs===Jc.bd&&t.Vu.catch(dt)},i.Ud=function(){if(this.Pd)throw new h("Already used");var t=function(t){if(t.vs===Jc.Qf){var n=t.Rd.tee(),i=n[0],e=n[1];return[{vs:t.vs,Rd:i,Nd:t.Nd},{vs:t.vs,Rd:e,Nd:t.Nd}]}var r=t.Cd.qs(),o=r[0],u=r[1];return[{vs:t.vs,Vu:t.Vu,Cd:o},{vs:t.vs,Vu:t.Vu,Cd:u}]}(this.Od),i=t[0],e=t[1];return this.Ld(i),new n(e)},mt(n,[{key:"Hd",get:function(){return this.Pd}}]),n}(da);function ga(t,n){return t.vs===Jc.Qf?sa(t.Rd,n).then(ha):(n&&t.Cd.zs(n),xn(t.Vu.then(ma),t.Cd))}function ma(t){switch(t.vs){case Js.$n:return j.resolve(t.Dd||"");case Js.Gf:return j.resolve(t.Dd).then(ha);case Js.Yf:return j.resolve(t.Dd).then(JSON.stringify)}}function pa(t,n){return t.vs===Jc.Qf?ga(t,n).then(JSON.parse):(n&&t.Cd.zs(n),xn(t.Vu.then(ya),t.Cd))}function ya(t){return t.vs===Js.Yf?j.resolve(t.Dd):ma(t).then(JSON.parse)}function _a(t,n){return t.vs===Jc.Qf?sa(t.Rd,n):(n&&t.Cd.zs(n),xn(t.Vu.then(Sa),t.Cd))}function Sa(t){switch(t.vs){case Js.Gf:return j.resolve(t.Dd);case Js.$n:case Js.Yf:return ma(t).then(ca)}}function Ia(t){return t instanceof ArrayBuffer?t:ei(ni(t)).buffer}function Ta(t){return t.Vd>=200&&t.Vd<=299||304===t.Vd}var Ea,Ra,ka,Na,Oa=function(t){function n(n,i){var e,r,o,u,s,f;i?(r=i.Xd,o=i.zd,u=i.Vd,s=i.qd,f=i.Wd):(r=[],o=Js.$n,u=200,s="OK",f=!1);var h=n.Gd,c=new Zs(n.Xd||r),a=n.zd||o,v=n.Yd||(i&&i.Gd===h?i.Yd:h.Qd),d=i?i.jd:null,l=la(void 0!==n.Xi?n.Xi:d,n.Cd||new Pn,c);return(e=t.call(this,l)||this).Xd=void 0,e.Gd=void 0,e.Yd=void 0,e.zd=void 0,e.Vd=void 0,e.qd=void 0,e.Wd=void 0,e.Xd=c,e.Gd=h,e.Yd=v,e.zd=a,e.Vd=void 0!==n.Vd?n.Vd:u,e.qd=void 0!==n.qd?String(n.qd):s,e.Wd=n.Wd||f,e}Mt(n,t);var i=n.prototype;return i.Xi=function(t){return this.Ed(this.zd,t)},i.xu=function(){return new n({Xi:this.Ud(),Gd:this.Gd},this)},n}(function(t){function n(n){var i;return(i=t.call(this)||this).jd=void 0,i.jd=n,i}Mt(n,t);var i=n.prototype;return i.Md=function(){return this.jd.Md()},i.Sd=function(t){return this.jd.Sd(t)},i.Td=function(t){return this.jd.Td(t)},i.Id=function(t){return this.jd.Id(t)},i.Rd=function(){return this.jd.Rd()},i.Ud=function(){return this.jd.Ud()},mt(n,[{key:"Hd",get:function(){return this.jd.Hd}}]),n}(da));!function(t){t.DELETE="DELETE",t.GET="GET",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT"}(Ea||(Ea={})),function(t){t.Kd="",t.Zd="manifest",t.Jd="segment",t.$d="content-protection"}(Ra||(Ra={})),function(t){t.Kd="",t.il="initialization-segment",t.ul="fairplay-license",t.ol="fairplay-certificate",t.hl="widevine-license",t.al="widevine-certificate",t.cl="playready-license",t.fl="clearkey-license",t.vl="aes128-key"}(ka||(ka={})),function(t){t.Kd="",t.dl="audio",t.ll="video",t.$n="text",t._l="image"}(Na||(Na={}));var Pa=function(t,n){this.Dd=void 0,this.Xd=void 0,this.wl=void 0,this.zd=void 0,this.yl=void 0,this.Ws=void 0,this.vs=void 0,this.bl=void 0,this.Al=void 0,this.Qd=void 0,this.Tl=void 0,this.Sl=void 0;var i,e,r,o,u,s,f,h,c,a,v,d=t.Qd;n?(i=n.Dd,e=n.Xd,r=n.wl,o=n.zd,u=n.yl,s=n.Ws,f=n.vs,h=n.bl,c=n.Al,a=n.Tl,v=n.Sl):(i=null,e={},r=Ea.GET,o=Js.$n,u=0,f=Ra.Kd,h=ka.Kd,c=Na.Kd,a=!1),this.Qd=d,this.Dd=t.Dd||i,this.Xd=new Zs(t.Xd||e),this.wl=t.wl||r,this.zd=t.zd||o,this.yl=void 0!==t.yl?Number(t.yl)||0:u,this.Ws=t.Ws||s||(new Pn).Ws,this.vs=t.vs||f,this.bl=t.bl||h,this.Al=t.Al||c,this.Tl=void 0!==t.Tl?Boolean(t.Tl):a,this.Sl=t.Sl||v},Aa=function(){function t(){}var n=t.prototype;return n.Gd=function(t){var n=function(t){return new Oa({Xi:null,Xd:{},Gd:t,Yd:t.Qd,zd:t.zd,Vd:0,qd:$s.Sf})}(new Pa(t));return j.resolve(n)},n.El=function(t){},n.Il=function(){},t}();var Da,xa=function(){function t(t,n){void 0===n&&(n=!0),this.Rl=void 0,this.Nl=void 0,this.Rl=t,this.Nl=n}var n=t.prototype;return n.Gd=function(t){var n=this.Dl(t);return this.Rl.Gd(n)},n.El=function(t){return this.Rl.El(this.Cl(t))},n.Dl=function(n){var i=new Pa(n);if(!this.Nl){var e=t.Pl(i.Qd);i=new Pa({Qd:e},i)}return i},n.Cl=function(n){var i=n.Qd;return this.Nl||(i=t.Pl(i)),{Qd:i,Dd:n.Dd}},t.Pl=function(t){return Z.Xr&&Un(t,"http://")?t.replace(":","s:"):t},n.Il=function(){this.Rl.Il()},mt(t,null,[{key:"Ol",get:function(){return t.Bl||(t.Bl=new t(new Aa)),t.Bl}}]),t}();xa.Bl=void 0,function(t){t.Ll="HttpOpenError",t.Ml="HttpResponseError",t.xl="HttpTimeoutError"}(Da||(Da={}));var Ca=function(t){function n(n,i,e){var r;return(r=t.call(this,i,e)||this).Fl=void 0,r.Fl=n,r}return Mt(n,t),mt(n,[{key:"Gd",get:function(){return this.Fl}}]),n}(Nn);var Ba=function(t){function n(n,i){return t.call(this,n,"Error while opening "+n.Qd+". Invalid URL.",i)||this}return Mt(n,t),mt(n,[{key:"name",get:function(){return Da.Ll}}]),n}(Ca);var Fa=function(t){function n(n,i,e){var r;return(r=t.call(this,n.Gd,null!=e?e:function(t){return"Error while loading "+t.Gd.Qd+", status code "+t.Vd}(n),i)||this).Ul=void 0,r.Ul=n,r}return Mt(n,t),mt(n,[{key:"name",get:function(){return Da.Ml}},{key:"Hl",get:function(){return this.Ul}}]),n}(Ca);var La=function(t){function n(n,i){return t.call(this,n,function(t){return"Request for "+t.Qd+" timed out after "+t.yl+" seconds."}(n),i)||this}return Mt(n,t),mt(n,[{key:"name",get:function(){return Da.xl}}]),n}(Ca),Ua=function(t,n){return(Ua=c.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])})(t,n)};function Ma(t,n){function i(){this.constructor=t}Ua(t,n),t.prototype=null===n?c.create(n):(i.prototype=n.prototype,new i)}var za="object"==typeof n?n:"object"==typeof t?t:"object"==typeof global?global:null;var Wa=function(){var t=za.Blob;if(t)try{return new t,function(t,n){return new za.Blob(t,n)}}catch(t){}var n,i=za.BlobBuilder||za.WebKitBlobBuilder||za.MozBlobBuilder||za.MSBlobBuilder;return i?(n=i,function(t,i){var e=new n;if(t)for(var r=0,o=t;r<o.length;r++){var u=o[r];e.append(u)}return e.getBlob(i&&i.type||"")}):null}(),qa="function"==typeof Lc?Lc:void 0;function ja(t){return t&&"function"==typeof t.getReader}function Va(t){if("function"!=typeof t)return!1;try{var n=!1,i=new t({start:function(){n=!0}});return!!n&&ja(i)}catch(t){return!1}}var Ha=function(){function t(t,n){this.hv=t,this.Vl=n}return t.prototype.pull=function(t){var n=this;return this.hv.read().then(function(i){n.Vl&&n.Vl(i),i.done?t.close():t.enqueue(i.value)})},t.prototype.cancel=function(t){return this.hv.cancel(t)},t}();function Xa(t,n){return n.constructor===t?n:new t(new Ha(n.getReader()),{highWaterMark:0})}var Ga=function(){function t(t,n){this.Xl=t,this.zl=n}return t.prototype.pull=function(t){return this.Xl().then(function(n){t.enqueue(new w(n)),t.close()})},t.prototype.cancel=function(t){this.zl&&this.zl(t)},t}();function Ya(t,n,i){return new t(new Ga(n,i),{highWaterMark:0})}var Ka={searchParams:"URLSearchParams"in za,iterable:"Symbol"in za&&"iterator"in Symbol,blob:"FileReader"in za&&!!Wa,formData:"FormData"in za,arrayBuffer:"ArrayBuffer"in za,stream:Va(qa),streamRequest:"Request"in za&&"body"in za.Request.prototype,streamResponse:"Response"in za&&"body"in za.Response.prototype,abort:"AbortController"in za&&"Request"in za&&"signal"in za.Request.prototype,encoding:"TextEncoder"in za&&"TextDecoder"in za,url:"URL"in za&&function(t){try{return new za.URL(t).toString()===t}catch(t){return!1}}("http://example.com/"),firefox:"navigator"in za&&/Firefox\//.test(za.navigator.userAgent)};function $a(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new h("Invalid character in header field name");return t}function Ja(t){return"string"!=typeof t&&(t=String(t)),t}function Za(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return Ka.iterable&&(n[Symbol.iterator]=function(){return n}),n}var Qa=function(){function t(t){var n=this;this.$r={};var i,e=function(t,i){Array.isArray(t)&&2===t.length?n.append(t[0],t[1]):n.append(i,t)};(i=t)&&"function"==typeof i.forEach?t.forEach(e):!function(t){return Ka.iterable&&t&&t[Symbol.iterator]}(t)?t&&c.getOwnPropertyNames(t).forEach(function(i){n.append(i,t[i])}):Array.from(t).forEach(e)}return t.prototype.append=function(t,n){t=$a(t),n=Ja(n);var i=t.toLowerCase();if(this.$r.hasOwnProperty(i)){var e=this.$r[i],r=e[1];e[1]=r?r+", "+n:n}else this.$r[i]=[t,n]},t.prototype.delete=function(t){var n=$a(t).toLowerCase();delete this.$r[n]},t.prototype.get=function(t){var n=$a(t).toLowerCase();return this.$r.hasOwnProperty(n)?this.$r[n][1]:null},t.prototype.has=function(t){var n=$a(t).toLowerCase();return this.$r.hasOwnProperty(n)},t.prototype.set=function(t,n){var i=(t=$a(t)).toLowerCase();this.$r[i]=[t,Ja(n)]},t.prototype.forEach=function(t,n){for(var i in this.$r)this.$r.hasOwnProperty(i)&&t.call(n,this.$r[i][1],i,this)},t.prototype.keys=function(){var t=[];return this.forEach(function(n,i){t.push(i)}),Za(t)},t.prototype.values=function(){var t=[];return this.forEach(function(n){t.push(n)}),Za(t)},t.prototype.entries=function(){var t=[];return this.forEach(function(n,i){t.push([i,n])}),Za(t)},t.prototype.asList=function(){var t=[];for(var n in this.$r)if(this.$r.hasOwnProperty(n)){var i=this.$r[n],e=i[0],r=i[1];t.push([e,r])}return t},t}();function tv(){}Ka.iterable&&(Qa.prototype[Symbol.iterator]=Qa.prototype.entries);var nv,iv,ev,rv=a.min,ov=String.fromCharCode,uv=16384;function sv(t){for(var n=[],i=0,e=t;i<e.length;i++){var r=e[i];r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}return function(t){for(var n=t.length,i=[],e=0;e<n;e+=uv){var r=rv(e+uv,n);i.push(ov.apply(null,t.slice(e,r)))}return i.join("")}(n)}function fv(t){if(t>=55296&&t<=57343)throw new f("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function hv(t,n){return t>>n&63|128}function cv(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(fv(t),n.push(t>>12&15|224),n.push(hv(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(hv(t,12)),n.push(hv(t,6))),n.push(63&t|128)):n.push(t)}function av(){if(ev>=iv)throw new f("Invalid byte index");var t=255&nv[ev];if(ev++,128==(192&t))return 63&t;throw new f("Invalid continuation byte")}function vv(){var t,n;if(ev>iv)throw new f("Invalid byte index");if(ev===iv)return!1;if(t=255&nv[ev],ev++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|av())>=128)return n;throw new f("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|av()<<6|av())>=2048)return fv(n),n;throw new f("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|av()<<12|av()<<6|av())>=65536&&n<=1114111)return n;throw new f("Invalid UTF-8 detected")}var dv=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];function lv(t){return t&&URLSearchParams.prototype.isPrototypeOf(t)}function wv(t){return t&&ArrayBuffer.prototype.isPrototypeOf(t)}function bv(t){return t&&DataView.prototype.isPrototypeOf(t)}var gv,mv=ArrayBuffer.isView||function(t){return t&&(dv.indexOf(c.prototype.toString.call(t))>-1||bv(t))};function pv(t){if(t.bodyUsed)return j.reject(new h("Already used"));t.bodyUsed=!0}function yv(t){return new j(function(n,i){t.onload=function(){n(t.result)},t.onerror=function(){i(t.error)}})}function _v(t){return Ka.encoding?new za.TextDecoder("utf-8").decode(new w(t)):sv(function(t){iv=(nv=t).length,ev=0;for(var n,i=[];!1!==(n=vv());)i.push(n);return i}(new w(t)))}function Sv(t){return Ka.encoding?(new za.TextEncoder).encode(t).buffer:new w(function(t){for(var n=[],i=0,e=t;i<e.length;i++)cv(e[i],n);return n}(function(t){for(var n=[],i=0,e=t.length;i<e;){var r=t.charCodeAt(i++);if(r>=55296&&r<=56319&&i<e){var o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&r)<<10)+(1023&o)+65536):(n.push(r),i--)}else n.push(r)}return n}(t))).buffer}function Iv(t){var n=t.getReader(),i=[],e=function(t){var r=t.done,o=t.value;return r?j.resolve(i):(i.push(o),n.read().then(e))};return n.read().then(e)}function Tv(t){return Iv(t).then(function(t){return function(t){for(var n=0,i=0,e=t;i<e.length;i++)n+=(f=e[i]).byteLength;for(var r=new w(n),o=0,u=0,s=t;u<s.length;u++){var f=s[u];r.set(f,o),o+=f.byteLength}return r}(t).buffer})}function Ev(t){return t.slice?t.slice(0):Rv(new w(t))}function Rv(t){if(t.slice)return t.slice(0).buffer;var n=new w(t.byteLength);return n.set(new w(t.buffer,t.byteOffset,t.byteLength)),n.buffer}function kv(t){var n=new FormData;return t.trim().split("&").forEach(function(t){if(t){var i=t.split("="),e=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");n.append(decodeURIComponent(e),decodeURIComponent(r))}}),n}function Nv(t){var n=t;if(n.bodyUsed)throw new h("Already used");if(n.ql===gv.Wl){if(!n.Gl.tee)throw new f("could not clone ReadableStream body");var i=n.Gl.tee(),e=i[0],r=i[1];return n.body=e,n.Gl=e,n.Yl=e,r}return n.ql===gv.Gf?Ev(n.Gl):n.ql===gv.bd?n.Gl.then(Nv):n.Yl}!function(t){t[t.$n=0]="$n",t[t.Ql=1]="Ql",t[t.jl=2]="jl",t[t.Gf=3]="Gf",t[t.Wl=4]="Wl",t[t.bd=5]="bd"}(gv||(gv={}));var Ov=function(){function t(n,i){this.bodyUsed=!1;var e,r,o,u=this;if(this.Yl=n||null,n)if("string"==typeof n)this.ql=gv.$n,this.Gl=n;else if((o=n)&&"function"==typeof o.then)this.ql=gv.bd,this.Gl=j.resolve(n).then(function(n){return new t(n,i)}),this.Gl.catch(tv);else if(Ka.blob&&function(t){return t&&Blob.prototype.isPrototypeOf(t)}(n))this.ql=gv.Ql,this.Gl=n;else if(Ka.formData&&function(t){return t&&FormData.prototype.isPrototypeOf(t)}(n))this.ql=gv.jl,this.Gl=n;else if(Ka.searchParams&&lv(n))this.ql=gv.$n,this.Gl=n.toString();else if(Ka.arrayBuffer&&(wv(n)||mv(n)))bv(n)&&(this.Yl=new w((r=n).buffer,r.byteOffset,r.byteLength)),this.ql=gv.Gf,this.Gl=wv(e=n)?Ev(e):Rv(e);else{if(!Ka.stream||!ja(n))throw new f("unsupported BodyInit type");n=Xa(qa,n),this.ql=gv.Wl,this.Gl=n,this.Yl=n}else this.ql=gv.$n,this.Gl="";this.Kl="",i.has("content-type")?this.Kl=(i.get("content-type")||"").toLowerCase():("string"==typeof n?this.Kl="text/plain;charset=UTF-8":u.ql===gv.Ql&&u.Gl.type?this.Kl=u.Gl.type:Ka.searchParams&&lv(n)&&(this.Kl="application/x-www-form-urlencoded;charset=UTF-8"),this.Kl&&i.set("content-type",this.Kl)),Ka.stream&&(null==n?this.body=null:u.ql===gv.Wl?this.body=u.Gl:this.body=Ya(qa,function(){return u.arrayBuffer()},function(){u.bodyUsed=!0}))}return t.prototype.text=function(){var t,n,i,e=pv(this);return e||(this.ql===gv.Ql?(t=this.Gl,n=new FileReader,i=yv(n),n.readAsText(t),i):this.ql===gv.Gf?j.resolve(this.Gl).then(_v):this.ql===gv.Wl?Tv(this.Gl).then(_v):this.ql===gv.bd?this.Gl.then(function(t){return t.text()}):this.ql===gv.jl?j.reject(new f("could not read FormData body as text")):j.resolve(this.Gl))},t.prototype.json=function(){return this.text().then(JSON.parse)},t}();Ka.blob&&(Ov.prototype.blob=function(){var t,n,i=pv(this);return i||(this.ql===gv.Ql?j.resolve(this.Gl):this.ql===gv.Gf?j.resolve(Wa([this.Gl],{type:this.Kl})):this.ql===gv.Wl?(t=this.Gl,n=this.Kl,Iv(t).then(function(t){return Wa(t,{type:n||""})})):this.ql===gv.bd?this.Gl.then(function(t){return t.blob()}):this.ql===gv.jl?j.reject(new f("could not read FormData body as Blob")):j.resolve(Wa([this.Gl],{type:this.Kl})))}),Ka.arrayBuffer&&(Ov.prototype.arrayBuffer=function(){var t,n,i;return this.ql===gv.Gf?pv(this)||j.resolve(this.Gl):this.ql===gv.Ql?pv(this)||(t=this.Gl,n=new FileReader,i=yv(n),n.readAsArrayBuffer(t),i):this.ql===gv.Wl?Tv(this.Gl):this.ql===gv.bd?pv(this)||this.Gl.then(function(t){return t.arrayBuffer()}):this.ql===gv.jl?j.reject(new f("could not read FormData body as ArrayBuffer")):j.resolve(this.Gl).then(Sv)}),Ka.formData&&(Ov.prototype.formData=function(){return this.ql===gv.jl?pv(this)||j.resolve(this.Gl):this.text().then(kv)});var Pv=[301,302,303,307,308],Av=function(t){function n(n,i){var e=this,r=new Qa((i=i||{}).headers);return(e=t.call(this,n||null,r)||this).type="default",e.status=void 0===i.status?200:i.status,e.ok=e.status>=200&&e.status<300,e.statusText=void 0!==i.statusText?String(i.statusText):"",e.headers=r,e.url=i.url||"",e}return Ma(n,t),n.prototype.clone=function(){return new n(Nv(this),{status:this.status,statusText:this.statusText,headers:new Qa(this.headers),url:this.url})},n.error=function(){var t=new n(null,{status:0,statusText:""});return t.type="error",t},n.redirect=function(t,i){if(-1===Pv.indexOf(i))throw new RangeError("Invalid status code");return new n(null,{status:i,headers:{location:t}})},n}(Ov);var Dv,xv=function(t,n){return t(n={exports:{}},n.exports),n.exports}(function(t,n){function e(t,n){if(!(t instanceof n))throw new h("Cannot call a class as a function")}function o(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),c.defineProperty(t,e.key,e)}}function u(t,n,i){return n&&o(t.prototype,n),i&&o(t,i),t}function s(t){return(s=c.setPrototypeOf?c.getPrototypeOf:function(t){return t.__proto__||c.getPrototypeOf(t)})(t)}function f(t,n){return(f=c.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,n,i){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,n,i){var e=function(t,n){for(;!c.prototype.hasOwnProperty.call(t,n)&&null!==(t=s(t)););return t}(t,n);if(e){var r=c.getOwnPropertyDescriptor(e,n);return r.get?r.get.call(i):r.value}})(t,n,i||t)}c.defineProperty(n,"__esModule",{value:!0});var d=function(){function t(){e(this,t),c.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return u(t,[{key:"addEventListener",value:function(t,n){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(n)}},{key:"removeEventListener",value:function(t,n){if(t in this.listeners)for(var i=this.listeners[t],e=0,r=i.length;e<r;e++)if(i[e]===n)return void i.splice(e,1)}},{key:"dispatchEvent",value:function(t){var n=this;if(t.type in this.listeners){for(var i=function(i){r(function(){return i.call(n,t)})},e=this.listeners[t.type],o=0,u=e.length;o<u;o++)i(e[o]);return!t.defaultPrevented}}}]),t}(),l=function(t){function n(){var t,i,r;return e(this,n),i=this,(t=!(r=s(n).call(this))||"object"!=typeof r&&"function"!=typeof r?a(i):r).listeners||d.call(a(t)),c.defineProperty(a(t),"aborted",{value:!1,writable:!0,configurable:!0}),c.defineProperty(a(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return function(t,n){if("function"!=typeof n&&null!==n)throw new h("Super expression must either be null or a function");t.prototype=c.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&f(t,n)}(n,d),u(n,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(t){"abort"===t.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,t)),v(s(n.prototype),"dispatchEvent",this).call(this,t)}}]),n}(),w=function(){function t(){e(this,t),c.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return u(t,[{key:"abort",value:function(){var t;try{t=new Event("abort")}catch(n){void 0!==i?i.createEvent?(t=i.createEvent("Event")).initEvent("abort",!1,!1):(t=i.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(w.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),n.AbortSignal=l,n.AbortController=w,n.default=w});(Dv=xv)&&Dv.__esModule&&c.prototype.hasOwnProperty.call(Dv,"default")&&Dv.default,xv.AbortSignal;var Cv=xv.AbortController,Bv=za.DOMException;try{new Bv}catch(t){(Bv=function(t,n){f.call(this,t),this.name=n||"Error",f.captureStackTrace&&f.captureStackTrace(this,this.constructor)}).prototype=c.create(f.prototype),Bv.prototype.constructor=Bv}var Fv=Cv;function Lv(t,n){if(!t.signal.aborted)if(n.aborted)t.abort();else{var i=function(){n.removeEventListener("abort",i),t.signal.removeEventListener("abort",i),t.abort()};n.addEventListener("abort",i),t.signal.addEventListener("abort",i)}}function Uv(t,n,i){return new j(function(e,r){if(n.signal.aborted)return t.catch(tv),r(Mv());var o=function(){n.signal.removeEventListener("abort",o),r(Mv())};n.signal.addEventListener("abort",o),t.then(function(t){n.signal.removeEventListener("abort",o),e(t),i&&n.abort()},function(t){n.signal.removeEventListener("abort",o),r(t),i&&n.abort()})})}function Mv(){return new Bv("Aborted","AbortError")}var zv,Wv="moz-chunked-arraybuffer";function qv(t){try{var n=new b;return n.open("GET","https://test"),n.responseType=t,n.responseType===t}catch(t){}return!1}!function(t){t[t.UNSENT=0]="UNSENT",t[t.OPENED=1]="OPENED",t[t.HEADERS_RECEIVED=2]="HEADERS_RECEIVED",t[t.LOADING=3]="LOADING",t[t.DONE=4]="DONE"}(zv||(zv={}));var jv=function(){function t(t,n){var i=this;this.Zl=!1,this.Fl=t,this.Jl=n,this.$l=new b,this.t_=new j(function(t,n){i.n_=t,i.i_=n})}return t.prototype.send=function(){var t=this;return this.e_().then(function(n){return t.r_(n,t.Jl),t.t_})},t.prototype.e_=function(){var t=this.Fl;return t.ql===gv.Wl?t.arrayBuffer():j.resolve(t.Yl)},t.prototype.s_=function(t){this.Fl.onprogress&&this.Fl.onprogress(t.loaded,t.lengthComputable?t.total:void 0)},t.prototype.u_=function(t){this.i_(t)},t.prototype.o_=function(){this.u_(new h("Network request failed"))},t.prototype.h_=function(){this.u_(new h("Network request failed"))},t.prototype.a_=function(){this.u_(Mv())},t.prototype.r_=function(t,n){var i=this,e=this.Fl,r=this.$l,o=function(){return i.c_()};if(e.signal.aborted)return this.a_();r.onreadystatechange=function(){if(r.readyState>=zv.HEADERS_RECEIVED&&!i.Zl){var t=function(t){var n=new Qa;return t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var i=t.split(":"),e=i.shift().trim();if(e){var r=i.join(":").trim();n.append(e,r)}}),n}(r.getAllResponseHeaders()||""),n={status:r.status,statusText:r.statusText,headers:t,url:r.responseURL||t.get("X-Request-URL")};i.Zl=!0,i.f_(n)}},r.onprogress=function(t){return i.s_(t)},r.onload=function(){return i.v_()},r.onerror=function(){return i.o_()},r.ontimeout=function(){return i.h_()},r.onabort=function(){return i.a_()},r.open(e.method,e.url,!0),r.withCredentials="include"===e.credentials,"responseType"in r&&n&&(r.responseType=n),e.headers.forEach(function(t,n){r.setRequestHeader(n,t)}),e.signal.addEventListener("abort",o),r.onloadend=function(){e.signal.removeEventListener("abort",o)},t?r.send(t):r.send()},t.prototype.c_=function(){this.a_(),this.$l.abort()},t}(),Vv=function(t){function n(n,i){var e=t.call(this,n,i)||this;return e.d_=void 0,e.l_=void 0,e}return Ma(n,t),n.prototype.f_=function(t){var n=this;this.d_=new j(function(t,i){n.l_=t,n.__=i}),this.n_(new Av(this.d_,t))},n.prototype.v_=function(){var t=this.$l.response;if(null==t){var n=this.Jl;""===n||"text"===n?t=this.$l.responseText:"document"===n?t=this.$l.responseXML:"arraybuffer"===n?t=new ArrayBuffer(0):"blob"===n&&(t=Wa([]))}this.l_(t)},n.prototype.u_=function(n){t.prototype.u_.call(this,n),this.__&&this.__(n)},n}(jv),Hv=function(t){function n(n){var i=t.call(this,n,Wv)||this;return i.g_=void 0,i.w_=void 0,i.m_=!1,i}return Ma(n,t),n.prototype.f_=function(t){var n=this;this.g_=new qa({start:function(t){n.w_=t},cancel:function(){n.m_=!0,n.c_()}}),this.n_(new Av(this.g_,t))},n.prototype.s_=function(n){this.m_||this.w_.enqueue(new w(this.$l.response)),t.prototype.s_.call(this,n)},n.prototype.v_=function(){this.w_.close()},n.prototype.u_=function(n){t.prototype.u_.call(this,n),this.w_&&!this.m_&&(this.m_=!0,this.w_.error(n))},n}(jv),Xv=function(){var t=Ka.firefox&&qv(Wv);return Xv=function(){return t},t},Gv=function(){var t;return t=Ka.arrayBuffer&&qv("arraybuffer")?"arraybuffer":Ka.blob&&qv("blob")?"blob":"",Gv=function(){return t},t};function Yv(t){return(Ka.stream&&Xv()?new Hv(t):new Vv(t,Gv())).send()}var Kv=za.fetch,$v=za.Request;za.Response;var Jv=za.AbortController;var Zv=["http:","https:"];var Qv=function(){try{if(Ka.streamRequest){var t=new $v("about:blank",{body:"",method:"POST"}).body;if(t&&Va(t.constructor))return t.constructor}}catch(t){}}();function td(t,n,i){var e;if(Ka.stream){var r=void 0;if(Ka.streamResponse){var o=t.body;r=o&&Xa(qa,o)}else r=Ya(qa,function(){return Uv(t.arrayBuffer(),n,!0)},function(){n.abort()});r&&i&&(r=function(t,n,i){var e=0;return function(t,n,i){return new t(new Ha(n.getReader(),i),{highWaterMark:0})}(qa,t,function(t){var r=t.done,o=t.value;r?i=void 0===i?e:i:e+=o.byteLength,n(e,i)})}(r,i,nd(t.headers))),e=r}else{var u=Uv(t.arrayBuffer(),n,!0);i&&(u=function(t,n,i){return j.resolve().then(function(){return n(0,i),t}).then(function(t){var e=t.byteLength;return n(e,i=void 0===i?e:i),t})}(u,i,nd(t.headers))),e=u}return new Av(e,t)}function nd(t){return t.has("content-length")?Number(t.get("content-length")):void 0}function id(t){var n=new Fv;return t.signal&&Lv(n,t.signal),function(t,n){var i,e,r=t;if(i=r.ql===gv.Wl?Ka.streamRequest&&Qv?j.resolve(Xa(Qv,r.Gl)):Uv(t.arrayBuffer(),n,!1):Uv(j.resolve(t.Yl),n,!1),Ka.abort){var o=new Jv;Lv(o,n.signal),e=o.signal}return i.then(function(n){return new $v(t.url,{body:n||void 0,credentials:t.credentials,headers:(i=t.headers,(i instanceof Qa?i:new Qa(i)).asList()),method:t.method,mode:t.mode,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:e});var i})}(t,n).then(function(i){return Kv(i).then(function(i){return td(i,n,t.onprogress)})})}var ed=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];var rd=function(t){function n(i,e){var r,o,u,s,f,c,a,v,d,l=this,w=(e=e||{}).body||null;if(i instanceof n){if(i.bodyUsed)throw new h("Already used");r=i.url,o=i.credentials,e.headers||(u=new Qa(i.headers)),s=i.method,f=i.mode,c=i.referrer,a=i.referrerPolicy,v=i.signal,d=i.onprogress,w||null==i.Yl||(w=i.Yl,i.bodyUsed=!0)}else r=String(i),o="same-origin",s="GET",f="cors",c="about:client",a="",v=null,d=null;if(!e.headers&&u||(u=new Qa(e.headers)),e&&(c="about:client",a=""),(l=t.call(this,w,u)||this).url=r,l.headers=u,l.credentials=e.credentials||o,l.method=function(t){var n=t.toUpperCase();return ed.indexOf(n)>-1?n:t}(e.method||s),l.mode=e.mode||f,l.signal=e.signal||v||(new Fv).signal,l.referrer=void 0!==e.referrer?e.referrer:c,l.referrerPolicy=void 0!==e.referrerPolicy?e.referrerPolicy:a,l.onprogress=e.onprogress||d,("GET"===l.method||"HEAD"===l.method)&&w)throw new h("Body not allowed for GET or HEAD requests");return l}return Ma(n,t),n.prototype.clone=function(){return new n(this,{body:Nv(this)})},n}(Ov),od="function"==typeof Kv&&Ka.stream&&Ka.streamResponse&&Ka.url;function ud(t,n){return new j(function(i){var e=new rd(t,n);i((od&&function(t){try{return Zv.indexOf(new za.URL(t,za.location.href).protocol)>=0}catch(t){return!1}}(e.url)?id:Yv)(e))})}ud.polyfill=!0;var sd=function(){function t(t){this.Hl=void 0,this.Fl=void 0,this.k_=new Pn,this.Ul=void 0,this.y_=!1,this.Fl=t,this.k_.zs(t.Ws),this.Hl=this.p_()}var n=t.prototype;return n.p_=function(){var t,n,i,e,o,u,s,f,h=this;return Q.async(function(c){for(;;)switch(c.prev=c.next){case 0:(t=this.Fl).yl&&r(function(){h.y_=!0,h.k_.Xs()},t.yl),c.prev=2,n=ud(t.Qd,{method:t.wl,headers:t.Xd.jf(),body:t.Dd,credentials:t.Tl?"include":"same-origin",signal:cd(this.k_.Ws),onprogress:t.Sl}),c.next=9;break;case 6:throw c.prev=6,c.t0=c.catch(2),new Ba(t,c.t0);case 9:return c.prev=9,c.next=12,Q.awrap(n);case 12:i=c.sent,c.next=20;break;case 15:throw c.prev=15,c.t1=c.catch(9),Dn(e=this.b_(c.t1))&&this.k_.Xs(),e;case 20:if(o=i.url||t.Qd,u=0===i.status&&"file:"===(a=o,Z.Lr(a).protocol)?200:i.status,s=new fd(this,i,this.k_),f=new Oa({Xi:s,Gd:t,zd:t.zd,Xd:new Zs(i.headers.asList()),Vd:u,qd:i.statusText,Yd:o}),this.Ul=f,!Ta(f)){c.next=29;break}return c.abrupt("return",f);case 29:throw new Fa(f);case 30:case"end":return c.stop()}var a},null,this,[[2,6],[9,15]],j)},n.b_=function(t){return Dn(t)?this.y_?new La(this.Fl):new An(t.message,t):this.Ul?new Fa(this.Ul,t):new Ba(this.Fl,t)},t}(),fd=function(t){function n(n,i,e){var r;return(r=t.call(this)||this).A_=void 0,r.T_=void 0,r.k_=void 0,r.Bd=new tu,r.A_=n,r.T_=i,r.k_=e,r.Bd.Vu.catch(dt),r}Mt(n,t);var i=n.prototype;return i.Md=function(){return this.Bd.Vu},i.Sd=function(t){return this.xd(this.T_.text(),t)},i.Id=function(t){return this.xd(this.T_.arrayBuffer(),t)},i.Rd=function(){var t=this.T_.body;return t?this.Fd(t):fa(this.Id().then(ua),this.k_)},i.Ud=function(){var t=this.T_.clone(),i=this.k_.qs(),e=i[0],r=i[1];return this.k_=e,new n(this.A_,t,r)},i.xd=function(t,n){var i=this;n&&this.k_.zs(n);var e=j.resolve(t).catch(function(t){throw i.A_.b_(t)});return e=xn(e,this.k_),this.Bd.Gu(e.then(dt)),e},i.Fd=function(t){var n=this,i=new Xc,e=j.resolve(t.pipeTo(i.writable,{preventAbort:!0})).catch(function(t){var e=n.A_.b_(t);throw i.writable.abort(e).catch(dt),e});return e=xn(e,this.k_),this.Bd.Gu(e.then(dt)),i.readable},mt(n,[{key:"Hd",get:function(){return this.T_.bodyUsed}}]),n}(da),hd="abort";function cd(t){var n=new Fv;if(t.Cs)n.abort();else if(!t.Ps){var i=function(){e(),n.abort()},e=function e(){n.signal.removeEventListener(hd,i),t.Fs(i),t.Hs(e)};n.signal.addEventListener(hd,i),t.xs(i),t.Us(e)}return n.signal}var ad=function(){function t(){}var n=t.prototype;return n.Gd=function(t){return new sd(t).Hl},n.El=function(t){var n=t.Nd?{"Content-type":t.Nd}:void 0;this.Gd(new Pa({wl:Ea.POST,Qd:t.Qd,Dd:t.Dd,Xd:n})).then(dt,dt)},n.Il=function(){},t}(),vd=function(n){function i(){for(var i,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(i=n.call.apply(n,[this].concat(r))||this).S_=void 0,i.E_=function(){if(Ci.fn)return!1;try{return"body"in t.Response.prototype}catch(t){return!1}}(),i.I_=Ci.Un||Ci.fn,i.R_=void 0,i}return Mt(i,n),mt(i,[{key:"Rr",get:function(){return this.S_||(this.S_=new Yo(Vs())),this.S_}},{key:"N_",get:function(){return this.E_}},{key:"D_",get:function(){return this.I_}},{key:"C_",get:function(){return!1}},{key:"P_",get:function(){return Xs.sf()}},{key:"O_",get:function(){return{B_:Ks}}},{key:"L_",get:function(){return e.connection&&e.connection.effectiveType||"default"}},{key:"M_",get:function(){return e.connection&&e.connection.type||"unknown"}},{key:"x_",get:function(){return this.R_||(this.R_=new xa(new ad)),this.R_}}]),i}(ko);tt(new vd),tt(new vd);var dd=t;dd.addEventListener("install",function(t){t.waitUntil(dd.skipWaiting())}),dd.addEventListener("activate",function(t){t.waitUntil(dd.clients.claim())}),Si.mr.Lk(dd)}()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this);
|
|
30
|
+
!function(t){!function(){"use strict";var n=t.window,i=t.document,e=(t.location,t.navigator),r=t.setTimeout,o=t.clearTimeout,u=t.setInterval,s=t.clearInterval,f=t.Error,h=t.TypeError,c=(t.SyntaxError,t.Object),a=t.Math,v=t.parseInt,d=t.parseFloat,l=t.isNaN,w=t.Uint8Array,b=(t.Worker,t.WorkerGlobalScope,t.XMLHttpRequest);var g=r;function m(t){return Boolean(t&&void 0!==t.length)}function p(){}function y(t){if(!(this instanceof y))throw new h("Promises must be constructed via new");if("function"!=typeof t)throw new h("not a function");this.ke=0,this.ye=!1,this.me=void 0,this.pe=[],R(t,this)}function _(t,n){for(;3===t.ke;)t=t.me;0!==t.ke?(t.ye=!0,y.Ae(function(){var i=1===t.ke?n.onFulfilled:n.onRejected;if(null!==i){var e;try{e=i(t.me)}catch(t){return void I(n.promise,t)}S(n.promise,e)}else(1===t.ke?S:I)(n.promise,t.me)})):t.pe.push(n)}function S(t,n){try{if(n===t)throw new h("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var i=n.then;if(n instanceof y)return t.ke=3,t.me=n,void T(t);if("function"==typeof i)return void R((e=i,r=n,function(){e.apply(r,arguments)}),t)}t.ke=1,t.me=n,T(t)}catch(n){I(t,n)}var e,r}function I(t,n){t.ke=2,t.me=n,T(t)}function T(t){2===t.ke&&0===t.pe.length&&y.Ae(function(){t.ye||y.Te(t.me)});for(var n=0,i=t.pe.length;n<i;n++)_(t,t.pe[n]);t.pe=null}function E(t,n,i){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=i}function R(t,n){var i=!1;try{t(function(t){i||(i=!0,S(n,t))},function(t){i||(i=!0,I(n,t))})}catch(t){if(i)return;i=!0,I(n,t)}}y.prototype.catch=function(t){return this.then(null,t)},y.prototype.then=function(t,n){var i=new this.constructor(p);return _(this,new E(t,n,i)),i},y.prototype.finally=function(t){var n=this.constructor;return this.then(function(i){return n.resolve(t()).then(function(){return i})},function(i){return n.resolve(t()).then(function(){return n.reject(i)})})},y.all=function(t){return new y(function(n,i){if(!m(t))return i(new h("Promise.all accepts an array"));var e=Array.prototype.slice.call(t);if(0===e.length)return n([]);var r=e.length;function o(t,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var s=u.then;if("function"==typeof s)return void s.call(u,function(n){o(t,n)},i)}e[t]=u,0==--r&&n(e)}catch(t){i(t)}}for(var u=0;u<e.length;u++)o(u,e[u])})},y.allSettled=function(t){return new this(function(n,i){if(!t||void 0===t.length)return i(new h(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var e=Array.prototype.slice.call(t);if(0===e.length)return n([]);var r=e.length;function o(t,i){if(i&&("object"==typeof i||"function"==typeof i)){var u=i.then;if("function"==typeof u)return void u.call(i,function(n){o(t,n)},function(i){e[t]={status:"rejected",reason:i},0==--r&&n(e)})}e[t]={status:"fulfilled",value:i},0==--r&&n(e)}for(var u=0;u<e.length;u++)o(u,e[u])})},y.resolve=function(t){return t&&"object"==typeof t&&t.constructor===y?t:new y(function(n){n(t)})},y.reject=function(t){return new y(function(n,i){i(t)})},y.race=function(t){return new y(function(n,i){if(!m(t))return i(new h("Promise.race accepts an array"));for(var e=0,r=t.length;e<r;e++)y.resolve(t[e]).then(n,i)})},y.Ae="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){g(t,0)},y.Te=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var k=function(){var n=t.Promise;if(void 0!==n)try{if(-1!==n.toString().indexOf("[native code]"))return n}catch(t){}}(),N=e?e.userAgent:"",O=N.match(/Firefox\/([0-9]+)/i),P=null!=O,A=O?Number(O[1]):0,D=N.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),x=null!=D,C=D?Number(D[3]):0,B=function(){function t(t){this.Se=0,this.Ee=0,this.Wi=[],this.Ie=t}return t.prototype.Re=function(t){var n=this.length();this.Ne(n+1);var i=this.Ee+n&this.Ie-1;this.Wi[i]=t,this.Se=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.Ie<n)this.Re(t);else{var i=this.Ee+n-1,e=this.Ie-1;this.Wi[i&e]=t,this.Se=n}},t.prototype.shift=function(){var t=this.Ee,n=this.Wi[t];return this.Wi[t]=void 0,this.Ee=t+1&this.Ie-1,this.Se--,n},t.prototype.length=function(){return this.Se},t.prototype.Ne=function(t){this.Ie<t&&this.De(this.Ie<<1)},t.prototype.De=function(t){var n=this.Ie;this.Ie=t;var i=this.Ee+this.Se&n-1;!function(t,n,i,e){for(var r=0;r<e;++r)t[r+i]=t[r+n],t[r+n]=void 0}(this.Wi,0,n,i)},t}();var F="unhandledrejection",L=t.PromiseRejectionEvent,U=t.CustomEvent;function M(t){return new L(F,{reason:t,promise:k.reject(t).catch(function(){}),cancelable:!0})}function z(t){var n=new U(F,{detail:{reason:t},cancelable:!0});return c.defineProperty(n,"reason",{value:t}),n}function W(t){var n=i.createEvent("CustomEvent");return n.initCustomEvent(F,!1,!0,{reason:t}),n}var q,j,V,H,X,G,Y=function(t){return(Y=function(){try{var t=k.resolve(),n=new L(F,{reason:"error",promise:t});return F===n.type&&"error"===n.reason}catch(t){}return!1}()?M:function(){try{var t=new U(F,{detail:{reason:"error"}});return F===t.type&&"error"===t.detail.reason}catch(t){}return!1}()?z:W)(t)};if(k&&!(P&&A<60||x&&C<15))j=k;else{j=y;var K=null!==(q=function(){var n=t.queueMicrotask;if("function"==typeof n)return function(t){return n(t)};var i=k;if(i&&"function"==typeof i.resolve){var e=i.resolve();return function(t){return e.then(t)}}}())&&void 0!==q?q:y.Ae,$=(V=K,H=new B(16),X=!1,{Ce:function(t){H.push(t),X||(X=!0,V(G))},Pe:G=function(){for(;H.length()>0;)H.shift()();X=!1}});y.Ae=$.Ce,y.Te=function(n){try{var i=Y(n);if(!t.dispatchEvent(i)||i.defaultPrevented)return}catch(t){}r(function(){throw new f("Unhandled promise rejection: ".concat(n))},0)}}var J={exports:{}};!function(t){var n,i=c.prototype,e=i.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",u=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function a(t,n,i,e){var r=n&&n.prototype instanceof p?n:p,o=c.create(r.prototype),u=new A(e||[]);return o.Gr=function(t,n,i){var e=d;return function(r,o){if(e===b)throw new f("Generator is already running");if(e===g){if("throw"===r)throw o;return x()}for(i.method=r,i.arg=o;;){var u=i.delegate;if(u){var s=N(u,i);if(s){if(s===m)continue;return s}}if("next"===i.method)i.sent=i.Yr=i.arg;else if("throw"===i.method){if(e===d)throw e=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);e=b;var h=v(t,n,i);if("normal"===h.type){if(e=i.done?g:w,h.arg===m)continue;return{value:h.arg,done:i.done}}"throw"===h.type&&(e=g,i.method="throw",i.arg=h.arg)}}}(t,i,u),o}function v(t,n,i){try{return{type:"normal",arg:t.call(n,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var d="suspendedStart",w="suspendedYield",b="executing",g="completed",m={};function p(){}function y(){}function _(){}var S={};S[o]=function(){return this};var I=c.getPrototypeOf,T=I&&I(I(D([])));T&&T!==i&&e.call(T,o)&&(S=T);var E=_.prototype=p.prototype=c.create(S);function R(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this.Gr(n,t)}})}function k(t){var n;this.Gr=function(i,r){function o(){return new j(function(n,o){!function n(i,r,o,u){var s=v(t[i],t,r);if("throw"!==s.type){var f=s.arg,h=f.value;return h&&"object"==typeof h&&e.call(h,"jr")?j.resolve(h.jr).then(function(t){n("next",t,o,u)},function(t){n("throw",t,o,u)}):j.resolve(h).then(function(t){f.value=t,o(f)},function(t){return n("throw",t,o,u)})}u(s.arg)}(i,r,n,o)})}return n=n?n.then(o,o):o()}}function N(t,i){var e=t.iterator[i.method];if(e===n){if(i.delegate=null,"throw"===i.method){if(t.iterator.return&&(i.method="return",i.arg=n,N(t,i),"throw"===i.method))return m;i.method="throw",i.arg=new h("The iterator does not provide a 'throw' method")}return m}var r=v(e,t.iterator,i.arg);if("throw"===r.type)return i.method="throw",i.arg=r.arg,i.delegate=null,m;var o=r.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=n),i.delegate=null,m):o:(i.method="throw",i.arg=new h("iterator result is not an object"),i.delegate=null,m)}function O(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function P(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function D(t){if(t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!l(t.length)){var r=-1,u=function i(){for(;++r<t.length;)if(e.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=n,i.done=!0,i};return u.next=u}}return{next:x}}function x(){return{value:n,done:!0}}y.prototype=E.constructor=_,_.constructor=y,_[s]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===y||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return c.setPrototypeOf?c.setPrototypeOf(t,_):(t.__proto__=_,s in t||(t[s]="GeneratorFunction")),t.prototype=c.create(E),t},t.awrap=function(t){return{jr:t}},R(k.prototype),k.prototype[u]=function(){return this},t.AsyncIterator=k,t.async=function(n,i,e,r){var o=new k(a(n,i,e,r));return t.isGeneratorFunction(i)?o:o.next().then(function(t){return t.done?t.value:o.next()})},R(E),E[s]="Generator",E[o]=function(){return this},E.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var i in t)n.push(i);return n.reverse(),function i(){for(;n.length;){var e=n.pop();if(e in t)return i.value=e,i.done=!1,i}return i.done=!0,i}},t.values=D,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this.Yr=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!t)for(var i in this)"t"===i.charAt(0)&&e.call(this,i)&&!l(+i.slice(1))&&(this[i]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function r(e,r){return s.type="throw",s.arg=t,i.next=e,r&&(i.method="next",i.arg=n),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],s=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var h=e.call(u,"catchLoc"),c=e.call(u,"finallyLoc");if(h&&c){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(h){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!c)throw new f("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.finallyLoc)}}}},abrupt:function(t,n){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&e.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),m},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),m}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===t){var e=i.completion;if("throw"===e.type){var r=e.arg;P(i)}return r}}throw new f("illegal catch attempt")},delegateYield:function(t,i,e){return this.delegate={iterator:D(t),resultName:i,nextLoc:e},"next"===this.method&&(this.arg=n),m}}}(J.exports);var Z,Q=J.exports;function tt(t){Z=t}var nt={}.toString;var it=Array.isArray||function(t){return"[object Array]"===nt.call(t)};function et(t){return"object"==typeof t&&null!==t}var rt,ot=9007199254740991,ut=a.pow(2,-52);function st(t,n){for(var i=t,e=n;0!==e;){var r=i%e;i=e,e=r}return i<0?-i:i}!function(t){t[t.Is=0]="Is",t[t.Rs=1]="Rs",t[t.Ns=-1]="Ns"}(rt||(rt={}));var ft=function(t,n){return function(t,n){if(t===n)return!0;var i=a.abs(t-n);return i<ut||i<a.max(a.abs(t),a.abs(n))*ut}(t,n)?rt.Is:function(t,n){return t===n?rt.Is:t<n?rt.Ns:t>n?rt.Rs:l(t)?l(n)?rt.Is:rt.Rs:rt.Ns}(t,n)};function ht(t,n,i){for(var e=0;e<t.length;e+=1){var r=t[e];if(n.call(i,r,e,t))return e}return-1}function ct(t,n){var i=t.indexOf(n);return-1!==i&&(function(t,n){t.splice(n,1)}(t,i),!0)}function at(t,n){return-1!==t.indexOf(n)}function vt(t){t.length=0}var dt,lt=function(){},wt="https://theo.proxy";function bt(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),c.defineProperty(t,e.key,e)}}function gt(t,n,i){return n&&bt(t.prototype,n),i&&bt(t,i),c.defineProperty(t,"prototype",{writable:!1}),t}function mt(){var t=c.create(null);return t.__=void 0,delete t.__,t}function pt(){return new St}!function(t){t.vl="audio",t.dl="video",t.EA="metadata"}(dt||(dt={}));var yt,_t,St=("undefined"!=typeof Map&&"entries"in Map.prototype?Map:void 0)||(yt=function(){function t(t,n){this.data=void 0,this.keys=void 0,this.index=0,this.selector=void 0,this.data=t,this.selector=n,this.keys=c.keys(t)}var n=t.prototype;return n.next=function(){var t=this.index;return t<this.keys.length?(this.index++,{value:this.selector(this.data,this.keys[t]),done:!1}):{value:void 0,done:!0}},t}(),function(){function t(){this.data=mt(),this.size=0}var n=t.prototype;return n.get=function(t){return this.data[t]},n.set=function(t,n){return this.has(t)||this.size++,this.data[t]=n,this},n.has=function(t){return t in this.data},n.delete=function(t){return!!this.has(t)&&(this.size--,delete this.data[t],!0)},n.clear=function(){this.data=mt(),this.size=0},n.keys=function(){return new yt(this.data,function(t,n){return n})},n.values=function(){return new yt(this.data,function(t,n){return t[n]})},n.entries=function(){return new yt(this.data,function(t,n){return[n,t[n]]})},n.forEach=function(t){for(var n in this.data)t(this.data[n],n)},t}());!function(t){t.Zd="#EXTINF",t.Owt="#EXT-X-MAP",t.kO="#EXTM3U",t.i="#EXT-X-VERSION",t.o="#EXT-X-TARGETDURATION",t.E5="#EXT-X-START",t.s="#EXT-X-INDEPENDENT-SEGMENTS",t.Yf="#EXT-X-STREAM-INF",t.h="#EXT-X-MEDIA-SEQUENCE",t.m="#EXT-X-ENDLIST",t.yO="#EXT-X-MEDIA",t.p="#EXT-X-DISCONTINUITY",t.S="#EXT-X-DISCONTINUITY-SEQUENCE",t.T="#EXT-X-PLAYLIST-TYPE"}(_t||(_t={}));var It,Tt=function(){function t(t,n){this.fs=_t.Zd,this.k=void 0,this.O=void 0,this.k=t,this.O=n}return t.prototype.KI=function(){return this.fs+":"+this.k+",\n"+this.O},t}(),Et=function(){function t(){this.fs=_t.kO}return t.prototype.KI=function(){return this.fs},t}(),Rt=function(){function t(t){this.fs=_t.i,this.nT=void 0,this.nT=t}return t.prototype.KI=function(){return this.fs+":"+this.nT},t}(),kt=function(){function t(t){this.fs=_t.o,this.Nkt=void 0,this.Nkt=t}return t.prototype.KI=function(){return this.fs+":"+this.Nkt},t}(),Nt=function(){function t(t){this.fs=_t.E5,this.cyt=void 0,this.cyt=t}return t.prototype.KI=function(){return this.fs+":TIME-OFFSET="+this.cyt},t}(),Ot=function(){function t(){this.fs=_t.s}return t.prototype.KI=function(){return this.fs},t}(),Pt=function(){function t(t){this.fs=_t.Yf,this.hN=1,this.O=void 0,this.O=t}return t.prototype.KI=function(){return this.fs+":BANDWIDTH="+this.hN+',AUDIO="audio"\n'+this.O},t}(),At=function(){function t(t){this.fs=_t.h,this.VS=void 0,this.VS=t}return t.prototype.KI=function(){return this.fs+":"+this.VS},t}(),Dt=function(){function t(){this.fs=_t.p}return t.prototype.KI=function(){return this.fs},t}(),xt=function(){function t(t){this.fs=_t.S,this.VS=void 0,this.VS=t}return t.prototype.KI=function(){return this.fs+":"+this.VS},t}();!function(t){t.xwt="VOD",t.aNt="EVENT"}(It||(It={}));var Ct=function(){function t(t){this.fs=_t.yO,this.O=void 0,this.O=t}return t.prototype.KI=function(){var t=pt();t.set("TYPE","AUDIO"),t.set("GROUP-ID",'"audio"'),t.set("NAME",'"audio"'),t.set("AUTOSELECT","YES"),t.set("DEFAULT","YES"),t.set("CHANNELS",'"2"'),t.set("URI",'"'+this.O+'"');var n=[];return t.forEach(function(t,i){return n.push(i+"="+t)}),this.fs+":"+n.join(",")},t}(),Bt=function(){function t(t){this.Ho=[],this.Ho=t}return t.prototype.P=function(){for(var t="",n=0,i=this.Ho;n<i.length;n++){t+=i[n].KI()+"\n"}return t},gt(t,[{key:"GT",get:function(){return this.Ho}}]),t}(),Ft=function(){function t(){this.Ho=[];for(var t=[new Et,new Rt(8)],n=0;n<t.length;n++){var i=t[n];this.A(i)}}var n=t.prototype;return n.A=function(t){this.Ho.push(t)},n.Ls=function(){this.Ho.length=0},gt(t,[{key:"GT",get:function(){return new Bt(this.Ho)}}]),t}();function Lt(t,n){return(Lt=c.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function Ut(t,n){t.prototype=c.create(n.prototype),t.prototype.constructor=t,Lt(t,n)}var Mt=function(){function t(){}var n=t.prototype;return n.tp=function(t){return this.np()*t},n.ip=function(t){return this.ep(t)>0},n.rp=function(t){return this.ep(t)>=0},n.sp=function(t,n){return this.hp(t).op(n)},n.qm=function(t){return 0===this.ep(t)},n.ap=function(t){return this.ep(t)<0},n.op=function(t){return this.ep(t)<=0},n.cp=function(){return this.fp()?this.vp():this},n.dp=function(t){return this.nm(t.vp())},n.hp=function(t){return this.dp(t).cp()},t}();function zt(t,n){return t.lp()?n.lp()?rt.Is:rt.Rs:n.lp()?rt.Ns:t._p()?n._p()&&t.fp()===n.fp()?rt.Is:t.fp()?rt.Ns:rt.Rs:n.fp()?rt.Rs:rt.Ns}var Wt=null;try{Wt=new WebAssembly.Instance(new WebAssembly.Module(new w([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(t){}function qt(t,n,i){this.low=0|t,this.high=0|n,this.unsigned=!!i}function jt(t){return!0===(t&&t.Qn)}function Vt(t){var n=a.clz32(t&-t);return t?31-n:n}qt.prototype.Qn,c.defineProperty(qt.prototype,"Qn",{value:!0}),qt.isLong=jt;var Ht={},Xt={};function Gt(t,n){var i,e,r;return n?(r=0<=(t>>>=0)&&t<256)&&(e=Xt[t])?e:(i=Kt(t,0,!0),r&&(Xt[t]=i),i):(r=-128<=(t|=0)&&t<128)&&(e=Ht[t])?e:(i=Kt(t,t<0?-1:0,!1),r&&(Ht[t]=i),i)}function Yt(t,n){if(l(t))return n?on:rn;if(n){if(t<0)return on;if(t>=tn)return cn}else{if(t<=-nn)return an;if(t+1>=nn)return hn}return t<0?Yt(-t,n).neg():Kt(t%Qt|0,t/Qt|0,n)}function Kt(t,n,i){return new qt(t,n,i)}qt.fromInt=Gt,qt.fromNumber=Yt,qt.fromBits=Kt;var $t=a.pow;function Jt(t,n,i){if(0===t.length)throw f("empty string");if("number"==typeof n?(i=n,n=!1):n=!!n,"NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return n?on:rn;if((i=i||10)<2||36<i)throw RangeError("radix");var e;if((e=t.indexOf("-"))>0)throw f("interior hyphen");if(0===e)return Jt(t.substring(1),n,i).neg();for(var r=Yt($t(i,8)),o=rn,u=0;u<t.length;u+=8){var s=a.min(8,t.length-u),h=v(t.substring(u,u+s),i);if(s<8){var c=Yt($t(i,s));o=o.mul(c).add(Yt(h))}else o=(o=o.mul(r)).add(Yt(h))}return o.unsigned=n,o}function Zt(t,n){return"number"==typeof t?Yt(t,n):"string"==typeof t?Jt(t,n):Kt(t.low,t.high,"boolean"==typeof n?n:t.unsigned)}qt.fromString=Jt,qt.fromValue=Zt;var Qt=4294967296,tn=Qt*Qt,nn=tn/2,en=Gt(1<<24),rn=Gt(0);qt.ZERO=rn;var on=Gt(0,!0);qt.UZERO=on;var un=Gt(1);qt.ONE=un;var sn=Gt(1,!0);qt.UONE=sn;var fn=Gt(-1);qt.NEG_ONE=fn;var hn=Kt(-1,2147483647,!1);qt.MAX_VALUE=hn;var cn=Kt(-1,-1,!0);qt.MAX_UNSIGNED_VALUE=cn;var an=Kt(0,-2147483648,!1);qt.MIN_VALUE=an;var vn=qt.prototype;vn.toInt=function(){return this.unsigned?this.low>>>0:this.low},vn.toNumber=function(){return this.unsigned?(this.high>>>0)*Qt+(this.low>>>0):this.high*Qt+(this.low>>>0)},vn.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(an)){var n=Yt(t),i=this.div(n),e=i.mul(n).sub(this);return i.toString(t)+e.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var r=Yt($t(t,6),this.unsigned),o=this,u="";;){var s=o.div(r),f=(o.sub(s.mul(r)).toInt()>>>0).toString(t);if((o=s).isZero())return f+u;for(;f.length<6;)f="0"+f;u=""+f+u}},vn.getHighBits=function(){return this.high},vn.getHighBitsUnsigned=function(){return this.high>>>0},vn.getLowBits=function(){return this.low},vn.getLowBitsUnsigned=function(){return this.low>>>0},vn.getNumBitsAbs=function(){if(this.isNegative())return this.eq(an)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,n=31;n>0&&0==(t&1<<n);n--);return 0!=this.high?n+33:n+1},vn.isZero=function(){return 0===this.high&&0===this.low},vn.eqz=vn.isZero,vn.isNegative=function(){return!this.unsigned&&this.high<0},vn.isPositive=function(){return this.unsigned||this.high>=0},vn.isOdd=function(){return 1==(1&this.low)},vn.isEven=function(){return 0==(1&this.low)},vn.equals=function(t){return jt(t)||(t=Zt(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},vn.eq=vn.equals,vn.notEquals=function(t){return!this.eq(t)},vn.neq=vn.notEquals,vn.ne=vn.notEquals,vn.lessThan=function(t){return this.comp(t)<0},vn.lt=vn.lessThan,vn.lessThanOrEqual=function(t){return this.comp(t)<=0},vn.lte=vn.lessThanOrEqual,vn.le=vn.lessThanOrEqual,vn.greaterThan=function(t){return this.comp(t)>0},vn.gt=vn.greaterThan,vn.greaterThanOrEqual=function(t){return this.comp(t)>=0},vn.gte=vn.greaterThanOrEqual,vn.ge=vn.greaterThanOrEqual,vn.compare=function(t){if(jt(t)||(t=Zt(t)),this.eq(t))return 0;var n=this.isNegative(),i=t.isNegative();return n&&!i?-1:!n&&i?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},vn.comp=vn.compare,vn.negate=function(){return!this.unsigned&&this.eq(an)?an:this.not().add(un)},vn.neg=vn.negate,vn.add=function(t){jt(t)||(t=Zt(t));var n=this.high>>>16,i=65535&this.high,e=this.low>>>16,r=65535&this.low,o=t.high>>>16,u=65535&t.high,s=t.low>>>16,f=0,h=0,c=0,a=0;return c+=(a+=r+(65535&t.low))>>>16,h+=(c+=e+s)>>>16,f+=(h+=i+u)>>>16,f+=n+o,Kt((c&=65535)<<16|(a&=65535),(f&=65535)<<16|(h&=65535),this.unsigned)},vn.subtract=function(t){return jt(t)||(t=Zt(t)),this.add(t.neg())},vn.sub=vn.subtract,vn.multiply=function(t){if(this.isZero())return this;if(jt(t)||(t=Zt(t)),Wt)return Kt(Wt.mul(this.low,this.high,t.low,t.high),Wt.get_high(),this.unsigned);if(t.isZero())return this.unsigned?on:rn;if(this.eq(an))return t.isOdd()?an:rn;if(t.eq(an))return this.isOdd()?an:rn;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(en)&&t.lt(en))return Yt(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,e=this.low>>>16,r=65535&this.low,o=t.high>>>16,u=65535&t.high,s=t.low>>>16,f=65535&t.low,h=0,c=0,a=0,v=0;return a+=(v+=r*f)>>>16,c+=(a+=e*f)>>>16,a&=65535,c+=(a+=r*s)>>>16,h+=(c+=i*f)>>>16,c&=65535,h+=(c+=e*s)>>>16,c&=65535,h+=(c+=r*u)>>>16,h+=n*f+i*s+e*u+r*o,Kt((a&=65535)<<16|(v&=65535),(h&=65535)<<16|(c&=65535),this.unsigned)},vn.mul=vn.multiply,vn.divide=function(t){if(jt(t)||(t=Zt(t)),t.isZero())throw f("division by zero");var n,i,e;if(Wt)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?Kt((this.unsigned?Wt.div_u:Wt.div_s)(this.low,this.high,t.low,t.high),Wt.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?on:rn;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return on;if(t.gt(this.shru(1)))return sn;e=on}else{if(this.eq(an))return t.eq(un)||t.eq(fn)?an:t.eq(an)?un:(n=this.shr(1).div(t).shl(1)).eq(rn)?t.isNegative()?un:fn:(i=this.sub(t.mul(n)),e=n.add(i.div(t)));if(t.eq(an))return this.unsigned?on:rn;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();e=rn}for(i=this;i.gte(t);){n=a.max(1,a.floor(i.toNumber()/t.toNumber()));for(var r=a.ceil(a.log(n)/a.LN2),o=r<=48?1:$t(2,r-48),u=Yt(n),s=u.mul(t);s.isNegative()||s.gt(i);)s=(u=Yt(n-=o,this.unsigned)).mul(t);u.isZero()&&(u=un),e=e.add(u),i=i.sub(s)}return e},vn.div=vn.divide,vn.modulo=function(t){return jt(t)||(t=Zt(t)),Wt?Kt((this.unsigned?Wt.rem_u:Wt.rem_s)(this.low,this.high,t.low,t.high),Wt.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},vn.mod=vn.modulo,vn.rem=vn.modulo,vn.not=function(){return Kt(~this.low,~this.high,this.unsigned)},vn.countLeadingZeros=function(){return this.high?a.clz32(this.high):a.clz32(this.low)+32},vn.clz=vn.countLeadingZeros,vn.countTrailingZeros=function(){return this.low?Vt(this.low):Vt(this.high)+32},vn.ctz=vn.countTrailingZeros,vn.and=function(t){return jt(t)||(t=Zt(t)),Kt(this.low&t.low,this.high&t.high,this.unsigned)},vn.or=function(t){return jt(t)||(t=Zt(t)),Kt(this.low|t.low,this.high|t.high,this.unsigned)},vn.xor=function(t){return jt(t)||(t=Zt(t)),Kt(this.low^t.low,this.high^t.high,this.unsigned)},vn.shiftLeft=function(t){return jt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?Kt(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):Kt(0,this.low<<t-32,this.unsigned)},vn.shl=vn.shiftLeft,vn.shiftRight=function(t){return jt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?Kt(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):Kt(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},vn.shr=vn.shiftRight,vn.shiftRightUnsigned=function(t){return jt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?Kt(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):Kt(32===t?this.high:this.high>>>t-32,0,this.unsigned)},vn.shru=vn.shiftRightUnsigned,vn.shr_u=vn.shiftRightUnsigned,vn.rotateLeft=function(t){var n;return jt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?Kt(this.high,this.low,this.unsigned):t<32?(n=32-t,Kt(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned)):(n=32-(t-=32),Kt(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned))},vn.rotl=vn.rotateLeft,vn.rotateRight=function(t){var n;return jt(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?Kt(this.high,this.low,this.unsigned):t<32?(n=32-t,Kt(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned)):(n=32-(t-=32),Kt(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned))},vn.rotr=vn.rotateRight,vn.toSigned=function(){return this.unsigned?Kt(this.low,this.high,!1):this},vn.toUnsigned=function(){return this.unsigned?this:Kt(this.low,this.high,!0)},vn.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},vn.toBytesLE=function(){var t=this.high,n=this.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},vn.toBytesBE=function(){var t=this.high,n=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]},qt.fromBytes=function(t,n,i){return i?qt.fromBytesLE(t,n):qt.fromBytesBE(t,n)},qt.fromBytesLE=function(t,n){return new qt(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},qt.fromBytesBE=function(t,n){return new qt(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)};var dn=function(){function t(t,n){this.gp=void 0,this.wp=void 0,this.gp=t,this.wp=n}t.kp=function(n,i,e){return e?new t(n.toUnsigned(),i.toUnsigned()):new t(n.toSigned(),i.toSigned())},t.yp=function(n){return n.unsigned?new t(n,qt.UZERO):new t(n,n.isNegative()?qt.NEG_ONE:qt.ZERO)},t.mp=function(n,i){if(l(n))return i?t.pp:t.bp;if(i){if(n<0)return t.pp;if(n>=3.402823669209385e38)return t.Ap}else{if(n<=-1.7014118346046923e38)return t.Tp;if(n+1>=1.7014118346046923e38)return t.Sp}return n<0?t.mp(-n,i).vp():t.kp(qt.fromNumber(n%0x10000000000000000),qt.fromNumber(n/0x10000000000000000),i)};var n=t.prototype;return n.Ep=function(){return this.wp.unsigned},n.Ip=function(){return this.gp.isZero()&&this.wp.isZero()},n.fp=function(){return this.wp.isNegative()},n.Rp=function(){return this.Ep()?t.kp(this.gp,this.wp,!1):this},n.Np=function(){return this.Ep()?this:t.kp(this.gp,this.wp,!0)},n.Dp=function(){return this.gp},n.np=function(){return this.fp()?-this.vp().np():0x10000000000000000*this.wp.toNumber()+this.gp.toUnsigned().toNumber()},n.Cp=function(){return this.gp.toInt()},n.qm=function(t){return(this.Ep()===t.Ep()||this.wp.getHighBits()>>>31!=1||t.wp.getHighBits()>>>31!=1)&&(this.wp.toUnsigned().eq(t.wp.toUnsigned())&&this.gp.toUnsigned().eq(t.gp.toUnsigned()))},n.ep=function(t){if(this.qm(t))return rt.Is;var n=this.fp(),i=t.fp();if(n&&!i)return rt.Ns;if(!n&&i)return rt.Rs;if(!this.Ep())return this.dp(t).fp()?rt.Ns:rt.Rs;var e=this.Np(),r=t.Np(),o=r.wp.comp(e.wp);return o>0||0===o&&r.gp.gt(e.gp)?rt.Ns:rt.Rs},n.ap=function(t){return this.ep(t)<0},n.op=function(t){return this.ep(t)<=0},n.Pp=function(t){return this.ep(t)>0},n.Op=function(t){return this.ep(t)>=0},n.Bp=function(){return new t(this.gp.not(),this.wp.not())},n.Lp=function(n){return new t(this.gp.and(n.gp),this.wp.and(n.wp))},n.Mp=function(n){return new t(this.gp.or(n.gp),this.wp.or(n.wp))},n.xp=function(n){var i=127&n;return 0===i?this:i<64?t.kp(this.gp.shl(i),this.wp.shl(i).or(this.gp.shru(64-i)),this.Ep()):t.kp(qt.ZERO,this.gp.shl(i-64),this.Ep())},n.Up=function(n){var i=127&n;return 0===i?this:i<64?t.kp(this.gp.shru(i).or(this.wp.shl(64-i)),this.wp.shr(i),this.Ep()):t.kp(this.wp.shr(i-64),this.wp.isNegative()?qt.NEG_ONE:qt.ZERO,this.Ep())},n.Fp=function(n){var i=127&n;return 0===i?this:i<64?t.kp(this.gp.shru(i).or(this.wp.shl(64-i)),this.wp.shru(i),this.Ep()):64===i?t.kp(this.wp,qt.ZERO,this.Ep()):t.kp(this.wp.shru(i-64),qt.ZERO,this.Ep())},n.nm=function(n){var i=this.wp.high>>>16,e=65535&this.wp.high,r=this.wp.low>>>16,o=65535&this.wp.low,u=this.gp.high>>>16,s=65535&this.gp.high,f=this.gp.low>>>16,h=65535&this.gp.low,c=n.wp.high>>>16,a=65535&n.wp.high,v=n.wp.low>>>16,d=65535&n.wp.low,l=n.gp.high>>>16,w=65535&n.gp.high,b=n.gp.low>>>16,g=0,m=0,p=0,y=0,_=0,S=0,I=0,T=0;I+=(T+=h+(65535&n.gp.low))>>>16,T&=65535,S+=(I+=f+b)>>>16,I&=65535,_+=(S+=s+w)>>>16,S&=65535,y+=(_+=u+l)>>>16,_&=65535,p+=(y+=o+d)>>>16,y&=65535,m+=(p+=r+v)>>>16,p&=65535,g+=(m+=e+a)>>>16,m&=65535,g+=i+c,g&=65535;var E=this.Ep(),R=qt.fromBits(p<<16|y,g<<16|m,E),k=qt.fromBits(I<<16|T,_<<16|S,E);return t.kp(k,R,E)},n.dp=function(t){return this.nm(t.vp())},n.vp=function(){return this.Bp().nm(t.Hp)},n.Vp=function(n){if(this.Ip()||n.Ip())return this.Ep()?t.pp:t.bp;if(this.fp())return n.fp()?this.vp().Vp(n.vp()):this.vp().Vp(n).vp();if(n.fp())return this.Vp(n.vp()).vp();if(this.wp.isZero()&&0===this.gp.high&&n.wp.isZero()&&0===n.gp.high)return t.yp(this.gp.multiply(n.gp));var i=qt.fromBits(4294967295,0,!0),e=this.gp.and(i),r=this.gp.shru(32),o=this.wp.and(i),u=this.wp.shru(32),s=n.gp.and(i),f=n.gp.shru(32),h=n.wp.and(i),c=n.wp.shru(32),a=qt.UZERO,v=qt.UZERO,d=qt.UZERO,l=qt.UZERO;a=a.add(e.mul(s)),v=v.add(a.shru(32)),a=a.and(i),v=v.add(r.mul(s)),d=d.add(v.shru(32)),v=(v=v.and(i)).add(e.mul(f)),d=d.add(v.shru(32)),v=v.and(i),d=d.add(o.mul(s)),l=l.add(d.shru(32)),d=(d=d.and(i)).add(r.mul(f)),l=l.add(d.shru(32)),d=(d=d.and(i)).add(e.mul(h)),l=l.add(d.shru(32)),d=d.and(i),l=l.add(u.mul(s)).add(o.mul(f)).add(r.mul(h)).add(e.mul(c)).and(i);var w=qt.fromBits(a.getLowBitsUnsigned(),v.getLowBitsUnsigned(),!0),b=qt.fromBits(d.getLowBitsUnsigned(),l.getLowBitsUnsigned(),!0);return t.kp(w,b,this.Ep())},n.Xp=function(n){var i,e,r=n;if(r.Ip())throw new RangeError("division by zero");if(this.Ip())return this.Ep()?[t.pp,t.pp]:[t.bp,t.bp];if(this.Ep()){if(r.Ep()||(r=r.Np()),r.Pp(this))return[t.pp,this];if(r.Pp(this.Fp(1)))return[e=t.zp,i=this.dp(r)];e=t.pp}else{if(this.qm(t.Tp)){if(r.qm(t.Hp)||r.qm(t.qp))return[t.Tp,t.bp];if(r.qm(t.Tp))return[t.Hp,t.bp];var o=this.Up(1).Wp(r).xp(1);return o.qm(t.bp)?e=r.fp()?t.Hp:t.qp:(i=this.dp(r.Vp(o)),e=o.nm(i.Wp(r))),[e,i=this.dp(r.Vp(e))]}if(r.qm(t.Tp))return this.Ep()?[t.pp,this]:[t.bp,this];if(this.fp()){if(r.fp())return this.vp().Xp(r.vp());var u=this.vp().Xp(r);return e=u[0],i=u[1],[e.vp(),i.vp()]}if(r.fp()){var s=this.Xp(r.vp());return e=s[0],i=s[1],[e.vp(),i.vp()]}e=t.bp}for(i=this;i.Op(r);){for(var f=a.max(1,a.floor(i.np()/r.np())),h=a.ceil(a.log(f)/a.LN2),c=h<=48?1:a.pow(2,h-48),v=t.mp(f),d=v.Vp(r);d.fp()||d.Pp(i);)f-=c,d=(v=t.mp(f,this.Ep())).Vp(r);v.Ip()&&(v=t.Hp),e=e.nm(v),i=i.dp(d)}return[e,i]},n.Wp=function(t){return this.Xp(t)[0]},n.Gp=function(t){return this.Xp(t)[1]},n.toString=function(n){var i=n||10;if(i<2||i>36)throw new RangeError("radix");if(this.Ip())return"0";if(this.fp()){if(this.qm(t.Tp)){var e=t.mp(i),r=this.Wp(e),o=r.Vp(e).dp(this);return r.toString(i)+o.Cp().toString(i)}return"-"+this.vp().toString(i)}for(var u=t.mp(a.pow(i,6),this.Ep()),s=this,f="";;){var h=s.Wp(u),c=(s.dp(h.Vp(u)).Cp()>>>0).toString(i);if((s=h).Ip())return c+f;for(;c.length<6;)c="0"+c;f=String(c)+f}},t}();dn.bp=dn.yp(qt.ZERO),dn.pp=dn.yp(qt.UZERO),dn.Hp=dn.yp(qt.ONE),dn.zp=dn.yp(qt.UONE),dn.qp=dn.yp(qt.NEG_ONE),dn.Sp=dn.kp(qt.NEG_ONE,qt.MAX_VALUE,!1),dn.Ap=dn.kp(qt.MAX_UNSIGNED_VALUE,qt.MAX_UNSIGNED_VALUE,!0),dn.Tp=dn.kp(qt.ZERO,qt.MIN_VALUE,!1);var ln=function(){function t(t,n){void 0===n&&(n=1),this.Yp=void 0,this.jp=void 0,this.Yp=t,this.jp=n}t.Qp=function(n){return new t(a.ceil(n.Yp),n.jp)},t.Kp=function(n){return new t(a.floor(n.Yp),n.jp)},t.Zp=function(t,n){return t.rp(n)?t:n},t.Jp=function(t,n){return t.op(n)?t:n};var n=t.prototype;return n.nm=function(n){return this.jp>=n.jp?new t(this.Yp+n.$p(this.jp).Yp,this.jp):new t(this.$p(n.jp).Yp+n.Yp,n.jp)},n.ip=function(t){return t.ap(this)},n.rp=function(t){return t.op(this)},n.hp=function(n){return this.jp>=n.jp?new t(a.abs(this.Yp-n.$p(this.jp).Yp),this.jp):n.hp(this)},n.sp=function(t,n){return this.hp(t).op(n)},n.ep=function(t){return i=t,(n=this).jp>=i.jp?ft(n.Yp,i.$p(n.jp).Yp):ft(n.$p(i.jp).Yp,i.Yp);var n,i},n.qm=function(t){return 0===this.ep(t)},n.ap=function(t){return this.ep(t)<0},n.op=function(t){return this.ep(t)<=0},n.$p=function(n){return new t(this.Yp*(n/this.jp),n)},n.dp=function(n){return this.jp>=n.jp?new t(this.Yp-n.$p(this.jp).Yp,this.jp):new t(this.$p(n.jp).Yp-n.Yp,n.jp)},n.ib=function(n){return new t(this.Yp*n,this.jp)},gt(t,[{key:"_p",get:function(){return!isFinite(this.Yp)}},{key:"eb",get:function(){return this.Yp/this.jp}}]),t}();ln.sb=new ln(1/6,1),ln.bp=new ln(0),ln.ub=new ln(1/0),ln.ob=1e6;var wn=function(t){function n(n,i){var e;return(e=t.call(this)||this).Ai=void 0,e.jp=void 0,e.Ai=n.toSigned(),e.jp=i>>>0,e}Ut(n,t),n.hb=function(t,i){return void 0===i&&(i=1e6),n.mp(t*i,i)},n.mp=function(t,i){return l(t)?n.cb:t===1/0?n.fb:t===-1/0?n.vb:new n(qt.fromNumber(t),i)},n.yp=function(t,i){return new n(t,i)},n._b=function(t){return n.hb(t.eb,1e6)},n.gb=function(t){return new n(qt.fromNumber(t.getTime()),1e3)},n.Zp=function(t,n){return t.rp(n)?t:n},n.Jp=function(t,n){return t.op(n)?t:n},n.wb=function(t,i,e){return n.Zp(i,n.Jp(e,t))};var i=n.prototype;return i.fp=function(){return this.Ai.isNegative()},i.Ip=function(){return 0!==this.jp&&this.Ai.isZero()},i._p=function(){return 0===this.jp&&!this.Ai.isZero()},i.lp=function(){return 0===this.jp&&this.Ai.isZero()},i.np=function(){if(0===this.jp)return this.Ai.isZero()?NaN:this.Ai.isNegative()?-1/0:1/0;var t=this.Ai.divide(this.jp),n=this.Ai.subtract(t.multiply(this.jp));return t.toNumber()+n.toNumber()/this.jp},i.Dp=function(){if(0===this.jp)throw new f("Failed to convert timestamp");return this.Ai},i.kb=function(){return new Date(0===this.jp?NaN:this.$p(1e3).Ai.toNumber())},i.yb=function(){return new ln(0===this.jp?this.np():this.Ai.toNumber(),this.jp)},i.$p=function(t,i){void 0===i&&(i=mn.mb);var e=this.jp;if(e===t)return this;if(0===e)return this;var r=st(e,t);return new n(function(t,n,i){var e=t.Xp(n),r=e[0],o=e[1];if(o.Ip())return r;if(i===mn.mb)return o.fp()?r.dp(dn.Hp):r;if(i===mn.pb)return o.fp()?r:r.nm(dn.Hp);var u=o.Vp(dn.mp(2));return u.fp()?u.vp().ap(n)?r:r.dp(dn.Hp):u.ap(n)?r:r.nm(dn.Hp)}(dn.yp(this.Ai).Vp(dn.mp(t/r)),dn.mp(e/r),i).Dp(),t)},i.ep=function(t){if(this===t)return rt.Is;if(0===this.jp||0===t.jp)return zt(this,t);if(this.Ip())return t.Ip()?rt.Is:t.fp()?rt.Rs:rt.Ns;if(t.Ip())return this.fp()?rt.Ns:rt.Rs;var n=a.min(this.jp,t.jp),i=this.$p(n,mn.bb).Ai,e=t.$p(n,mn.bb).Ai;return i.compare(e)},i.vp=function(){return 0===this.jp?bn(this):new n(this.Ai.negate(),this.jp)},i.nm=function(t){if(0===this.jp||0===t.jp)return gn(this,t);if(this.Ip())return t;if(t.Ip())return this;var i=a.max(this.jp,t.jp),e=this.$p(i,mn.bb),r=t.$p(i,mn.bb);return new n(e.Ai.add(r.Ai),i)},i.Vp=function(t){if(this.lp()||l(t))return n.cb;if(this._p()||!isFinite(t)){if(this.Ip()||0===t)return n.cb;var i=this.fp()?n.vb:n.fb;return t<0?i.vp():i}return this.Ip()?this:new n(0===t?qt.ZERO:this.Ai.multiply(t),this.jp)},i.Wp=function(t){if(this.lp()||l(t))return n.cb;if(this._p())return isFinite(t)?0===t?1/t<0?this.vp():this:t<0?this.vp():this:n.cb;if(!isFinite(t))return new n(qt.ZERO,this.jp);if(this.Ip())return 0===t?n.cb:new n(qt.ZERO,this.jp);if(0===t){var i=this.fp()?n.vb:n.fb;return 1/t<0?i.vp():i}return new n(this.Ai.divide(t),this.jp)},i.Ab=function(){return[this.Ai.low,this.Ai.high,this.jp]},n}(Mt);function bn(t){return t.lp()?t:t.fp()?wn.fb:wn.vb}function gn(t,n){return t.lp()||n.lp()?wn.cb:t._p()&&n._p()?t.fp()===n.fp()?t:wn.cb:t._p()?t:n}wn.bp=new wn(qt.ZERO,1e6),wn.cb=new wn(qt.ZERO,0),wn.fb=new wn(qt.ONE,0),wn.vb=new wn(qt.NEG_ONE,0);var mn,pn=function(t){function n(n,i){var e;return(e=t.call(this)||this).Ai=void 0,e.jp=void 0,e.Ai=BigInt.asIntN(64,n),e.jp=i>>>0,e}Ut(n,t),n.hb=function(t,i){return void 0===i&&(i=1e6),n.mp(t*i,i)},n.mp=function(t,i){return l(t)?n.cb:t===1/0?n.fb:t===-1/0?n.vb:new n(BigInt(a.floor(t)),i)},n.yp=function(t,i){return new n(BigInt(t.high)<<BigInt(32)|BigInt(t.low>>>0),i)},n._b=function(t){return n.hb(t.eb,1e6)},n.gb=function(t){return n.mp(t.getTime(),1e3)},n.Zp=function(t,n){return t.rp(n)?t:n},n.Jp=function(t,n){return t.op(n)?t:n},n.wb=function(t,i,e){return n.Zp(i,n.Jp(e,t))};var i=n.prototype;return i.fp=function(){return this.Ai<BigInt(0)},i.Ip=function(){return 0!==this.jp&&this.Ai===BigInt(0)},i._p=function(){return 0===this.jp&&this.Ai!==BigInt(0)},i.lp=function(){return 0===this.jp&&this.Ai===BigInt(0)},i.np=function(){if(0===this.jp)return this.Ai===BigInt(0)?NaN:this.Ai<BigInt(0)?-1/0:1/0;var t=this.Ai/BigInt(this.jp),n=this.Ai-t*BigInt(this.jp);return Number(t)+Number(n)/this.jp},i.Dp=function(){if(0===this.jp)throw new f("Failed to convert timestamp");return this.Tb()},i.Tb=function(){var t=this.Ai&BigInt(4294967295),n=this.Ai>>BigInt(32)&BigInt(4294967295);return qt.fromBits(Number(t),Number(n))},i.kb=function(){return new Date(0===this.jp?NaN:Number(this.$p(1e3).Ai))},i.yb=function(){return new ln(0===this.jp?this.np():Number(this.Ai),this.jp)},i.$p=function(t,i){void 0===i&&(i=mn.mb);var e=this.jp;if(e===t)return this;if(0===e)return this;var r=st(e,t);return new n(function(t,n,i){var e=t/n,r=t-e*n;if(r===BigInt(0))return e;if(i===mn.mb)return r<BigInt(0)?e-BigInt(1):e;if(i===mn.pb)return r<BigInt(0)?e:e+BigInt(1);var o=r*BigInt(2);return o<BigInt(0)?-o<n?e:e-BigInt(1):o<n?e:e+BigInt(1)}(this.Ai*BigInt(t/r),BigInt(e/r),i),t)},i.ep=function(t){if(this===t)return rt.Is;if(0===this.jp||0===t.jp)return zt(this,t);if(this.Ip())return t.Ip()?rt.Is:t.fp()?rt.Rs:rt.Ns;if(t.Ip())return this.fp()?rt.Ns:rt.Rs;var n=a.min(this.jp,t.jp),i=this.$p(n,mn.bb).Ai,e=t.$p(n,mn.bb).Ai;return i>e?rt.Rs:i<e?rt.Ns:rt.Is},i.vp=function(){return 0===this.jp?yn(this):new n(-this.Ai,this.jp)},i.nm=function(t){if(0===this.jp||0===t.jp)return _n(this,t);if(this.Ip())return t;if(t.Ip())return this;var i=a.max(this.jp,t.jp),e=this.$p(i,mn.bb),r=t.$p(i,mn.bb);return new n(e.Ai+r.Ai,i)},i.Vp=function(t){if(this.lp()||l(t))return n.cb;if(this._p()||!isFinite(t)){if(this.Ip()||0===t)return n.cb;var i=this.fp()?n.vb:n.fb;return t<0?i.vp():i}return this.Ip()?this:new n(0===t?BigInt(0):this.Ai*BigInt(t),this.jp)},i.Wp=function(t){if(this.lp()||l(t))return n.cb;if(this._p())return isFinite(t)?0===t?1/t<0?this.vp():this:t<0?this.vp():this:n.cb;if(!isFinite(t))return new n(BigInt(0),this.jp);if(this.Ip())return 0===t?n.cb:new n(BigInt(0),this.jp);if(0===t){var i=this.fp()?n.vb:n.fb;return 1/t<0?i.vp():i}return new n(this.Ai/BigInt(t),this.jp)},i.Ab=function(){var t=this.Tb();return[t.low,t.high,this.jp]},gt(n,null,[{key:"bp",get:function(){return n.Sb||(n.Sb=new n(BigInt(0),1e6)),n.Sb}},{key:"cb",get:function(){return n.Eb||(n.Eb=new n(BigInt(0),0)),n.Eb}},{key:"fb",get:function(){return n.Ib||(n.Ib=new n(BigInt(1),0)),n.Ib}},{key:"vb",get:function(){return n.Rb||(n.Rb=new n(BigInt(-1),0)),n.Rb}}]),n}(Mt);function yn(t){return t.lp()?t:t.fp()?pn.fb:pn.vb}function _n(t,n){return t.lp()||n.lp()?pn.cb:t._p()&&n._p()?t.fp()===n.fp()?t:pn.cb:t._p()?t:n}pn.Sb=void 0,pn.Eb=void 0,pn.Ib=void 0,pn.Rb=void 0,function(t){t[t.mb=0]="mb",t[t.pb=1]="pb",t[t.bb=2]="bb"}(mn||(mn={}));var Sn=function(){try{return"function"==typeof BigInt&&"bigint"==typeof BigInt(0)}catch(t){return!1}}()?pn:wn;function In(t){return Sn.yp(qt.fromBits(t[0],t[1],!1),t[2])}function Tn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var En=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];f.apply(this,n)};(En.prototype=c.create(f.prototype)).constructor=En;var Rn,kn=function(t){function n(n,i){var e;return(e=t.call(this)||this).cause=void 0,e.message=n||"Unknown error",e.cause=i,f.captureStackTrace&&f.captureStackTrace(Tn(e),e.constructor),e}return Ut(n,t),gt(n,[{key:"name",get:function(){return"BaseError"}}]),n}(En),Nn=function(){function t(){this.Ds=!1,this.Cs=!1,this.Ps=[],this.Os=[]}var n=t.prototype;return n.Bs=function(){if(!this.Ds&&!this.Cs){this.Ds=!0;for(var t=0,n=this.Ps.slice();t<n.length;t++){(0,n[t])()}this.Ls()}},n.Ls=function(){if(!this.Cs){this.Cs=!0;for(var t=0,n=this.Os.slice();t<n.length;t++){(0,n[t])()}vt(this.Ps),vt(this.Os)}},n.Ms=function(t){this.Cs||this.Ps.push(t)},n.xs=function(t){this.Cs||ct(this.Ps,t)},n.Us=function(t){this.Cs||this.Os.push(t)},n.Fs=function(t){this.Cs||ct(this.Os,t)},t}(),On=function(){function t(){this.Hs=new Nn}var n=t.prototype;return n.Vs=function(){this.Hs.Bs()},n.Ls=function(){this.Hs.Ls()},n.Xs=function(t){var n=this.Hs;if(!n.Ds)if(t.Ds)n.Bs();else if(!n.Cs&&!t.Cs){var i=function(){e(),n.Bs()},e=function e(){t.xs(i),t.Fs(e),n.xs(i),n.Fs(e)};t.Ms(i),t.Us(e),n.Ms(i),n.Us(e)}},n.zs=function(){var n=new t,i=new t,e=n.qs,r=i.qs,o=this.Hs,u=function(){e.Ds&&r.Cs||r.Ds&&e.Cs?o.Bs():e.Cs&&r.Cs&&o.Ls()};e.Ms(u),r.Ms(u),e.Us(u),r.Us(u),n.Xs(o),i.Xs(o);return o.Us(function(){e.xs(u),r.xs(u),e.Fs(u),r.Fs(u)}),[n,i]},gt(t,[{key:"qs",get:function(){return this.Hs}}]),t}(),Pn=function(t){function n(n,i){return t.call(this,n||"Aborted",i)||this}return Ut(n,t),gt(n,[{key:"name",get:function(){return"AbortError"}}]),n}(kn);function An(t){return t instanceof f&&"AbortError"===t.name}function Dn(t,n){return t.then(function(t){return n.Ls(),t},function(t){throw n.Ls(),t})}function xn(){return Date.now()||(new Date).getTime()}j.resolve(),function(t){t.kZ="HELLO",t.yZ="HI_THERE",t.mZ="INITIALIZE",t.pZ="APPEND_INIT",t.bZ="APPEND_DATA",t.AZ="ACK",t.TZ="REMOVE",t.SZ="DESTROY_SESSION"}(Rn||(Rn={}));qt.fromNumber(ot);var Cn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Bn=16383;function Fn(t,n,i){for(var e,r,o,u=[],s=n;s<i;s+=3)u.push((e=t[s],r=t[s+1],o=t[s+2],Cn[e>>2]+Cn[(3&e)<<4|r>>4]+Cn[(15&r)<<2|o>>6]+Cn[63&o]));return u.join("")}var Ln=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"],Un=ArrayBuffer.isView||function(t){return t&&at(Ln,nt.call(t))};function Mn(t){var n=t.reduce(function(t,n){return t+n.byteLength},0);return function(t,n){for(var i=new w(n),e=0,r=0;r<t.length;r++){var o=t[r];i.set(o,e),e+=o.byteLength}return i}(t,n)}function zn(t){return function(t){for(var n=t.length,i=n%3,e=[],r=n-i,o=0;o<r;o+=Bn)e.push(Fn(t,o,a.min(r,o+Bn)));if(1===i){var u=t[n-1];e.push(Cn[u>>2]+Cn[(3&u)<<4]+"==")}else if(2===i){var s=t[n-2],f=t[n-1];e.push(Cn[s>>2]+Cn[(3&s)<<4|f>>4]+Cn[(15&f)<<2]+"=")}return e.join("")}(new w(t))}var Wn=function(){function t(t){void 0===t&&(t=0),this.Bu=t}var n=t.prototype;return n.Ou=function(t){this.Bu+=t},n.Lu=function(t){this.Bu=t},n.Mu=function(){return new t(this.Pu)},gt(t,[{key:"Pu",get:function(){return this.Bu}}]),t}();function qn(t,n){return null!=t&&t.substr(0,n.length)===n}var jn=16384;function Vn(t){var n=t.length;if(n<=jn)return String.fromCharCode.apply(String,t);for(var i=[],e=0;e<n;e+=jn)i.push(String.fromCharCode.apply(String,t.slice(e,e+jn)));return i.join("")}function Hn(t){return function(t){for(var n=[],i=0;i<t.length;i++){var e=t[i];e>65535&&(e-=65536,n.push(e>>>10&1023|55296),e=56320|1023&e),n.push(e)}return Vn(n)}(t)}function Xn(t){if(t>=55296&&t<=57343)throw new f("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function Gn(t,n){return t>>n&63|128}function Yn(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(Xn(t),n.push(t>>12&15|224),n.push(Gn(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(Gn(t,12)),n.push(Gn(t,6))),n.push(63&t|128)):n.push(t)}function Kn(t,n){if(n.Pu>=t.length)throw new f("Invalid byte index");var i=255&t[n.Pu];if(n.Ou(1),128==(192&i))return 63&i;throw new f("Invalid continuation byte")}function $n(t,n){var i=n.Pu;if(i>t.length)throw new f("Invalid byte index");if(i===t.length)return!1;var e=255&t[i];if(n.Ou(1),0==(128&e))return e;if(192==(224&e)){var r=(31&e)<<6|Kn(t,n);if(r>=128)return r;throw new f("Invalid continuation byte")}if(224==(240&e)){var o=(15&e)<<12|Kn(t,n)<<6|Kn(t,n);if(o>=2048)return Xn(o),o;throw new f("Invalid continuation byte")}if(240==(248&e)){var u=(7&e)<<18|Kn(t,n)<<12|Kn(t,n)<<6|Kn(t,n);if(u>=65536&&u<=1114111)return u}throw new f("Invalid UTF-8 detected")}var Jn=65279;function Zn(t,n,i){void 0===i&&(i=!1);var e=t.getUint16(n.Pu,i);return n.Ou(2),e}function Qn(t,n,i,e){void 0===e&&(e=!1),t.setUint16(n.Pu,i,e),n.Ou(2)}function ti(t,n){return void 0===n&&(n=!1),function(t,n,i,e){for(var r=[];n.Pu+2<=t.byteLength;){var o=Zn(t,n,i);if(e&&!o)break;r.push(o)}return Vn(r)}(ri(t),new fi,n,!1)}function ni(t,n){void 0===n&&(n=!1);var i=new w(2*t.length);return function(t,n,i,e){void 0===e&&(e=!1);for(var r=i.length,o=0;o<r;o+=1)Qn(t,n,i.charCodeAt(o),e)}(ri(i),new fi,t,n),i}function ii(t){return Hn(function(t,n){var i,e=[],r=new fi;if(!n){if(!1===(i=$n(t,r)))return e;i===Jn||e.push(i)}for(;!1!==(i=$n(t,r));)e.push(i);return e}(oi(t)))}function ei(t){return new w(function(t){for(var n=[],i=0;i<t.length;i++)Yn(t[i],n);return n}(function(t){for(var n=[],i=0,e=t.length;i<e;){var r=t.charCodeAt(i++);if(r>=55296&&r<=56319&&i<e){var o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&r)<<10)+(1023&o)+65536):(n.push(r),i--)}else n.push(r)}return n}(t)))}function ri(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function oi(t){return new w(t.buffer,t.byteOffset,t.byteLength)}function ui(t){return t instanceof ArrayBuffer?new w(t):oi(t)}function si(t){if(t.slice)return t.slice(0);var n=new w(t.byteLength);return n.set(t,0),n}for(var fi=function(){function t(t){void 0===t&&(t=0),this.Bu=t}var n=t.prototype;return n.Ou=function(t){this.Bu+=t},n.Lu=function(t){this.Bu=t},n.Mu=function(){return new t(this.Pu)},n.Fu=function(){return new Wn(this.Pu<<3)},gt(t,[{key:"Pu",get:function(){return this.Bu}}]),t}(),hi=new Array(256),ci=0;ci<256;ci+=1)hi[ci]=(ci<16?"0":"")+ci.toString(16);function ai(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*a.random()|0;return("x"===t?n:3&n|8).toString(16)})}function vi(t){return t&&"function"!=typeof t?t.slice():t}function di(t,n,i){if(i)if("function"==typeof i)i.call(t,n);else for(var e=0;e<i.length;e++){i[e].call(t,n)}}var li=function(){function t(t){var n=this;this.Ws=mt(),this.Gs=void 0,this.Ys=void 0,this.js=function(t){n.Qs(t)},this.Ys=t||this}var n=t.prototype;return n.Ks=function(t,n){if("function"==typeof n)if("string"==typeof t)this.Zs(t,n);else for(var i=0;i<t.length;i++){var e=t[i];this.Zs(e,n)}},n.Zs=function(t,n){var i=this.Ws[t];i?"function"==typeof i?this.Ws[t]=[i,n]:i.push(n):this.Ws[t]=n},n.Js=function(t){if("function"==typeof t){var n=this.Gs;n?"function"==typeof n?this.Gs=[n,t]:n.push(t):this.Gs=t}},n.$s=function(){this.Ws=mt(),this.Gs=void 0},n.Qs=function(t){var n=vi(this.Ws[t.type]),i=vi(this.Gs);di(this.Ys,t,n),di(this.Ys,t,i)},n.tu=function(t,n){if("function"==typeof n)if("string"==typeof t)this.nu(t,n);else for(var i=0;i<t.length;i++){var e=t[i];this.nu(e,n)}},n.nu=function(t,n){var i=this.Ws[t];i&&("function"==typeof i?i===n&&(this.Ws[t]=void 0):ct(i,n))},n.uu=function(t){if("string"==typeof t)this.Ws[t]=void 0;else for(var n=0;n<t.length;n++){var i=t[n];this.Ws[i]=void 0}},n.ou=function(t){var n=this.Gs;n&&("function"==typeof n?n===t&&(this.Gs=void 0):ct(n,t))},n.au=function(t,n){var i=this;return new j(function(e,r){if(n&&n.Ds)return r(new Pn);var o=function(t){s(),e(t)},u=function(){s(),r(new Pn)},s=function(){i.tu(t,o),n&&n.xs(u)};i.Ks(t,o),n&&n.Ms(u)})},t}(),wi=function(t,n){void 0===n&&(n=new Date),this.type=t,this.date=n},bi=function(t){function n(n){var i;return(i=t.call(this,"append")||this).Vi=void 0,i.Vi=n,i}return Ut(n,t),n}(wi),gi=function(t){function n(n){var i;return(i=t.call(this)||this).Vw=void 0,i.Eft=0,i.Wi=new w(0),i.do=!1,i.D=!1,i.C=void 0,i.Vw=n,i}Ut(n,t);var i=n.prototype;return i.fz=function(t,n){this.B&&0===this.Wi.length&&(this.Wi=this.C.slice()),this.Eft+=n.np(),this.Wi=Mn([this.Wi,t]),this.Qs(new bi(t))},i.Wa=function(){this.Ja||(this.Qs(new wi("close")),this.do=!0)},gt(n,[{key:"Sk",get:function(){return this.Eft}},{key:"Vi",get:function(){return this.Wi}},{key:"Ja",get:function(){return this.do}},{key:"B",get:function(){return this.D},set:function(t){this.D=t}},{key:"L",get:function(){return this.C},set:function(t){this.C=t}}]),n}(li),mi=function(){function t(t){this.W=!1,this.H=void 0,this.X=void 0,this.DEFAULT_SEGMENT_DURATION_IN_SECONDS=1.1,this.Fg="sync-seg-"+ai(),this.tt=this.DEFAULT_SEGMENT_DURATION_IN_SECONDS,this.it=t;for(var n=0,i=this.it;n<i.length;n++){var e=i[n];if(e.match(/video/))this.H=new gi(this.et(e));else{if(!e.match(/audio/))throw new f("Unsupported MIME type.");this.X=new gi(this.et(e))}}}var n=t.prototype;return n.et=function(t){for(var n=0,i=this.it;n<i.length;n++){if(i[n]===t)return this.tt}},n.Wa=function(){this.H&&this.H.Wa(),this.X&&this.X.Wa()},gt(t,[{key:"rt",get:function(){return this.W},set:function(t){this.W=t}},{key:"st",get:function(){var t,n;return Boolean((null==(t=this.H)?void 0:t.B)||(null==(n=this.X)?void 0:n.B))}}]),t}(),pi=function(t){function n(n){var i;return(i=t.call(this,"remove")||this).Im=void 0,i.Im=n,i}return Ut(n,t),n}(wi),yi=function(t){function n(n){var i;return(i=t.call(this)||this).ht=[],i.pt=void 0,i.tn=[],i.nn=pt(),i.en=pt(),i.rn=0,i.sn=0,i.it=n,i.pt=new mi(i.it),i.pt.X&&(i.pt.X.B=!0),i.pt.H&&(i.pt.H.B=!0),i.tn.push(new mi(i.it)),i}Ut(n,t);var i=n.prototype;return i.an=function(){var t=[].concat(this.ht,[this.pt],this.tn);return this.ht.length=0,t},i.fz=function(t){this.ln(t),this.bn(t),this.gn(t)},i._z=function(t){this.ln(t)},i.Qa=function(t){this.ln(t),this.gn(t)},i.Ls=function(){this.pt.Wa(),this.tn.forEach(function(t){return t.Wa()}),this.ht.length=0},i.bn=function(t){var n=In(t.startPts),i=In(t.totalDuration);this.en.set(t.mimeType,n.nm(i))},i.mn=function(){this.pt.Wa(),this.ht.push(this.pt);var t=this.tn.shift(),n=this.kn();t?(this.pt=t,this.tn.push(n)):this.pt=n},i.kn=function(){var t=new mi(this.it);return t.X&&(t.X.L=this.pt.X.L),t.H&&(t.H.L=this.pt.H.L),t},i.ti=function(t){var i=!this.pt.X||0===this.pt.X.Sk,e=!this.pt.H||0===this.pt.H.Sk,r=this.pt.X&&this.pt.X.B,o=this.pt.H&&this.pt.H.B,u=e&&(i&&!this.pt.rt||r),s=i&&(e&&!this.pt.rt||o);("audio"===n.ii(t)&&!s||"video"===n.ii(t)&&!u)&&(this.mn(),this.mn())},i.ln=function(t){var n=t.mimeType,i=t.kind,e=this.nn.get(n);void 0===e&&(i!==Rn.pZ&&i!==Rn.bZ||(e=[],this.nn.set(n,e))),void 0!==e&&e.push(t)},i.gn=function(t){for(var n=this.ui(t),i=0;i<n.length;i++){var e=n[i];switch(e.kind){case Rn.pZ:this.si(e),this.rn=0,this.sn=0;break;case Rn.TZ:this.fi(e);break;case Rn.bZ:this.hi(e)}}},i.si=function(t){var n=t.mimeType,i=t.segment;this.ti(n),n.match(/video/)?(this.pt.H.L=i,this.tn.forEach(function(t){t.H.L=i})):(this.pt.X.L=i,this.tn.forEach(function(t){t.X.L=i})),this.pt.X&&(this.pt.X.B=!0),this.pt.H&&(this.pt.H.B=!0)},i.hi=function(t){var n=t.mimeType.match(/audio/),i=In(t.totalDuration);if(n?this.pt.X.fz(t.segment,i):this.pt.H.fz(t.segment,i),n||1===this.it.length){this.rn+=i.np();var e=this.pt.et(t.mimeType);this.rn>=this.sn+e&&(this.sn+=e,this.mn())}},i.fi=function(t){this.en.set(t.mimeType,void 0),this.ti(t.mimeType),this.pt.X&&(this.pt.X.B=!0),this.pt.H&&(this.pt.H.B=!0),this.ht.length=0,this.Qs(new pi(In(t.endTime)))},i.ui=function(t){var n=this;if(t.kind===Rn.TZ)return this.vi(t);var i=[];return this.nn.forEach(function(t){if(t&&t.length>0){var e=ht(t,function(t){return t.kind===Rn.TZ});-1===e&&(e=t.length);for(var r=t.slice(0,e),o=0;o<r.length;o++){var u=r[o];if(!at(i,u)){var s=n.vi(u);if(s.length>0)i.push.apply(i,s);else if(u.kind===Rn.bZ)break}}}}),i},i.vi=function(t){for(var i,e=this.nn.get(t.mimeType),r=0,o=this.it;r<o.length;r++){var u=o[r];if(u!==t.mimeType){i=u;break}}if(!i)return e.splice(0,e.indexOf(t)+1);if(t.kind===Rn.pZ)return[];var s=this.en.get(i);if(void 0===s)return[];if(t.kind===Rn.TZ){var f=this.li(i);if(f.length>0){var h=e.splice(0,e.indexOf(t));return e.splice(0,1),[].concat(h,f,[t])}return[]}if(n.bi(t,s)){var c=e.splice(0,e.indexOf(t));e.splice(0,1);var a=this.mi(t,c,i);return[].concat(c,a,[t])}return[]},i.mi=function(t,i,e){var r=this.nn.get(e);if(!r)return[];var o=In(t.startPts),u=In(t.totalDuration),s=o.nm(u),f=ht(r,function(t){return t.kind===Rn.TZ}),h=f-1;-1===f&&(h=r.length-1);for(var c=h+1,a=0;a<=h&&c===h+1;a++){var v=r[a];v.kind!==Rn.bZ||n.bi(v,s)||(c=a)}var d=-1;return-1!==ht(i,function(t){return t.kind===Rn.pZ})&&(d=ht(r,function(t){return t.kind===Rn.pZ})),d>c&&(c=d+1),c>0?(r[c-1].kind===Rn.pZ&&(c-=1),r.splice(0,c)):[]},i.li=function(t){var n=this.nn.get(t);if(n){var i=ht(n,function(t){return t.kind===Rn.TZ});if(i>=0)return n.splice(0,i+1)}return[]},n.bi=function(t,n){var i=n,e=In(t.startPts);return i.rp(e)},i.pi=function(){var t="[MEDIABUFFER] endPTS: ";this.en.forEach(function(i,e){t=t.concat(n.ii(e)+" = "+(null==i?void 0:i.np())+" ")}),Z.wr(t)},i.yi=function(){var t=this;Z.wr("[MEDIABUFFER] unsyncedMessageMap:"),this.nn.forEach(function(i,e){void 0!==i&&t.ki(n.ii(e),i)})},i.ki=function(t,i){var e=t+": [";null==i||i.forEach(function(t){e=e.concat(" "+t.kind+"("+n.ii(t.mimeType)+")")}),e=e.concat(" ]"),Z.wr(e)},n.ii=function(t){return t.match(/audio/)?"audio":"video"},n}(li);var _i=function(){function t(t,n,i){var e=this;this.te=[],this.ie=pt(),this.ee=0,this.frt=void 0,this.se=void 0,this.he=function(t){if(t.Im.rp(Sn.hb(ot)))for(;e.te.length>0;)e.ce()},this.ae=n,this.ve=i,this.se=[new Et,new Rt(8),new kt(1),new Ot,new Nt(0)],this.frt=t,this.frt.Ks("remove",this.he)}var n=t.prototype;return n.Int=function(t,n){var i=this.ie.get(t);if(i)if(n===dt.dl){var e=i.H;if(e)return e}else{var r=i.X;if(r)return r}throw new f(t+" segment not available!")},n.Ls=function(){this.te.length=0,this.ae.VS=0,this.ie.clear(),this.ee=0},n.GT=function(){return this.de(),new Bt([].concat(this.se,[this.ae,this.ve],this.te))},n.de=function(){for(var t=this.frt.an(),n=0;n<t.length;n++){var i=t[n];if(!this.ie.has(i.Fg)){i.rt=!0;var e=i.tt;i.st&&this.te.push(new Dt),this.ie.set(i.Fg,i),this.te.push(new Tt(e,i.Fg)),this.ee+=e}}this.be()},n.be=function(){for(;this.ee>300;)this.ce()},n.ce=function(){var t=this.te.shift();void 0!==t&&(t.fs===_t.Zd?(this.tr(t),this.ee-=t.k,this.ae.VS++):function(t){return t.fs===_t.p}(t)&&this.ve.VS++)},n.tr=function(t){this.ie.delete(t.O)},t}(),Si=function(){function t(t){this.$Zt=void 0,this.nr=void 0,this.er=void 0,this.it=t,this.$Zt=new Ft,this.nr=new yi(this.it);for(var n=0,i=this.it;n<i.length;n++){var e=i[n];if(this.er=new _i(this.nr,new At(0),new xt(0)),e.match(/video/)){var r=new Pt("video/index.m3u8");this.$Zt.A(r)}else{if(!e.match(/audio/))throw new f("Unsupported MIME type.");var o=new Ct("audio/index.m3u8");this.$Zt.A(o)}}}var n=t.prototype;return n.ur=function(t){if("master.m3u8"===t){if(this.$Zt)return this.$Zt.GT;throw new f("Master playlist not ready yet")}if(this.er)return this.er.GT();throw new f("Media playlist not ready yet")},n.Int=function(n){var i=n.split("/")[1];return this.er.Int(i,t.sr(n))},n._z=function(t){this.nr._z(t)},n.fz=function(t){this.nr.fz(t)},n.Ret=function(t){this.nr.Qa(t)},n.Ls=function(){this.nr.Ls(),this.$Zt.Ls(),this.er&&this.er.Ls()},t.sr=function(t){return t.match(/video/)?dt.dl:dt.vl},t}();var Ii,Ti=function(){function n(t,n){var i=this;this.nit=void 0,this.DIt=function(t){var n,e,r;return Q.async(function(o){for(;;)switch(o.prev=o.next){case 0:n=t.data,o.t0=n.kind,o.next=o.t0===Rn.mZ?4:o.t0===Rn.pZ?7:o.t0===Rn.bZ?9:o.t0===Rn.TZ?11:13;break;case 4:return e=n.mediaBufferConfigs,i.nit=new Si(e),o.abrupt("break",13);case 7:return i.nit._z(n),o.abrupt("break",13);case 9:return i.nit.fz(n),o.abrupt("break",13);case 11:return i.nit.Ret(n),o.abrupt("break",13);case 13:r={kind:Rn.AZ},i.hr.postMessage(r);case 15:case"end":return o.stop()}},null,null,null,j)},this.hr=t,this.cr=n,this.hr.onmessage=this.DIt}var i=n.prototype;return i.ar=function(t){return this.nit.ur(t)},i.vr=function(n){if(this.nit){if(n.match(/m3u8/)){var i=this.ar(n);return new Response(i.P(),{headers:{"Content-Type":"application/x-mpegurl; charset=utf-8"}})}var e={"Content-Type":n.match(/video/)?"video/mp4":"audio/mp4"},r=function(n){var i,e=function(t){i.enqueue(t.Vi)},r=function t(){i.close(),n.tu("append",e),n.tu("close",t)};return new t.ReadableStream({start:function(t){(i=t).enqueue(n.Vi),n.Ja?i.close():(n.Ks("append",e),n.Ks("close",r))},cancel:function(){n.tu("append",e),n.tu("close",r),n.Wa()}})}(this.Tnt(n));return new Response(r,{headers:e})}throw new f("Stream not active.")},i.Tnt=function(t){return this.nit.Int(t)},i.close=function(){this.hr.close(),this.nit&&this.nit.Ls()},n}(),Ei=function(){function t(){var t=this;this.UG=pt(),this.eIt=void 0,this.DIt=function(n){var i=n.data;switch(i.kind){case Rn.kZ:t.lr().catch(lt);var e=i.port,r=ai(),o=new Ti(e,n.source.id);t.UG.set(r,o);e.addEventListener("message",function n(i){i.data.kind===Rn.SZ&&(t.br(r),e.removeEventListener("message",n))});var u={kind:Rn.yZ,sessionId:r};e.postMessage(u)}},this.mr=function(n){if(qn(n.request.url,wt)){var i=new URL(n.request.url).pathname.split("/"),e=i[1],r=i.slice(2).join("/");if(void 0!==e&&void 0!==r){var o=t.UG.get(e);if(o)try{var u=o.vr(r);n.respondWith(u)}catch(t){n.respondWith(j.resolve(new Response(void 0,{headers:{message:"Segment not found"},status:404,statusText:"Not Found"})))}else n.respondWith(j.resolve(new Response(void 0,{headers:{message:"Given session ["+e+"] not found"},status:404,statusText:"Not Found"})))}else n.respondWith(j.resolve(new Response(void 0,{headers:{message:"No session ["+e+"] or resource ["+r+"] provided"},status:404,statusText:"Not Found"})))}}}var n=t.prototype;return n.Ey=function(t){this.eIt=t,t.addEventListener("message",this.DIt),t.addEventListener("fetch",this.mr)},n.br=function(t){var n=this.UG.get(t);n&&n.close(),this.UG.delete(t)},n.lr=function(){var t,n,i=this;return Q.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q.awrap(this.eIt.clients.matchAll());case 2:t=e.sent,n=t.map(function(t){return t.id}),this.UG.forEach(function(t,e){at(n,t.cr)||i.br(e)});case 5:case"end":return e.stop()}},null,this,null,j)},t}();Ei.kr=new Ei,function(t){t.l="web",t.g="android",t.I="android-tv",t.R="ios",t.N="tvos",t.M="chromecast"}(Ii||(Ii={}));var Ri=e?e.userAgent:"",ki=Ri.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Ni=Ri.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Oi=Ri.match(/Android ([0-9\.]+)/i),Pi=Ri.match(/Windows NT ([0-9\.]+)/i),Ai=Ri.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),Di=Ri.match(/Firefox\/([0-9\.]+)/i),xi=Ri.match(/OPR\/(\d+\.\d+)/i),Ci=Ri.match(/Tizen ([0-9\.]+)/i),Bi=Ri.match(/(iPhone OS|iPad OS|iPod OS|Mac OS X) (\d+)_(\d+)_?(\d+)?/),Fi=function(){function n(){this.U=Boolean("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch||e&&e.msMaxTouchPoints),this.F=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(Ri)||/(macintosh|mac(?=_powerpc)\s)/i.test(Ri),this.V=/Windows NT/i.test(Ri),this.q=Pi?d(Pi[1]):0,this.G=/Android/i.test(Ri),this.Y=Oi?d(Oi[1]):0,this.j=/windows phone (8|8\.1)/i.test(Ri),this.K=/iPhone/i.test(Ri),this.Z=/iPad/i.test(Ri),this.J=this.F&&this.U&&!this.Z,this.nt=/iPod/i.test(Ri),this.ut=/Mobile Safari/i.test(Ri),this.ot=/EOSSTB/i.test(Ri),this.ct=(this.K||this.Z||this.J||this.nt)&&!this.j,this.ft=Bi?d(Bi[2]):0,this.vt=this.j||this.ct||this.G||this.ut,this.dt=/CriOS/i.test(Ri),this._t=Boolean(t.chrome&&/google/i.test(e.vendor))||this.dt,this.wt=this._t&&/Edg\//i.test(e.userAgent),this.kt=Ni?v(Ni[1],10):0,this.yt=Boolean(t.chrome||/Chrome/i.test(Ri)||/CriOS/i.test(Ri)),this.bt=ki?v(ki[1],10):0,this.At=/SMART-TV.*Tizen/i.test(Ri),this.Tt=Ci?d(Ci[1]):0,this.St=/webos|web0s/i.test(Ri),this.Et=/Edge\/\d+/i.test(Ri),this.It=/Trident/i.test(Ri),this.Rt=this.It&&!t.ActiveXObject&&"ActiveXObject"in t,this.Nt=/Vivaldi/i.test(Ri),this.Dt=/Firefox/i.test(Ri)&&!/Seamonkey/i.test(Ri),this.Ct=Di?d(Di[1]):0,this.Pt=/Safari/i.test(Ri)&&!/Chrome/i.test(Ri)&&!this.j&&!this.At,this.Ot=Ai?d(Ai[2]):0,this.Bt=Boolean(xi),this.Lt=xi?d(xi[1]):0,this.Mt=/CrKey/.test(Ri),this.xt=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(Ri),this.Ut="web"===Ii.I,this.Ft="web"===Ii.g,this.Ht=this.Ft||this.Ut,this.Vt="web"===Ii.R,this.Xt="web"===Ii.N,this.zt="web"===Ii.M}return gt(n,[{key:"qt",get:function(){return this.U}},{key:"Wt",get:function(){return this.F}},{key:"Gt",get:function(){return this.V}},{key:"Yt",get:function(){return this.q}},{key:"jt",get:function(){return this.G}},{key:"Qt",get:function(){return this.Y}},{key:"Kt",get:function(){return this.j}},{key:"Zt",get:function(){return this.K}},{key:"Jt",get:function(){return this.Z}},{key:"$t",get:function(){return this.J}},{key:"in",get:function(){return this.nt}},{key:"un",get:function(){return this.ct}},{key:"hn",get:function(){return this.ft}},{key:"cn",get:function(){return this.ot}},{key:"fn",get:function(){return this.ut}},{key:"vn",get:function(){return this.vt}},{key:"dn",get:function(){return this.dt}},{key:"_n",get:function(){return this._t}},{key:"wn",get:function(){return this.bt}},{key:"yn",get:function(){return this.wt}},{key:"pn",get:function(){return this.kt}},{key:"An",get:function(){return this.At}},{key:"Tn",get:function(){return this.Tt}},{key:"Sn",get:function(){return this.St}},{key:"En",get:function(){return this.Et}},{key:"In",get:function(){return this.It}},{key:"Rn",get:function(){return this.Rt}},{key:"Nn",get:function(){return this.Nt}},{key:"Dn",get:function(){return this.Dt}},{key:"Cn",get:function(){return this.Ct}},{key:"Pn",get:function(){return this.Pt}},{key:"On",get:function(){return this.Ot}},{key:"Bn",get:function(){return this.Bt}},{key:"Ln",get:function(){return this.Lt}},{key:"Mn",get:function(){return this.Mt}},{key:"xn",get:function(){return this.xt}},{key:"Un",get:function(){return!(!this.Sn&&!this.An)&&this.wn<=56}},{key:"Fn",get:function(){return this.Ut}},{key:"Hn",get:function(){return this.Ft}},{key:"Vn",get:function(){return this.Ht}},{key:"Xn",get:function(){return this.Vt}},{key:"zn",get:function(){return this.Xt}},{key:"qn",get:function(){return this.zt}},{key:"Wn",get:function(){return this.yt}}]),n}();Fi.Gn=new Fi;var Li=Fi.Gn,Ui=!(Li.In&&!Li.Rn),Mi=t.console;function zi(t){if(et(t))try{return JSON.stringify(t)}catch(t){}return t}function Wi(t){return t.map(zi).join(" ")}function qi(t){var n=Mi&&Mi[t];return n?n.bind&&Ui?n.bind(Mi):function(){for(var n=arguments.length,i=new Array(n),e=0;e<n;e++)i[e]=arguments[e];Mi[t](Wi(i))}:void 0}var ji,Vi,Hi=qi("log")||lt,Xi=qi("warn")||Hi.bind(void 0,"WARNING:"),Gi=qi("error")||Hi.bind(void 0,"ERROR:"),Yi=(ji=Mi&&Mi.assert)?ji.bind&&Ui?ji.bind(Mi):function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),e=1;e<n;e++)i[e-1]=arguments[e];Mi.assert(t,Wi(i))}:function(t){if(!t){for(var n=arguments.length,i=new Array(n>1?n-1:0),e=1;e<n;e++)i[e-1]=arguments[e];Gi.apply(void 0,["Assertion failed:"].concat(i))}};!function(t){t[t.Zn=1]="Zn",t[t.$n=2]="$n",t[t.Jn=3]="Jn",t[t.ni=4]="ni",t[t.ei=9]="ei"}(Vi||(Vi={}));var Ki=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return Ut(n,t),n}(kn),$i=function(){function t(){}return t.prototype.ri=function(t){var n,i=new DOMParser;try{n=i.parseFromString(t,"text/xml")}catch(t){throw new Ki(t)}if(!n||n.getElementsByTagName("parsererror").length>0)throw new Ki;return new ee(n)},t}(),Ji=function(){function t(t){this.oi=void 0,this.oi=t}var n=t.prototype;return n.ai=function(t){return this.oi.isEqualNode(t.oi)},n.ci=function(n){return new t(this.oi.cloneNode(n))},gt(t,[{key:"Kn",get:function(){return Vi.$n}},{key:"di",get:function(){var t;return null!=(t=this.oi.localName)?t:ue(this.oi.nodeName)}},{key:"_i",get:function(){return this.oi.nodeName}},{key:"gi",get:function(){var t;return null!=(t=this.oi.namespaceURI)?t:void 0}},{key:"wi",get:function(){var t;return null!=(t=this.oi.prefix)?t:void 0}},{key:"Ai",get:function(){return this.oi.nodeValue}}]),t}(),Zi=function(){function t(t){this.Ti=void 0,this.Si=void 0,this.Ti=t}var n=t.prototype;return n.Ei=function(t){return this.Ii.filter(function(n){return re(n)&&n.Ri===t})},n.Ni=function(t,n){return this.Ii.filter(function(i){return re(i)&&i.di===n&&i.gi===t})},n.Di=function(t){this.Ti.appendChild(t.Ci),this.Si&&this.Si.push(t)},n.ai=function(t){return this.Ti.isEqualNode(t.Ci)},gt(t,[{key:"Ii",get:function(){return void 0===this.Si&&(this.Si=function(t){for(var n=[],i=0;i<t.length;i++){var e=oe(t.item(i));e&&n.push(e)}return n}(this.Ti.childNodes)),this.Si}},{key:"Pi",get:function(){return this.Ii.filter(re)}},{key:"Ci",get:function(){return this.Ti}}]),t}(),Qi=function(t){function n(n){return t.call(this,n)||this}Ut(n,t);var i=n.prototype;return i.Oi=function(t){if(this.Ti.hasAttribute(t))return this.Ti.getAttribute(t)},i.Bi=function(t,n){if(this.Ti.hasAttributeNS(t,n))return this.Ti.getAttributeNS(t,n)},i.Li=function(t){this.Ti.removeAttribute(t)},i.Mi=function(t,n){this.Ti.removeAttributeNS(t,n)},i.xi=function(t,n){this.Ti.setAttribute(t,n)},i.Ui=function(t,n,i){this.Ti.setAttributeNS(t,n,i)},i.ci=function(t){return new n(this.Ti.cloneNode(t))},gt(n,[{key:"Kn",get:function(){return Vi.Zn}},{key:"di",get:function(){var t;return null!=(t=this.Ti.localName)?t:ue(this.Ti.nodeName)}},{key:"gi",get:function(){var t;return null!=(t=this.Ti.namespaceURI)?t:void 0}},{key:"wi",get:function(){var t;return null!=(t=this.Ti.prefix)?t:void 0}},{key:"Ri",get:function(){return this.Ti.nodeName}},{key:"Fi",get:function(){return function(t){for(var n=[],i=0;i<t.length;i++)n.push(new Ji(t.item(i)));return n}(this.Ti.attributes)}},{key:"Hi",get:function(){return this.Ti.textContent}}]),n}(Zi),te=function(){function t(t){this.Ti=void 0,this.Ti=t}return t.prototype.ai=function(t){return this.Vi===t.Vi},gt(t,[{key:"Vi",get:function(){return this.Ti.nodeValue}},{key:"Ci",get:function(){return this.Ti}}]),t}(),ne=function(t){function n(n){return t.call(this,n)||this}return Ut(n,t),n.prototype.ci=function(t){return new n(this.Ti.cloneNode(t))},gt(n,[{key:"Kn",get:function(){return Vi.Jn}}]),n}(te),ie=function(t){function n(n){return t.call(this,n)||this}return Ut(n,t),n.prototype.ci=function(t){return new n(this.Ti.cloneNode(t))},gt(n,[{key:"Kn",get:function(){return Vi.ni}}]),n}(te),ee=function(t){function n(n){return t.call(this,n)||this}return Ut(n,t),n.prototype.ci=function(t){return new n(this.Ti.cloneNode(t))},gt(n,[{key:"Kn",get:function(){return Vi.ei}},{key:"Xi",get:function(){return new Qi(this.Ti.documentElement)}}]),n}(Zi);function re(t){return function(t){return t.Kn===Vi.Zn}(t)}function oe(t){switch(t.nodeType){case Vi.Zn:return new Qi(t);case Vi.Jn:return new ne(t);case Vi.ni:return new ie(t)}}function ue(t){var n=t.indexOf(":");return n<0?t:t.substr(n+1)}function se(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),c.defineProperty(t,e.key,e)}}function fe(t,n){var i=function(t,n){var i=t.length;if(i<=1)return t;for(var e=new Array(i),r=1;r<i;r*=2){he(t,n,r,e);var o=t;t=e,e=o}return t}(t,n);return i!==t&&he(i,null,t.length,t),t}function he(t,n,i,e){var r,o,u,s,f,h=t.length,c=0,a=2*i;for(r=0;r<h;r+=a)for(u=(o=r+i)+i,o>h&&(o=h),u>h&&(u=h),s=r,f=o;;)if(s<o&&f<u)n(t[s],t[f])<=0?e[c++]=t[s++]:e[c++]=t[f++];else if(s<o)e[c++]=t[s++];else{if(!(f<u))break;e[c++]=t[f++]}}var ce=/[a-zA-Z]/,ae=/[0-9]/,ve=/[0-9a-fA-F]/,de=/^0x/i,le=/^[0-9]+$/,we=/^[0-9a-fA-F]+$/,be=/^[0-7]+$/,ge=c.prototype.toString,me=Array.isArray||function(t){return"[object Array]"===ge.call(t)},pe="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function ye(t){return me(t)?t:Array.from(t)}function _e(t){return t>=65&&t<=90}function Se(t){return _e(t)||function(t){return t>=97&&t<=122}(t)}function Ie(t){return t>=48&&t<=57}function Te(t){return Ie(t)||Se(t)}function Ee(t){return Ie(t)||t>=65&&t<=70||t>=97&&t<=102}function Re(t){return _e(t)?t+32:t}function ke(t){return Ie(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function Ne(t,n){return void 0===n&&(n=!1),0<=t&&t<=9?t+48:10<=t&&t<=15?t+(n?87:55):-1}var Oe=a.min,Pe=String.fromCharCode,Ae=16384;function De(t){for(var n=t.length,i=[],e=0;e<n;e+=Ae){var r=Oe(e+Ae,n);i.push(Pe.apply(null,t.slice(e,r)))}return i.join("")}var xe=/[^\0-\x7E]/,Ce=/[\x2E\u3002\uFF0E\uFF61]/g,Be={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Fe=a.floor,Le=String.fromCharCode;function Ue(t){throw new RangeError(Be[t])}function Me(t){for(var n=[],i=0,e=t.length;i<e;){var r=t.charCodeAt(i++);if(r>=55296&&r<=56319&&i<e){var o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&r)<<10)+(1023&o)+65536):(n.push(r),i--)}else n.push(r)}return n}var ze,We,qe,je=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},Ve=function(t,n,i){var e=0;for(t=i?Fe(t/700):t>>1,t+=Fe(t/n);t>455;e+=36)t=Fe(t/35);return Fe(e+36*t/(t+38))},He=function(t){return function(t,n){var i=t.split("@"),e="";i.length>1&&(e=i[0]+"@",t=i[1]);var r=function(t,n){for(var i=[],e=t.length;e--;)i[e]=n(t[e]);return i}((t=t.replace(Ce,".")).split("."),n).join(".");return e+r}(t,function(t){return xe.test(t)?"xn--"+function(t){for(var n=[],i=(t=Me(t)).length,e=128,r=0,o=72,u=0,s=t;u<s.length;u++){var f=s[u];f<128&&n.push(Le(f))}var h=n.length,c=h;for(h&&n.push("-");c<i;){for(var a=2147483647,v=0,d=t;v<d.length;v++){var l=d[v];l>=e&&l<a&&(a=l)}var w=c+1;a-e>Fe((2147483647-r)/w)&&Ue("overflow"),r+=(a-e)*w,e=a;for(var b=0,g=t;b<g.length;b++){var m=g[b];if(m<e&&++r>2147483647&&Ue("overflow"),m==e){for(var p=r,y=36;;y+=36){var _=y<=o?1:y>=o+26?26:y-o;if(p<_)break;var S=p-_,I=36-_;n.push(Le(je(_+S%I,0))),p=Fe(S/I)}n.push(Le(je(p,0))),o=Ve(r,w,c==h),r=0,++c}}++r,++e}return n.join("")}(t):t})};function Xe(t){for(var n=[],i=0;i<t.length;i++){var e=t[i];e>65535&&(e-=65536,n.push(e>>>10&1023|55296),e=56320|1023&e),n.push(e)}return De(n)}function Ge(t){if(t>=55296&&t<=57343)throw new f("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function Ye(t,n){return t>>n&63|128}function Ke(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(Ge(t),n.push(t>>12&15|224),n.push(Ye(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(Ye(t,12)),n.push(Ye(t,6))),n.push(63&t|128)):n.push(t)}function $e(t){for(var n=[],i=0;i<t.length;i++){Ke(t[i],n)}return n}function Je(){if(qe>=We)throw new f("Invalid byte index");var t=255&ze[qe];if(qe++,128==(192&t))return 63&t;throw new f("Invalid continuation byte")}function Ze(){var t,n;if(qe>We)throw new f("Invalid byte index");if(qe===We)return!1;if(t=255&ze[qe],qe++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|Je())>=128)return n;throw new f("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|Je()<<6|Je())>=2048)return Ge(n),n;throw new f("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|Je()<<12|Je()<<6|Je())>=65536&&n<=1114111)return n;throw new f("Invalid UTF-8 detected")}function Qe(t){return[37,Ne(t>>4),Ne(15&t)]}function tr(t){return function(t){return t>=0&&t<=31}(t)||t>126}function nr(t){return tr(t)||32===t||34===t||60===t||62===t||96===t}function ir(t){return nr(t)||35===t||63===t||123===t||125===t}function er(t){return ir(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function rr(t){return t<33||t>126||34===t||35===t||60===t||62===t}function or(t){return rr(t)||39===t}function ur(t,n){if(!n(t))return[t];for(var i=$e([t]),e=[],r=0;r<i.length;r++){var o=i[r];e.push.apply(e,Qe(o))}return e}function sr(t,n){for(var i=[],e=0,r=Me(t);e<r.length;e++){var o=r[e];i.push.apply(i,ur(o,n))}return Xe(i)}function fr(t){return function(t){for(var n=[],i=t.length,e=0;e<i;e++){var r=t[e];if(37===r&&e+2<i&&Ee(t[e+1])&&Ee(t[e+2])){var o=ke(t[e+1])<<4|ke(t[e+2]);n.push(o),e+=2}else n.push(r)}return n}($e(t))}function hr(t){return Xe(function(t){ze=t.slice(),We=ze.length,qe=0;for(var n,i=[];!1!==(n=Ze());)i.push(n);return i}(fr(Me(t))))}function cr(t){var n,i,e,r,o=t.length,u=[0,0,0,0,0,0,0,0],s=0,f=null,c=0;if(c<o&&":"===t[c]){if(!(c+1<o&&":"===t[c+1]))throw new h;c+=2,f=s+=1}for(;c<o;){if(8===s)throw new h("Too many groups");if(":"!==t[c]){for(var a=0,d=0;d<4&&c<o&&ve.test(t[c]);)a=a<<4|v(t[c],16),c+=1,d+=1;if("."===t[c]){if(0===d)throw new h;if(c-=d,s>6)throw new h;for(var l=0;c<o;){var w=null;if(l>0){if(!("."===t[c]&&l<4))throw new h;c+=1}if(!ae.test(t[c]))throw new h;for(;c<o&&ae.test(t[c]);){var b=v(t[c],10);if(null===w)w=b;else{if(0===w)throw new h;if((w=10*w+b)>255)throw new h}c+=1}u[s]=u[s]<<8|w,2!==(l+=1)&&4!==l||(s+=1)}if(4!==l)throw new h;break}if(":"===t[c]){if((c+=1)===o)throw new h}else if(c<o)throw new h;u[s]=a,s+=1}else{if(null!==f)throw new h("Too many :: groups");c+=1,f=s+=1}}if(null!==f){var g=s-f;for(s=7;0!==s&&g>0;)e=f+g-1,r=void 0,r=(n=u)[i=s],n[i]=n[e],n[e]=r,s-=1,g-=1}else if(8!==s)throw new h;return u}function ar(t){var n=10,i=le;return de.test(t)?(t=t.slice(2),n=16,i=we):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,i=be),""===t?0:i.test(t)?v(t,n):void 0}var vr={zi:4},dr=/[\0\t\n\r #%/:?@\[\\\]]/,lr=/[\0\t\n\r #/:?@\[\\\]]/;function wr(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new h("Invalid IPv6 address");return{zi:2,qi:cr(t.slice(1,-1))}}if(!n)return function(t){if(lr.test(t))throw new h("Invalid code point in opaque host");var n=sr(t,tr);return""===n?vr:{zi:3,Wi:n}}(t);var i=function(t){return function(t){return He(t.toLowerCase())}(t)}(hr(t));if(dr.test(i))throw new h("Invalid code point in host");var e=function(t){var n=t.split(".");if(""===n[n.length-1]&&n.pop(),!(n.length>4)){for(var i=[],e=0;e<n.length;e++){var r=n[e];if(""===r)return;var o=ar(r);if(void 0===o)return;i.push(o)}for(var u=0;u<i.length-1;u++)if(i[u]>255)throw new h;if(i[i.length-1]>=a.pow(256,5-i.length))throw new h;for(var s=i.pop(),f=0;f<i.length;f++)s+=i[f]*a.pow(256,3-f);return s}}(i);return void 0!==e?{zi:1,qi:e}:""===i?vr:{zi:0,Gi:i}}function br(t){switch(t.zi){case 0:return t.Gi;case 1:return function(t){for(var n=[],i=t,e=1;e<=4;e++)n.push(""+(255&i)),4!==e&&n.push("."),i>>>=8;return n.reverse().join("")}(t.qi);case 2:return"["+function(t){for(var n="",i=function(t){for(var n=0,i=0,e=0,r=0,o=0;o<8;o++)0===t[o]?(0===r&&(e=o),r++):(r>i&&(n=e,i=r),r=0);return r>i&&(n=e,i=r),i>1?n:null}(t),e=!1,r=0;r<8;r++){if(e){if(0===t[r])continue;e=!1}i!==r?(n+=t[r].toString(16),7!==r&&(n+=":")):(n+=0===r?"::":":",e=!0)}return n}(t.qi)+"]";case 3:return t.Wi;case 4:return""}}var gr=/\+/g;function mr(t){for(var n=t.split("&"),i=[],e=0;e<n.length;e++){var r=n[e];if(""!==r){var o=r.indexOf("="),u=void 0,s=void 0;-1!==o?(u=r.slice(0,o),s=r.slice(o+1)):(u=r,s=""),u=u.replace(gr," "),s=s.replace(gr," ");var f=hr(u),h=hr(s);i.push([f,h])}}return i}function pr(t){for(var n="",i=0;i<t.length;i++){var e=t[i];i>0&&(n+="&"),n+=yr($e(Me(e[0])))+"="+yr($e(Me(e[1])))}return n}function yr(t){for(var n,i=[],e=0;e<t.length;e++){var r=t[e];32===r?i.push(43):42===(n=r)||45===n||46===n||95===n||Te(n)?i.push(r):i.push.apply(i,Qe(r))}return De(i)}var _r=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function Sr(t){var n=""+t,i=_r.exec(n);return i?function(t,n){for(var i=t.length,e=[],r=n;r<i;r++){var o=t.charCodeAt(r);if(Tr(o))if(Er(o)||r===i-1)e.push(Ir);else{var u=t.charCodeAt(r+1);Er(u)?(e.push(o,u),r++):e.push(Ir)}else e.push(o)}return t.slice(0,n)+De(e)}(n,i.index):n}var Ir=65533,Tr=function(t){return 55296==(63488&t)},Er=function(t){return 0!=(1024&t)};function Rr(t,n){var i=t[0],e=n[0];return i===e?0:i<e?-1:1}function kr(t){t.Yi.length=0}function Nr(t,n){!function(t,n){for(var i=0;i<n.length;i++)t[i]=n[i];t.length=n.length}(t.Yi,mr(n))}function Or(t){if(t.ji){var n=pr(t.Yi);""===n&&(n=null),t.ji.ji.Qi=n}}var Pr=function(){function t(t){if(void 0===t&&(t=void 0),this.ji=null,null==t)this.Yi=[];else if("object"==typeof t||"function"==typeof t)if((o=t)instanceof Pr&&me(o.Yi)&&(!pe||o[Symbol.iterator]===Ar))this.Yi=t.Yi.slice();else if(function(t){return null!=t&&(!!me(t)||!!pe&&"function"==typeof t[Symbol.iterator])}(t)){this.Yi=[];for(var n=0,i=ye(t);n<i.length;n++){var e=ye(i[n]);if(2!==e.length)throw new h("Invalid name-value pair");this.Yi.push([Sr(e[0]),Sr(e[1])])}}else for(var r in this.Yi=[],t)c.prototype.hasOwnProperty.call(t,r)&&this.Yi.push([Sr(r),Sr(t[r])]);else(t=Sr(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Yi=mr(t);var o}var n=t.prototype;return n.append=function(t,n){t=Sr(t),n=Sr(n),this.Yi.push([t,n]),Or(this)},n.delete=function(t){t=Sr(t);for(var n=this.Yi,i=0;i<n.length;){n[i][0]===t?n.splice(i,1):i++}Or(this)},n.get=function(t){t=Sr(t);for(var n=this.Yi,i=0;i<n.length;i++){var e=n[i];if(e[0]===t)return e[1]}return null},n.getAll=function(t){t=Sr(t);for(var n=this.Yi,i=[],e=0;e<n.length;e++){var r=n[e];r[0]===t&&i.push(r[1])}return i},n.has=function(t){t=Sr(t);for(var n=this.Yi,i=0;i<n.length;i++){if(n[i][0]===t)return!0}return!1},n.set=function(t,n){t=Sr(t),n=Sr(n);for(var i=this.Yi,e=!1,r=0;r<i.length;){var o=i[r];o[0]===t?e?i.splice(r,1):(o[1]=n,e=!0,r++):r++}e||i.push([t,n]),Or(this)},n.sort=function(){fe(this.Yi,Rr),Or(this)},n.toString=function(){return pr(this.Yi)},n.entries=function(){return new Br(this.Yi,Dr)},n.keys=function(){return new Br(this.Yi,xr)},n.values=function(){return new Br(this.Yi,Cr)},n.forEach=function(t){var n=this;this.Yi.forEach(function(i){return t(i[1],i[0],n)})},t}(),Ar=Pr.prototype.entries;pe&&(Pr.prototype[Symbol.iterator]=Ar);var Dr=function(t){return[t[0],t[1]]},xr=function(t){return t[0]},Cr=function(t){return t[1]},Br=function(){function t(t,n){this.Ki=0,this.Yi=t,this.Zi=n}return t.prototype.next=function(){return this.Ki<this.Yi.length?{done:!1,value:this.Zi(this.Yi[this.Ki++])}:{done:!0,value:void 0}},t}(),Fr="null";var Lr=c.create(null);Lr.ftp=21,Lr.file=0,Lr.gopher=70,Lr.http=80,Lr.https=443,Lr.ws=80,Lr.wss=443;var Ur=/^(?:\.|%2e)$/i,Mr=/^(?:\.|%2e){2}$/i;function zr(t){return Ur.test(t)}function Wr(t){return Mr.test(t)}function qr(t){return void 0!==Lr[t]}function jr(t){return qr(t.Ji)}function Vr(t){return""!==t.$i||""!==t.re}function Hr(t){var n=t.length;if(!(n>=2))return!1;if(!Gr(t.slice(0,2)))return!1;if(2!==n){var i=t[2];if(47!==i&&92!==i&&63!==i&&35!==i)return!1}return!0}function Xr(t){return 2===t.length&&ce.test(t[0])&&(":"===t[1]||"|"===t[1])}function Gr(t){return 2===t.length&&Xr(De(t))}function Yr(t){return Xr(t)&&":"===t[1]}function Kr(t){var n=t.ue;0!==n.length&&("file"===t.Ji&&1===n.length&&Yr(n[0])||n.pop())}function $r(t){return null===t.oe||vr===t.oe||t.fe||"file"===t.Ji}var Jr=-1,Zr=/\t|\n|\r/g,Qr=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function to(t,n,i,e){void 0===i&&(i=null),void 0===e&&(e=null),i||(i=new io,t=t.replace(Qr,""));var r=null!==e?e:0;n=n||null;for(var o=[],u=!1,s=!1,f=!1,c=Me(t=t.replace(Zr,"")),a=c.length,d=0;d<=a;){var l=d<a?c[d]:Jr;switch(r){case 0:if(!Se(l)){if(null===e){o.length=0,r=2;continue}throw new h("Invalid scheme")}o.push(Re(l)),r=1;break;case 1:if(Te(l)||43===l||45===l||46===l)o.push(Re(l));else{if(58!==l){if(null===e){o.length=0,r=2,d=0;continue}throw new h("Invalid scheme")}var w=Xe(o);if(null!==e){if(qr(i.Ji)&&!qr(w))return;if(!qr(i.Ji)&&qr(w))return;if((Vr(i)||null!==i._e)&&"file"===w)return;if("file"===i.Ji&&(i.oe===vr||null===i.oe))return}if(i.Ji=w,null!==e)return void(jr(i)&&i._e===Lr[i.Ji]&&(i._e=null));o.length=0,"file"===i.Ji?r=13:jr(i)&&n&&n.Ji===i.Ji?r=3:jr(i)?r=7:47===c[d+1]?(r=4,d+=1):(i.fe=!0,i.ue.push(""),r=18)}break;case 2:if(!n||n.fe&&35!==l)throw new h("Invalid scheme");n.fe&&35===l?(i.Ji=n.Ji,i.ue=n.ue.slice(),i.Qi=n.Qi,i.we="",i.fe=!0,r=20):"file"!==n.Ji?(r=5,d-=1):(r=13,d-=1);break;case 3:47===l&&47===c[d+1]?r=8:(r=5,d-=1);break;case 4:47===l?r=9:(r=17,d-=1);break;case 5:i.Ji=n.Ji,Jr===l?(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.Qi=n.Qi):47===l?r=6:63===l?(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.Qi="",r=19):35===l?(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.Qi=n.Qi,i.we="",r=20):92===l&&jr(i)?r=6:(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.ue.pop(),r=17,d-=1);break;case 6:!jr(i)||47!==l&&92!==l?47===l?r=9:(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,r=17,d-=1):r=8;break;case 7:if(47!==l||47!==c[d+1]){r=8;continue}r=8,d+=1;break;case 8:47!==l&&92!==l&&(r=9,d-=1);break;case 9:if(64===l){u&&o.unshift(37,52,48),u=!0;for(var b=0;b<o.length;b++){var g=o[b];if(58!==g||f){var m=Xe(ur(g,er));f?i.re+=m:i.$i+=m}else f=!0}o.length=0}else if(Jr===l||47===l||63===l||35===l||jr(i)&&92===l){if(u&&0===o.length)throw new h("Invalid host");d-=o.length+1,o.length=0,r=10}else o.push(l);break;case 10:case 11:if(null!==e&&"file"===i.Ji)d-=1,r=15;else if(58!==l||s)if(Jr===l||47===l||63===l||35===l||jr(i)&&92===l){if(d-=1,jr(i)&&0===o.length)throw new h("Invalid host");if(null!==e&&0===o.length&&(Vr(i)||null!==i._e))return;var p=wr(Xe(o),jr(i));if(i.oe=p,o.length=0,r=16,null!==e)return}else 91===l?s=!0:93===l&&(s=!1),o.push(l);else{if(0===o.length)throw new h("Invalid host");var y=wr(Xe(o),jr(i));if(i.oe=y,o.length=0,r=12,11===e)return}break;case 12:if(Ie(l))o.push(l);else{if(!(Jr===l||47===l||63===l||35===l||jr(i)&&92===l||null!==e))throw new h("Invalid port");if(0!==o.length){var _=v(Xe(o),10);if(_>65535)throw new h("Invalid port");i._e=_===Lr[i.Ji]?null:_,o.length=0}if(null!==e)return;r=16,d-=1}break;case 13:i.Ji="file",47===l||92===l?r=14:n&&"file"===n.Ji?Jr===l?(i.oe=n.oe,i.ue=n.ue.slice(),i.Qi=n.Qi):63===l?(i.oe=n.oe,i.ue=n.ue.slice(),i.Qi="",r=19):35===l?(i.oe=n.oe,i.ue=n.ue.slice(),i.Qi=n.Qi,i.we="",r=20):(Hr(c.slice(d))||(i.oe=n.oe,i.ue=n.ue.slice(),Kr(i)),r=17,d-=1):(r=17,d-=1);break;case 14:47===l||92===l?r=15:(n&&"file"===n.Ji&&!Hr(c.slice(d))&&(Yr(n.ue[0])?i.ue.push(n.ue[0]):i.oe=n.oe),r=17,d-=1);break;case 15:if(Jr===l||47===l||92===l||63===l||35===l)if(d-=1,null===e&&Gr(o))r=17;else if(0===o.length){if(i.oe=vr,null!==e)return;r=16}else{var S=wr(Xe(o),jr(i));if(0===S.zi&&"localhost"===S.Gi&&(S=vr),i.oe=S,null!==e)return;o.length=0,r=16}else o.push(l);break;case 16:jr(i)?(r=17,47!==l&&92!==l&&(d-=1)):null===e&&63===l?(i.Qi="",r=19):null===e&&35===l?(i.we="",r=20):Jr!==l&&(r=17,47!==l&&(d-=1));break;case 17:if(Jr===l||47===l||jr(i)&&92===l||null===e&&(63===l||35===l)){var I=Xe(o);if(Wr(I)?(Kr(i),47===l||jr(i)&&92===l||i.ue.push("")):!zr(I)||47===l||jr(i)&&92===l?zr(I)||("file"===i.Ji&&0===i.ue.length&&Gr(o)&&(vr!==i.oe&&null!==i.oe&&(i.oe=vr),o[1]=58,I=Xe(o)),i.ue.push(I)):i.ue.push(""),o.length=0,"file"===i.Ji&&(Jr===l||63===l||35===l))for(;i.ue.length>1&&""===i.ue[0];)i.ue.shift();63===l?(i.Qi="",r=19):35===l&&(i.we="",r=20)}else o.push.apply(o,ur(l,ir));break;case 18:63===l?(i.Qi="",r=19):35===l?(i.we="",r=20):Jr!==l&&(i.ue[0]+=Xe(ur(l,tr)));break;case 19:null===e&&35===l?(i.we="",r=20):Jr!==l&&(i.Qi+=Xe(ur(l,jr(i)?or:rr)));break;case 20:Jr===l||0===l||(i.we+=Xe(ur(l,nr)))}d++}return i}function no(t,n,i,e){try{to(t,n,i,e)}catch(t){}}var io=function(){this.Ji="",this.$i="",this.re="",this.oe=null,this._e=null,this.ue=[],this.Qi=null,this.we=null,this.fe=!1};function eo(t){switch(t.Ji){case"blob":var n;try{n=to(t.ue[0],null)}catch(t){return Fr}return eo(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return i=t.Ji,e=t.oe,r=t._e,i+"://"+br(e)+(null===r?"":":"+r);case"file":default:return Fr}var i,e,r}var ro,oo,uo=function(){function t(t,n){var i,e,r=null;if(null!=n)if(null!=(i=n)&&i instanceof uo&&"object"==typeof i.ji)r=n.ji;else try{r=to(String(n),null)}catch(t){throw new h("Invalid base URL: "+t.message)}try{e=to(String(t),r)}catch(t){throw new h("Invalid URL: "+t.message)}var o=e.Qi;this.ji=e,this.Qi=function(t){var n=new Pr;return null!==t&&Nr(n,t),n}(o),this.Qi.ji=this}var n,i,e,r=t.prototype;return r.toString=function(){return this.href},r.toJSON=function(){return this.href},n=t,(i=[{key:"href",get:function(){return function(t,n){void 0===n&&(n=!1);var i=t.Ji+":";if(null!==t.oe?(i+="//",Vr(t)&&(i+=t.$i,""!==t.re&&(i+=":"+t.re),i+="@"),i+=br(t.oe),null!==t._e&&(i+=":"+t._e)):null===t.oe&&"file"===t.Ji&&(i+="//"),t.fe)i+=t.ue[0];else for(var e=0,r=t.ue;e<r.length;e++)i+="/"+r[e];return null!==t.Qi&&(i+="?"+t.Qi),n||null===t.we||(i+="#"+t.we),i}(this.ji)},set:function(t){var n;try{n=to(String(t),null)}catch(t){throw new h("Invalid URL: "+t.message)}this.ji=n,kr(this.Qi);var i=this.ji.Qi;null!==i&&Nr(this.Qi,i)}},{key:"origin",get:function(){return eo(this.ji)}},{key:"protocol",get:function(){return this.ji.Ji+":"},set:function(t){no(t+":",null,this.ji,0)}},{key:"username",get:function(){return this.ji.$i},set:function(t){$r(this.ji)||(this.ji.$i=sr(t,er))}},{key:"password",get:function(){return this.ji.re},set:function(t){$r(this.ji)||(this.ji.re=sr(t,er))}},{key:"host",get:function(){var t=this.ji,n=t.oe;if(null===n)return"";var i=t._e,e=br(n);return null!==i&&(e+=":"+i),e},set:function(t){this.ji.fe||no(t,null,this.ji,10)}},{key:"hostname",get:function(){var t=this.ji.oe;return null===t?"":br(t)},set:function(t){this.ji.fe||no(t,null,this.ji,11)}},{key:"port",get:function(){var t=this.ji._e;return null===t?"":""+t},set:function(t){$r(this.ji)||(""===t?this.ji._e=null:no(t,null,this.ji,12))}},{key:"pathname",get:function(){var t=this.ji.ue;return this.ji.fe?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.ji.fe||(this.ji.ue.length=0,no(t,null,this.ji,16))}},{key:"search",get:function(){var t=this.ji.Qi;return null===t||""===t?"":"?"+t},set:function(t){t=Sr(t);var n=this.ji;if(""===t)return n.Qi=null,void kr(this.Qi);"?"===t[0]&&(t=t.slice(1)),n.Qi="",no(t,null,n,19),Nr(this.Qi,t)}},{key:"searchParams",get:function(){return this.Qi}},{key:"hash",get:function(){var t=this.ji.we;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.ji.we="",no(t,null,this.ji,20)):this.ji.we=null}}])&&se(n.prototype,i),e&&se(n,e),t}();function so(t){return t.document&&t.document.baseURI||t.location.href||""}function fo(){return void 0!==i?i.createElement("video"):void 0}function ho(){return oo||(oo=fo()),oo}var co=!!("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch)||!(!e||!e.msMaxTouchPoints),ao=ho(),vo=!(!ao||!ao.webkitShowPlaybackTargetPicker),lo=function(){function t(){this.Oe=void 0,this.Be=!1,this.qt=co,this.vn=!1,this.Le=!0}var i=t.prototype;return i.Me=function(){return 0},i.xe=function(t,n){return!0},i.Ue=function(t){return t>=1/6*2},gt(t,[{key:"Fe",get:function(){return void 0===this.Oe&&(this.Oe=this.Me()),this.Oe}},{key:"He",get:function(){return!Li.xn}},{key:"Ve",get:function(){return n.devicePixelRatio||1}},{key:"Xe",get:function(){return vo}},{key:"ze",get:function(){return!1}},{key:"qe",get:function(){return!0}},{key:"We",get:function(){return Li.Pn||Li.un}},{key:"Ge",get:function(){return!0}},{key:"Ye",get:function(){return!0}},{key:"je",get:function(){return!1}},{key:"Qe",get:function(){}},{key:"Ke",get:function(){return!0}},{key:"Ze",get:function(){return!1}}]),t}(),wo=function(){var t=fo();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(Li.$t)return!1;var t=fo();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var bo=function(t){function n(n){var i;return(i=t.call(this)||this).Je=void 0,i.Je=n,i.Je&&(i.Be=i.Je.Be,i.qt=i.Je.qt,i.Le=wo&&i.Je.Le),i}Ut(n,t);var i=n.prototype;return i.Me=function(){return this.Je?this.Je.Fe:t.prototype.Me.call(this)},i.xe=function(n,i){return this.Je?this.Je.xe(n,i):t.prototype.xe.call(this,n,i)},i.Ue=function(n){return this.Je?this.Je.Ue(n):t.prototype.Ue.call(this,n)},gt(n,[{key:"Qe",get:function(){var t;return null==(t=this.Je)?void 0:t.Qe}},{key:"Ke",get:function(){var t,n;return null==(t=null==(n=this.Je)?void 0:n.Ke)||t}}]),n}(lo),go=function(t){function n(n){var i;return(i=t.call(this,n)||this).Be=!0,i.vn=!0,i}return Ut(n,t),gt(n,[{key:"je",get:function(){return Li.un}}]),n}(bo),mo=function(t){function n(){return t.apply(this,arguments)||this}return Ut(n,t),n.prototype.Me=function(){if(!ro.MediaSource)return 1},gt(n,[{key:"je",get:function(){return!0}}]),n}(go),po=function(t){function n(){return t.apply(this,arguments)||this}return Ut(n,t),n.prototype.xe=function(n,i){return t.prototype.xe.call(this,n,i)},gt(n,[{key:"ze",get:function(){return Li.Tn<3}},{key:"qe",get:function(){return Li.Tn>=3}},{key:"Ze",get:function(){return Li.Tn<3}}]),n}(bo),yo=function(t){function n(){return t.call(this)||this}return Ut(n,t),n}(lo),_o=function(t){function n(){return t.apply(this,arguments)||this}return Ut(n,t),n.prototype.xe=function(t,n){if(t&&t.$e&&n&&n.$e){var i=So(t.$e,"mp4a.40.2")&&So(n.$e,"mp4a.40.5"),e=So(t.$e,"mp4a.40.5")&&So(n.$e,"mp4a.40.2"),r=So(t.$e,"mp4a.40.2")&&So(n.$e,"mp4a.40.34"),o=So(t.$e,"mp4a.40.34")&&So(n.$e,"mp4a.40.2"),u=So(t.$e,"mp4a.40.5")&&So(n.$e,"mp4a.40.34"),s=So(t.$e,"mp4a.40.34")&&So(n.$e,"mp4a.40.5");return!(i||e||r||o||u||s)}return!0},gt(n,[{key:"Qe",get:function(){if(Li.Wt)return 4096}}]),n}(yo);function So(t,n){return t.indexOf(n)>-1}var Io,To=function(t){function n(){return t.apply(this,arguments)||this}return Ut(n,t),n.prototype.Ue=function(t){return t>=2},n}(yo),Eo=function(t){function n(){var n;return(n=t.call(this)||this).Be=Li.On>=11,n.Le=Li.Pn&&!(Li.un&&Li.On<10),n}return Ut(n,t),n}(yo),Ro=function(t){function n(){return t.apply(this,arguments)||this}return Ut(n,t),gt(n,[{key:"Ge",get:function(){return!1}}]),n}(bo),ko=function(t){function n(){return t.apply(this,arguments)||this}return Ut(n,t),gt(n,[{key:"Ke",get:function(){return!Li.Gt||(Li.yn?92!==Li.pn:Li.wn>=100)}}]),n}(yo),No=function(t){function n(){return t.apply(this,arguments)||this}return Ut(n,t),gt(n,[{key:"je",get:function(){return!0}}]),n}(bo),Oo=function(){function n(){var n;this.ir=void 0,this.rr=new $i,this.dr=new Po,this._r=(n=function(){if(Li.Dn)return new _o;if(Li.En||Li.In)return new To;if(Li.Pn)return new Eo;if(Li._n)return new ko;return new yo}(),Li.un?new mo(n):Li.vn?new go(n):Li.An?new po(n):Li.Sn?new Ro(n):Li.Wt?new No(n):new bo(n)),this.gr=function(){if(t.URL)try{var n=new t.URL("b","http://a");return n.pathname="c d","http://a/c%20d"===n.href}catch(t){}return!1}(),t.performance&&t.performance.now?this.ir=function(){return t.performance.now()}:this.ir=xn}var i=n.prototype;return i.wr=function(){Hi.apply(void 0,arguments)},i.yr=function(){Xi.apply(void 0,arguments)},i.pr=function(){Gi.apply(void 0,arguments)},i.Ar=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),e=1;e<n;e++)i[e-1]=arguments[e];Yi.apply(void 0,[t].concat(i))},i.jn=function(t,n){return r(t,n)},i.Tr=function(t,n){return u(t,n)},i.Yn=function(t){o(t)},i.Sr=function(t){s(t)},i.ri=function(t){return this.rr.ri(t)},i.Er=function(){return this.Ir.Er()},i.Rr=function(){return this.Ir.Rr()},i.Nr=function(){return this.Ir.Nr()},i.Dr=function(){return this.Ir.Dr()},i.Cr=function(){return this.Ir.Cr()},i.Pr=function(t,n){return this.Ir.Pr(t,n)},i.Or=function(t){return this.Ir.Or(t)},i.Br=function(t,n){var i;return void 0===n&&(n=so(ro)),i="object"!=typeof n||n instanceof uo?n:n.href,new uo(t,i)},i.Lr=function(n,i){if(void 0===i&&(i=so(ro)),this.gr){var e="string"==typeof i?i:i.toString();return new t.URL(n,e).href}return this.Br(n,i).href},gt(n,[{key:"Mr",get:function(){return this.dr}},{key:"xr",get:function(){return this._r}},{key:"Ur",get:function(){return{Fr:e&&e.userAgent.match(/Android /i)?"Android":"other",Hr:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"Vr",get:function(){return t&&t.location&&"https:"===t.location.protocol}},{key:"Xr",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),Po=function(){function t(){}return gt(t,[{key:"zr",get:function(){return e.oscpu}},{key:"xr",get:function(){return e.platform}},{key:"qr",get:function(){return e.vendor}},{key:"Wr",get:function(){return e.vendorSub}}]),t}();function Ao(){return(Ao=c.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)c.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}return t}).apply(this,arguments)}!function(t){t.$r="9a04f079-9840-4286-ab92-e65be0885f95",t.ns="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",t.rs="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",t.us="94ce86fb-07ff-4f43-adb8-93d2fa968ca2"}(Io||(Io={}));var Do,xo=Io.$r,Co="urn:uuid:"+xo,Bo="com.microsoft.playready",Fo=Io.ns,Lo="urn:uuid:"+Fo,Uo=Io.rs,Mo="urn:uuid:"+Uo,zo=Io.us,Wo="urn:uuid:"+zo,qo="com.apple.fps.1_0";!function(t){t.$r="playready",t.ns="widevine",t.us="fairplay",t.rs="clearkey",t.hs="aes128"}(Do||(Do={}));var jo={fs:Do.$r,vs:Bo,ds:"cenc",ls:xo,_s:Co,gs:"PlayReady"},Vo={fs:Do.ns,vs:"com.widevine.alpha",ds:"cenc",ls:Fo,_s:Lo,gs:"Widevine"},Ho={fs:Do.us,vs:qo,ds:"skd",ls:zo,_s:Wo,gs:"FairPlay"};Do.us;var Xo={fs:Do.rs,vs:"org.w3.clearkey",ds:"cenc",ls:Uo,_s:Mo,gs:"ClearKey"},Go=Li._n&&Li.wn>=42||Li.Dn&&Li.Cn>=38||Li.En||Li.Rn||Li.Bn&&Li.Ln>=29;function Yo(t,n){return e="audio",null!=(i=t)&&-1!==i.indexOf(e)?{initDataTypes:["cenc"],audioCapabilities:[Ao({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[Ao({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]};var i,e}var Ko,$o=function(){function t(t){this.ys=void 0,this.As=pt(),this.Ts=void 0,this.ys=t}var n=t.prototype;return n.Cr=function(){return this.Or(Vo)},n.Rr=function(){return this.Or(Xo)},n.Dr=function(){return this.Or(jo)},n.Nr=function(){return this.Or(Ho)},n.Or=function(t){var n=t._s,i=this.As.get(n);if(i)return i;var e=this.Pr(t,'video/mp4; codecs="avc1.42000a"');return this.As.set(n,e),e},n.Pr=function(t,n){return Q.async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Q.awrap(this.ys.Ss(t.vs,[Yo(n,!0)]));case 3:return i.abrupt("return",!0);case 6:return i.prev=6,i.t0=i.catch(0),i.prev=8,i.next=11,Q.awrap(this.ys.Ss(t.vs,[Yo(n,!1)]));case 11:return i.abrupt("return",!0);case 14:return i.prev=14,i.t1=i.catch(8),i.abrupt("return",!1);case 17:case"end":return i.stop()}},null,this,[[0,6],[8,14]],j)},n.Er=function(){return this.Ts||(this.Ts=this.Es()),this.Ts},n.Es=function(){return Q.async(function(t){for(;;)switch(t.prev=t.next){case 0:if("https:"!==(void 0).protocol){t.next=2;break}case 2:if(Go){t.next=4;break}return t.abrupt("return",!1);case 4:return t.next=6,Q.awrap(this.Rr());case 6:if(!t.sent){t.next=8;break}return t.abrupt("return",!1);case 8:return t.abrupt("return",!0);case 9:case"end":return t.stop()}},null,this,null,j)},t}(),Jo=["cenc"],Zo=function(t){function n(n){var i;return(i=t.call(this,"vu")||this).fu=n,i}return Ut(n,t),n}(wi),Qo=function(t){function n(n,i,e,r){var o;return(o=t.call(this,"du")||this).fu=n,o._u=i,o.du=e,o.wu=r,o}return Ut(n,t),n}(wi);!function(t){t.mu="pu",t.bu="Au"}(Ko||(Ko={}));var tu=new w([0]).buffer,nu=function(){function t(){this.Su=void 0,this.Su=[]}var n=t.prototype;return n.Eu=function(t){for(var n=0,i=this.Su;n<i.length;n++){if(i[n][0]===t)return!0}return!1},n.Iu=function(t){for(var n=0,i=this.Su;n<i.length;n++){var e=i[n];if(e[0]===t)return e[1]}},n.Ru=function(t,n){this.Su.forEach(function(n){return t(n[1],n[0])},n)},n.Nu=function(t,n){this.Su.push([t,n])},n.Du=function(){vt(this.Su)},gt(t,[{key:"Cu",get:function(){return this.Su.length}}]),t}(),iu=function(){function t(){var t=this;this.Hu=void 0,this.Vu=void 0,this.Xu=void 0,this.Hu=new j(function(n,i){t.Vu=n,t.Xu=i})}var n=t.prototype;return n.Wu=function(t){this.Vu&&(this.Vu(t),this.Ls())},n.Gu=function(t){this.Xu&&(this.Xu(t),this.Ls())},n.Vs=function(){this.Hu.catch(lt),this.Gu(new Pn)},n.Ls=function(){this.Vu=void 0,this.Xu=void 0},t}();function eu(t,n){return t===Bo?function(t){if(t.byteLength<2*ru.length)return t;if(ti(new DataView(t,0,2*ru.length),!0)===ru)return t;return n=t,ni('<PlayReadyKeyMessage type="LicenseAcquisition"><LicenseAcquisition Version="1"><Challenge encoding="base64encoded">'+zn(n)+'</Challenge><HttpHeaders><HttpHeader><name>Content-Type</name><value>text/xml; charset=utf-8</value></HttpHeader><HttpHeader><name>SOAPAction</name><value>"http://schemas.microsoft.com/DRM/2007/03/protocols/AcquireLicense"</value></HttpHeader></HttpHeaders></LicenseAcquisition></PlayReadyKeyMessage>',!0).buffer;var n}(n):n}var ru="<PlayReady";var ou=function(t){function n(n,i,e,r){var o;return(o=t.call(this,n,r)||this).Yu=void 0,o.ju=void 0,o.Yu=i,o.ju=e,o}return Ut(n,t),n}(kn),uu=function(t,n){return(uu=c.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)c.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])})(t,n)};function su(t,n){if("function"!=typeof n&&null!==n)throw new h("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}uu(t,n),t.prototype=null===n?c.create(n):(i.prototype=n.prototype,new i)}function fu(t,n,i){return t.indexOf?t.indexOf(n,i):Array.prototype.indexOf.call(t,n,i)}function hu(t,n,i){return a.min(a.max(t,n),i)}function cu(t,n){return t>>8-n}function au(t,n){return t&(1<<n)-1}!function(){function t(t,n){this.Qu=t,this.Ku=n}t.prototype.get=function(t){var n=this.Qu.get(t);if(0===this.Ku||void 0===n)return n;var i=this.Qu.get(t+1)||0,e=n&(1<<8-this.Ku)-1,r=i>>8-this.Ku;return(e<<this.Ku)+r},t.prototype.getBit=function(t){if(!(t<0)){var n=this.Qu.get(a.floor((t+this.Ku)/8));if(void 0!==n)return(n&1<<7-this.Ku-t%8)>0?1:0}},c.defineProperty(t.prototype,"bitLength",{get:function(){return this.Qu.bitLength-this.Ku},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"length",{get:function(){return this.Qu.length},enumerable:!1,configurable:!0})}(),function(){function t(t){this.Zu=t,this.Ju=0,this.$u=0}c.defineProperty(t.prototype,"totalBitsRead",{get:function(){return 8*this.Ju+this.$u},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"done",{get:function(){return this.Ju===this.Zu.length&&0===this.$u},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"location",{get:function(){return{byte:this.Ju,bit:this.$u}},enumerable:!1,configurable:!0}),t.prototype.copy=function(){var n=new t(this.Zu);return n.seek(this.Ju,this.$u),n},t.prototype.canReadBits=function(t){return 8*this.Ju+t+this.$u<=8*this.Zu.length},t.prototype.canReadBytes=function(t){return 0===this.$u?this.Ju+t<=this.Zu.length:this.Ju+t<this.Zu.length},t.prototype.incBit=function(){this.$u++,this.$u>7&&(this.Ju++,this.$u=0)},t.prototype.seek=function(t,n){this.Ju=t,this.$u=n},t.prototype.peekBit=function(){if(!this.canReadBits(1))throw new f("Cannot read past end of buffer.");return this.Zu.get(this.Ju)>>7-this.$u&1},t.prototype.readBit=function(){var t=this.peekBit();return this.incBit(),t},t.prototype.readByte=function(){if(!this.canReadBytes(1))throw new f("Cannot read past end of buffer.");if(0===this.$u)return this.Zu.get(this.Ju++);var t=au(this.Zu.get(this.Ju),8-this.$u),n=cu(this.Zu.get(this.Ju+1),this.$u);return this.Ju++,t<<this.$u|n},t.prototype.readBits=function(t){if(!this.canReadBits(t))throw new f("Cannot read past end of buffer.");for(var n=[],i=0;i<t;i++)n.push(this.readBit());return n},t.prototype.readUInt=function(t){if(t>32)throw new f("The max bitlength that can be provided is 32.");if(!this.canReadBits(t))throw new f("Cannot read past end of buffer.");var n=0;if(0===this.$u&&t%8==0)for(var i=t-8;i>=0;i-=8)n|=this.readByte()<<i;else for(i=t-1;i>=0;i--)n|=this.readBit()<<i;return n},t.prototype.readInt=function(t){if(t>32)throw new f("The max bitlength that can be provided is 32.");if(!this.canReadBits(t))throw new f("Cannot read past end of buffer.");var n=this.readUInt(t);return 0===(n&1<<t-1)?n:n-a.pow(2,t)},t.prototype.readExponentialGolombCode=function(){for(var t=0;0===this.readBit();)t++;var n=1<<t;return n+=this.readUInt(t)-1},t.prototype.readSignedExponentialGolombCode=function(){var t=this.readExponentialGolombCode();return 1&t?(t+1)/2:-t/2},t.prototype.skipBits=function(t){if(!this.canReadBits(t))throw new f("Skipping over the buffer edge is not allowed.");var n=this.$u+t;this.Ju+=n>>3,this.$u=7&n},t.prototype.readBool=function(){return this.readBit()>0},t.prototype.readString=function(t){if(!this.canReadBytes(t))throw new f("Cannot read past end of buffer.");for(var n=[],i=0;i<t;i++)n.push(this.readByte());return String.fromCharCode.apply(String,n)}}();var vu=function(t,n){return t===n?0:t<n?-1:t>n?1:l(t)?l(n)?0:1:-1},du=function(){function t(){this.uo=[],this.oo=[],this.Se=0}return t.from=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var e=new t,r=0,o=n;r<o.length;r++){var u=o[r];e.pushRange(u)}return e},t.prototype.pushRange=function(t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=t.length),i<0)throw new f("The buffer length must be positive.");if(0!==i){if(0===this.oo.length)this.oo.push(0);else{var e=this.oo[this.oo.length-1]+this.uo[this.uo.length-1].length;this.oo.push(e)}this.uo.push(t.subarray(n,n+i)),this.Se+=i}},t.prototype.concat=function(n){var i=new t;return i.pushRange(this.join()),i.pushRange(n.join()),i},t.prototype.copy=function(t,n,i,e){if(void 0===n&&(n=0),void 0===i&&(i=0),void 0===e&&(e=this.length),n<0||i<0||e<0)throw new RangeError;return this.slice(i,e).copyInternal(t,n)},t.prototype.copyInternal=function(t,n){for(var i=0,e=n,r=0,o=this.uo;r<o.length;r++){var u=o[r];t.set(u,e),i+=u.length,e+=u.length}return i},t.prototype.clear=function(){this.uo=[],this.oo=[],this.Se=0},t.prototype.get=function(t){if(!(t<0||t>=this.length)){var n=this.findContainingBufferIndex(t),i=t-this.oo[n];return this.uo[n][i]}},c.defineProperty(t.prototype,"first",{get:function(){return this.get(0)},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){if(this.uo.length<1)return-1;if(this.uo.length>1){var n=this.join();this.clear(),this.pushRange(n)}var i=this.uo[0];return"number"==typeof t?fu(i,t):"undefined"!=typeof Buffer?Buffer.from(i.buffer,i.byteOffset,i.byteLength).indexOf(t):function(t,n){if(0===n.length)return 0;for(var i=n[0],e=n.length,r=t.length-e,o=0;o<=r&&!((o=fu(t,i,o))<0||o>r);o++){for(var u=o+1,s=o+e,f=1;u<s&&t[u]===n[f];u++,f++);if(u===s)return o}return-1}(i,t)},t.prototype.findContainingBufferIndex=function(t){return function(t,n,i){if(0!==t.length){var e=0,r=t.length-1;if(1!==i(t[e],n)){if(1===i(n,t[r]))return r;for(;e!==r;){var o=a.ceil((e+r)/2);i(t[o],n)<=0?e=o:r=o-1}return e}}}(this.oo,t,vu)},t.prototype.join=function(){if(1===this.uo.length)return this.uo[0];var t=new w(this.length);return this.copyInternal(t,0),t},c.defineProperty(t.prototype,"length",{get:function(){return this.Se},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"bitLength",{get:function(){return 8*this.length},enumerable:!1,configurable:!0}),t.prototype.readUIntBE=function(t,n){if(n<=0||n>4)throw new f("Expected byteLength to be between 0 and 4 but was "+n);if(t<0||t>this.length-n)throw new f("Offset must be between 0 and buffer.length - byteLength, but was "+t+" (max allowed "+(this.length-n)+")");if(1===n)return this.get(t);for(var i=0,e=0;e<n;e++)i+=this.get(t+e)*a.pow(2,8*(n-e-1));return i},t.prototype.slice=function(n,i){void 0===i&&(i=this.length);var e=hu(n,0,this.length),r=hu(i,0,this.length);if(e>r)return new t;if(e===r)return new t;for(var o=new t,u=this.findContainingBufferIndex(e),s=this.uo[u],f=e,h=f-this.oo[u];f+s.length-h<r;)o.pushRange(s,h,s.length-h),u+=1,h=(f+=s.length-h)-this.oo[u],s=this.uo[u];var c=r-f;return o.pushRange(s,h,c),o},t.prototype.trim=function(){if(0===this.length)return new t;for(var n=this.length-1,i=this.uo.length-1,e=this.uo[i],r=e.length-1;n>=0&&i>=0;){if(0!==e[r])break;if(0===r){if(0===i)return new t;i-=1,r=(e=this.uo[i]).length-1}else r-=1;n-=1}return this.slice(0,n+1)},t}(),lu=function(){function t(n){this.ao=n||t.BUFFER_CHUNK_SIZE,this.do=!1,this._o=new du,this.Zu=new w(this.ao),this.mo=0,this.po=0,this.$u=7}return t.prototype.closeByte=function(){this.Zu[this.mo++]=this.po,this.mo>=this.ao&&this.closeBuffer(),this.po=0,this.$u=7},t.prototype.closeBuffer=function(t){void 0===t&&(t=!0),0!==this.mo&&(this._o.pushRange(this.Zu,0,this.mo),t&&(this.Zu=new w(this.ao)),this.mo=0)},c.defineProperty(t.prototype,"isWritingStartBit",{get:function(){return 7===this.$u},enumerable:!1,configurable:!0}),t.prototype.close=function(){if(this.do)throw new f("Cannot close a closed BitWriter.");return this.isWritingStartBit||this.closeByte(),this.closeBuffer(!1),this.do=!0,this._o},t.prototype.writeBit=function(t){if(this.do)throw new f("Cannot write to a closed BitWriter.");this.po|=t<<this.$u,0===this.$u?this.closeByte():this.$u--},t.prototype.writeByte=function(t){if(this.do)throw new f("Cannot write to a closed BitWriter.");this.isWritingStartBit?(this.po=t,this.closeByte()):this.writeByteUnaligned(t)},t.prototype.writeByteUnaligned=function(t){var n=this.$u;this.po|=cu(t,n+1),this.closeByte(),this.po=au(t,8-n)<<n+1,this.$u=n},t.prototype.writeBits=function(t){for(var n=0,i=t;n<i.length;n++){var e=i[n];this.writeBit(e)}},t.prototype.writeBytes=function(t){if(this.do)throw new f("Cannot write to a closed BitWriter.");this.isWritingStartBit?this.writeBytesAligned(t):this.writeBytesUnaligned(t)},t.prototype.writeBytesAligned=function(t){this.mo+t.length<=this.ao?(this.Zu.set(t,this.mo),this.mo+=t.length,this.mo===this.ao&&this.closeBuffer()):(this.closeBuffer(),this._o.pushRange(t))},t.prototype.writeBytesUnaligned=function(t){if(0!==t.length){var n=this.$u;this.po|=cu(t[0],n+1),this.closeByte();for(var i=1;i<t.length;i++){var e=au(t[i-1],8-n),r=cu(t[i],n+1);this.po=e<<n+1|r,this.closeByte()}this.po=au(t[t.length-1],8-n)<<n+1,this.$u=n}},t.prototype.writeUInt=function(t,n){if(t<0)throw new f("Received a negative number.");if(n>32)throw new f("The max bitlength that can be provided is 32.");if(t>=a.pow(2,n))throw new f("Uint "+t+" cannot be represented in "+n+" bit(s).");if(this.isWritingStartBit&&n%8==0)for(var i=n-8;i>=0;i-=8)this.writeByte(t>>i&255);else for(i=n-1;i>=0;i--)this.writeBool((t&1<<i)>0)},t.prototype.writeInt=function(t,n){if(n>32)throw new f("The max bitlength that can be provided is 32.");if(a.abs(t)>=a.pow(2,n-1))throw new f("Signed integer "+t+" cannot be represented in "+n+" bit(s).");t<0?this.writeUInt(t+a.pow(2,n),n):this.writeUInt(t,n)},t.prototype.writeExponentialGolombCode=function(t){if(t<0)throw new f("Received a negative number.");for(var n=a.floor(a.log2(t+1))+1,i=0;i<n-1;i++)this.writeBit(0);this.writeUInt(t+1,n)},t.prototype.writeSignedExponentialGolombCode=function(t){0===t?this.writeExponentialGolombCode(0):t<0?this.writeExponentialGolombCode(-2*t):this.writeExponentialGolombCode(2*t-1)},t.prototype.padByte=function(t){for(;!this.isWritingStartBit;)this.writeBit(t)},t.prototype.writeBool=function(t){this.writeBit(t?1:0)},t.prototype.writeString=function(t){for(var n=function(t){for(var n=new w(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}(t),i=0;i<n.length;i++)this.writeByte(n[i])},t.BUFFER_CHUNK_SIZE=1024,t}(),wu=function(){function t(t){this.rb=new du,this.Ao=t}return t.prototype.closeWriter=function(){void 0!==this.Ao&&(this.rb=this.rb.concat(this.Ao.close()),this.Ao=void 0)},c.defineProperty(t.prototype,"writer",{get:function(){return void 0===this.Ao&&(this.Ao=new lu),this.Ao},enumerable:!1,configurable:!0}),t.prototype.concat=function(t){this.closeWriter(),this.rb=this.rb.concat(t)},t.prototype.toRangedBuffer=function(){return this.closeWriter(),this.rb},t}(),bu=function(){function t(t){if(this.boxType=t,4!==t.length&&16!==t.length)throw new f("The provided box type does not conform to either a 4 character type or a 16 byte uuid.")}return t.prototype.serializeCommonBoxHeader=function(n){var i=this.getSize(),e=i>=t.LARGE_SIZE/8,r=16===this.boxType.length;n.writeUInt(e?1:i,32),n.writeString(r?"uuid":this.boxType),e&&(n.writeUInt(a.floor(i/t.LARGE_SIZE),32),n.writeUInt(i%t.LARGE_SIZE,32)),r&&n.writeString(this.boxType)},t.prototype.getSize=function(){var n=8+(this.boxType.length>4?16:0),i=this.getBoxContentSize()+n;return i>=t.LARGE_SIZE/8&&(i+=8),i},t.prototype.serialize=function(){var t=new wu;return this.serializeCommonBoxHeader(t.writer),this.serializeBoxContent(t),t.toRangedBuffer()},t.LARGE_SIZE=a.pow(2,32),t}();function gu(t,n){return t instanceof qt?64===n:t<a.pow(2,n)}function mu(t,n){return a.round(t*a.pow(2,n))}function pu(t,n){for(var i=0;i<n.length;i++)t.writeByte(n[i])}var yu=function(t){function n(n,i,e){var r=t.call(this,n)||this;if(r.version=i,!gu(i,8))throw new f("the provided version cannot fit in 8 bits.");return r.flags=e,r}return su(n,t),c.defineProperty(n.prototype,"flags",{get:function(){return this.To},set:function(t){this.To=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4},n.prototype.serializeFlags=function(t){if("number"!=typeof this.flags)throw new f("Missing custom serializeFlags method.");t.writer.writeUInt(this.flags,24)},n.prototype.serializeBoxContent=function(t){t.writer.writeByte(this.version),this.serializeFlags(t)},n}(bu);!function(t){function n(n,i){var e=t.call(this,n)||this;return e.data=i,e}su(n,t),n.prototype.getBoxContentSize=function(){return this.data.length},n.prototype.serializeBoxContent=function(t){t.concat(du.from(this.data))}}(bu);var _u=function(){function t(t){void 0===t&&(t=0),this.offset=t}return t.prototype.shift=function(t){this.offset+=t},t.prototype.seek=function(t){this.offset=t},t.prototype.clone=function(){return new t(this.offset)},t}();var Su=16384;function Iu(t){var n=t.length;if(n<=Su)return String.fromCharCode.apply(String,t);for(var i=[],e=0;e<n;e+=Su)i.push(String.fromCharCode.apply(String,t.slice(e,e+Su)));return i.join("")}function Tu(t,n){var i=t.getUint8(n.offset);return n.shift(1),i}function Eu(t,n,i){var e,r=function(t,n,i){void 0===n&&(n=0);void 0===i&&(i=t.byteLength);return new w(t.buffer,t.byteOffset+n,i-n)}(new w((e=t).buffer,e.byteOffset,e.byteLength),n.offset,n.offset+i);return n.shift(r.byteLength),r}function Ru(t,n,i){return n.offset+i<=t.byteLength}function ku(t,n,i){void 0===i&&(i=!1);var e=t.getUint32(n.offset,i);return n.shift(4),e}function Nu(t,n,i){void 0===i&&(i=!1);var e=ku(t,n,i),r=ku(t,n,i),o=i?r:e,u=i?e:r;return qt.fromBits(u,o,!0)}function Ou(t,n,i){var e,r=Eu(t,n,i);return Iu((e=r,[].slice.call(e)))}function Pu(t,n){var i,e=Tu(t,n);return 0==(128&e)?i=e:192==(224&e)?i=64*(31&e)+(63&Tu(t,n)):224==(240&e)?i=4096*(15&e)+64*(63&Tu(t,n))+(63&Tu(t,n)):240==(248&e)&&(i=262144*(7&e)+4096*(63&Tu(t,n))+64*(63&Tu(t,n))+(63&Tu(t,n))),i}function Au(t,n){return function(t,n,i){var e=[];(function(t,n){return n.offset+3<=t.byteLength&&239===t.getUint8(n.offset)&&187===t.getUint8(n.offset+1)&&191===t.getUint8(n.offset+2)})(t,n)&&n.shift(3);for(;n.offset<t.byteLength;){var r=Pu(t,n);if(void 0===r)break;if(i&&0===r)break;e.push(r)}return function(t){for(var n=[],i=0,e=t;i<e.length;i++){var r=e[i];r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}return Iu(n)}(e)}(t,n,!0)}var Du=function(){function t(t){void 0===t&&(t=0),this.offset=t}return t.prototype.shift=function(t){this.offset+=t},t.prototype.seek=function(t){this.offset=t},t.prototype.clone=function(){return new t(this.offset)},t.prototype.toBit=function(){return new _u(this.offset<<3)},t}(),xu=function(){function t(t,n){this.data=t,this.cursor=n}return t.prototype.nextUint8=function(){return Tu(this.data,this.cursor)},t.prototype.nextUint16=function(){return function(t,n,i){void 0===i&&(i=!1);var e=t.getUint16(n.offset,i);return n.shift(2),e}(this.data,this.cursor)},t.prototype.nextInt16=function(){return function(t,n,i){void 0===i&&(i=!1);var e=t.getInt16(n.offset,i);return n.shift(2),e}(this.data,this.cursor)},t.prototype.nextUint32=function(){return ku(this.data,this.cursor)},t.prototype.nextInt32=function(){return function(t,n,i){void 0===i&&(i=!1);var e=t.getInt32(n.offset,i);return n.shift(4),e}(this.data,this.cursor)},t.prototype.nextInt64=function(){return function(t,n,i){void 0===i&&(i=!1);var e=ku(t,n,i),r=ku(t,n,i),o=i?r:e,u=i?e:r;return qt.fromBits(u,o,!1)}(this.data,this.cursor)},t.prototype.nextUint64=function(){return Nu(this.data,this.cursor)},t.prototype.nextUint8Array=function(t){return Eu(this.data,this.cursor,t)},t.prototype.nextUint32Array=function(t){return function(t,n,i){for(var e=[],r=0;r<i;r++)e.push(ku(t,n));return e}(this.data,this.cursor,t)},t.prototype.nextChars=function(t){return Ou(this.data,this.cursor,t)},t.prototype.nextUTF8String=function(){return Au(this.data,this.cursor)},t.prototype.skip=function(t){this.cursor.shift(t)},t.prototype.clone=function(){return new t(this.data,this.cursor.clone())},t}();function Cu(t,n){return t.type===n}var Bu=8;function Fu(t,n){var i=n.offset,e=function(t,n){var i=n.offset;if(!Ru(t,n,Bu)){var e=n.offset+Bu;return{complete:!1,neededOffset:e}}var r=ku(t,n),o=Ou(t,n,4);if(1===r){if(!Ru(t,n,8)){var e=n.offset+8;return n.seek(i),{complete:!1,neededOffset:e}}r=Nu(t,n).toNumber()}if("uuid"===o){if(!Ru(t,n,16)){var e=n.offset+16;return n.seek(i),{complete:!1,neededOffset:e}}o=Ou(t,n,16)}var u=n.offset;return{complete:!0,header:{type:o,size:r,headerSize:u-i}}}(t,n);if(!e.complete)return e;var r=e.header,o=r.size;0===o&&(o=t.byteLength-i);var u=i+o;if(u>t.byteLength){var s=u;return n.seek(i),{complete:!1,neededOffset:s}}var f,h,c,a={type:r.type,offset:i,data:new xu((f=t,h=i,c=u,void 0===h&&(h=0),void 0===c&&(c=f.byteLength),new DataView(f.buffer,f.byteOffset+h,c-h)),new Du(r.headerSize))};return n.seek(u),{complete:!0,box:a}}!function(t){function n(){return t.call(this,"mdir")||this}su(n,t),n.prototype.serializeReserved=function(t){t.writer.writeString("appl"),t.writer.writeUInt(0,32),t.writer.writeUInt(0,32)}}(function(t){function n(n,i,e,r){void 0===e&&(e=0),void 0===r&&(r=0);var o=t.call(this,"hdlr",e,r)||this;return o.name=i,o.handlerType=n,o}return su(n,t),c.defineProperty(n.prototype,"handlerType",{get:function(){return this.So},set:function(t){this.So=t},enumerable:!1,configurable:!0}),n.prototype.serializeReserved=function(t){t.writer.writeUInt(0,32),t.writer.writeUInt(0,32),t.writer.writeUInt(0,32)},n.prototype.getBoxContentSize=function(){var n,i;return t.prototype.getBoxContentSize.call(this)+4+4+12+(null!==(i=null===(n=this.name)||void 0===n?void 0:n.length)&&void 0!==i?i:0)+1},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(0,32),n.writer.writeString(this.handlerType),this.serializeReserved(n),this.name&&n.writer.writeString(this.name),n.writer.writeByte(0)},n}(yu));var Lu=function(){function t(t,n){void 0===n&&(n=!1),this.fixed28BitMode=n,this.tag=t}return t.prototype.encodeSize=function(t){for(var n=[];t>0;)n.length>0&&(n[n.length-1]+=128),n.push(t%128),t>>=7;if(this.fixed28BitMode)for(;n.length<4;)n.push(128);return n.reverse()},c.defineProperty(t.prototype,"tag",{get:function(){return this.Eo},set:function(t){if(!gu(t,8))throw new f("Provided tag does not fit in 8 bits.");this.Eo=t},enumerable:!1,configurable:!0}),t.prototype.getSize=function(){return this.getDescriptorSize()+1+this.encodeSize(this.getDescriptorSize()).length},t.prototype.serialize=function(t){t.writer.writeByte(this.tag);for(var n=0,i=this.encodeSize(this.getDescriptorSize());n<i.length;n++){var e=i[n];t.writer.writeByte(e)}this.serializeDescriptorContent(t)},t}();!function(t){function n(n,i,e,r,o,u,s){void 0===s&&(s={});var f=t.call(this,4,s.fixed28BitMode)||this;return f.upStream=e,f.decoderSpecificInfo=u,f.objectTypeIndication=n,f.streamType=i,f.bufferSizeDb=r,f.maxBitrate=o.max,f.avgBitrate=o.avg,f}su(n,t),c.defineProperty(n.prototype,"objectTypeIndication",{get:function(){return this.Io},set:function(t){if(!gu(t,8))throw new f("Provided objectTypeIndication does not fit in 8 bits.");this.Io=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"streamType",{get:function(){return this.Ro},set:function(t){if(!gu(t,6))throw new f("Provided streamType does not fit in 6 bits.");this.Ro=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"bufferSizeDb",{get:function(){return this.No},set:function(t){if(!gu(t,24))throw new f("Provided bufferSizeDb does not fit in 24 bits.");this.No=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"maxBitrate",{get:function(){return this.Do},set:function(t){if(!gu(t,32))throw new f("Provided maxBitrate does not fit in 32 bits.");this.Do=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"avgBitrate",{get:function(){return this.Co},set:function(t){if(!gu(t,32))throw new f("Provided avgBitrate does not fit in 32 bits.");this.Co=t},enumerable:!1,configurable:!0}),n.prototype.getDescriptorSize=function(){return 13+this.decoderSpecificInfo.reduce(function(t,n){return t+n.getSize()},0)},n.prototype.serializeDescriptorContent=function(t){t.writer.writeByte(this.objectTypeIndication),t.writer.writeUInt(this.streamType,6),t.writer.writeBool(this.upStream),t.writer.writeBit(1),t.writer.writeUInt(this.bufferSizeDb,24),t.writer.writeUInt(this.maxBitrate,32),t.writer.writeUInt(this.avgBitrate,32);for(var n=0,i=this.decoderSpecificInfo;n<i.length;n++){i[n].serialize(t)}}}(Lu),function(t){function n(n,i){void 0===i&&(i={});var e=t.call(this,5,i.fixed28BitMode)||this;return e.data=n,e}su(n,t),n.prototype.getDescriptorSize=function(){return this.data.length},n.prototype.serializeDescriptorContent=function(t){t.concat(du.from(this.data))}}(Lu);var Uu=function(t){function n(n){void 0===n&&(n=!1);var i=t.call(this,6,n)||this;return i.predefined=2,i}return su(n,t),n.prototype.getDescriptorSize=function(){return 1},n.prototype.serializeDescriptorContent=function(t){t.writer.writeByte(this.predefined)},n}(Lu);!function(t){function n(n,i,e,r){void 0===r&&(r={});var o=t.call(this,3,r.fixed28BitMode)||this;return o.decoderConfigDescriptor=e,o.esId=n,o.streamPriority=i,o.dependsOnEsId=null==r?void 0:r.dependsOnEsId,o.urlString=null==r?void 0:r.url,o.ocrEsId=null==r?void 0:r.ocrEsId,o.slConfigDescriptor=new Uu(r.fixed28BitMode),o}su(n,t),c.defineProperty(n.prototype,"streamDependenceFlag",{get:function(){return void 0!==this.dependsOnEsId},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"urlFlag",{get:function(){return void 0!==this.urlString},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"ocrStreamFlag",{get:function(){return void 0!==this.ocrEsId},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"esId",{get:function(){return this.Po},set:function(t){if(!gu(t,16))throw new f("Provided esId does not fit in 16 bits.");this.Po=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"streamPriority",{get:function(){return this.Oo},set:function(t){if(!gu(t,5))throw new f("Provided streamPriority does not fit in 5 bits.");this.Oo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"dependsOnEsId",{get:function(){return this.Bo},set:function(t){if(t&&!gu(t,16))throw new f("Provided dependsOnEsId does not fit in 16 bits.");this.Bo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"ocrEsId",{get:function(){return this.Lo},set:function(t){if(t&&!gu(t,16))throw new f("Provided ocrEsId does not fit in 16 bits.");this.Lo=t},enumerable:!1,configurable:!0}),n.prototype.getDescriptorSize=function(){return 3+(this.streamDependenceFlag?2:0)+(this.urlFlag?1+this.urlString.length:0)+(this.ocrStreamFlag?2:0)+this.decoderConfigDescriptor.getSize()+this.slConfigDescriptor.getSize()},n.prototype.serializeDescriptorContent=function(t){t.writer.writeUInt(this.esId,16),t.writer.writeBool(this.streamDependenceFlag),t.writer.writeBool(this.urlFlag),t.writer.writeBool(this.ocrStreamFlag),t.writer.writeUInt(this.streamPriority,5),this.streamDependenceFlag&&t.writer.writeUInt(this.dependsOnEsId,16),this.urlFlag&&(t.writer.writeByte(this.urlString.length),t.writer.writeString(this.urlString)),this.ocrStreamFlag&&t.writer.writeUInt(this.ocrEsId,16),this.decoderConfigDescriptor.serialize(t),this.slConfigDescriptor.serialize(t)}}(Lu);var Mu=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.boxes=[],n}return su(n,t),n.prototype.getSize=function(){return t.prototype.getSize.call(this)+this.boxes.reduce(function(t,n){return t+n.getSize()},0)},n.prototype.serialize=function(){for(var n=t.prototype.serialize.call(this),i=0,e=this.boxes;i<e.length;i++){var r=e[i];n=n.concat(r.serialize())}return n},n}(bu),zu=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return su(n,t),n.prototype.serializeBoxContent=function(t){},n.prototype.getBoxContentSize=function(){return 0},n}(Mu),Wu=function(t){function n(n,i){var e=t.call(this,n)||this;return e.dataReferenceIndex=i,e}return su(n,t),c.defineProperty(n.prototype,"dataReferenceIndex",{get:function(){return this.Mo},set:function(t){if(!gu(t,16))throw new f("Provided dataReferenceIndex does not fit in 16 bits.");this.Mo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 8},n.prototype.serializeBoxContent=function(t){for(var n=0;n<6;n++)t.writer.writeByte(0);t.writer.writeUInt(this.dataReferenceIndex,16)},n}(zu),qu=function(t){function n(n,i,e,r){var o,u,s=this;return(s=t.call(this,n,i)||this).extra=r,s.channelCount=null!==(o=e.channelCount)&&void 0!==o?o:2,s.sampleSize=null!==(u=e.sampleSize)&&void 0!==u?u:16,s.sampleRate=e.sampleRate,s}return su(n,t),c.defineProperty(n.prototype,"channelCount",{get:function(){return this.xo},set:function(t){if(!gu(t,16))throw new f("Provided channelCount does not fit in 16 bits.");this.xo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"sampleSize",{get:function(){return this.Uo},set:function(t){if(!gu(t,16))throw new f("Provided sampleSize does not fit in 16 bits.");this.Uo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"sampleRate",{get:function(){return this.Fo},set:function(t){if(!gu(mu(t,16),32))throw new f("Provided rate does not fit in 32 bits (fixed 16.16).");this.Fo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){var n,i;return t.prototype.getBoxContentSize.call(this)+8+2+2+2+2+(void 0!==this.sampleRate?4:0)+(null!==(i=null===(n=this.extra)||void 0===n?void 0:n.length)&&void 0!==i?i:0)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),n.writer.writeUInt(this.channelCount,16),n.writer.writeUInt(this.sampleSize,16),n.writer.writeUInt(0,16),n.writer.writeUInt(0,16),n.writer.writeUInt(mu(this.sampleRate,16),32),this.extra&&pu(n.writer,this.extra)},n}(Wu);!function(t){function n(n){var i=t.call(this,"stco",0,0)||this;return i.entries=n,i}su(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Ho},set:function(t){if(!gu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!gu(t,32)}))throw new f("Not all entries can be represented in 32 bits.");this.Ho=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r,32)}}}(yu),function(t){function n(n){var i=t.call(this,"clap")||this;return i.cleanApertureWidthN=n.cleanApertureWidthN,i.cleanApertureWidthD=n.cleanApertureWidthD,i.cleanApertureHeightN=n.cleanApertureHeightN,i.cleanApertureHeightD=n.cleanApertureHeightD,i.horizOffN=n.horizOffN,i.horizOffD=n.horizOffD,i.vertOffN=n.vertOffN,i.vertOffD=n.vertOffD,i}su(n,t),c.defineProperty(n.prototype,"cleanApertureWidthN",{get:function(){return this.Vo},set:function(t){if(!gu(t,32))throw new f("Provided cleanApertureWidthN does not fit in 32 bits.");this.Vo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"cleanApertureWidthD",{get:function(){return this.Xo},set:function(t){if(!gu(t,32))throw new f("Provided cleanApertureWidthD does not fit in 32 bits.");this.Xo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"cleanApertureHeightN",{get:function(){return this.zo},set:function(t){if(!gu(t,32))throw new f("Provided cleanApertureHeightN does not fit in 32 bits.");this.zo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"cleanApertureHeightD",{get:function(){return this.qo},set:function(t){if(!gu(t,32))throw new f("Provided cleanApertureHeightD does not fit in 32 bits.");this.qo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"horizOffN",{get:function(){return this.Wo},set:function(t){if(!gu(t,32))throw new f("Provided horizOffN does not fit in 32 bits.");this.Wo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"horizOffD",{get:function(){return this.Go},set:function(t){if(!gu(t,32))throw new f("Provided horizOffD does not fit in 32 bits.");this.Go=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"vertOffN",{get:function(){return this.Yo},set:function(t){if(!gu(t,32))throw new f("Provided vertOffN does not fit in 32 bits.");this.Yo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"vertOffD",{get:function(){return this.jo},set:function(t){if(!gu(t,32))throw new f("Provided vertOffD does not fit in 32 bits.");this.jo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 32},n.prototype.serializeBoxContent=function(t){t.writer.writeUInt(this.cleanApertureWidthN,32),t.writer.writeUInt(this.cleanApertureWidthD,32),t.writer.writeUInt(this.cleanApertureHeightN,32),t.writer.writeUInt(this.cleanApertureHeightD,32),t.writer.writeUInt(this.horizOffN,32),t.writer.writeUInt(this.horizOffD,32),t.writer.writeUInt(this.vertOffN,32),t.writer.writeUInt(this.vertOffD,32)}}(bu),function(t){function n(n,i){var e=t.call(this,"ctts",n,0)||this;return e.entries=i,e}su(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Ho},set:function(t){if(!gu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!gu(t.sampleCount,32)||!gu(t.sampleOffset,32)}))throw new f("Not all entries can be represented in 64 bits.");this.Ho=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+8*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r.sampleCount,32),0===this.version?n.writer.writeUInt(r.sampleOffset,32):1===this.version&&n.writer.writeInt(r.sampleOffset,32)}}}(yu),function(t){function n(n){var i=t.call(this,"url ",0,void 0===n?1:0)||this;return i.location=n,i}su(n,t),c.defineProperty(n.prototype,"location",{get:function(){return this.Qo},set:function(t){this.flags=void 0===t?1:0,this.Qo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){var n=t.prototype.getBoxContentSize.call(this);return this.location?n+this.location.length+1:n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.location&&(n.writer.writeString(this.location),n.writer.writeByte(0))}}(yu),function(t){function n(n,i,e){var r=t.call(this,"urn ",0,e)||this;return r.name=n,r.location=i,r}su(n,t),c.defineProperty(n.prototype,"location",{get:function(){return this.Qo},set:function(t){if(1&this.flags)throw new f("The moov containment flag is set, a DataEntryUrlBox should be used instead.");this.Qo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){var n=t.prototype.getBoxContentSize.call(this)+this.name.length+1;return this.location?n+this.location.length+1:n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeString(this.name),n.writer.writeByte(0),this.location&&(n.writer.writeString(this.location),n.writer.writeByte(0))}}(yu),function(t){function n(){return t.call(this,"dinf")||this}su(n,t)}(zu);var ju=function(t){function n(n,i,e){var r=t.call(this,n)||this;if(r.version=i,!gu(i,8))throw new f("the provided version cannot fit in 8 bits.");return r.flags=e,r}return su(n,t),c.defineProperty(n.prototype,"flags",{get:function(){return this.To},set:function(t){this.To=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4},n.prototype.serializeFlags=function(t){if("number"!=typeof this.flags)throw new f("Missing custom serializeFlags method.");t.writer.writeUInt(this.flags,24)},n.prototype.serializeBoxContent=function(t){t.writer.writeByte(this.version),this.serializeFlags(t)},n}(Mu);!function(t){function n(){return t.call(this,"dref",0,0)||this}su(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.boxes.length,32)}}(ju);var Vu=function(t){function n(n,i,e){void 0===e&&(e=0);var r=t.call(this,"elst",i,e)||this;return r.entries=n,r}return su(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"entries",{get:function(){return this.Ho},set:function(t){for(var n=0,i=t;n<i.length;n++){var e=i[n];if(!gu(e.segmentDuration,this.bitSize))throw new f("SegmentDuration of one of the entries does not fit in ".concat(this.bitSize," bits."));if(!gu(e.mediaTime,this.bitSize))throw new f("MediaTime of one of the entries does not fit in ".concat(this.bitSize," bits."));if(!gu(e.mediaRateInteger,16))throw new f("Provided mediaRateInteger does not fit in 16 bits.");if(e.mediaRateFraction&&!gu(e.mediaRateFraction,16))throw new f("Provided mediaRateFraction does not fit in 16 bits.")}this.Ho=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+this.entries.length*(2*this.bitSize/8+2+2)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32),this.serializeElstBoxContent(n)},n}(yu);!function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,0,i)||this}su(n,t),n.prototype.serializeElstBoxContent=function(t){for(var n,i=0,e=this.entries;i<e.length;i++){var r=e[i];t.writer.writeUInt(r.segmentDuration,32),t.writer.writeInt(r.mediaTime,32),t.writer.writeUInt(r.mediaRateInteger,16),t.writer.writeUInt(null!==(n=r.mediaRateFraction)&&void 0!==n?n:0,16)}}}(Vu),function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,1,i)||this}su(n,t),n.prototype.serializeElstBoxContent=function(t){for(var n,i=0,e=this.entries;i<e.length;i++){var r=e[i];t.writer.writeUInt(r.segmentDuration.getHighBitsUnsigned(),32),t.writer.writeUInt(r.segmentDuration.getLowBitsUnsigned(),32),t.writer.writeInt(r.mediaTime.getHighBits(),32),t.writer.writeInt(r.mediaTime.getLowBits(),32),t.writer.writeUInt(r.mediaRateInteger,16),t.writer.writeUInt(null!==(n=r.mediaRateFraction)&&void 0!==n?n:0,16)}}}(Vu),function(t){function n(){return t.call(this,"edts")||this}su(n,t)}(zu);var Hu=function(t){function n(n,i,e,r){var o=t.call(this,n)||this;return o.majorBrand=i,o.minorVersion=e,o.compatibleBrands=r,o}return su(n,t),c.defineProperty(n.prototype,"majorBrand",{get:function(){return this.Ko},set:function(t){if(4!==t.length)throw new f("the provided major brand does not conform to the 4 character requirement");this.Ko=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"minorVersion",{get:function(){return this.Zo},set:function(t){if(!gu(t,32))throw new f("the provided minor version does not fit in 32 bits.");this.Zo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"compatibleBrands",{get:function(){return this.Jo},set:function(t){if(t.some(function(t){return 4!==t.length}))throw new f("Some of the compatible brands do not conform to the 4 character requirement");this.Jo=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4*(2+this.compatibleBrands.length)},n.prototype.serializeBoxContent=function(t){t.writer.writeString(this.majorBrand),t.writer.writeUInt(this.minorVersion,32);for(var n=0,i=this.compatibleBrands;n<i.length;n++){var e=i[n];t.writer.writeString(e)}},n}(bu);!function(t){function n(n,i,e){return t.call(this,"ftyp",n,i,e)||this}su(n,t)}(Hu),function(t){function n(n,i){void 0===i&&(i="free");var e=t.call(this,i)||this;return e.data=n,e}su(n,t),n.prototype.getBoxContentSize=function(){var t,n;return null!==(n=null===(t=this.data)||void 0===t?void 0:t.length)&&void 0!==n?n:0},n.prototype.serializeBoxContent=function(t){this.data&&t.concat(du.from(this.data))}}(bu);var Xu,Gu=function(t){function n(n,i,e,r){void 0===r&&(r=0);var o=t.call(this,"mdhd",e,r)||this;return o.creationTime=n.creation,o.modificationTime=n.modification,o.timescale=n.scale,o.duration=n.duration,o.language=i,o}return su(n,t),c.defineProperty(n.prototype,"creationTime",{get:function(){return this.$o},set:function(t){if(!gu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.$o=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"modificationTime",{get:function(){return this.nh},set:function(t){if(!gu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.nh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"timescale",{get:function(){return this.ih},set:function(t){if(!gu(t,32))throw new f("Provided sequence number does not fit in 32 bits.");this.ih=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"duration",{get:function(){return this.eh},set:function(t){if(!gu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.eh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"language",{get:function(){return this.rh},set:function(t){if(!function(t){return/^[a-z]{3}$/.test(t)}(t))throw new f("Expected an ISO-639-2/T language code");this.rh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8*3+4+2+2},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.serializeMdiaContent(n),n.writer.writeBit(0);for(var i=0,e=this.language;i<e.length;i++){var r=e[i];n.writer.writeUInt(r.charCodeAt(0)-96,5)}n.writer.writeUInt(0,16)},n}(yu);!function(t){function n(n,i,e){return void 0===e&&(e=0),t.call(this,n,i,0,e)||this}su(n,t),n.prototype.serializeMdiaContent=function(t){t.writer.writeUInt(this.creationTime,32),t.writer.writeUInt(this.modificationTime,32),t.writer.writeUInt(this.timescale,32),t.writer.writeUInt(this.duration,32)}}(Gu),function(t){function n(n,i,e){return void 0===e&&(e=0),t.call(this,n,i,1,e)||this}su(n,t),n.prototype.serializeMdiaContent=function(t){t.writer.writeUInt(this.creationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.creationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.timescale,32),t.writer.writeUInt(this.duration.getHighBitsUnsigned(),32),t.writer.writeUInt(this.duration.getLowBitsUnsigned(),32)}}(Gu),function(t){function n(){return t.call(this,"mdia")||this}su(n,t)}(zu),function(t){function n(){var n=t.call(this,"mdat")||this;return n.data=new du,n}su(n,t),n.prototype.getBoxContentSize=function(){return this.data.length},n.prototype.serializeBoxContent=function(t){t.concat(this.data)}}(bu),function(t){function n(){return t.call(this,"minf")||this}su(n,t)}(zu),function(t){function n(n){var i=t.call(this,"meta",0,0)||this;return i.handler=n,i}su(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.handler.getSize()},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.concat(this.handler.serialize())}}(ju),function(t){t.VIDEO="vide",t.AUXILIARY_VIDEO="auxv",t.AUDIO="soun",t.METADATA="meta",t.HINT="hint",t.TEXT="text",t.SUBTITLE="subt",t.FONT="fdsm"}(Xu||(Xu={}));var Yu,Ku,$u={a:1,b:0,u:0,c:0,d:1,v:0,x:0,y:0,w:1};function Ju(t,n){n.writer.writeUInt(mu(t.a,16),32),n.writer.writeUInt(mu(t.b,16),32),n.writer.writeUInt(mu(0,30),32),n.writer.writeUInt(mu(t.c,16),32),n.writer.writeUInt(mu(t.d,16),32),n.writer.writeUInt(mu(0,30),32),n.writer.writeUInt(mu(t.x,16),32),n.writer.writeUInt(mu(t.y,16),32),n.writer.writeUInt(mu(1,30),32)}function Zu(t,n){var i,e,r,o;n.writer.writeUInt(null!==(i=t.isLeading)&&void 0!==i?i:Yu.UNKNOWN,2),n.writer.writeUInt(null!==(e=t.sampleDependsOn)&&void 0!==e?e:Ku.UNKNOWN,2),n.writer.writeUInt(null!==(r=t.sampleIsDependedOn)&&void 0!==r?r:Ku.UNKNOWN,2),n.writer.writeUInt(null!==(o=t.sampleHasRedundancy)&&void 0!==o?o:Ku.UNKNOWN,2)}function Qu(t,n){var i,e,r;n.writer.writeUInt(0,4),Zu(t,n),n.writer.writeUInt(null!==(i=t.samplePaddingValue)&&void 0!==i?i:0,3),n.writer.writeBool(null!==(e=t.sampleIsNonSyncSample)&&void 0!==e&&e),n.writer.writeUInt(null!==(r=t.sampleDegradationPriority)&&void 0!==r?r:0,16)}!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WITH_DEPENDENCY=1]="WITH_DEPENDENCY",t[t.NO=2]="NO",t[t.WITHOUT_DEPENDENCY=3]="WITHOUT_DEPENDENCY"}(Yu||(Yu={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.YES=1]="YES",t[t.NO=2]="NO",t[t.RESERVED=3]="RESERVED"}(Ku||(Ku={}));var ts=function(){return function(){}}(),ns=function(t){function n(n,i,e){var r=t.call(this,"pssh",n,0)||this;return r.systemId=i,r.data=e,r}return su(n,t),c.defineProperty(n.prototype,"systemId",{get:function(){return this.sh},set:function(t){if(16!==t.length)throw new f("Provided systemId length is not 16.");this.sh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"data",{get:function(){return this.Wi},set:function(t){if(!gu(t.length,32))throw new f("Provided data length does not fit in 32 bits.");this.Wi=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+16+4+this.data.length},n.prototype.serializeVersionBoxContent=function(t){},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.concat(du.from(this.systemId)),this.serializeVersionBoxContent(n),n.writer.writeUInt(this.data.length,32),n.concat(du.from(this.data))},n}(yu),is=function(t){function n(n,i){return t.call(this,0,n,i)||this}return su(n,t),n}(ns),es=function(t){function n(n,i,e){var r=t.call(this,1,n,i)||this;return r.kIds=e,r}return su(n,t),c.defineProperty(n.prototype,"kIds",{get:function(){return this.uh},set:function(t){if(!gu(t.length,32))throw new f("Provided kIds length cannot fit in 32 bits.");if(t.some(function(t){return 16!==t.length}))throw new f("Not all provided key ids are 16 bytes long.");this.uh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+16*this.kIds.length},n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.kIds.length,32);for(var n=0,i=this.kIds;n<i.length;n++){var e=i[n];t.concat(du.from(e))}},n}(ns);var rs=function(t){function n(n,i,e){void 0===e&&(e=0);var r=t.call(this,"mehd",i,e)||this;return r.fragmentDuration=n,r}return su(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"fragmentDuration",{get:function(){return this.oh},set:function(t){if(!gu(t,this.bitSize))throw new f("The provided fragmentDuration does not fit in ".concat(this.bitSize," bits."));this.oh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8},n}(yu);!function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,0,i)||this}su(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.fragmentDuration,32)}}(rs),function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,1,i)||this}su(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.fragmentDuration.getHighBitsUnsigned(),32),n.writer.writeUInt(this.fragmentDuration.getLowBitsUnsigned(),32)}}(rs),function(t){function n(n,i,e,r){void 0===i&&(i={}),void 0===e&&(e=0),void 0===r&&(r=0);var o,u,s,f=this;return(f=t.call(this,"trex",e,r)||this).trackId=n,f.defaultSampleDescriptionIndex=null!==(o=null==i?void 0:i.sampleDescriptionIndex)&&void 0!==o?o:0,f.defaultSampleDuration=null!==(u=i.sampleDuration)&&void 0!==u?u:0,f.defaultSampleSize=null!==(s=i.sampleSize)&&void 0!==s?s:0,f.defaultSampleFlags=i.sampleFlags,f}su(n,t),c.defineProperty(n.prototype,"trackId",{get:function(){return this.hh},set:function(t){if(!gu(t,32))throw new f("Provided track id does not fit in 32 bits.");this.hh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleDescriptionIndex",{get:function(){return this.ah},set:function(t){if(!gu(t,32))throw new f("Provided default sample description index does not fit in 32 bits.");this.ah=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleDuration",{get:function(){return this.fh},set:function(t){if(!gu(t,32))throw new f("Provided default sample duration does not fit in 32 bits.");this.fh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleSize",{get:function(){return this.vh},set:function(t){if(!gu(t,32))throw new f("Provided default sample size does not fit in 32 bits.");this.vh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleFlags",{get:function(){return this.dh},set:function(t){if((null==t?void 0:t.samplePaddingValue)&&!gu(t.samplePaddingValue,3))throw new f("Provided sample padding value does not fit in 3 bits.");if((null==t?void 0:t.sampleDegradationPriority)&&!gu(t.sampleDegradationPriority,16))throw new f("Provided sample degradation priority does not fit in 16 bits.");this.dh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+20},n.prototype.serializeBoxContent=function(n){var i;t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.trackId,32),n.writer.writeUInt(this.defaultSampleDescriptionIndex,32),n.writer.writeUInt(this.defaultSampleDuration,32),n.writer.writeUInt(this.defaultSampleSize,32),Qu(null!==(i=this.defaultSampleFlags)&&void 0!==i?i:{},n)}}(yu),function(t){function n(){return t.call(this,"mvex")||this}su(n,t)}(zu);var os=function(t){function n(i,e,r,o,u){void 0===u&&(u=0);var s,f,h,c=this;return(c=t.call(this,"mvhd",o,u)||this).creationTime=i.creation,c.modificationTime=i.modification,c.timescale=i.scale,c.duration=i.duration,c.rate=null!==(s=r.rate)&&void 0!==s?s:n.DEFAULT_RATE,c.volume=null!==(f=r.volume)&&void 0!==f?f:n.DEFAULT_VOLUME,c.matrix=null!==(h=r.matrix)&&void 0!==h?h:$u,c.lh=e,c}return su(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"creationTime",{get:function(){return this.$o},set:function(t){if(!gu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.$o=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"modificationTime",{get:function(){return this.nh},set:function(t){if(!gu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.nh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"timescale",{get:function(){return this.ih},set:function(t){if(!gu(t,32))throw new f("Provided sequence number does not fit in 32 bits.");this.ih=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"duration",{get:function(){return this.eh},set:function(t){if(!gu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.eh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"rate",{get:function(){return this._h},set:function(t){if(!gu(mu(t,16),32))throw new f("Provided rate does not fit in 32 bits (fixed 16.16).");this._h=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"volume",{get:function(){return this.gh},set:function(t){if(!gu(mu(t,8),16))throw new f("Provided volume does not fit in 16 bits (fixed 8.8).");this.gh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"matrix",{get:function(){return this.wh},set:function(t){if(0!==t.u||0!==t.v||1!==t.w)throw new f("(u, v, w) does not match the required (0, 0, 1)");this.wh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"nextTrackId",{get:function(){return this.lh},set:function(t){if(0===t)throw new f("NextTrackId cannot be 0.");if(!gu(t,32))throw new f("NextTrackId cannot exceed 32 bits.");this.lh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8*3+4+4+2+2+8+36+24+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.serializeMvhdContent(n),n.writer.writeUInt(mu(this.rate,16),32),n.writer.writeUInt(mu(this.volume,8),16),n.writer.writeUInt(0,16),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),Ju(this.matrix,n);for(var i=0;i<6;i++)n.writer.writeUInt(0,32);n.writer.writeUInt(this.nextTrackId,32)},n.DEFAULT_RATE=1,n.DEFAULT_VOLUME=1,n}(yu);!function(t){function n(n,i,e,r){return void 0===e&&(e={}),void 0===r&&(r=0),t.call(this,n,i,e,0,r)||this}su(n,t),n.prototype.serializeMvhdContent=function(t){t.writer.writeUInt(this.creationTime,32),t.writer.writeUInt(this.modificationTime,32),t.writer.writeUInt(this.timescale,32),t.writer.writeUInt(this.duration,32)}}(os),function(t){function n(n,i,e,r){return void 0===e&&(e={}),void 0===r&&(r=0),t.call(this,n,i,e,1,r)||this}su(n,t),n.prototype.serializeMvhdContent=function(t){t.writer.writeUInt(this.creationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.creationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.timescale,32),t.writer.writeUInt(this.duration.getHighBitsUnsigned(),32),t.writer.writeUInt(this.duration.getLowBitsUnsigned(),32)}}(os);var us=function(t){function n(n,i,e,r,o,u,s){void 0===s&&(s={});var f,h,c,a=this;return(a=t.call(this,"tkhd",n,function(t){var n,i,e,r;return{trackEnabled:null===(n=null==t?void 0:t.trackEnabled)||void 0===n||n,trackInMovie:null===(i=null==t?void 0:t.trackInMovie)||void 0===i||i,trackInPreview:null===(e=null==t?void 0:t.trackInPreview)||void 0===e||e,trackSizeIsAspectRatio:null!==(r=null==t?void 0:t.trackSizeIsAspectRatio)&&void 0!==r&&r}}(s))||this).creationTime=i.creation,a.modificationTime=i.modification,a.trackId=e,a.duration=i.duration,a.volume=r,a.width=o,a.height=u,a.layer=null!==(f=s.layer)&&void 0!==f?f:0,a.alternateGroup=null!==(h=s.alternateGroup)&&void 0!==h?h:0,a.matrix=null!==(c=s.matrix)&&void 0!==c?c:$u,a}return su(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"creationTime",{get:function(){return this.$o},set:function(t){if(!gu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.$o=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"modificationTime",{get:function(){return this.nh},set:function(t){if(!gu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.nh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"trackId",{get:function(){return this.hh},set:function(t){if(0===t)throw new f("trackId cannot be 0.");if(!gu(t,32))throw new f("trackId cannot exceed 32 bits.");this.hh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"duration",{get:function(){return this.eh},set:function(t){if(!gu(t,this.bitSize))throw new f("Provided sequence number does not fit in ".concat(this.bitSize," bits."));this.eh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"volume",{get:function(){return this.gh},set:function(t){if(!gu(mu(t,8),16))throw new f("Provided volume does not fit in 16 bits (fixed 8.8).");this.gh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"width",{get:function(){return this.kh},set:function(t){if(!gu(mu(t,16),32))throw new f("Provided width does not fit in 32 bits (fixed 16.16).");this.kh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"height",{get:function(){return this.yh},set:function(t){if(!gu(mu(t,16),32))throw new f("Provided height does not fit in 32 bits (fixed 16.16).");this.yh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"layer",{get:function(){return this.ph},set:function(t){if(!gu(t,16))throw new f("Provided layer does not fit in 16 bits.");this.ph=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"alternateGroup",{get:function(){return this.Ah},set:function(t){if(!gu(t,16))throw new f("Provided alternateGroup does not fit in 16 bits.");this.Ah=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"matrix",{get:function(){return this.wh},set:function(t){if(0!==t.u||0!==t.v||1!==t.w)throw new f("(u, v, w) does not match the required (0, 0, 1)");this.wh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8*3+4+4+8+2+2+2+2+36+4+4},n.prototype.serializeFlags=function(t){t.writer.writeUInt(0,20),t.writer.writeBool(this.flags.trackSizeIsAspectRatio),t.writer.writeBool(this.flags.trackInPreview),t.writer.writeBool(this.flags.trackInMovie),t.writer.writeBool(this.flags.trackEnabled)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.serializeTkhdContent(n),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),n.writer.writeUInt(this.layer,16),n.writer.writeUInt(this.alternateGroup,16),n.writer.writeUInt(mu(this.volume,8),16),n.writer.writeUInt(0,16),Ju(this.matrix,n),n.writer.writeUInt(mu(this.width,16),32),n.writer.writeUInt(mu(this.height,16),32)},n}(yu);!function(t){function n(n,i,e,r,o,u){return t.call(this,0,n,i,e,r,o,u)||this}su(n,t),n.prototype.serializeTkhdContent=function(t){t.writer.writeUInt(this.creationTime,32),t.writer.writeUInt(this.modificationTime,32),t.writer.writeUInt(this.trackId,32),t.writer.writeUInt(0,32),t.writer.writeUInt(this.duration,32)}}(us),function(t){function n(n,i,e,r,o,u){return t.call(this,1,n,i,e,r,o,u)||this}su(n,t),n.prototype.serializeTkhdContent=function(t){t.writer.writeUInt(this.creationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.creationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.modificationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.trackId,32),t.writer.writeUInt(0,32),t.writer.writeUInt(this.duration.getHighBitsUnsigned(),32),t.writer.writeUInt(this.duration.getLowBitsUnsigned(),32)}}(us),function(t){function n(){return t.call(this,"trak")||this}su(n,t)}(zu),function(t){function n(){return t.call(this,"moov")||this}su(n,t)}(zu);var ss=function(t){function n(n,i,e){void 0===e&&(e=0);var r=t.call(this,"tfdt",i,e)||this;return r.baseMediaDecodeTime=n,r}return su(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"baseMediaDecodeTime",{get:function(){return this.Th},set:function(t){if(!gu(t,this.bitSize))throw new f("Provided baseMediaDecodeTime does not fit in ".concat(this.bitSize," bits."));this.Th=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8},n}(yu);!function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,0,i)||this}su(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.baseMediaDecodeTime,32)}}(ss),function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,1,i)||this}su(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.baseMediaDecodeTime.getHighBitsUnsigned(),32),n.writer.writeUInt(this.baseMediaDecodeTime.getLowBitsUnsigned(),32)}}(ss),function(t){function n(n,i){void 0===i&&(i=0);var e=t.call(this,"tfhd",i,function(t){return{baseDataOffsetPresent:void 0!==t.baseDataOffset,sampleDescriptionIndexPresent:void 0!==t.sampleDescriptionIndex,defaultSampleDurationPresent:void 0!==t.defaultSampleDuration,defaultSampleSizePresent:void 0!==t.defaultSampleSize,defaultSampleFlagsPresent:void 0!==t.defaultSampleFlags,durationIsEmpty:t.durationIsEmpty,defaultBaseIsMoof:t.defaultBaseIsMoof}}(n))||this;return e.trackId=n.trackId,e.baseDataOffset=n.baseDataOffset,e.sampleDescriptionIndex=n.sampleDescriptionIndex,e.defaultSampleDuration=n.defaultSampleDuration,e.defaultSampleSize=n.defaultSampleSize,e.defaultSampleFlags=n.defaultSampleFlags,e}su(n,t),c.defineProperty(n.prototype,"trackId",{get:function(){return this.hh},set:function(t){if(!gu(t,32))throw new f("Provided track id does not fit in 32 bits.");this.hh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"baseDataOffset",{get:function(){return this.Sh},set:function(t){if(void 0===t&&this.flags.baseDataOffsetPresent)throw new f("The base data offset present flag is set.");if(void 0!==t&&!this.flags.baseDataOffsetPresent)throw new f("The base data offset present flag is not set.");if(t&&!gu(t,64))throw new f("Provided baseDataOffset does not fit in 32 bits.");this.Sh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"sampleDescriptionIndex",{get:function(){return this.Eh},set:function(t){if(void 0===t&&this.flags.sampleDescriptionIndexPresent)throw new f("The sample description index flag is set.");if(void 0!==t&&!this.flags.sampleDescriptionIndexPresent)throw new f("The sample description index flag is not set.");if(t&&!gu(t,32))throw new f("Provided sampleDescriptionIndex does not fit in 32 bits.");this.Eh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleDuration",{get:function(){return this.fh},set:function(t){if(void 0===t&&this.flags.defaultSampleDurationPresent)throw new f("The default sample duration present flag is set.");if(void 0!==t&&!this.flags.defaultSampleDurationPresent)throw new f("The default sample duration present flag is not set.");if(t&&!gu(t,32))throw new f("Provided defaultSampleDuration does not fit in 32 bits.");this.fh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleSize",{get:function(){return this.vh},set:function(t){if(void 0===t&&this.flags.defaultSampleSizePresent)throw new f("The default sample size present flag is set.");if(void 0!==t&&!this.flags.defaultSampleSizePresent)throw new f("The default sample size present flag is not set.");if(t&&!gu(t,32))throw new f("Provided defaultSampleSize does not fit in 32 bits.");this.vh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleFlags",{get:function(){return this.dh},set:function(t){if(void 0===t&&this.flags.defaultSampleFlagsPresent)throw new f("The default sample flags present flag is set.");if(void 0!==t&&!this.flags.defaultSampleFlagsPresent)throw new f("The default sample flags present flag is not set.");if((null==t?void 0:t.samplePaddingValue)&&!gu(t.samplePaddingValue,3))throw new f("Provided sample padding value does not fit in 3 bits.");if((null==t?void 0:t.sampleDegradationPriority)&&!gu(t.sampleDegradationPriority,16))throw new f("Provided sample degradation priority does not fit in 16 bits.");this.dh=t},enumerable:!1,configurable:!0}),n.prototype.serializeFlags=function(t){t.writer.writeUInt(0,6),t.writer.writeBool(this.flags.defaultBaseIsMoof),t.writer.writeBool(this.flags.durationIsEmpty),t.writer.writeByte(0),t.writer.writeUInt(0,2),t.writer.writeBool(this.flags.defaultSampleFlagsPresent),t.writer.writeBool(this.flags.defaultSampleSizePresent),t.writer.writeBool(this.flags.defaultSampleDurationPresent),t.writer.writeBit(0),t.writer.writeBool(this.flags.sampleDescriptionIndexPresent),t.writer.writeBool(this.flags.baseDataOffsetPresent)},n.prototype.getBoxContentSize=function(){var n=t.prototype.getBoxContentSize.call(this)+4;return this.flags.baseDataOffsetPresent&&(n+=8),this.flags.sampleDescriptionIndexPresent&&(n+=4),this.flags.defaultSampleDurationPresent&&(n+=4),this.flags.defaultSampleSizePresent&&(n+=4),this.flags.defaultSampleFlagsPresent&&(n+=4),n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.trackId,32),this.flags.baseDataOffsetPresent&&(n.writer.writeUInt(this.baseDataOffset.getHighBitsUnsigned(),32),n.writer.writeUInt(this.baseDataOffset.getLowBitsUnsigned(),32)),this.flags.sampleDescriptionIndexPresent&&n.writer.writeUInt(this.sampleDescriptionIndex,32),this.flags.defaultSampleDurationPresent&&n.writer.writeUInt(this.defaultSampleDuration,32),this.flags.defaultSampleSizePresent&&n.writer.writeUInt(this.defaultSampleSize,32),this.flags.defaultSampleFlagsPresent&&Qu(this.defaultSampleFlags,n)}}(yu),function(t){function n(n,i,e){var r=t.call(this,"trun",n,function(t){var n,i,e,r;return{dataOffsetPresent:void 0!==t.dataOffset,firstSampleFlagsPresent:void 0!==t.firstSampleFlags,sampleDurationPresent:null!==(n=t.sampleDurationPresent)&&void 0!==n&&n,sampleSizePresent:null!==(i=t.sampleSizePresent)&&void 0!==i&&i,sampleFlagsPresent:null!==(e=t.sampleFlagsPresent)&&void 0!==e&&e,sampleCompositionTimeOffsetsPresent:null!==(r=t.sampleCompositionTimeOffsetsPresent)&&void 0!==r&&r}}(i))||this;return r.dataOffset=i.dataOffset,r.samples=e,r.firstSampleFlags=i.firstSampleFlags,r}su(n,t),c.defineProperty(n.prototype,"dataOffset",{get:function(){return this.Ih},set:function(t){if(t&&!gu(t,32))throw new f("Provided data offset does not fit in 32 bits.");this.Ih=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"firstSampleFlags",{get:function(){return this.Rh},set:function(t){if((null==t?void 0:t.samplePaddingValue)&&!gu(t.samplePaddingValue,3))throw new f("Provided sample padding value does not fit in 3 bits.");if((null==t?void 0:t.sampleDegradationPriority)&&!gu(t.sampleDegradationPriority,16))throw new f("Provided sample degradation priority does not fit in 16 bits.");this.Rh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"samples",{get:function(){return this.Nh},set:function(t){var n,i;if(!gu(t.length,32))throw new f("The sample count cannot be represented in 32 bits.");for(var e=0,r=t;e<r.length;e++){var o=r[e];if(void 0===o.duration&&this.flags.sampleDurationPresent)throw new f("The sample duration present flag is set.");if(void 0!==o.duration&&!this.flags.sampleDurationPresent)throw new f("The sample duration present flag is not set.");if(o.duration&&!gu(o.duration,32))throw new f("Provided sample duration does not fit in 32 bits.");if(void 0===o.size&&this.flags.sampleSizePresent)throw new f("The sample size present flag is set.");if(void 0!==o.size&&!this.flags.sampleSizePresent)throw new f("The sample size present flag is not set.");if(o.size&&!gu(o.size,32))throw new f("Provided sample size does not fit in 32 bits.");if(void 0===o.flags&&this.flags.sampleFlagsPresent)throw new f("The sample flags present flag is set.");if(void 0!==o.flags&&!this.flags.sampleFlagsPresent)throw new f("The sample flags present flag is not set.");if((null===(n=o.flags)||void 0===n?void 0:n.samplePaddingValue)&&!gu(o.flags.samplePaddingValue,3))throw new f("Provided sample padding value does not fit in 3 bits.");if((null===(i=o.flags)||void 0===i?void 0:i.sampleDegradationPriority)&&!gu(o.flags.sampleDegradationPriority,16))throw new f("Provided sample degradation priority does not fit in 16 bits.");if(void 0===o.compositionTimeOffset&&this.flags.sampleCompositionTimeOffsetsPresent)throw new f("The sample compositionTimeOffset present flag is set.");if(void 0!==o.compositionTimeOffset&&!this.flags.sampleCompositionTimeOffsetsPresent)throw new f("The sample compositionTimeOffset present flag is not set.");if(o.compositionTimeOffset&&!gu(o.compositionTimeOffset,32))throw new f("Provided sample compositionTimeOffset does not fit in 32 bits.")}this.Nh=t},enumerable:!1,configurable:!0}),n.prototype.serializeFlags=function(t){t.writer.writeByte(0),t.writer.writeUInt(0,4),t.writer.writeBool(this.flags.sampleCompositionTimeOffsetsPresent),t.writer.writeBool(this.flags.sampleFlagsPresent),t.writer.writeBool(this.flags.sampleSizePresent),t.writer.writeBool(this.flags.sampleDurationPresent),t.writer.writeUInt(0,5),t.writer.writeBool(this.flags.firstSampleFlagsPresent),t.writer.writeBit(0),t.writer.writeBool(this.flags.dataOffsetPresent)},n.prototype.getBoxContentSize=function(){var n=t.prototype.getBoxContentSize.call(this)+4;return this.flags.dataOffsetPresent&&(n+=4),this.flags.firstSampleFlagsPresent&&(n+=4),this.flags.sampleDurationPresent&&(n+=4*this.samples.length),this.flags.sampleSizePresent&&(n+=4*this.samples.length),this.flags.sampleFlagsPresent&&(n+=4*this.samples.length),this.flags.sampleCompositionTimeOffsetsPresent&&(n+=4*this.samples.length),n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.samples.length,32),this.flags.dataOffsetPresent&&n.writer.writeUInt(this.dataOffset,32),this.flags.firstSampleFlagsPresent&&Qu(this.firstSampleFlags,n);for(var i=0,e=this.samples;i<e.length;i++){var r=e[i];this.flags.sampleDurationPresent&&n.writer.writeUInt(r.duration,32),this.flags.sampleSizePresent&&n.writer.writeUInt(r.size,32),this.flags.sampleFlagsPresent&&Qu(r.flags,n),this.flags.sampleCompositionTimeOffsetsPresent&&(0===this.version?n.writer.writeUInt(r.compositionTimeOffset,32):n.writer.writeInt(r.compositionTimeOffset,32))}}}(yu),function(t){function n(){return t.call(this,"traf")||this}su(n,t)}(zu),function(t){function n(){return t.call(this,"moof")||this}su(n,t)}(zu),function(t){function n(n){var i=t.call(this,"mfhd",0,0)||this;return i.sequenceNumber=n,i}su(n,t),c.defineProperty(n.prototype,"sequenceNumber",{get:function(){return this.Dh},set:function(t){if(!gu(t,32))throw new f("Provided sequence number does not fit in 32 bits.");this.Dh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.sequenceNumber,32)}}(yu);var fs=function(t){function n(n){var i=t.call(this,"frma")||this;return i.codingName=n,i}return su(n,t),c.defineProperty(n.prototype,"codingName",{get:function(){return this.Ch},set:function(t){if(4!==t.length)throw new f("Provided coding name was not 4 characters long.");this.Ch=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4},n.prototype.serializeBoxContent=function(t){t.writer.writeString(this.codingName)},n}(bu);!function(t){function n(n,i){var e=t.call(this,"pasp")||this;return e.hSpacing=n,e.vSpacing=i,e}su(n,t),c.defineProperty(n.prototype,"hSpacing",{get:function(){return this.Ph},set:function(t){if(!gu(t,32))throw new f("Provided hSpacing does not fit in 32 bits.");this.Ph=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"vSpacing",{get:function(){return this.Oh},set:function(t){if(!gu(t,32))throw new f("Provided vSpacing does not fit in 32 bits.");this.Oh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 8},n.prototype.serializeBoxContent=function(t){t.writer.writeUInt(this.hSpacing,32),t.writer.writeUInt(this.vSpacing,32)}}(bu),function(t){function n(n,i,e){var r=t.call(this,n)||this;return r.sample=i,r.sinf=e,r}su(n,t),n.prototype.getBoxContentSize=function(){return this.sample.getBoxContentSize()+this.sinf.getSize()},n.prototype.serializeBoxContent=function(t){this.sample.serializeBoxContent(t),t.concat(this.sinf.serialize())}}(zu),function(t){function n(n,i,e){var r=t.call(this,"sinf")||this;return r.schm=i,r.schi=e,r.frma=new fs(n),r}su(n,t),n.prototype.getBoxContentSize=function(){var t,n,i,e;return this.frma.getSize()+(null!==(n=null===(t=this.schm)||void 0===t?void 0:t.getSize())&&void 0!==n?n:0)+(null!==(e=null===(i=this.schi)||void 0===i?void 0:i.getSize())&&void 0!==e?e:0)},n.prototype.serializeBoxContent=function(t){t.concat(this.frma.serialize()),this.schm&&t.concat(this.schm.serialize()),this.schi&&t.concat(this.schi.serialize())}}(bu);var hs=function(t){function n(n,i,e){var r=t.call(this,"saio",n,void 0===e?0:1)||this;return r.entries=i,r.explicitAuxInfoType=e,r}return su(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"entries",{get:function(){return this.Ho},set:function(t){var n=this;if(!gu(t.length,32))throw new f("Number of entries provided does not fit in 32 bits.");if(t.some(function(t){return!gu(t,n.bitSize)}))throw new f("Not all provided entries fit in ".concat(this.bitSize," bits."));this.Ho=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"explicitAuxInfoType",{get:function(){return this.Bh},set:function(t){if(void 0===t)this.flags=0;else{if(!gu(t.auxInfoType,32))throw new f("Provided auxInfoType does not fit in 32 bits.");if(!gu(t.auxInfoTypeParameter,32))throw new f("Provided auxInfoTypeParameter does not fit in 32 bits.");this.flags=1}this.Bh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+(void 0===this.explicitAuxInfoType?0:8)+4+this.entries.length*this.bitSize/8},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),void 0!==this.explicitAuxInfoType&&(n.writer.writeUInt(this.explicitAuxInfoType.auxInfoType,32),n.writer.writeUInt(this.explicitAuxInfoType.auxInfoTypeParameter,32)),n.writer.writeUInt(this.entries.length,32),this.serializeSaioContent(n)},n}(yu);!function(t){function n(){return null!==t&&t.apply(this,arguments)||this}su(n,t),n.prototype.serializeSaioContent=function(t){for(var n=0,i=this.entries;n<i.length;n++){var e=i[n];t.writer.writeUInt(e,32)}}}(hs),function(t){function n(){return null!==t&&t.apply(this,arguments)||this}su(n,t),n.prototype.serializeSaioContent=function(t){for(var n=0,i=this.entries;n<i.length;n++){var e=i[n];t.writer.writeUInt(e.getHighBitsUnsigned(),32),t.writer.writeUInt(e.getLowBitsUnsigned(),32)}}}(hs),function(t){function n(n,i,e){var r=t.call(this,"saiz",0,void 0===e?0:1)||this;return r.defaultSampleInfoSize=n,r.sampleInfoSizes=i,r.explicitAuxInfoType=e,r}su(n,t),c.defineProperty(n.prototype,"defaultSampleInfoSize",{get:function(){return this.Lh},set:function(t){if(!gu(t,8))throw new f("Provided defaultSampleInfoSize does not fit in a single byte.");this.Lh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"sampleInfoSizes",{get:function(){return this.Mh},set:function(t){if(!gu(t.length,32))throw new f("Number of sampleInfoSizes provided does not fit in 32 bits.");if(t.some(function(t){return!gu(t,8)}))throw new f("Not all provided sampleInfoSizes fit in a byte.");this.Mh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"explicitAuxInfoType",{get:function(){return this.Bh},set:function(t){if(void 0===t)this.flags=0;else{if(!gu(t.auxInfoType,32))throw new f("Provided auxInfoType does not fit in 32 bits.");if(!gu(t.auxInfoTypeParameter,32))throw new f("Provided auxInfoTypeParameter does not fit in 32 bits.");this.flags=1}this.Bh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+(void 0===this.explicitAuxInfoType?0:8)+1+4+(0!==this.defaultSampleInfoSize?0:this.sampleInfoSizes.length)},n.prototype.serializeBoxContent=function(n){if(0!==this.defaultSampleInfoSize&&this.sampleInfoSizes.length>0)throw new f("Both a default size and specific sizes are provided. This is prohibited.");t.prototype.serializeBoxContent.call(this,n),void 0!==this.explicitAuxInfoType&&(n.writer.writeUInt(this.explicitAuxInfoType.auxInfoType,32),n.writer.writeUInt(this.explicitAuxInfoType.auxInfoTypeParameter,32)),n.writer.writeByte(this.defaultSampleInfoSize),n.writer.writeUInt(this.sampleInfoSizes.length,32);for(var i=0,e=this.sampleInfoSizes;i<e.length;i++){var r=e[i];n.writer.writeByte(r)}}}(yu),function(t){function n(n){var i=t.call(this,"sdtp",0,0)||this;return i.samples=n,i}su(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.samples.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n);for(var i=0,e=this.samples;i<e.length;i++){Zu(e[i],n)}}}(yu),function(t){function n(n){return t.call(this,"stsd",n,0)||this}su(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.boxes.length,32)}}(ju);var cs=function(t){function n(n,i,e){var r=t.call(this,"sgpd",n,0)||this;return r.entries=e,r.groupingType=i,r}return su(n,t),c.defineProperty(n.prototype,"groupingType",{get:function(){return this.Uh},set:function(t){if(4!==t.length)throw new f("The provided groupingType does not equal 4 characters.");this.Uh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeString(this.groupingType),this.serializeVersionBoxContent(n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];this.serializeEntryBoxContent(n,r)}},n.prototype.serializeEntryBoxContent=function(t,n){n.serializeBoxContent(t)},n}(yu);!function(t){function n(n,i){return t.call(this,0,n,i)||this}su(n,t),n.prototype.serializeVersionBoxContent=function(t){}}(cs),function(t){function n(n,i,e){var r=t.call(this,1,n,e)||this;return r.defaultLength=i,r}su(n,t),c.defineProperty(n.prototype,"defaultLength",{get:function(){return this.Fh},set:function(t){if(!gu(t,32))throw new f("The provided defaultLength does not fit in 32 bits.");this.Fh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+this.entries.length*(this.defaultLength||4)},n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.defaultLength,32)},n.prototype.serializeEntryBoxContent=function(t,n){0===this.defaultLength&&t.writer.writeUInt(n.getBoxContentSize(),32),n.serializeBoxContent(t)}}(cs),function(t){function n(n,i,e,r){void 0===r&&(r=0);var o=this;if(n<2)throw new f("This constructor is only meant for versions 2 and up.");return(o=t.call(this,n,i,e)||this).defaultSampleDescriptionIndex=r,o}su(n,t),c.defineProperty(n.prototype,"defaultSampleDescriptionIndex",{get:function(){return this.ah},set:function(t){if(!gu(t,32))throw new f("The provided defaultSampleDescriptionIndex does not fit in 32 bits.");this.ah=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.defaultSampleDescriptionIndex,32)}}(cs),function(t){function n(n){void 0===n&&(n=[]);var i=t.call(this,"stsz",0,0)||this;return i.sampleSizes=n,i}su(n,t),c.defineProperty(n.prototype,"sampleSizes",{get:function(){return this.Hh},set:function(t){if(!gu(t.length,32))throw new f("Number of allowed samples cannot fit in 32 bits.");if(t.some(function(t){return!gu(t,32)}))throw new f("Not all sampleSizes can be represented in 32 bits.");this.Hh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4+4*this.sampleSizes.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(0,32),n.writer.writeUInt(this.sampleSizes.length,32);for(var i=0,e=this.sampleSizes;i<e.length;i++){var r=e[i];n.writer.writeUInt(r,32)}}}(yu),function(t){function n(n,i){void 0===n&&(n=0),void 0===i&&(i=0);var e=t.call(this,"stsz",0,0)||this;return e.defaultSampleSize=n,e.samples=i,e}su(n,t),c.defineProperty(n.prototype,"defaultSampleSize",{get:function(){return this.vh},set:function(t){if(!gu(t,32))throw new f("Provided defaultSampleSize does not fit in 32 bits.");this.vh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"samples",{get:function(){return this.Nh},set:function(t){if(!gu(t,32))throw new f("Number of allowed samples cannot fit in 32 bits.");this.Nh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.defaultSampleSize,32),n.writer.writeUInt(this.samples,32)}}(yu),function(t){function n(){return t.call(this,"stbl")||this}su(n,t)}(zu),function(t){function n(n){var i=t.call(this,"stsc",0,0)||this;return i.entries=n,i}su(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Ho},set:function(t){if(!gu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!gu(t.firstChunk,32)||!gu(t.sampleDescriptionIndex,32)||!gu(t.samplesPerChunk,32)}))throw new f("Not all entries can be represented in 96 bits.");this.Ho=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+12*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r.firstChunk,32),n.writer.writeUInt(r.samplesPerChunk,32),n.writer.writeUInt(r.sampleDescriptionIndex,32)}}}(yu),function(t){function n(){return t.call(this,"schi")||this}su(n,t)}(zu),function(t){function n(n,i,e){var r=t.call(this,"schm",0,void 0===e?0:1)||this;return r.schemeType=n,r.schemeVersion=i,r.schemeUri=e,r}su(n,t),c.defineProperty(n.prototype,"schemeType",{get:function(){return this.Vh},set:function(t){if(4!==t.length)throw new f("The provided schemeType does not have a length of 4.");this.Vh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"schemeVersion",{get:function(){return this.Xh},set:function(t){if(!gu(t,32))throw new f("The provided schemeVersion does not fit in 23 bits.");this.Xh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"schemeUri",{get:function(){return this.qh},set:function(t){if(t&&4!==t.length)throw new f("The provided schemeUri does not have a length of 4.");this.flags=void 0===t?0:1,this.qh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4+(void 0===this.schemeUri?0:this.schemeUri.length+1)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeString(this.schemeType),n.writer.writeUInt(this.schemeVersion,32),this.schemeUri&&(n.writer.writeString(this.schemeUri),n.writer.writeByte(0))}}(yu);var as=function(t){function n(n,i,e,r,o,u,s){void 0===s&&(s=0);var f=t.call(this,"sidx",n,s)||this;return f.referenceId=i,f.timescale=e,f.earliestPresentationTime=r,f.firstOffset=o,f.references=u,f}return su(n,t),c.defineProperty(n.prototype,"bitSize",{get:function(){return 0===this.version?32:64},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"referenceId",{get:function(){return this.Wh},set:function(t){if(!gu(t,32))throw new f("Provided referenceId does not fit in 32 bits.");this.Wh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"timescale",{get:function(){return this.ih},set:function(t){if(!gu(t,32))throw new f("Provided timescale does not fit in 32 bits.");this.ih=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"earliestPresentationTime",{get:function(){return this.Gh},set:function(t){if(!gu(t,this.bitSize))throw new f("Provided earliestPresentationTime does not fit in ".concat(this.bitSize," bits."));this.Gh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"firstOffset",{get:function(){return this.Yh},set:function(t){if(!gu(t,this.bitSize))throw new f("Provided timescale does not fit in ".concat(this.bitSize," bits."));this.Yh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"references",{get:function(){return this.jh},set:function(t){if(!gu(t.length,16))throw new f("The number of provided reference items does not fit in 16 bits.");for(var n=0,i=t;n<i.length;n++){var e=i[n];if(!gu(e.referencedSize,31))throw new f("Provided referenced size does not fit in 31 bits.");if(!gu(e.subsegmentDuration,32))throw new f("Provided subsegment duration does not fit in 31 bits.");if(!gu(e.sapType,3))throw new f("Provided SAP type does not fit in 3 bits.");if(!gu(e.sapDeltaTime,28))throw new f("Provided SAP delta time does not fit in 28 bits.")}this.jh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4+this.bitSize/8*2+2+2+12*this.references.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.referenceId,32),n.writer.writeUInt(this.timescale,32),this.serializeSidxBoxContent(n),n.writer.writeUInt(0,16),n.writer.writeUInt(this.references.length,16);for(var i=0,e=this.references;i<e.length;i++){var r=e[i];n.writer.writeBit(r.referenceType),n.writer.writeUInt(r.referencedSize,31),n.writer.writeUInt(r.subsegmentDuration,32),n.writer.writeBool(r.startsWithSap),n.writer.writeUInt(r.sapType,3),n.writer.writeUInt(r.sapDeltaTime,28)}},n}(yu);!function(t){function n(n,i,e,r,o,u){return void 0===u&&(u=0),t.call(this,0,n,i,e,r,o,u)||this}su(n,t),n.prototype.serializeSidxBoxContent=function(t){t.writer.writeUInt(this.earliestPresentationTime,32),t.writer.writeUInt(this.firstOffset,32)}}(as),function(t){function n(n,i,e,r,o,u){return void 0===u&&(u=0),t.call(this,1,n,i,e,r,o,u)||this}su(n,t),n.prototype.serializeSidxBoxContent=function(t){t.writer.writeUInt(this.earliestPresentationTime.getHighBitsUnsigned(),32),t.writer.writeUInt(this.earliestPresentationTime.getLowBitsUnsigned(),32),t.writer.writeUInt(this.firstOffset.getHighBitsUnsigned(),32),t.writer.writeUInt(this.firstOffset.getLowBitsUnsigned(),32)}}(as),function(t){function n(n,i,e){return t.call(this,"styp",n,i,e)||this}su(n,t)}(Hu),function(t){function n(n){void 0===n&&(n=0);var i=t.call(this,"smhd",0,0)||this;return i.balance=n,i}su(n,t),c.defineProperty(n.prototype,"balance",{get:function(){return this.Qh},set:function(t){if(t<-1||t>1)throw new f("Provided balance does not fit in the allowed range [-1, 1].");if(!gu(mu(t,8),16))throw new f("Provided balance does not fit in 16 bits (fixed 8.8).");this.Qh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+2+2},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(mu(this.balance,8),16),n.writer.writeUInt(0,16)}}(yu),function(t){function n(n){var i=t.call(this,"stss",0,0)||this;return i.entries=n,i}su(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Ho},set:function(t){if(!gu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!gu(t,32)}))throw new f("Not all entries can be represented in 32 bits.");this.Ho=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+4*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r,32)}}}(yu),function(t){function n(n){var i=t.call(this,"stts",0,0)||this;return i.entries=n,i}su(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Ho},set:function(t){if(!gu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!gu(t.sampleCount,32)||!gu(t.sampleDelta,32)}))throw new f("Not all entries can be represented in 64 bits.");this.Ho=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4+8*this.entries.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.entries.length,32);for(var i=0,e=this.entries;i<e.length;i++){var r=e[i];n.writer.writeUInt(r.sampleCount,32),n.writer.writeUInt(r.sampleDelta,32)}}}(yu),function(t){function n(n){var i=t.call(this,"trep",0,0)||this;return i.trackId=n,i}su(n,t),c.defineProperty(n.prototype,"trackId",{get:function(){return this.hh},set:function(t){if(!gu(t,32))throw new f("The provided trackId does not fit in 32 bits.");this.hh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+4},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.trackId,32)}}(ju),function(t){function n(){return t.call(this,"udta")||this}su(n,t)}(zu);var vs={red:0,green:0,blue:0};!function(t){function n(n,i){void 0===n&&(n=0),void 0===i&&(i=vs);var e=t.call(this,"vmhd",0,1)||this;return e.graphicsMode=n,e.opColor=i,e}su(n,t),c.defineProperty(n.prototype,"opColor",{get:function(){return this.Kh},set:function(t){if(!gu(t.red,16)||!gu(t.green,16)||!gu(t.blue,16))throw new f("Not all colors could be represented in 16 bits.");this.Kh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+2+6},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.graphicsMode,16),n.writer.writeUInt(this.opColor.red,16),n.writer.writeUInt(this.opColor.green,16),n.writer.writeUInt(this.opColor.blue,16)}}(yu);var ds=function(t){function n(n,i,e,r,o){void 0===r&&(r={}),void 0===o&&(o=void 0);var u,s,f,h,c,a=this;return(a=t.call(this,n,i)||this).width=e.width,a.height=e.height,a.horizontalResolution=null!==(u=e.horizontal)&&void 0!==u?u:72,a.verticalResolution=null!==(s=e.vertical)&&void 0!==s?s:72,a.compressorName=null!==(f=r.compressorName)&&void 0!==f?f:"",a.frameCount=null!==(h=r.frameCount)&&void 0!==h?h:1,a.depth=null!==(c=r.depth)&&void 0!==c?c:24,a.clap=r.clap,a.pasp=r.pasp,a.extra=o,a}return su(n,t),c.defineProperty(n.prototype,"width",{get:function(){return this.kh},set:function(t){if(!gu(t,16))throw new f("Provided width does not fit in 16 bits.");this.kh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"height",{get:function(){return this.yh},set:function(t){if(!gu(t,16))throw new f("Provided height does not fit in 16 bits.");this.yh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"horizontalResolution",{get:function(){return this.Zh},set:function(t){if(!gu(mu(t,16),32))throw new f("Provided horizontalResolution does not fit in 32 bits (fixed 16.16).");this.Zh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"verticalResolution",{get:function(){return this.Jh},set:function(t){if(!gu(mu(t,16),32))throw new f("Provided verticalResolution does not fit in 32 bits (fixed 16.16).");this.Jh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"compressorName",{get:function(){return this.$h},set:function(t){if(t.length>31)throw new f("The provided compressorName should at most be 31 characters long.");this.$h=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"frameCount",{get:function(){return this.ea},set:function(t){if(!gu(t,16))throw new f("Provided frameCount does not fit in 16 bits.");this.ea=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"depth",{get:function(){return this.ra},set:function(t){if(!gu(t,16))throw new f("Provided depth does not fit in 16 bits.");this.ra=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){var n,i,e,r,o,u;return t.prototype.getBoxContentSize.call(this)+2+2+12+2+2+4+4+4+2+32+2+2+(null!==(i=null===(n=this.clap)||void 0===n?void 0:n.getSize())&&void 0!==i?i:0)+(null!==(r=null===(e=this.pasp)||void 0===e?void 0:e.getSize())&&void 0!==r?r:0)+(null!==(u=null===(o=this.extra)||void 0===o?void 0:o.length)&&void 0!==u?u:0)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(0,16),n.writer.writeUInt(0,16),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),n.writer.writeUInt(this.width,16),n.writer.writeUInt(this.height,16),n.writer.writeUInt(mu(this.horizontalResolution,16),32),n.writer.writeUInt(mu(this.verticalResolution,16),32),n.writer.writeUInt(0,32),n.writer.writeUInt(this.frameCount,16),n.writer.writeByte(this.compressorName.length),n.writer.writeString(this.compressorName);for(var i=0;i<31-this.compressorName.length;i++)n.writer.writeByte(0);n.writer.writeUInt(this.depth,16),n.writer.writeInt(-1,16),this.clap&&n.concat(this.clap.serialize()),this.pasp&&n.concat(this.pasp.serialize()),this.extra&&pu(n.writer,this.extra)},n}(Wu);!function(t){function n(n){var i=t.call(this,"esds",0,0)||this;return i.esDescriptor=n,i}su(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+(this.esDescriptor instanceof w?this.esDescriptor.length:this.esDescriptor.getSize())},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.esDescriptor instanceof w?n.concat(du.from(this.esDescriptor)):this.esDescriptor.serialize(n)}}(yu),function(t){function n(n,i,e){var r=t.call(this,"mp4a",n,e)||this;return r.esd=i,r}su(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.esd.getSize()},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.concat(this.esd.serialize())}}(qu),function(t){function n(n,i,e,r){void 0===r&&(r={});var o=t.call(this,"mp4v",n,i,r)||this;return o.esDescriptor=e,o}su(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.esDescriptor.getSize()},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.esDescriptor.serialize(n)}}(ds),function(t){function n(n,i){var e=t.call(this,"mp4s",n)||this;return e.esDescriptor=i,e}su(n,t),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.esDescriptor.getSize()},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.esDescriptor.serialize(n)}}(Wu),function(t){function n(n){var i=t.call(this,"avcC")||this;return i.decoderConfig=n,i}su(n,t),n.prototype.getBoxContentSize=function(){return this.decoderConfig.getSize()},n.prototype.serializeBoxContent=function(t){this.decoderConfig.serialize(t)}}(bu),function(){function t(t,n,i,e,r,o){void 0===o&&(o=1),this.lengthSizeMinusOne=i,this.version=o,this.profileIndication=t.indication,this.profileCompatibility=t.compatibility,this.levelIndication=n,this.spsSets=e,this.ppsSets=r}c.defineProperty(t.prototype,"version",{get:function(){return this.ua},set:function(t){if(!gu(t,8))throw new f("Provided version does not fit in 8 bits.");this.ua=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"profileIndication",{get:function(){return this.oa},set:function(t){if(!gu(t,8))throw new f("Provided profileIndication does not fit in 8 bits.");this.oa=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"profileCompatibility",{get:function(){return this.va},set:function(t){if(!gu(t,8))throw new f("Provided profileCompatibility does not fit in 8 bits.");this.va=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"levelIndication",{get:function(){return this._a},set:function(t){if(!gu(t,8))throw new f("Provided levelIndication does not fit in 8 bits.");this._a=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"spsSets",{get:function(){return this.ya},set:function(t){if(!gu(t.length,5))throw new f("Provided number of spsSets exceeds the max (32)");this.ya=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"ppsSets",{get:function(){return this.ma},set:function(t){if(!gu(t.length,8))throw new f("Provided number of ppsSets exceeds the max (256)");this.ma=t},enumerable:!1,configurable:!0}),t.prototype.getSize=function(){return 7+2*this.spsSets.length+this.spsSets.reduce(function(t,n){return t+n.length},0)+2*this.ppsSets.length+this.ppsSets.reduce(function(t,n){return t+n.length},0)},t.prototype.serialize=function(t){t.writer.writeByte(this.version),t.writer.writeByte(this.profileIndication),t.writer.writeByte(this.profileCompatibility),t.writer.writeByte(this.levelIndication),t.writer.writeBits([1,1,1,1,1,1]),t.writer.writeUInt(this.lengthSizeMinusOne,2),t.writer.writeBits([1,1,1]),t.writer.writeUInt(this.spsSets.length,5);for(var n=0,i=this.spsSets;n<i.length;n++){var e=i[n];t.writer.writeUInt(e.length,16),t.concat(du.from(e))}t.writer.writeByte(this.ppsSets.length);for(var r=0,o=this.ppsSets;r<o.length;r++){var u=o[r];t.writer.writeUInt(u.length,16),t.concat(du.from(u))}}}(),function(t){function n(n,i,e,r,o){void 0===r&&(r={}),void 0===o&&(o=void 0);var u=t.call(this,"avc1",n,i,r)||this;return u.configurationBox=e,u.bitrateBox=o,u}su(n,t),n.prototype.getBoxContentSize=function(){var n,i;return t.prototype.getBoxContentSize.call(this)+this.configurationBox.getSize()+(null!==(i=null===(n=this.bitrateBox)||void 0===n?void 0:n.getSize())&&void 0!==i?i:0)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.concat(this.configurationBox.serialize()),this.bitrateBox&&n.concat(this.bitrateBox.serialize())}}(ds),function(t){function n(n,i,e){var r=t.call(this,"btrt")||this;return r.bufferSizeDb=n,r.max=i,r.avg=e,r}su(n,t),c.defineProperty(n.prototype,"bufferSizeDb",{get:function(){return this.No},set:function(t){if(!gu(t,32))throw new f("Provided bufferSizeDb does not fit in 32 bits.");this.No=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"max",{get:function(){return this.Aa},set:function(t){if(!gu(t,32))throw new f("Provided max does not fit in 32 bits.");this.Aa=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"avg",{get:function(){return this.Ta},set:function(t){if(!gu(t,32))throw new f("Provided avg does not fit in 32 bits.");this.Ta=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 12},n.prototype.serializeBoxContent=function(t){t.writer.writeUInt(this.bufferSizeDb,32),t.writer.writeUInt(this.max,32),t.writer.writeUInt(this.avg,32)}}(bu);var ls=function(t){function n(n,i){var e,r,o,u,s=this;if(s=t.call(this,"tenc",n,0)||this,i.perSampleIvSize>0&&(null!==(r=null===(e=i.constantIv)||void 0===e?void 0:e.length)&&void 0!==r?r:0)>0)throw new f("Either perSampleSize should be > 0 or constantIv should be defined. Not both.");return s.kId=i.kId,s.isProtected=null!==(o=i.isProtected)&&void 0!==o?o:1,i.perSampleIvSize>0?s.perSampleIvSize=i.perSampleIvSize:s.constantIv=null!==(u=i.constantIv)&&void 0!==u?u:new w(0),s}return su(n,t),c.defineProperty(n.prototype,"isProtected",{get:function(){return this.Sa},set:function(t){if(!gu(t,8))throw new f("Provided isProtected does not fit in 1 byte.");this.Sa=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"perSampleIvSize",{get:function(){return this.Ea},set:function(t){if(![8,16].includes(t))throw new f("Provided perSampleIvSize does not match any allowed value [8, 16].");this.Ea=t,this.Ia=new w(0)},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"kId",{get:function(){return this.Ra},set:function(t){if(16!==t.length)throw new f("Provided kId length is not 16.");this.Ra=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"constantIv",{get:function(){return this.Ia},set:function(t){if(![8,16].includes(t.length))throw new f("Provided constant IV length does not match any allowed value [8, 16].");this.Ia=t,this.Ea=0},enumerable:!1,configurable:!0}),n.prototype.getTencHeaderSize=function(){return 20+(this.constantIv.length>0?1+this.constantIv.length:0)},n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.getTencHeaderSize()},n.prototype.serializeVersionBoxContent=function(t){t.writer.writeByte(0)},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),this.serializeOwnContent(n)},n.prototype.serializeOwnContent=function(t){t.writer.writeByte(0),this.serializeVersionBoxContent(t),t.writer.writeByte(this.isProtected),t.writer.writeByte(this.perSampleIvSize),pu(t.writer,this.kId),0===this.perSampleIvSize&&(t.writer.writeByte(this.constantIv.length),pu(t.writer,this.constantIv))},n}(yu);!function(t){function n(n){return t.call(this,0,n)||this}su(n,t)}(ls);var ws=function(t){function n(n){var i=t.call(this,1,n)||this;return i.cryptByteBlocks=n.cryptByteBlock,i.skipByteBlocks=n.skipByteBlock,i}return su(n,t),c.defineProperty(n.prototype,"cryptByteBlocks",{get:function(){return this.Na},set:function(t){if(!gu(t,4))throw new f("Provided cryptByteBlocks does not fit in 4 bits.");this.Na=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"skipByteBlocks",{get:function(){return this.Da},set:function(t){if(!gu(t,4))throw new f("Provided skipByteBlocks does not fit in 4 bits.");this.Da=t},enumerable:!1,configurable:!0}),n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.cryptByteBlocks,4),t.writer.writeUInt(this.skipByteBlocks,4)},n}(ls);function bs(t){return void 0!==t.iv}function gs(t){return void 0!==t.subsamples}!function(t){function n(n){var i=t.call(this)||this;return i.tencBox=new ws(n),i}su(n,t),n.prototype.serializeBoxContent=function(t){this.tencBox.serializeOwnContent(t)},n.prototype.getBoxContentSize=function(){return this.tencBox.getTencHeaderSize()}}(ts),function(t){function n(n){var i=t.call(this,"senc",0,{useSubsampleEncryption:!1})||this;return i.samples=n,i}su(n,t),c.defineProperty(n.prototype,"samples",{get:function(){return this.Nh},set:function(t){var n;if(!gu(t.length,32))throw new f("The number of samples provided does not fit in 32 bits.");for(var i=0,e=t;i<e.length;i++){var r=e[i];if(bs(r)&&![8,16].includes(r.iv.length))throw new f("IV of one of the provided samples did not satisfy the required length constraints. [8, 16]");if(void 0===n&&(n=gs(r)),!0===n&&!gs(r)||!1===n&&gs(r))throw new f("Mix of samples with and without subsamples detected.");if(gs(r)){if(!gu(r.subsamples.length,16))throw new f("Subsample length of one of the provided samples does not fit in 16 bits.");for(var o=0,u=r.subsamples;o<u.length;o++){var s=u[o];if(!gu(s.clearData,16))throw new f("Subsample clearData of one of the provided samples does not fit in 16 bits.");if(!gu(s.protectedData,23))throw new f("Subsample protectedData of one of the provided samples does not fit in 23 bits.")}}}this.flags.useSubsampleEncryption=null!=n&&n,this.Nh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){for(var n=0,i=0,e=this.samples;i<e.length;i++){var r=e[i];bs(r)&&(n+=r.iv.length),gs(r)&&(n+=2+6*r.subsamples.length)}return t.prototype.getBoxContentSize.call(this)+4+n},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.samples.length,32);for(var i=0,e=this.samples;i<e.length;i++){var r=e[i];if(bs(r)&&pu(n.writer,r.iv),gs(r)){n.writer.writeUInt(r.subsamples.length,16);for(var o=0,u=r.subsamples;o<u.length;o++){var s=u[o];n.writer.writeUInt(s.clearData,16),n.writer.writeUInt(s.protectedData,32)}}}},n.prototype.serializeFlags=function(t){t.writer.writeUInt(this.flags.useSubsampleEncryption?2:0,24)}}(yu),function(t){function n(n,i,e,r,o){var u=t.call(this,"emsg",0,0)||this;return u.schemeIdUri=n,u.value=i,u.data=o,u.id=e,u.timescale=r.timescale,u.presentationTimeDelta=r.presentationTimeDelta,u.eventDuration=r.eventDuration,u}su(n,t),c.defineProperty(n.prototype,"timescale",{get:function(){return this.ih},set:function(t){if(!gu(t,32))throw new f("The provided timescale does not fit in 32 bits.");this.ih=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"presentationTimeDelta",{get:function(){return this.Ca},set:function(t){if(!gu(t,32))throw new f("The provided presentationTimeDelta does not fit in 32 bits.");this.Ca=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"eventDuration",{get:function(){return this.Pa},set:function(t){if(!gu(t,32))throw new f("The provided eventDuration does not fit in 32 bits.");this.Pa=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"id",{get:function(){return this.Oa},set:function(t){if(!gu(t,32))throw new f("The provided id does not fit in 32 bits.");this.Oa=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.schemeIdUri.length+1+this.value.length+1+16+this.data.length},n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeString(this.schemeIdUri),n.writer.writeByte(0),n.writer.writeString(this.value),n.writer.writeByte(0),n.writer.writeUInt(this.timescale,32),n.writer.writeUInt(this.presentationTimeDelta,32),n.writer.writeUInt(this.eventDuration,32),n.writer.writeUInt(this.id,32),n.concat(du.from(this.data))}}(yu);var ms,ps,ys=(ms="pssh",ps=function(t){var n=t.data.nextUint8();t.data.skip(3);var i=t.data.nextUint8Array(16),e=[];if(1===n)for(var r=t.data.nextUint32(),o=0;o<r;o++)e.push(t.data.nextUint8Array(16));var u=t.data.nextUint32(),s=t.data.nextUint8Array(u);return 1===n?new es(i,s,e):new is(i,s)},function(t){var n,i=function(t,n){for(var i=t.data,e=t.cursor;e.offset<i.byteLength;){var r=Fu(i,e);if(!r.complete)return;if(Cu(r.box,n))return r.box}}(new xu((n=t,new DataView(n.buffer,n.byteOffset,n.byteLength)),new Du),ms);if(!i)throw new f("".concat(ms," box not found"));return ps(i)}),_s=function(t){function n(n,i){var e;(e=t.call(this)||this).Ba=void 0,e.La=!1,e.Ma=void 0,e.xa=void 0,e.Ua=function(){e.Fa()},e.Ha=function(t){e.Qs(new Qo(Tn(e),t.messageType,eu(e.Va,t.message)))},e.Xa=function(){e.La=!0,e.Ba.Cu>0&&(e.Ba.Du(),e.Qs(new Zo(Tn(e)))),e.qa.removeEventListener("keystatuseschange",e.Ua),e.qa.removeEventListener("message",e.Ha)},e.qa=n,e.Va=i,e.qa.addEventListener("keystatuseschange",e.Ua),e.qa.addEventListener("message",e.Ha),e.Ba=new nu;var r=[];return e.qa.closed&&r.push(j.resolve(e.qa.closed)),e.xa=new iu,r.push(e.xa.Hu),e.Ma=j.race(r).then(e.Xa,e.Xa),e.Fa(),e}Ut(n,t);var i=n.prototype;return i.Wa=function(){if(this.La)return this.Ma;var t,n,i=[];return i.push(j.resolve(this.qa.close())),i.push((t=1e3,new j(function(i,e){if(void 0!==n&&n.Ds)e(new Pn);else{var r=Z.jn(function(){void 0!==n&&n.xs(o),i()},t),o=function(){Z.Yn(r),e(new Pn)};void 0!==n&&n.Ms(o)}}))),this.xa.Wu(j.race(i).catch(Ss)),this.La=!0,this.Ma},i.Ga=function(t,n,i){if(Li.cn){var e=ys(ui(n));if(1===e.version)n=new is(e.systemId,e.data).serialize().join()}return j.resolve(this.qa.generateRequest(t,n)).catch(Ss)},i.Ya=function(t){return j.resolve(this.qa.load(t)).catch(Ss)},i.Qa=function(){return j.resolve(this.qa.remove()).catch(Ss)},i.Ka=function(t){return j.resolve(this.qa.update(t)).catch(Ss)},i.Fa=function(){var t=this;this.Ba.Du(),this.qa.keyStatuses.forEach(function(n,i){t.Za(i,n)}),this.Qs(new Zo(this))},i.Za=function(t,n){if("string"==typeof t){var i=t;t=n,n=i}var e=ui(t);if(this.Va===Bo&&16===e.byteLength){var r=ri(e),o=r.getUint32(0,!0),u=r.getUint16(4,!0),s=r.getUint16(6,!0);r.setUint32(0,o,!1),r.setUint16(4,u,!1),r.setUint16(6,s,!1)}this.Va===Bo&&"status-pending"===n&&(n="usable"),this.Ba.Nu(e,n)},gt(n,[{key:"Ja",get:function(){return this.Ma}},{key:"$a",get:function(){return this.qa.expiration}},{key:"tc",get:function(){return this.Ba}},{key:"nc",get:function(){return this.qa.sessionId}}]),n}(li);function Ss(t){var n;if(t.message){var i=t.message.match(/^SystemCode:0x([0-9a-fA-F]+)$/);i&&(n=0|v(i[1],16))}throw new ou(t.message,void 0,n,t)}var Is=function(){function t(t,n,i){this.ic=t,this.ec=n,this.rc=i}var n=t.prototype;return n.uc=function(t){return Q.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new _s(this.ic.createSession(t),this.ec));case 1:case"end":return n.stop()}},null,this,null,j)},n.hc=function(t){return j.resolve(this.ic.setServerCertificate(t))},n.ac=function(t){return j.resolve(t.setMediaKeys(this.ic))},n.cc=function(t){return j.resolve(t.setMediaKeys(null))},t}(),Ts=function(){function t(t,n,i){this.fc=t,this.Va=n,this.vc=i}var n=t.prototype;return n.dc=function(){var t;return Q.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Q.awrap(this.fc.createMediaKeys());case 2:return t=n.sent,n.abrupt("return",new Is(t,this.Va,this.vc));case 4:case"end":return n.stop()}},null,this,null,j)},n.lc=function(){return this.vc},gt(t,[{key:"ec",get:function(){return this.fc.keySystem}}]),t}();function Es(t,n,i,e){var r=!1;if(!(e.persistentState&&"optional"!==e.persistentState||e.distinctiveIdentifier&&"optional"!==e.distinctiveIdentifier)){var o={audioCapabilities:[],videoCapabilities:[],persistentState:e.persistentState||"optional",distinctiveIdentifier:e.distinctiveIdentifier||"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label,wc:e.wc},u=!1;if(e.audioCapabilities){var s=e.audioCapabilities.filter(function(t){return Boolean(t.contentType)});s.length&&(o.audioCapabilities=s.filter(function(e){return Rs(t,n,i,e)}),u=!0,o.audioCapabilities.length&&(r=!0))}if(e.videoCapabilities){var f=e.videoCapabilities.filter(function(t){return Boolean(t.contentType)});f.length&&(o.videoCapabilities=f.filter(function(e){return Rs(t,n,i,e)}),u=!0,o.videoCapabilities.length&&(r=!0))}return u||(r=t(i,"video/mp4")),r?o:void 0}}function Rs(t,n,i,e){return!!e.contentType&&(!(e.encryptionScheme&&!at(n,e.encryptionScheme))&&(!e.robustness&&t(i,(r=e.contentType,o=r.trim(),(u=o.indexOf(";"))<0?o:o.substr(0,u).trim()))));var r,o,u}function ks(t){for(var n=[],i=0;i<t.length;i++){var e=t[i];e.encryptionScheme&&n.push({contentType:e.contentType,robustness:e.robustness})}return t.concat(n)}function Ns(t){return!(!t.audioCapabilities||!t.audioCapabilities.some(Os))||!(!t.videoCapabilities||!t.videoCapabilities.some(Os))}function Os(t){return!t.robustness}function Ps(t,n){for(var i=[],e=0;e<t.length;e++){var r=t[e];r.robustness?i.push(r):i.push(Ao({},r,{robustness:n}))}return i}var As,Ds,xs=function(){function t(){}return t.prototype.Ss=function(t,n){var i,r,o,u,s,f,h,c;return Q.async(function(a){for(;;)switch(a.prev=a.next){case 0:for(n=n.filter(function(t){return!t.wc}),i=0,r=n;i<r.length;i++)(o=r[i]).audioCapabilities&&(o.audioCapabilities=ks(o.audioCapabilities)),o.videoCapabilities&&(o.videoCapabilities=ks(o.videoCapabilities));if("com.widevine.alpha"!==t||!n.some(Ns)){a.next=14;break}return u=n.map(function(t){return i="SW_SECURE_CRYPTO",Ao({},n=t,{videoCapabilities:n.videoCapabilities?Ps(n.videoCapabilities,i):void 0,audioCapabilities:n.audioCapabilities?Ps(n.audioCapabilities,i):void 0});var n,i}),a.prev=4,a.next=7,Q.awrap(e.requestMediaKeySystemAccess(t,u));case 7:return s=a.sent,f=s.getConfiguration(),a.abrupt("return",new Ts(s,t,f));case 12:a.prev=12,a.t0=a.catch(4);case 14:return a.next=16,Q.awrap(e.requestMediaKeySystemAccess(t,n));case 16:return h=a.sent,c=h.getConfiguration(),a.abrupt("return",new Ts(h,t,c));case 19:case"end":return a.stop()}},null,null,[[4,12]],j)},t.kc=function(){return void 0!==e&&"function"==typeof e.requestMediaKeySystemAccess},t}(),Cs=function(){function t(){}return t.prototype.Ss=function(t,n){try{return j.resolve(function(t,n){if(!Bs())throw new h("Unsupported key system "+t)}(t))}catch(t){return j.reject(t)}},t.kc=function(){return Bs()},t}();function Bs(){return void 0!==ro.MSMediaKeys}!function(t){t[t.CONFIGURATION_ERROR=1e3]="CONFIGURATION_ERROR",t[t.LICENSE_ERROR=2e3]="LICENSE_ERROR",t[t.LICENSE_INVALID_DOMAIN=2001]="LICENSE_INVALID_DOMAIN",t[t.LICENSE_INVALID_SOURCE=2002]="LICENSE_INVALID_SOURCE",t[t.LICENSE_EXPIRED=2003]="LICENSE_EXPIRED",t[t.LICENSE_INVALID_FEATURE=2004]="LICENSE_INVALID_FEATURE",t[t.SOURCE_INVALID=3e3]="SOURCE_INVALID",t[t.SOURCE_NOT_SUPPORTED=3001]="SOURCE_NOT_SUPPORTED",t[t.MANIFEST_LOAD_ERROR=4e3]="MANIFEST_LOAD_ERROR",t[t.MANIFEST_CORS_ERROR=4001]="MANIFEST_CORS_ERROR",t[t.MANIFEST_PARSE_ERROR=4002]="MANIFEST_PARSE_ERROR",t[t.MEDIA_NOT_SUPPORTED=5e3]="MEDIA_NOT_SUPPORTED",t[t.MEDIA_LOAD_ERROR=5001]="MEDIA_LOAD_ERROR",t[t.MEDIA_DECODE_ERROR=5002]="MEDIA_DECODE_ERROR",t[t.MEDIA_AVPLAYER_ERROR=5003]="MEDIA_AVPLAYER_ERROR",t[t.MEDIA_ABORTED=5004]="MEDIA_ABORTED",t[t.NETWORK_ERROR=6e3]="NETWORK_ERROR",t[t.NETWORK_TIMEOUT=6001]="NETWORK_TIMEOUT",t[t.CONTENT_PROTECTION_ERROR=7e3]="CONTENT_PROTECTION_ERROR",t[t.CONTENT_PROTECTION_NOT_SUPPORTED=7001]="CONTENT_PROTECTION_NOT_SUPPORTED",t[t.CONTENT_PROTECTION_CONFIGURATION_MISSING=7002]="CONTENT_PROTECTION_CONFIGURATION_MISSING",t[t.CONTENT_PROTECTION_CONFIGURATION_INVALID=7003]="CONTENT_PROTECTION_CONFIGURATION_INVALID",t[t.CONTENT_PROTECTION_INITIALIZATION_INVALID=7004]="CONTENT_PROTECTION_INITIALIZATION_INVALID",t[t.CONTENT_PROTECTION_CERTIFICATE_ERROR=7005]="CONTENT_PROTECTION_CERTIFICATE_ERROR",t[t.CONTENT_PROTECTION_CERTIFICATE_INVALID=7006]="CONTENT_PROTECTION_CERTIFICATE_INVALID",t[t.CONTENT_PROTECTION_LICENSE_ERROR=7007]="CONTENT_PROTECTION_LICENSE_ERROR",t[t.CONTENT_PROTECTION_LICENSE_INVALID=7008]="CONTENT_PROTECTION_LICENSE_INVALID",t[t.CONTENT_PROTECTION_KEY_EXPIRED=7009]="CONTENT_PROTECTION_KEY_EXPIRED",t[t.CONTENT_PROTECTION_KEY_MISSING=7010]="CONTENT_PROTECTION_KEY_MISSING",t[t.CONTENT_PROTECTION_OUTPUT_RESTRICTED=7011]="CONTENT_PROTECTION_OUTPUT_RESTRICTED",t[t.CONTENT_PROTECTION_INTERNAL_ERROR=7012]="CONTENT_PROTECTION_INTERNAL_ERROR",t[t.SUBTITLE_LOAD_ERROR=8e3]="SUBTITLE_LOAD_ERROR",t[t.SUBTITLE_CORS_ERROR=8001]="SUBTITLE_CORS_ERROR",t[t.SUBTITLE_PARSE_ERROR=8002]="SUBTITLE_PARSE_ERROR",t[t.VR_PLATFORM_UNSUPPORTED=9e3]="VR_PLATFORM_UNSUPPORTED",t[t.VR_PRESENTATION_ERROR=9001]="VR_PRESENTATION_ERROR",t[t.AD_ERROR=1e4]="AD_ERROR",t[t.AD_BLOCKER_DETECTED=10001]="AD_BLOCKER_DETECTED",t[t.FULLSCREEN_ERROR=11e3]="FULLSCREEN_ERROR"}(As||(As={})),function(t){t[t.CONFIGURATION=1]="CONFIGURATION",t[t.LICENSE=2]="LICENSE",t[t.SOURCE=3]="SOURCE",t[t.MANIFEST=4]="MANIFEST",t[t.MEDIA=5]="MEDIA",t[t.NETWORK=6]="NETWORK",t[t.CONTENT_PROTECTION=7]="CONTENT_PROTECTION",t[t.SUBTITLE=8]="SUBTITLE",t[t.VR=9]="VR",t[t.AD=10]="AD",t[t.FULLSCREEN=11]="FULLSCREEN"}(Ds||(Ds={})),function(t){(Ds||(Ds={})).fromCode=function(t){var n=a.floor(t/1e3);if(n in Ds)return n;throw new h("Invalid error code: "+t)}}();var Fs=function(){function t(){}return t.prototype.Ss=function(t,n){try{return j.resolve(function(t,n){if(t!==qo)throw new h(t+" is not supported with webkit-prefixed Encrypted Media Extensions.");if(!Ls())throw new h("Unsupported key system "+t)}(t))}catch(t){return j.reject(t)}},t.kc=function(){return Ls()},t}();function Ls(){return void 0!==ro.WebKitMediaKeys}var Us,Ms=function(){function t(t){this.Fc=t}return t.prototype.Ss=function(t,n){var i,e,r;return Q.async(function(o){for(;;)switch(o.prev=o.next){case 0:i=0,e=this.Fc;case 1:if(!(i<e.length)){o.next=14;break}return r=e[i],o.prev=3,o.next=6,Q.awrap(r.Ss(t,n));case 6:return o.abrupt("return",o.sent);case 9:o.prev=9,o.t0=o.catch(3);case 11:i++,o.next=1;break;case 14:throw new h("Unsupported key system configuration for "+t);case 15:case"end":return o.stop()}},null,this,[[3,9]],j)},t}(),zs=function(t){function n(n){var i;return(i=t.call(this)||this).pc=void 0,i.Oc=void 0,i.yc=void 0,i.do=!1,i.Hc=void 0,i.Vc=void 0,i.Xc=void 0,i.zc=void 0,i.qc=void 0,i.Va=n,i.yc=new iu,i.Vc="",i.qc=new iu,i.Xc=new nu,i}Ut(n,t);var i=n.prototype;return i.Wc=function(){this.Oc&&(this.Ic("usable"),this.Oc.Wu(void 0),this.Oc=void 0)},i.Gc=function(t){var n=new ou("Unknown CDM error",t.errorCode,t.systemCode);this.Oc?(this.Oc.Gu(n),this.Oc=void 0):this.pc?(this.pc.Gu(n),this.pc=void 0):n.Yu===WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT?this.Ic("output-restricted"):1===n.ju?this.Ic("expired"):this.Ic("internal-error")},i.Yc=function(t){0!==t.message.byteLength&&(this.pc&&(this.pc.Wu(void 0),this.pc=void 0),this.Qs(new Qo(this,"license-request",eu(this.Va,si(t.message).buffer),t.defaultURL||void 0)))},i.jc=function(t){this.zc||(this.zc=t,this.qc.Wu(t))},i.Wa=function(){return Q.async(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed(),this.do=!0,this.yc.Wu(void 0);case 3:case"end":return t.stop()}},null,this,null,j)},i.Ga=function(t,n){return Q.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.throwIfClosed(),this.pc=new iu,this.Hc=ui(n),t.t0=this.zc,t.t0){t.next=8;break}return t.next=7,Q.awrap(this.qc.Hu);case 7:t.t0=t.sent;case 8:return t.t0.webkitGenerateKeyRequest(this.Va,this.Hc),t.next=12,Q.awrap(this.pc.Hu);case 12:case"end":return t.stop()}},null,this,null,j)},i.Ya=function(t){return Q.async(function(t){for(;;)switch(t.prev=t.next){case 0:return this.throwIfClosed(),t.abrupt("return",!1);case 2:case"end":return t.stop()}},null,this,null,j)},i.Qa=function(){return Q.async(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed();case 1:case"end":return t.stop()}},null,this,null,j)},i.Ka=function(t){return Q.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(this.throwIfClosed(),this.Oc=new iu,n.t0=this.zc,n.t0){n.next=7;break}return n.next=6,Q.awrap(this.qc.Hu);case 6:n.t0=n.sent;case 7:return n.t0.webkitAddKey(this.Va,ui(t),this.Hc,this.nc),n.next=11,Q.awrap(this.Oc.Hu);case 11:case"end":return n.stop()}},null,this,null,j)},i.throwIfClosed=function(){if(this.do)throw new h("Already closing or closed.")},i.Ic=function(t){this.Xc.Du(),this.Xc.Nu(tu,t),this.Qs(new Zo(this))},gt(n,[{key:"tc",get:function(){return this.Xc}},{key:"nc",get:function(){return this.Vc},set:function(t){this.Vc=t}},{key:"Ja",get:function(){return this.yc.Hu}},{key:"$a",get:function(){return NaN}}]),n}(li),Ws=function(){function t(t,n){var i=this;this.zc=void 0,this.Qc=pt(),this.Kc=[],this.Ec=function(t){var n=i.Zc(t.sessionId);n&&n.Wc()},this.Jc=function(t){var n=i.Zc(t.sessionId);n&&n.Gc(t)},this.$c=function(t){var n=i.Zc(t.sessionId);n&&n.Yc(t)},this.ec=t,this.rc=n}var n=t.prototype;return n.ac=function(t){return this.zc=t,this.zc.addEventListener("webkitkeyadded",this.Ec),this.zc.addEventListener("webkitkeyerror",this.Jc),this.zc.addEventListener("webkitkeymessage",this.$c),this.Qc.forEach(function(n,i){return n.jc(t)}),this.Kc.forEach(function(n){return n.jc(t)}),j.resolve()},n.cc=function(t){return t.removeEventListener("webkitkeyadded",this.Ec),t.removeEventListener("webkitkeyerror",this.Jc),t.removeEventListener("webkitkeymessage",this.$c),this.zc=void 0,j.resolve()},n.uc=function(t,n,i){var e;return Q.async(function(t){for(;;)switch(t.prev=t.next){case 0:return e=new zs(this.ec),this.zc&&e.jc(this.zc),this.Kc.push(e),t.abrupt("return",e);case 4:case"end":return t.stop()}},null,this,null,j)},n.hc=function(t){return j.resolve(!1)},n.Zc=function(t){if(t){var n=this.Qc.get(t);return n||((n=this.Kc.shift())?(n.nc=t,this.Qc.set(t,n),n):void 0)}},t}(),qs=function(){function t(t,n){this.ec=t,this.tf=n}var n=t.prototype;return n.dc=function(){return j.resolve(new Ws(this.ec,this.tf))},n.lc=function(){return this.tf},t}(),js=function(){function t(){}return t.prototype.Ss=function(t,n){try{return j.resolve(Vs(t,n))}catch(t){return j.reject(t)}},t.kc=function(){return"undefined"!=typeof HTMLMediaElement&&void 0!==HTMLMediaElement.prototype.webkitGenerateKeyRequest&&void 0!==HTMLMediaElement.prototype.webkitAddKey&&void 0!==HTMLMediaElement.prototype.webkitCancelKeyRequest},t}();function Vs(t,n){if(!js.kc())throw new h("Unsupported key system "+t);for(var i=0;i<n.length;i++){var e=n[i],r=Es(Hs,Jo,t,e);if(r)return new qs(t,r)}throw new h("Unsupported key system configuration for "+t)}function Hs(t,n){var i=ho();return!(!i||!i.canPlayType||""===i.canPlayType(n,t))}function Xs(){return Us||(Us=function(){var t=[];Fs.kc()&&t.push(new Fs);xs.kc()&&t.push(new xs);Cs.kc()&&t.push(new Cs);js.kc()&&t.push(new js);return new Ms(t)}()),Us}var Gs=function(){function t(){this.nf=pt()}var n=t.prototype;return n.Du=function(t){this.nf.delete(t)},n.if=function(){this.nf.clear()},n.Iu=function(t){return this.nf.get(t)},n.ef=function(t,n){this.nf.set(t,n)},t}(),Ys=function(){function t(){}return t.rf=function(){return t.Gn||(t.Gn=Ks.kc()?new Ks:new Gs),t.Gn},t.Du=function(n){t.rf().Du(n)},t.if=function(){t.rf().if()},t.Iu=function(n){return t.rf().Iu(n)},t.ef=function(n,i){t.rf().ef(n,i)},t}();Ys.Gn=void 0;var Ks=function(n){function i(){return n.apply(this,arguments)||this}Ut(i,n),i.kc=function(){try{return t.sessionStorage.setItem("foobar","foobar"),t.sessionStorage.removeItem("foobar"),!0}catch(t){return!1}};var e=i.prototype;return e.Du=function(n){t.sessionStorage.removeItem(n)},e.if=function(){t.sessionStorage.clear()},e.Iu=function(n){return t.sessionStorage[n]},e.ef=function(n,i){t.sessionStorage[n]=i},i}(Ys);var $s=function(){var n,i=t.Blob;if(i)try{return new i,n=i,function(t,i){return new n(t,i)}}catch(t){}var e,r=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder;if(r)return e=r,function(t,n){var i=new e;if(t)for(var r=0;r<t.length;r++){var o=t[r];i.append(o)}return i.getBlob(n&&n.type||"")}}();function Js(t,n,e){var r=$s([n],{type:"application/octet-stream"}),o=URL.createObjectURL(r),u=function(t,n){var i=t,e=i.indexOf("?");if(e>=0&&(i=i.substr(0,e)),i=i.substr(i.lastIndexOf("/")+1),n){var r=i.indexOf(".");r<0&&(r=i.length),i=i.substr(0,r)+n+i.substr(r)}return i}(t,e),s=i.createElement("a");s.href=o,s.download=u,i.body.appendChild(s),s.click(),i.body.removeChild(s),URL.revokeObjectURL(o)}var Zs,Qs;!function(t){t.sf="uf",t.hf="cf",t.vf="contentprotectionerror",t.df="contentprotectionsuccess",t.lf="currentsourcechange",t._f="destroy",t.gf="durationchange",t.wf="emptied",t.mu="encrypted",t.kf="ended",t.yf="mf",t.pf="loadstart",t.bf="manifestupdate",t.Af="nosupportedrepresentationfound",t.Tf="offline",t.Sf="online",t.Ef="pause",t.If="play",t.Rf="progress",t.Nf="ratechange",t.Df="representationchange",t.Cf="resize",t.Pf="seeked",t.Of="seeking",t.Bf="segmentnotfound",t.Lf="Mf",t.xf="Uf",t.Ff="sourcechange",t.Hf="timeupdate",t.Vf="volumechange",t.Xf="zf",t.qf="metricschange"}(Zs||(Zs={})),function(t){t.Wf="arraybuffer",t.Gf="json",t.Yf="stream",t.Jn="text"}(Qs||(Qs={}));var tf=function(){function t(n){var i=this;this.Jr=void 0,this.Jr={},n instanceof t?n.asList().forEach(function(t){var n=t[0],e=t[1];i.append(n,e)}):Array.isArray(n)?n.forEach(function(t){i.append(t[0],t[1])}):n&&c.getOwnPropertyNames(n).forEach(function(t){i.append(t,n[t])})}var n=t.prototype;return n.append=function(t,n){var i=t,e=n;i=nf(i),e=ef(e);var r=i.toLowerCase();if(this.Jr.hasOwnProperty(r)){var o=this.Jr[r],u=o[1];o[1]=u?u+", "+e:e}else this.Jr[r]=[i,e]},n.delete=function(t){var n=nf(t).toLowerCase();delete this.Jr[n]},n.get=function(t){var n=nf(t).toLowerCase();return this.Jr.hasOwnProperty(n)?this.Jr[n][1]:null},n.has=function(t){var n=nf(t).toLowerCase();return this.Jr.hasOwnProperty(n)},n.set=function(t,n){var i=t,e=(i=nf(i)).toLowerCase();this.Jr[e]=[i,ef(n)]},n.forEach=function(t,n){for(var i in this.Jr)this.Jr.hasOwnProperty(i)&&t.call(n,this.Jr[i][1],i,this)},n.asList=function(){var t=[];for(var n in this.Jr)if(this.Jr.hasOwnProperty(n)){var i=this.Jr[n],e=i[0],r=i[1];t.push([e,r])}return t},n.jf=function(){var t={};return this.forEach(function(n,i){t[i]=n}),t},n.Qf=function(t){var n=this;t.forEach(function(t,i){n.append(i,t)})},n.Kf=function(t){var n=this;t.forEach(function(t,i){n.set(i,t)})},t}();function nf(t){var n=t;if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new h("Invalid character in header field name");return n}function ef(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}var rf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"};function of(){}var uf=Number.isNaN||function(t){return t!=t},sf=of;function ff(t){return"object"==typeof t&&null!==t||"function"==typeof t}function hf(t){return t.slice()}function cf(t){return!1!==function(t){if("number"!=typeof t)return!1;if(uf(t))return!1;if(t<0)return!1;return!0}(t)&&t!==1/0}function af(t,n,i){if("function"!=typeof t)throw new h("Argument is not a function");return Function.prototype.apply.call(t,n,i)}function vf(t,n,i,e){var r=t[n];if(void 0!==r){if("function"!=typeof r)throw new h(r+" is not a method");switch(i){case 0:return function(){return lf(r,t,e)};case 1:return function(n){var i=[n].concat(e);return lf(r,t,i)}}}return function(){return If(void 0)}}function df(t,n,i){var e=t[n];if(void 0!==e)return af(e,t,i)}function lf(t,n,i){try{return If(af(t,n,i))}catch(t){return Tf(t)}}function wf(t){return t}function bf(t){if(t=Number(t),uf(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function gf(t){if(void 0===t)return function(){return 1};if("function"!=typeof t)throw new h("size property of a queuing strategy must be a function");return function(n){return t(n)}}var mf=j,pf=j.prototype.then,yf=j.resolve.bind(mf),_f=j.reject.bind(mf);function Sf(t){return new mf(t)}function If(t){return yf(t)}function Tf(t){return _f(t)}function Ef(t,n,i){return pf.call(t,n,i)}function Rf(t,n,i){Ef(Ef(t,n,i),void 0,sf)}function kf(t,n){Rf(t,n)}function Nf(t,n){Rf(t,void 0,n)}function Of(t,n,i){return Ef(t,n,i)}function Pf(t){Ef(t,void 0,sf)}var Af=function(){function t(){this.Zf=0,this.Jf=0,this.Ee={$f:[],tv:void 0},this.ev=this.Ee,this.Zf=0,this.Jf=0}return c.defineProperty(t.prototype,"length",{get:function(){return this.Jf},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var n=this.ev,i=n;16383===n.$f.length&&(i={$f:[],tv:void 0}),n.$f.push(t),i!==n&&(this.ev=i,n.tv=i),++this.Jf},t.prototype.shift=function(){var t=this.Ee,n=t,i=this.Zf,e=i+1,r=t.$f,o=r[i];return 16384===e&&(n=t.tv,e=0),--this.Jf,this.Zf=e,t!==n&&(this.Ee=n),r[i]=void 0,o},t.prototype.forEach=function(t){for(var n=this.Zf,i=this.Ee,e=i.$f;!(n===e.length&&void 0===i.tv||n===e.length&&(n=0,0===(e=(i=i.tv).$f).length));)t(e[n]),++n},t.prototype.peek=function(){var t=this.Ee,n=this.Zf;return t.$f[n]},t}();function Df(t,n,i){var e=null;!0===i&&(e=c.prototype);var r=c.create(e);return r.value=t,r.done=n,r}function xf(t,n){t.rv=!0,t.uv=n,n.ov=t,"readable"===n.ke?Lf(t):"closed"===n.ke?function(t){Lf(t),zf(t)}(t):Uf(t,n.hv)}function Cf(t,n){return Vc(t.uv,n)}function Bf(t){"readable"===t.uv.ke?Mf(t,new h("Reader was released and can no longer be used to monitor the stream's closedness")):function(t,n){Uf(t,n)}(t,new h("Reader was released and can no longer be used to monitor the stream's closedness")),t.uv.ov=void 0,t.uv=void 0}function Ff(t){return new h("Cannot "+t+" a stream using a released reader")}function Lf(t){t.Ma=Sf(function(n,i){t.fv=n,t.vv=i})}function Uf(t,n){Lf(t),Mf(t,n)}function Mf(t,n){Pf(t.Ma),t.vv(n),t.fv=void 0,t.vv=void 0}function zf(t){t.fv(void 0),t.fv=void 0,t.vv=void 0}var Wf=rf("[[CancelSteps]]"),qf=rf("[[PullSteps]]");function jf(t,n){void 0===n&&(n=!1);var i=new $f(t);return i.rv=n,i}function Vf(t){return Sf(function(n,i){var e={Vu:n,Xu:i};t.ov._v.push(e)})}function Hf(t,n,i){var e=t.ov;e._v.shift().Vu(Df(n,i,e.rv))}function Xf(t){return t.ov._v.length}function Gf(t){var n=t.ov;return void 0!==n&&!!Jf(n)}var Yf,Kf,$f=function(){function t(t){if(!1===qc(t))throw new h("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===jc(t))throw new h("This stream has already been locked for exclusive reading by another reader");xf(this,t),this._v=new Af}return c.defineProperty(t.prototype,"closed",{get:function(){return Jf(this)?this.Ma:Tf(Qf("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Jf(this)?void 0===this.uv?Tf(Ff("cancel")):Cf(this,t):Tf(Qf("cancel"))},t.prototype.read=function(){return Jf(this)?void 0===this.uv?Tf(Ff("read from")):Zf(this):Tf(Qf("read"))},t.prototype.releaseLock=function(){if(!Jf(this))throw Qf("releaseLock");if(void 0!==this.uv){if(this._v.length>0)throw new h("Tried to release a reader lock when that reader has pending read() calls un-settled");Bf(this)}},t}();function Jf(t){return!!ff(t)&&!!c.prototype.hasOwnProperty.call(t,"_v")}function Zf(t){var n=t.uv;return n.wv=!0,"closed"===n.ke?If(Df(void 0,!0,t.rv)):"errored"===n.ke?Tf(n.hv):n.yv[qf]()}function Qf(t){return new h("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof rf.asyncIterator&&((Yf={})[rf.asyncIterator]=function(){return this},Kf=Yf,c.defineProperty(Kf,rf.asyncIterator,{enumerable:!1}));var th={next:function(){if(!1===nh(this))return Tf(ih("next"));var t=this.mv;return void 0===t.uv?Tf(Ff("iterate")):Of(Zf(t),function(n){var i=n.done;return i&&Bf(t),Df(n.value,i,!0)})},return:function(t){if(!1===nh(this))return Tf(ih("next"));var n=this.mv;if(void 0===n.uv)return Tf(Ff("finish iterating"));if(n._v.length>0)return Tf(new h("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this.pv){var i=Cf(n,t);return Bf(n),Of(i,function(){return Df(t,!0,!0)})}return Bf(n),If(Df(t,!0,!0))}};function nh(t){return!!ff(t)&&!!c.prototype.hasOwnProperty.call(t,"mv")}function ih(t){return new h("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function eh(t){var n=t.bv.shift();return t.Av-=n.size,t.Av<0&&(t.Av=0),n.value}function rh(t,n,i){if(!cf(i=Number(i)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t.bv.push({value:n,size:i}),t.Av+=i}function oh(t){t.bv=new Af,t.Av=0}void 0!==Kf&&c.setPrototypeOf(th,Kf),c.defineProperty(th,"next",{enumerable:!1}),c.defineProperty(th,"return",{enumerable:!1});var uh=rf("[[AbortSteps]]"),sh=rf("[[ErrorSteps]]"),fh=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),ch(this);var i=n.size,e=n.highWaterMark;if(void 0!==t.type)throw new RangeError("Invalid type is specified");var r=gf(i);void 0===e&&(e=1),function(t,n,i,e){var r=c.create(Nh.prototype);var o=vf(n,"write",1,[r]),u=vf(n,"close",0,[]),s=vf(n,"abort",1,[]);Oh(t,r,function(){return df(n,"start",[r])},o,u,s,i,e)}(this,t,e=bf(e),r)}return c.defineProperty(t.prototype,"locked",{get:function(){if(!1===ah(this))throw Fh("locked");return vh(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===ah(this)?Tf(Fh("abort")):!0===vh(this)?Tf(new h("Cannot abort a stream that already has a writer")):dh(this,t)},t.prototype.close=function(){return!1===ah(this)?Tf(Fh("close")):!0===vh(this)?Tf(new h("Cannot close a stream that already has a writer")):!0===mh(this)?Tf(new h("Cannot close an already-closing stream")):lh(this)},t.prototype.getWriter=function(){if(!1===ah(this))throw Fh("getWriter");return hh(this)},t}();function hh(t){return new _h(t)}function ch(t){t.ke="writable",t.hv=void 0,t.Ao=void 0,t.Tv=void 0,t.Sv=new Af,t.Ev=void 0,t.Iv=void 0,t.Rv=void 0,t.Nv=void 0,t.Dv=!1}function ah(t){return!!ff(t)&&!!c.prototype.hasOwnProperty.call(t,"Tv")}function vh(t){return void 0!==t.Ao}function dh(t,n){var i=t.ke;if("closed"===i||"errored"===i)return If(void 0);if(void 0!==t.Nv)return t.Nv.Cv;var e=!1;"erroring"===i&&(e=!0,n=void 0);var r=Sf(function(i,r){t.Nv={Cv:void 0,Vu:i,Xu:r,Pv:n,Ov:e}});return t.Nv.Cv=r,!1===e&&bh(t,n),r}function lh(t){var n=t.ke;if("closed"===n||"errored"===n)return Tf(new h("The stream (in "+n+" state) is not in the writable state and cannot be closed"));var i,e=Sf(function(n,i){var e={Vu:n,Xu:i};t.Iv=e}),r=t.Ao;return void 0!==r&&!0===t.Dv&&"writable"===n&&Gh(r),rh(i=t.Tv,"close",0),Dh(i),e}function wh(t,n){"writable"!==t.ke?gh(t):bh(t,n)}function bh(t,n){var i=t.Tv;t.ke="erroring",t.hv=n;var e=t.Ao;void 0!==e&&Eh(e,n),!1===function(t){if(void 0===t.Ev&&void 0===t.Rv)return!1;return!0}(t)&&!0===i.Bv&&gh(t)}function gh(t){t.ke="errored",t.Tv[sh]();var n=t.hv;if(t.Sv.forEach(function(t){t.Xu(n)}),t.Sv=new Af,void 0!==t.Nv){var i=t.Nv;if(t.Nv=void 0,!0===i.Ov)return i.Xu(n),void ph(t);Rf(t.Tv[uh](i.Pv),function(){i.Vu(),ph(t)},function(n){i.Xu(n),ph(t)})}else ph(t)}function mh(t){return void 0!==t.Iv||void 0!==t.Rv}function ph(t){void 0!==t.Iv&&(t.Iv.Xu(t.hv),t.Iv=void 0);var n=t.Ao;void 0!==n&&Wh(n,t.hv)}function yh(t,n){var i=t.Ao;void 0!==i&&n!==t.Dv&&(!0===n?function(t){jh(t)}(i):Gh(i)),t.Dv=n}var _h=function(){function t(t){if(!1===ah(t))throw new h("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===vh(t))throw new h("This stream has already been locked for exclusive writing by another writer");this.Lv=t,t.Ao=this;var n,i=t.ke;if("writable"===i)!1===mh(t)&&!0===t.Dv?jh(this):Hh(this),Mh(this);else if("erroring"===i)Vh(this,t.hv),Mh(this);else if("closed"===i)Hh(this),Mh(n=this),qh(n);else{var e=t.hv;Vh(this,e),zh(this,e)}}return c.defineProperty(t.prototype,"closed",{get:function(){return!1===Sh(this)?Tf(Lh("closed")):this.Ma},enumerable:!0,configurable:!0}),c.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Sh(this))throw Lh("desiredSize");if(void 0===this.Lv)throw Uh("desiredSize");return function(t){var n=t.Lv,i=n.ke;if("errored"===i||"erroring"===i)return null;if("closed"===i)return 0;return Ah(n.Tv)}(this)},enumerable:!0,configurable:!0}),c.defineProperty(t.prototype,"ready",{get:function(){return!1===Sh(this)?Tf(Lh("ready")):this.Mv},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===Sh(this)?Tf(Lh("abort")):void 0===this.Lv?Tf(Uh("abort")):function(t,n){return dh(t.Lv,n)}(this,t)},t.prototype.close=function(){if(!1===Sh(this))return Tf(Lh("close"));var t=this.Lv;return void 0===t?Tf(Uh("close")):!0===mh(t)?Tf(new h("Cannot close an already-closing stream")):Ih(this)},t.prototype.releaseLock=function(){if(!1===Sh(this))throw Lh("releaseLock");void 0!==this.Lv&&Rh(this)},t.prototype.write=function(t){return!1===Sh(this)?Tf(Lh("write")):void 0===this.Lv?Tf(Uh("write to")):kh(this,t)},t}();function Sh(t){return!!ff(t)&&!!c.prototype.hasOwnProperty.call(t,"Lv")}function Ih(t){return lh(t.Lv)}function Th(t,n){"pending"===t.xv?Wh(t,n):function(t,n){zh(t,n)}(t,n)}function Eh(t,n){"pending"===t.Uv?Xh(t,n):function(t,n){Vh(t,n)}(t,n)}function Rh(t){var n=t.Lv,i=new h("Writer was released and can no longer be used to monitor the stream's closedness");Eh(t,i),Th(t,i),n.Ao=void 0,t.Lv=void 0}function kh(t,n){var i=t.Lv,e=i.Tv,r=function(t,n){try{return t.Fv(n)}catch(n){return xh(t,n),1}}(e,n);if(i!==t.Lv)return Tf(Uh("write to"));var o=i.ke;if("errored"===o)return Tf(i.hv);if(!0===mh(i)||"closed"===o)return Tf(new h("The stream is closing or closed and cannot be written to"));if("erroring"===o)return Tf(i.hv);var u=function(t){return Sf(function(n,i){var e={Vu:n,Xu:i};t.Sv.push(e)})}(i);return function(t,n,i){var e={chunk:n};try{rh(t,e,i)}catch(n){return void xh(t,n)}var r=t.Hv;if(!1===mh(r)&&"writable"===r.ke){var o=Ch(t);yh(r,o)}Dh(t)}(e,n,r),u}var Nh=function(){function t(){throw new h("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(!1===function(t){if(!ff(t))return!1;if(!c.prototype.hasOwnProperty.call(t,"Hv"))return!1;return!0}(this))throw new h("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this.Hv.ke&&Bh(this,t)},t.prototype[uh]=function(t){var n=this.Vv(t);return Ph(this),n},t.prototype[sh]=function(){oh(this)},t}();function Oh(t,n,i,e,r,o,u,s){n.Hv=t,t.Tv=n,n.bv=void 0,n.Av=void 0,oh(n),n.Bv=!1,n.Fv=s,n.Xv=u,n.zv=e,n.qv=r,n.Vv=o;var f=Ch(n);yh(t,f),Rf(If(i()),function(){n.Bv=!0,Dh(n)},function(i){n.Bv=!0,wh(t,i)})}function Ph(t){t.zv=void 0,t.qv=void 0,t.Vv=void 0,t.Fv=void 0}function Ah(t){return t.Xv-t.Av}function Dh(t){var n=t.Hv;if(!1!==t.Bv&&void 0===n.Ev)if("erroring"!==n.ke){if(0!==t.bv.length){var i=t.bv.peek().value;"close"===i?function(t){var n=t.Hv;(function(t){t.Rv=t.Iv,t.Iv=void 0})(n),eh(t);var i=t.qv();Ph(t),Rf(i,function(){!function(t){t.Rv.Vu(void 0),t.Rv=void 0,"erroring"===t.ke&&(t.hv=void 0,void 0!==t.Nv&&(t.Nv.Vu(),t.Nv=void 0)),t.ke="closed";var n=t.Ao;void 0!==n&&qh(n)}(n)},function(t){!function(t,n){t.Rv.Xu(n),t.Rv=void 0,void 0!==t.Nv&&(t.Nv.Xu(n),t.Nv=void 0),wh(t,n)}(n,t)})}(t):function(t,n){var i=t.Hv;(function(t){t.Ev=t.Sv.shift()})(i),Rf(t.zv(n),function(){!function(t){t.Ev.Vu(void 0),t.Ev=void 0}(i);var n=i.ke;if(eh(t),!1===mh(i)&&"writable"===n){var e=Ch(t);yh(i,e)}Dh(t)},function(n){"writable"===i.ke&&Ph(t),function(t,n){t.Ev.Xu(n),t.Ev=void 0,wh(t,n)}(i,n)})}(t,i.chunk)}}else gh(n)}function xh(t,n){"writable"===t.Hv.ke&&Bh(t,n)}function Ch(t){return Ah(t)<=0}function Bh(t,n){var i=t.Hv;Ph(t),bh(i,n)}function Fh(t){return new h("WritableStream.prototype."+t+" can only be used on a WritableStream")}function Lh(t){return new h("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function Uh(t){return new h("Cannot "+t+" a stream using a released writer")}function Mh(t){t.Ma=Sf(function(n,i){t.fv=n,t.vv=i,t.xv="pending"})}function zh(t,n){Mh(t),Wh(t,n)}function Wh(t,n){Pf(t.Ma),t.vv(n),t.fv=void 0,t.vv=void 0,t.xv="rejected"}function qh(t){t.fv(void 0),t.fv=void 0,t.vv=void 0,t.xv="resolved"}function jh(t){t.Mv=Sf(function(n,i){t.Wv=n,t.Gv=i}),t.Uv="pending"}function Vh(t,n){jh(t),Xh(t,n)}function Hh(t){jh(t),Gh(t)}function Xh(t,n){Pf(t.Mv),t.Gv(n),t.Wv=void 0,t.Gv=void 0,t.Uv="rejected"}function Gh(t){t.Wv(void 0),t.Wv=void 0,t.Gv=void 0,t.Uv="fulfilled"}function Yh(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}var Kh="undefined"!=typeof DOMException?DOMException:void 0;var $h,Jh=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}(Kh)?Kh:(($h=function(t,n){this.message=t||"",this.name=n||"Error",f.captureStackTrace&&f.captureStackTrace(this,this.constructor)}).prototype=c.create(f.prototype),c.defineProperty($h.prototype,"constructor",{value:$h,writable:!0,configurable:!0}),$h);function Zh(t,n,i,e,r,o){var u=jf(t),s=hh(n);t.wv=!0;var f=!1,c=If(void 0);return Sf(function(a,v){var d,l,w,b;if(void 0!==o){if(d=function(){var i=new Jh("Aborted","AbortError"),o=[];!1===e&&o.push(function(){return"writable"===n.ke?dh(n,i):If(void 0)}),!1===r&&o.push(function(){return"readable"===t.ke?Vc(t,i):If(void 0)}),y(function(){return j.all(o.map(function(t){return t()}))},!0,i)},!0===o.aborted)return void d();o.addEventListener("abort",d)}if(p(t,u.Ma,function(t){!1===e?y(function(){return dh(n,t)},!0,t):_(!0,t)}),p(n,s.Ma,function(n){!1===r?y(function(){return Vc(t,n)},!0,n):_(!0,n)}),l=t,w=u.Ma,b=function(){!1===i?y(function(){return function(t){var n=t.Lv,i=n.ke;return!0===mh(n)||"closed"===i?If(void 0):"errored"===i?Tf(n.hv):Ih(t)}(s)}):_()},"closed"===l.ke?b():kf(w,b),!0===mh(n)||"closed"===n.ke){var g=new h("the destination writable stream closed before all data could be piped to it");!1===r?y(function(){return Vc(t,g)},!0,g):_(!0,g)}function m(){var t=c;return Ef(c,function(){return t!==c?m():void 0})}function p(t,n,i){"errored"===t.ke?i(t.hv):Nf(n,i)}function y(t,i,e){function r(){Rf(t(),function(){return S(i,e)},function(t){return S(!0,t)})}!0!==f&&(f=!0,"writable"===n.ke&&!1===mh(n)?kf(m(),r):r())}function _(t,i){!0!==f&&(f=!0,"writable"===n.ke&&!1===mh(n)?kf(m(),function(){return S(t,i)}):S(t,i))}function S(t,n){Rh(s),Bf(u),void 0!==o&&o.removeEventListener("abort",d),t?v(n):a(void 0)}Pf(Sf(function(t,n){!function i(e){e?t():Ef(!0===f?If(!0):Ef(s.Mv,function(){return Ef(Zf(u),function(t){return!0===t.done||(c=Ef(kh(s,t.value),void 0,of),!1)})}),i,n)}(!1)}))})}var Qh=function(){function t(){throw new h}return c.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===tc(this))throw cc("desiredSize");return sc(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===tc(this))throw cc("close");if(!1===fc(this))throw new h("The stream is not in a state that permits close");rc(this)},t.prototype.enqueue=function(t){if(!1===tc(this))throw cc("enqueue");if(!1===fc(this))throw new h("The stream is not in a state that permits enqueue");return oc(this,t)},t.prototype.error=function(t){if(!1===tc(this))throw cc("error");uc(this,t)},t.prototype[Wf]=function(t){oh(this);var n=this.Yv(t);return ec(this),n},t.prototype[qf]=function(){var t=this.Qv;if(this.bv.length>0){var n=eh(this);return!0===this.Kv&&0===this.bv.length?(ec(this),Hc(t)):nc(this),If(Df(n,!1,t.ov.rv))}var i=Vf(t);return nc(this),i},t}();function tc(t){return!!ff(t)&&!!c.prototype.hasOwnProperty.call(t,"Qv")}function nc(t){!1!==ic(t)&&(!0!==t.Zv?(t.Zv=!0,Rf(t.Jv(),function(){t.Zv=!1,!0===t.$v&&(t.$v=!1,nc(t))},function(n){uc(t,n)})):t.$v=!0)}function ic(t){var n=t.Qv;return!1!==fc(t)&&(!1!==t.Bv&&(!0===jc(n)&&Xf(n)>0||sc(t)>0))}function ec(t){t.Jv=void 0,t.Yv=void 0,t.Fv=void 0}function rc(t){var n=t.Qv;t.Kv=!0,0===t.bv.length&&(ec(t),Hc(n))}function oc(t,n){var i=t.Qv;if(!0===jc(i)&&Xf(i)>0)Hf(i,n,!1);else{var e=void 0;try{e=t.Fv(n)}catch(n){throw uc(t,n),n}try{rh(t,n,e)}catch(n){throw uc(t,n),n}}nc(t)}function uc(t,n){var i=t.Qv;"readable"===i.ke&&(oh(t),ec(t),Xc(i,n))}function sc(t){var n=t.Qv.ke;return"errored"===n?null:"closed"===n?0:t.Xv-t.Av}function fc(t){var n=t.Qv.ke;return!1===t.Kv&&"readable"===n}function hc(t,n,i,e,r,o,u){n.Qv=t,n.bv=void 0,n.Av=void 0,oh(n),n.Bv=!1,n.Kv=!1,n.$v=!1,n.Zv=!1,n.Fv=u,n.Xv=o,n.Jv=e,n.Yv=r,t.yv=n,Rf(If(i()),function(){n.Bv=!0,nc(n)},function(t){uc(n,t)})}function cc(t){return new h("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}var ac=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&a.floor(t)===t},vc=function(){function t(){throw new h("ReadableStreamBYOBRequest cannot be used directly")}return c.defineProperty(t.prototype,"view",{get:function(){if(!1===wc(this))throw Ac("view");return this.td},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===wc(this))throw Ac("respond");if(void 0===this.ed)throw new h("This BYOB request has been invalidated");this.td.buffer,function(t,n){if(!1===cf(n=Number(n)))throw new RangeError("bytesWritten must be a finite");Ec(t,n)}(this.ed,t)},t.prototype.respondWithNewView=function(t){if(!1===wc(this))throw Ac("respond");if(void 0===this.ed)throw new h("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new h("You can only respond with array buffer views");t.buffer,function(t,n){var i=t.rd.peek();if(i.byteOffset+i.bytesFilled!==n.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(i.byteLength!==n.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");i.buffer=n.buffer,Ec(t,n.byteLength)}(this.ed,t)},t}(),dc=function(){function t(){throw new h("ReadableByteStreamController constructor cannot be used directly")}return c.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===lc(this))throw Dc("byobRequest");if(void 0===this.ud&&this.rd.length>0){var t=this.rd.peek(),n=new w(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),i=c.create(vc.prototype);!function(t,n,i){t.ed=n,t.td=i}(i,this,n),this.ud=i}return this.ud},enumerable:!0,configurable:!0}),c.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===lc(this))throw Dc("desiredSize");return Oc(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===lc(this))throw Dc("close");if(!0===this.Kv)throw new h("The stream has already been closed; do not close it again!");var t=this.od.ke;if("readable"!==t)throw new h("The stream (in "+t+" state) is not in the readable state and cannot be closed");!function(t){var n=t.od;if(t.Av>0)return void(t.Kv=!0);if(t.rd.length>0){var i=t.rd.peek();if(i.bytesFilled>0){var e=new h("Insufficient bytes to fill elements in the given buffer");throw Nc(t,e),e}}kc(t),Hc(n)}(this)},t.prototype.enqueue=function(t){if(!1===lc(this))throw Dc("enqueue");if(!0===this.Kv)throw new h("stream is closed or draining");var n=this.od.ke;if("readable"!==n)throw new h("The stream (in "+n+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new h("You can only enqueue array buffer views when using a ReadableByteStreamController");t.buffer,function(t,n){var i=t.od,e=n.buffer,r=n.byteOffset,o=n.byteLength,u=wf(e);if(!0===Gf(i))if(0===Xf(i))pc(t,u,r,o);else{var s=new w(u,r,o);Hf(i,s,!1)}else!0===Bc(i)?(pc(t,u,r,o),Tc(t)):pc(t,u,r,o);bc(t)}(this,t)},t.prototype.error=function(t){if(!1===lc(this))throw Dc("error");Nc(this,t)},t.prototype[Wf]=function(t){this.rd.length>0&&(this.rd.peek().bytesFilled=0);oh(this);var n=this.Yv(t);return kc(this),n},t.prototype[qf]=function(){var t=this.od;if(this.Av>0){var n=this.bv.shift();this.Av-=n.byteLength,Sc(this);var i=void 0;try{i=new w(n.buffer,n.byteOffset,n.byteLength)}catch(t){return Tf(t)}return If(Df(i,!1,t.ov.rv))}var e=this.hd;if(void 0!==e){var r=void 0;try{r=new ArrayBuffer(e)}catch(t){return Tf(t)}var o={buffer:r,byteOffset:0,byteLength:e,bytesFilled:0,elementSize:1,ctor:w,readerType:"default"};this.rd.push(o)}var u=Vf(t);return bc(this),u},t}();function lc(t){return!!ff(t)&&!!c.prototype.hasOwnProperty.call(t,"od")}function wc(t){return!!ff(t)&&!!c.prototype.hasOwnProperty.call(t,"ed")}function bc(t){!1!==function(t){var n=t.od;if("readable"!==n.ke)return!1;if(!0===t.Kv)return!1;if(!1===t.Bv)return!1;if(!0===Gf(n)&&Xf(n)>0)return!0;if(!0===Bc(n)&&Cc(n)>0)return!0;if(Oc(t)>0)return!0;return!1}(t)&&(!0!==t.Zv?(t.Zv=!0,Rf(t.Jv(),function(){t.Zv=!1,!0===t.$v&&(t.$v=!1,bc(t))},function(n){Nc(t,n)})):t.$v=!0)}function gc(t,n){var i=!1;"closed"===t.ke&&(i=!0);var e=mc(n);"default"===n.readerType?Hf(t,e,i):function(t,n,i){var e=t.ov;e.fd.shift().Vu(Df(n,i,e.rv))}(t,e,i)}function mc(t){var n=t.bytesFilled,i=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,n/i)}function pc(t,n,i,e){t.bv.push({buffer:n,byteOffset:i,byteLength:e}),t.Av+=e}function yc(t,n){var i=n.elementSize,e=n.bytesFilled-n.bytesFilled%i,r=a.min(t.Av,n.byteLength-n.bytesFilled),o=n.bytesFilled+r,u=o-o%i,s=r,f=!1;u>e&&(s=u-n.bytesFilled,f=!0);for(var h,c,v,d,l,b=t.bv;s>0;){var g=b.peek(),m=a.min(s,g.byteLength),p=n.byteOffset+n.bytesFilled;h=n.buffer,c=p,v=g.buffer,d=g.byteOffset,l=m,new w(h).set(new w(v,d,l),c),g.byteLength===m?b.shift():(g.byteOffset+=m,g.byteLength-=m),t.Av-=m,_c(t,m,n),s-=m}return f}function _c(t,n,i){Ic(t),i.bytesFilled+=n}function Sc(t){0===t.Av&&!0===t.Kv?(kc(t),Hc(t.od)):bc(t)}function Ic(t){void 0!==t.ud&&(t.ud.ed=void 0,t.ud.td=void 0,t.ud=void 0)}function Tc(t){for(;t.rd.length>0;){if(0===t.Av)return;var n=t.rd.peek();!0===yc(t,n)&&(Rc(t),gc(t.od,n))}}function Ec(t,n){var i=t.rd.peek();if("closed"===t.od.ke){if(0!==n)throw new h("bytesWritten must be 0 when calling respond() on a closed stream");!function(t,n){n.buffer=wf(n.buffer);var i=t.od;if(!0===Bc(i))for(;Cc(i)>0;)gc(i,Rc(t))}(t,i)}else!function(t,n,i){if(i.bytesFilled+n>i.byteLength)throw new RangeError("bytesWritten out of range");if(_c(t,n,i),!(i.bytesFilled<i.elementSize)){Rc(t);var e=i.bytesFilled%i.elementSize;if(e>0){var r=i.byteOffset+i.bytesFilled,o=i.buffer.slice(r-e,r);pc(t,o,0,o.byteLength)}i.buffer=wf(i.buffer),i.bytesFilled-=e,gc(t.od,i),Tc(t)}}(t,n,i);bc(t)}function Rc(t){var n=t.rd.shift();return Ic(t),n}function kc(t){t.Jv=void 0,t.Yv=void 0}function Nc(t,n){var i=t.od;"readable"===i.ke&&(!function(t){Ic(t),t.rd=new Af}(t),oh(t),kc(t),Xc(i,n))}function Oc(t){var n=t.od.ke;return"errored"===n?null:"closed"===n?0:t.Xv-t.Av}function Pc(t,n,i){var e=c.create(dc.prototype);var r=vf(n,"pull",0,[e]),o=vf(n,"cancel",1,[]),u=n.autoAllocateChunkSize;if(void 0!==u&&(u=Number(u),!1===ac(u)||u<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(t,n,i,e,r,o,u){n.od=t,n.$v=!1,n.Zv=!1,n.ud=void 0,n.bv=n.Av=void 0,oh(n),n.Kv=!1,n.Bv=!1,n.Xv=bf(o),n.Jv=e,n.Yv=r,n.hd=u,n.rd=new Af,t.yv=n,Rf(If(i()),function(){n.Bv=!0,bc(n)},function(t){Nc(n,t)})}(t,e,function(){return df(n,"start",[e])},r,o,i,u)}function Ac(t){return new h("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function Dc(t){return new h("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function xc(t){return Sf(function(n,i){var e={Vu:n,Xu:i};t.ov.fd.push(e)})}function Cc(t){return t.ov.fd.length}function Bc(t){var n=t.ov;return void 0!==n&&!!Lc(n)}var Fc=function(){function t(t){if(!qc(t))throw new h("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===lc(t.yv))throw new h("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(jc(t))throw new h("This stream has already been locked for exclusive reading by another reader");xf(this,t),this.fd=new Af}return c.defineProperty(t.prototype,"closed",{get:function(){return Lc(this)?this.Ma:Tf(Uc("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Lc(this)?void 0===this.uv?Tf(Ff("cancel")):Cf(this,t):Tf(Uc("cancel"))},t.prototype.read=function(t){return Lc(this)?void 0===this.uv?Tf(Ff("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?Tf(new h("view must have non-zero byteLength")):function(t,n){var i=t.uv;if(i.wv=!0,"errored"===i.ke)return Tf(i.hv);return function(t,n){var i=t.od,e=1;n.constructor!==DataView&&(e=n.constructor.BYTES_PER_ELEMENT);var r=n.constructor,o={buffer:wf(n.buffer),byteOffset:n.byteOffset,byteLength:n.byteLength,bytesFilled:0,elementSize:e,ctor:r,readerType:"byob"};if(t.rd.length>0)return t.rd.push(o),xc(i);if("closed"===i.ke)return If(Df(new r(o.buffer,o.byteOffset,0),!0,i.ov.rv));if(t.Av>0){if(!0===yc(t,o)){var u=mc(o);return Sc(t),If(Df(u,!1,i.ov.rv))}if(!0===t.Kv){var s=new h("Insufficient bytes to fill elements in the given buffer");return Nc(t,s),Tf(s)}}t.rd.push(o);var f=xc(i);return bc(t),f}(i.yv,n)}(this,t)):Tf(new h("view must be an array buffer view")):Tf(Uc("read"))},t.prototype.releaseLock=function(){if(!Lc(this))throw Uc("releaseLock");if(void 0!==this.uv){if(this.fd.length>0)throw new h("Tried to release a reader lock when that reader has pending read() calls un-settled");Bf(this)}},t}();function Lc(t){return!!ff(t)&&!!c.prototype.hasOwnProperty.call(t,"fd")}function Uc(t){return new h("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}var Mc=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),Wc(this);var i=n.size,e=n.highWaterMark,r=t.type;if("bytes"===String(r)){if(void 0!==i)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===e&&(e=0),Pc(this,t,e=bf(e))}else{if(void 0!==r)throw new RangeError("Invalid type is specified");var o=gf(i);void 0===e&&(e=1),function(t,n,i,e){var r=c.create(Qh.prototype),o=vf(n,"pull",0,[r]),u=vf(n,"cancel",1,[]);hc(t,r,function(){return df(n,"start",[r])},o,u,i,e)}(this,t,e=bf(e),o)}}return c.defineProperty(t.prototype,"locked",{get:function(){if(!1===qc(this))throw Gc("locked");return jc(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===qc(this)?Tf(Gc("cancel")):!0===jc(this)?Tf(new h("Cannot cancel a stream that already has a reader")):Vc(this,t)},t.prototype.getReader=function(t){var n=(void 0===t?{}:t).mode;if(!1===qc(this))throw Gc("getReader");if(void 0===n)return jf(this,!0);if("byob"===(n=String(n)))return function(t,n){void 0===n&&(n=!1);var i=new Fc(t);return i.rv=n,i}(this,!0);throw new RangeError("Invalid mode is specified")},t.prototype.pipeThrough=function(t,n){var i=t.writable,e=t.readable,r=void 0===n?{}:n,o=r.preventClose,u=r.preventAbort,s=r.preventCancel,f=r.signal;if(!1===qc(this))throw Gc("pipeThrough");if(!1===ah(i))throw new h("writable argument to pipeThrough must be a WritableStream");if(!1===qc(e))throw new h("readable argument to pipeThrough must be a ReadableStream");if(o=Boolean(o),u=Boolean(u),s=Boolean(s),void 0!==f&&!Yh(f))throw new h("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===jc(this))throw new h("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===vh(i))throw new h("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return Pf(Zh(this,i,o,u,s,f)),e},t.prototype.pipeTo=function(t,n){var i=void 0===n?{}:n,e=i.preventClose,r=i.preventAbort,o=i.preventCancel,u=i.signal;return!1===qc(this)?Tf(Gc("pipeTo")):!1===ah(t)?Tf(new h("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(e=Boolean(e),r=Boolean(r),o=Boolean(o),void 0===u||Yh(u)?!0===jc(this)?Tf(new h("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===vh(t)?Tf(new h("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Zh(this,t,e,r,o,u):Tf(new h("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===qc(this))throw Gc("tee");var t=function(t,n){var i,e,r,o,u,s=jf(t),f=!1,h=!1,c=!1,a=Sf(function(t){u=t});function v(){return!0===f?If(void 0):(f=!0,Pf(Of(Zf(s),function(t){if(f=!1,!0===t.done)return!1===h&&rc(r.yv),void(!1===c&&rc(o.yv));var n=t.value,i=n,e=n;!1===h&&oc(r.yv,i),!1===c&&oc(o.yv,e)})),If(void 0))}function d(){}return r=zc(d,v,function(n){if(h=!0,i=n,!0===c){var r=hf([i,e]),o=Vc(t,r);u(o)}return a}),o=zc(d,v,function(n){if(c=!0,e=n,!0===h){var r=hf([i,e]),o=Vc(t,r);u(o)}return a}),Nf(s.Ma,function(t){uc(r.yv,t),uc(o.yv,t)}),[r,o]}(this);return hf(t)},t.prototype.getIterator=function(t){var n=(void 0===t?{}:t).preventCancel,i=void 0!==n&&n;if(!1===qc(this))throw Gc("getIterator");return function(t,n){void 0===n&&(n=!1);var i=jf(t),e=c.create(th);return e.mv=i,e.pv=Boolean(n),e}(this,i)},t}();function zc(t,n,i,e,r){void 0===e&&(e=1),void 0===r&&(r=function(){return 1});var o=c.create(Mc.prototype);return Wc(o),hc(o,c.create(Qh.prototype),t,n,i,e,r),o}function Wc(t){t.ke="readable",t.ov=void 0,t.hv=void 0,t.wv=!1}function qc(t){return!!ff(t)&&!!c.prototype.hasOwnProperty.call(t,"yv")}function jc(t){return void 0!==t.ov}function Vc(t,n){return t.wv=!0,"closed"===t.ke?If(void 0):"errored"===t.ke?Tf(t.hv):(Hc(t),Of(t.yv[Wf](n),of))}function Hc(t){t.ke="closed";var n=t.ov;void 0!==n&&(Jf(n)&&(n._v.forEach(function(t){t.Vu(Df(void 0,!0,n.rv))}),n._v=new Af),zf(n))}function Xc(t,n){t.ke="errored",t.hv=n;var i=t.ov;void 0!==i&&(Jf(i)?(i._v.forEach(function(t){t.Xu(n)}),i._v=new Af):(i.fd.forEach(function(t){t.Xu(n)}),i.fd=new Af),Mf(i,n))}function Gc(t){return new h("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}"symbol"==typeof rf.asyncIterator&&c.defineProperty(Mc.prototype,rf.asyncIterator,{value:Mc.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Yc=function(){function t(t,n,i){void 0===t&&(t={}),void 0===n&&(n={}),void 0===i&&(i={});var e=n.size,r=n.highWaterMark,o=i.size,u=i.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=gf(e);if(void 0===r&&(r=1),r=bf(r),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var f,a=gf(o);void 0===u&&(u=0),u=bf(u),function(t,n,i,e,r,o){function u(){return n}t.vd=function(t,n,i,e,r,o){void 0===r&&(r=1),void 0===o&&(o=function(){return 1});var u=c.create(fh.prototype);return ch(u),Oh(u,c.create(Nh.prototype),t,n,i,e,r,o),u}(u,function(n){return function(t,n){var i=t.dd;if(!0===t.Dv){var e=t.ld;return Of(e,function(){var e=t.vd,r=e.ke;if("erroring"===r)throw e.hv;return ra(i,n)})}return ra(i,n)}(t,n)},function(){return function(t){var n=t._d,i=t.dd,e=i.wd();return ia(i),Of(e,function(){if("errored"===n.ke)throw n.hv;var t=n.yv;!0===fc(t)&&rc(t)},function(i){throw $c(t,i),n.hv})}(t)},function(n){return function(t,n){return $c(t,n),If(void 0)}(t,n)},i,e),t._d=zc(u,function(){return function(t){return Zc(t,!1),t.ld}(t)},function(n){return Jc(t,n),If(void 0)},r,o),t.Dv=void 0,t.ld=void 0,t.kd=void 0,Zc(t,!0),t.dd=void 0}(this,Sf(function(t){f=t}),r,s,u,a),function(t,n){var i=c.create(ta.prototype),e=function(t){try{return ea(i,t),If(void 0)}catch(t){return Tf(t)}},r=n.transform;if(void 0!==r){if("function"!=typeof r)throw new h("transform is not a method");e=function(t){return lf(r,n,[t,i])}}var o=vf(n,"flush",0,[i]);!function(t,n,i,e){n.yd=t,t.dd=n,n.md=i,n.wd=e}(t,i,e,o)}(this,t);var v=df(t,"start",[this.dd]);f(v)}return c.defineProperty(t.prototype,"readable",{get:function(){if(!1===Kc(this))throw ua("readable");return this._d},enumerable:!0,configurable:!0}),c.defineProperty(t.prototype,"writable",{get:function(){if(!1===Kc(this))throw ua("writable");return this.vd},enumerable:!0,configurable:!0}),t}();function Kc(t){return!!ff(t)&&!!c.prototype.hasOwnProperty.call(t,"dd")}function $c(t,n){uc(t._d.yv,n),Jc(t,n)}function Jc(t,n){ia(t.dd),xh(t.vd.Tv,n),!0===t.Dv&&Zc(t,!1)}function Zc(t,n){void 0!==t.ld&&t.kd(),t.ld=Sf(function(n){t.kd=n}),t.Dv=n}var Qc,ta=function(){function t(){throw new h("TransformStreamDefaultController instances cannot be created directly")}return c.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===na(this))throw oa("desiredSize");return sc(this.yd._d.yv)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===na(this))throw oa("enqueue");ea(this,t)},t.prototype.error=function(t){if(!1===na(this))throw oa("error");var n;n=t,$c(this.yd,n)},t.prototype.terminate=function(){if(!1===na(this))throw oa("terminate");!function(t){var n=t.yd,i=n._d.yv;!0===fc(i)&&rc(i);var e=new h("TransformStream terminated");Jc(n,e)}(this)},t}();function na(t){return!!ff(t)&&!!c.prototype.hasOwnProperty.call(t,"yd")}function ia(t){t.md=void 0,t.wd=void 0}function ea(t,n){var i=t.yd,e=i._d.yv;if(!1===fc(e))throw new h("Readable side is not in a state that permits enqueue");try{oc(e,n)}catch(t){throw Jc(i,t),i._d.hv}(function(t){return!0!==ic(t)})(e)!==i.Dv&&Zc(i,!0)}function ra(t,n){return Of(t.md(n),void 0,function(n){throw $c(t.yd,n),n})}function oa(t){return new h("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function ua(t){return new h("TransformStream.prototype."+t+" can only be used on a TransformStream")}function sa(t){return n=[t],new Mc({start:function(t){for(var i=0;i<n.length;i++){var e=n[i];t.enqueue(e)}t.close()}});var n}function fa(t){return sa(new w(t))}function ha(t,n){return function(t,n){var i=n,e=t.getReader(),r=new iu,o=function(){u();var t=new Pn;e.cancel(t).catch(lt),r.Gu(t)},u=function(){i&&(i.xs(o),i=void 0)};i&&(i.Ds?o():i.Ms(o));var s=[];return j.resolve(e.read()).then(function t(n){return n.done?(u(),j.resolve(s)):(s.push(n.value),j.resolve(e.read()).then(t))}).then(function(t){u(),r.Wu(t)},function(t){u(),r.Gu(t)}),r.Hu}(t,n).then(function(t){return Mn(t).buffer})}function ca(t,n){var i=n,e=new Yc,r=e.readable,o=e.writable,u=o.getWriter(),s=function(){i&&i.Vs()};return u.closed.then(s,s),t.then(function(t){return i=void 0,u.releaseLock(),t.pipeTo(o).catch(lt)},function(t){return i=void 0,u.releaseLock(),o.abort(t).catch(lt)}),r}function aa(t){return ii(new w(t))}function va(t){return ei(t).buffer}!function(t){t[t.Yf=0]="Yf",t[t.pd=1]="pd"}(Qc||(Qc={}));var da="content-type",la="text/plain;charset=UTF-8",wa=function(){function t(){}var n=t.prototype;return n.bd=function(t){return this.Td(t).then(JSON.parse)},n.Sd=function(t,n){switch(t){case Qs.Wf:return this.Ed(n);case Qs.Gf:return this.bd(n);case Qs.Yf:return this.Id();case Qs.Jn:return this.Td(n);default:throw new h}},t}();function ba(t,n,i){if(t instanceof wa)return t;if(t instanceof Mc)return function(t,n){return new ma({fs:Qc.Yf,Id:t,Rd:ga(n)})}(t,i);var e=ga(i),r=j.resolve(t).then(function(t){return function(t,n){if(t){if("string"==typeof t)return{fs:Qs.Jn,Nd:t,Rd:n||la};if(t instanceof ArrayBuffer||Un(t))return{fs:Qs.Wf,Nd:Ea(t),Rd:n};if(et(i=t)&&i.constructor&&i.constructor===c||it(t))return{fs:Qs.Gf,Nd:t,Rd:n};throw new h("Unsupported BodyInit type")}return{fs:Qs.Jn,Nd:null,Rd:n};var i}(t,e)});return new ma({fs:Qc.pd,Hu:r,Dd:n})}function ga(t){return(t.get(da)||"").toLowerCase()}var ma=function(t){function n(n){var i;return(i=t.call(this)||this).Cd=!1,i.Pd=void 0,i.Od=new iu,i.Od.Hu.catch(lt),i.Bd(n),i}Ut(n,t);var i=n.prototype;return i.Ld=function(){return this.Od.Hu},i.Td=function(t){return this.Md(pa,t)},i.bd=function(t){return this.Md(_a,t)},i.Ed=function(t){return this.Md(Ia,t)},i.Id=function(){return this.xd((t=this.Pd).fs===Qc.Yf?t.Id:ca(t.Hu.then(Ta).then(fa),t.Dd));var t},i.Md=function(t,n){if(this.Cd)return j.reject(new h("Already used"));this.Cd=!0;var i=t(this.Pd,n);return this.Od.Wu(i.then(lt)),i},i.xd=function(t){if(this.Cd)throw new h("Already used");if(t.locked)throw new h("Body stream is locked");this.Cd=!0;var n=new Yc,i=j.resolve(t.pipeTo(n.writable));return this.Od.Wu(i),n.readable},i.Bd=function(t){this.Pd=t,t.fs===Qc.pd&&t.Hu.catch(lt)},i.Ud=function(){if(this.Cd)throw new h("Already used");var t=function(t){if(t.fs===Qc.Yf){var n=t.Id.tee(),i=n[0],e=n[1];return[{fs:t.fs,Id:i,Rd:t.Rd},{fs:t.fs,Id:e,Rd:t.Rd}]}var r=t.Dd.zs(),o=r[0],u=r[1];return[{fs:t.fs,Hu:t.Hu,Dd:o},{fs:t.fs,Hu:t.Hu,Dd:u}]}(this.Pd),i=t[0],e=t[1];return this.Bd(i),new n(e)},gt(n,[{key:"Fd",get:function(){return this.Cd}}]),n}(wa);function pa(t,n){return t.fs===Qc.Yf?ha(t.Id,n).then(aa):(n&&t.Dd.Xs(n),Dn(t.Hu.then(ya),t.Dd))}function ya(t){switch(t.fs){case Qs.Jn:return j.resolve(t.Nd||"");case Qs.Wf:return j.resolve(t.Nd).then(aa);case Qs.Gf:return j.resolve(t.Nd).then(JSON.stringify)}}function _a(t,n){return t.fs===Qc.Yf?pa(t,n).then(JSON.parse):(n&&t.Dd.Xs(n),Dn(t.Hu.then(Sa),t.Dd))}function Sa(t){return t.fs===Qs.Gf?j.resolve(t.Nd):ya(t).then(JSON.parse)}function Ia(t,n){return t.fs===Qc.Yf?ha(t.Id,n):(n&&t.Dd.Xs(n),Dn(t.Hu.then(Ta),t.Dd))}function Ta(t){switch(t.fs){case Qs.Wf:return j.resolve(t.Nd);case Qs.Jn:case Qs.Gf:return ya(t).then(va)}}function Ea(t){return t instanceof ArrayBuffer?t:si(oi(t)).buffer}function Ra(t){return t.Hd>=200&&t.Hd<=299||304===t.Hd}var ka,Na,Oa,Pa,Aa=function(t){function n(n,i){var e,r,o,u,s,f;i?(r=i.Vd,o=i.Xd,u=i.Hd,s=i.zd,f=i.qd):(r=[],o=Qs.Jn,u=200,s="OK",f=!1);var h=n.Wd,c=new tf(n.Vd||r),a=n.Xd||o,v=n.Gd||(i&&i.Wd===h?i.Gd:h.Yd),d=i?i.jd:null,l=ba(void 0!==n.Vi?n.Vi:d,n.Dd||new On,c);return(e=t.call(this,l)||this).Vd=void 0,e.Wd=void 0,e.Gd=void 0,e.Xd=void 0,e.Hd=void 0,e.zd=void 0,e.qd=void 0,e.Vd=c,e.Wd=h,e.Gd=v,e.Xd=a,e.Hd=void 0!==n.Hd?n.Hd:u,e.zd=void 0!==n.zd?String(n.zd):s,e.qd=n.qd||f,e}Ut(n,t);var i=n.prototype;return i.Vi=function(t){return this.Sd(this.Xd,t)},i.Mu=function(){return new n({Vi:this.Ud(),Wd:this.Wd},this)},n}(function(t){function n(n){var i;return(i=t.call(this)||this).jd=void 0,i.jd=n,i}Ut(n,t);var i=n.prototype;return i.Ld=function(){return this.jd.Ld()},i.Td=function(t){return this.jd.Td(t)},i.bd=function(t){return this.jd.bd(t)},i.Ed=function(t){return this.jd.Ed(t)},i.Id=function(){return this.jd.Id()},i.Ud=function(){return this.jd.Ud()},gt(n,[{key:"Fd",get:function(){return this.jd.Fd}}]),n}(wa));!function(t){t.DELETE="DELETE",t.GET="GET",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT"}(ka||(ka={})),function(t){t.Qd="",t.Kd="manifest",t.Zd="segment",t.Jd="content-protection"}(Na||(Na={})),function(t){t.Qd="",t.$d="initialization-segment",t.il="fairplay-license",t.ul="fairplay-certificate",t.ol="widevine-license",t.hl="widevine-certificate",t.al="playready-license",t.cl="clearkey-license",t.fl="aes128-key"}(Oa||(Oa={})),function(t){t.Qd="",t.vl="audio",t.dl="video",t.Jn="text",t.ll="image"}(Pa||(Pa={}));var Da=function(t,n){this.Nd=void 0,this.Vd=void 0,this._l=void 0,this.Xd=void 0,this.wl=void 0,this.qs=void 0,this.fs=void 0,this.yl=void 0,this.bl=void 0,this.Yd=void 0,this.Al=void 0,this.Tl=void 0;var i,e,r,o,u,s,f,h,c,a,v,d=t.Yd;n?(i=n.Nd,e=n.Vd,r=n._l,o=n.Xd,u=n.wl,s=n.qs,f=n.fs,h=n.yl,c=n.bl,a=n.Al,v=n.Tl):(i=null,e={},r=ka.GET,o=Qs.Jn,u=0,f=Na.Qd,h=Oa.Qd,c=Pa.Qd,a=!1),this.Yd=d,this.Nd=t.Nd||i,this.Vd=new tf(t.Vd||e),this._l=t._l||r,this.Xd=t.Xd||o,this.wl=void 0!==t.wl?Number(t.wl)||0:u,this.qs=t.qs||s||(new On).qs,this.fs=t.fs||f,this.yl=t.yl||h,this.bl=t.bl||c,this.Al=void 0!==t.Al?Boolean(t.Al):a,this.Tl=t.Tl||v},xa=function(){function t(){}var n=t.prototype;return n.Wd=function(t){var n=function(t){return new Aa({Vi:null,Vd:{},Wd:t,Gd:t.Yd,Xd:t.Xd,Hd:0,zd:Zs.Tf})}(new Da(t));return j.resolve(n)},n.Sl=function(t){},n.El=function(){},t}();var Ca,Ba=function(){function t(t,n){void 0===n&&(n=!0),this.Il=void 0,this.Rl=void 0,this.Il=t,this.Rl=n}var n=t.prototype;return n.Wd=function(t){var n=this.Nl(t);return this.Il.Wd(n)},n.Sl=function(t){return this.Il.Sl(this.Dl(t))},n.Nl=function(n){var i=new Da(n);if(!this.Rl){var e=t.Cl(i.Yd);i=new Da({Yd:e},i)}return i},n.Dl=function(n){var i=n.Yd;return this.Rl||(i=t.Cl(i)),{Yd:i,Nd:n.Nd}},t.Cl=function(t){return Z.Vr&&qn(t,"http://")?t.replace(":","s:"):t},n.El=function(){this.Il.El()},gt(t,null,[{key:"Pl",get:function(){return t.Ol||(t.Ol=new t(new xa)),t.Ol}}]),t}();Ba.Ol=void 0,function(t){t.Bl="HttpOpenError",t.Ll="HttpResponseError",t.Ml="HttpTimeoutError"}(Ca||(Ca={}));var Fa=function(t){function n(n,i,e){var r;return(r=t.call(this,i,e)||this).xl=void 0,r.xl=n,r}return Ut(n,t),gt(n,[{key:"Wd",get:function(){return this.xl}}]),n}(kn);var La=function(t){function n(n,i){return t.call(this,n,"Error while opening "+n.Yd+". Invalid URL.",i)||this}return Ut(n,t),gt(n,[{key:"name",get:function(){return Ca.Bl}}]),n}(Fa);var Ua=function(t){function n(n,i,e){var r;return(r=t.call(this,n.Wd,null!=e?e:function(t){return"Error while loading "+t.Wd.Yd+", status code "+t.Hd}(n),i)||this).Ul=void 0,r.Ul=n,r}return Ut(n,t),gt(n,[{key:"name",get:function(){return Ca.Ll}},{key:"Fl",get:function(){return this.Ul}}]),n}(Fa);var Ma=function(t){function n(n,i){return t.call(this,n,function(t){return"Request for "+t.Yd+" timed out after "+t.wl+" seconds."}(n),i)||this}return Ut(n,t),gt(n,[{key:"name",get:function(){return Ca.Ml}}]),n}(Fa),za=function(t,n){return(za=c.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])})(t,n)};function Wa(t,n){function i(){this.constructor=t}za(t,n),t.prototype=null===n?c.create(n):(i.prototype=n.prototype,new i)}var qa="object"==typeof n?n:"object"==typeof t?t:"object"==typeof global?global:null;var ja=function(){var t=qa.Blob;if(t)try{return new t,function(t,n){return new qa.Blob(t,n)}}catch(t){}var n,i=qa.BlobBuilder||qa.WebKitBlobBuilder||qa.MozBlobBuilder||qa.MSBlobBuilder;return i?(n=i,function(t,i){var e=new n;if(t)for(var r=0,o=t;r<o.length;r++){var u=o[r];e.append(u)}return e.getBlob(i&&i.type||"")}):null}(),Va="function"==typeof Mc?Mc:void 0;function Ha(t){return t&&"function"==typeof t.getReader}function Xa(t){if("function"!=typeof t)return!1;try{var n=!1,i=new t({start:function(){n=!0}});return!!n&&Ha(i)}catch(t){return!1}}var Ga=function(){function t(t,n){this.ov=t,this.Hl=n}return t.prototype.pull=function(t){var n=this;return this.ov.read().then(function(i){n.Hl&&n.Hl(i),i.done?t.close():t.enqueue(i.value)})},t.prototype.cancel=function(t){return this.ov.cancel(t)},t}();function Ya(t,n){return n.constructor===t?n:new t(new Ga(n.getReader()),{highWaterMark:0})}var Ka=function(){function t(t,n){this.Vl=t,this.Xl=n}return t.prototype.pull=function(t){return this.Vl().then(function(n){t.enqueue(new w(n)),t.close()})},t.prototype.cancel=function(t){this.Xl&&this.Xl(t)},t}();function $a(t,n,i){return new t(new Ka(n,i),{highWaterMark:0})}var Ja={searchParams:"URLSearchParams"in qa,iterable:"Symbol"in qa&&"iterator"in Symbol,blob:"FileReader"in qa&&!!ja,formData:"FormData"in qa,arrayBuffer:"ArrayBuffer"in qa,stream:Xa(Va),streamRequest:"Request"in qa&&"body"in qa.Request.prototype,streamResponse:"Response"in qa&&"body"in qa.Response.prototype,abort:"AbortController"in qa&&"Request"in qa&&"signal"in qa.Request.prototype,encoding:"TextEncoder"in qa&&"TextDecoder"in qa,url:"URL"in qa&&function(t){try{return new qa.URL(t).toString()===t}catch(t){return!1}}("http://example.com/"),firefox:"navigator"in qa&&/Firefox\//.test(qa.navigator.userAgent)};function Za(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new h("Invalid character in header field name");return t}function Qa(t){return"string"!=typeof t&&(t=String(t)),t}function tv(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return Ja.iterable&&(n[Symbol.iterator]=function(){return n}),n}var nv=function(){function t(t){var n=this;this.Jr={};var i,e=function(t,i){Array.isArray(t)&&2===t.length?n.append(t[0],t[1]):n.append(i,t)};(i=t)&&"function"==typeof i.forEach?t.forEach(e):!function(t){return Ja.iterable&&t&&t[Symbol.iterator]}(t)?t&&c.getOwnPropertyNames(t).forEach(function(i){n.append(i,t[i])}):Array.from(t).forEach(e)}return t.prototype.append=function(t,n){t=Za(t),n=Qa(n);var i=t.toLowerCase();if(this.Jr.hasOwnProperty(i)){var e=this.Jr[i],r=e[1];e[1]=r?r+", "+n:n}else this.Jr[i]=[t,n]},t.prototype.delete=function(t){var n=Za(t).toLowerCase();delete this.Jr[n]},t.prototype.get=function(t){var n=Za(t).toLowerCase();return this.Jr.hasOwnProperty(n)?this.Jr[n][1]:null},t.prototype.has=function(t){var n=Za(t).toLowerCase();return this.Jr.hasOwnProperty(n)},t.prototype.set=function(t,n){var i=(t=Za(t)).toLowerCase();this.Jr[i]=[t,Qa(n)]},t.prototype.forEach=function(t,n){for(var i in this.Jr)this.Jr.hasOwnProperty(i)&&t.call(n,this.Jr[i][1],i,this)},t.prototype.keys=function(){var t=[];return this.forEach(function(n,i){t.push(i)}),tv(t)},t.prototype.values=function(){var t=[];return this.forEach(function(n){t.push(n)}),tv(t)},t.prototype.entries=function(){var t=[];return this.forEach(function(n,i){t.push([i,n])}),tv(t)},t.prototype.asList=function(){var t=[];for(var n in this.Jr)if(this.Jr.hasOwnProperty(n)){var i=this.Jr[n],e=i[0],r=i[1];t.push([e,r])}return t},t}();function iv(){}Ja.iterable&&(nv.prototype[Symbol.iterator]=nv.prototype.entries);var ev,rv,ov,uv=a.min,sv=String.fromCharCode,fv=16384;function hv(t){for(var n=[],i=0,e=t;i<e.length;i++){var r=e[i];r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}return function(t){for(var n=t.length,i=[],e=0;e<n;e+=fv){var r=uv(e+fv,n);i.push(sv.apply(null,t.slice(e,r)))}return i.join("")}(n)}function cv(t){if(t>=55296&&t<=57343)throw new f("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function av(t,n){return t>>n&63|128}function vv(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(cv(t),n.push(t>>12&15|224),n.push(av(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(av(t,12)),n.push(av(t,6))),n.push(63&t|128)):n.push(t)}function dv(){if(ov>=rv)throw new f("Invalid byte index");var t=255&ev[ov];if(ov++,128==(192&t))return 63&t;throw new f("Invalid continuation byte")}function lv(){var t,n;if(ov>rv)throw new f("Invalid byte index");if(ov===rv)return!1;if(t=255&ev[ov],ov++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|dv())>=128)return n;throw new f("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|dv()<<6|dv())>=2048)return cv(n),n;throw new f("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|dv()<<12|dv()<<6|dv())>=65536&&n<=1114111)return n;throw new f("Invalid UTF-8 detected")}var wv=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];function bv(t){return t&&URLSearchParams.prototype.isPrototypeOf(t)}function gv(t){return t&&ArrayBuffer.prototype.isPrototypeOf(t)}function mv(t){return t&&DataView.prototype.isPrototypeOf(t)}var pv,yv=ArrayBuffer.isView||function(t){return t&&(wv.indexOf(c.prototype.toString.call(t))>-1||mv(t))};function _v(t){if(t.bodyUsed)return j.reject(new h("Already used"));t.bodyUsed=!0}function Sv(t){return new j(function(n,i){t.onload=function(){n(t.result)},t.onerror=function(){i(t.error)}})}function Iv(t){return Ja.encoding?new qa.TextDecoder("utf-8").decode(new w(t)):hv(function(t){rv=(ev=t).length,ov=0;for(var n,i=[];!1!==(n=lv());)i.push(n);return i}(new w(t)))}function Tv(t){return Ja.encoding?(new qa.TextEncoder).encode(t).buffer:new w(function(t){for(var n=[],i=0,e=t;i<e.length;i++)vv(e[i],n);return n}(function(t){for(var n=[],i=0,e=t.length;i<e;){var r=t.charCodeAt(i++);if(r>=55296&&r<=56319&&i<e){var o=t.charCodeAt(i++);56320==(64512&o)?n.push(((1023&r)<<10)+(1023&o)+65536):(n.push(r),i--)}else n.push(r)}return n}(t))).buffer}function Ev(t){var n=t.getReader(),i=[],e=function(t){var r=t.done,o=t.value;return r?j.resolve(i):(i.push(o),n.read().then(e))};return n.read().then(e)}function Rv(t){return Ev(t).then(function(t){return function(t){for(var n=0,i=0,e=t;i<e.length;i++)n+=(f=e[i]).byteLength;for(var r=new w(n),o=0,u=0,s=t;u<s.length;u++){var f=s[u];r.set(f,o),o+=f.byteLength}return r}(t).buffer})}function kv(t){return t.slice?t.slice(0):Nv(new w(t))}function Nv(t){if(t.slice)return t.slice(0).buffer;var n=new w(t.byteLength);return n.set(new w(t.buffer,t.byteOffset,t.byteLength)),n.buffer}function Ov(t){var n=new FormData;return t.trim().split("&").forEach(function(t){if(t){var i=t.split("="),e=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");n.append(decodeURIComponent(e),decodeURIComponent(r))}}),n}function Pv(t){var n=t;if(n.bodyUsed)throw new h("Already used");if(n.zl===pv.ql){if(!n.Wl.tee)throw new f("could not clone ReadableStream body");var i=n.Wl.tee(),e=i[0],r=i[1];return n.body=e,n.Wl=e,n.Gl=e,r}return n.zl===pv.Wf?kv(n.Wl):n.zl===pv.pd?n.Wl.then(Pv):n.Gl}!function(t){t[t.Jn=0]="Jn",t[t.Yl=1]="Yl",t[t.jl=2]="jl",t[t.Wf=3]="Wf",t[t.ql=4]="ql",t[t.pd=5]="pd"}(pv||(pv={}));var Av=function(){function t(n,i){this.bodyUsed=!1;var e,r,o,u=this;if(this.Gl=n||null,n)if("string"==typeof n)this.zl=pv.Jn,this.Wl=n;else if((o=n)&&"function"==typeof o.then)this.zl=pv.pd,this.Wl=j.resolve(n).then(function(n){return new t(n,i)}),this.Wl.catch(iv);else if(Ja.blob&&function(t){return t&&Blob.prototype.isPrototypeOf(t)}(n))this.zl=pv.Yl,this.Wl=n;else if(Ja.formData&&function(t){return t&&FormData.prototype.isPrototypeOf(t)}(n))this.zl=pv.jl,this.Wl=n;else if(Ja.searchParams&&bv(n))this.zl=pv.Jn,this.Wl=n.toString();else if(Ja.arrayBuffer&&(gv(n)||yv(n)))mv(n)&&(this.Gl=new w((r=n).buffer,r.byteOffset,r.byteLength)),this.zl=pv.Wf,this.Wl=gv(e=n)?kv(e):Nv(e);else{if(!Ja.stream||!Ha(n))throw new f("unsupported BodyInit type");n=Ya(Va,n),this.zl=pv.ql,this.Wl=n,this.Gl=n}else this.zl=pv.Jn,this.Wl="";this.Ql="",i.has("content-type")?this.Ql=(i.get("content-type")||"").toLowerCase():("string"==typeof n?this.Ql="text/plain;charset=UTF-8":u.zl===pv.Yl&&u.Wl.type?this.Ql=u.Wl.type:Ja.searchParams&&bv(n)&&(this.Ql="application/x-www-form-urlencoded;charset=UTF-8"),this.Ql&&i.set("content-type",this.Ql)),Ja.stream&&(null==n?this.body=null:u.zl===pv.ql?this.body=u.Wl:this.body=$a(Va,function(){return u.arrayBuffer()},function(){u.bodyUsed=!0}))}return t.prototype.text=function(){var t,n,i,e=_v(this);return e||(this.zl===pv.Yl?(t=this.Wl,n=new FileReader,i=Sv(n),n.readAsText(t),i):this.zl===pv.Wf?j.resolve(this.Wl).then(Iv):this.zl===pv.ql?Rv(this.Wl).then(Iv):this.zl===pv.pd?this.Wl.then(function(t){return t.text()}):this.zl===pv.jl?j.reject(new f("could not read FormData body as text")):j.resolve(this.Wl))},t.prototype.json=function(){return this.text().then(JSON.parse)},t}();Ja.blob&&(Av.prototype.blob=function(){var t,n,i=_v(this);return i||(this.zl===pv.Yl?j.resolve(this.Wl):this.zl===pv.Wf?j.resolve(ja([this.Wl],{type:this.Ql})):this.zl===pv.ql?(t=this.Wl,n=this.Ql,Ev(t).then(function(t){return ja(t,{type:n||""})})):this.zl===pv.pd?this.Wl.then(function(t){return t.blob()}):this.zl===pv.jl?j.reject(new f("could not read FormData body as Blob")):j.resolve(ja([this.Wl],{type:this.Ql})))}),Ja.arrayBuffer&&(Av.prototype.arrayBuffer=function(){var t,n,i;return this.zl===pv.Wf?_v(this)||j.resolve(this.Wl):this.zl===pv.Yl?_v(this)||(t=this.Wl,n=new FileReader,i=Sv(n),n.readAsArrayBuffer(t),i):this.zl===pv.ql?Rv(this.Wl):this.zl===pv.pd?_v(this)||this.Wl.then(function(t){return t.arrayBuffer()}):this.zl===pv.jl?j.reject(new f("could not read FormData body as ArrayBuffer")):j.resolve(this.Wl).then(Tv)}),Ja.formData&&(Av.prototype.formData=function(){return this.zl===pv.jl?_v(this)||j.resolve(this.Wl):this.text().then(Ov)});var Dv=[301,302,303,307,308],xv=function(t){function n(n,i){var e=this,r=new nv((i=i||{}).headers);return(e=t.call(this,n||null,r)||this).type="default",e.status=void 0===i.status?200:i.status,e.ok=e.status>=200&&e.status<300,e.statusText=void 0!==i.statusText?String(i.statusText):"",e.headers=r,e.url=i.url||"",e}return Wa(n,t),n.prototype.clone=function(){return new n(Pv(this),{status:this.status,statusText:this.statusText,headers:new nv(this.headers),url:this.url})},n.error=function(){var t=new n(null,{status:0,statusText:""});return t.type="error",t},n.redirect=function(t,i){if(-1===Dv.indexOf(i))throw new RangeError("Invalid status code");return new n(null,{status:i,headers:{location:t}})},n}(Av);var Cv,Bv=function(t,n){return t(n={exports:{}},n.exports),n.exports}(function(t,n){function e(t,n){if(!(t instanceof n))throw new h("Cannot call a class as a function")}function o(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),c.defineProperty(t,e.key,e)}}function u(t,n,i){return n&&o(t.prototype,n),i&&o(t,i),t}function s(t){return(s=c.setPrototypeOf?c.getPrototypeOf:function(t){return t.__proto__||c.getPrototypeOf(t)})(t)}function f(t,n){return(f=c.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,n,i){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,n,i){var e=function(t,n){for(;!c.prototype.hasOwnProperty.call(t,n)&&null!==(t=s(t)););return t}(t,n);if(e){var r=c.getOwnPropertyDescriptor(e,n);return r.get?r.get.call(i):r.value}})(t,n,i||t)}c.defineProperty(n,"__esModule",{value:!0});var d=function(){function t(){e(this,t),c.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return u(t,[{key:"addEventListener",value:function(t,n){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(n)}},{key:"removeEventListener",value:function(t,n){if(t in this.listeners)for(var i=this.listeners[t],e=0,r=i.length;e<r;e++)if(i[e]===n)return void i.splice(e,1)}},{key:"dispatchEvent",value:function(t){var n=this;if(t.type in this.listeners){for(var i=function(i){r(function(){return i.call(n,t)})},e=this.listeners[t.type],o=0,u=e.length;o<u;o++)i(e[o]);return!t.defaultPrevented}}}]),t}(),l=function(t){function n(){var t,i,r;return e(this,n),i=this,(t=!(r=s(n).call(this))||"object"!=typeof r&&"function"!=typeof r?a(i):r).listeners||d.call(a(t)),c.defineProperty(a(t),"aborted",{value:!1,writable:!0,configurable:!0}),c.defineProperty(a(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return function(t,n){if("function"!=typeof n&&null!==n)throw new h("Super expression must either be null or a function");t.prototype=c.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&f(t,n)}(n,d),u(n,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(t){"abort"===t.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,t)),v(s(n.prototype),"dispatchEvent",this).call(this,t)}}]),n}(),w=function(){function t(){e(this,t),c.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return u(t,[{key:"abort",value:function(){var t;try{t=new Event("abort")}catch(n){void 0!==i?i.createEvent?(t=i.createEvent("Event")).initEvent("abort",!1,!1):(t=i.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();"undefined"!=typeof Symbol&&Symbol.toStringTag&&(w.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),n.AbortSignal=l,n.AbortController=w,n.default=w});(Cv=Bv)&&Cv.__esModule&&c.prototype.hasOwnProperty.call(Cv,"default")&&Cv.default,Bv.AbortSignal;var Fv=Bv.AbortController,Lv=qa.DOMException;try{new Lv}catch(t){(Lv=function(t,n){f.call(this,t),this.name=n||"Error",f.captureStackTrace&&f.captureStackTrace(this,this.constructor)}).prototype=c.create(f.prototype),Lv.prototype.constructor=Lv}var Uv=Fv;function Mv(t,n){if(!t.signal.aborted)if(n.aborted)t.abort();else{var i=function(){n.removeEventListener("abort",i),t.signal.removeEventListener("abort",i),t.abort()};n.addEventListener("abort",i),t.signal.addEventListener("abort",i)}}function zv(t,n,i){return new j(function(e,r){if(n.signal.aborted)return t.catch(iv),r(Wv());var o=function(){n.signal.removeEventListener("abort",o),r(Wv())};n.signal.addEventListener("abort",o),t.then(function(t){n.signal.removeEventListener("abort",o),e(t),i&&n.abort()},function(t){n.signal.removeEventListener("abort",o),r(t),i&&n.abort()})})}function Wv(){return new Lv("Aborted","AbortError")}var qv,jv="moz-chunked-arraybuffer";function Vv(t){try{var n=new b;return n.open("GET","https://test"),n.responseType=t,n.responseType===t}catch(t){}return!1}!function(t){t[t.UNSENT=0]="UNSENT",t[t.OPENED=1]="OPENED",t[t.HEADERS_RECEIVED=2]="HEADERS_RECEIVED",t[t.LOADING=3]="LOADING",t[t.DONE=4]="DONE"}(qv||(qv={}));var Hv=function(){function t(t,n){var i=this;this.Kl=!1,this.xl=t,this.Zl=n,this.Jl=new b,this.$l=new j(function(t,n){i.t_=t,i.n_=n})}return t.prototype.send=function(){var t=this;return this.i_().then(function(n){return t.e_(n,t.Zl),t.$l})},t.prototype.i_=function(){var t=this.xl;return t.zl===pv.ql?t.arrayBuffer():j.resolve(t.Gl)},t.prototype.r_=function(t){this.xl.onprogress&&this.xl.onprogress(t.loaded,t.lengthComputable?t.total:void 0)},t.prototype.s_=function(t){this.n_(t)},t.prototype.u_=function(){this.s_(new h("Network request failed"))},t.prototype.o_=function(){this.s_(new h("Network request failed"))},t.prototype.h_=function(){this.s_(Wv())},t.prototype.e_=function(t,n){var i=this,e=this.xl,r=this.Jl,o=function(){return i.a_()};if(e.signal.aborted)return this.h_();r.onreadystatechange=function(){if(r.readyState>=qv.HEADERS_RECEIVED&&!i.Kl){var t=function(t){var n=new nv;return t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var i=t.split(":"),e=i.shift().trim();if(e){var r=i.join(":").trim();n.append(e,r)}}),n}(r.getAllResponseHeaders()||""),n={status:r.status,statusText:r.statusText,headers:t,url:r.responseURL||t.get("X-Request-URL")};i.Kl=!0,i.c_(n)}},r.onprogress=function(t){return i.r_(t)},r.onload=function(){return i.f_()},r.onerror=function(){return i.u_()},r.ontimeout=function(){return i.o_()},r.onabort=function(){return i.h_()},r.open(e.method,e.url,!0),r.withCredentials="include"===e.credentials,"responseType"in r&&n&&(r.responseType=n),e.headers.forEach(function(t,n){r.setRequestHeader(n,t)}),e.signal.addEventListener("abort",o),r.onloadend=function(){e.signal.removeEventListener("abort",o)},t?r.send(t):r.send()},t.prototype.a_=function(){this.h_(),this.Jl.abort()},t}(),Xv=function(t){function n(n,i){var e=t.call(this,n,i)||this;return e.v_=void 0,e.d_=void 0,e}return Wa(n,t),n.prototype.c_=function(t){var n=this;this.v_=new j(function(t,i){n.d_=t,n.l_=i}),this.t_(new xv(this.v_,t))},n.prototype.f_=function(){var t=this.Jl.response;if(null==t){var n=this.Zl;""===n||"text"===n?t=this.Jl.responseText:"document"===n?t=this.Jl.responseXML:"arraybuffer"===n?t=new ArrayBuffer(0):"blob"===n&&(t=ja([]))}this.d_(t)},n.prototype.s_=function(n){t.prototype.s_.call(this,n),this.l_&&this.l_(n)},n}(Hv),Gv=function(t){function n(n){var i=t.call(this,n,jv)||this;return i.__=void 0,i.g_=void 0,i.w_=!1,i}return Wa(n,t),n.prototype.c_=function(t){var n=this;this.__=new Va({start:function(t){n.g_=t},cancel:function(){n.w_=!0,n.a_()}}),this.t_(new xv(this.__,t))},n.prototype.r_=function(n){this.w_||this.g_.enqueue(new w(this.Jl.response)),t.prototype.r_.call(this,n)},n.prototype.f_=function(){this.g_.close()},n.prototype.s_=function(n){t.prototype.s_.call(this,n),this.g_&&!this.w_&&(this.w_=!0,this.g_.error(n))},n}(Hv),Yv=function(){var t=Ja.firefox&&Vv(jv);return Yv=function(){return t},t},Kv=function(){var t;return t=Ja.arrayBuffer&&Vv("arraybuffer")?"arraybuffer":Ja.blob&&Vv("blob")?"blob":"",Kv=function(){return t},t};function $v(t){return(Ja.stream&&Yv()?new Gv(t):new Xv(t,Kv())).send()}var Jv=qa.fetch,Zv=qa.Request;qa.Response;var Qv=qa.AbortController;var td=["http:","https:"];var nd=function(){try{if(Ja.streamRequest){var t=new Zv("about:blank",{body:"",method:"POST"}).body;if(t&&Xa(t.constructor))return t.constructor}}catch(t){}}();function id(t,n,i){var e;if(Ja.stream){var r=void 0;if(Ja.streamResponse){var o=t.body;r=o&&Ya(Va,o)}else r=$a(Va,function(){return zv(t.arrayBuffer(),n,!0)},function(){n.abort()});r&&i&&(r=function(t,n,i){var e=0;return function(t,n,i){return new t(new Ga(n.getReader(),i),{highWaterMark:0})}(Va,t,function(t){var r=t.done,o=t.value;r?i=void 0===i?e:i:e+=o.byteLength,n(e,i)})}(r,i,ed(t.headers))),e=r}else{var u=zv(t.arrayBuffer(),n,!0);i&&(u=function(t,n,i){return j.resolve().then(function(){return n(0,i),t}).then(function(t){var e=t.byteLength;return n(e,i=void 0===i?e:i),t})}(u,i,ed(t.headers))),e=u}return new xv(e,t)}function ed(t){return t.has("content-length")?Number(t.get("content-length")):void 0}function rd(t){var n=new Uv;return t.signal&&Mv(n,t.signal),function(t,n){var i,e,r=t;if(i=r.zl===pv.ql?Ja.streamRequest&&nd?j.resolve(Ya(nd,r.Wl)):zv(t.arrayBuffer(),n,!1):zv(j.resolve(t.Gl),n,!1),Ja.abort){var o=new Qv;Mv(o,n.signal),e=o.signal}return i.then(function(n){return new Zv(t.url,{body:n||void 0,credentials:t.credentials,headers:(i=t.headers,(i instanceof nv?i:new nv(i)).asList()),method:t.method,mode:t.mode,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:e});var i})}(t,n).then(function(i){return Jv(i).then(function(i){return id(i,n,t.onprogress)})})}var od=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];var ud=function(t){function n(i,e){var r,o,u,s,f,c,a,v,d,l=this,w=(e=e||{}).body||null;if(i instanceof n){if(i.bodyUsed)throw new h("Already used");r=i.url,o=i.credentials,e.headers||(u=new nv(i.headers)),s=i.method,f=i.mode,c=i.referrer,a=i.referrerPolicy,v=i.signal,d=i.onprogress,w||null==i.Gl||(w=i.Gl,i.bodyUsed=!0)}else r=String(i),o="same-origin",s="GET",f="cors",c="about:client",a="",v=null,d=null;if(!e.headers&&u||(u=new nv(e.headers)),e&&(c="about:client",a=""),(l=t.call(this,w,u)||this).url=r,l.headers=u,l.credentials=e.credentials||o,l.method=function(t){var n=t.toUpperCase();return od.indexOf(n)>-1?n:t}(e.method||s),l.mode=e.mode||f,l.signal=e.signal||v||(new Uv).signal,l.referrer=void 0!==e.referrer?e.referrer:c,l.referrerPolicy=void 0!==e.referrerPolicy?e.referrerPolicy:a,l.onprogress=e.onprogress||d,("GET"===l.method||"HEAD"===l.method)&&w)throw new h("Body not allowed for GET or HEAD requests");return l}return Wa(n,t),n.prototype.clone=function(){return new n(this,{body:Pv(this)})},n}(Av),sd="function"==typeof Jv&&Ja.stream&&Ja.streamResponse&&Ja.url;function fd(t,n){return new j(function(i){var e=new ud(t,n);i((sd&&function(t){try{return td.indexOf(new qa.URL(t,qa.location.href).protocol)>=0}catch(t){return!1}}(e.url)?rd:$v)(e))})}fd.polyfill=!0;var hd=function(){function t(t){this.Fl=void 0,this.xl=void 0,this.k_=new On,this.Ul=void 0,this.y_=!1,this.xl=t,this.k_.Xs(t.qs),this.Fl=this.m_()}var n=t.prototype;return n.m_=function(){var t,n,i,e,o,u,s,f,h=this;return Q.async(function(c){for(;;)switch(c.prev=c.next){case 0:(t=this.xl).wl&&r(function(){h.y_=!0,h.k_.Vs()},t.wl),c.prev=2,n=fd(t.Yd,{method:t._l,headers:t.Vd.jf(),body:t.Nd,credentials:t.Al?"include":"same-origin",signal:vd(this.k_.qs),onprogress:t.Tl}),c.next=9;break;case 6:throw c.prev=6,c.t0=c.catch(2),new La(t,c.t0);case 9:return c.prev=9,c.next=12,Q.awrap(n);case 12:i=c.sent,c.next=20;break;case 15:throw c.prev=15,c.t1=c.catch(9),An(e=this.p_(c.t1))&&this.k_.Vs(),e;case 20:if(o=i.url||t.Yd,u=0===i.status&&"file:"===(a=o,Z.Br(a).protocol)?200:i.status,s=new cd(this,i,this.k_),f=new Aa({Vi:s,Wd:t,Xd:t.Xd,Vd:new tf(i.headers.asList()),Hd:u,zd:i.statusText,Gd:o}),this.Ul=f,!Ra(f)){c.next=29;break}return c.abrupt("return",f);case 29:throw new Ua(f);case 30:case"end":return c.stop()}var a},null,this,[[2,6],[9,15]],j)},n.p_=function(t){return An(t)?this.y_?new Ma(this.xl):new Pn(t.message,t):this.Ul?new Ua(this.Ul,t):new La(this.xl,t)},t}(),cd=function(t){function n(n,i,e){var r;return(r=t.call(this)||this).b_=void 0,r.A_=void 0,r.k_=void 0,r.Od=new iu,r.b_=n,r.A_=i,r.k_=e,r.Od.Hu.catch(lt),r}Ut(n,t);var i=n.prototype;return i.Ld=function(){return this.Od.Hu},i.Td=function(t){return this.Md(this.A_.text(),t)},i.Ed=function(t){return this.Md(this.A_.arrayBuffer(),t)},i.Id=function(){var t=this.A_.body;return t?this.xd(t):ca(this.Ed().then(fa),this.k_)},i.Ud=function(){var t=this.A_.clone(),i=this.k_.zs(),e=i[0],r=i[1];return this.k_=e,new n(this.b_,t,r)},i.Md=function(t,n){var i=this;n&&this.k_.Xs(n);var e=j.resolve(t).catch(function(t){throw i.b_.p_(t)});return e=Dn(e,this.k_),this.Od.Wu(e.then(lt)),e},i.xd=function(t){var n=this,i=new Yc,e=j.resolve(t.pipeTo(i.writable,{preventAbort:!0})).catch(function(t){var e=n.b_.p_(t);throw i.writable.abort(e).catch(lt),e});return e=Dn(e,this.k_),this.Od.Wu(e.then(lt)),i.readable},gt(n,[{key:"Fd",get:function(){return this.A_.bodyUsed}}]),n}(wa),ad="abort";function vd(t){var n=new Uv;if(t.Ds)n.abort();else if(!t.Cs){var i=function(){e(),n.abort()},e=function e(){n.signal.removeEventListener(ad,i),t.xs(i),t.Fs(e)};n.signal.addEventListener(ad,i),t.Ms(i),t.Us(e)}return n.signal}var dd=function(){function t(){}var n=t.prototype;return n.Wd=function(t){return new hd(t).Fl},n.Sl=function(t){var n=t.Rd?{"Content-type":t.Rd}:void 0;this.Wd(new Da({_l:ka.POST,Yd:t.Yd,Nd:t.Nd,Vd:n})).then(lt,lt)},n.El=function(){},t}(),ld=function(n){function i(){for(var i,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(i=n.call.apply(n,[this].concat(r))||this).T_=void 0,i.S_=function(){if(Li.cn)return!1;try{return"body"in t.Response.prototype}catch(t){return!1}}(),i.E_=Li.Un||Li.cn,i.I_=void 0,i}return Ut(i,n),gt(i,[{key:"Ir",get:function(){return this.T_||(this.T_=new $o(Xs())),this.T_}},{key:"R_",get:function(){return this.S_}},{key:"N_",get:function(){return this.E_}},{key:"D_",get:function(){return!1}},{key:"C_",get:function(){return Ys.rf()}},{key:"P_",get:function(){return{O_:Js}}},{key:"B_",get:function(){return e.connection&&e.connection.effectiveType||"default"}},{key:"L_",get:function(){return e.connection&&e.connection.type||"unknown"}},{key:"M_",get:function(){return this.I_||(this.I_=new Ba(new dd)),this.I_}}]),i}(Oo);tt(new ld),tt(new ld);var wd=t;wd.addEventListener("install",function(t){t.waitUntil(wd.skipWaiting())}),wd.addEventListener("activate",function(t){t.waitUntil(wd.clients.claim())}),Ei.kr.Ey(wd)}()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this);
|