@theoplayer/extended 3.2.3 → 3.3.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.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.1.2 (3.2.3)
28
- Created: 2022-04-05T16:07:25.523Z
27
+ Version: 2022.2.0 (3.3.0)
28
+ Created: 2022-04-13T08:15:53.320Z
29
29
  */
30
- !function(t){!function(){"use strict";var n,i=t.window,r=t.document,e=(t.location,t.navigator),u=t.setTimeout,o=t.clearTimeout,s=t.setInterval,f=t.clearInterval,c=t.Error,a=t.TypeError,h=(t.SyntaxError,t.Object),v=t.Math,l=t.parseInt,d=t.parseFloat,w=t.isNaN,y=t.Uint8Array,p=(t.Worker,t.WorkerGlobalScope,t.XMLHttpRequest),b="undefined"!=typeof globalThis?globalThis:void 0!==i?i:"undefined"!=typeof global?global:void 0!==t?t:{};function g(t,n,i){return t(i={path:n,exports:{},require:function(t,n){return function(){throw new c("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&i.path)}},i.exports),i.exports}var m,_=g(function(t){!function(t){var n,i=h.prototype,r=i.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},u=e.iterator||"@@iterator",o=e.asyncIterator||"@@asyncIterator",s=e.toStringTag||"@@toStringTag";function f(t,n,i,r){var e=n&&n.prototype instanceof g?n:g,u=h.create(e.prototype),o=new D(r||[]);return u.Mh=function(t,n,i){var r=l;return function(e,u){if(r===y)throw new c("Generator is already running");if(r===p){if("throw"===e)throw u;return x()}for(i.method=e,i.arg=u;;){var o=i.delegate;if(o){var s=A(o,i);if(s){if(s===b)continue;return s}}if("next"===i.method)i.sent=i.Fh=i.arg;else if("throw"===i.method){if(r===l)throw r=p,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=y;var f=v(t,n,i);if("normal"===f.type){if(r=i.done?p:d,f.arg===b)continue;return{value:f.arg,done:i.done}}"throw"===f.type&&(r=p,i.method="throw",i.arg=f.arg)}}}(t,i,o),u}function v(t,n,i){try{return{type:"normal",arg:t.call(n,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",d="suspendedYield",y="executing",p="completed",b={};function g(){}function m(){}function _(){}var E={};E[u]=function(){return this};var S=h.getPrototypeOf,I=S&&S(S(C([])));I&&I!==i&&r.call(I,u)&&(E=I);var R=_.prototype=g.prototype=h.create(E);function T(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this.Mh(n,t)}})}function k(t){var n;this.Mh=function(i,e){function u(){return new Promise(function(n,u){!function n(i,e,u,o){var s=v(t[i],t,e);if("throw"!==s.type){var f=s.arg,c=f.value;return c&&"object"==typeof c&&r.call(c,"Uh")?Promise.resolve(c.Uh).then(function(t){n("next",t,u,o)},function(t){n("throw",t,u,o)}):Promise.resolve(c).then(function(t){f.value=t,u(f)},function(t){return n("throw",t,u,o)})}o(s.arg)}(i,e,n,u)})}return n=n?n.then(u,u):u()}}function A(t,i){var r=t.iterator[i.method];if(r===n){if(i.delegate=null,"throw"===i.method){if(t.iterator.return&&(i.method="return",i.arg=n,A(t,i),"throw"===i.method))return b;i.method="throw",i.arg=new a("The iterator does not provide a 'throw' method")}return b}var e=v(r,t.iterator,i.arg);if("throw"===e.type)return i.method="throw",i.arg=e.arg,i.delegate=null,b;var u=e.arg;return u?u.done?(i[t.resultName]=u.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=n),i.delegate=null,b):u:(i.method="throw",i.arg=new a("iterator result is not an object"),i.delegate=null,b)}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 N(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function C(t){if(t){var i=t[u];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!w(t.length)){var e=-1,o=function i(){for(;++e<t.length;)if(r.call(t,e))return i.value=t[e],i.done=!1,i;return i.value=n,i.done=!0,i};return o.next=o}}return{next:x}}function x(){return{value:n,done:!0}}m.prototype=R.constructor=_,_.constructor=m,_[s]=m.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===m||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return h.setPrototypeOf?h.setPrototypeOf(t,_):(t.__proto__=_,s in t||(t[s]="GeneratorFunction")),t.prototype=h.create(R),t},t.awrap=function(t){return{Uh:t}},T(k.prototype),k.prototype[o]=function(){return this},t.AsyncIterator=k,t.async=function(n,i,r,e){var u=new k(f(n,i,r,e));return t.isGeneratorFunction(i)?u:u.next().then(function(t){return t.done?t.value:u.next()})},T(R),R[s]="Generator",R[u]=function(){return this},R.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 r=n.pop();if(r in t)return i.value=r,i.done=!1,i}return i.done=!0,i}},t.values=C,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this.Fh=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(N),!t)for(var i in this)"t"===i.charAt(0)&&r.call(this,i)&&!w(+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 e(r,e){return s.type="throw",s.arg=t,i.next=r,e&&(i.method="next",i.arg=n),!!e}for(var u=this.tryEntries.length-1;u>=0;--u){var o=this.tryEntries[u],s=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var f=r.call(o,"catchLoc"),a=r.call(o,"finallyLoc");if(f&&a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(f){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!a)throw new c("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,n){for(var i=this.tryEntries.length-1;i>=0;--i){var e=this.tryEntries[i];if(e.tryLoc<=this.prev&&r.call(e,"finallyLoc")&&this.prev<e.finallyLoc){var u=e;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=n&&n<=u.finallyLoc&&(u=null);var o=u?u.completion:{};return o.type=t,o.arg=n,u?(this.method="next",this.next=u.finallyLoc,b):this.complete(o)},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),b},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),N(i),b}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===t){var r=i.completion;if("throw"===r.type){var e=r.arg;N(i)}return e}}throw new c("illegal catch attempt")},delegateYield:function(t,i,r){return this.delegate={iterator:C(t),resultName:i,nextLoc:r},"next"===this.method&&(this.arg=n),b}}}(t.exports)}),E=g(function(s,f){s.exports=function t(i,r,e){function u(s,f){if(!r[s]){if(!i[s]){var a="function"==typeof n&&n;if(!f&&a)return a(s,!0);if(o)return o(s,!0);var h=new c("Cannot find module '"+s+"'");throw h.code="MODULE_NOT_FOUND",h}var v=r[s]={exports:{}};i[s][0].call(v.exports,function(t){var n=i[s][1][t];return u(n||t)},v,v.exports,t,i,r,e)}return r[s].exports}for(var o="function"==typeof n&&n,s=0;s<e.length;s++)u(e[s]);return u}({1:[function(t,n,i){n.exports=function(t){var n=t.l;function i(t){var i=new n(t),r=i.promise();return i.setHowMany(1),i.setUnwrap(),i.init(),r}t.any=function(t){return i(t)},t.prototype.any=function(){return i(this)}}},{}],2:[function(t,n,i){var r;try{throw new c}catch(t){r=t}var e=t("./schedule"),o=t("./queue"),s=t("./util");function f(){this.g=!1,this.R=!1,this.N=new o(16),this.M=new o(16),this.F=!1,this.U=!0;var t=this;this.drainQueues=function(){t.q()},this.G=e}function a(t,n,i){this.N.push(t,n,i),this.j()}function h(t,n,i){this.M.push(t,n,i),this.j()}function v(t){this.M.Y(t),this.j()}function l(t){for(;t.length()>0;)d(t)}function d(t){var n=t.shift();if("function"!=typeof n)n.K();else{var i=t.shift(),r=t.shift();n.call(i,r)}}f.prototype.setScheduler=function(t){var n=this.G;return this.G=t,this.g=!0,n},f.prototype.hasCustomScheduler=function(){return this.g},f.prototype.enableTrampoline=function(){this.U=!0},f.prototype.disableTrampolineIfNecessary=function(){s.hasDevTools&&(this.U=!1)},f.prototype.haveItemsQueued=function(){return this.R||this.F},f.prototype.fatalError=function(t,n){n?(process.stderr.write("Fatal "+(t instanceof c?t.stack:t)+"\n"),process.exit(2)):this.throwLater(t)},f.prototype.throwLater=function(t,n){if(1===arguments.length&&(n=t,t=function(){throw n}),void 0!==u)u(function(){t(n)},0);else try{this.G(function(){t(n)})}catch(t){throw new c("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},s.hasDevTools?(f.prototype.invokeLater=function(t,n,i){this.U?a.call(this,t,n,i):this.G(function(){u(function(){t.call(n,i)},100)})},f.prototype.invoke=function(t,n,i){this.U?h.call(this,t,n,i):this.G(function(){t.call(n,i)})},f.prototype.settlePromises=function(t){this.U?v.call(this,t):this.G(function(){t.K()})}):(f.prototype.invokeLater=a,f.prototype.invoke=h,f.prototype.settlePromises=v),f.prototype.q=function(){l(this.M),this.Z(),this.F=!0,l(this.N)},f.prototype.j=function(){this.R||(this.R=!0,this.G(this.drainQueues))},f.prototype.Z=function(){this.R=!1},n.exports=f,n.exports.firstLineError=r},{"./queue":26,"./schedule":29,"./util":36}],3:[function(t,n,i){n.exports=function(t,n,i,r){var e=!1,u=function(t,n){this.J(n)},o=function(t,n){n.promiseRejectionQueued=!0,n.bindingPromise.nt(u,u,null,this,t)},s=function(t,n){0==(50397184&this.ut)&&this.ot(n.target)},f=function(t,n){n.promiseRejectionQueued||this.J(t)};t.prototype.bind=function(u){e||(e=!0,t.prototype.ct=r.propagateFromFunction(),t.prototype.ft=r.boundValueFunction());var c=i(u),a=new t(n);a.ct(this,1);var h=this.vt();if(a.dt(c),c instanceof t){var v={promiseRejectionQueued:!1,promise:a,target:h,bindingPromise:c};h.nt(n,o,void 0,a,v),c.nt(s,f,void 0,a,v),a._t(c)}else a.ot(h);return a},t.prototype.dt=function(t){void 0!==t?(this.ut=2097152|this.ut,this.wt=t):this.ut=-2097153&this.ut},t.prototype.yt=function(){return 2097152==(2097152&this.ut)},t.bind=function(n,i){return t.resolve(i).bind(n)}}},{}],4:[function(t,n,i){var r;"undefined"!=typeof Promise&&(r=Promise);var e=t("./promise")();e.noConflict=function(){try{Promise===e&&(Promise=r)}catch(t){}return e},n.exports=e},{"./promise":22}],5:[function(t,n,i){var r=h.create;if(r){var e=r(null),u=r(null);e[" size"]=u[" size"]=0}n.exports=function(n){var i=t("./util"),r=i.canEvaluate;function e(t){var r=this.pop(),e=function(t,r){var e;if(null!=t&&(e=t[r]),"function"!=typeof e){var u="Object "+i.classString(t)+" has no method '"+i.toString(r)+"'";throw new n.TypeError(u)}return e}(t,r);return e.apply(t,this)}function u(t){return t[this]}function o(t){var n=+this;return n<0&&(n=v.max(0,n+t.length)),t[n]}i.isIdentifier,n.prototype.call=function(t){var n=[].slice.call(arguments,1);return n.push(t),this.nt(e,void 0,void 0,n,void 0)},n.prototype.get=function(t){var n,i="number"==typeof t;if(i)n=o;else if(r){var e=(void 0)();n=null!==e?e:u}else n=u;return this.nt(n,void 0,void 0,t,void 0)}}},{"./util":36}],6:[function(t,n,i){n.exports=function(n,i,r,e){var u=t("./util"),o=u.tryCatch,s=u.errorObj,f=n.kt;n.prototype.break=n.prototype.cancel=function(){if(!e.cancellation())return this.bt("cancellation is disabled");for(var t=this,n=t;t.At();){if(!t.Tt(n)){n.St()?n.Et().cancel():n.It();break}var i=t.Rt;if(null==i||!i.At()){t.St()?t.Et().cancel():t.It();break}t.St()&&t.Et().cancel(),t.Nt(),n=t,t=i}},n.prototype.Dt=function(){this.Ct--},n.prototype.Pt=function(){return void 0===this.Ct||this.Ct<=0},n.prototype.Tt=function(t){return t===this?(this.Ct=0,this.Ot(),!0):(this.Dt(),!!this.Pt()&&(this.Ot(),!0))},n.prototype.It=function(){this.Pt()&&this.Bt()},n.prototype.Bt=function(){this.At()&&(this.Lt(),f.invoke(this.xt,this,void 0))},n.prototype.xt=function(){this.Mt()>0&&this.K()},n.prototype.Ft=function(){this.Ut=void 0},n.prototype.At=function(){return this.isPending()&&!this.Ht()},n.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},n.prototype.Vt=function(t,n){if(u.isArray(t))for(var i=0;i<t.length;++i)this.Vt(t[i],n);else if(void 0!==t)if("function"==typeof t){if(!n){var r=o(t).call(this.ft());r===s&&(this.Xt(r.e),f.throwLater(r.e))}}else t._resultCancelled(this)},n.prototype.Ot=function(){var t=this.zt();this.Ft(),f.invoke(this.Vt,this,t)},n.prototype.qt=function(){this.At()&&(this.Vt(this.zt(),!0),this.Ft())},n.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(t,n,i){n.exports=function(n){var i=t("./util"),r=t("./es5").keys,e=i.tryCatch,u=i.errorObj;return function(t,o,s){return function(f){var a=s.ft();t:for(var h=0;h<t.length;++h){var v=t[h];if(v===c||null!=v&&v.prototype instanceof c){if(f instanceof v)return e(o).call(a,f)}else if("function"==typeof v){var l=e(v).call(a,f);if(l===u)return l;if(l)return e(o).call(a,f)}else if(i.isObject(f)){for(var d=r(v),w=0;w<d.length;++w){var y=d[w];if(v[y]!=f[y])continue t}return e(o).call(a,f)}}return n}}}},{"./es5":13,"./util":36}],8:[function(t,n,i){n.exports=function(t){var n=!1,i=[];function r(){this.Gt=new r.CapturedTrace(e())}function e(){var t=i.length-1;if(t>=0)return i[t]}return t.prototype.Wt=function(){},t.prototype.jt=function(){},t.prototype.Yt=function(){return null},t.Qt=t.prototype.Qt=function(){},r.prototype.jt=function(){void 0!==this.Gt&&(this.Gt.Wt=null,i.push(this.Gt))},r.prototype.Yt=function(){if(void 0!==this.Gt){var t=i.pop(),n=t.Wt;return t.Wt=null,n}return null},r.CapturedTrace=null,r.create=function(){if(n)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var i=t.prototype.jt,u=t.prototype.Yt,o=t.Qt,s=t.prototype.Qt,f=t.prototype.Wt;r.deactivateLongStackTraces=function(){t.prototype.jt=i,t.prototype.Yt=u,t.Qt=o,t.prototype.Qt=s,t.prototype.Wt=f,n=!1},n=!0,t.prototype.jt=r.prototype.jt,t.prototype.Yt=r.prototype.Yt,t.Qt=t.prototype.Qt=e,t.prototype.Wt=function(){var t=this.Qt();t&&null==t.Wt&&(t.Wt=this)}},r}},{}],9:[function(t,n,i){n.exports=function(n,i){var e,o,s,f=n.Kt,v=n.kt,d=t("./errors").Warning,w=t("./util"),y=t("./es5"),p=w.canAttachTrace,b=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,g=/\((?:timers\.js):\d+:\d+\)/,m=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,_=null,E=null,S=!1,I=!(0==w.env("BLUEBIRD_DEBUG")),R=!(0==w.env("BLUEBIRD_WARNINGS")||!I&&!w.env("BLUEBIRD_WARNINGS")),T=!(0==w.env("BLUEBIRD_LONG_STACK_TRACES")||!I&&!w.env("BLUEBIRD_LONG_STACK_TRACES")),k=0!=w.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(R||!!w.env("BLUEBIRD_W_FORGOTTEN_RETURN"));n.prototype.suppressUnhandledRejections=function(){var t=this.vt();t.ut=-1048577&t.ut|524288},n.prototype.Zt=function(){if(0==(524288&this.ut)){this.Jt();var t=this;u(function(){t.$t()},1)}},n.prototype.in=function(){$("rejectionHandled",e,void 0,this)},n.prototype.un=function(){this.ut=268435456|this.ut},n.prototype.hn=function(){return 0!=(268435456&this.ut)},n.prototype.$t=function(){if(this.cn()){var t=this.fn();this.vn(),$("unhandledRejection",o,t,this)}},n.prototype.vn=function(){this.ut=262144|this.ut},n.prototype.dn=function(){this.ut=-262145&this.ut},n.prototype._n=function(){return(262144&this.ut)>0},n.prototype.Jt=function(){this.ut=1048576|this.ut},n.prototype.wn=function(){this.ut=-1048577&this.ut,this._n()&&(this.dn(),this.in())},n.prototype.cn=function(){return(1048576&this.ut)>0},n.prototype.bt=function(t,n,i){return G(t,n,i||this)},n.onPossiblyUnhandledRejection=function(t){var n=f();o="function"==typeof t?null===n?t:w.domainBind(n,t):void 0},n.onUnhandledRejectionHandled=function(t){var n=f();e="function"==typeof t?null===n?t:w.domainBind(n,t):void 0};var A=function(){};n.longStackTraces=function(){if(v.haveItemsQueued()&&!et.longStackTraces)throw new c("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!et.longStackTraces&&Z()){var t=n.prototype.yn,r=n.prototype.Xt,e=n.prototype.pn;et.longStackTraces=!0,A=function(){if(v.haveItemsQueued()&&!et.longStackTraces)throw new c("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");n.prototype.yn=t,n.prototype.Xt=r,n.prototype.pn=e,i.deactivateLongStackTraces(),v.enableTrampoline(),et.longStackTraces=!1},n.prototype.yn=X,n.prototype.Xt=H,n.prototype.pn=V,i.activateLongStackTraces(),v.disableTrampolineIfNecessary()}},n.hasLongStackTraces=function(){return et.longStackTraces&&Z()};var O=function(){try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return w.global.dispatchEvent(t),function(t,n){var i={detail:n,cancelable:!0};y.defineProperty(i,"promise",{value:n.promise}),y.defineProperty(i,"reason",{value:n.reason});var r=new CustomEvent(t.toLowerCase(),i);return!w.global.dispatchEvent(r)}}if("function"==typeof Event){var t=new Event("CustomEvent");return w.global.dispatchEvent(t),function(t,n){var i=new Event(t.toLowerCase(),{cancelable:!0});return i.detail=n,y.defineProperty(i,"promise",{value:n.promise}),y.defineProperty(i,"reason",{value:n.reason}),!w.global.dispatchEvent(i)}}var t=r.createEvent("CustomEvent");return t.initCustomEvent("testingtheevent",!1,!0,{}),w.global.dispatchEvent(t),function(t,n){var i=r.createEvent("CustomEvent");return i.initCustomEvent(t.toLowerCase(),!1,!0,n),!w.global.dispatchEvent(i)}}catch(t){}return function(){return!1}}(),N=w.isNode?function(){return process.emit.apply(process,arguments)}:w.global?function(t){var n="on"+t.toLowerCase(),i=w.global[n];return!!i&&(i.apply(w.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function D(t,n){return{promise:n}}var C={promiseCreated:D,promiseFulfilled:D,promiseRejected:D,promiseResolved:D,promiseCancelled:D,promiseChained:function(t,n,i){return{promise:n,child:i}},warning:function(t,n){return{warning:n}},unhandledRejection:function(t,n,i){return{reason:n,promise:i}},rejectionHandled:D},x=function(t){var n=!1;try{n=N.apply(null,arguments)}catch(t){v.throwLater(t),n=!0}var i=!1;try{i=O(t,C[t].apply(null,arguments))}catch(t){v.throwLater(t),i=!0}return i||n};function B(){return!1}function F(t,n,i){var r=this;try{t(n,i,function(t){if("function"!=typeof t)throw new a("onCancel must be a function, got: "+w.toString(t));r.An(t)})}catch(t){return t}}function P(t){if(!this.At())return this;var n=this.zt();void 0!==n?w.isArray(n)?n.push(t):this._t([n,t]):this._t(t)}function j(){return this.Ut}function U(t){this.Ut=t}function L(){this.Rt=void 0,this.Ut=void 0}function M(t,n){if(0!=(1&n)){this.Rt=t;var i=t.Ct;void 0===i&&(i=0),t.Ct=i+1}0!=(2&n)&&t.yt()&&this.dt(t.wt)}n.config=function(t){if("longStackTraces"in(t=h(t))&&(t.longStackTraces?n.longStackTraces():!t.longStackTraces&&n.hasLongStackTraces()&&A()),"warnings"in t){var i=t.warnings;et.warnings=!!i,k=et.warnings,w.isObject(i)&&"wForgottenReturn"in i&&(k=!!i.wForgottenReturn)}if("cancellation"in t&&t.cancellation&&!et.cancellation){if(v.haveItemsQueued())throw new c("cannot enable cancellation after promises are in use");n.prototype.Tn=L,n.prototype.ct=M,n.prototype.zt=j,n.prototype._t=U,n.prototype.An=P,n.prototype.Sn=F,q=M,et.cancellation=!0}return"monitoring"in t&&(t.monitoring&&!et.monitoring?(et.monitoring=!0,n.prototype.En=x):!t.monitoring&&et.monitoring&&(et.monitoring=!1,n.prototype.En=B)),n},n.prototype.En=B,n.prototype.Sn=function(t,n,i){try{t(n,i)}catch(t){return t}},n.prototype.zt=function(){},n.prototype._t=function(t){},n.prototype.An=function(t){},n.prototype.yn=function(){},n.prototype.Xt=function(){},n.prototype.pn=function(){},n.prototype.Tn=function(){},n.prototype.ct=function(t,n){};var q=function(t,n){0!=(2&n)&&t.yt()&&this.dt(t.wt)};function W(){var t=this.wt;return void 0!==t&&t instanceof n?t.isFulfilled()?t.value():void 0:t}function X(){this.Gt=new it(this.Qt())}function H(t,n){if(p(t)){var i=this.Gt;if(void 0!==i&&n&&(i=i.In),void 0!==i)i.attachExtraTrace(t);else if(!t.Rn){var r=Y(t);w.notEnumerableProp(t,"stack",r.message+"\n"+r.stack.join("\n")),w.notEnumerableProp(t,"Rn",!0)}}}function V(){this.Gt=void 0}function G(t,i,r){if(et.warnings){var e,u=new d(t);if(i)r.Xt(u);else if(et.longStackTraces&&(e=n.Qt()))e.attachExtraTrace(u);else{var o=Y(u);u.stack=o.message+"\n"+o.stack.join("\n")}x("warning",u)||K(u,"",!0)}}function z(t){for(var n=[],i=0;i<t.length;++i){var r=t[i],e=" (No stack trace)"===r||_.test(r),u=e&&Q(r);e&&!u&&(S&&" "!==r.charAt(0)&&(r=" "+r),n.push(r))}return n}function Y(t){var n=t.stack,i=t.toString();return n="string"==typeof n&&n.length>0?function(t){for(var n=t.stack.replace(/\s+$/g,"").split("\n"),i=0;i<n.length;++i){var r=n[i];if(" (No stack trace)"===r||_.test(r))break}return i>0&&"SyntaxError"!=t.name&&(n=n.slice(i)),n}(t):[" (No stack trace)"],{message:i,stack:"SyntaxError"==t.name?n:z(n)}}function K(t,n,i){if("undefined"!=typeof console){var r;if(w.isObject(t)){var e=t.stack;r=n+E(e,t)}else r=n+String(t);"function"==typeof s?s(r,i):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function $(t,n,i,r){var e=!1;try{"function"==typeof n&&(e=!0,"rejectionHandled"===t?n(r):n(i,r))}catch(t){v.throwLater(t)}"unhandledRejection"===t?x(t,i,r)||e||K(i,"Unhandled rejection "):x(t,r)}function J(t){var n;if("function"==typeof t)n="[function "+(t.name||"anonymous")+"]";else{if(n=t&&"function"==typeof t.toString?t.toString():w.toString(t),/\[object [a-zA-Z0-9$_]+\]/.test(n))try{var i=JSON.stringify(t);n=i}catch(t){}0===n.length&&(n="(empty array)")}return"(<"+function(t){return t.length<41?t:t.substr(0,38)+"..."}(n)+">, no stack trace)"}function Z(){return"function"==typeof rt}var Q=function(){return!1},tt=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function nt(t){var n=t.match(tt);if(n)return{fileName:n[1],line:l(n[2],10)}}function it(t){this.In=t,this.Nn=0;var n=this.Mt=1+(void 0===t?0:t.Mt);rt(this,it),n>32&&this.uncycle()}w.inherits(it,c),i.CapturedTrace=it,it.prototype.uncycle=function(){var t=this.Mt;if(!(t<2)){for(var n=[],i={},r=0,e=this;void 0!==e;++r)n.push(e),e=e.In;for(var r=(t=this.Mt=r)-1;r>=0;--r){var u=n[r].stack;void 0===i[u]&&(i[u]=r)}for(var r=0;r<t;++r){var o=n[r].stack,s=i[o];if(void 0!==s&&s!==r){s>0&&(n[s-1].In=void 0,n[s-1].Mt=1),n[r].In=void 0,n[r].Mt=1;var f=r>0?n[r-1]:this;s<t-1?(f.In=n[s+1],f.In.uncycle(),f.Mt=f.In.Mt+1):(f.In=void 0,f.Mt=1);for(var c=f.Mt+1,a=r-2;a>=0;--a)n[a].Mt=c,c++;return}}}},it.prototype.attachExtraTrace=function(t){if(!t.Rn){this.uncycle();for(var n=Y(t),i=n.message,r=[n.stack],e=this;void 0!==e;)r.push(z(e.stack.split("\n"))),e=e.In;!function(t){for(var n=t[0],i=1;i<t.length;++i){for(var r=t[i],e=n.length-1,u=n[e],o=-1,s=r.length-1;s>=0;--s)if(r[s]===u){o=s;break}for(var s=o;s>=0;--s){var f=r[s];if(n[e]!==f)break;n.pop(),e--}n=r}}(r),function(t){for(var n=0;n<t.length;++n)(0===t[n].length||n+1<t.length&&t[n][0]===t[n+1][0])&&(t.splice(n,1),n--)}(r),w.notEnumerableProp(t,"stack",function(t,n){for(var i=0;i<n.length-1;++i)n[i].push("From previous event:"),n[i]=n[i].join("\n");return i<n.length&&(n[i]=n[i].join("\n")),t+"\n"+n.join("\n")}(i,r)),w.notEnumerableProp(t,"Rn",!0)}};var rt=function(){var t=/^\s*at\s*/,n=function(t,n){return"string"==typeof t?t:void 0!==n.name&&void 0!==n.message?n.toString():J(n)};if("number"==typeof c.stackTraceLimit&&"function"==typeof c.captureStackTrace){c.stackTraceLimit+=6,_=t,E=n;var i=c.captureStackTrace;return Q=function(t){return b.test(t)},function(t,n){c.stackTraceLimit+=6,i(t,n),c.stackTraceLimit-=6}}var r,e=new c;if("string"==typeof e.stack&&e.stack.split("\n")[0].indexOf("stackDetection@")>=0)return _=/@/,E=n,S=!0,function(t){t.stack=(new c).stack};try{throw new c}catch(t){r="stack"in t}return"stack"in e||!r||"number"!=typeof c.stackTraceLimit?(E=function(t,n){return"string"==typeof t?t:"object"!=typeof n&&"function"!=typeof n||void 0===n.name||void 0===n.message?J(n):n.toString()},null):(_=t,E=n,function(t){c.stackTraceLimit+=6;try{throw new c}catch(n){t.stack=n.stack}c.stackTraceLimit-=6})}();"undefined"!=typeof console&&void 0!==console.warn&&(s=function(t){console.warn(t)},w.isNode&&process.stderr.isTTY?s=function(t,n){var i=n?"\x1b[33m":"\x1b[31m";console.warn(i+t+"\x1b[0m\n")}:w.isNode||"string"!=typeof(new c).stack||(s=function(t,n){console.warn("%c"+t,n?"color: darkorange":"color: red")}));var et={warnings:R,longStackTraces:!1,cancellation:!1,monitoring:!1};return T&&n.longStackTraces(),{longStackTraces:function(){return et.longStackTraces},warnings:function(){return et.warnings},cancellation:function(){return et.cancellation},monitoring:function(){return et.monitoring},propagateFromFunction:function(){return q},boundValueFunction:function(){return W},checkForgottenReturns:function(t,n,i,r,e){if(void 0===t&&null!==n&&k){if(void 0!==e&&e.hn())return;if(0==(65535&r.ut))return;i&&(i+=" ");var u="",o="";if(n.Gt){for(var s=n.Gt.stack.split("\n"),f=z(s),c=f.length-1;c>=0;--c){var a=f[c];if(!g.test(a)){var h=a.match(m);h&&(u="at "+h[1]+":"+h[2]+":"+h[3]+" ");break}}if(f.length>0)for(var v=f[0],c=0;c<s.length;++c)if(s[c]===v){c>0&&(o="\n"+s[c-1]);break}}var l="a promise was created in a "+i+"handler "+u+"but was not returned from it, see http://goo.gl/rRqMUw"+o;r.bt(l,!0,n)}},setBounds:function(t,n){if(Z()){for(var i,r,e=(t.stack||"").split("\n"),u=(n.stack||"").split("\n"),o=-1,s=-1,f=0;f<e.length;++f){var c=nt(e[f]);if(c){i=c.fileName,o=c.line;break}}for(var f=0;f<u.length;++f){var c=nt(u[f]);if(c){r=c.fileName,s=c.line;break}}o<0||s<0||!i||!r||i!==r||o>=s||(Q=function(t){if(b.test(t))return!0;var n=nt(t);return!!(n&&n.fileName===i&&o<=n.line&&n.line<=s)})}},warn:G,deprecated:function(t,n){var i=t+" is deprecated and will be removed in a future version.";return n&&(i+=" Use "+n+" instead."),G(i)},CapturedTrace:it,fireDomEvent:O,fireGlobalEvent:N}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(t,n,i){n.exports=function(t){function n(){return this.value}function i(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(i){return i instanceof t&&i.suppressUnhandledRejections(),this.nt(n,void 0,void 0,{value:i},void 0)},t.prototype.throw=t.prototype.thenThrow=function(t){return this.nt(i,void 0,void 0,{reason:t},void 0)},t.prototype.catchThrow=function(t){if(arguments.length<=1)return this.nt(void 0,i,void 0,{reason:t},void 0);var n=arguments[1];return this.caught(t,function(){throw n})},t.prototype.catchReturn=function(i){if(arguments.length<=1)return i instanceof t&&i.suppressUnhandledRejections(),this.nt(void 0,n,void 0,{value:i},void 0);var r=arguments[1];return r instanceof t&&r.suppressUnhandledRejections(),this.caught(i,function(){return r})}}},{}],11:[function(t,n,i){n.exports=function(t,n){var i=t.reduce,r=t.all;function e(){return r(this)}t.prototype.each=function(t){return i(this,t,n,0).nt(e,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(t){return i(this,t,n,n)},t.each=function(t,r){return i(t,r,n,0).nt(e,void 0,void 0,t,void 0)},t.mapSeries=function(t,r){return i(t,r,n,n)}}},{}],12:[function(t,n,i){var r,e,u=t("./es5"),o=u.freeze,s=t("./util"),f=s.inherits,h=s.notEnumerableProp;function v(t,n){function i(r){if(!(this instanceof i))return new i(r);h(this,"message","string"==typeof r?r:n),h(this,"name",t),c.captureStackTrace?c.captureStackTrace(this,this.constructor):c.call(this)}return f(i,c),i}var l=v("Warning","warning"),d=v("CancellationError","cancellation error"),w=v("TimeoutError","timeout error"),y=v("AggregateError","aggregate error");try{r=a,e=RangeError}catch(t){r=v("TypeError","type error"),e=v("RangeError","range error")}for(var p="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),b=0;b<p.length;++b)"function"==typeof Array.prototype[p[b]]&&(y.prototype[p[b]]=Array.prototype[p[b]]);u.defineProperty(y.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),y.prototype.isOperational=!0;var g=0;function m(t){if(!(this instanceof m))return new m(t);h(this,"name","OperationalError"),h(this,"message",t),this.cause=t,this.isOperational=!0,t instanceof c?(h(this,"message",t.message),h(this,"stack",t.stack)):c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}y.prototype.toString=function(){var t=Array(4*g+1).join(" "),n="\n"+t+"AggregateError of:\n";g++,t=Array(4*g+1).join(" ");for(var i=0;i<this.length;++i){for(var r=this[i]===this?"[Circular AggregateError]":this[i]+"",e=r.split("\n"),u=0;u<e.length;++u)e[u]=t+e[u];r=e.join("\n"),n+=r+"\n"}return g--,n},f(m,c);var _=c.Dn;_||(_=o({CancellationError:d,TimeoutError:w,OperationalError:m,RejectionError:m,AggregateError:y}),u.defineProperty(c,"Dn",{value:_,writable:!1,enumerable:!1,configurable:!1})),n.exports={Error:c,TypeError:r,RangeError:e,CancellationError:_.CancellationError,OperationalError:_.OperationalError,TimeoutError:_.TimeoutError,AggregateError:_.AggregateError,Warning:l}},{"./es5":13,"./util":36}],13:[function(t,n,i){var r=function(){return void 0===this}();if(r)n.exports={freeze:h.freeze,defineProperty:h.defineProperty,getDescriptor:h.getOwnPropertyDescriptor,keys:h.keys,names:h.getOwnPropertyNames,getPrototypeOf:h.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(t,n){var i=h.getOwnPropertyDescriptor(t,n);return!(i&&!i.writable&&!i.set)}};else{var e={}.hasOwnProperty,u={}.toString,o={}.constructor.prototype,s=function(t){var n=[];for(var i in t)e.call(t,i)&&n.push(i);return n};n.exports={isArray:function(t){try{return"[object Array]"===u.call(t)}catch(t){return!1}},keys:s,names:s,defineProperty:function(t,n,i){return t[n]=i.value,t},getDescriptor:function(t,n){return{value:t[n]}},freeze:function(t){return t},getPrototypeOf:function(t){try{return h(t).constructor.prototype}catch(t){return o}},isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(t,n,i){n.exports=function(t,n){var i=t.map;t.prototype.filter=function(t,r){return i(this,t,r,n)},t.filter=function(t,r,e){return i(t,r,e,n)}}},{}],15:[function(t,n,i){n.exports=function(n,i,r){var e=t("./util"),u=n.CancellationError,o=e.errorObj,s=t("./catch_filter")(r);function f(t,n,i){this.promise=t,this.type=n,this.handler=i,this.called=!1,this.cancelPromise=null}function c(t){this.finallyHandler=t}function h(t,n){return null!=t.cancelPromise&&(arguments.length>1?t.cancelPromise.J(n):t.cancelPromise.Bt(),t.cancelPromise=null,!0)}function v(){return d.call(this,this.promise.vt().fn())}function l(t){if(!h(this,t))return o.e=t,o}function d(t){var e=this.promise,s=this.handler;if(!this.called){this.called=!0;var f=this.isFinallyHandler()?s.call(e.ft()):s.call(e.ft(),t);if(f===r)return f;if(void 0!==f){e.un();var a=i(f,e);if(a instanceof n){if(null!=this.cancelPromise){if(a.Ht()){var d=new u("late cancellation observer");return e.Xt(d),o.e=d,o}a.isPending()&&a.An(new c(this))}return a.nt(v,l,void 0,this,void 0)}}}return e.isRejected()?(h(this),o.e=t,o):(h(this),t)}return f.prototype.isFinallyHandler=function(){return 0===this.type},c.prototype._resultCancelled=function(){h(this.finallyHandler)},n.prototype.Cn=function(t,n,i,r){return"function"!=typeof t?this.then():this.nt(i,r,void 0,new f(this,n,t),void 0)},n.prototype.lastly=n.prototype.finally=function(t){return this.Cn(t,0,d,d)},n.prototype.tap=function(t){return this.Cn(t,1,d)},n.prototype.tapCatch=function(t){var i=arguments.length;if(1===i)return this.Cn(t,1,void 0,d);var r,u=new Array(i-1),o=0;for(r=0;r<i-1;++r){var f=arguments[r];if(!e.isObject(f))return n.reject(new a("tapCatch statement predicate: expecting an object but got "+e.classString(f)));u[o++]=f}u.length=o;var c=arguments[r];return this.Cn(s(u,c,this),1,void 0,d)},f}},{"./catch_filter":7,"./util":36}],16:[function(t,n,i){n.exports=function(n,i,r,e,u,o){var s=t("./errors"),f=s.TypeError,a=t("./util"),v=a.errorObj,l=a.tryCatch,d=[];function w(t,i,e,u){if(o.cancellation()){var s=new n(r),f=this.Pn=new n(r);this.On=s.lastly(function(){return f}),s.yn(),s._t(this)}else{var c=this.On=new n(r);c.yn()}this.Bn=u,this.Ln=t,this.xn=i,this.Mn=void 0,this.Fn="function"==typeof e?[e].concat(d):d,this.Un=null,this.Hn=!1}a.inherits(w,u),w.prototype.Vn=function(){return null===this.On},w.prototype.Xn=function(){this.On=this.Mn=null,o.cancellation()&&null!==this.Pn&&(this.Pn.zn(),this.Pn=null)},w.prototype.qn=function(){if(!this.Vn()){var t,i=void 0!==this.Mn.return;if(i)this.On.jt(),t=l(this.Mn.return).call(this.Mn,void 0),this.On.Yt();else{var r=new n.CancellationError("generator .return() sentinel");n.coroutine.returnSentinel=r,this.On.Xt(r),this.On.jt(),t=l(this.Mn.throw).call(this.Mn,r),this.On.Yt()}this.Hn=!0,this.Un=null,this.Gn(t)}},w.prototype.Wn=function(t){this.Un=null,this.On.jt();var n=l(this.Mn.next).call(this.Mn,t);this.On.Yt(),this.Gn(n)},w.prototype.jn=function(t){this.Un=null,this.On.Xt(t),this.On.jt();var n=l(this.Mn.throw).call(this.Mn,t);this.On.Yt(),this.Gn(n)},w.prototype._resultCancelled=function(){if(this.Un instanceof n){var t=this.Un;this.Un=null,t.cancel()}},w.prototype.promise=function(){return this.On},w.prototype.Yn=function(){this.Mn=this.Ln.call(this.xn),this.xn=this.Ln=void 0,this.Wn(void 0)},w.prototype.Gn=function(t){var i=this.On;if(t===v)return this.Xn(),this.Hn?i.cancel():i.Qn(t.e,!1);var r=t.value;if(!0===t.done)return this.Xn(),this.Hn?i.cancel():i.ot(r);var u=e(r,this.On);if(u instanceof n||null!==(u=function(t,i,r){for(var u=0;u<i.length;++u){r.jt();var o=l(i[u])(t);if(r.Yt(),o===v){r.jt();var s=n.reject(v.e);return r.Yt(),s}var f=e(o,r);if(f instanceof n)return f}return null}(u,this.Fn,this.On))){var o=(u=u.vt()).ut;0==(50397184&o)?(this.Un=u,u.Kn(this,null)):0!=(33554432&o)?n.kt.invoke(this.Wn,this,u.Zn()):0!=(16777216&o)?n.kt.invoke(this.jn,this,u.Jn()):this.qn()}else this.jn(new f("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this.Bn.split("\n").slice(1,-7).join("\n")))},n.coroutine=function(t,n){if("function"!=typeof t)throw new f("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var i=h(n).yieldHandler,r=w,e=(new c).stack;return function(){var n=t.apply(this,arguments),u=new r(void 0,void 0,i,e),o=u.promise();return u.Mn=n,u.Wn(void 0),o}},n.coroutine.addYieldHandler=function(t){if("function"!=typeof t)throw new f("expecting a function but got "+a.classString(t));d.push(t)},n.spawn=function(t){if(o.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof t)return i("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new w(t,this),e=r.promise();return r.Yn(n.spawn),e}}},{"./errors":12,"./util":36}],17:[function(t,n,i){n.exports=function(n,i,r,e,u,o){var s=t("./util");s.canEvaluate,s.tryCatch,s.errorObj,n.join=function(){var t,n=arguments.length-1;n>0&&"function"==typeof arguments[n]&&(t=arguments[n]);var r=[].slice.call(arguments);t&&r.pop();var e=new i(r).promise();return void 0!==t?e.spread(t):e}}},{"./util":36}],18:[function(t,n,i){n.exports=function(n,i,r,e,u,o){var s=n.Kt,f=t("./util"),c=f.tryCatch,h=f.errorObj,v=n.kt;function l(t,n,i,r){this.constructor$(t),this.On.yn();var e=s();this.$n=null===e?n:f.domainBind(e,n),this.ni=r===u?new Array(this.length()):null,this.ri=i,this.ei=0,this.oi=[],v.invoke(this.ai,this,void 0)}function d(t,i,e,u){if("function"!=typeof i)return r("expecting a function but got "+f.classString(i));var o=0;if(void 0!==e){if("object"!=typeof e||null===e)return n.reject(new a("options argument must be an object but it is "+f.classString(e)));if("number"!=typeof e.concurrency)return n.reject(new a("'concurrency' must be a number but it is "+f.classString(e.concurrency)));o=e.concurrency}return o="number"==typeof o&&isFinite(o)&&o>=1?o:0,new l(t,i,o,u).promise()}f.inherits(l,i),l.prototype.ai=function(){this._init$(void 0,-2)},l.prototype._init=function(){},l.prototype.Wn=function(t,i){var r=this.ci,u=this.length(),s=this.ni,f=this.ri;if(i<0){if(r[i=-1*i-1]=t,f>=1&&(this.ei--,this.di(),this.Vn()))return!0}else{if(f>=1&&this.ei>=f)return r[i]=t,this.oi.push(i),!1;null!==s&&(s[i]=t);var a=this.On,v=this.$n,l=a.ft();a.jt();var d=c(v).call(l,t,i,u),w=a.Yt();if(o.checkForgottenReturns(d,w,null!==s?"Promise.filter":"Promise.map",a),d===h)return this.J(d.e),!0;var y=e(d,this.On);if(y instanceof n){var p=(y=y.vt()).ut;if(0==(50397184&p))return f>=1&&this.ei++,r[i]=y,y.Kn(this,-1*(i+1)),!1;if(0==(33554432&p))return 0!=(16777216&p)?(this.J(y.Jn()),!0):(this.Bt(),!0);d=y.Zn()}r[i]=d}var b=++this._i;return b>=u&&(null!==s?this.gi(r,s):this.wi(r),!0)},l.prototype.di=function(){for(var t=this.oi,n=this.ri,i=this.ci;t.length>0&&this.ei<n;){if(this.Vn())return;var r=t.pop();this.Wn(i[r],r)}},l.prototype.gi=function(t,n){for(var i=n.length,r=new Array(i),e=0,u=0;u<i;++u)t[u]&&(r[e++]=n[u]);r.length=e,this.wi(r)},l.prototype.preservedValues=function(){return this.ni},n.prototype.map=function(t,n){return d(this,t,n,null)},n.map=function(t,n,i,r){return d(t,n,i,r)}}},{"./util":36}],19:[function(t,n,i){n.exports=function(n,i,r,e,u){var o=t("./util"),s=o.tryCatch;n.method=function(t){if("function"!=typeof t)throw new n.TypeError("expecting a function but got "+o.classString(t));return function(){var r=new n(i);r.yn(),r.jt();var e=s(t).apply(this,arguments),o=r.Yt();return u.checkForgottenReturns(e,o,"Promise.method",r),r.Ai(e),r}},n.attempt=n.try=function(t){if("function"!=typeof t)return e("expecting a function but got "+o.classString(t));var r,f=new n(i);if(f.yn(),f.jt(),arguments.length>1){u.deprecated("calling Promise.try with more than 1 argument");var c=arguments[1],a=arguments[2];r=o.isArray(c)?s(t).apply(a,c):s(t).call(a,c)}else r=s(t)();var h=f.Yt();return u.checkForgottenReturns(r,h,"Promise.try",f),f.Ai(r),f},n.prototype.Ai=function(t){t===o.errorObj?this.Qn(t.e,!1):this.ot(t,!0)}}},{"./util":36}],20:[function(t,n,i){var r=t("./util"),e=r.maybeWrapAsError,u=t("./errors"),o=u.OperationalError,s=t("./es5"),f=/^(?:name|message|stack|cause)$/;function a(t){var n;if(function(t){return t instanceof c&&s.getPrototypeOf(t)===c.prototype}(t)){(n=new o(t)).name=t.name,n.message=t.message,n.stack=t.stack;for(var i=s.keys(t),e=0;e<i.length;++e){var u=i[e];f.test(u)||(n[u]=t[u])}return n}return r.markAsOriginatingFromRejection(t),t}n.exports=function(t,n){return function(i,r){if(null!==t){if(i){var u=a(e(i));t.Xt(u),t.J(u)}else if(n){var o=[].slice.call(arguments,1);t.zn(o)}else t.zn(r);t=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(t,n,i){n.exports=function(n){var i=t("./util"),r=n.kt,e=i.tryCatch,u=i.errorObj;function o(t,n){if(!i.isArray(t))return s.call(this,t,n);var o=e(n).apply(this.ft(),[null].concat(t));o===u&&r.throwLater(o.e)}function s(t,n){var i=this.ft(),o=void 0===t?e(n).call(i,null):e(n).call(i,null,t);o===u&&r.throwLater(o.e)}function f(t,n){if(!t){var i=new c(t+"");i.cause=t,t=i}var o=e(n).call(this.ft(),t);o===u&&r.throwLater(o.e)}n.prototype.asCallback=n.prototype.nodeify=function(t,n){if("function"==typeof t){var i=s;void 0!==n&&h(n).spread&&(i=o),this.nt(i,f,void 0,this,t)}return this}}},{"./util":36}],22:[function(t,n,i){n.exports=function(){var i=function(){return new d("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},r=function(){return new O.PromiseInspection(this.vt())},e=function(t){return O.reject(new d(t))};function u(){}var o,s={},f=t("./util");o=f.isNode?function(){var t=process.domain;return void 0===t&&(t=null),t}:function(){return null},f.notEnumerableProp(O,"Kt",o);var c=t("./es5"),a=t("./async"),v=new a;c.defineProperty(O,"kt",{value:v});var l=t("./errors"),d=O.TypeError=l.TypeError;O.RangeError=l.RangeError;var w=O.CancellationError=l.CancellationError;O.TimeoutError=l.TimeoutError,O.OperationalError=l.OperationalError,O.RejectionError=l.OperationalError,O.AggregateError=l.AggregateError;var y=function(){},p={},b={},g=t("./thenables")(O,y),m=t("./promise_array")(O,y,g,e,u),_=t("./context")(O),E=_.create,S=t("./debuggability")(O,_),I=(S.CapturedTrace,t("./finally")(O,g,b)),R=t("./catch_filter")(b),T=t("./nodeback"),k=f.errorObj,A=f.tryCatch;function O(t){t!==y&&function(t,n){if(null==t||t.constructor!==O)throw new d("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof n)throw new d("expecting a function but got "+f.classString(n))}(this,t),this.ut=0,this.Ti=void 0,this.Si=void 0,this.Ei=void 0,this.Ii=void 0,this.Ri(t),this.Wt(),this.En("promiseCreated",this)}function N(t){this.promise.ot(t)}function D(t){this.promise.Qn(t,!1)}function C(t){var n=new O(y);n.Ti=t,n.Si=t,n.Ei=t,n.Ii=t}return O.prototype.toString=function(){return"[object Promise]"},O.prototype.caught=O.prototype.catch=function(t){var n=arguments.length;if(n>1){var i,r=new Array(n-1),u=0;for(i=0;i<n-1;++i){var o=arguments[i];if(!f.isObject(o))return e("Catch statement predicate: expecting an object but got "+f.classString(o));r[u++]=o}if(r.length=u,"function"!=typeof(t=arguments[i]))throw new d("The last argument to .catch() must be a function, got "+f.toString(t));return this.then(void 0,R(r,t,this))}return this.then(void 0,t)},O.prototype.reflect=function(){return this.nt(r,r,void 0,this,void 0)},O.prototype.then=function(t,n){if(S.warnings()&&arguments.length>0&&"function"!=typeof t&&"function"!=typeof n){var i=".then() only accepts functions but was passed: "+f.classString(t);arguments.length>1&&(i+=", "+f.classString(n)),this.bt(i)}return this.nt(t,n,void 0,void 0,void 0)},O.prototype.done=function(t,n){var i=this.nt(t,n,void 0,void 0,void 0);i.Ni()},O.prototype.spread=function(t){return"function"!=typeof t?e("expecting a function but got "+f.classString(t)):this.all().nt(t,void 0,void 0,p,void 0)},O.prototype.toJSON=function(){var t={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(t.fulfillmentValue=this.value(),t.isFulfilled=!0):this.isRejected()&&(t.rejectionReason=this.reason(),t.isRejected=!0),t},O.prototype.all=function(){return arguments.length>0&&this.bt(".all() was passed arguments but it does not take any"),new m(this).promise()},O.prototype.error=function(t){return this.caught(f.originatesFromRejection,t)},O.getNewLibraryCopy=n.exports,O.is=function(t){return t instanceof O},O.fromNode=O.fromCallback=function(t){var n=new O(y);n.yn();var i=arguments.length>1&&!!h(arguments[1]).multiArgs,r=A(t)(T(n,i));return r===k&&n.Qn(r.e,!0),n.Di()||n.Ci(),n},O.all=function(t){return new m(t).promise()},O.cast=function(t){var n=g(t);return n instanceof O||((n=new O(y)).yn(),n.Pi(),n.Si=t),n},O.resolve=O.fulfilled=O.cast,O.reject=O.rejected=function(t){var n=new O(y);return n.yn(),n.Qn(t,!0),n},O.setScheduler=function(t){if("function"!=typeof t)throw new d("expecting a function but got "+f.classString(t));return v.setScheduler(t)},O.prototype.nt=function(t,n,i,r,e){var u=void 0!==e,s=u?e:new O(y),c=this.vt(),a=c.ut;u||(s.ct(this,3),s.yn(),void 0===r&&0!=(2097152&this.ut)&&(r=0!=(50397184&a)?this.ft():c===this?void 0:this.wt),this.En("promiseChained",this,s));var h=o();if(0!=(50397184&a)){var l,d,p=c.Oi;0!=(33554432&a)?(d=c.Si,l=t):0!=(16777216&a)?(d=c.Ti,l=n,c.wn()):(p=c.Bi,d=new w("late cancellation observer"),c.Xt(d),l=n),v.invoke(p,c,{handler:null===h?l:"function"==typeof l&&f.domainBind(h,l),promise:s,receiver:r,value:d})}else c.Li(t,n,s,r,h);return s},O.prototype.Mt=function(){return 65535&this.ut},O.prototype.Di=function(){return 0!=(117506048&this.ut)},O.prototype.St=function(){return 67108864==(67108864&this.ut)},O.prototype.xi=function(t){this.ut=-65536&this.ut|65535&t},O.prototype.Pi=function(){this.ut=33554432|this.ut,this.En("promiseFulfilled",this)},O.prototype.Mi=function(){this.ut=16777216|this.ut,this.En("promiseRejected",this)},O.prototype.Fi=function(){this.ut=67108864|this.ut,this.En("promiseResolved",this)},O.prototype.Ni=function(){this.ut=4194304|this.ut},O.prototype.Ui=function(){return(4194304&this.ut)>0},O.prototype.Hi=function(){this.ut=-65537&this.ut},O.prototype.Lt=function(){this.ut=65536|this.ut,this.En("promiseCancelled",this)},O.prototype.Nt=function(){this.ut=8388608|this.ut},O.prototype.Ci=function(){v.hasCustomScheduler()||(this.ut=134217728|this.ut)},O.prototype.Vi=function(t){var n=0===t?this.Ii:this[4*t-4+3];if(n!==s)return void 0===n&&this.yt()?this.ft():n},O.prototype.Xi=function(t){return this[4*t-4+2]},O.prototype.zi=function(t){return this[4*t-4+0]},O.prototype.qi=function(t){return this[4*t-4+1]},O.prototype.ft=function(){},O.prototype.Gi=function(t){t.ut;var n=t.Ti,i=t.Si,r=t.Ei,e=t.Vi(0);void 0===e&&(e=s),this.Li(n,i,r,e,null)},O.prototype.Wi=function(t,n){var i=t.zi(n),r=t.qi(n),e=t.Xi(n),u=t.Vi(n);void 0===u&&(u=s),this.Li(i,r,e,u,null)},O.prototype.Li=function(t,n,i,r,e){var u=this.Mt();if(u>=65531&&(u=0,this.xi(0)),0===u)this.Ei=i,this.Ii=r,"function"==typeof t&&(this.Ti=null===e?t:f.domainBind(e,t)),"function"==typeof n&&(this.Si=null===e?n:f.domainBind(e,n));else{var o=4*u-4;this[o+2]=i,this[o+3]=r,"function"==typeof t&&(this[o+0]=null===e?t:f.domainBind(e,t)),"function"==typeof n&&(this[o+1]=null===e?n:f.domainBind(e,n))}return this.xi(u+1),u},O.prototype.Kn=function(t,n){this.Li(void 0,void 0,n,t,null)},O.prototype.ot=function(t,n){if(0==(117506048&this.ut)){if(t===this)return this.Qn(i(),!1);var r=g(t,this);if(!(r instanceof O))return this.zn(t);n&&this.ct(r,2);var e=r.vt();if(e!==this){var u=e.ut;if(0==(50397184&u)){var o=this.Mt();o>0&&e.Gi(this);for(var s=1;s<o;++s)e.Wi(this,s);this.Fi(),this.xi(0),this.ji(e)}else if(0!=(33554432&u))this.zn(e.Zn());else if(0!=(16777216&u))this.J(e.Jn());else{var f=new w("late cancellation observer");e.Xt(f),this.J(f)}}else this.J(i())}},O.prototype.Qn=function(t,n,i){var r=f.ensureErrorObject(t),e=r===t;if(!e&&!i&&S.warnings()){var u="a promise was rejected with a non-error: "+f.classString(t);this.bt(u,!0)}this.Xt(r,!!n&&e),this.J(t)},O.prototype.Ri=function(t){if(t!==y){var n=this;this.yn(),this.jt();var i=!0,r=this.Sn(t,function(t){n.ot(t)},function(t){n.Qn(t,i)});i=!1,this.Yt(),void 0!==r&&n.Qn(r,!0)}},O.prototype.Yi=function(t,n,i,r){var e=r.ut;if(0==(65536&e)){var u;r.jt(),n===p?i&&"number"==typeof i.length?u=A(t).apply(this.ft(),i):(u=k).e=new d("cannot .spread() a non-array: "+f.classString(i)):u=A(t).call(n,i);var o=r.Yt();0==(65536&(e=r.ut))&&(u===b?r.J(i):u===k?r.Qn(u.e,!1):(S.checkForgottenReturns(u,o,"",r,this),r.ot(u)))}},O.prototype.vt=function(){for(var t=this;t.St();)t=t.Et();return t},O.prototype.Et=function(){return this.Si},O.prototype.ji=function(t){this.Si=t},O.prototype.Qi=function(t,n,i,e){var o=t instanceof O,s=this.ut,f=0!=(134217728&s);0!=(65536&s)?(o&&t.qt(),i instanceof I&&i.isFinallyHandler()?(i.cancelPromise=t,A(n).call(i,e)===k&&t.J(k.e)):n===r?t.zn(r.call(i)):i instanceof u?i.qn(t):o||t instanceof m?t.Bt():i.cancel()):"function"==typeof n?o?(f&&t.Ci(),this.Yi(n,i,e,t)):n.call(i,e,t):i instanceof u?i.Vn()||(0!=(33554432&s)?i.Wn(e,t):i.jn(e,t)):o&&(f&&t.Ci(),0!=(33554432&s)?t.zn(e):t.J(e))},O.prototype.Bi=function(t){var n=t.handler,i=t.promise,r=t.receiver,e=t.value;"function"==typeof n?i instanceof O?this.Yi(n,r,e,i):n.call(r,e,i):i instanceof O&&i.J(e)},O.prototype.Oi=function(t){this.Qi(t.promise,t.handler,t.receiver,t.value)},O.prototype.Ki=function(t,n,i){var r=this.Ei,e=this.Vi(0);this.Ei=void 0,this.Ii=void 0,this.Qi(r,t,e,n)},O.prototype.Zi=function(t){var n=4*t-4;this[n+2]=this[n+3]=this[n+0]=this[n+1]=void 0},O.prototype.zn=function(t){var n=this.ut;if(!((117506048&n)>>>16)){if(t===this){var r=i();return this.Xt(r),this.J(r)}this.Pi(),this.Si=t,(65535&n)>0&&(0!=(134217728&n)?this.K():v.settlePromises(this),this.pn())}},O.prototype.J=function(t){var n=this.ut;if(!((117506048&n)>>>16)){if(this.Mi(),this.Ti=t,this.Ui())return v.fatalError(t,f.isNode);(65535&n)>0?v.settlePromises(this):this.Zt()}},O.prototype.Ji=function(t,n){for(var i=1;i<t;i++){var r=this.zi(i),e=this.Xi(i),u=this.Vi(i);this.Zi(i),this.Qi(e,r,u,n)}},O.prototype.$i=function(t,n){for(var i=1;i<t;i++){var r=this.qi(i),e=this.Xi(i),u=this.Vi(i);this.Zi(i),this.Qi(e,r,u,n)}},O.prototype.K=function(){var t=this.ut,n=65535&t;if(n>0){if(0!=(16842752&t)){var i=this.Ti;this.Ki(this.Si,i,t),this.$i(n,i)}else{var r=this.Si;this.Ki(this.Ti,r,t),this.Ji(n,r)}this.xi(0)}this.Tn()},O.prototype.fn=function(){var t=this.ut;return 0!=(33554432&t)?this.Si:0!=(16777216&t)?this.Ti:void 0},"undefined"!=typeof Symbol&&Symbol.toStringTag&&c.defineProperty(O.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),O.defer=O.pending=function(){S.deprecated("Promise.defer","new Promise");var t=new O(y);return{promise:t,resolve:N,reject:D}},f.notEnumerableProp(O,"ir",i),t("./method")(O,y,g,e,S),t("./bind")(O,y,g,S),t("./cancel")(O,m,e,S),t("./direct_resolve")(O),t("./synchronous_inspection")(O),t("./join")(O,m,g,y,v,o),O.Promise=O,O.version="3.5.5",t("./call_get.js")(O),t("./generators.js")(O,e,y,g,u,S),t("./map.js")(O,m,e,g,y,S),t("./nodeify.js")(O),t("./promisify.js")(O,y),t("./props.js")(O,m,g,e),t("./race.js")(O,y,g,e),t("./reduce.js")(O,m,e,g,y,S),t("./settle.js")(O,m,S),t("./some.js")(O,m,e),t("./timers.js")(O,y,S),t("./using.js")(O,e,g,E,y,S),t("./any.js")(O),t("./each.js")(O,y),t("./filter.js")(O,y),f.toFastProperties(O),f.toFastProperties(O.prototype),C({a:1}),C({b:2}),C({c:3}),C(1),C(function(){}),C(void 0),C(!1),C(new O(y)),S.setBounds(a.firstLineError,f.lastLineError),O}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(t,n,i){n.exports=function(n,i,r,e,u){var o=t("./util");function s(t){var r=this.On=new n(i);t instanceof n&&r.ct(t,3),r._t(this),this.ci=t,this.Mt=0,this._i=0,this._init(void 0,-2)}return o.isArray,o.inherits(s,u),s.prototype.length=function(){return this.Mt},s.prototype.promise=function(){return this.On},s.prototype._init=function t(i,u){var s=r(this.ci,this.On);if(s instanceof n){var f=(s=s.vt()).ut;if(this.ci=s,0==(50397184&f))return this.On.Ci(),s.nt(t,this.J,void 0,this,u);if(0==(33554432&f))return 0!=(16777216&f)?this.J(s.Jn()):this.Bt();s=s.Zn()}if(null!==(s=o.asArray(s)))0!==s.length?this.rr(s):-5===u?this.dr():this.wi(function(t){switch(t){case-2:return[];case-3:return{};case-6:return new Map}}(u));else{var c=e("expecting an array or an iterable object but got "+o.classString(s)).reason();this.On.Qn(c,!1)}},s.prototype.rr=function(t){var i=this.getActualLength(t.length);this.Mt=i,this.ci=this.shouldCopyValues()?new Array(i):this.ci;for(var e=this.On,u=!1,o=null,s=0;s<i;++s){var f=r(t[s],e);f instanceof n?(f=f.vt(),o=f.ut):o=null,u?null!==o&&f.suppressUnhandledRejections():null!==o?0==(50397184&o)?(f.Kn(this,s),this.ci[s]=f):u=0!=(33554432&o)?this.Wn(f.Zn(),s):0!=(16777216&o)?this.jn(f.Jn(),s):this.qn(s):u=this.Wn(f,s)}u||e.Ci()},s.prototype.Vn=function(){return null===this.ci},s.prototype.wi=function(t){this.ci=null,this.On.zn(t)},s.prototype.Bt=function(){!this.Vn()&&this.On.At()&&(this.ci=null,this.On.Bt())},s.prototype.J=function(t){this.ci=null,this.On.Qn(t,!1)},s.prototype.Wn=function(t,n){this.ci[n]=t;var i=++this._i;return i>=this.Mt&&(this.wi(this.ci),!0)},s.prototype.qn=function(){return this.Bt(),!0},s.prototype.jn=function(t){return this._i++,this.J(t),!0},s.prototype._resultCancelled=function(){if(!this.Vn()){var t=this.ci;if(this.Bt(),t instanceof n)t.cancel();else for(var i=0;i<t.length;++i)t[i]instanceof n&&t[i].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(t){return t},s}},{"./util":36}],24:[function(t,n,i){n.exports=function(n,i){var r={},e=t("./util"),u=t("./nodeback"),o=e.withAppended,s=e.maybeWrapAsError,f=e.canEvaluate,c=t("./errors").TypeError,a={_r:!0},v=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","_r"].join("|")+")$"),l=function(t){return e.isIdentifier(t)&&"_"!==t.charAt(0)&&"constructor"!==t};function d(t){return!v.test(t)}function w(t){try{return!0===t._r}catch(t){return!1}}function y(t,n,i){var r=e.getDataPropertyOrDefault(t,n+i,a);return!!r&&w(r)}function p(t,n,i,r){for(var u=e.inheritedDataKeys(t),o=[],s=0;s<u.length;++s){var f=u[s],a=t[f],h=r===l||l(f);"function"!=typeof a||w(a)||y(t,f,n)||!r(f,a,t,h)||o.push(f,a)}return function(t,n,i){for(var r=0;r<t.length;r+=2){var e=t[r];if(i.test(e))for(var u=e.replace(i,""),o=0;o<t.length;o+=2)if(t[o]===u)throw new c("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",n))}}(o,n,i),o}var b=function(t){return t.replace(/([$])/,"\\$")},g=f?void 0:function(t,f,c,a,h,v){var l=function(){return this}(),d=t;function w(){var e=f;f===r&&(e=this);var c=new n(i);c.yn();var a="string"==typeof d&&this!==l?this[d]:t,h=u(c,v);try{a.apply(e,o(arguments,h))}catch(t){c.Qn(s(t),!0,!0)}return c.Di()||c.Ci(),c}return"string"==typeof d&&(t=a),e.notEnumerableProp(w,"_r",!0),w};function m(t,n,i,u,o){for(var s=new RegExp(b(n)+"$"),f=p(t,n,s,i),c=0,a=f.length;c<a;c+=2){var h=f[c],v=f[c+1],l=h+n;if(u===g)t[l]=g(h,r,h,v,n,o);else{var d=u(v,function(){return g(h,r,h,v,n,o)});e.notEnumerableProp(d,"_r",!0),t[l]=d}}return e.toFastProperties(t),t}n.promisify=function(t,n){if("function"!=typeof t)throw new c("expecting a function but got "+e.classString(t));if(w(t))return t;var i=void 0===(n=h(n)).context?r:n.context,u=!!n.multiArgs,o=function(t,n,i){return g(t,n,void 0,t,null,i)}(t,i,u);return e.copyDescriptors(t,o,d),o},n.promisifyAll=function(t,n){if("function"!=typeof t&&"object"!=typeof t)throw new c("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var i=!!(n=h(n)).multiArgs,r=n.suffix;"string"!=typeof r&&(r="Async");var u=n.filter;"function"!=typeof u&&(u=l);var o=n.promisifier;if("function"!=typeof o&&(o=g),!e.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var s=e.inheritedDataKeys(t),f=0;f<s.length;++f){var a=t[s[f]];"constructor"!==s[f]&&e.isClass(a)&&(m(a.prototype,r,u,o,i),m(a,r,u,o,i))}return m(t,r,u,o,i)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(t,n,i){n.exports=function(n,i,r,e){var u,o=t("./util"),s=o.isObject,f=t("./es5");"function"==typeof Map&&(u=Map);var c=function(){var t=0,n=0;function i(i,r){this[t]=i,this[t+n]=r,t++}return function(r){n=r.size,t=0;var e=new Array(2*r.size);return r.forEach(i,e),e}}();function a(t){var n,i=!1;if(void 0!==u&&t instanceof u)n=c(t),i=!0;else{var r=f.keys(t),e=r.length;n=new Array(2*e);for(var o=0;o<e;++o){var s=r[o];n[o]=t[s],n[o+e]=s}}this.constructor$(n),this.gr=i,this._init$(void 0,i?-6:-3)}function h(t){var i,u=r(t);return s(u)?(i=u instanceof n?u.nt(n.props,void 0,void 0,void 0,void 0):new a(u).promise(),u instanceof n&&i.ct(u,2),i):e("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}o.inherits(a,i),a.prototype._init=function(){},a.prototype.Wn=function(t,n){this.ci[n]=t;var i=++this._i;if(i>=this.Mt){var r;if(this.gr)r=function(t){for(var n=new u,i=t.length/2|0,r=0;r<i;++r){var e=t[i+r],o=t[r];n.set(e,o)}return n}(this.ci);else{r={};for(var e=this.length(),o=0,s=this.length();o<s;++o)r[this.ci[o+e]]=this.ci[o]}return this.wi(r),!0}return!1},a.prototype.shouldCopyValues=function(){return!1},a.prototype.getActualLength=function(t){return t>>1},n.prototype.props=function(){return h(this)},n.props=function(t){return h(t)}}},{"./es5":13,"./util":36}],26:[function(t,n,i){function r(t){this.wr=t,this.Mt=0,this.yr=0}r.prototype.pr=function(t){return this.wr<t},r.prototype.Y=function(t){var n=this.length();this.Ar(n+1);var i=this.yr+n&this.wr-1;this[i]=t,this.Mt=n+1},r.prototype.push=function(t,n,i){var r=this.length()+3;if(this.pr(r))return this.Y(t),this.Y(n),void this.Y(i);var e=this.yr+r-3;this.Ar(r);var u=this.wr-1;this[e+0&u]=t,this[e+1&u]=n,this[e+2&u]=i,this.Mt=r},r.prototype.shift=function(){var t=this.yr,n=this[t];return this[t]=void 0,this.yr=t+1&this.wr-1,this.Mt--,n},r.prototype.length=function(){return this.Mt},r.prototype.Ar=function(t){this.wr<t&&this.Tr(this.wr<<1)},r.prototype.Tr=function(t){var n=this.wr;this.wr=t;var i=this.yr,r=this.Mt,e=i+r&n-1;!function(t,n,i,r,e){for(var u=0;u<e;++u)i[u+r]=t[u+n],t[u+n]=void 0}(this,0,this,n,e)},n.exports=r},{}],27:[function(t,n,i){n.exports=function(n,i,r,e){var u=t("./util"),o=function(t){return t.then(function(n){return s(n,t)})};function s(t,s){var f=r(t);if(f instanceof n)return o(f);if(null===(t=u.asArray(t)))return e("expecting an array or an iterable object but got "+u.classString(t));var c=new n(i);void 0!==s&&c.ct(s,3);for(var a=c.zn,h=c.J,v=0,l=t.length;v<l;++v){var d=t[v];(void 0!==d||v in t)&&n.cast(d).nt(a,h,void 0,c,null)}return c}n.race=function(t){return s(t,void 0)},n.prototype.race=function(){return s(this,void 0)}}},{"./util":36}],28:[function(t,n,i){n.exports=function(n,i,r,e,u,o){var s=n.Kt,f=t("./util"),c=f.tryCatch;function a(t,i,r,e){this.constructor$(t);var o=s();this._fn=null===o?i:f.domainBind(o,i),void 0!==r&&(r=n.resolve(r)).An(this),this.Er=r,this.Ir=null,this.Rr=e===u?Array(this.Mt):0===e?null:void 0,this.On.yn(),this._init$(void 0,-5)}function h(t,n){this.isFulfilled()?n.wi(t):n.J(t)}function v(t,n,i,e){if("function"!=typeof n)return r("expecting a function but got "+f.classString(n));var u=new a(t,n,i,e);return u.promise()}function l(t){this.accum=t,this.array.Nr(t);var i=e(this.value,this.array.On);return i instanceof n?(this.array.Ir=i,i.nt(d,void 0,void 0,this,void 0)):d.call(this,i)}function d(t){var i,r=this.array,e=r.On,u=c(r._fn);e.jt(),(i=void 0!==r.Rr?u.call(e.ft(),t,this.index,this.length):u.call(e.ft(),this.accum,t,this.index,this.length))instanceof n&&(r.Ir=i);var s=e.Yt();return o.checkForgottenReturns(i,s,void 0!==r.Rr?"Promise.each":"Promise.reduce",e),i}f.inherits(a,i),a.prototype.Nr=function(t){void 0!==this.Rr&&null!==this.Rr&&t!==u&&this.Rr.push(t)},a.prototype.Dr=function(t){return null!==this.Rr&&this.Rr.push(t),this.Rr},a.prototype._init=function(){},a.prototype.dr=function(){this.wi(void 0!==this.Rr?this.Rr:this.Er)},a.prototype.shouldCopyValues=function(){return!1},a.prototype.wi=function(t){this.On.ot(t),this.ci=null},a.prototype._resultCancelled=function(t){if(t===this.Er)return this.Bt();this.Vn()||(this._resultCancelled$(),this.Ir instanceof n&&this.Ir.cancel(),this.Er instanceof n&&this.Er.cancel())},a.prototype.rr=function(t){var i,r;this.ci=t;var e=t.length;if(void 0!==this.Er?(i=this.Er,r=0):(i=n.resolve(t[0]),r=1),this.Ir=i,!i.isRejected())for(;r<e;++r){var u={accum:null,value:t[r],index:r,length:e,array:this};i=i.nt(l,void 0,void 0,u,void 0)}void 0!==this.Rr&&(i=i.nt(this.Dr,void 0,void 0,this,void 0)),i.nt(h,h,void 0,i,this)},n.prototype.reduce=function(t,n){return v(this,t,n,null)},n.reduce=function(t,n,i,r){return v(t,n,i,r)}}},{"./util":36}],29:[function(t,n,e){var o,s,f,a,h,v=t("./util"),l=v.getNativePromise();if(v.isNode&&"undefined"==typeof MutationObserver){var d=b.setImmediate,w=process.nextTick;o=v.isRecentNode?function(t){d.call(b,t)}:function(t){w.call(process,t)}}else if("function"==typeof l&&"function"==typeof l.resolve){var y=l.resolve();o=function(t){y.then(t)}}else o="undefined"!=typeof MutationObserver&&(void 0===i||!i.navigator||!i.navigator.standalone&&!i.cordova)&&"classList"in r.documentElement?(s=r.createElement("div"),f={attributes:!0},a=!1,h=r.createElement("div"),new MutationObserver(function(){s.classList.toggle("foo"),a=!1}).observe(h,f),function(t){var n=new MutationObserver(function(){n.disconnect(),t()});n.observe(s,f),a||(a=!0,h.classList.toggle("foo"))}):"undefined"!=typeof setImmediate?function(t){setImmediate(t)}:void 0!==u?function(t){u(t,0)}:function(){throw new c("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};n.exports=o},{"./util":36}],30:[function(t,n,i){n.exports=function(n,i,r){var e=n.PromiseInspection,u=t("./util");function o(t){this.constructor$(t)}u.inherits(o,i),o.prototype.Cr=function(t,n){this.ci[t]=n;var i=++this._i;return i>=this.Mt&&(this.wi(this.ci),!0)},o.prototype.Wn=function(t,n){var i=new e;return i.ut=33554432,i.Pr=t,this.Cr(n,i)},o.prototype.jn=function(t,n){var i=new e;return i.ut=16777216,i.Pr=t,this.Cr(n,i)},n.settle=function(t){return r.deprecated(".settle()",".reflect()"),new o(t).promise()},n.prototype.settle=function(){return n.settle(this)}}},{"./util":36}],31:[function(t,n,i){n.exports=function(n,i,r){var e=t("./util"),u=t("./errors").RangeError,o=t("./errors").AggregateError,s=e.isArray,f={};function c(t){this.constructor$(t),this.Or=0,this.Br=!1,this.Lr=!1}function a(t,n){if((0|n)!==n||n<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var i=new c(t),e=i.promise();return i.setHowMany(n),i.init(),e}e.inherits(c,i),c.prototype._init=function(){if(this.Lr)if(0!==this.Or){this._init$(void 0,-5);var t=s(this.ci);!this.Vn()&&t&&this.Or>this.xr()&&this.J(this.Mr(this.length()))}else this.wi([])},c.prototype.init=function(){this.Lr=!0,this._init()},c.prototype.setUnwrap=function(){this.Br=!0},c.prototype.howMany=function(){return this.Or},c.prototype.setHowMany=function(t){this.Or=t},c.prototype.Wn=function(t){return this.Fr(t),this.Ur()===this.howMany()&&(this.ci.length=this.howMany(),1===this.howMany()&&this.Br?this.wi(this.ci[0]):this.wi(this.ci),!0)},c.prototype.jn=function(t){return this.Hr(t),this.Vr()},c.prototype.qn=function(){return this.ci instanceof n||null==this.ci?this.Bt():(this.Hr(f),this.Vr())},c.prototype.Vr=function(){if(this.howMany()>this.xr()){for(var t=new o,n=this.length();n<this.ci.length;++n)this.ci[n]!==f&&t.push(this.ci[n]);return t.length>0?this.J(t):this.Bt(),!0}return!1},c.prototype.Ur=function(){return this._i},c.prototype.Xr=function(){return this.ci.length-this.length()},c.prototype.Hr=function(t){this.ci.push(t)},c.prototype.Fr=function(t){this.ci[this._i++]=t},c.prototype.xr=function(){return this.length()-this.Xr()},c.prototype.Mr=function(t){var n="Input array must contain at least "+this.Or+" items but contains only "+t+" items";return new u(n)},c.prototype.dr=function(){this.J(this.Mr(0))},n.some=function(t,n){return a(t,n)},n.prototype.some=function(t){return a(this,t)},n.l=c}},{"./errors":12,"./util":36}],32:[function(t,n,i){n.exports=function(t){function n(t){void 0!==t?(t=t.vt(),this.ut=t.ut,this.Pr=t.Di()?t.fn():void 0):(this.ut=0,this.Pr=void 0)}n.prototype.fn=function(){return this.Pr};var i=n.prototype.value=function(){if(!this.isFulfilled())throw new a("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this.fn()},r=n.prototype.error=n.prototype.reason=function(){if(!this.isRejected())throw new a("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this.fn()},e=n.prototype.isFulfilled=function(){return 0!=(33554432&this.ut)},u=n.prototype.isRejected=function(){return 0!=(16777216&this.ut)},o=n.prototype.isPending=function(){return 0==(50397184&this.ut)},s=n.prototype.isResolved=function(){return 0!=(50331648&this.ut)};n.prototype.isCancelled=function(){return 0!=(8454144&this.ut)},t.prototype.zr=function(){return 65536==(65536&this.ut)},t.prototype.Ht=function(){return this.vt().zr()},t.prototype.isCancelled=function(){return 0!=(8454144&this.vt().ut)},t.prototype.isPending=function(){return o.call(this.vt())},t.prototype.isRejected=function(){return u.call(this.vt())},t.prototype.isFulfilled=function(){return e.call(this.vt())},t.prototype.isResolved=function(){return s.call(this.vt())},t.prototype.value=function(){return i.call(this.vt())},t.prototype.reason=function(){var t=this.vt();return t.wn(),r.call(t)},t.prototype.Zn=function(){return this.fn()},t.prototype.Jn=function(){return this.wn(),this.fn()},t.PromiseInspection=n}},{}],33:[function(t,n,i){n.exports=function(n,i){var r=t("./util"),e=r.errorObj,u=r.isObject,o={}.hasOwnProperty;return function(t,s){if(u(t)){if(t instanceof n)return t;var f=function(t){try{return function(t){return t.then}(t)}catch(t){return e.e=t,e}}(t);if(f===e){s&&s.jt();var c=n.reject(f.e);return s&&s.Yt(),c}if("function"==typeof f){if(function(t){try{return o.call(t,"Ei")}catch(t){return!1}}(t)){var c=new n(i);return t.nt(c.zn,c.J,void 0,c,null),c}return function(t,u,o){var s=new n(i),f=s;o&&o.jt(),s.yn(),o&&o.Yt();var c=!0,a=r.tryCatch(u).call(t,function(t){s&&(s.ot(t),s=null)},function(t){s&&(s.Qn(t,c,!0),s=null)});return c=!1,s&&a===e&&(s.Qn(a.e,!0,!0),s=null),f}(t,f,s)}}return t}}},{"./util":36}],34:[function(t,n,i){n.exports=function(n,i,r){var e=t("./util"),s=n.TimeoutError;function f(t){this.handle=t}f.prototype._resultCancelled=function(){o(this.handle)};var a=function(t){return h(+this).thenReturn(t)},h=n.delay=function(t,e){var o,s;return void 0!==e?(o=n.resolve(e).nt(a,null,null,t,void 0),r.cancellation()&&e instanceof n&&o._t(e)):(o=new n(i),s=u(function(){o.zn()},+t),r.cancellation()&&o._t(new f(s)),o.yn()),o.Ci(),o};function v(t){return o(this.handle),t}function l(t){throw o(this.handle),t}n.prototype.delay=function(t){return h(t,this)},n.prototype.timeout=function(t,n){var i,o,a=new f(u(function(){i.isPending()&&function(t,n,i){var r;r="string"!=typeof n?n instanceof c?n:new s("operation timed out"):new s(n),e.markAsOriginatingFromRejection(r),t.Xt(r),t.J(r),null!=i&&i.cancel()}(i,n,o)},t=+t));return r.cancellation()?(o=this.then(),(i=o.nt(v,l,void 0,a,void 0))._t(a)):i=this.nt(v,l,void 0,a,void 0),i}}},{"./util":36}],35:[function(t,n,i){n.exports=function(n,i,r,e,o,s){var f=t("./util"),c=t("./errors").TypeError,a=t("./util").inherits,h=f.errorObj,v=f.tryCatch,l={};function d(t){u(function(){throw t},0)}function w(t,i){var e=0,u=t.length,s=new n(o);return function o(){if(e>=u)return s.zn();var f=function(t){var n=r(t);return n!==t&&"function"==typeof t.qr&&"function"==typeof t.Gr&&t.qr()&&n.Wr(t.Gr()),n}(t[e++]);if(f instanceof n&&f.qr()){try{f=r(f.Gr().tryDispose(i),t.promise)}catch(t){return d(t)}if(f instanceof n)return f.nt(o,d,null,null,null)}o()}(),s}function y(t,n,i){this.jr=t,this.On=n,this.Yr=i}function p(t,n,i){this.constructor$(t,n,i)}function b(t){return y.isDisposer(t)?(this.resources[this.index].Wr(t),t.promise()):t}function g(t){this.length=t,this.promise=null,this[t-1]=null}y.prototype.data=function(){return this.jr},y.prototype.promise=function(){return this.On},y.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():l},y.prototype.tryDispose=function(t){var n=this.resource(),i=this.Yr;void 0!==i&&i.jt();var r=n!==l?this.doDispose(n,t):null;return void 0!==i&&i.Yt(),this.On.Qr(),this.jr=null,r},y.isDisposer=function(t){return null!=t&&"function"==typeof t.resource&&"function"==typeof t.tryDispose},a(p,y),p.prototype.doDispose=function(t,n){var i=this.data();return i.call(t,t,n)},g.prototype._resultCancelled=function(){for(var t=this.length,i=0;i<t;++i){var r=this[i];r instanceof n&&r.cancel()}},n.using=function(){var t=arguments.length;if(t<2)return i("you must pass at least 2 arguments to Promise.using");var e,u=arguments[t-1];if("function"!=typeof u)return i("expecting a function but got "+f.classString(u));var o=!0;2===t&&Array.isArray(arguments[0])?(e=arguments[0],t=e.length,o=!1):(e=arguments,t--);for(var c=new g(t),a=0;a<t;++a){var l=e[a];if(y.isDisposer(l)){var d=l;(l=l.promise()).Wr(d)}else{var p=r(l);p instanceof n&&(l=p.nt(b,null,null,{resources:c,index:a},void 0))}c[a]=l}for(var m=new Array(c.length),a=0;a<m.length;++a)m[a]=n.resolve(c[a]).reflect();var _=n.all(m).then(function(t){for(var n=0;n<t.length;++n){var i=t[n];if(i.isRejected())return h.e=i.error(),h;if(!i.isFulfilled())return void _.cancel();t[n]=i.value()}E.jt(),u=v(u);var r=o?u.apply(void 0,t):u(t),e=E.Yt();return s.checkForgottenReturns(r,e,"Promise.using",E),r}),E=_.lastly(function(){var t=new n.PromiseInspection(_);return w(c,t)});return c.promise=E,E._t(c),E},n.prototype.Wr=function(t){this.ut=131072|this.ut,this.Kr=t},n.prototype.qr=function(){return(131072&this.ut)>0},n.prototype.Gr=function(){return this.Kr},n.prototype.Qr=function(){this.ut=-131073&this.ut,this.Kr=void 0},n.prototype.disposer=function(t){if("function"==typeof t)return new p(t,this,e());throw new c}}},{"./errors":12,"./util":36}],36:[function(n,r,u){var o,s=n("./es5"),f=void 0===e,a={e:{}},v=void 0!==t?t:void 0!==i?i:void 0!==b?b:void 0!==this?this:null;function l(){try{var t=o;return o=null,t.apply(this,arguments)}catch(t){return a.e=t,a}}function d(t){return null==t||!0===t||!1===t||"string"==typeof t||"number"==typeof t}function w(t,n,i){if(d(t))return t;var r={value:i,configurable:!0,enumerable:!1,writable:!0};return s.defineProperty(t,n,r),t}var y=function(){var t=[Array.prototype,h.prototype,Function.prototype],n=function(n){for(var i=0;i<t.length;++i)if(t[i]===n)return!0;return!1};if(s.isES5){var i=h.getOwnPropertyNames;return function(t){for(var r=[],e=h.create(null);null!=t&&!n(t);){var u;try{u=i(t)}catch(t){return r}for(var o=0;o<u.length;++o){var f=u[o];if(!e[f]){e[f]=!0;var c=h.getOwnPropertyDescriptor(t,f);null!=c&&null==c.get&&null==c.set&&r.push(f)}}t=s.getPrototypeOf(t)}return r}}var r={}.hasOwnProperty;return function(i){if(n(i))return[];var e=[];t:for(var u in i)if(r.call(i,u))e.push(u);else{for(var o=0;o<t.length;++o)if(r.call(t[o],u))continue t;e.push(u)}return e}}(),p=/this\s*\.\s*\S+\s*=/,g=/^[a-z$_][a-z$_0-9]*$/i;function m(t){try{return t+""}catch(t){return"[no string representation]"}}function _(t){return t instanceof c||null!==t&&"object"==typeof t&&"string"==typeof t.message&&"string"==typeof t.name}function E(t){return _(t)&&s.propertyIsWritable(t,"stack")}var S="stack"in new c?function(t){return E(t)?t:new c(m(t))}:function(t){if(E(t))return t;try{throw new c(m(t))}catch(t){return t}};function I(t){return{}.toString.call(t)}var R=function(t){return s.isArray(t)?t:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var T="function"==typeof Array.from?function(t){return Array.from(t)}:function(t){for(var n,i=[],r=t[Symbol.iterator]();!(n=r.next()).done;)i.push(n.value);return i};R=function(t){return s.isArray(t)?t:null!=t&&"function"==typeof t[Symbol.iterator]?T(t):null}}var k,A="undefined"!=typeof process&&"[object process]"===I(process).toLowerCase(),O="undefined"!=typeof process&&void 0!==process.env,N={isClass:function(t){try{if("function"==typeof t){var n=s.names(t.prototype),i=s.isES5&&n.length>1,r=n.length>0&&!(1===n.length&&"constructor"===n[0]),e=p.test(t+"")&&s.names(t).length>0;if(i||r||e)return!0}return!1}catch(t){return!1}},isIdentifier:function(t){return g.test(t)},inheritedDataKeys:y,getDataPropertyOrDefault:function(t,n,i){if(!s.isES5)return{}.hasOwnProperty.call(t,n)?t[n]:void 0;var r=h.getOwnPropertyDescriptor(t,n);return null!=r?null==r.get&&null==r.set?r.value:i:void 0},thrower:function(t){throw t},isArray:s.isArray,asArray:R,notEnumerableProp:w,isPrimitive:d,isObject:function(t){return"function"==typeof t||"object"==typeof t&&null!==t},isError:_,canEvaluate:f,errorObj:a,tryCatch:function(t){return o=t,l},inherits:function(t,n){var i={}.hasOwnProperty;function r(){for(var r in this.constructor=t,this.constructor$=n,n.prototype)i.call(n.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=n.prototype[r])}return r.prototype=n.prototype,t.prototype=new r,t.prototype},withAppended:function(t,n){var i,r=t.length,e=new Array(r+1);for(i=0;i<r;++i)e[i]=t[i];return e[i]=n,e},maybeWrapAsError:function(t){return d(t)?new c(m(t)):t},toFastProperties:function(t){return t},filledRange:function(t,n,i){for(var r=new Array(t),e=0;e<t;++e)r[e]=n+e+i;return r},toString:m,canAttachTrace:E,ensureErrorObject:S,originatesFromRejection:function(t){return null!=t&&(t instanceof c.Dn.OperationalError||!0===t.isOperational)},markAsOriginatingFromRejection:function(t){try{w(t,"isOperational",!0)}catch(t){}},classString:I,copyDescriptors:function(t,n,i){for(var r=s.names(t),e=0;e<r.length;++e){var u=r[e];if(i(u))try{s.defineProperty(n,u,s.getDescriptor(t,u))}catch(t){}}},hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:A,hasEnvVariables:O,env:function(t){return O?process.env[t]:void 0},global:v,getNativePromise:function(){if("function"==typeof Promise)try{var t=new Promise(function(){});if("[object Promise]"==={}.toString.call(t))return Promise}catch(t){}},domainBind:function(t,n){return t.bind(n)}};N.isRecentNode=N.isNode&&(process.versions&&process.versions.node?k=process.versions.node.split(".").map(Number):process.version&&(k=process.version.split(".").map(Number)),0===k[0]&&k[1]>10||k[0]>0),N.isNode&&N.toFastProperties(process);try{throw new c}catch(t){N.lastLineError=t}r.exports=N},{"./es5":13}]},{},[4])(4),null!=i?i.P=i.Promise:null!=t&&(t.P=t.Promise)});function S(t){m=t}var I={}.toString;var R=Array.isArray||function(t){return"[object Array]"===I.call(t)};function T(t){return"object"==typeof t&&null!==t}var k,A=9007199254740991,O=v.pow(2,-52);function N(t,n){for(var i=t,r=n;0!==r;){var e=i%r;i=r,r=e}return i<0?-i:i}!function(t){t[t.ya=0]="ya",t[t.Aa=1]="Aa",t[t.Ta=-1]="Ta"}(k||(k={}));var D=function(t,n){return function(t,n){if(t===n)return!0;var i=v.abs(t-n);return i<O||i<v.max(v.abs(t),v.abs(n))*O}(t,n)?k.ya:function(t,n){return t===n?k.ya:t<n?k.Ta:t>n?k.Aa:w(t)?w(n)?k.ya:k.Aa:k.Ta}(t,n)};function C(t,n,i){for(var r=0;r<t.length;r+=1){var e=t[r];if(n.call(i,e,r,t))return r}return-1}function x(t,n){var i=t.indexOf(n);return-1!==i&&(function(t,n){t.splice(n,1)}(t,i),!0)}function B(t,n){return-1!==t.indexOf(n)}function F(t){t.length=0}var P=function(){};function j(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=16*v.random()|0;return("x"===t?n:3&n|8).toString(16)})}var U,L="https://theo.proxy";function M(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),h.defineProperty(t,r.key,r)}}function q(t,n,i){return n&&M(t.prototype,n),i&&M(t,i),t}function W(){var t=h.create(null);return t.__=void 0,delete t.__,t}function X(){return new G}!function(t){t.l_="audio",t.__="video",t.mT="metadata"}(U||(U={}));var H,V,G=("undefined"!=typeof Map&&"entries"in Map.prototype?Map:void 0)||(H=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=h.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=W(),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=W(),this.size=0},n.keys=function(){return new H(this.data,function(t,n){return n})},n.values=function(){return new H(this.data,function(t,n){return t[n]})},n.entries=function(){return new H(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.e_="#EXTINF",t.eAt="#EXT-X-MAP",t.uB="#EXTM3U",t.i="#EXT-X-VERSION",t.u="#EXT-X-TARGETDURATION",t.w9="#EXT-X-START",t.o="#EXT-X-INDEPENDENT-SEGMENTS",t.rd="#EXT-X-STREAM-INF",t.s="#EXT-X-MEDIA-SEQUENCE",t.h="#EXT-X-ENDLIST",t.oB="#EXT-X-MEDIA",t.v="#EXT-X-DISCONTINUITY",t.p="#EXT-X-DISCONTINUITY-SEQUENCE",t.m="#EXT-X-PLAYLIST-TYPE"}(V||(V={}));var z,Y=function(){function t(t,n){this.Kh=V.e_,this.S=void 0,this.I=void 0,this.S=t,this.I=n}return t.prototype.zR=function(){return this.Kh+":"+this.S+",\n"+this.I},t}(),K=function(){function t(){this.Kh=V.uB}return t.prototype.zR=function(){return this.Kh},t}(),$=function(){function t(t){this.Kh=V.i,this.jT=void 0,this.jT=t}return t.prototype.zR=function(){return this.Kh+":"+this.jT},t}(),J=function(){function t(t){this.Kh=V.u,this.sTt=void 0,this.sTt=t}return t.prototype.zR=function(){return this.Kh+":"+this.sTt},t}(),Z=function(){function t(t){this.Kh=V.w9,this.$St=void 0,this.$St=t}return t.prototype.zR=function(){return this.Kh+":TIME-OFFSET="+this.$St},t}(),Q=function(){function t(){this.Kh=V.o}return t.prototype.zR=function(){return this.Kh},t}(),tt=function(){function t(t){this.Kh=V.rd,this.KN=1,this.I=void 0,this.I=t}return t.prototype.zR=function(){return this.Kh+":BANDWIDTH="+this.KN+',AUDIO="audio"\n'+this.I},t}(),nt=function(){function t(t){this.Kh=V.s,this.PE=void 0,this.PE=t}return t.prototype.zR=function(){return this.Kh+":"+this.PE},t}(),it=function(){function t(){this.Kh=V.v}return t.prototype.zR=function(){return this.Kh},t}(),rt=function(){function t(t){this.Kh=V.p,this.PE=void 0,this.PE=t}return t.prototype.zR=function(){return this.Kh+":"+this.PE},t}();!function(t){t.hAt="VOD",t.lPt="EVENT"}(z||(z={}));var et=function(){function t(t){this.Kh=V.oB,this.I=void 0,this.I=t}return t.prototype.zR=function(){var t=X();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.I+'"');var n=[];return t.forEach(function(t,i){return n.push(i+"="+t)}),this.Kh+":"+n.join(",")},t}(),ut=function(){function t(t){this.DV=[],this.DV=t}return t.prototype.T=function(){for(var t="",n=0,i=this.DV;n<i.length;n++){t+=i[n].zR()+"\n"}return t},q(t,[{key:"FS",get:function(){return this.DV}}]),t}(),ot=function(){function t(){this.DV=[];for(var t=[new K,new $(8)],n=0;n<t.length;n++){var i=t[n];this.k(i)}}var n=t.prototype;return n.k=function(t){this.DV.push(t)},n.Da=function(){this.DV.length=0},q(t,[{key:"FS",get:function(){return new ut(this.DV)}}]),t}();function st(t,n){return(st=h.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function ft(t,n){t.prototype=h.create(n.prototype),t.prototype.constructor=t,st(t,n)}var ct=function(){function t(){}var n=t.prototype;return n.Yp=function(t){return this.Qp()*t},n.Kp=function(t){return this.Zp(t)>0},n.Jp=function(t){return this.Zp(t)>=0},n.$p=function(t,n){return this.eb(t).ib(n)},n.Fp=function(t){return 0===this.Zp(t)},n.sb=function(t){return this.Zp(t)<0},n.ib=function(t){return this.Zp(t)<=0},n.ub=function(){return this.ob()?this.hb():this},n.cb=function(t){return this.$k(t.hb())},n.eb=function(t){return this.cb(t).ub()},t}();function at(t,n){return t.fb()?n.fb()?k.ya:k.Aa:n.fb()?k.Ta:t.vb()?n.vb()&&t.ob()===n.ob()?k.ya:t.ob()?k.Ta:k.Aa:n.ob()?k.Aa:k.Ta}var ht=lt,vt=null;try{vt=new WebAssembly.Instance(new WebAssembly.Module(new y([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 lt(t,n,i){this.low=0|t,this.high=0|n,this.unsigned=!!i}function dt(t){return!0===(t&&t.mu)}lt.prototype.mu,h.defineProperty(lt.prototype,"mu",{value:!0}),lt.isLong=dt;var wt={},yt={};function pt(t,n){var i,r,e;return n?(e=0<=(t>>>=0)&&t<256)&&(r=yt[t])?r:(i=gt(t,(0|t)<0?-1:0,!0),e&&(yt[t]=i),i):(e=-128<=(t|=0)&&t<128)&&(r=wt[t])?r:(i=gt(t,t<0?-1:0,!1),e&&(wt[t]=i),i)}function bt(t,n){if(w(t))return n?At:kt;if(n){if(t<0)return At;if(t>=It)return xt}else{if(t<=-Rt)return Bt;if(t+1>=Rt)return Ct}return t<0?bt(-t,n).neg():gt(t%St|0,t/St|0,n)}function gt(t,n,i){return new lt(t,n,i)}lt.fromInt=pt,lt.fromNumber=bt,lt.fromBits=gt;var mt=v.pow;function _t(t,n,i){if(0===t.length)throw c("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return kt;if("number"==typeof n?(i=n,n=!1):n=!!n,(i=i||10)<2||36<i)throw RangeError("radix");var r;if((r=t.indexOf("-"))>0)throw c("interior hyphen");if(0===r)return _t(t.substring(1),n,i).neg();for(var e=bt(mt(i,8)),u=kt,o=0;o<t.length;o+=8){var s=v.min(8,t.length-o),f=l(t.substring(o,o+s),i);if(s<8){var a=bt(mt(i,s));u=u.mul(a).add(bt(f))}else u=(u=u.mul(e)).add(bt(f))}return u.unsigned=n,u}function Et(t,n){return"number"==typeof t?bt(t,n):"string"==typeof t?_t(t,n):gt(t.low,t.high,"boolean"==typeof n?n:t.unsigned)}lt.fromString=_t,lt.fromValue=Et;var St=4294967296,It=St*St,Rt=It/2,Tt=pt(1<<24),kt=pt(0);lt.ZERO=kt;var At=pt(0,!0);lt.UZERO=At;var Ot=pt(1);lt.ONE=Ot;var Nt=pt(1,!0);lt.UONE=Nt;var Dt=pt(-1);lt.NEG_ONE=Dt;var Ct=gt(-1,2147483647,!1);lt.MAX_VALUE=Ct;var xt=gt(-1,-1,!0);lt.MAX_UNSIGNED_VALUE=xt;var Bt=gt(0,-2147483648,!1);lt.MIN_VALUE=Bt;var Ft=lt.prototype;Ft.toInt=function(){return this.unsigned?this.low>>>0:this.low},Ft.toNumber=function(){return this.unsigned?(this.high>>>0)*St+(this.low>>>0):this.high*St+(this.low>>>0)},Ft.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(Bt)){var n=bt(t),i=this.div(n),r=i.mul(n).sub(this);return i.toString(t)+r.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var e=bt(mt(t,6),this.unsigned),u=this,o="";;){var s=u.div(e),f=(u.sub(s.mul(e)).toInt()>>>0).toString(t);if((u=s).isZero())return f+o;for(;f.length<6;)f="0"+f;o=""+f+o}},Ft.getHighBits=function(){return this.high},Ft.getHighBitsUnsigned=function(){return this.high>>>0},Ft.getLowBits=function(){return this.low},Ft.getLowBitsUnsigned=function(){return this.low>>>0},Ft.getNumBitsAbs=function(){if(this.isNegative())return this.eq(Bt)?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},Ft.isZero=function(){return 0===this.high&&0===this.low},Ft.eqz=Ft.isZero,Ft.isNegative=function(){return!this.unsigned&&this.high<0},Ft.isPositive=function(){return this.unsigned||this.high>=0},Ft.isOdd=function(){return 1==(1&this.low)},Ft.isEven=function(){return 0==(1&this.low)},Ft.equals=function(t){return dt(t)||(t=Et(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},Ft.eq=Ft.equals,Ft.notEquals=function(t){return!this.eq(t)},Ft.neq=Ft.notEquals,Ft.ne=Ft.notEquals,Ft.lessThan=function(t){return this.comp(t)<0},Ft.lt=Ft.lessThan,Ft.lessThanOrEqual=function(t){return this.comp(t)<=0},Ft.lte=Ft.lessThanOrEqual,Ft.le=Ft.lessThanOrEqual,Ft.greaterThan=function(t){return this.comp(t)>0},Ft.gt=Ft.greaterThan,Ft.greaterThanOrEqual=function(t){return this.comp(t)>=0},Ft.gte=Ft.greaterThanOrEqual,Ft.ge=Ft.greaterThanOrEqual,Ft.compare=function(t){if(dt(t)||(t=Et(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},Ft.comp=Ft.compare,Ft.negate=function(){return!this.unsigned&&this.eq(Bt)?Bt:this.not().add(Ot)},Ft.neg=Ft.negate,Ft.add=function(t){dt(t)||(t=Et(t));var n=this.high>>>16,i=65535&this.high,r=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,s=t.low>>>16,f=0,c=0,a=0,h=0;return a+=(h+=e+(65535&t.low))>>>16,c+=(a+=r+s)>>>16,f+=(c+=i+o)>>>16,f+=n+u,gt((a&=65535)<<16|(h&=65535),(f&=65535)<<16|(c&=65535),this.unsigned)},Ft.subtract=function(t){return dt(t)||(t=Et(t)),this.add(t.neg())},Ft.sub=Ft.subtract,Ft.multiply=function(t){if(this.isZero())return kt;if(dt(t)||(t=Et(t)),vt)return gt(vt.mul(this.low,this.high,t.low,t.high),vt.get_high(),this.unsigned);if(t.isZero())return kt;if(this.eq(Bt))return t.isOdd()?Bt:kt;if(t.eq(Bt))return this.isOdd()?Bt:kt;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(Tt)&&t.lt(Tt))return bt(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,i=65535&this.high,r=this.low>>>16,e=65535&this.low,u=t.high>>>16,o=65535&t.high,s=t.low>>>16,f=65535&t.low,c=0,a=0,h=0,v=0;return h+=(v+=e*f)>>>16,a+=(h+=r*f)>>>16,h&=65535,a+=(h+=e*s)>>>16,c+=(a+=i*f)>>>16,a&=65535,c+=(a+=r*s)>>>16,a&=65535,c+=(a+=e*o)>>>16,c+=n*f+i*s+r*o+e*u,gt((h&=65535)<<16|(v&=65535),(c&=65535)<<16|(a&=65535),this.unsigned)},Ft.mul=Ft.multiply,Ft.divide=function(t){if(dt(t)||(t=Et(t)),t.isZero())throw c("division by zero");var n,i,r;if(vt)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?gt((this.unsigned?vt.div_u:vt.div_s)(this.low,this.high,t.low,t.high),vt.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?At:kt;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return At;if(t.gt(this.shru(1)))return Nt;r=At}else{if(this.eq(Bt))return t.eq(Ot)||t.eq(Dt)?Bt:t.eq(Bt)?Ot:(n=this.shr(1).div(t).shl(1)).eq(kt)?t.isNegative()?Ot:Dt:(i=this.sub(t.mul(n)),r=n.add(i.div(t)));if(t.eq(Bt))return this.unsigned?At:kt;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();r=kt}for(i=this;i.gte(t);){n=v.max(1,v.floor(i.toNumber()/t.toNumber()));for(var e=v.ceil(v.log(n)/v.LN2),u=e<=48?1:mt(2,e-48),o=bt(n),s=o.mul(t);s.isNegative()||s.gt(i);)s=(o=bt(n-=u,this.unsigned)).mul(t);o.isZero()&&(o=Ot),r=r.add(o),i=i.sub(s)}return r},Ft.div=Ft.divide,Ft.modulo=function(t){return dt(t)||(t=Et(t)),vt?gt((this.unsigned?vt.rem_u:vt.rem_s)(this.low,this.high,t.low,t.high),vt.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},Ft.mod=Ft.modulo,Ft.rem=Ft.modulo,Ft.not=function(){return gt(~this.low,~this.high,this.unsigned)},Ft.and=function(t){return dt(t)||(t=Et(t)),gt(this.low&t.low,this.high&t.high,this.unsigned)},Ft.or=function(t){return dt(t)||(t=Et(t)),gt(this.low|t.low,this.high|t.high,this.unsigned)},Ft.xor=function(t){return dt(t)||(t=Et(t)),gt(this.low^t.low,this.high^t.high,this.unsigned)},Ft.shiftLeft=function(t){return dt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?gt(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):gt(0,this.low<<t-32,this.unsigned)},Ft.shl=Ft.shiftLeft,Ft.shiftRight=function(t){return dt(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?gt(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):gt(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},Ft.shr=Ft.shiftRight,Ft.shiftRightUnsigned=function(t){if(dt(t)&&(t=t.toInt()),0===(t&=63))return this;var n=this.high;return t<32?gt(this.low>>>t|n<<32-t,n>>>t,this.unsigned):gt(32===t?n:n>>>t-32,0,this.unsigned)},Ft.shru=Ft.shiftRightUnsigned,Ft.shr_u=Ft.shiftRightUnsigned,Ft.toSigned=function(){return this.unsigned?gt(this.low,this.high,!1):this},Ft.toUnsigned=function(){return this.unsigned?this:gt(this.low,this.high,!0)},Ft.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},Ft.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]},Ft.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]},lt.fromBytes=function(t,n,i){return i?lt.fromBytesLE(t,n):lt.fromBytesBE(t,n)},lt.fromBytesLE=function(t,n){return new lt(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},lt.fromBytesBE=function(t,n){return new lt(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)};var Pt=ht,jt=function(){function t(t,n){this._b=void 0,this.gb=void 0,this._b=t,this.gb=n}t.wb=function(n,i,r){return r?new t(n.toUnsigned(),i.toUnsigned()):new t(n.toSigned(),i.toSigned())},t.mb=function(n){return n.unsigned?new t(n,Pt.UZERO):new t(n,n.isNegative()?Pt.NEG_ONE:Pt.ZERO)},t.yb=function(n,i){if(w(n))return i?t.kb:t.pb;if(i){if(n<0)return t.kb;if(n>=3.402823669209385e38)return t.bb}else{if(n<=-1.7014118346046923e38)return t.Ab;if(n+1>=1.7014118346046923e38)return t.Tb}return n<0?t.yb(-n,i).hb():t.wb(Pt.fromNumber(n%0x10000000000000000),Pt.fromNumber(n/0x10000000000000000),i)};var n=t.prototype;return n.Sb=function(){return this.gb.unsigned},n.Eb=function(){return this._b.isZero()&&this.gb.isZero()},n.ob=function(){return this.gb.isNegative()},n.Ib=function(){return this.Sb()?t.wb(this._b,this.gb,!1):this},n.Rb=function(){return this.Sb()?this:t.wb(this._b,this.gb,!0)},n.Nb=function(){return this._b},n.Qp=function(){return this.ob()?-this.hb().Qp():0x10000000000000000*this.gb.toNumber()+this._b.toUnsigned().toNumber()},n.Db=function(){return this._b.toInt()},n.Fp=function(t){return(this.Sb()===t.Sb()||this.gb.getHighBits()>>>31!=1||t.gb.getHighBits()>>>31!=1)&&(this.gb.toUnsigned().eq(t.gb.toUnsigned())&&this._b.toUnsigned().eq(t._b.toUnsigned()))},n.Zp=function(t){if(this.Fp(t))return k.ya;var n=this.ob(),i=t.ob();if(n&&!i)return k.Ta;if(!n&&i)return k.Aa;if(!this.Sb())return this.cb(t).ob()?k.Ta:k.Aa;var r=this.Rb(),e=t.Rb(),u=e.gb.comp(r.gb);return u>0||0===u&&e._b.gt(r._b)?k.Ta:k.Aa},n.sb=function(t){return this.Zp(t)<0},n.ib=function(t){return this.Zp(t)<=0},n.Cb=function(t){return this.Zp(t)>0},n.Pb=function(t){return this.Zp(t)>=0},n.Ob=function(){return new t(this._b.not(),this.gb.not())},n.Bb=function(n){return new t(this._b.and(n._b),this.gb.and(n.gb))},n.Lb=function(n){return new t(this._b.or(n._b),this.gb.or(n.gb))},n.xb=function(n){var i=127&n;return 0===i?this:i<64?t.wb(this._b.shl(i),this.gb.shl(i).or(this._b.shru(64-i)),this.Sb()):t.wb(Pt.ZERO,this._b.shl(i-64),this.Sb())},n.Mb=function(n){var i=127&n;return 0===i?this:i<64?t.wb(this._b.shru(i).or(this.gb.shl(64-i)),this.gb.shr(i),this.Sb()):t.wb(this.gb.shr(i-64),this.gb.isNegative()?Pt.NEG_ONE:Pt.ZERO,this.Sb())},n.Fb=function(n){var i=127&n;return 0===i?this:i<64?t.wb(this._b.shru(i).or(this.gb.shl(64-i)),this.gb.shru(i),this.Sb()):64===i?t.wb(this.gb,Pt.ZERO,this.Sb()):t.wb(this.gb.shru(i-64),Pt.ZERO,this.Sb())},n.$k=function(n){var i=this.gb.high>>>16,r=65535&this.gb.high,e=this.gb.low>>>16,u=65535&this.gb.low,o=this._b.high>>>16,s=65535&this._b.high,f=this._b.low>>>16,c=65535&this._b.low,a=n.gb.high>>>16,h=65535&n.gb.high,v=n.gb.low>>>16,l=65535&n.gb.low,d=n._b.high>>>16,w=65535&n._b.high,y=n._b.low>>>16,p=0,b=0,g=0,m=0,_=0,E=0,S=0,I=0;S+=(I+=c+(65535&n._b.low))>>>16,I&=65535,E+=(S+=f+y)>>>16,S&=65535,_+=(E+=s+w)>>>16,E&=65535,m+=(_+=o+d)>>>16,_&=65535,g+=(m+=u+l)>>>16,m&=65535,b+=(g+=e+v)>>>16,g&=65535,p+=(b+=r+h)>>>16,b&=65535,p+=i+a,p&=65535;var R=this.Sb(),T=Pt.fromBits(g<<16|m,p<<16|b,R),k=Pt.fromBits(S<<16|I,_<<16|E,R);return t.wb(k,T,R)},n.cb=function(t){return this.$k(t.hb())},n.hb=function(){return this.Ob().$k(t.Ub)},n.Hb=function(n){if(this.Eb()||n.Eb())return this.Sb()?t.kb:t.pb;if(this.ob())return n.ob()?this.hb().Hb(n.hb()):this.hb().Hb(n).hb();if(n.ob())return this.Hb(n.hb()).hb();if(this.gb.isZero()&&0===this._b.high&&n.gb.isZero()&&0===n._b.high)return t.mb(this._b.multiply(n._b));var i=Pt.fromBits(4294967295,0,!0),r=this._b.and(i),e=this._b.shru(32),u=this.gb.and(i),o=this.gb.shru(32),s=n._b.and(i),f=n._b.shru(32),c=n.gb.and(i),a=n.gb.shru(32),h=Pt.UZERO,v=Pt.UZERO,l=Pt.UZERO,d=Pt.UZERO;h=h.add(r.mul(s)),v=v.add(h.shru(32)),h=h.and(i),v=v.add(e.mul(s)),l=l.add(v.shru(32)),v=(v=v.and(i)).add(r.mul(f)),l=l.add(v.shru(32)),v=v.and(i),l=l.add(u.mul(s)),d=d.add(l.shru(32)),l=(l=l.and(i)).add(e.mul(f)),d=d.add(l.shru(32)),l=(l=l.and(i)).add(r.mul(c)),d=d.add(l.shru(32)),l=l.and(i),d=d.add(o.mul(s)).add(u.mul(f)).add(e.mul(c)).add(r.mul(a)).and(i);var w=Pt.fromBits(h.getLowBitsUnsigned(),v.getLowBitsUnsigned(),!0),y=Pt.fromBits(l.getLowBitsUnsigned(),d.getLowBitsUnsigned(),!0);return t.wb(w,y,this.Sb())},n.Vb=function(n){var i,r,e=n;if(e.Eb())throw new RangeError("division by zero");if(this.Eb())return this.Sb()?[t.kb,t.kb]:[t.pb,t.pb];if(this.Sb()){if(e.Sb()||(e=e.Rb()),e.Cb(this))return[t.kb,this];if(e.Cb(this.Fb(1)))return[r=t.Xb,i=this.cb(e)];r=t.kb}else{if(this.Fp(t.Ab)){if(e.Fp(t.Ub)||e.Fp(t.zb))return[t.Ab,t.pb];if(e.Fp(t.Ab))return[t.Ub,t.pb];var u=this.Mb(1).qb(e).xb(1);return u.Fp(t.pb)?r=e.ob()?t.Ub:t.zb:(i=this.cb(e.Hb(u)),r=u.$k(i.qb(e))),[r,i=this.cb(e.Hb(r))]}if(e.Fp(t.Ab))return this.Sb()?[t.kb,this]:[t.pb,this];if(this.ob()){if(e.ob())return this.hb().Vb(e.hb());var o=this.hb().Vb(e);return r=o[0],i=o[1],[r.hb(),i.hb()]}if(e.ob()){var s=this.Vb(e.hb());return r=s[0],i=s[1],[r.hb(),i.hb()]}r=t.pb}for(i=this;i.Pb(e);){for(var f=v.max(1,v.floor(i.Qp()/e.Qp())),c=v.ceil(v.log(f)/v.LN2),a=c<=48?1:v.pow(2,c-48),h=t.yb(f),l=h.Hb(e);l.ob()||l.Cb(i);)f-=a,l=(h=t.yb(f,this.Sb())).Hb(e);h.Eb()&&(h=t.Ub),r=r.$k(h),i=i.cb(l)}return[r,i]},n.qb=function(t){return this.Vb(t)[0]},n.Gb=function(t){return this.Vb(t)[1]},n.toString=function(n){var i=n||10;if(i<2||i>36)throw new RangeError("radix");if(this.Eb())return"0";if(this.ob()){if(this.Fp(t.Ab)){var r=t.yb(i),e=this.qb(r),u=e.Hb(r).cb(this);return e.toString(i)+u.Db().toString(i)}return"-"+this.hb().toString(i)}for(var o=t.yb(v.pow(i,6),this.Sb()),s=this,f="";;){var c=s.qb(o),a=(s.cb(c.Hb(o)).Db()>>>0).toString(i);if((s=c).Eb())return a+f;for(;a.length<6;)a="0"+a;f=String(a)+f}},t}();jt.pb=jt.mb(Pt.ZERO),jt.kb=jt.mb(Pt.UZERO),jt.Ub=jt.mb(Pt.ONE),jt.Xb=jt.mb(Pt.UONE),jt.zb=jt.mb(Pt.NEG_ONE),jt.Tb=jt.wb(Pt.NEG_ONE,Pt.MAX_VALUE,!1),jt.bb=jt.wb(Pt.MAX_UNSIGNED_VALUE,Pt.MAX_UNSIGNED_VALUE,!0),jt.Ab=jt.wb(Pt.ZERO,Pt.MIN_VALUE,!1);var Ut=function(){function t(t,n){void 0===n&&(n=1),this.Wb=void 0,this.jb=void 0,this.Wb=t,this.jb=n}t.Yb=function(n){return new t(v.ceil(n.Wb),n.jb)},t.Qb=function(n){return new t(v.floor(n.Wb),n.jb)},t.Kb=function(t,n){return t.Jp(n)?t:n},t.Zb=function(t,n){return t.ib(n)?t:n};var n=t.prototype;return n.$k=function(n){return this.jb>=n.jb?new t(this.Wb+n.Jb(this.jb).Wb,this.jb):new t(this.Jb(n.jb).Wb+n.Wb,n.jb)},n.Kp=function(t){return t.sb(this)},n.Jp=function(t){return t.ib(this)},n.eb=function(n){return this.jb>=n.jb?new t(v.abs(this.Wb-n.Jb(this.jb).Wb),this.jb):n.eb(this)},n.$p=function(t,n){return this.eb(t).ib(n)},n.Zp=function(t){return i=t,(n=this).jb>=i.jb?D(n.Wb,i.Jb(n.jb).Wb):D(n.Jb(i.jb).Wb,i.Wb);var n,i},n.Fp=function(t){return 0===this.Zp(t)},n.sb=function(t){return this.Zp(t)<0},n.ib=function(t){return this.Zp(t)<=0},n.Jb=function(n){return new t(this.Wb*(n/this.jb),n)},n.cb=function(n){return this.jb>=n.jb?new t(this.Wb-n.Jb(this.jb).Wb,this.jb):new t(this.Jb(n.jb).Wb-n.Wb,n.jb)},n.$b=function(n){return new t(this.Wb*n,this.jb)},q(t,[{key:"vb",get:function(){return!isFinite(this.Wb)}},{key:"tA",get:function(){return this.Wb/this.jb}}]),t}();Ut.nA=new Ut(1/6,1),Ut.pb=new Ut(0),Ut.iA=new Ut(1/0),Ut.rA=1e6;var Lt=function(t){function n(n,i){var r;return(r=t.call(this)||this).Bu=void 0,r.jb=void 0,r.Bu=n.toSigned(),r.jb=i>>>0,r}ft(n,t),n.eA=function(t,i){return void 0===i&&(i=1e6),n.yb(t*i,i)},n.yb=function(t,i){return w(t)?n.sA:t===1/0?n.uA:t===-1/0?n.oA:new n(Pt.fromNumber(t),i)},n.mb=function(t,i){return new n(t,i)},n.hA=function(t){return n.eA(t.tA,1e6)},n.aA=function(t){return new n(Pt.fromNumber(t.getTime()),1e3)},n.Kb=function(t,n){return t.Jp(n)?t:n},n.Zb=function(t,n){return t.ib(n)?t:n},n.cA=function(t,i,r){return n.Kb(i,n.Zb(r,t))};var i=n.prototype;return i.ob=function(){return this.Bu.isNegative()},i.Eb=function(){return 0!==this.jb&&this.Bu.isZero()},i.vb=function(){return 0===this.jb&&!this.Bu.isZero()},i.fb=function(){return 0===this.jb&&this.Bu.isZero()},i.Qp=function(){if(0===this.jb)return this.Bu.isZero()?NaN:this.Bu.isNegative()?-1/0:1/0;var t=this.Bu.divide(this.jb),n=this.Bu.subtract(t.multiply(this.jb));return t.toNumber()+n.toNumber()/this.jb},i.Nb=function(){if(0===this.jb)throw new c("Failed to convert timestamp");return this.Bu},i.fA=function(){return new Date(0===this.jb?NaN:this.Jb(1e3).Bu.toNumber())},i.vA=function(){return new Ut(0===this.jb?this.Qp():this.Bu.toNumber(),this.jb)},i.Jb=function(t,i){void 0===i&&(i=Wt.dA);var r=this.jb;if(r===t)return this;if(0===r)return this;var e=N(r,t);return new n(function(t,n,i){var r=t.Vb(n),e=r[0],u=r[1];if(u.Eb())return e;if(i===Wt.dA)return u.ob()?e.cb(jt.Ub):e;if(i===Wt.lA)return u.ob()?e:e.$k(jt.Ub);var o=u.Hb(jt.yb(2));return o.ob()?o.hb().sb(n)?e:e.cb(jt.Ub):o.sb(n)?e:e.$k(jt.Ub)}(jt.mb(this.Bu).Hb(jt.yb(t/e)),jt.yb(r/e),i).Nb(),t)},i.Zp=function(t){if(this===t)return k.ya;if(0===this.jb||0===t.jb)return at(this,t);if(this.Eb())return t.Eb()?k.ya:t.ob()?k.Aa:k.Ta;if(t.Eb())return this.ob()?k.Ta:k.Aa;var n=v.min(this.jb,t.jb),i=this.Jb(n,Wt._A).Bu,r=t.Jb(n,Wt._A).Bu;return i.compare(r)},i.hb=function(){return 0===this.jb?Mt(this):new n(this.Bu.negate(),this.jb)},i.$k=function(t){if(0===this.jb||0===t.jb)return qt(this,t);if(this.Eb())return t;if(t.Eb())return this;var i=v.max(this.jb,t.jb),r=this.Jb(i,Wt._A),e=t.Jb(i,Wt._A);return new n(r.Bu.add(e.Bu),i)},i.Hb=function(t){if(this.fb()||w(t))return n.sA;if(this.vb()||!isFinite(t)){if(this.Eb()||0===t)return n.sA;var i=this.ob()?n.oA:n.uA;return t<0?i.hb():i}return this.Eb()?this:new n(0===t?Pt.ZERO:this.Bu.multiply(t),this.jb)},i.qb=function(t){if(this.fb()||w(t))return n.sA;if(this.vb())return isFinite(t)?0===t?1/t<0?this.hb():this:t<0?this.hb():this:n.sA;if(!isFinite(t))return new n(Pt.ZERO,this.jb);if(this.Eb())return 0===t?n.sA:new n(Pt.ZERO,this.jb);if(0===t){var i=this.ob()?n.oA:n.uA;return 1/t<0?i.hb():i}return new n(this.Bu.divide(t),this.jb)},i.gA=function(){return[this.Bu.low,this.Bu.high,this.jb]},n}(ct);function Mt(t){return t.fb()?t:t.ob()?Lt.uA:Lt.oA}function qt(t,n){return t.fb()||n.fb()?Lt.sA:t.vb()&&n.vb()?t.ob()===n.ob()?t:Lt.sA:t.vb()?t:n}Lt.pb=new Lt(Pt.ZERO,1e6),Lt.sA=new Lt(Pt.ZERO,0),Lt.uA=new Lt(Pt.ONE,0),Lt.oA=new Lt(Pt.NEG_ONE,0);var Wt,Xt=function(t){function n(n,i){var r;return(r=t.call(this)||this).Bu=void 0,r.jb=void 0,r.Bu=BigInt.asIntN(64,n),r.jb=i>>>0,r}ft(n,t),n.eA=function(t,i){return void 0===i&&(i=1e6),n.yb(t*i,i)},n.yb=function(t,i){return w(t)?n.sA:t===1/0?n.uA:t===-1/0?n.oA:new n(BigInt(v.floor(t)),i)},n.mb=function(t,i){return new n(BigInt(t.high)<<BigInt(32)|BigInt(t.low>>>0),i)},n.hA=function(t){return n.eA(t.tA,1e6)},n.aA=function(t){return n.yb(t.getTime(),1e3)},n.Kb=function(t,n){return t.Jp(n)?t:n},n.Zb=function(t,n){return t.ib(n)?t:n},n.cA=function(t,i,r){return n.Kb(i,n.Zb(r,t))};var i=n.prototype;return i.ob=function(){return this.Bu<BigInt(0)},i.Eb=function(){return 0!==this.jb&&this.Bu===BigInt(0)},i.vb=function(){return 0===this.jb&&this.Bu!==BigInt(0)},i.fb=function(){return 0===this.jb&&this.Bu===BigInt(0)},i.Qp=function(){if(0===this.jb)return this.Bu===BigInt(0)?NaN:this.Bu<BigInt(0)?-1/0:1/0;var t=this.Bu/BigInt(this.jb),n=this.Bu-t*BigInt(this.jb);return Number(t)+Number(n)/this.jb},i.Nb=function(){if(0===this.jb)throw new c("Failed to convert timestamp");return this.wA()},i.wA=function(){var t=this.Bu&BigInt(4294967295),n=this.Bu>>BigInt(32)&BigInt(4294967295);return Pt.fromBits(Number(t),Number(n))},i.fA=function(){return new Date(0===this.jb?NaN:Number(this.Jb(1e3).Bu))},i.vA=function(){return new Ut(0===this.jb?this.Qp():Number(this.Bu),this.jb)},i.Jb=function(t,i){void 0===i&&(i=Wt.dA);var r=this.jb;if(r===t)return this;if(0===r)return this;var e=N(r,t);return new n(function(t,n,i){var r=t/n,e=t-r*n;if(e===BigInt(0))return r;if(i===Wt.dA)return e<BigInt(0)?r-BigInt(1):r;if(i===Wt.lA)return e<BigInt(0)?r:r+BigInt(1);var u=e*BigInt(2);return u<BigInt(0)?-u<n?r:r-BigInt(1):u<n?r:r+BigInt(1)}(this.Bu*BigInt(t/e),BigInt(r/e),i),t)},i.Zp=function(t){if(this===t)return k.ya;if(0===this.jb||0===t.jb)return at(this,t);if(this.Eb())return t.Eb()?k.ya:t.ob()?k.Aa:k.Ta;if(t.Eb())return this.ob()?k.Ta:k.Aa;var n=v.min(this.jb,t.jb),i=this.Jb(n,Wt._A).Bu,r=t.Jb(n,Wt._A).Bu;return i>r?k.Aa:i<r?k.Ta:k.ya},i.hb=function(){return 0===this.jb?Ht(this):new n(-this.Bu,this.jb)},i.$k=function(t){if(0===this.jb||0===t.jb)return Vt(this,t);if(this.Eb())return t;if(t.Eb())return this;var i=v.max(this.jb,t.jb),r=this.Jb(i,Wt._A),e=t.Jb(i,Wt._A);return new n(r.Bu+e.Bu,i)},i.Hb=function(t){if(this.fb()||w(t))return n.sA;if(this.vb()||!isFinite(t)){if(this.Eb()||0===t)return n.sA;var i=this.ob()?n.oA:n.uA;return t<0?i.hb():i}return this.Eb()?this:new n(0===t?BigInt(0):this.Bu*BigInt(t),this.jb)},i.qb=function(t){if(this.fb()||w(t))return n.sA;if(this.vb())return isFinite(t)?0===t?1/t<0?this.hb():this:t<0?this.hb():this:n.sA;if(!isFinite(t))return new n(BigInt(0),this.jb);if(this.Eb())return 0===t?n.sA:new n(BigInt(0),this.jb);if(0===t){var i=this.ob()?n.oA:n.uA;return 1/t<0?i.hb():i}return new n(this.Bu/BigInt(t),this.jb)},i.gA=function(){var t=this.wA();return[t.low,t.high,this.jb]},q(n,null,[{key:"pb",get:function(){return n.mA||(n.mA=new n(BigInt(0),1e6)),n.mA}},{key:"sA",get:function(){return n.yA||(n.yA=new n(BigInt(0),0)),n.yA}},{key:"uA",get:function(){return n.kA||(n.kA=new n(BigInt(1),0)),n.kA}},{key:"oA",get:function(){return n.pA||(n.pA=new n(BigInt(-1),0)),n.pA}}]),n}(ct);function Ht(t){return t.fb()?t:t.ob()?Xt.uA:Xt.oA}function Vt(t,n){return t.fb()||n.fb()?Xt.sA:t.vb()&&n.vb()?t.ob()===n.ob()?t:Xt.sA:t.vb()?t:n}Xt.mA=void 0,Xt.yA=void 0,Xt.kA=void 0,Xt.pA=void 0,function(t){t[t.dA=0]="dA",t[t.lA=1]="lA",t[t._A=2]="_A"}(Wt||(Wt={}));var Gt=function(){try{return"function"==typeof BigInt&&"bigint"==typeof BigInt(0)}catch(t){return!1}}()?Xt:Lt;function zt(t){return Gt.mb(Pt.fromBits(t[0],t[1],!1),t[2])}function Yt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Kt=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];c.apply(this,n)};(Kt.prototype=h.create(c.prototype)).constructor=Kt;var $t=function(t){function n(n,i){var r;return(r=t.call(this)||this).cause=void 0,r.message=n||"Unknown error",r.cause=i,c.captureStackTrace&&c.captureStackTrace(Yt(r),r.constructor),r}return ft(n,t),q(n,[{key:"name",get:function(){return"BaseError"}}]),n}(Kt),Jt=function(){function t(){this.Sa=!1,this.Ea=!1,this.Ia=[],this.Ra=[]}var n=t.prototype;return n.Na=function(){if(!this.Sa&&!this.Ea){this.Sa=!0;for(var t=0,n=this.Ia.slice();t<n.length;t++){(0,n[t])()}this.Da()}},n.Da=function(){if(!this.Ea){this.Ea=!0;for(var t=0,n=this.Ra.slice();t<n.length;t++){(0,n[t])()}F(this.Ia),F(this.Ra)}},n.Ca=function(t){this.Ea||this.Ia.push(t)},n.Pa=function(t){this.Ea||x(this.Ia,t)},n.Oa=function(t){this.Ea||this.Ra.push(t)},n.Ba=function(t){this.Ea||x(this.Ra,t)},t}(),Zt=function(){function t(){this.La=new Jt}var n=t.prototype;return n.xa=function(){this.La.Na()},n.Da=function(){this.La.Da()},n.Ma=function(t){var n=this.La;if(!n.Sa)if(t.Sa)n.Na();else if(!n.Ea&&!t.Ea){var i=function(){r(),n.Na()},r=function r(){t.Pa(i),t.Ba(r),n.Pa(i),n.Ba(r)};t.Ca(i),t.Oa(r),n.Ca(i),n.Oa(r)}},n.Fa=function(){var n=new t,i=new t,r=n.Ua,e=i.Ua,u=this.La,o=function(){r.Sa&&e.Ea||e.Sa&&r.Ea?u.Na():r.Ea&&e.Ea&&u.Da()};r.Ca(o),e.Ca(o),r.Oa(o),e.Oa(o),n.Ma(u),i.Ma(u);return u.Oa(function(){r.Pa(o),e.Pa(o),r.Ba(o),e.Ba(o)}),[n,i]},q(t,[{key:"Ua",get:function(){return this.La}}]),t}(),Qt=function(t){function n(n,i){return t.call(this,n||"Aborted",i)||this}return ft(n,t),q(n,[{key:"name",get:function(){return"AbortError"}}]),n}($t);function tn(t){return t instanceof c&&"AbortError"===t.name}function nn(t,n){return t.then(function(t){return n.Da(),t},function(t){throw n.Da(),t})}var rn;E.resolve();!function(t){t.s0="HELLO",t.u0="HI_THERE",t.o0="INITIALIZE",t.h0="APPEND_INIT",t.a0="APPEND_DATA",t.c0="ACK",t.f0="REMOVE",t.v0="DESTROY_SESSION"}(rn||(rn={}));var en="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),un=16383;function on(t,n,i){for(var r,e,u,o=[],s=n;s<i;s+=3)o.push((r=t[s],e=t[s+1],u=t[s+2],en[r>>2]+en[(3&r)<<4|e>>4]+en[(15&e)<<2|u>>6]+en[63&u]));return o.join("")}var sn=function(){function t(t){void 0===t&&(t=0),this.Tc=t}var n=t.prototype;return n.Ac=function(t){this.Tc+=t},n.Sc=function(t){this.Tc=t},n.Ec=function(){return new t(this.bc)},q(t,[{key:"bc",get:function(){return this.Tc}}]),t}();function fn(t,n){return null!=t&&t.substr(0,n.length)===n}var cn=16384;function an(t){var n=t.length;if(n<=cn)return String.fromCharCode.apply(String,t);for(var i=[],r=0;r<n;r+=cn)i.push(String.fromCharCode.apply(String,t.slice(r,r+cn)));return i.join("")}function hn(t){return function(t){for(var n=[],i=0;i<t.length;i++){var r=t[i];r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}return an(n)}(t)}function vn(t){if(t>=55296&&t<=57343)throw new c("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function ln(t,n){return t>>n&63|128}function dn(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(vn(t),n.push(t>>12&15|224),n.push(ln(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(ln(t,12)),n.push(ln(t,6))),n.push(63&t|128)):n.push(t)}function wn(t,n){if(n.bc>=t.length)throw new c("Invalid byte index");var i=255&t[n.bc];if(n.Ac(1),128==(192&i))return 63&i;throw new c("Invalid continuation byte")}function yn(t,n){var i=n.bc;if(i>t.length)throw new c("Invalid byte index");if(i===t.length)return!1;var r=255&t[i];if(n.Ac(1),0==(128&r))return r;if(192==(224&r)){var e=(31&r)<<6|wn(t,n);if(e>=128)return e;throw new c("Invalid continuation byte")}if(224==(240&r)){var u=(15&r)<<12|wn(t,n)<<6|wn(t,n);if(u>=2048)return vn(u),u;throw new c("Invalid continuation byte")}if(240==(248&r)){var o=(7&r)<<18|wn(t,n)<<12|wn(t,n)<<6|wn(t,n);if(o>=65536&&o<=1114111)return o}throw new c("Invalid UTF-8 detected")}var pn=65279;function bn(t,n,i){void 0===i&&(i=!1);var r=t.getUint16(n.bc,i);return n.Ac(2),r}function gn(t,n,i,r){void 0===r&&(r=!1),t.setUint16(n.bc,i,r),n.Ac(2)}function mn(t,n){return void 0===n&&(n=!1),function(t,n,i,r){for(var e=[];n.bc+2<=t.byteLength;){var u=bn(t,n,i);if(r&&!u)break;e.push(u)}return an(e)}(In(t),new An,n,!1)}function _n(t,n){void 0===n&&(n=!1);var i=new y(2*t.length);return function(t,n,i,r){void 0===r&&(r=!1);for(var e=i.length,u=0;u<e;u+=1)gn(t,n,i.charCodeAt(u),r)}(In(i),new An,t,n),i}function En(t){return hn(function(t,n){var i,r=[],e=new An;if(!n){if(!1===(i=yn(t,e)))return r;i===pn||r.push(i)}for(;!1!==(i=yn(t,e));)r.push(i);return r}(Rn(t)))}function Sn(t){return new y(function(t){for(var n=[],i=0;i<t.length;i++)dn(t[i],n);return n}(function(t){for(var n=[],i=0,r=t.length;i<r;){var e=t.charCodeAt(i++);if(e>=55296&&e<=56319&&i<r){var u=t.charCodeAt(i++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),i--)}else n.push(e)}return n}(t)))}function In(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Rn(t){return new y(t.buffer,t.byteOffset,t.byteLength)}function Tn(t){return t instanceof ArrayBuffer?new y(t):Rn(t)}function kn(t){if(t.slice)return t.slice(0);var n=new y(t.byteLength);return n.set(t,0),n}var An=function(){function t(t){void 0===t&&(t=0),this.Tc=t}var n=t.prototype;return n.Ac=function(t){this.Tc+=t},n.Sc=function(t){this.Tc=t},n.Ec=function(){return new t(this.bc)},n.Nc=function(){return new sn(this.bc<<3)},q(t,[{key:"bc",get:function(){return this.Tc}}]),t}(),On=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"],Nn=ArrayBuffer.isView||function(t){return t&&B(On,I.call(t))};function Dn(t){var n=t.reduce(function(t,n){return t+n.byteLength},0);return function(t,n){for(var i=new y(n),r=0,e=0;e<t.length;e++){var u=t[e];i.set(u,r),r+=u.byteLength}return i}(t,n)}function Cn(t){return function(t){for(var n=t.length,i=n%3,r=[],e=n-i,u=0;u<e;u+=un)r.push(on(t,u,v.min(e,u+un)));if(1===i){var o=t[n-1];r.push(en[o>>2]+en[(3&o)<<4]+"==")}else if(2===i){var s=t[n-2],f=t[n-1];r.push(en[s>>2]+en[(3&s)<<4|f>>4]+en[(15&f)<<2]+"=")}return r.join("")}(new y(t))}function xn(t){return t&&"function"!=typeof t?t.slice():t}function Bn(t,n,i){if(i)if("function"==typeof i)i.call(t,n);else for(var r=0;r<i.length;r++){i[r].call(t,n)}}var Fn=function(){function t(t){var n=this;this.Ha=W(),this.Va=void 0,this.Xa=void 0,this.qa=function(t){n.Ga(t)},this.Xa=t||this}var n=t.prototype;return n.Wa=function(t,n){if("function"==typeof n)if("string"==typeof t)this.Ya(t,n);else for(var i=0;i<t.length;i++){var r=t[i];this.Ya(r,n)}},n.Ya=function(t,n){var i=this.Ha[t];i?"function"==typeof i?this.Ha[t]=[i,n]:i.push(n):this.Ha[t]=n},n.Qa=function(t){if("function"==typeof t){var n=this.Va;n?"function"==typeof n?this.Va=[n,t]:n.push(t):this.Va=t}},n.Ka=function(){this.Ha=W(),this.Va=void 0},n.Ga=function(t){var n=xn(this.Ha[t.type]),i=xn(this.Va);Bn(this.Xa,t,n),Bn(this.Xa,t,i)},n.Za=function(t,n){if("function"==typeof n)if("string"==typeof t)this.Ja(t,n);else for(var i=0;i<t.length;i++){var r=t[i];this.Ja(r,n)}},n.Ja=function(t,n){var i=this.Ha[t];i&&("function"==typeof i?i===n&&(this.Ha[t]=void 0):x(i,n))},n.$a=function(t){if("string"==typeof t)this.Ha[t]=void 0;else for(var n=0;n<t.length;n++){var i=t[n];this.Ha[i]=void 0}},n.tc=function(t){var n=this.Va;n&&("function"==typeof n?n===t&&(this.Va=void 0):x(n,t))},n.nc=function(t,n){var i=this;return new E(function(r,e){if(n&&n.Sa)return e(new Qt);var u=function(t){s(),r(t)},o=function(){s(),e(new Qt)},s=function(){i.Za(t,u),n&&n.Pa(o)};i.Wa(t,u),n&&n.Ca(o)})},t}(),Pn=function(t,n){void 0===n&&(n=new Date),this.type=t,this.date=n},jn=function(t){function n(n){var i;return(i=t.call(this,"append")||this).uo=void 0,i.uo=n,i}return ft(n,t),n}(Pn),Un=function(t){function n(n){var i;return(i=t.call(this)||this).Gm=void 0,i.Adt=0,i.jr=new y(0),i.Hf=!1,i.A=!1,i.O=void 0,i.Gm=n,i}ft(n,t);var i=n.prototype;return i.bq=function(t,n){this.D&&0===this.jr.length&&(this.jr=this.O.slice()),this.Adt+=n.Qp(),this.jr=Dn([this.jr,t]),this.Ga(new jn(t))},i.Gc=function(){this.Zc||(this.Ga(new Pn("close")),this.Hf=!0)},q(n,[{key:"Ny",get:function(){return this.Adt}},{key:"uo",get:function(){return this.jr}},{key:"Zc",get:function(){return this.Hf}},{key:"D",get:function(){return this.A},set:function(t){this.A=t}},{key:"C",get:function(){return this.O},set:function(t){this.O=t}}]),n}(Fn),Ln=function(){function t(t){this.B=!1,this.L=void 0,this.W=void 0,this.DEFAULT_SEGMENT_DURATION_IN_SECONDS=1.1,this.Uw="sync-seg-"+j(),this.X=this.DEFAULT_SEGMENT_DURATION_IN_SECONDS,this.H=t;for(var n=0,i=this.H;n<i.length;n++){var r=i[n];if(r.match(/video/))this.L=new Un(this.V(r));else{if(!r.match(/audio/))throw new c("Unsupported MIME type.");this.W=new Un(this.V(r))}}}var n=t.prototype;return n.V=function(t){for(var n=0,i=this.H;n<i.length;n++){if(i[n]===t)return this.X}},n.Gc=function(){this.L&&this.L.Gc(),this.W&&this.W.Gc()},q(t,[{key:"tt",get:function(){return this.B},set:function(t){this.B=t}},{key:"it",get:function(){var t,n;return Boolean((null==(t=this.L)?void 0:t.D)||(null==(n=this.W)?void 0:n.D))}}]),t}(),Mn=function(t){function n(n){var i;return(i=t.call(this,"remove")||this).kp=void 0,i.kp=n,i}return ft(n,t),n}(Pn),qn=function(t){function n(n){var i;return(i=t.call(this)||this).rt=[],i.et=void 0,i.st=[],i.ht=X(),i.pt=X(),i.tn=0,i.nn=0,i.H=n,i.et=new Ln(i.H),i.et.W&&(i.et.W.D=!0),i.et.L&&(i.et.L.D=!0),i.st.push(new Ln(i.H)),i}ft(n,t);var i=n.prototype;return i.rn=function(){var t=[].concat(this.rt,[this.et],this.st);return this.rt.length=0,t},i.bq=function(t){this.en(t),this.sn(t),this.an(t)},i.Sq=function(t){this.en(t)},i.Yc=function(t){this.en(t),this.an(t)},i.Da=function(){this.et.Gc(),this.st.forEach(function(t){return t.Gc()}),this.rt.length=0},i.sn=function(t){var n=zt(t.startPts),i=zt(t.totalDuration);this.pt.set(t.mimeType,n.$k(i))},i.ln=function(){this.et.Gc(),this.rt.push(this.et);var t=this.st.shift(),n=this.bn();t?(this.et=t,this.st.push(n)):this.et=n},i.bn=function(){var t=new Ln(this.H);return t.W&&(t.W.C=this.et.W.C),t.L&&(t.L.C=this.et.L.C),t},i.gn=function(t){var i=!this.et.W||0===this.et.W.Ny,r=!this.et.L||0===this.et.L.Ny,e=this.et.W&&this.et.W.D,u=this.et.L&&this.et.L.D,o=r&&(i&&!this.et.tt||e),s=i&&(r&&!this.et.tt||u);("audio"===n.mn(t)&&!s||"video"===n.mn(t)&&!o)&&(this.ln(),this.ln())},i.en=function(t){var n=t.mimeType,i=t.kind,r=this.ht.get(n);void 0===r&&(i!==rn.h0&&i!==rn.a0||(r=[],this.ht.set(n,r))),void 0!==r&&r.push(t)},i.an=function(t){for(var n=this.kn(t),i=0;i<n.length;i++){var r=n[i];switch(r.kind){case rn.h0:this.ti(r),this.tn=0,this.nn=0;break;case rn.f0:this.ii(r);break;case rn.a0:this.ui(r)}}},i.ti=function(t){var n=t.mimeType,i=t.segment;this.gn(n),n.match(/video/)?(this.et.L.C=i,this.st.forEach(function(t){t.L.C=i})):(this.et.W.C=i,this.st.forEach(function(t){t.W.C=i})),this.et.W&&(this.et.W.D=!0),this.et.L&&(this.et.L.D=!0)},i.ui=function(t){var n=t.mimeType.match(/audio/),i=zt(t.totalDuration);if(n?this.et.W.bq(t.segment,i):this.et.L.bq(t.segment,i),n||1===this.H.length){this.tn+=i.Qp();var r=this.et.V(t.mimeType);this.tn>=this.nn+r&&(this.nn+=r,this.ln())}},i.ii=function(t){this.pt.set(t.mimeType,void 0),this.gn(t.mimeType),this.et.W&&(this.et.W.D=!0),this.et.L&&(this.et.L.D=!0),this.rt.length=0,this.Ga(new Mn(zt(t.endTime)))},i.kn=function(t){var n=this;if(t.kind===rn.f0)return this.si(t);var i=[];return this.ht.forEach(function(t){if(t&&t.length>0){var r=C(t,function(t){return t.kind===rn.f0});-1===r&&(r=t.length);for(var e=t.slice(0,r),u=0;u<e.length;u++){var o=e[u];if(!B(i,o)){var s=n.si(o);if(s.length>0)i.push.apply(i,s);else if(o.kind===rn.a0)break}}}}),i},i.si=function(t){for(var i,r=this.ht.get(t.mimeType),e=0,u=this.H;e<u.length;e++){var o=u[e];if(o!==t.mimeType){i=o;break}}if(!i)return r.splice(0,r.indexOf(t)+1);if(t.kind===rn.h0)return[];var s=this.pt.get(i);if(void 0===s)return[];if(t.kind===rn.f0){var f=this.fi(i);if(f.length>0){var c=r.splice(0,r.indexOf(t));return r.splice(0,1),[].concat(c,f,[t])}return[]}if(n.hi(t,s)){var a=r.splice(0,r.indexOf(t));r.splice(0,1);var h=this.vi(t,a,i);return[].concat(a,h,[t])}return[]},i.vi=function(t,i,r){var e=this.ht.get(r);if(!e)return[];var u=zt(t.startPts),o=zt(t.totalDuration),s=u.$k(o),f=C(e,function(t){return t.kind===rn.f0}),c=f-1;-1===f&&(c=e.length-1);for(var a=c+1,h=0;h<=c&&a===c+1;h++){var v=e[h];v.kind!==rn.a0||n.hi(v,s)||(a=h)}var l=-1;return-1!==C(i,function(t){return t.kind===rn.h0})&&(l=C(e,function(t){return t.kind===rn.h0})),l>a&&(a=l+1),a>0?(e[a-1].kind===rn.h0&&(a-=1),e.splice(0,a)):[]},i.fi=function(t){var n=this.ht.get(t);if(n){var i=C(n,function(t){return t.kind===rn.f0});if(i>=0)return n.splice(0,i+1)}return[]},n.hi=function(t,n){var i=n,r=zt(t.startPts);return i.Jp(r)},i.li=function(){var t="[MEDIABUFFER] endPTS: ";this.pt.forEach(function(i,r){t=t.concat(n.mn(r)+" = "+(null==i?void 0:i.Qp())+" ")}),m.uh(t)},i.yi=function(){var t=this;m.uh("[MEDIABUFFER] unsyncedMessageMap:"),this.ht.forEach(function(i,r){void 0!==i&&t.pi(n.mn(r),i)})},i.pi=function(t,i){var r=t+": [";null==i||i.forEach(function(t){r=r.concat(" "+t.kind+"("+n.mn(t.mimeType)+")")}),r=r.concat(" ]"),m.uh(r)},n.mn=function(t){return t.match(/audio/)?"audio":"video"},n}(Fn);var Wn=function(){function t(t,n,i){var r=this;this.bi=[],this.mi=X(),this.ki=0,this.Qut=void 0,this.tr=void 0,this.nr=function(t){if(t.kp.Jp(Gt.eA(A)))for(;r.bi.length>0;)r.er()},this.ur=n,this.sr=i,this.tr=[new K,new $(8),new J(1),new Q,new Z(0)],this.Qut=t,this.Qut.Wa("remove",this.nr)}var n=t.prototype;return n.fet=function(t,n){var i=this.mi.get(t);if(i)if(n===U.__){var r=i.L;if(r)return r}else{var e=i.W;if(e)return e}throw new c(t+" segment not available!")},n.Da=function(){this.bi.length=0,this.ur.PE=0,this.mi.clear(),this.ki=0},n.FS=function(){return this.cr(),new ut([].concat(this.tr,[this.ur,this.sr],this.bi))},n.cr=function(){for(var t=this.Qut.rn(),n=0;n<t.length;n++){var i=t[n];if(!this.mi.has(i.Uw)){i.tt=!0;var r=i.X;i.it&&this.bi.push(new it),this.mi.set(i.Uw,i),this.bi.push(new Y(r,i.Uw)),this.ki+=r}}this.ar()},n.ar=function(){for(;this.ki>300;)this.er()},n.er=function(){var t=this.bi.shift();void 0!==t&&(t.Kh===V.e_?(this.hr(t),this.ki-=t.S,this.ur.PE++):function(t){return t.Kh===V.v}(t)&&this.sr.PE++)},n.hr=function(t){this.mi.delete(t.I)},t}(),Xn=function(){function t(t){this.R1t=void 0,this.vr=void 0,this.lr=void 0,this.H=t,this.R1t=new ot,this.vr=new qn(this.H);for(var n=0,i=this.H;n<i.length;n++){var r=i[n];if(this.lr=new Wn(this.vr,new nt(0),new rt(0)),r.match(/video/)){var e=new tt("video/index.m3u8");this.R1t.k(e)}else{if(!r.match(/audio/))throw new c("Unsupported MIME type.");var u=new et("audio/index.m3u8");this.R1t.k(u)}}}var n=t.prototype;return n.br=function(t){if("master.m3u8"===t){if(this.R1t)return this.R1t.FS;throw new c("Master playlist not ready yet")}if(this.lr)return this.lr.FS();throw new c("Media playlist not ready yet")},n.fet=function(n){var i=n.split("/")[1];return this.lr.fet(i,t.mr(n))},n.Sq=function(t){this.vr.Sq(t)},n.bq=function(t){this.vr.bq(t)},n.cut=function(t){this.vr.Yc(t)},n.Da=function(){this.vr.Da(),this.R1t.Da(),this.lr&&this.lr.Da()},t.mr=function(t){return t.match(/video/)?U.__:U.l_},t}();var Hn,Vn=function(){function n(t,n){var i=this;this.Vet=void 0,this.kr=function(){var t=E.coroutine(_.mark(function t(n){var r,e,u;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=n.data,t.t0=r.kind,t.next=t.t0===rn.o0?4:t.t0===rn.h0?7:t.t0===rn.a0?9:t.t0===rn.f0?11:13;break;case 4:return e=r.mediaBufferConfigs,i.Vet=new Xn(e),t.abrupt("break",13);case 7:return i.Vet.Sq(r),t.abrupt("break",13);case 9:return i.Vet.bq(r),t.abrupt("break",13);case 11:return i.Vet.cut(r),t.abrupt("break",13);case 13:u={kind:rn.c0},i.te.postMessage(u);case 15:case"end":return t.stop()}},t)}));return function(n){return t.apply(this,arguments)}}(),this.te=t,this.ie=n,this.te.onmessage=this.kr}var i=n.prototype;return i.ee=function(t){return this.Vet.br(t)},i.se=function(n){if(this.Vet){if(n.match(/m3u8/)){var i=this.ee(n);return new Response(i.T(),{headers:{"Content-Type":"application/x-mpegurl; charset=utf-8"}})}var r={"Content-Type":n.match(/video/)?"video/mp4":"audio/mp4"},e=function(t){return{start:(n=E.coroutine(_.mark(function n(i){var r,e;return _.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(i.enqueue(t.uo),!t.Zc){n.next=6;break}return i.close(),n.abrupt("return");case 6:r=function(t){i.enqueue(t.uo)},t.Wa("append",r),e=function n(){i.close(),t.Za("append",r),t.Za("close",n)},t.Wa("close",e);case 10:case"end":return n.stop()}},n)})),function(t){return n.apply(this,arguments)})};var n}(this.het(n)),u=new t.ReadableStream(e);return new Response(u,{headers:r})}throw new c("Stream not active.")},i.het=function(t){return this.Vet.fet(t)},i.close=function(){this.te.close(),this.Vet&&this.Vet.Da()},n}(),Gn=function(){function t(){var t=this;this.sY=X(),this.ce=void 0,this.kr=function(n){var i=n.data;switch(i.kind){case rn.s0:t.ae().catch(P);var r=i.port,e=j(),u=new Vn(r,n.source.id);t.sY.set(e,u);r.addEventListener("message",function n(i){i.data.kind===rn.v0&&(t.he(e),r.removeEventListener("message",n))});var o={kind:rn.u0,sessionId:e};r.postMessage(o)}},this.ve=function(n){if(fn(n.request.url,L)){var i=new URL(n.request.url).pathname.split("/"),r=i[1],e=i.slice(2).join("/");if(void 0!==r&&void 0!==e){var u=t.sY.get(r);if(u)try{var o=u.se(e);n.respondWith(o)}catch(t){n.respondWith(E.resolve(new Response(void 0,{headers:{message:"Segment not found"},status:404,statusText:"Not Found"})))}else n.respondWith(E.resolve(new Response(void 0,{headers:{message:"Given session ["+r+"] not found"},status:404,statusText:"Not Found"})))}else n.respondWith(E.resolve(new Response(void 0,{headers:{message:"No session ["+r+"] or resource ["+e+"] provided"},status:404,statusText:"Not Found"})))}}}var n=t.prototype;return n.Ek=function(t){this.ce=t,t.addEventListener("message",this.kr),t.addEventListener("fetch",this.ve)},n.he=function(t){var n=this.sY.get(t);n&&n.close(),this.sY.delete(t)},n.ae=function(){var t=E.coroutine(_.mark(function t(){var n,i,r=this;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.ce.clients.matchAll();case 2:n=t.sent,i=n.map(function(t){return t.id}),this.sY.forEach(function(t,n){B(i,t.ie)||r.he(n)});case 5:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),t}();Gn.de=new Gn,function(t){t.ue="web",t.oe="android",t.fe="android-tv",t._e="ios",t.we="tvos",t.me="chromecast"}(Hn||(Hn={}));var zn=e?e.userAgent:"",Yn=zn.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),Kn=zn.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),$n=zn.match(/Android ([0-9\.]+)/i),Jn=zn.match(/Windows NT ([0-9\.]+)/i),Zn=zn.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),Qn=zn.match(/Firefox\/([0-9\.]+)/i),ti=zn.match(/OPR\/(\d+\.\d+)/i),ni=zn.match(/Tizen ([0-9\.]+)/i),ii=function(){function n(){this.ye=Boolean("ontouchstart"in t||t.DocumentTouch&&r instanceof t.DocumentTouch||e&&e.msMaxTouchPoints),this.ke=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(zn)||/(macintosh|mac(?=_powerpc)\s)/i.test(zn),this.pe=/Windows NT/i.test(zn),this.Ae=Jn?d(Jn[1]):0,this.Te=/Android/i.test(zn),this.Se=$n?d($n[1]):0,this.Ee=/windows phone (8|8\.1)/i.test(zn),this.Ie=/iPhone/i.test(zn),this.Re=/iPad/i.test(zn),this.Ne=this.ke&&this.ye&&!this.Re,this.De=/iPod/i.test(zn),this.Ce=/Mobile Safari/i.test(zn),this.Pe=/EOSSTB/i.test(zn),this.Oe=(this.Ie||this.Re||this.Ne||this.De)&&!this.Ee,this.Be=this.Ee||this.Oe||this.Te||this.Ce,this.Le=/CriOS/i.test(zn),this.xe=Boolean(t.chrome&&/google/i.test(e.vendor))||this.Le,this.Me=this.xe&&/Edg\//i.test(e.userAgent),this.Fe=Kn?l(Kn[1],10):0,this.Ue=Boolean(t.chrome||/Chrome/i.test(zn)||/CriOS/i.test(zn)),this.He=Yn?l(Yn[1],10):0,this.Ve=/SMART-TV.*Tizen/i.test(zn),this.Xe=ni?d(ni[1]):0,this.ze=/webos|web0s/i.test(zn),this.qe=/Edge\/\d+/i.test(zn),this.Ge=/Trident/i.test(zn),this.We=this.Ge&&!t.ActiveXObject&&"ActiveXObject"in t,this.je=/Vivaldi/i.test(zn),this.Ye=/Firefox/i.test(zn)&&!/Seamonkey/i.test(zn),this.Qe=Qn?d(Qn[1]):0,this.Ke=/Safari/i.test(zn)&&!/Chrome/i.test(zn)&&!this.Ee&&!this.Ve,this.Ze=Zn?d(Zn[2]):0,this.Je=Boolean(ti),this.$e=ti?d(ti[1]):0,this.ns=/CrKey/.test(zn),this.rs=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(zn),this.us="web"===Hn.fe,this.hs="web"===Hn.oe,this.fs=this.hs||this.us,this.vs="web"===Hn._e,this.ds="web"===Hn.we,this.ls="web"===Hn.me}return q(n,[{key:"_s",get:function(){return this.ye}},{key:"gs",get:function(){return this.ke}},{key:"ys",get:function(){return this.pe}},{key:"As",get:function(){return this.Ae}},{key:"Ts",get:function(){return this.Te}},{key:"Ss",get:function(){return this.Se}},{key:"Es",get:function(){return this.Ee}},{key:"Is",get:function(){return this.Ie}},{key:"Rs",get:function(){return this.Re}},{key:"Ns",get:function(){return this.Ne}},{key:"Ds",get:function(){return this.De}},{key:"Cs",get:function(){return this.Oe}},{key:"Ps",get:function(){return this.Pe}},{key:"Os",get:function(){return this.Ce}},{key:"Bs",get:function(){return this.Be}},{key:"Ls",get:function(){return this.Le}},{key:"xs",get:function(){return this.xe}},{key:"Ms",get:function(){return this.He}},{key:"Fs",get:function(){return this.Me}},{key:"Us",get:function(){return this.Fe}},{key:"Hs",get:function(){return this.Ve}},{key:"Vs",get:function(){return this.Xe}},{key:"Xs",get:function(){return this.ze}},{key:"zs",get:function(){return this.qe}},{key:"qs",get:function(){return this.Ge}},{key:"Gs",get:function(){return this.We}},{key:"Ws",get:function(){return this.je}},{key:"js",get:function(){return this.Ye}},{key:"Ys",get:function(){return this.Qe}},{key:"Qs",get:function(){return this.Ke}},{key:"Ks",get:function(){return this.Ze}},{key:"Zs",get:function(){return this.Je}},{key:"Js",get:function(){return this.$e}},{key:"$s",get:function(){return this.ns}},{key:"tu",get:function(){return this.rs}},{key:"nu",get:function(){if(!(this.Xs||this.Hs))return!1;var t=this.Ms;return void 0===t||Number(t)<56}},{key:"uu",get:function(){return this.us}},{key:"ou",get:function(){return this.hs}},{key:"au",get:function(){return this.fs}},{key:"fu",get:function(){return this.vs}},{key:"vu",get:function(){return this.ds}},{key:"du",get:function(){return this.ls}},{key:"_u",get:function(){return this.Ue}}]),n}();ii.wu=new ii;var ri=ii.wu,ei=!(ri.qs&&!ri.Gs),ui=t.console;function oi(t){if(T(t))try{return JSON.stringify(t)}catch(t){}return t}function si(t){return t.map(oi).join(" ")}function fi(t){var n=ui&&ui[t];return n?n.bind&&ei?n.bind(ui):function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];ui[t](si(i))}:void 0}var ci,ai=fi("log")||P,hi=fi("warn")||ai.bind(void 0,"WARNING:"),vi=fi("error")||ai.bind(void 0,"ERROR:"),li=(ci=ui&&ui.assert)?ci.bind&&ei?ci.bind(ui):function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];ui.assert(t,si(i))}:function(t){if(!t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];vi.apply(void 0,["Assertion failed:"].concat(i))}};function di(){return Date.now()||(new Date).getTime()}var wi;Pt.fromNumber(A);!function(t){t[t.pu=1]="pu",t[t.Au=2]="Au",t[t.bu=3]="bu",t[t.Tu=4]="Tu",t[t.Su=9]="Su"}(wi||(wi={}));var yi=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return ft(n,t),n}($t),pi=function(){function t(){}return t.prototype.Eu=function(t){var n,i=new DOMParser;try{n=i.parseFromString(t,"text/xml")}catch(t){throw new yi(t)}if(!n||n.getElementsByTagName("parsererror").length>0)throw new yi;return new Ii(n)},t}(),bi=function(){function t(t){this.Iu=void 0,this.Iu=t}var n=t.prototype;return n.Ru=function(t){return this.Iu.isEqualNode(t.Iu)},n.Nu=function(n){return new t(this.Iu.cloneNode(n))},q(t,[{key:"yu",get:function(){return wi.Au}},{key:"Du",get:function(){var t;return null!=(t=this.Iu.localName)?t:ki(this.Iu.nodeName)}},{key:"Cu",get:function(){return this.Iu.nodeName}},{key:"Pu",get:function(){var t;return null!=(t=this.Iu.namespaceURI)?t:void 0}},{key:"Ou",get:function(){var t;return null!=(t=this.Iu.prefix)?t:void 0}},{key:"Bu",get:function(){return this.Iu.nodeValue}}]),t}(),gi=function(){function t(t){this.Lu=void 0,this.xu=void 0,this.Lu=t}var n=t.prototype;return n.Mu=function(t){return this.Fu.filter(function(n){return Ri(n)&&n.Uu===t})},n.Hu=function(t,n){return this.Fu.filter(function(i){return Ri(i)&&i.Du===n&&i.Pu===t})},n.Vu=function(t){this.Lu.appendChild(t.Xu),this.xu&&this.xu.push(t)},n.Ru=function(t){return this.Lu.isEqualNode(t.Xu)},q(t,[{key:"Fu",get:function(){return void 0===this.xu&&(this.xu=function(t){for(var n=[],i=0;i<t.length;i++){var r=Ti(t.item(i));r&&n.push(r)}return n}(this.Lu.childNodes)),this.xu}},{key:"Gu",get:function(){return this.Fu.filter(Ri)}},{key:"Xu",get:function(){return this.Lu}}]),t}(),mi=function(t){function n(n){return t.call(this,n)||this}ft(n,t);var i=n.prototype;return i.Wu=function(t){if(this.Lu.hasAttribute(t))return this.Lu.getAttribute(t)},i.ju=function(t,n){if(this.Lu.hasAttributeNS(t,n))return this.Lu.getAttributeNS(t,n)},i.Yu=function(t){this.Lu.removeAttribute(t)},i.Qu=function(t,n){this.Lu.removeAttributeNS(t,n)},i.Ku=function(t,n){this.Lu.setAttribute(t,n)},i.Zu=function(t,n,i){this.Lu.setAttributeNS(t,n,i)},i.Nu=function(t){return new n(this.Lu.cloneNode(t))},q(n,[{key:"yu",get:function(){return wi.pu}},{key:"Du",get:function(){var t;return null!=(t=this.Lu.localName)?t:ki(this.Lu.nodeName)}},{key:"Pu",get:function(){var t;return null!=(t=this.Lu.namespaceURI)?t:void 0}},{key:"Ou",get:function(){var t;return null!=(t=this.Lu.prefix)?t:void 0}},{key:"Uu",get:function(){return this.Lu.nodeName}},{key:"Ju",get:function(){return function(t){for(var n=[],i=0;i<t.length;i++)n.push(new bi(t.item(i)));return n}(this.Lu.attributes)}},{key:"$u",get:function(){return this.Lu.textContent}}]),n}(gi),_i=function(){function t(t){this.Lu=void 0,this.Lu=t}return t.prototype.Ru=function(t){return this.uo===t.uo},q(t,[{key:"uo",get:function(){return this.Lu.nodeValue}},{key:"Xu",get:function(){return this.Lu}}]),t}(),Ei=function(t){function n(n){return t.call(this,n)||this}return ft(n,t),n.prototype.Nu=function(t){return new n(this.Lu.cloneNode(t))},q(n,[{key:"yu",get:function(){return wi.bu}}]),n}(_i),Si=function(t){function n(n){return t.call(this,n)||this}return ft(n,t),n.prototype.Nu=function(t){return new n(this.Lu.cloneNode(t))},q(n,[{key:"yu",get:function(){return wi.Tu}}]),n}(_i),Ii=function(t){function n(n){return t.call(this,n)||this}return ft(n,t),n.prototype.Nu=function(t){return new n(this.Lu.cloneNode(t))},q(n,[{key:"yu",get:function(){return wi.Su}},{key:"oo",get:function(){return new mi(this.Lu.documentElement)}}]),n}(gi);function Ri(t){return function(t){return t.yu===wi.pu}(t)}function Ti(t){switch(t.nodeType){case wi.pu:return new mi(t);case wi.bu:return new Ei(t);case wi.Tu:return new Si(t)}}function ki(t){var n=t.indexOf(":");return n<0?t:t.substr(n+1)}function Ai(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),h.defineProperty(t,r.key,r)}}function Oi(t,n){var i=function(t,n){var i=t.length;if(i<=1)return t;for(var r=new Array(i),e=1;e<i;e*=2){Ni(t,n,e,r);var u=t;t=r,r=u}return t}(t,n);return i!==t&&Ni(i,null,t.length,t),t}function Ni(t,n,i,r){var e,u,o,s,f,c=t.length,a=0,h=2*i;for(e=0;e<c;e+=h)for(o=(u=e+i)+i,u>c&&(u=c),o>c&&(o=c),s=e,f=u;;)if(s<u&&f<o)n(t[s],t[f])<=0?r[a++]=t[s++]:r[a++]=t[f++];else if(s<u)r[a++]=t[s++];else{if(!(f<o))break;r[a++]=t[f++]}}var Di=/[a-zA-Z]/,Ci=/[0-9]/,xi=/[0-9a-fA-F]/,Bi=/^0x/i,Fi=/^[0-9]+$/,Pi=/^[0-9a-fA-F]+$/,ji=/^[0-7]+$/,Ui=h.prototype.toString,Li=Array.isArray||function(t){return"[object Array]"===Ui.call(t)},Mi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function qi(t){return Li(t)?t:Array.from(t)}function Wi(t){return t>=65&&t<=90}function Xi(t){return Wi(t)||function(t){return t>=97&&t<=122}(t)}function Hi(t){return t>=48&&t<=57}function Vi(t){return Hi(t)||Xi(t)}function Gi(t){return Hi(t)||t>=65&&t<=70||t>=97&&t<=102}function zi(t){return Wi(t)?t+32:t}function Yi(t){return Hi(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function Ki(t,n){return void 0===n&&(n=!1),0<=t&&t<=9?t+48:10<=t&&t<=15?t+(n?87:55):-1}var $i=v.min,Ji=String.fromCharCode,Zi=16384;function Qi(t){for(var n=t.length,i=[],r=0;r<n;r+=Zi){var e=$i(r+Zi,n);i.push(Ji.apply(null,t.slice(r,e)))}return i.join("")}var tr=/[^\0-\x7E]/,nr=/[\x2E\u3002\uFF0E\uFF61]/g,ir={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},rr=v.floor,er=String.fromCharCode;function ur(t){throw new RangeError(ir[t])}function or(t){for(var n=[],i=0,r=t.length;i<r;){var e=t.charCodeAt(i++);if(e>=55296&&e<=56319&&i<r){var u=t.charCodeAt(i++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),i--)}else n.push(e)}return n}var sr,fr,cr,ar=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},hr=function(t,n,i){var r=0;for(t=i?rr(t/700):t>>1,t+=rr(t/n);t>455;r+=36)t=rr(t/35);return rr(r+36*t/(t+38))},vr=function(t){return function(t,n){var i=t.split("@"),r="";i.length>1&&(r=i[0]+"@",t=i[1]);var e=function(t,n){for(var i=[],r=t.length;r--;)i[r]=n(t[r]);return i}((t=t.replace(nr,".")).split("."),n).join(".");return r+e}(t,function(t){return tr.test(t)?"xn--"+function(t){for(var n=[],i=(t=or(t)).length,r=128,e=0,u=72,o=0,s=t;o<s.length;o++){var f=s[o];f<128&&n.push(er(f))}var c=n.length,a=c;for(c&&n.push("-");a<i;){for(var h=2147483647,v=0,l=t;v<l.length;v++){var d=l[v];d>=r&&d<h&&(h=d)}var w=a+1;h-r>rr((2147483647-e)/w)&&ur("overflow"),e+=(h-r)*w,r=h;for(var y=0,p=t;y<p.length;y++){var b=p[y];if(b<r&&++e>2147483647&&ur("overflow"),b==r){for(var g=e,m=36;;m+=36){var _=m<=u?1:m>=u+26?26:m-u;if(g<_)break;var E=g-_,S=36-_;n.push(er(ar(_+E%S,0))),g=rr(E/S)}n.push(er(ar(g,0))),u=hr(e,w,a==c),e=0,++a}}++e,++r}return n.join("")}(t):t})};function lr(t){for(var n=[],i=0;i<t.length;i++){var r=t[i];r>65535&&(r-=65536,n.push(r>>>10&1023|55296),r=56320|1023&r),n.push(r)}return Qi(n)}function dr(t){if(t>=55296&&t<=57343)throw new c("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function wr(t,n){return t>>n&63|128}function yr(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(dr(t),n.push(t>>12&15|224),n.push(wr(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(wr(t,12)),n.push(wr(t,6))),n.push(63&t|128)):n.push(t)}function pr(t){for(var n=[],i=0;i<t.length;i++){yr(t[i],n)}return n}function br(){if(cr>=fr)throw new c("Invalid byte index");var t=255&sr[cr];if(cr++,128==(192&t))return 63&t;throw new c("Invalid continuation byte")}function gr(){var t,n;if(cr>fr)throw new c("Invalid byte index");if(cr===fr)return!1;if(t=255&sr[cr],cr++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|br())>=128)return n;throw new c("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|br()<<6|br())>=2048)return dr(n),n;throw new c("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|br()<<12|br()<<6|br())>=65536&&n<=1114111)return n;throw new c("Invalid UTF-8 detected")}function mr(t){return[37,Ki(t>>4),Ki(15&t)]}function _r(t){return function(t){return t>=0&&t<=31}(t)||t>126}function Er(t){return _r(t)||32===t||34===t||60===t||62===t||96===t}function Sr(t){return Er(t)||35===t||63===t||123===t||125===t}function Ir(t){return Sr(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 Tr(t){return Rr(t)||39===t}function kr(t,n){if(!n(t))return[t];for(var i=pr([t]),r=[],e=0;e<i.length;e++){var u=i[e];r.push.apply(r,mr(u))}return r}function Ar(t,n){for(var i=[],r=0,e=or(t);r<e.length;r++){var u=e[r];i.push.apply(i,kr(u,n))}return lr(i)}function Or(t){return function(t){for(var n=[],i=t.length,r=0;r<i;r++){var e=t[r];if(37===e&&r+2<i&&Gi(t[r+1])&&Gi(t[r+2])){var u=Yi(t[r+1])<<4|Yi(t[r+2]);n.push(u),r+=2}else n.push(e)}return n}(pr(t))}function Nr(t){return lr(function(t){sr=t.slice(),fr=sr.length,cr=0;for(var n,i=[];!1!==(n=gr());)i.push(n);return i}(Or(or(t))))}function Dr(t){var n,i,r,e,u=t.length,o=[0,0,0,0,0,0,0,0],s=0,f=null,c=0;if(c<u&&":"===t[c]){if(!(c+1<u&&":"===t[c+1]))throw new a;c+=2,f=s+=1}for(;c<u;){if(8===s)throw new a("Too many groups");if(":"!==t[c]){for(var h=0,v=0;v<4&&c<u&&xi.test(t[c]);)h=h<<4|l(t[c],16),c+=1,v+=1;if("."===t[c]){if(0===v)throw new a;if(c-=v,s>6)throw new a;for(var d=0;c<u;){var w=null;if(d>0){if(!("."===t[c]&&d<4))throw new a;c+=1}if(!Ci.test(t[c]))throw new a;for(;c<u&&Ci.test(t[c]);){var y=l(t[c],10);if(null===w)w=y;else{if(0===w)throw new a;if((w=10*w+y)>255)throw new a}c+=1}o[s]=o[s]<<8|w,2!==(d+=1)&&4!==d||(s+=1)}if(4!==d)throw new a;break}if(":"===t[c]){if((c+=1)===u)throw new a}else if(c<u)throw new a;o[s]=h,s+=1}else{if(null!==f)throw new a("Too many :: groups");c+=1,f=s+=1}}if(null!==f){var p=s-f;for(s=7;0!==s&&p>0;)r=f+p-1,e=void 0,e=(n=o)[i=s],n[i]=n[r],n[r]=e,s-=1,p-=1}else if(8!==s)throw new a;return o}function Cr(t){var n=10,i=Fi;return Bi.test(t)?(t=t.slice(2),n=16,i=Pi):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,i=ji),""===t?0:i.test(t)?l(t,n):void 0}var xr={ao:4},Br=/[\0\t\n\r #%/:?@\[\\\]]/,Fr=/[\0\t\n\r #/:?@\[\\\]]/;function Pr(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new a("Invalid IPv6 address");return{ao:2,do:Dr(t.slice(1,-1))}}if(!n)return function(t){if(Fr.test(t))throw new a("Invalid code point in opaque host");var n=Ar(t,_r);return""===n?xr:{ao:3,jr:n}}(t);var i=function(t){return function(t){return vr(t.toLowerCase())}(t)}(Nr(t));if(Br.test(i))throw new a("Invalid code point in host");var r=function(t){var n=t.split(".");if(""===n[n.length-1]&&n.pop(),!(n.length>4)){for(var i=[],r=0;r<n.length;r++){var e=n[r];if(""===e)return;var u=Cr(e);if(void 0===u)return;i.push(u)}for(var o=0;o<i.length-1;o++)if(i[o]>255)throw new a;if(i[i.length-1]>=v.pow(256,5-i.length))throw new a;for(var s=i.pop(),f=0;f<i.length;f++)s+=i[f]*v.pow(256,3-f);return s}}(i);return void 0!==r?{ao:1,do:r}:""===i?xr:{ao:0,_o:i}}function jr(t){switch(t.ao){case 0:return t._o;case 1:return function(t){for(var n=[],i=t,r=1;r<=4;r++)n.push(""+(255&i)),4!==r&&n.push("."),i>>>=8;return n.reverse().join("")}(t.do);case 2:return"["+function(t){for(var n="",i=function(t){for(var n=0,i=0,r=0,e=0,u=0;u<8;u++)0===t[u]?(0===e&&(r=u),e++):(e>i&&(n=r,i=e),e=0);return e>i&&(n=r,i=e),i>1?n:null}(t),r=!1,e=0;e<8;e++){if(r){if(0===t[e])continue;r=!1}i!==e?(n+=t[e].toString(16),7!==e&&(n+=":")):(n+=0===e?"::":":",r=!0)}return n}(t.do)+"]";case 3:return t.jr;case 4:return""}}var Ur=/\+/g;function Lr(t){for(var n=t.split("&"),i=[],r=0;r<n.length;r++){var e=n[r];if(""!==e){var u=e.indexOf("="),o=void 0,s=void 0;-1!==u?(o=e.slice(0,u),s=e.slice(u+1)):(o=e,s=""),o=o.replace(Ur," "),s=s.replace(Ur," ");var f=Nr(o),c=Nr(s);i.push([f,c])}}return i}function Mr(t){for(var n="",i=0;i<t.length;i++){var r=t[i];i>0&&(n+="&"),n+=qr(pr(or(r[0])))+"="+qr(pr(or(r[1])))}return n}function qr(t){for(var n,i=[],r=0;r<t.length;r++){var e=t[r];32===e?i.push(43):42===(n=e)||45===n||46===n||95===n||Vi(n)?i.push(e):i.push.apply(i,mr(e))}return Qi(i)}var Wr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function Xr(t){var n=""+t,i=Wr.exec(n);return i?function(t,n){for(var i=t.length,r=[],e=n;e<i;e++){var u=t.charCodeAt(e);if(Vr(u))if(Gr(u)||e===i-1)r.push(Hr);else{var o=t.charCodeAt(e+1);Gr(o)?(r.push(u,o),e++):r.push(Hr)}else r.push(u)}return t.slice(0,n)+Qi(r)}(n,i.index):n}var Hr=65533,Vr=function(t){return 55296==(63488&t)},Gr=function(t){return 0!=(1024&t)};function zr(t,n){var i=t[0],r=n[0];return i===r?0:i<r?-1:1}function Yr(t){t.mo.length=0}function Kr(t,n){!function(t,n){for(var i=0;i<n.length;i++)t[i]=n[i];t.length=n.length}(t.mo,Lr(n))}function $r(t){if(t.po){var n=Mr(t.mo);""===n&&(n=null),t.po.po.Ao=n}}var Jr=function(){function t(t){if(void 0===t&&(t=void 0),this.po=null,null==t)this.mo=[];else if("object"==typeof t||"function"==typeof t)if((u=t)instanceof Jr&&Li(u.mo)&&(!Mi||u[Symbol.iterator]===Zr))this.mo=t.mo.slice();else if(function(t){return null!=t&&(!!Li(t)||!!Mi&&"function"==typeof t[Symbol.iterator])}(t)){this.mo=[];for(var n=0,i=qi(t);n<i.length;n++){var r=qi(i[n]);if(2!==r.length)throw new a("Invalid name-value pair");this.mo.push([Xr(r[0]),Xr(r[1])])}}else for(var e in this.mo=[],t)h.prototype.hasOwnProperty.call(t,e)&&this.mo.push([Xr(e),Xr(t[e])]);else(t=Xr(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.mo=Lr(t);var u}var n=t.prototype;return n.append=function(t,n){t=Xr(t),n=Xr(n),this.mo.push([t,n]),$r(this)},n.delete=function(t){t=Xr(t);for(var n=this.mo,i=0;i<n.length;){n[i][0]===t?n.splice(i,1):i++}$r(this)},n.get=function(t){t=Xr(t);for(var n=this.mo,i=0;i<n.length;i++){var r=n[i];if(r[0]===t)return r[1]}return null},n.getAll=function(t){t=Xr(t);for(var n=this.mo,i=[],r=0;r<n.length;r++){var e=n[r];e[0]===t&&i.push(e[1])}return i},n.has=function(t){t=Xr(t);for(var n=this.mo,i=0;i<n.length;i++){if(n[i][0]===t)return!0}return!1},n.set=function(t,n){t=Xr(t),n=Xr(n);for(var i=this.mo,r=!1,e=0;e<i.length;){var u=i[e];u[0]===t?r?i.splice(e,1):(u[1]=n,r=!0,e++):e++}r||i.push([t,n]),$r(this)},n.sort=function(){Oi(this.mo,zr),$r(this)},n.toString=function(){return Mr(this.mo)},n.entries=function(){return new ie(this.mo,Qr)},n.keys=function(){return new ie(this.mo,te)},n.values=function(){return new ie(this.mo,ne)},n.forEach=function(t){var n=this;this.mo.forEach(function(i){return t(i[1],i[0],n)})},t}(),Zr=Jr.prototype.entries;Mi&&(Jr.prototype[Symbol.iterator]=Zr);var Qr=function(t){return[t[0],t[1]]},te=function(t){return t[0]},ne=function(t){return t[1]},ie=function(){function t(t,n){this.To=0,this.mo=t,this.So=n}return t.prototype.next=function(){return this.To<this.mo.length?{done:!1,value:this.So(this.mo[this.To++])}:{done:!0,value:void 0}},t}(),re="null";var ee=h.create(null);ee.ftp=21,ee.file=0,ee.gopher=70,ee.http=80,ee.https=443,ee.ws=80,ee.wss=443;var ue=/^(?:\.|%2e)$/i,oe=/^(?:\.|%2e){2}$/i;function se(t){return ue.test(t)}function fe(t){return oe.test(t)}function ce(t){return void 0!==ee[t]}function ae(t){return ce(t.Eo)}function he(t){return""!==t.Io||""!==t.Ro}function ve(t){var n=t.length;if(!(n>=2))return!1;if(!de(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 le(t){return 2===t.length&&Di.test(t[0])&&(":"===t[1]||"|"===t[1])}function de(t){return 2===t.length&&le(Qi(t))}function we(t){return le(t)&&":"===t[1]}function ye(t){var n=t.No;0!==n.length&&("file"===t.Eo&&1===n.length&&we(n[0])||n.pop())}function pe(t){return null===t.Do||xr===t.Do||t.Co||"file"===t.Eo}var be=-1,ge=/\t|\n|\r/g,me=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function _e(t,n,i,r){void 0===i&&(i=null),void 0===r&&(r=null),i||(i=new Se,t=t.replace(me,""));var e=null!==r?r:0;n=n||null;for(var u=[],o=!1,s=!1,f=!1,c=or(t=t.replace(ge,"")),h=c.length,v=0;v<=h;){var d=v<h?c[v]:be;switch(e){case 0:if(!Xi(d)){if(null===r){u.length=0,e=2;continue}throw new a("Invalid scheme")}u.push(zi(d)),e=1;break;case 1:if(Vi(d)||43===d||45===d||46===d)u.push(zi(d));else{if(58!==d){if(null===r){u.length=0,e=2,v=0;continue}throw new a("Invalid scheme")}var w=lr(u);if(null!==r){if(ce(i.Eo)&&!ce(w))return;if(!ce(i.Eo)&&ce(w))return;if((he(i)||null!==i.Po)&&"file"===w)return;if("file"===i.Eo&&(i.Do===xr||null===i.Do))return}if(i.Eo=w,null!==r)return void(ae(i)&&i.Po===ee[i.Eo]&&(i.Po=null));u.length=0,"file"===i.Eo?e=13:ae(i)&&n&&n.Eo===i.Eo?e=3:ae(i)?e=7:47===c[v+1]?(e=4,v+=1):(i.Co=!0,i.No.push(""),e=18)}break;case 2:if(!n||n.Co&&35!==d)throw new a("Invalid scheme");n.Co&&35===d?(i.Eo=n.Eo,i.No=n.No.slice(),i.Ao=n.Ao,i.Oo="",i.Co=!0,e=20):"file"!==n.Eo?(e=5,v-=1):(e=13,v-=1);break;case 3:47===d&&47===c[v+1]?e=8:(e=5,v-=1);break;case 4:47===d?e=9:(e=17,v-=1);break;case 5:i.Eo=n.Eo,be===d?(i.Io=n.Io,i.Ro=n.Ro,i.Do=n.Do,i.Po=n.Po,i.No=n.No.slice(),i.Ao=n.Ao):47===d?e=6:63===d?(i.Io=n.Io,i.Ro=n.Ro,i.Do=n.Do,i.Po=n.Po,i.No=n.No.slice(),i.Ao="",e=19):35===d?(i.Io=n.Io,i.Ro=n.Ro,i.Do=n.Do,i.Po=n.Po,i.No=n.No.slice(),i.Ao=n.Ao,i.Oo="",e=20):92===d&&ae(i)?e=6:(i.Io=n.Io,i.Ro=n.Ro,i.Do=n.Do,i.Po=n.Po,i.No=n.No.slice(),i.No.pop(),e=17,v-=1);break;case 6:!ae(i)||47!==d&&92!==d?47===d?e=9:(i.Io=n.Io,i.Ro=n.Ro,i.Do=n.Do,i.Po=n.Po,e=17,v-=1):e=8;break;case 7:if(47!==d||47!==c[v+1]){e=8;continue}e=8,v+=1;break;case 8:47!==d&&92!==d&&(e=9,v-=1);break;case 9:if(64===d){o&&u.unshift(37,52,48),o=!0;for(var y=0;y<u.length;y++){var p=u[y];if(58!==p||f){var b=lr(kr(p,Ir));f?i.Ro+=b:i.Io+=b}else f=!0}u.length=0}else if(be===d||47===d||63===d||35===d||ae(i)&&92===d){if(o&&0===u.length)throw new a("Invalid host");v-=u.length+1,u.length=0,e=10}else u.push(d);break;case 10:case 11:if(null!==r&&"file"===i.Eo)v-=1,e=15;else if(58!==d||s)if(be===d||47===d||63===d||35===d||ae(i)&&92===d){if(v-=1,ae(i)&&0===u.length)throw new a("Invalid host");if(null!==r&&0===u.length&&(he(i)||null!==i.Po))return;var g=Pr(lr(u),ae(i));if(i.Do=g,u.length=0,e=16,null!==r)return}else 91===d?s=!0:93===d&&(s=!1),u.push(d);else{if(0===u.length)throw new a("Invalid host");var m=Pr(lr(u),ae(i));if(i.Do=m,u.length=0,e=12,11===r)return}break;case 12:if(Hi(d))u.push(d);else{if(!(be===d||47===d||63===d||35===d||ae(i)&&92===d||null!==r))throw new a("Invalid port");if(0!==u.length){var _=l(lr(u),10);if(_>65535)throw new a("Invalid port");i.Po=_===ee[i.Eo]?null:_,u.length=0}if(null!==r)return;e=16,v-=1}break;case 13:i.Eo="file",47===d||92===d?e=14:n&&"file"===n.Eo?be===d?(i.Do=n.Do,i.No=n.No.slice(),i.Ao=n.Ao):63===d?(i.Do=n.Do,i.No=n.No.slice(),i.Ao="",e=19):35===d?(i.Do=n.Do,i.No=n.No.slice(),i.Ao=n.Ao,i.Oo="",e=20):(ve(c.slice(v))||(i.Do=n.Do,i.No=n.No.slice(),ye(i)),e=17,v-=1):(e=17,v-=1);break;case 14:47===d||92===d?e=15:(n&&"file"===n.Eo&&!ve(c.slice(v))&&(we(n.No[0])?i.No.push(n.No[0]):i.Do=n.Do),e=17,v-=1);break;case 15:if(be===d||47===d||92===d||63===d||35===d)if(v-=1,null===r&&de(u))e=17;else if(0===u.length){if(i.Do=xr,null!==r)return;e=16}else{var E=Pr(lr(u),ae(i));if(0===E.ao&&"localhost"===E._o&&(E=xr),i.Do=E,null!==r)return;u.length=0,e=16}else u.push(d);break;case 16:ae(i)?(e=17,47!==d&&92!==d&&(v-=1)):null===r&&63===d?(i.Ao="",e=19):null===r&&35===d?(i.Oo="",e=20):be!==d&&(e=17,47!==d&&(v-=1));break;case 17:if(be===d||47===d||ae(i)&&92===d||null===r&&(63===d||35===d)){var S=lr(u);if(fe(S)?(ye(i),47===d||ae(i)&&92===d||i.No.push("")):!se(S)||47===d||ae(i)&&92===d?se(S)||("file"===i.Eo&&0===i.No.length&&de(u)&&(xr!==i.Do&&null!==i.Do&&(i.Do=xr),u[1]=58,S=lr(u)),i.No.push(S)):i.No.push(""),u.length=0,"file"===i.Eo&&(be===d||63===d||35===d))for(;i.No.length>1&&""===i.No[0];)i.No.shift();63===d?(i.Ao="",e=19):35===d&&(i.Oo="",e=20)}else u.push.apply(u,kr(d,Sr));break;case 18:63===d?(i.Ao="",e=19):35===d?(i.Oo="",e=20):be!==d&&(i.No[0]+=lr(kr(d,_r)));break;case 19:null===r&&35===d?(i.Oo="",e=20):be!==d&&(i.Ao+=lr(kr(d,ae(i)?Tr:Rr)));break;case 20:be===d||0===d||(i.Oo+=lr(kr(d,Er)))}v++}return i}function Ee(t,n,i,r){try{_e(t,n,i,r)}catch(t){}}var Se=function(){this.Eo="",this.Io="",this.Ro="",this.Do=null,this.Po=null,this.No=[],this.Ao=null,this.Oo=null,this.Co=!1};function Ie(t){switch(t.Eo){case"blob":var n;try{n=_e(t.No[0],null)}catch(t){return re}return Ie(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return i=t.Eo,r=t.Do,e=t.Po,i+"://"+jr(r)+(null===e?"":":"+e);case"file":default:return re}var i,r,e}var Re,Te,ke=function(){function t(t,n){var i,r,e=null;if(null!=n)if(null!=(i=n)&&i instanceof ke&&"object"==typeof i.po)e=n.po;else try{e=_e(String(n),null)}catch(t){throw new a("Invalid base URL: "+t.message)}try{r=_e(String(t),e)}catch(t){throw new a("Invalid URL: "+t.message)}var u=r.Ao;this.po=r,this.Ao=function(t){var n=new Jr;return null!==t&&Kr(n,t),n}(u),this.Ao.po=this}var n,i,r,e=t.prototype;return e.toString=function(){return this.href},e.toJSON=function(){return this.href},n=t,(i=[{key:"href",get:function(){return function(t,n){void 0===n&&(n=!1);var i=t.Eo+":";if(null!==t.Do?(i+="//",he(t)&&(i+=t.Io,""!==t.Ro&&(i+=":"+t.Ro),i+="@"),i+=jr(t.Do),null!==t.Po&&(i+=":"+t.Po)):null===t.Do&&"file"===t.Eo&&(i+="//"),t.Co)i+=t.No[0];else for(var r=0,e=t.No;r<e.length;r++)i+="/"+e[r];return null!==t.Ao&&(i+="?"+t.Ao),n||null===t.Oo||(i+="#"+t.Oo),i}(this.po)},set:function(t){var n;try{n=_e(String(t),null)}catch(t){throw new a("Invalid URL: "+t.message)}this.po=n,Yr(this.Ao);var i=this.po.Ao;null!==i&&Kr(this.Ao,i)}},{key:"origin",get:function(){return Ie(this.po)}},{key:"protocol",get:function(){return this.po.Eo+":"},set:function(t){Ee(t+":",null,this.po,0)}},{key:"username",get:function(){return this.po.Io},set:function(t){pe(this.po)||(this.po.Io=Ar(t,Ir))}},{key:"password",get:function(){return this.po.Ro},set:function(t){pe(this.po)||(this.po.Ro=Ar(t,Ir))}},{key:"host",get:function(){var t=this.po,n=t.Do;if(null===n)return"";var i=t.Po,r=jr(n);return null!==i&&(r+=":"+i),r},set:function(t){this.po.Co||Ee(t,null,this.po,10)}},{key:"hostname",get:function(){var t=this.po.Do;return null===t?"":jr(t)},set:function(t){this.po.Co||Ee(t,null,this.po,11)}},{key:"port",get:function(){var t=this.po.Po;return null===t?"":""+t},set:function(t){pe(this.po)||(""===t?this.po.Po=null:Ee(t,null,this.po,12))}},{key:"pathname",get:function(){var t=this.po.No;return this.po.Co?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.po.Co||(this.po.No.length=0,Ee(t,null,this.po,16))}},{key:"search",get:function(){var t=this.po.Ao;return null===t||""===t?"":"?"+t},set:function(t){t=Xr(t);var n=this.po;if(""===t)return n.Ao=null,void Yr(this.Ao);"?"===t[0]&&(t=t.slice(1)),n.Ao="",Ee(t,null,n,19),Kr(this.Ao,t)}},{key:"searchParams",get:function(){return this.Ao}},{key:"hash",get:function(){var t=this.po.Oo;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.po.Oo="",Ee(t,null,this.po,20)):this.po.Oo=null}}])&&Ai(n.prototype,i),r&&Ai(n,r),t}();function Ae(t){return t.document&&t.document.baseURI||t.location.href||""}function Oe(){return void 0!==r?r.createElement("video"):void 0}function Ne(){return Te||(Te=Oe()),Te}var De=!!("ontouchstart"in t||t.DocumentTouch&&r instanceof t.DocumentTouch)||!(!e||!e.msMaxTouchPoints),Ce=Ne(),xe=!(!Ce||!Ce.webkitShowPlaybackTargetPicker),Be=function(){function t(){this.Bo=void 0,this.Lo=!1,this._s=De,this.Bs=!1,this.xo=!0,this.Mo=!0}var n=t.prototype;return n.Fo=function(){return 0},n.Uo=function(t,n){return!0},n.Ho=function(t){return t>=1/6*2},q(t,[{key:"Vo",get:function(){return void 0===this.Bo&&(this.Bo=this.Fo()),this.Bo}},{key:"Xo",get:function(){return i.devicePixelRatio||1}},{key:"zo",get:function(){return xe}},{key:"qo",get:function(){return!1}},{key:"Go",get:function(){return!0}},{key:"Wo",get:function(){return ri.gs||ri.Cs}},{key:"jo",get:function(){return!0}},{key:"Yo",get:function(){return!0}},{key:"Qo",get:function(){}},{key:"Ko",get:function(){return!0}}]),t}(),Fe=function(){var t=Oe();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(ri.Ns)return!1;var t=Oe();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var Pe=function(t){function n(n){var i;return(i=t.call(this)||this).Zo=void 0,i.Zo=n,i.Zo&&(i.Lo=i.Zo.Lo,i._s=i.Zo._s,i.xo=Fe&&i.Zo.xo),i}ft(n,t);var i=n.prototype;return i.Fo=function(){return this.Zo?this.Zo.Vo:t.prototype.Fo.call(this)},i.Uo=function(n,i){return this.Zo?this.Zo.Uo(n,i):t.prototype.Uo.call(this,n,i)},i.Ho=function(n){return this.Zo?this.Zo.Ho(n):t.prototype.Ho.call(this,n)},q(n,[{key:"Qo",get:function(){var t;return null==(t=this.Zo)?void 0:t.Qo}},{key:"Ko",get:function(){var t,n;return null==(t=null==(n=this.Zo)?void 0:n.Ko)||t}}]),n}(Be),je=function(t){function n(n){var i;return(i=t.call(this,n)||this).Lo=!0,i.Bs=!0,i}return ft(n,t),n}(Pe),Ue=function(t){function n(){return t.apply(this,arguments)||this}return ft(n,t),n.prototype.Fo=function(){if(!Re.MediaSource)return 1},n}(je),Le=function(t){function n(){return t.apply(this,arguments)||this}return ft(n,t),n.prototype.Uo=function(n,i){return!(i.Jo>1920)&&t.prototype.Uo.call(this,n,i)},q(n,[{key:"qo",get:function(){return ri.Vs<3}},{key:"Go",get:function(){return ri.Vs>=3}}]),n}(Pe),Me=function(t){function n(){return t.call(this)||this}return ft(n,t),n}(Be),qe=function(t){function n(){return t.apply(this,arguments)||this}return ft(n,t),n.prototype.Uo=function(t,n){if(t&&t.$o&&n&&n.$o){var i=We(t.$o,"mp4a.40.2")&&We(n.$o,"mp4a.40.5"),r=We(t.$o,"mp4a.40.5")&&We(n.$o,"mp4a.40.2"),e=We(t.$o,"mp4a.40.2")&&We(n.$o,"mp4a.40.34"),u=We(t.$o,"mp4a.40.34")&&We(n.$o,"mp4a.40.2"),o=We(t.$o,"mp4a.40.5")&&We(n.$o,"mp4a.40.34"),s=We(t.$o,"mp4a.40.34")&&We(n.$o,"mp4a.40.5");return!(i||r||e||u||o||s)}return!0},q(n,[{key:"Qo",get:function(){if(ri.gs)return 4096}}]),n}(Me);function We(t,n){return t.indexOf(n)>-1}var Xe=function(t){function n(){return t.apply(this,arguments)||this}return ft(n,t),n.prototype.Ho=function(t){return t>=2},n}(Me),He=function(t){function n(){var n;return(n=t.call(this)||this).Lo=ri.Ks>=11,n.xo=ri.Qs&&!(ri.Cs&&ri.Ks<10),n}return ft(n,t),n}(Me),Ve=function(t){function n(){return t.apply(this,arguments)||this}return ft(n,t),q(n,[{key:"jo",get:function(){return!1}}]),n}(Pe),Ge=function(t){function n(){return t.apply(this,arguments)||this}return ft(n,t),q(n,[{key:"Ko",get:function(){return!ri.ys||!!ri.Fs&&92!==ri.Us}}]),n}(Me),ze=function(){function n(){var n;this.nh=void 0,this.ih=new pi,this.rh=new Ye,this.eh=(n=function(){if(ri.js)return new qe;if(ri.zs||ri.qs)return new Xe;if(ri.Qs)return new He;if(ri.xs)return new Ge;return new Me}(),ri.Cs?new Ue(n):ri.Bs?new je(n):ri.Hs?new Le(n):ri.Xs?new Ve(n):new Pe(n)),this.sh=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.nh=function(){return t.performance.now()}:this.nh=di}var i=n.prototype;return i.uh=function(){ai.apply(void 0,arguments)},i.oh=function(){hi.apply(void 0,arguments)},i.ah=function(){vi.apply(void 0,arguments)},i.fh=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];li.apply(void 0,[t].concat(i))},i.Jr=function(t,n){return u(t,n)},i.vh=function(t,n){return s(t,n)},i.Zr=function(t){o(t)},i.dh=function(t){f(t)},i.Eu=function(t){return this.ih.Eu(t)},i.lh=function(){return this._h.lh()},i.gh=function(){return this._h.gh()},i.wh=function(){return this._h.wh()},i.yh=function(){return this._h.yh()},i.kh=function(){return this._h.kh()},i.ph=function(t,n){return this._h.ph(t,n)},i.Ah=function(t){return this._h.Ah(t)},i.Th=function(t,n){var i;return void 0===n&&(n=Ae(Re)),i="object"!=typeof n||n instanceof ke?n:n.href,new ke(t,i)},i.Sh=function(n,i){if(void 0===i&&(i=Ae(Re)),this.sh){var r="string"==typeof i?i:i.toString();return new t.URL(n,r).href}return this.Th(n,i).href},q(n,[{key:"Eh",get:function(){return this.rh}},{key:"Ih",get:function(){return this.eh}},{key:"Rh",get:function(){return{Nh:e&&e.userAgent.match(/Android /i)?"Android":"other",Dh:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"Ch",get:function(){return t&&t.location&&"https:"===t.location.protocol}},{key:"Ph",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),Ye=function(){function t(){}return q(t,[{key:"Oh",get:function(){return e.oscpu}},{key:"Ih",get:function(){return e.platform}},{key:"Bh",get:function(){return e.vendor}},{key:"Lh",get:function(){return e.vendorSub}}]),t}();function Ke(){return(Ke=h.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)h.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var $e,Je="com.microsoft.playready",Ze="94ce86fb-07ff-4f43-adb8-93d2fa968ca2",Qe="urn:uuid:"+Ze,tu="com.apple.fps.1_0";!function(t){t.Gh="playready",t.Wh="widevine",t.jh="fairplay",t.Yh="clearkey",t.Qh="aes128"}($e||($e={}));var nu={Kh:$e.Gh,Zh:Je,Jh:"cenc",$h:"9a04f079-9840-4286-ab92-e65be0885f95",ra:"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95",ea:"PlayReady"},iu={Kh:$e.Wh,Zh:"com.widevine.alpha",Jh:"cenc",$h:"edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",ra:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",ea:"Widevine"},ru={Kh:$e.jh,Zh:tu,Jh:"skd",$h:Ze,ra:Qe,ea:"FairPlay"},eu=($e.jh,{Kh:$e.Yh,Zh:"org.w3.clearkey",Jh:"cenc",$h:"1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",ra:"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",ea:"ClearKey"}),uu=ri.xs&&ri.Ms>=42||ri.js&&ri.Ys>=38||ri.zs||ri.Gs||ri.Zs&&ri.Js>=29;function ou(t,n){return r="audio",null!=(i=t)&&-1!==i.indexOf(r)?{initDataTypes:["cenc"],audioCapabilities:[Ke({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[Ke({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]};var i,r}var su,fu=function(){function t(t){this.ua=void 0,this.oa=X(),this.va=void 0,this.ua=t}var n=t.prototype;return n.kh=function(){return this.Ah(iu)},n.gh=function(){return this.Ah(eu)},n.yh=function(){return this.Ah(nu)},n.wh=function(){return this.Ah(ru)},n.Ah=function(t){var n=t.ra,i=this.oa.get(n);if(i)return i;var r=this.ph(t,'video/mp4; codecs="avc1.42000a"');return this.oa.set(n,r),r},n.ph=function(){var t=E.coroutine(_.mark(function t(n,i){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.ua._a(n.Zh,[ou(i,!0)]);case 3:return t.abrupt("return",!0);case 6:return t.prev=6,t.t0=t.catch(0),t.prev=8,t.next=11,this.ua._a(n.Zh,[ou(i,!1)]);case 11:return t.abrupt("return",!0);case 14:return t.prev=14,t.t1=t.catch(8),t.abrupt("return",!1);case 17:case"end":return t.stop()}},t,this,[[0,6],[8,14]])}));return function(n,i){return t.apply(this,arguments)}}(),n.lh=function(){return this.va||(this.va=this.ma()),this.va},n.ma=function(){var t=E.coroutine(_.mark(function t(){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("https:"!==(void 0).protocol){t.next=2;break}case 2:if(uu){t.next=4;break}return t.abrupt("return",!1);case 4:return t.next=6,this.gh();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()}},t,this)}));return function(){return t.apply(this,arguments)}}(),t}(),cu=["cenc"],au=function(t){function n(n){var i;return(i=t.call(this,"rc")||this).ic=n,i}return ft(n,t),n}(Pn),hu=function(t){function n(n,i,r,e){var u;return(u=t.call(this,"ec")||this).ic=n,u.uc=i,u.ec=r,u.hc=e,u}return ft(n,t),n}(Pn);!function(t){t.cc="fc",t.vc="dc"}(su||(su={}));var vu=new y([0]).buffer,lu=function(){function t(){this._c=void 0,this._c=[]}var n=t.prototype;return n.gc=function(t){for(var n=0,i=this._c;n<i.length;n++){if(i[n][0]===t)return!0}return!1},n.wc=function(t){for(var n=0,i=this._c;n<i.length;n++){var r=i[n];if(r[0]===t)return r[1]}},n.mc=function(t,n){this._c.forEach(function(n){return t(n[1],n[0])},n)},n.yc=function(t,n){this._c.push([t,n])},n.kc=function(){F(this._c)},q(t,[{key:"pc",get:function(){return this._c.length}}]),t}(),du=function(){function t(){var t=this;this.Dc=void 0,this.wi=void 0,this.J=void 0,this.Dc=new E(function(n,i){t.wi=n,t.J=i})}var n=t.prototype;return n.Cc=function(t){this.wi&&(this.wi(t),this.Da())},n.Pc=function(t){this.J&&(this.J(t),this.Da())},n.xa=function(){this.Dc.catch(P),this.Pc(new Qt)},n.Da=function(){this.wi=void 0,this.J=void 0},t}();function wu(t,n){return t===Je?function(t){if(t.byteLength<2*yu.length)return t;if(mn(new DataView(t,0,2*yu.length),!0)===yu)return t;return n=t,_n('<PlayReadyKeyMessage type="LicenseAcquisition"><LicenseAcquisition Version="1"><Challenge encoding="base64encoded">'+Cn(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 yu="<PlayReady";var pu=function(t){function n(n,i,r,e){var u;return(u=t.call(this,n,e)||this).Oc=void 0,u.Bc=void 0,u.Oc=i,u.Bc=r,u}return ft(n,t),n}($t),bu=function(t){function n(n,i){var r;(r=t.call(this)||this).Lc=void 0,r.xc=!1,r.Mc=void 0,r.Fc=void 0,r.Uc=function(){r.Hc()},r.Vc=function(t){r.Ga(new hu(Yt(r),t.messageType,wu(r.Xc,t.message)))},r.zc=function(){r.xc=!0,r.Lc.pc>0&&(r.Lc.kc(),r.Ga(new au(Yt(r)))),r.qc.removeEventListener("keystatuseschange",r.Uc),r.qc.removeEventListener("message",r.Vc)},r.qc=n,r.Xc=i,r.qc.addEventListener("keystatuseschange",r.Uc),r.qc.addEventListener("message",r.Vc),r.Lc=new lu;var e=[];return r.qc.closed&&e.push(E.resolve(r.qc.closed)),r.Fc=new du,e.push(r.Fc.Dc),r.Mc=E.race(e).then(r.zc,r.zc),r.Hc(),r}ft(n,t);var i=n.prototype;return i.Gc=function(){if(this.xc)return this.Mc;var t,n,i=[];return i.push(E.resolve(this.qc.close())),i.push((t=1e3,new E(function(i,r){if(void 0!==n&&n.Sa)r(new Qt);else{var e=m.Jr(function(){void 0!==n&&n.Pa(u),i()},t),u=function(){m.Zr(e),r(new Qt)};void 0!==n&&n.Ca(u)}}))),this.Fc.Cc(E.race(i).catch(gu)),this.xc=!0,this.Mc},i.Wc=function(t,n,i){return E.resolve(this.qc.generateRequest(t,n)).catch(gu)},i.jc=function(t){return E.resolve(this.qc.load(t)).catch(gu)},i.Yc=function(){return E.resolve(this.qc.remove()).catch(gu)},i.Qc=function(t){return E.resolve(this.qc.update(t)).catch(gu)},i.Hc=function(){var t=this;this.Lc.kc(),this.qc.keyStatuses.forEach(function(n,i){t.Kc(i,n)}),this.Ga(new au(this))},i.Kc=function(t,n){if("string"==typeof t){var i=t;t=n,n=i}var r=Tn(t);if(this.Xc===Je&&16===r.byteLength){var e=In(r),u=e.getUint32(0,!0),o=e.getUint16(4,!0),s=e.getUint16(6,!0);e.setUint32(0,u,!1),e.setUint16(4,o,!1),e.setUint16(6,s,!1)}this.Xc===Je&&"status-pending"===n&&(n="usable"),this.Lc.yc(r,n)},q(n,[{key:"Zc",get:function(){return this.Mc}},{key:"Jc",get:function(){return this.qc.expiration}},{key:"$c",get:function(){return this.Lc}},{key:"tf",get:function(){return this.qc.sessionId}}]),n}(Fn);function gu(t){var n;if(t.message){var i=t.message.match(/^SystemCode:0x([0-9a-fA-F]+)$/);i&&(n=0|l(i[1],16))}throw new pu(t.message,void 0,n,t)}var mu=function(){function t(t,n,i){this.nf=t,this.if=n,this.rf=i}var n=t.prototype;return n.ef=function(){var t=E.coroutine(_.mark(function t(n){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new bu(this.nf.createSession(n),this.if));case 1:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),n.sf=function(t){return E.resolve(this.nf.setServerCertificate(t))},n.uf=function(t){return E.resolve(t.setMediaKeys(this.nf))},n.hf=function(t){return E.resolve(t.setMediaKeys(null))},t}(),_u=function(){function t(t,n,i){this.cf=t,this.Xc=n,this.vf=i}var n=t.prototype;return n.df=function(){var t=E.coroutine(_.mark(function t(){var n;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.cf.createMediaKeys();case 2:return n=t.sent,t.abrupt("return",new mu(n,this.Xc,this.vf));case 4:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),n.lf=function(){return this.vf},q(t,[{key:"if",get:function(){return this.cf.keySystem}}]),t}();function Eu(t,n,i,r){var e=!1;if(!(r.persistentState&&"optional"!==r.persistentState||r.distinctiveIdentifier&&"optional"!==r.distinctiveIdentifier)){var u={audioCapabilities:[],videoCapabilities:[],persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",initDataTypes:r.initDataTypes,sessionTypes:["temporary"],label:r.label,wf:r.wf},o=!1;if(r.audioCapabilities){var s=r.audioCapabilities.filter(function(t){return Boolean(t.contentType)});s.length&&(u.audioCapabilities=s.filter(function(r){return Su(t,n,i,r)}),o=!0,u.audioCapabilities.length&&(e=!0))}if(r.videoCapabilities){var f=r.videoCapabilities.filter(function(t){return Boolean(t.contentType)});f.length&&(u.videoCapabilities=f.filter(function(r){return Su(t,n,i,r)}),o=!0,u.videoCapabilities.length&&(e=!0))}return o||(e=t(i,"video/mp4")),e?u:void 0}}function Su(t,n,i,r){return!!r.contentType&&(!(r.encryptionScheme&&!B(n,r.encryptionScheme))&&(!r.robustness&&t(i,(e=r.contentType,u=e.trim(),(o=u.indexOf(";"))<0?u:u.substr(0,o).trim()))));var e,u,o}function Iu(t){for(var n=[],i=0;i<t.length;i++){var r=t[i];r.encryptionScheme&&n.push({contentType:r.contentType,robustness:r.robustness})}return t.concat(n)}function Ru(t){return!(!t.audioCapabilities||!t.audioCapabilities.some(Tu))||!(!t.videoCapabilities||!t.videoCapabilities.some(Tu))}function Tu(t){return!t.robustness}function ku(t,n){for(var i=[],r=0;r<t.length;r++){var e=t[r];e.robustness?i.push(e):i.push(Ke({},e,{robustness:n}))}return i}var Au,Ou,Nu=function(){function t(){}return t.prototype._a=function(){var t=E.coroutine(_.mark(function t(n,i){var r,u,o,s,f,c,a,h;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(i=i.filter(function(t){return!t.wf}),r=0,u=i;r<u.length;r++)(o=u[r]).audioCapabilities&&(o.audioCapabilities=Iu(o.audioCapabilities)),o.videoCapabilities&&(o.videoCapabilities=Iu(o.videoCapabilities));if("com.widevine.alpha"!==n||!i.some(Ru)){t.next=14;break}return s=i.map(function(t){return i="SW_SECURE_CRYPTO",Ke({},n=t,{videoCapabilities:n.videoCapabilities?ku(n.videoCapabilities,i):void 0,audioCapabilities:n.audioCapabilities?ku(n.audioCapabilities,i):void 0});var n,i}),t.prev=4,t.next=7,e.requestMediaKeySystemAccess(n,s);case 7:return f=t.sent,c=f.getConfiguration(),t.abrupt("return",new _u(f,n,c));case 12:t.prev=12,t.t0=t.catch(4);case 14:return t.next=16,e.requestMediaKeySystemAccess(n,i);case 16:return a=t.sent,h=a.getConfiguration(),t.abrupt("return",new _u(a,n,h));case 19:case"end":return t.stop()}},t,null,[[4,12]])}));return function(n,i){return t.apply(this,arguments)}}(),t.mf=function(){return void 0!==e&&"function"==typeof e.requestMediaKeySystemAccess},t}(),Du=function(){function t(){}return t.prototype._a=function(t,n){try{return E.resolve(function(t,n){if(!Cu())throw new a("Unsupported key system "+t)}(t))}catch(t){return E.reject(t)}},t.mf=function(){return Cu()},t}();function Cu(){return void 0!==Re.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.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"}(Au||(Au={})),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"}(Ou||(Ou={})),function(t){(Ou||(Ou={})).fromCode=function(t){var n=v.floor(t/1e3);if(n in Ou)return n;throw new a("Invalid error code: "+t)}}();var xu=function(){function t(){}return t.prototype._a=function(t,n){try{return E.resolve(function(t,n){if(t!==tu)throw new a(t+" is not supported with webkit-prefixed Encrypted Media Extensions.");if(!Bu())throw new a("Unsupported key system "+t)}(t))}catch(t){return E.reject(t)}},t.mf=function(){return Bu()},t}();function Bu(){return void 0!==Re.WebKitMediaKeys}var Fu,Pu=function(){function t(t){this.Uf=t}return t.prototype._a=function(){var t=E.coroutine(_.mark(function t(n,i){var r,e,u;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=0,e=this.Uf;case 1:if(!(r<e.length)){t.next=14;break}return u=e[r],t.prev=3,t.next=6,u._a(n,i);case 6:return t.abrupt("return",t.sent);case 9:t.prev=9,t.t0=t.catch(3);case 11:r++,t.next=1;break;case 14:throw new a("Unsupported key system configuration for "+n);case 15:case"end":return t.stop()}},t,this,[[3,9]])}));return function(n,i){return t.apply(this,arguments)}}(),t}(),ju=function(t){function n(n){var i;return(i=t.call(this)||this).pf=void 0,i.Of=void 0,i.yf=void 0,i.Hf=!1,i.Vf=void 0,i.Xf=void 0,i.zf=void 0,i.qf=void 0,i.Gf=void 0,i.Xc=n,i.yf=new du,i.Xf="",i.Gf=new du,i.zf=new lu,i}ft(n,t);var i=n.prototype;return i.Wf=function(){this.Of&&(this.If("usable"),this.Of.Cc(void 0),this.Of=void 0)},i.jf=function(t){var n=new pu("Unknown CDM error",t.errorCode,t.systemCode);this.Of?(this.Of.Pc(n),this.Of=void 0):this.pf?(this.pf.Pc(n),this.pf=void 0):n.Oc===WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT?this.If("output-restricted"):1===n.Bc?this.If("expired"):this.If("internal-error")},i.Yf=function(t){0!==t.message.byteLength&&(this.pf&&(this.pf.Cc(void 0),this.pf=void 0),this.Ga(new hu(this,"license-request",wu(this.Xc,kn(t.message).buffer),t.defaultURL||void 0)))},i.Qf=function(t){this.qf||(this.qf=t,this.Gf.Cc(t))},i.Gc=function(){var t=E.coroutine(_.mark(function t(){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed(),this.Hf=!0,this.yf.Cc(void 0);case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),i.Wc=function(){var t=E.coroutine(_.mark(function t(n,i){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.throwIfClosed(),this.pf=new du,this.Vf=Tn(i),t.t0=this.qf,t.t0){t.next=8;break}return t.next=7,this.Gf.Dc;case 7:t.t0=t.sent;case 8:return t.t0.webkitGenerateKeyRequest(this.Xc,this.Vf),t.next=12,this.pf.Dc;case 12:case"end":return t.stop()}},t,this)}));return function(n,i){return t.apply(this,arguments)}}(),i.jc=function(){var t=E.coroutine(_.mark(function t(n){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.throwIfClosed(),t.abrupt("return",!1);case 2:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),i.Yc=function(){var t=E.coroutine(_.mark(function t(){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed();case 1:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),i.Qc=function(){var t=E.coroutine(_.mark(function t(n){return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.throwIfClosed(),this.Of=new du,t.t0=this.qf,t.t0){t.next=7;break}return t.next=6,this.Gf.Dc;case 6:t.t0=t.sent;case 7:return t.t0.webkitAddKey(this.Xc,Tn(n),this.Vf,this.tf),t.next=11,this.Of.Dc;case 11:case"end":return t.stop()}},t,this)}));return function(n){return t.apply(this,arguments)}}(),i.throwIfClosed=function(){if(this.Hf)throw new a("Already closing or closed.")},i.If=function(t){this.zf.kc(),this.zf.yc(vu,t),this.Ga(new au(this))},q(n,[{key:"$c",get:function(){return this.zf}},{key:"tf",get:function(){return this.Xf},set:function(t){this.Xf=t}},{key:"Zc",get:function(){return this.yf.Dc}},{key:"Jc",get:function(){return NaN}}]),n}(Fn),Uu=function(){function t(t,n){var i=this;this.qf=void 0,this.Kf=X(),this.Zf=[],this.Ef=function(t){var n=i.Jf(t.sessionId);n&&n.Wf()},this.$f=function(t){var n=i.Jf(t.sessionId);n&&n.jf(t)},this.tv=function(t){var n=i.Jf(t.sessionId);n&&n.Yf(t)},this.if=t,this.rf=n}var n=t.prototype;return n.uf=function(t){return this.qf=t,this.qf.addEventListener("webkitkeyadded",this.Ef),this.qf.addEventListener("webkitkeyerror",this.$f),this.qf.addEventListener("webkitkeymessage",this.tv),this.Kf.forEach(function(n,i){return n.Qf(t)}),this.Zf.forEach(function(n){return n.Qf(t)}),E.resolve()},n.hf=function(t){return t.removeEventListener("webkitkeyadded",this.Ef),t.removeEventListener("webkitkeyerror",this.$f),t.removeEventListener("webkitkeymessage",this.tv),this.qf=void 0,E.resolve()},n.ef=function(){var t=E.coroutine(_.mark(function t(n,i,r){var e;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=new ju(this.if),this.qf&&e.Qf(this.qf),this.Zf.push(e),t.abrupt("return",e);case 4:case"end":return t.stop()}},t,this)}));return function(n,i,r){return t.apply(this,arguments)}}(),n.sf=function(t){return E.resolve(!1)},n.Jf=function(t){if(t){var n=this.Kf.get(t);return n||((n=this.Zf.shift())?(n.tf=t,this.Kf.set(t,n),n):void 0)}},t}(),Lu=function(){function t(t,n){this.if=t,this.rv=n}var n=t.prototype;return n.df=function(){return E.resolve(new Uu(this.if,this.rv))},n.lf=function(){return this.rv},t}(),Mu=function(){function t(){}return t.prototype._a=function(t,n){try{return E.resolve(qu(t,n))}catch(t){return E.reject(t)}},t.mf=function(){return"undefined"!=typeof HTMLMediaElement&&void 0!==HTMLMediaElement.prototype.webkitGenerateKeyRequest&&void 0!==HTMLMediaElement.prototype.webkitAddKey&&void 0!==HTMLMediaElement.prototype.webkitCancelKeyRequest},t}();function qu(t,n){if(!Mu.mf())throw new a("Unsupported key system "+t);for(var i=0;i<n.length;i++){var r=n[i],e=Eu(Wu,cu,t,r);if(e)return new Lu(t,e)}throw new a("Unsupported key system configuration for "+t)}function Wu(t,n){var i=Ne();return!(!i||!i.canPlayType||""===i.canPlayType(n,t))}function Xu(){return Fu||(Fu=function(){var t=[];xu.mf()&&t.push(new xu);Nu.mf()&&t.push(new Nu);Du.mf()&&t.push(new Du);Mu.mf()&&t.push(new Mu);return new Pu(t)}()),Fu}var Hu=function(){function t(){this.ev=X()}var n=t.prototype;return n.kc=function(t){this.ev.delete(t)},n.uv=function(){this.ev.clear()},n.wc=function(t){return this.ev.get(t)},n.ov=function(t,n){this.ev.set(t,n)},t}(),Vu=function(){function t(){}return t.hv=function(){return t.wu||(t.wu=Gu.mf()?new Gu:new Hu),t.wu},t.kc=function(n){t.hv().kc(n)},t.uv=function(){t.hv().uv()},t.wc=function(n){return t.hv().wc(n)},t.ov=function(n,i){t.hv().ov(n,i)},t}();Vu.wu=void 0;var Gu=function(n){function i(){return n.apply(this,arguments)||this}ft(i,n),i.mf=function(){try{return t.sessionStorage.setItem("foobar","foobar"),t.sessionStorage.removeItem("foobar"),!0}catch(t){return!1}};var r=i.prototype;return r.kc=function(n){t.sessionStorage.removeItem(n)},r.uv=function(){t.sessionStorage.clear()},r.wc=function(n){return t.sessionStorage[n]},r.ov=function(n,i){t.sessionStorage[n]=i},i}(Vu);var zu=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 r,e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder;return e?(r=e,function(t,n){var i=new r;if(t)for(var e=0;e<t.length;e++){var u=t[e];i.append(u)}return i.getBlob(n&&n.type||"")}):null}();function Yu(t,n,i){var e=zu([n],{type:"application/octet-stream"}),u=URL.createObjectURL(e),o=function(t,n){var i=t,r=i.indexOf("?");if(r>=0&&(i=i.substr(0,r)),i=i.substr(i.lastIndexOf("/")+1),n){var e=i.indexOf(".");e<0&&(e=i.length),i=i.substr(0,e)+n+i.substr(e)}return i}(t,i),s=r.createElement("a");s.href=u,s.download=o,r.body.appendChild(s),s.click(),r.body.removeChild(s),URL.revokeObjectURL(u)}var Ku,$u;!function(t){t.fv="vv",t._v="wv",t.mv="contentprotectionerror",t.yv="contentprotectionsuccess",t.pv="currentsourcechange",t.bv="destroy",t.Av="durationchange",t.Tv="emptied",t.cc="encrypted",t.Sv="ended",t.Ev="Iv",t.Rv="loadstart",t.Nv="manifestupdate",t.Dv="nosupportedrepresentationfound",t.Cv="offline",t.Pv="online",t.Ov="pause",t.Bv="play",t.Lv="progress",t.xv="ratechange",t.Mv="representationchange",t.Fv="resize",t.Uv="seeked",t.Hv="seeking",t.Vv="segmentnotfound",t.Xv="zv",t.qv="Gv",t.Wv="sourcechange",t.Yv="timeupdate",t.Qv="volumechange",t.Kv="Zv",t.Jv="metricschange"}(Ku||(Ku={})),function(t){t.$v="arraybuffer",t.td="json",t.rd="stream",t.bu="text"}($u||($u={}));var Ju=function(){function t(n){var i=this;this.qh=void 0,this.qh={},n instanceof t?n.asList().forEach(function(t){var n=t[0],r=t[1];i.append(n,r)}):Array.isArray(n)?n.forEach(function(t){i.append(t[0],t[1])}):n&&h.getOwnPropertyNames(n).forEach(function(t){i.append(t,n[t])})}var n=t.prototype;return n.append=function(t,n){var i=t,r=n;i=Zu(i),r=Qu(r);var e=i.toLowerCase();if(this.qh.hasOwnProperty(e)){var u=this.qh[e],o=u[1];u[1]=o?o+", "+r:r}else this.qh[e]=[i,r]},n.delete=function(t){var n=Zu(t).toLowerCase();delete this.qh[n]},n.get=function(t){var n=Zu(t).toLowerCase();return this.qh.hasOwnProperty(n)?this.qh[n][1]:null},n.has=function(t){var n=Zu(t).toLowerCase();return this.qh.hasOwnProperty(n)},n.set=function(t,n){var i=t,r=(i=Zu(i)).toLowerCase();this.qh[r]=[i,Qu(n)]},n.forEach=function(t,n){for(var i in this.qh)this.qh.hasOwnProperty(i)&&t.call(n,this.qh[i][1],i,this)},n.asList=function(){var t=[];for(var n in this.qh)if(this.qh.hasOwnProperty(n)){var i=this.qh[n],r=i[0],e=i[1];t.push([r,e])}return t},n.ed=function(){var t={};return this.forEach(function(n,i){t[i]=n}),t},n.ud=function(t){var n=this;t.forEach(function(t,i){n.append(i,t)})},n.od=function(t){var n=this;t.forEach(function(t,i){n.set(i,t)})},t}();function Zu(t){var n=t;if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new a("Invalid character in header field name");return n}function Qu(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}var to="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"};function no(){}var io=Number.isNaN||function(t){return t!=t},ro=no;function eo(t){return"object"==typeof t&&null!==t||"function"==typeof t}function uo(t){return t.slice()}function oo(t){return!1!==function(t){if("number"!=typeof t)return!1;if(io(t))return!1;if(t<0)return!1;return!0}(t)&&t!==1/0}function so(t,n,i){if("function"!=typeof t)throw new a("Argument is not a function");return Function.prototype.apply.call(t,n,i)}function fo(t,n,i,r){var e=t[n];if(void 0!==e){if("function"!=typeof e)throw new a(e+" is not a method");switch(i){case 0:return function(){return ao(e,t,r)};case 1:return function(n){var i=[n].concat(r);return ao(e,t,i)}}}return function(){return mo(void 0)}}function co(t,n,i){var r=t[n];if(void 0!==r)return so(r,t,i)}function ao(t,n,i){try{return mo(so(t,n,i))}catch(t){return _o(t)}}function ho(t){return t}function vo(t){if(t=Number(t),io(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function lo(t){if(void 0===t)return function(){return 1};if("function"!=typeof t)throw new a("size property of a queuing strategy must be a function");return function(n){return t(n)}}var wo=E,yo=E.prototype.then,po=E.resolve.bind(wo),bo=E.reject.bind(wo);function go(t){return new wo(t)}function mo(t){return po(t)}function _o(t){return bo(t)}function Eo(t,n,i){return yo.call(t,n,i)}function So(t,n,i){Eo(Eo(t,n,i),void 0,ro)}function Io(t,n){So(t,n)}function Ro(t,n){So(t,void 0,n)}function To(t,n,i){return Eo(t,n,i)}function ko(t){Eo(t,void 0,ro)}var Ao=function(){function t(){this.hd=0,this.fd=0,this.yr={vd:[],dd:void 0},this.ld=this.yr,this.hd=0,this.fd=0}return h.defineProperty(t.prototype,"length",{get:function(){return this.fd},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var n=this.ld,i=n;16383===n.vd.length&&(i={vd:[],dd:void 0}),n.vd.push(t),i!==n&&(this.ld=i,n.dd=i),++this.fd},t.prototype.shift=function(){var t=this.yr,n=t,i=this.hd,r=i+1,e=t.vd,u=e[i];return 16384===r&&(n=t.dd,r=0),--this.fd,this.hd=r,t!==n&&(this.yr=n),e[i]=void 0,u},t.prototype.forEach=function(t){for(var n=this.hd,i=this.yr,r=i.vd;!(n===r.length&&void 0===i.dd||n===r.length&&(n=0,0===(r=(i=i.dd).vd).length));)t(r[n]),++n},t.prototype.peek=function(){var t=this.yr,n=this.hd;return t.vd[n]},t}();function Oo(t,n,i){var r=null;!0===i&&(r=h.prototype);var e=h.create(r);return e.value=t,e.done=n,e}function No(t,n){t._d=!0,t.wd=n,n.md=t,"readable"===n.yd?Bo(t):"closed"===n.yd?function(t){Bo(t),jo(t)}(t):Fo(t,n.kd)}function Do(t,n){return Wf(t.wd,n)}function Co(t){"readable"===t.wd.yd?Po(t,new a("Reader was released and can no longer be used to monitor the stream's closedness")):function(t,n){Fo(t,n)}(t,new a("Reader was released and can no longer be used to monitor the stream's closedness")),t.wd.md=void 0,t.wd=void 0}function xo(t){return new a("Cannot "+t+" a stream using a released reader")}function Bo(t){t.Mc=go(function(n,i){t.pd=n,t.bd=i})}function Fo(t,n){Bo(t),Po(t,n)}function Po(t,n){ko(t.Mc),t.bd(n),t.pd=void 0,t.bd=void 0}function jo(t){t.pd(void 0),t.pd=void 0,t.bd=void 0}var Uo=to("[[CancelSteps]]"),Lo=to("[[PullSteps]]");function Mo(t,n){void 0===n&&(n=!1);var i=new zo(t);return i._d=n,i}function qo(t){return go(function(n,i){var r={wi:n,J:i};t.md.Td.push(r)})}function Wo(t,n,i){var r=t.md;r.Td.shift().wi(Oo(n,i,r._d))}function Xo(t){return t.md.Td.length}function Ho(t){var n=t.md;return void 0!==n&&!!Yo(n)}var Vo,Go,zo=function(){function t(t){if(!1===Mf(t))throw new a("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===qf(t))throw new a("This stream has already been locked for exclusive reading by another reader");No(this,t),this.Td=new Ao}return h.defineProperty(t.prototype,"closed",{get:function(){return Yo(this)?this.Mc:_o($o("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Yo(this)?void 0===this.wd?_o(xo("cancel")):Do(this,t):_o($o("cancel"))},t.prototype.read=function(){return Yo(this)?void 0===this.wd?_o(xo("read from")):Ko(this):_o($o("read"))},t.prototype.releaseLock=function(){if(!Yo(this))throw $o("releaseLock");if(void 0!==this.wd){if(this.Td.length>0)throw new a("Tried to release a reader lock when that reader has pending read() calls un-settled");Co(this)}},t}();function Yo(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"Td")}function Ko(t){var n=t.wd;return n.Sd=!0,"closed"===n.yd?mo(Oo(void 0,!0,t._d)):"errored"===n.yd?_o(n.kd):n.Ed[Lo]()}function $o(t){return new a("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof to.asyncIterator&&((Vo={})[to.asyncIterator]=function(){return this},Go=Vo,h.defineProperty(Go,to.asyncIterator,{enumerable:!1}));var Jo={next:function(){if(!1===Zo(this))return _o(Qo("next"));var t=this.Id;return void 0===t.wd?_o(xo("iterate")):To(Ko(t),function(n){var i=n.done;return i&&Co(t),Oo(n.value,i,!0)})},return:function(t){if(!1===Zo(this))return _o(Qo("next"));var n=this.Id;if(void 0===n.wd)return _o(xo("finish iterating"));if(n.Td.length>0)return _o(new a("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this.Rd){var i=Do(n,t);return Co(n),To(i,function(){return Oo(t,!0,!0)})}return Co(n),mo(Oo(t,!0,!0))}};function Zo(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"Id")}function Qo(t){return new a("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function ts(t){var n=t.oi.shift();return t.Nd-=n.size,t.Nd<0&&(t.Nd=0),n.value}function ns(t,n,i){if(!oo(i=Number(i)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t.oi.push({value:n,size:i}),t.Nd+=i}function is(t){t.oi=new Ao,t.Nd=0}void 0!==Go&&h.setPrototypeOf(Jo,Go),h.defineProperty(Jo,"next",{enumerable:!1}),h.defineProperty(Jo,"return",{enumerable:!1});var rs=to("[[AbortSteps]]"),es=to("[[ErrorSteps]]"),us=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),ss(this);var i=n.size,r=n.highWaterMark;if(void 0!==t.type)throw new RangeError("Invalid type is specified");var e=lo(i);void 0===r&&(r=1),function(t,n,i,r){var e=h.create(Rs.prototype);var u=fo(n,"write",1,[e]),o=fo(n,"close",0,[]),s=fo(n,"abort",1,[]);Ts(t,e,function(){return co(n,"start",[e])},u,o,s,i,r)}(this,t,r=vo(r),e)}return h.defineProperty(t.prototype,"locked",{get:function(){if(!1===fs(this))throw xs("locked");return cs(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===fs(this)?_o(xs("abort")):!0===cs(this)?_o(new a("Cannot abort a stream that already has a writer")):as(this,t)},t.prototype.close=function(){return!1===fs(this)?_o(xs("close")):!0===cs(this)?_o(new a("Cannot close a stream that already has a writer")):!0===ws(this)?_o(new a("Cannot close an already-closing stream")):hs(this)},t.prototype.getWriter=function(){if(!1===fs(this))throw xs("getWriter");return os(this)},t}();function os(t){return new bs(t)}function ss(t){t.yd="writable",t.kd=void 0,t.Dd=void 0,t.Cd=void 0,t.Pd=new Ao,t.Od=void 0,t.Bd=void 0,t.Ld=void 0,t.xd=void 0,t.Md=!1}function fs(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"Cd")}function cs(t){return void 0!==t.Dd}function as(t,n){var i=t.yd;if("closed"===i||"errored"===i)return mo(void 0);if(void 0!==t.xd)return t.xd.On;var r=!1;"erroring"===i&&(r=!0,n=void 0);var e=go(function(i,e){t.xd={On:void 0,wi:i,J:e,Jn:n,Fd:r}});return t.xd.On=e,!1===r&&ls(t,n),e}function hs(t){var n=t.yd;if("closed"===n||"errored"===n)return _o(new a("The stream (in "+n+" state) is not in the writable state and cannot be closed"));var i,r=go(function(n,i){var r={wi:n,J:i};t.Bd=r}),e=t.Dd;return void 0!==e&&!0===t.Md&&"writable"===n&&Hs(e),ns(i=t.Cd,"close",0),Os(i),r}function vs(t,n){"writable"!==t.yd?ds(t):ls(t,n)}function ls(t,n){var i=t.Cd;t.yd="erroring",t.kd=n;var r=t.Dd;void 0!==r&&Es(r,n),!1===function(t){if(void 0===t.Od&&void 0===t.Ld)return!1;return!0}(t)&&!0===i.Ud&&ds(t)}function ds(t){t.yd="errored",t.Cd[es]();var n=t.kd;if(t.Pd.forEach(function(t){t.J(n)}),t.Pd=new Ao,void 0!==t.xd){var i=t.xd;if(t.xd=void 0,!0===i.Fd)return i.J(n),void ys(t);So(t.Cd[rs](i.Jn),function(){i.wi(),ys(t)},function(n){i.J(n),ys(t)})}else ys(t)}function ws(t){return void 0!==t.Bd||void 0!==t.Ld}function ys(t){void 0!==t.Bd&&(t.Bd.J(t.kd),t.Bd=void 0);var n=t.Dd;void 0!==n&&Us(n,t.kd)}function ps(t,n){var i=t.Dd;void 0!==i&&n!==t.Md&&(!0===n?function(t){Ms(t)}(i):Hs(i)),t.Md=n}var bs=function(){function t(t){if(!1===fs(t))throw new a("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===cs(t))throw new a("This stream has already been locked for exclusive writing by another writer");this.Hd=t,t.Dd=this;var n,i=t.yd;if("writable"===i)!1===ws(t)&&!0===t.Md?Ms(this):Ws(this),Ps(this);else if("erroring"===i)qs(this,t.kd),Ps(this);else if("closed"===i)Ws(this),Ps(n=this),Ls(n);else{var r=t.kd;qs(this,r),js(this,r)}}return h.defineProperty(t.prototype,"closed",{get:function(){return!1===gs(this)?_o(Bs("closed")):this.Mc},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===gs(this))throw Bs("desiredSize");if(void 0===this.Hd)throw Fs("desiredSize");return function(t){var n=t.Hd,i=n.yd;if("errored"===i||"erroring"===i)return null;if("closed"===i)return 0;return As(n.Cd)}(this)},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"ready",{get:function(){return!1===gs(this)?_o(Bs("ready")):this.Vd},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===gs(this)?_o(Bs("abort")):void 0===this.Hd?_o(Fs("abort")):function(t,n){return as(t.Hd,n)}(this,t)},t.prototype.close=function(){if(!1===gs(this))return _o(Bs("close"));var t=this.Hd;return void 0===t?_o(Fs("close")):!0===ws(t)?_o(new a("Cannot close an already-closing stream")):ms(this)},t.prototype.releaseLock=function(){if(!1===gs(this))throw Bs("releaseLock");void 0!==this.Hd&&Ss(this)},t.prototype.write=function(t){return!1===gs(this)?_o(Bs("write")):void 0===this.Hd?_o(Fs("write to")):Is(this,t)},t}();function gs(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"Hd")}function ms(t){return hs(t.Hd)}function _s(t,n){"pending"===t.Xd?Us(t,n):function(t,n){js(t,n)}(t,n)}function Es(t,n){"pending"===t.zd?Xs(t,n):function(t,n){qs(t,n)}(t,n)}function Ss(t){var n=t.Hd,i=new a("Writer was released and can no longer be used to monitor the stream's closedness");Es(t,i),_s(t,i),n.Dd=void 0,t.Hd=void 0}function Is(t,n){var i=t.Hd,r=i.Cd,e=function(t,n){try{return t.qd(n)}catch(n){return Ns(t,n),1}}(r,n);if(i!==t.Hd)return _o(Fs("write to"));var u=i.yd;if("errored"===u)return _o(i.kd);if(!0===ws(i)||"closed"===u)return _o(new a("The stream is closing or closed and cannot be written to"));if("erroring"===u)return _o(i.kd);var o=function(t){return go(function(n,i){var r={wi:n,J:i};t.Pd.push(r)})}(i);return function(t,n,i){var r={chunk:n};try{ns(t,r,i)}catch(n){return void Ns(t,n)}var e=t.Gd;if(!1===ws(e)&&"writable"===e.yd){var u=Ds(t);ps(e,u)}Os(t)}(r,n,e),o}var Rs=function(){function t(){throw new a("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(!1===function(t){if(!eo(t))return!1;if(!h.prototype.hasOwnProperty.call(t,"Gd"))return!1;return!0}(this))throw new a("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this.Gd.yd&&Cs(this,t)},t.prototype[rs]=function(t){var n=this.Wd(t);return ks(this),n},t.prototype[es]=function(){is(this)},t}();function Ts(t,n,i,r,e,u,o,s){n.Gd=t,t.Cd=n,n.oi=void 0,n.Nd=void 0,is(n),n.Ud=!1,n.qd=s,n.jd=o,n.Yd=r,n.Qd=e,n.Wd=u;var f=Ds(n);ps(t,f),So(mo(i()),function(){n.Ud=!0,Os(n)},function(i){n.Ud=!0,vs(t,i)})}function ks(t){t.Yd=void 0,t.Qd=void 0,t.Wd=void 0,t.qd=void 0}function As(t){return t.jd-t.Nd}function Os(t){var n=t.Gd;if(!1!==t.Ud&&void 0===n.Od)if("erroring"!==n.yd){if(0!==t.oi.length){var i=t.oi.peek().value;"close"===i?function(t){var n=t.Gd;(function(t){t.Ld=t.Bd,t.Bd=void 0})(n),ts(t);var i=t.Qd();ks(t),So(i,function(){!function(t){t.Ld.wi(void 0),t.Ld=void 0,"erroring"===t.yd&&(t.kd=void 0,void 0!==t.xd&&(t.xd.wi(),t.xd=void 0)),t.yd="closed";var n=t.Dd;void 0!==n&&Ls(n)}(n)},function(t){!function(t,n){t.Ld.J(n),t.Ld=void 0,void 0!==t.xd&&(t.xd.J(n),t.xd=void 0),vs(t,n)}(n,t)})}(t):function(t,n){var i=t.Gd;(function(t){t.Od=t.Pd.shift()})(i),So(t.Yd(n),function(){!function(t){t.Od.wi(void 0),t.Od=void 0}(i);var n=i.yd;if(ts(t),!1===ws(i)&&"writable"===n){var r=Ds(t);ps(i,r)}Os(t)},function(n){"writable"===i.yd&&ks(t),function(t,n){t.Od.J(n),t.Od=void 0,vs(t,n)}(i,n)})}(t,i.chunk)}}else ds(n)}function Ns(t,n){"writable"===t.Gd.yd&&Cs(t,n)}function Ds(t){return As(t)<=0}function Cs(t,n){var i=t.Gd;ks(t),ls(i,n)}function xs(t){return new a("WritableStream.prototype."+t+" can only be used on a WritableStream")}function Bs(t){return new a("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function Fs(t){return new a("Cannot "+t+" a stream using a released writer")}function Ps(t){t.Mc=go(function(n,i){t.pd=n,t.bd=i,t.Xd="pending"})}function js(t,n){Ps(t),Us(t,n)}function Us(t,n){ko(t.Mc),t.bd(n),t.pd=void 0,t.bd=void 0,t.Xd="rejected"}function Ls(t){t.pd(void 0),t.pd=void 0,t.bd=void 0,t.Xd="resolved"}function Ms(t){t.Vd=go(function(n,i){t.Kd=n,t.Zd=i}),t.zd="pending"}function qs(t,n){Ms(t),Xs(t,n)}function Ws(t){Ms(t),Hs(t)}function Xs(t,n){ko(t.Vd),t.Zd(n),t.Kd=void 0,t.Zd=void 0,t.zd="rejected"}function Hs(t){t.Kd(void 0),t.Kd=void 0,t.Zd=void 0,t.zd="fulfilled"}function Vs(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}var Gs="undefined"!=typeof DOMException?DOMException:void 0;var zs,Ys=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}(Gs)?Gs:((zs=function(t,n){this.message=t||"",this.name=n||"Error",c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}).prototype=h.create(c.prototype),h.defineProperty(zs.prototype,"constructor",{value:zs,writable:!0,configurable:!0}),zs);function Ks(t,n,i,r,e,u){var o=Mo(t),s=os(n);t.Sd=!0;var f=!1,c=mo(void 0);return go(function(h,v){var l,d,w,y;if(void 0!==u){if(l=function(){var i=new Ys("Aborted","AbortError"),u=[];!1===r&&u.push(function(){return"writable"===n.yd?as(n,i):mo(void 0)}),!1===e&&u.push(function(){return"readable"===t.yd?Wf(t,i):mo(void 0)}),m(function(){return E.all(u.map(function(t){return t()}))},!0,i)},!0===u.aborted)return void l();u.addEventListener("abort",l)}if(g(t,o.Mc,function(t){!1===r?m(function(){return as(n,t)},!0,t):_(!0,t)}),g(n,s.Mc,function(n){!1===e?m(function(){return Wf(t,n)},!0,n):_(!0,n)}),d=t,w=o.Mc,y=function(){!1===i?m(function(){return function(t){var n=t.Hd,i=n.yd;return!0===ws(n)||"closed"===i?mo(void 0):"errored"===i?_o(n.kd):ms(t)}(s)}):_()},"closed"===d.yd?y():Io(w,y),!0===ws(n)||"closed"===n.yd){var p=new a("the destination writable stream closed before all data could be piped to it");!1===e?m(function(){return Wf(t,p)},!0,p):_(!0,p)}function b(){var t=c;return Eo(c,function(){return t!==c?b():void 0})}function g(t,n,i){"errored"===t.yd?i(t.kd):Ro(n,i)}function m(t,i,r){function e(){So(t(),function(){return S(i,r)},function(t){return S(!0,t)})}!0!==f&&(f=!0,"writable"===n.yd&&!1===ws(n)?Io(b(),e):e())}function _(t,i){!0!==f&&(f=!0,"writable"===n.yd&&!1===ws(n)?Io(b(),function(){return S(t,i)}):S(t,i))}function S(t,n){Ss(s),Co(o),void 0!==u&&u.removeEventListener("abort",l),t?v(n):h(void 0)}ko(go(function(t,n){!function i(r){r?t():Eo(!0===f?mo(!0):Eo(s.Vd,function(){return Eo(Ko(o),function(t){return!0===t.done||(c=Eo(Is(s,t.value),void 0,no),!1)})}),i,n)}(!1)}))})}var $s=function(){function t(){throw new a}return h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Js(this))throw ff("desiredSize");return uf(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===Js(this))throw ff("close");if(!1===of(this))throw new a("The stream is not in a state that permits close");nf(this)},t.prototype.enqueue=function(t){if(!1===Js(this))throw ff("enqueue");if(!1===of(this))throw new a("The stream is not in a state that permits enqueue");return rf(this,t)},t.prototype.error=function(t){if(!1===Js(this))throw ff("error");ef(this,t)},t.prototype[Uo]=function(t){is(this);var n=this.Jd(t);return tf(this),n},t.prototype[Lo]=function(){var t=this.$d;if(this.oi.length>0){var n=ts(this);return!0===this.il&&0===this.oi.length?(tf(this),Xf(t)):Zs(this),mo(Oo(n,!1,t.md._d))}var i=qo(t);return Zs(this),i},t}();function Js(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"$d")}function Zs(t){!1!==Qs(t)&&(!0!==t.ul?(t.ul=!0,So(t.ol(),function(){t.ul=!1,!0===t.hl&&(t.hl=!1,Zs(t))},function(n){ef(t,n)})):t.hl=!0)}function Qs(t){var n=t.$d;return!1!==of(t)&&(!1!==t.Ud&&(!0===qf(n)&&Xo(n)>0||uf(t)>0))}function tf(t){t.ol=void 0,t.Jd=void 0,t.qd=void 0}function nf(t){var n=t.$d;t.il=!0,0===t.oi.length&&(tf(t),Xf(n))}function rf(t,n){var i=t.$d;if(!0===qf(i)&&Xo(i)>0)Wo(i,n,!1);else{var r=void 0;try{r=t.qd(n)}catch(n){throw ef(t,n),n}try{ns(t,n,r)}catch(n){throw ef(t,n),n}}Zs(t)}function ef(t,n){var i=t.$d;"readable"===i.yd&&(is(t),tf(t),Hf(i,n))}function uf(t){var n=t.$d.yd;return"errored"===n?null:"closed"===n?0:t.jd-t.Nd}function of(t){var n=t.$d.yd;return!1===t.il&&"readable"===n}function sf(t,n,i,r,e,u,o){n.$d=t,n.oi=void 0,n.Nd=void 0,is(n),n.Ud=!1,n.il=!1,n.hl=!1,n.ul=!1,n.qd=o,n.jd=u,n.ol=r,n.Jd=e,t.Ed=n,So(mo(i()),function(){n.Ud=!0,Zs(n)},function(t){ef(n,t)})}function ff(t){return new a("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}var cf=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&v.floor(t)===t},af=function(){function t(){throw new a("ReadableStreamBYOBRequest cannot be used directly")}return h.defineProperty(t.prototype,"view",{get:function(){if(!1===lf(this))throw Of("view");return this.al},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===lf(this))throw Of("respond");if(void 0===this.cl)throw new a("This BYOB request has been invalidated");this.al.buffer,function(t,n){if(!1===oo(n=Number(n)))throw new RangeError("bytesWritten must be a finite");Sf(t,n)}(this.cl,t)},t.prototype.respondWithNewView=function(t){if(!1===lf(this))throw Of("respond");if(void 0===this.cl)throw new a("This BYOB request has been invalidated");if(!ArrayBuffer.isView(t))throw new a("You can only respond with array buffer views");t.buffer,function(t,n){var i=t.fl.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,Sf(t,n.byteLength)}(this.cl,t)},t}(),hf=function(){function t(){throw new a("ReadableByteStreamController constructor cannot be used directly")}return h.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===vf(this))throw Nf("byobRequest");if(void 0===this.vl&&this.fl.length>0){var t=this.fl.peek(),n=new y(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),i=h.create(af.prototype);!function(t,n,i){t.cl=n,t.al=i}(i,this,n),this.vl=i}return this.vl},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===vf(this))throw Nf("desiredSize");return kf(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===vf(this))throw Nf("close");if(!0===this.il)throw new a("The stream has already been closed; do not close it again!");var t=this.dl.yd;if("readable"!==t)throw new a("The stream (in "+t+" state) is not in the readable state and cannot be closed");!function(t){var n=t.dl;if(t.Nd>0)return void(t.il=!0);if(t.fl.length>0){var i=t.fl.peek();if(i.bytesFilled>0){var r=new a("Insufficient bytes to fill elements in the given buffer");throw Tf(t,r),r}}Rf(t),Xf(n)}(this)},t.prototype.enqueue=function(t){if(!1===vf(this))throw Nf("enqueue");if(!0===this.il)throw new a("stream is closed or draining");var n=this.dl.yd;if("readable"!==n)throw new a("The stream (in "+n+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(t))throw new a("You can only enqueue array buffer views when using a ReadableByteStreamController");t.buffer,function(t,n){var i=t.dl,r=n.buffer,e=n.byteOffset,u=n.byteLength,o=ho(r);if(!0===Ho(i))if(0===Xo(i))pf(t,o,e,u);else{var s=new y(o,e,u);Wo(i,s,!1)}else!0===xf(i)?(pf(t,o,e,u),Ef(t)):pf(t,o,e,u);df(t)}(this,t)},t.prototype.error=function(t){if(!1===vf(this))throw Nf("error");Tf(this,t)},t.prototype[Uo]=function(t){this.fl.length>0&&(this.fl.peek().bytesFilled=0);is(this);var n=this.Jd(t);return Rf(this),n},t.prototype[Lo]=function(){var t=this.dl;if(this.Nd>0){var n=this.oi.shift();this.Nd-=n.byteLength,mf(this);var i=void 0;try{i=new y(n.buffer,n.byteOffset,n.byteLength)}catch(t){return _o(t)}return mo(Oo(i,!1,t.md._d))}var r=this.ll;if(void 0!==r){var e=void 0;try{e=new ArrayBuffer(r)}catch(t){return _o(t)}var u={buffer:e,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,ctor:y,readerType:"default"};this.fl.push(u)}var o=qo(t);return df(this),o},t}();function vf(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"dl")}function lf(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"cl")}function df(t){!1!==function(t){var n=t.dl;if("readable"!==n.yd)return!1;if(!0===t.il)return!1;if(!1===t.Ud)return!1;if(!0===Ho(n)&&Xo(n)>0)return!0;if(!0===xf(n)&&Cf(n)>0)return!0;if(kf(t)>0)return!0;return!1}(t)&&(!0!==t.ul?(t.ul=!0,So(t.ol(),function(){t.ul=!1,!0===t.hl&&(t.hl=!1,df(t))},function(n){Tf(t,n)})):t.hl=!0)}function wf(t,n){var i=!1;"closed"===t.yd&&(i=!0);var r=yf(n);"default"===n.readerType?Wo(t,r,i):function(t,n,i){var r=t.md;r._l.shift().wi(Oo(n,i,r._d))}(t,r,i)}function yf(t){var n=t.bytesFilled,i=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,n/i)}function pf(t,n,i,r){t.oi.push({buffer:n,byteOffset:i,byteLength:r}),t.Nd+=r}function bf(t,n){var i=n.elementSize,r=n.bytesFilled-n.bytesFilled%i,e=v.min(t.Nd,n.byteLength-n.bytesFilled),u=n.bytesFilled+e,o=u-u%i,s=e,f=!1;o>r&&(s=o-n.bytesFilled,f=!0);for(var c,a,h,l,d,w=t.oi;s>0;){var p=w.peek(),b=v.min(s,p.byteLength),g=n.byteOffset+n.bytesFilled;c=n.buffer,a=g,h=p.buffer,l=p.byteOffset,d=b,new y(c).set(new y(h,l,d),a),p.byteLength===b?w.shift():(p.byteOffset+=b,p.byteLength-=b),t.Nd-=b,gf(t,b,n),s-=b}return f}function gf(t,n,i){_f(t),i.bytesFilled+=n}function mf(t){0===t.Nd&&!0===t.il?(Rf(t),Xf(t.dl)):df(t)}function _f(t){void 0!==t.vl&&(t.vl.cl=void 0,t.vl.al=void 0,t.vl=void 0)}function Ef(t){for(;t.fl.length>0;){if(0===t.Nd)return;var n=t.fl.peek();!0===bf(t,n)&&(If(t),wf(t.dl,n))}}function Sf(t,n){var i=t.fl.peek();if("closed"===t.dl.yd){if(0!==n)throw new a("bytesWritten must be 0 when calling respond() on a closed stream");!function(t,n){n.buffer=ho(n.buffer);var i=t.dl;if(!0===xf(i))for(;Cf(i)>0;)wf(i,If(t))}(t,i)}else!function(t,n,i){if(i.bytesFilled+n>i.byteLength)throw new RangeError("bytesWritten out of range");if(gf(t,n,i),!(i.bytesFilled<i.elementSize)){If(t);var r=i.bytesFilled%i.elementSize;if(r>0){var e=i.byteOffset+i.bytesFilled,u=i.buffer.slice(e-r,e);pf(t,u,0,u.byteLength)}i.buffer=ho(i.buffer),i.bytesFilled-=r,wf(t.dl,i),Ef(t)}}(t,n,i);df(t)}function If(t){var n=t.fl.shift();return _f(t),n}function Rf(t){t.ol=void 0,t.Jd=void 0}function Tf(t,n){var i=t.dl;"readable"===i.yd&&(!function(t){_f(t),t.fl=new Ao}(t),is(t),Rf(t),Hf(i,n))}function kf(t){var n=t.dl.yd;return"errored"===n?null:"closed"===n?0:t.jd-t.Nd}function Af(t,n,i){var r=h.create(hf.prototype);var e=fo(n,"pull",0,[r]),u=fo(n,"cancel",1,[]),o=n.autoAllocateChunkSize;if(void 0!==o&&(o=Number(o),!1===cf(o)||o<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(t,n,i,r,e,u,o){n.dl=t,n.hl=!1,n.ul=!1,n.vl=void 0,n.oi=n.Nd=void 0,is(n),n.il=!1,n.Ud=!1,n.jd=vo(u),n.ol=r,n.Jd=e,n.ll=o,n.fl=new Ao,t.Ed=n,So(mo(i()),function(){n.Ud=!0,df(n)},function(t){Tf(n,t)})}(t,r,function(){return co(n,"start",[r])},e,u,i,o)}function Of(t){return new a("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function Nf(t){return new a("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function Df(t){return go(function(n,i){var r={wi:n,J:i};t.md._l.push(r)})}function Cf(t){return t.md._l.length}function xf(t){var n=t.md;return void 0!==n&&!!Ff(n)}var Bf=function(){function t(t){if(!Mf(t))throw new a("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===vf(t.Ed))throw new a("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(qf(t))throw new a("This stream has already been locked for exclusive reading by another reader");No(this,t),this._l=new Ao}return h.defineProperty(t.prototype,"closed",{get:function(){return Ff(this)?this.Mc:_o(Pf("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return Ff(this)?void 0===this.wd?_o(xo("cancel")):Do(this,t):_o(Pf("cancel"))},t.prototype.read=function(t){return Ff(this)?void 0===this.wd?_o(xo("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?_o(new a("view must have non-zero byteLength")):function(t,n){var i=t.wd;if(i.Sd=!0,"errored"===i.yd)return _o(i.kd);return function(t,n){var i=t.dl,r=1;n.constructor!==DataView&&(r=n.constructor.BYTES_PER_ELEMENT);var e=n.constructor,u={buffer:ho(n.buffer),byteOffset:n.byteOffset,byteLength:n.byteLength,bytesFilled:0,elementSize:r,ctor:e,readerType:"byob"};if(t.fl.length>0)return t.fl.push(u),Df(i);if("closed"===i.yd)return mo(Oo(new e(u.buffer,u.byteOffset,0),!0,i.md._d));if(t.Nd>0){if(!0===bf(t,u)){var o=yf(u);return mf(t),mo(Oo(o,!1,i.md._d))}if(!0===t.il){var s=new a("Insufficient bytes to fill elements in the given buffer");return Tf(t,s),_o(s)}}t.fl.push(u);var f=Df(i);return df(t),f}(i.Ed,n)}(this,t)):_o(new a("view must be an array buffer view")):_o(Pf("read"))},t.prototype.releaseLock=function(){if(!Ff(this))throw Pf("releaseLock");if(void 0!==this.wd){if(this._l.length>0)throw new a("Tried to release a reader lock when that reader has pending read() calls un-settled");Co(this)}},t}();function Ff(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"_l")}function Pf(t){return new a("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}var jf=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),Lf(this);var i=n.size,r=n.highWaterMark,e=t.type;if("bytes"===String(e)){if(void 0!==i)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===r&&(r=0),Af(this,t,r=vo(r))}else{if(void 0!==e)throw new RangeError("Invalid type is specified");var u=lo(i);void 0===r&&(r=1),function(t,n,i,r){var e=h.create($s.prototype),u=fo(n,"pull",0,[e]),o=fo(n,"cancel",1,[]);sf(t,e,function(){return co(n,"start",[e])},u,o,i,r)}(this,t,r=vo(r),u)}}return h.defineProperty(t.prototype,"locked",{get:function(){if(!1===Mf(this))throw Vf("locked");return qf(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===Mf(this)?_o(Vf("cancel")):!0===qf(this)?_o(new a("Cannot cancel a stream that already has a reader")):Wf(this,t)},t.prototype.getReader=function(t){var n=(void 0===t?{}:t).mode;if(!1===Mf(this))throw Vf("getReader");if(void 0===n)return Mo(this,!0);if("byob"===(n=String(n)))return function(t,n){void 0===n&&(n=!1);var i=new Bf(t);return i._d=n,i}(this,!0);throw new RangeError("Invalid mode is specified")},t.prototype.pipeThrough=function(t,n){var i=t.writable,r=t.readable,e=void 0===n?{}:n,u=e.preventClose,o=e.preventAbort,s=e.preventCancel,f=e.signal;if(!1===Mf(this))throw Vf("pipeThrough");if(!1===fs(i))throw new a("writable argument to pipeThrough must be a WritableStream");if(!1===Mf(r))throw new a("readable argument to pipeThrough must be a ReadableStream");if(u=Boolean(u),o=Boolean(o),s=Boolean(s),void 0!==f&&!Vs(f))throw new a("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===qf(this))throw new a("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===cs(i))throw new a("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return ko(Ks(this,i,u,o,s,f)),r},t.prototype.pipeTo=function(t,n){var i=void 0===n?{}:n,r=i.preventClose,e=i.preventAbort,u=i.preventCancel,o=i.signal;return!1===Mf(this)?_o(Vf("pipeTo")):!1===fs(t)?_o(new a("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),e=Boolean(e),u=Boolean(u),void 0===o||Vs(o)?!0===qf(this)?_o(new a("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===cs(t)?_o(new a("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Ks(this,t,r,e,u,o):_o(new a("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===Mf(this))throw Vf("tee");var t=function(t,n){var i,r,e,u,o,s=Mo(t),f=!1,c=!1,a=!1,h=go(function(t){o=t});function v(){return!0===f?mo(void 0):(f=!0,ko(To(Ko(s),function(t){if(f=!1,!0===t.done)return!1===c&&nf(e.Ed),void(!1===a&&nf(u.Ed));var n=t.value,i=n,r=n;!1===c&&rf(e.Ed,i),!1===a&&rf(u.Ed,r)})),mo(void 0))}function l(){}return e=Uf(l,v,function(n){if(c=!0,i=n,!0===a){var e=uo([i,r]),u=Wf(t,e);o(u)}return h}),u=Uf(l,v,function(n){if(a=!0,r=n,!0===c){var e=uo([i,r]),u=Wf(t,e);o(u)}return h}),Ro(s.Mc,function(t){ef(e.Ed,t),ef(u.Ed,t)}),[e,u]}(this);return uo(t)},t.prototype.getIterator=function(t){var n=(void 0===t?{}:t).preventCancel,i=void 0!==n&&n;if(!1===Mf(this))throw Vf("getIterator");return function(t,n){void 0===n&&(n=!1);var i=Mo(t),r=h.create(Jo);return r.Id=i,r.Rd=Boolean(n),r}(this,i)},t}();function Uf(t,n,i,r,e){void 0===r&&(r=1),void 0===e&&(e=function(){return 1});var u=h.create(jf.prototype);return Lf(u),sf(u,h.create($s.prototype),t,n,i,r,e),u}function Lf(t){t.yd="readable",t.md=void 0,t.kd=void 0,t.Sd=!1}function Mf(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"Ed")}function qf(t){return void 0!==t.md}function Wf(t,n){return t.Sd=!0,"closed"===t.yd?mo(void 0):"errored"===t.yd?_o(t.kd):(Xf(t),To(t.Ed[Uo](n),no))}function Xf(t){t.yd="closed";var n=t.md;void 0!==n&&(Yo(n)&&(n.Td.forEach(function(t){t.wi(Oo(void 0,!0,n._d))}),n.Td=new Ao),jo(n))}function Hf(t,n){t.yd="errored",t.kd=n;var i=t.md;void 0!==i&&(Yo(i)?(i.Td.forEach(function(t){t.J(n)}),i.Td=new Ao):(i._l.forEach(function(t){t.J(n)}),i._l=new Ao),Po(i,n))}function Vf(t){return new a("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}"symbol"==typeof to.asyncIterator&&h.defineProperty(jf.prototype,to.asyncIterator,{value:jf.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Gf=function(){function t(t,n,i){void 0===t&&(t={}),void 0===n&&(n={}),void 0===i&&(i={});var r=n.size,e=n.highWaterMark,u=i.size,o=i.highWaterMark;if(void 0!==t.writableType)throw new RangeError("Invalid writable type specified");var s=lo(r);if(void 0===e&&(e=1),e=vo(e),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var f,c=lo(u);void 0===o&&(o=0),o=vo(o),function(t,n,i,r,e,u){function o(){return n}t.wl=function(t,n,i,r,e,u){void 0===e&&(e=1),void 0===u&&(u=function(){return 1});var o=h.create(us.prototype);return ss(o),Ts(o,h.create(Rs.prototype),t,n,i,r,e,u),o}(o,function(n){return function(t,n){var i=t.yl;if(!0===t.Md){var r=t.bl;return To(r,function(){var r=t.wl,e=r.yd;if("erroring"===e)throw r.kd;return ic(i,n)})}return ic(i,n)}(t,n)},function(){return function(t){var n=t.Al,i=t.yl,r=i.Tl();return tc(i),To(r,function(){if("errored"===n.yd)throw n.kd;var t=n.Ed;!0===of(t)&&nf(t)},function(i){throw Yf(t,i),n.kd})}(t)},function(n){return function(t,n){return Yf(t,n),mo(void 0)}(t,n)},i,r),t.Al=Uf(o,function(){return function(t){return $f(t,!1),t.bl}(t)},function(n){return Kf(t,n),mo(void 0)},e,u),t.Md=void 0,t.bl=void 0,t.Sl=void 0,$f(t,!0),t.yl=void 0}(this,go(function(t){f=t}),e,s,o,c),function(t,n){var i=h.create(Zf.prototype),r=function(t){try{return nc(i,t),mo(void 0)}catch(t){return _o(t)}},e=n.transform;if(void 0!==e){if("function"!=typeof e)throw new a("transform is not a method");r=function(t){return ao(e,n,[t,i])}}var u=fo(n,"flush",0,[i]);!function(t,n,i,r){n.El=t,t.yl=n,n.Il=i,n.Tl=r}(t,i,r,u)}(this,t);var v=co(t,"start",[this.yl]);f(v)}return h.defineProperty(t.prototype,"readable",{get:function(){if(!1===zf(this))throw ec("readable");return this.Al},enumerable:!0,configurable:!0}),h.defineProperty(t.prototype,"writable",{get:function(){if(!1===zf(this))throw ec("writable");return this.wl},enumerable:!0,configurable:!0}),t}();function zf(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"yl")}function Yf(t,n){ef(t.Al.Ed,n),Kf(t,n)}function Kf(t,n){tc(t.yl),Ns(t.wl.Cd,n),!0===t.Md&&$f(t,!1)}function $f(t,n){void 0!==t.bl&&t.Sl(),t.bl=go(function(n){t.Sl=n}),t.Md=n}var Jf,Zf=function(){function t(){throw new a("TransformStreamDefaultController instances cannot be created directly")}return h.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Qf(this))throw rc("desiredSize");return uf(this.El.Al.Ed)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===Qf(this))throw rc("enqueue");nc(this,t)},t.prototype.error=function(t){if(!1===Qf(this))throw rc("error");var n;n=t,Yf(this.El,n)},t.prototype.terminate=function(){if(!1===Qf(this))throw rc("terminate");!function(t){var n=t.El,i=n.Al.Ed;!0===of(i)&&nf(i);var r=new a("TransformStream terminated");Kf(n,r)}(this)},t}();function Qf(t){return!!eo(t)&&!!h.prototype.hasOwnProperty.call(t,"El")}function tc(t){t.Il=void 0,t.Tl=void 0}function nc(t,n){var i=t.El,r=i.Al.Ed;if(!1===of(r))throw new a("Readable side is not in a state that permits enqueue");try{rf(r,n)}catch(t){throw Kf(i,t),i.Al.kd}(function(t){return!0!==Qs(t)})(r)!==i.Md&&$f(i,!0)}function ic(t,n){return To(t.Il(n),void 0,function(n){throw Yf(t.El,n),n})}function rc(t){return new a("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function ec(t){return new a("TransformStream.prototype."+t+" can only be used on a TransformStream")}function uc(t){return n=[t],new jf({start:function(t){for(var i=0;i<n.length;i++){var r=n[i];t.enqueue(r)}t.close()}});var n}function oc(t){return uc(new y(t))}function sc(t,n){return function(t,n){var i=n,r=t.getReader(),e=new du,u=function(){o();var t=new Qt;r.cancel(t).catch(P),e.Pc(t)},o=function(){i&&(i.Pa(u),i=void 0)};i&&(i.Sa?u():i.Ca(u));var s=[];return E.resolve(r.read()).then(function t(n){return n.done?(o(),E.resolve(s)):(s.push(n.value),E.resolve(r.read()).then(t))}).then(function(t){o(),e.Cc(t)},function(t){o(),e.Pc(t)}),e.Dc}(t,n).then(function(t){return Dn(t).buffer})}function fc(t,n){var i=n,r=new Gf,e=r.readable,u=r.writable,o=u.getWriter(),s=function(){i&&i.xa()};return o.closed.then(s,s),t.then(function(t){return i=void 0,o.releaseLock(),t.pipeTo(u).catch(P)},function(t){return i=void 0,o.releaseLock(),u.abort(t).catch(P)}),e}function cc(t){return En(new y(t))}function ac(t){return Sn(t).buffer}!function(t){t[t.rd=0]="rd",t[t.Nl=1]="Nl"}(Jf||(Jf={}));var hc="content-type",vc="text/plain;charset=UTF-8",lc=function(){function t(){}var n=t.prototype;return n.Dl=function(t){return this.Cl(t).then(JSON.parse)},n.Pl=function(t,n){switch(t){case $u.$v:return this.Ol(n);case $u.td:return this.Dl(n);case $u.rd:return this.Bl();case $u.bu:return this.Cl(n);default:throw new a}},t}();function dc(t,n,i){if(t instanceof lc)return t;if(t instanceof jf)return function(t,n){return new yc({Kh:Jf.rd,Bl:t,Ll:wc(n)})}(t,i);var r=wc(i),e=E.resolve(t).then(function(t){return function(t,n){if(t){if("string"==typeof t)return{Kh:$u.bu,xl:t,Ll:n||vc};if(t instanceof ArrayBuffer||Nn(t))return{Kh:$u.$v,xl:Sc(t),Ll:n};if(T(i=t)&&i.constructor&&i.constructor===h||R(t))return{Kh:$u.td,xl:t,Ll:n};throw new a("Unsupported BodyInit type")}return{Kh:$u.bu,xl:null,Ll:n};var i}(t,r)});return new yc({Kh:Jf.Nl,Dc:e,Ml:n})}function wc(t){return(t.get(hc)||"").toLowerCase()}var yc=function(t){function n(n){var i;return(i=t.call(this)||this).Fl=!1,i.Ul=void 0,i.Hl=new du,i.Hl.Dc.catch(P),i.Vl(n),i}ft(n,t);var i=n.prototype;return i.Xl=function(){return this.Hl.Dc},i.Cl=function(t){return this.zl(pc,t)},i.Dl=function(t){return this.zl(gc,t)},i.Ol=function(t){return this.zl(_c,t)},i.Bl=function(){return this.ql((t=this.Ul).Kh===Jf.rd?t.Bl:fc(t.Dc.then(Ec).then(oc),t.Ml));var t},i.zl=function(t,n){if(this.Fl)return E.reject(new a("Already used"));this.Fl=!0;var i=t(this.Ul,n);return this.Hl.Cc(i.then(P)),i},i.ql=function(t){if(this.Fl)throw new a("Already used");if(t.locked)throw new a("Body stream is locked");this.Fl=!0;var n=new Gf,i=E.resolve(t.pipeTo(n.writable));return this.Hl.Cc(i),n.readable},i.Vl=function(t){this.Ul=t,t.Kh===Jf.Nl&&t.Dc.catch(P)},i.Gl=function(){if(this.Fl)throw new a("Already used");var t=function(t){if(t.Kh===Jf.rd){var n=t.Bl.tee(),i=n[0],r=n[1];return[{Kh:t.Kh,Bl:i,Ll:t.Ll},{Kh:t.Kh,Bl:r,Ll:t.Ll}]}var e=t.Ml.Fa(),u=e[0],o=e[1];return[{Kh:t.Kh,Dc:t.Dc,Ml:u},{Kh:t.Kh,Dc:t.Dc,Ml:o}]}(this.Ul),i=t[0],r=t[1];return this.Vl(i),new n(r)},q(n,[{key:"Wl",get:function(){return this.Fl}}]),n}(lc);function pc(t,n){return t.Kh===Jf.rd?sc(t.Bl,n).then(cc):(n&&t.Ml.Ma(n),nn(t.Dc.then(bc),t.Ml))}function bc(t){switch(t.Kh){case $u.bu:return E.resolve(t.xl||"");case $u.$v:return E.resolve(t.xl).then(cc);case $u.td:return E.resolve(t.xl).then(JSON.stringify)}}function gc(t,n){return t.Kh===Jf.rd?pc(t,n).then(JSON.parse):(n&&t.Ml.Ma(n),nn(t.Dc.then(mc),t.Ml))}function mc(t){return t.Kh===$u.td?E.resolve(t.xl):bc(t).then(JSON.parse)}function _c(t,n){return t.Kh===Jf.rd?sc(t.Bl,n):(n&&t.Ml.Ma(n),nn(t.Dc.then(Ec),t.Ml))}function Ec(t){switch(t.Kh){case $u.$v:return E.resolve(t.xl);case $u.bu:case $u.td:return bc(t).then(ac)}}function Sc(t){return t instanceof ArrayBuffer?t:kn(Rn(t)).buffer}function Ic(t){return t.jl>=200&&t.jl<=299||304===t.jl}var Rc,Tc,kc,Ac,Oc=function(t){function n(n,i){var r,e,u,o,s,f;i?(e=i.Yl,u=i.Ql,o=i.jl,s=i.Kl,f=i.Zl):(e=[],u=$u.bu,o=200,s="OK",f=!1);var c=n.Jl,a=new Ju(n.Yl||e),h=n.Ql||u,v=n.$l||(i&&i.Jl===c?i.$l:c.t_),l=i?i.n_:null,d=dc(void 0!==n.uo?n.uo:l,n.Ml||new Zt,a);return(r=t.call(this,d)||this).Yl=void 0,r.Jl=void 0,r.$l=void 0,r.Ql=void 0,r.jl=void 0,r.Kl=void 0,r.Zl=void 0,r.Yl=a,r.Jl=c,r.$l=v,r.Ql=h,r.jl=void 0!==n.jl?n.jl:o,r.Kl=void 0!==n.Kl?String(n.Kl):s,r.Zl=n.Zl||f,r}ft(n,t);var i=n.prototype;return i.uo=function(t){return this.Pl(this.Ql,t)},i.Ec=function(){return new n({uo:this.Gl(),Jl:this.Jl},this)},n}(function(t){function n(n){var i;return(i=t.call(this)||this).n_=void 0,i.n_=n,i}ft(n,t);var i=n.prototype;return i.Xl=function(){return this.n_.Xl()},i.Cl=function(t){return this.n_.Cl(t)},i.Dl=function(t){return this.n_.Dl(t)},i.Ol=function(t){return this.n_.Ol(t)},i.Bl=function(){return this.n_.Bl()},i.Gl=function(){return this.n_.Gl()},q(n,[{key:"Wl",get:function(){return this.n_.Wl}}]),n}(lc));!function(t){t.DELETE="DELETE",t.GET="GET",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT"}(Rc||(Rc={})),function(t){t.i_="",t.r_="manifest",t.e_="segment",t.s_="content-protection"}(Tc||(Tc={})),function(t){t.i_="",t.u_="initialization-segment",t.o_="fairplay-license",t.h_="fairplay-certificate",t.a_="widevine-license",t.c_="widevine-certificate",t.f_="playready-license",t.v_="clearkey-license",t.d_="aes128-key"}(kc||(kc={})),function(t){t.i_="",t.l_="audio",t.__="video",t.bu="text",t.g_="image"}(Ac||(Ac={}));var Nc=function(t,n){this.xl=void 0,this.Yl=void 0,this.w_=void 0,this.Ql=void 0,this.m_=void 0,this.Ua=void 0,this.Kh=void 0,this.y_=void 0,this.k_=void 0,this.t_=void 0,this.p_=void 0,this.b_=void 0;var i,r,e,u,o,s,f,c,a,h,v,l=t.t_;n?(i=n.xl,r=n.Yl,e=n.w_,u=n.Ql,o=n.m_,s=n.Ua,f=n.Kh,c=n.y_,a=n.k_,h=n.p_,v=n.b_):(i=null,r={},e=Rc.GET,u=$u.bu,o=0,f=Tc.i_,c=kc.i_,a=Ac.i_,h=!1),this.t_=l,this.xl=t.xl||i,this.Yl=new Ju(t.Yl||r),this.w_=t.w_||e,this.Ql=t.Ql||u,this.m_=void 0!==t.m_?Number(t.m_)||0:o,this.Ua=t.Ua||s||(new Zt).Ua,this.Kh=t.Kh||f,this.y_=t.y_||c,this.k_=t.k_||a,this.p_=void 0!==t.p_?Boolean(t.p_):h,this.b_=t.b_||v},Dc=function(){function t(){}var n=t.prototype;return n.Jl=function(t){var n=function(t){return new Oc({uo:null,Yl:{},Jl:t,$l:t.t_,Ql:t.Ql,jl:0,Kl:Ku.Cv})}(new Nc(t));return E.resolve(n)},n.A_=function(t){},n.T_=function(){},t}();var Cc,xc=function(){function t(t,n){void 0===n&&(n=!0),this.S_=void 0,this.E_=void 0,this.S_=t,this.E_=n}var n=t.prototype;return n.Jl=function(t){var n=this.I_(t);return this.S_.Jl(n)},n.A_=function(t){return this.S_.A_(this.R_(t))},n.I_=function(n){var i=new Nc(n);if(!this.E_){var r=t.N_(i.t_);i=new Nc({t_:r},i)}return i},n.R_=function(n){var i=n.t_;return this.E_||(i=t.N_(i)),{t_:i,xl:n.xl}},t.N_=function(t){return m.Ch&&fn(t,"http://")?t.replace(":","s:"):t},n.T_=function(){this.S_.T_()},q(t,null,[{key:"D_",get:function(){return t.C_||(t.C_=new t(new Dc)),t.C_}}]),t}();xc.C_=void 0,function(t){t.P_="HttpOpenError",t.O_="HttpResponseError",t.B_="HttpTimeoutError"}(Cc||(Cc={}));var Bc=function(t){function n(n,i,r){var e;return(e=t.call(this,i,r)||this).L_=void 0,e.L_=n,e}return ft(n,t),q(n,[{key:"Jl",get:function(){return this.L_}}]),n}($t);var Fc=function(t){function n(n,i){return t.call(this,n,"Error while opening "+n.t_+". Invalid URL.",i)||this}return ft(n,t),q(n,[{key:"name",get:function(){return Cc.P_}}]),n}(Bc);var Pc=function(t){function n(n,i,r){var e;return(e=t.call(this,n.Jl,null!=r?r:function(t){return"Error while loading "+t.Jl.t_+", status code "+t.jl}(n),i)||this).x_=void 0,e.x_=n,e}return ft(n,t),q(n,[{key:"name",get:function(){return Cc.O_}},{key:"M_",get:function(){return this.x_}}]),n}(Bc);var jc=function(t){function n(n,i){return t.call(this,n,function(t){return"Request for "+t.t_+" timed out after "+t.m_+" seconds."}(n),i)||this}return ft(n,t),q(n,[{key:"name",get:function(){return Cc.B_}}]),n}(Bc),Uc=function(t,n){return(Uc=h.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 Lc(t,n){function i(){this.constructor=t}Uc(t,n),t.prototype=null===n?h.create(n):(i.prototype=n.prototype,new i)}var Mc="object"==typeof i?i:"object"==typeof t?t:"object"==typeof global?global:null;var qc=function(){var t=Mc.Blob;if(t)try{return new t,function(t,n){return new Mc.Blob(t,n)}}catch(t){}var n,i=Mc.BlobBuilder||Mc.WebKitBlobBuilder||Mc.MozBlobBuilder||Mc.MSBlobBuilder;return i?(n=i,function(t,i){var r=new n;if(t)for(var e=0,u=t;e<u.length;e++){var o=u[e];r.append(o)}return r.getBlob(i&&i.type||"")}):null}(),Wc="function"==typeof jf?jf:void 0;function Xc(t){return t&&"function"==typeof t.getReader}function Hc(t){if("function"!=typeof t)return!1;try{var n=!1,i=new t({start:function(){n=!0}});return!!n&&Xc(i)}catch(t){return!1}}var Vc=function(){function t(t,n){this.md=t,this.F_=n}return t.prototype.pull=function(t){var n=this;return this.md.read().then(function(i){n.F_&&n.F_(i),i.done?t.close():t.enqueue(i.value)})},t.prototype.cancel=function(t){return this.md.cancel(t)},t}();function Gc(t,n){return n.constructor===t?n:new t(new Vc(n.getReader()),{highWaterMark:0})}var zc=function(){function t(t,n){this.U_=t,this.Bt=n}return t.prototype.pull=function(t){return this.U_().then(function(n){t.enqueue(new y(n)),t.close()})},t.prototype.cancel=function(t){this.Bt&&this.Bt(t)},t}();function Yc(t,n,i){return new t(new zc(n,i),{highWaterMark:0})}var Kc={searchParams:"URLSearchParams"in Mc,iterable:"Symbol"in Mc&&"iterator"in Symbol,blob:"FileReader"in Mc&&!!qc,formData:"FormData"in Mc,arrayBuffer:"ArrayBuffer"in Mc,stream:Hc(Wc),streamRequest:"Request"in Mc&&"body"in Mc.Request.prototype,streamResponse:"Response"in Mc&&"body"in Mc.Response.prototype,abort:"AbortController"in Mc&&"Request"in Mc&&"signal"in Mc.Request.prototype,encoding:"TextEncoder"in Mc&&"TextDecoder"in Mc,url:"URL"in Mc&&function(t){try{return new Mc.URL(t).toString()===t}catch(t){return!1}}("http://example.com/"),firefox:"navigator"in Mc&&/Firefox\//.test(Mc.navigator.userAgent)};function $c(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new a("Invalid character in header field name");return t}function Jc(t){return"string"!=typeof t&&(t=String(t)),t}function Zc(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return Kc.iterable&&(n[Symbol.iterator]=function(){return n}),n}var Qc=function(){function t(t){var n=this;this.qh={};var i,r=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(r):!function(t){return Kc.iterable&&t&&t[Symbol.iterator]}(t)?t&&h.getOwnPropertyNames(t).forEach(function(i){n.append(i,t[i])}):Array.from(t).forEach(r)}return t.prototype.append=function(t,n){t=$c(t),n=Jc(n);var i=t.toLowerCase();if(this.qh.hasOwnProperty(i)){var r=this.qh[i],e=r[1];r[1]=e?e+", "+n:n}else this.qh[i]=[t,n]},t.prototype.delete=function(t){var n=$c(t).toLowerCase();delete this.qh[n]},t.prototype.get=function(t){var n=$c(t).toLowerCase();return this.qh.hasOwnProperty(n)?this.qh[n][1]:null},t.prototype.has=function(t){var n=$c(t).toLowerCase();return this.qh.hasOwnProperty(n)},t.prototype.set=function(t,n){var i=(t=$c(t)).toLowerCase();this.qh[i]=[t,Jc(n)]},t.prototype.forEach=function(t,n){for(var i in this.qh)this.qh.hasOwnProperty(i)&&t.call(n,this.qh[i][1],i,this)},t.prototype.keys=function(){var t=[];return this.forEach(function(n,i){t.push(i)}),Zc(t)},t.prototype.values=function(){var t=[];return this.forEach(function(n){t.push(n)}),Zc(t)},t.prototype.entries=function(){var t=[];return this.forEach(function(n,i){t.push([i,n])}),Zc(t)},t.prototype.asList=function(){var t=[];for(var n in this.qh)if(this.qh.hasOwnProperty(n)){var i=this.qh[n],r=i[0],e=i[1];t.push([r,e])}return t},t}();function ta(){}Kc.iterable&&(Qc.prototype[Symbol.iterator]=Qc.prototype.entries);var na,ia,ra,ea=v.min,ua=String.fromCharCode,oa=16384;function sa(t){for(var n=[],i=0,r=t;i<r.length;i++){var e=r[i];e>65535&&(e-=65536,n.push(e>>>10&1023|55296),e=56320|1023&e),n.push(e)}return function(t){for(var n=t.length,i=[],r=0;r<n;r+=oa){var e=ea(r+oa,n);i.push(ua.apply(null,t.slice(r,e)))}return i.join("")}(n)}function fa(t){if(t>=55296&&t<=57343)throw new c("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function ca(t,n){return t>>n&63|128}function aa(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(fa(t),n.push(t>>12&15|224),n.push(ca(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(ca(t,12)),n.push(ca(t,6))),n.push(63&t|128)):n.push(t)}function ha(){if(ra>=ia)throw new c("Invalid byte index");var t=255&na[ra];if(ra++,128==(192&t))return 63&t;throw new c("Invalid continuation byte")}function va(){var t,n;if(ra>ia)throw new c("Invalid byte index");if(ra===ia)return!1;if(t=255&na[ra],ra++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|ha())>=128)return n;throw new c("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|ha()<<6|ha())>=2048)return fa(n),n;throw new c("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|ha()<<12|ha()<<6|ha())>=65536&&n<=1114111)return n;throw new c("Invalid UTF-8 detected")}var la=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];function da(t){return t&&URLSearchParams.prototype.isPrototypeOf(t)}function wa(t){return t&&ArrayBuffer.prototype.isPrototypeOf(t)}function ya(t){return t&&DataView.prototype.isPrototypeOf(t)}var pa,ba=ArrayBuffer.isView||function(t){return t&&(la.indexOf(h.prototype.toString.call(t))>-1||ya(t))};function ga(t){if(t.bodyUsed)return E.reject(new a("Already used"));t.bodyUsed=!0}function ma(t){return new E(function(n,i){t.onload=function(){n(t.result)},t.onerror=function(){i(t.error)}})}function _a(t){return Kc.encoding?new Mc.TextDecoder("utf-8").decode(new y(t)):sa(function(t){ia=(na=t).length,ra=0;for(var n,i=[];!1!==(n=va());)i.push(n);return i}(new y(t)))}function Ea(t){return Kc.encoding?(new Mc.TextEncoder).encode(t).buffer:new y(function(t){for(var n=[],i=0,r=t;i<r.length;i++)aa(r[i],n);return n}(function(t){for(var n=[],i=0,r=t.length;i<r;){var e=t.charCodeAt(i++);if(e>=55296&&e<=56319&&i<r){var u=t.charCodeAt(i++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),i--)}else n.push(e)}return n}(t))).buffer}function Sa(t){var n=t.getReader(),i=[],r=function(t){var e=t.done,u=t.value;return e?E.resolve(i):(i.push(u),n.read().then(r))};return n.read().then(r)}function Ia(t){return Sa(t).then(function(t){return function(t){for(var n=0,i=0,r=t;i<r.length;i++)n+=(f=r[i]).byteLength;for(var e=new y(n),u=0,o=0,s=t;o<s.length;o++){var f=s[o];e.set(f,u),u+=f.byteLength}return e}(t).buffer})}function Ra(t){return t.slice?t.slice(0):Ta(new y(t))}function Ta(t){if(t.slice)return t.slice(0).buffer;var n=new y(t.byteLength);return n.set(new y(t.buffer,t.byteOffset,t.byteLength)),n.buffer}function ka(t){var n=new FormData;return t.trim().split("&").forEach(function(t){if(t){var i=t.split("="),r=i.shift().replace(/\+/g," "),e=i.join("=").replace(/\+/g," ");n.append(decodeURIComponent(r),decodeURIComponent(e))}}),n}function Aa(t){var n=t;if(n.bodyUsed)throw new a("Already used");if(n.H_===pa.V_){if(!n.X_.tee)throw new c("could not clone ReadableStream body");var i=n.X_.tee(),r=i[0],e=i[1];return n.body=r,n.X_=r,n.z_=r,e}return n.H_===pa.$v?Ra(n.X_):n.H_===pa.Nl?n.X_.then(Aa):n.z_}!function(t){t[t.bu=0]="bu",t[t.q_=1]="q_",t[t.G_=2]="G_",t[t.$v=3]="$v",t[t.V_=4]="V_",t[t.Nl=5]="Nl"}(pa||(pa={}));var Oa=function(){function t(n,i){this.bodyUsed=!1;var r,e,u,o=this;if(this.z_=n||null,n)if("string"==typeof n)this.H_=pa.bu,this.X_=n;else if((u=n)&&"function"==typeof u.then)this.H_=pa.Nl,this.X_=E.resolve(n).then(function(n){return new t(n,i)}),this.X_.catch(ta);else if(Kc.blob&&function(t){return t&&Blob.prototype.isPrototypeOf(t)}(n))this.H_=pa.q_,this.X_=n;else if(Kc.formData&&function(t){return t&&FormData.prototype.isPrototypeOf(t)}(n))this.H_=pa.G_,this.X_=n;else if(Kc.searchParams&&da(n))this.H_=pa.bu,this.X_=n.toString();else if(Kc.arrayBuffer&&(wa(n)||ba(n)))ya(n)&&(this.z_=new y((e=n).buffer,e.byteOffset,e.byteLength)),this.H_=pa.$v,this.X_=wa(r=n)?Ra(r):Ta(r);else{if(!Kc.stream||!Xc(n))throw new c("unsupported BodyInit type");n=Gc(Wc,n),this.H_=pa.V_,this.X_=n,this.z_=n}else this.H_=pa.bu,this.X_="";this.W_="",i.has("content-type")?this.W_=(i.get("content-type")||"").toLowerCase():("string"==typeof n?this.W_="text/plain;charset=UTF-8":o.H_===pa.q_&&o.X_.type?this.W_=o.X_.type:Kc.searchParams&&da(n)&&(this.W_="application/x-www-form-urlencoded;charset=UTF-8"),this.W_&&i.set("content-type",this.W_)),Kc.stream&&(null==n?this.body=null:o.H_===pa.V_?this.body=o.X_:this.body=Yc(Wc,function(){return o.arrayBuffer()},function(){o.bodyUsed=!0}))}return t.prototype.text=function(){var t,n,i,r=ga(this);return r||(this.H_===pa.q_?(t=this.X_,n=new FileReader,i=ma(n),n.readAsText(t),i):this.H_===pa.$v?E.resolve(this.X_).then(_a):this.H_===pa.V_?Ia(this.X_).then(_a):this.H_===pa.Nl?this.X_.then(function(t){return t.text()}):this.H_===pa.G_?E.reject(new c("could not read FormData body as text")):E.resolve(this.X_))},t.prototype.json=function(){return this.text().then(JSON.parse)},t}();Kc.blob&&(Oa.prototype.blob=function(){var t,n,i=ga(this);return i||(this.H_===pa.q_?E.resolve(this.X_):this.H_===pa.$v?E.resolve(qc([this.X_],{type:this.W_})):this.H_===pa.V_?(t=this.X_,n=this.W_,Sa(t).then(function(t){return qc(t,{type:n||""})})):this.H_===pa.Nl?this.X_.then(function(t){return t.blob()}):this.H_===pa.G_?E.reject(new c("could not read FormData body as Blob")):E.resolve(qc([this.X_],{type:this.W_})))}),Kc.arrayBuffer&&(Oa.prototype.arrayBuffer=function(){var t,n,i;return this.H_===pa.$v?ga(this)||E.resolve(this.X_):this.H_===pa.q_?ga(this)||(t=this.X_,n=new FileReader,i=ma(n),n.readAsArrayBuffer(t),i):this.H_===pa.V_?Ia(this.X_):this.H_===pa.Nl?ga(this)||this.X_.then(function(t){return t.arrayBuffer()}):this.H_===pa.G_?E.reject(new c("could not read FormData body as ArrayBuffer")):E.resolve(this.X_).then(Ea)}),Kc.formData&&(Oa.prototype.formData=function(){return this.H_===pa.G_?ga(this)||E.resolve(this.X_):this.text().then(ka)});var Na=[301,302,303,307,308],Da=function(t){function n(n,i){var r=this,e=new Qc((i=i||{}).headers);return(r=t.call(this,n||null,e)||this).type="default",r.status=void 0===i.status?200:i.status,r.ok=r.status>=200&&r.status<300,r.statusText=void 0!==i.statusText?String(i.statusText):"",r.headers=e,r.url=i.url||"",r}return Lc(n,t),n.prototype.clone=function(){return new n(Aa(this),{status:this.status,statusText:this.statusText,headers:new Qc(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===Na.indexOf(i))throw new RangeError("Invalid status code");return new n(null,{status:i,headers:{location:t}})},n}(Oa);var Ca,xa=function(t,n){return t(n={exports:{}},n.exports),n.exports}(function(t,n){function i(t,n){if(!(t instanceof n))throw new a("Cannot call a class as a function")}function e(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),h.defineProperty(t,r.key,r)}}function o(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}function s(t){return(s=h.setPrototypeOf?h.getPrototypeOf:function(t){return t.__proto__||h.getPrototypeOf(t)})(t)}function f(t,n){return(f=h.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function c(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 r=function(t,n){for(;!h.prototype.hasOwnProperty.call(t,n)&&null!==(t=s(t)););return t}(t,n);if(r){var e=h.getOwnPropertyDescriptor(r,n);return e.get?e.get.call(i):e.value}})(t,n,i||t)}h.defineProperty(n,"__esModule",{value:!0});var l=function(){function t(){i(this,t),h.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return o(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],r=0,e=i.length;r<e;r++)if(i[r]===n)return void i.splice(r,1)}},{key:"dispatchEvent",value:function(t){var n=this;if(t.type in this.listeners){for(var i=function(i){u(function(){return i.call(n,t)})},r=this.listeners[t.type],e=0,o=r.length;e<o;e++)i(r[e]);return!t.defaultPrevented}}}]),t}(),d=function(t){function n(){var t,r,e;return i(this,n),r=this,(t=!(e=s(n).call(this))||"object"!=typeof e&&"function"!=typeof e?c(r):e).listeners||l.call(c(t)),h.defineProperty(c(t),"aborted",{value:!1,writable:!0,configurable:!0}),h.defineProperty(c(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return function(t,n){if("function"!=typeof n&&null!==n)throw new a("Super expression must either be null or a function");t.prototype=h.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&f(t,n)}(n,l),o(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(){i(this,t),h.defineProperty(this,"signal",{value:new d,writable:!0,configurable:!0})}return o(t,[{key:"abort",value:function(){var t;try{t=new Event("abort")}catch(n){void 0!==r?r.createEvent?(t=r.createEvent("Event")).initEvent("abort",!1,!1):(t=r.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",d.prototype[Symbol.toStringTag]="AbortSignal"),n.AbortSignal=d,n.AbortController=w,n.default=w});(Ca=xa)&&Ca.__esModule&&h.prototype.hasOwnProperty.call(Ca,"default")&&Ca.default;xa.AbortSignal;var Ba=xa.AbortController,Fa=Mc.DOMException;try{new Fa}catch(t){(Fa=function(t,n){c.call(this,t),this.name=n||"Error",c.captureStackTrace&&c.captureStackTrace(this,this.constructor)}).prototype=h.create(c.prototype),Fa.prototype.constructor=Fa}var Pa=Ba;function ja(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 Ua(t,n,i){return new E(function(r,e){if(n.signal.aborted)return t.catch(ta),e(La());var u=function(){n.signal.removeEventListener("abort",u),e(La())};n.signal.addEventListener("abort",u),t.then(function(t){n.signal.removeEventListener("abort",u),r(t),i&&n.abort()},function(t){n.signal.removeEventListener("abort",u),e(t),i&&n.abort()})})}function La(){return new Fa("Aborted","AbortError")}var Ma,qa="moz-chunked-arraybuffer";function Wa(t){try{var n=new p;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"}(Ma||(Ma={}));var Xa=function(){function t(t,n){var i=this;this.j_=!1,this.L_=t,this.Y_=n,this.Q_=new p,this.K_=new E(function(t,n){i.Z_=t,i.J_=n})}return t.prototype.send=function(){var t=this;return this.rg().then(function(n){return t.eg(n,t.Y_),t.K_})},t.prototype.rg=function(){var t=this.L_;return t.H_===pa.V_?t.arrayBuffer():E.resolve(t.z_)},t.prototype.og=function(t){this.L_.onprogress&&this.L_.onprogress(t.loaded,t.lengthComputable?t.total:void 0)},t.prototype.hg=function(t){this.J_(t)},t.prototype.ag=function(){this.hg(new a("Network request failed"))},t.prototype.cg=function(){this.hg(new a("Network request failed"))},t.prototype.fg=function(){this.hg(La())},t.prototype.eg=function(t,n){var i=this,r=this.L_,e=this.Q_,u=function(){return i.vg()};if(r.signal.aborted)return this.fg();e.onreadystatechange=function(){if(e.readyState>=Ma.HEADERS_RECEIVED&&!i.j_){var t=function(t){var n=new Qc;return t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var i=t.split(":"),r=i.shift().trim();if(r){var e=i.join(":").trim();n.append(r,e)}}),n}(e.getAllResponseHeaders()||""),n={status:e.status,statusText:e.statusText,headers:t,url:e.responseURL||t.get("X-Request-URL")};i.j_=!0,i.dg(n)}},e.onprogress=function(t){return i.og(t)},e.onload=function(){return i._g()},e.onerror=function(){return i.ag()},e.ontimeout=function(){return i.cg()},e.onabort=function(){return i.fg()},e.open(r.method,r.url,!0),e.withCredentials="include"===r.credentials,"responseType"in e&&n&&(e.responseType=n),r.headers.forEach(function(t,n){e.setRequestHeader(n,t)}),r.signal.addEventListener("abort",u),e.onloadend=function(){r.signal.removeEventListener("abort",u)},t?e.send(t):e.send()},t.prototype.vg=function(){this.fg(),this.Q_.abort()},t}(),Ha=function(t){function n(n,i){var r=t.call(this,n,i)||this;return r.gg=void 0,r.wg=void 0,r}return Lc(n,t),n.prototype.dg=function(t){var n=this;this.gg=new E(function(t,i){n.wg=t,n.yg=i}),this.Z_(new Da(this.gg,t))},n.prototype._g=function(){var t=this.Q_.response||this.Q_.responseText;this.wg(t)},n.prototype.hg=function(n){t.prototype.hg.call(this,n),this.yg&&this.yg(n)},n}(Xa),Va=function(t){function n(n){var i=t.call(this,n,qa)||this;return i.pg=void 0,i.Ag=void 0,i.Tg=!1,i}return Lc(n,t),n.prototype.dg=function(t){var n=this;this.pg=new Wc({start:function(t){n.Ag=t},cancel:function(){n.Tg=!0,n.vg()}}),this.Z_(new Da(this.pg,t))},n.prototype.og=function(n){this.Tg||this.Ag.enqueue(new y(this.Q_.response)),t.prototype.og.call(this,n)},n.prototype._g=function(){this.Ag.close()},n.prototype.hg=function(n){t.prototype.hg.call(this,n),this.Ag&&!this.Tg&&(this.Tg=!0,this.Ag.error(n))},n}(Xa),Ga=function(){var t=Kc.firefox&&Wa(qa);return Ga=function(){return t},t},za=function(){var t;return t=Kc.arrayBuffer&&Wa("arraybuffer")?"arraybuffer":Kc.blob&&Wa("blob")?"blob":"",za=function(){return t},t};function Ya(t){return(Kc.stream&&Ga()?new Va(t):new Ha(t,za())).send()}var Ka=Mc.fetch,$a=Mc.Request,Ja=(Mc.Response,Mc.AbortController);var Za=["http:","https:"];var Qa=function(){try{if(Kc.streamRequest){var t=new $a("about:blank",{body:"",method:"POST"}).body;if(t&&Hc(t.constructor))return t.constructor}}catch(t){}}();function th(t,n,i){var r;if(Kc.stream){var e=void 0;if(Kc.streamResponse){var u=t.body;e=u&&Gc(Wc,u)}else e=Yc(Wc,function(){return Ua(t.arrayBuffer(),n,!0)},function(){n.abort()});e&&i&&(e=function(t,n,i){var r=0;return function(t,n,i){return new t(new Vc(n.getReader(),i),{highWaterMark:0})}(Wc,t,function(t){var e=t.done,u=t.value;e?i=void 0===i?r:i:r+=u.byteLength,n(r,i)})}(e,i,nh(t.headers))),r=e}else{var o=Ua(t.arrayBuffer(),n,!0);i&&(o=function(t,n,i){return E.resolve().then(function(){return n(0,i),t}).then(function(t){var r=t.byteLength;return n(r,i=void 0===i?r:i),t})}(o,i,nh(t.headers))),r=o}return new Da(r,t)}function nh(t){return t.has("content-length")?Number(t.get("content-length")):void 0}function ih(t){var n=new Pa;return t.signal&&ja(n,t.signal),function(t,n){var i,r,e=t;if(i=e.H_===pa.V_?Kc.streamRequest&&Qa?E.resolve(Gc(Qa,e.X_)):Ua(t.arrayBuffer(),n,!1):Ua(E.resolve(t.z_),n,!1),Kc.abort){var u=new Ja;ja(u,n.signal),r=u.signal}return i.then(function(n){return new $a(t.url,{body:n||void 0,credentials:t.credentials,headers:(i=t.headers,(i instanceof Qc?i:new Qc(i)).asList()),method:t.method,mode:t.mode,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:r});var i})}(t,n).then(function(i){return Ka(i).then(function(i){return th(i,n,t.onprogress)})})}var rh=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];var eh=function(t){function n(i,r){var e,u,o,s,f,c,h,v,l,d=this,w=(r=r||{}).body||null;if(i instanceof n){if(i.bodyUsed)throw new a("Already used");e=i.url,u=i.credentials,r.headers||(o=new Qc(i.headers)),s=i.method,f=i.mode,c=i.referrer,h=i.referrerPolicy,v=i.signal,l=i.onprogress,w||null==i.z_||(w=i.z_,i.bodyUsed=!0)}else e=String(i),u="same-origin",s="GET",f="cors",c="about:client",h="",v=null,l=null;if(!r.headers&&o||(o=new Qc(r.headers)),r&&(c="about:client",h=""),(d=t.call(this,w,o)||this).url=e,d.headers=o,d.credentials=r.credentials||u,d.method=function(t){var n=t.toUpperCase();return rh.indexOf(n)>-1?n:t}(r.method||s),d.mode=r.mode||f,d.signal=r.signal||v||(new Pa).signal,d.referrer=void 0!==r.referrer?r.referrer:c,d.referrerPolicy=void 0!==r.referrerPolicy?r.referrerPolicy:h,d.onprogress=r.onprogress||l,("GET"===d.method||"HEAD"===d.method)&&w)throw new a("Body not allowed for GET or HEAD requests");return d}return Lc(n,t),n.prototype.clone=function(){return new n(this,{body:Aa(this)})},n}(Oa),uh="function"==typeof Ka&&Kc.stream&&Kc.streamResponse&&Kc.url;function oh(t,n){return new E(function(i){var r=new eh(t,n);i((uh&&function(t){try{return Za.indexOf(new Mc.URL(t,Mc.location.href).protocol)>=0}catch(t){return!1}}(r.url)?ih:Ya)(r))})}oh.polyfill=!0;var sh=function(){function t(t){this.M_=void 0,this.L_=void 0,this.Sg=new Zt,this.x_=void 0,this.Eg=!1,this.L_=t,this.Sg.Ma(t.Ua),this.M_=this.Ig()}var n=t.prototype;return n.Ig=function(){var t=E.coroutine(_.mark(function t(){var n,i,r,e,o,s,f,c,a=this;return _.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(n=this.L_).m_&&u(function(){a.Eg=!0,a.Sg.xa()},n.m_),t.prev=2,i=oh(n.t_,{method:n.w_,headers:n.Yl.ed(),body:n.xl,credentials:n.p_?"include":"same-origin",signal:ah(this.Sg.Ua),onprogress:n.b_}),t.next=9;break;case 6:throw t.prev=6,t.t0=t.catch(2),new Fc(n,t.t0);case 9:return t.prev=9,t.next=12,i;case 12:r=t.sent,t.next=20;break;case 15:throw t.prev=15,t.t1=t.catch(9),tn(e=this.Rg(t.t1))&&this.Sg.xa(),e;case 20:if(o=r.url||n.t_,s=0===r.status&&"file:"===(h=o,m.Th(h).protocol)?200:r.status,f=new fh(this,r,this.Sg),c=new Oc({uo:f,Jl:n,Ql:n.Ql,Yl:new Ju(r.headers.asList()),jl:s,Kl:r.statusText,$l:o}),this.x_=c,!Ic(c)){t.next=29;break}return t.abrupt("return",c);case 29:throw new Pc(c);case 30:case"end":return t.stop()}var h},t,this,[[2,6],[9,15]])}));return function(){return t.apply(this,arguments)}}(),n.Rg=function(t){return tn(t)?this.Eg?new jc(this.L_):new Qt(t.message,t):this.x_?new Pc(this.x_,t):new Fc(this.L_,t)},t}(),fh=function(t){function n(n,i,r){var e;return(e=t.call(this)||this).In=void 0,e.Ng=void 0,e.Sg=void 0,e.Hl=new du,e.In=n,e.Ng=i,e.Sg=r,e.Hl.Dc.catch(P),e}ft(n,t);var i=n.prototype;return i.Xl=function(){return this.Hl.Dc},i.Cl=function(t){return this.zl(this.Ng.text(),t)},i.Ol=function(t){return this.zl(this.Ng.arrayBuffer(),t)},i.Bl=function(){var t=this.Ng.body;return t?this.ql(t):fc(this.Ol().then(oc),this.Sg)},i.Gl=function(){var t=this.Ng.clone(),i=this.Sg.Fa(),r=i[0],e=i[1];return this.Sg=r,new n(this.In,t,e)},i.zl=function(t,n){var i=this;n&&this.Sg.Ma(n);var r=E.resolve(t).catch(function(t){throw i.In.Rg(t)});return r=nn(r,this.Sg),this.Hl.Cc(r.then(P)),r},i.ql=function(t){var n=this,i=new Gf,r=E.resolve(t.pipeTo(i.writable,{preventAbort:!0})).catch(function(t){var r=n.In.Rg(t);throw i.writable.abort(r).catch(P),r});return r=nn(r,this.Sg),this.Hl.Cc(r.then(P)),i.readable},q(n,[{key:"Wl",get:function(){return this.Ng.bodyUsed}}]),n}(lc),ch="abort";function ah(t){var n=new Pa;if(t.Sa)n.abort();else if(!t.Ea){var i=function(){r(),n.abort()},r=function r(){n.signal.removeEventListener(ch,i),t.Pa(i),t.Ba(r)};n.signal.addEventListener(ch,i),t.Ca(i),t.Oa(r)}return n.signal}var hh=function(){function t(){}var n=t.prototype;return n.Jl=function(t){return new sh(t).M_},n.A_=function(t){var n=t.Ll?{"Content-type":t.Ll}:void 0;this.Jl(new Nc({w_:Rc.POST,t_:t.t_,xl:t.xl,Yl:n})).then(P,P)},n.T_=function(){},t}(),vh=function(n){function i(){for(var i,r=arguments.length,e=new Array(r),u=0;u<r;u++)e[u]=arguments[u];return(i=n.call.apply(n,[this].concat(e))||this).Dg=void 0,i.Cg=function(){if(ri.Ps)return!1;try{return"body"in t.Response.prototype}catch(t){return!1}}(),i.Pg=ri.nu,i.Og=void 0,i}return ft(i,n),q(i,[{key:"_h",get:function(){return this.Dg||(this.Dg=new fu(Xu())),this.Dg}},{key:"Bg",get:function(){return this.Cg}},{key:"Lg",get:function(){return this.Pg}},{key:"xg",get:function(){return!1}},{key:"Mg",get:function(){return Vu.hv()}},{key:"Fg",get:function(){return{Ug:Yu}}},{key:"Hg",get:function(){return e.connection&&e.connection.effectiveType||"default"}},{key:"Vg",get:function(){return e.connection&&e.connection.type||"unknown"}},{key:"Xg",get:function(){return this.Og||(this.Og=new xc(new hh)),this.Og}}]),i}(ze);S(new vh),S(new vh);var lh=t;lh.addEventListener("install",function(t){t.waitUntil(lh.skipWaiting())}),lh.addEventListener("activate",function(t){t.waitUntil(lh.clients.claim())}),Gn.de.Ek(lh)}()}("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.me=0,this.ye=!1,this.ke=void 0,this.pe=[],R(t,this)}function _(t,n){for(;3===t.me;)t=t.ke;0!==t.me?(t.ye=!0,y.Ae(function(){var i=1===t.me?n.onFulfilled:n.onRejected;if(null!==i){var e;try{e=i(t.ke)}catch(t){return void I(n.promise,t)}S(n.promise,e)}else(1===t.me?S:I)(n.promise,t.ke)})):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.me=3,t.ke=n,void T(t);if("function"==typeof i)return void R((e=i,r=n,function(){e.apply(r,arguments)}),t)}t.me=1,t.ke=n,T(t)}catch(n){I(t,n)}var e,r}function I(t,n){t.me=2,t.ke=n,T(t)}function T(t){2===t.me&&0===t.pe.length&&y.Ae(function(){t.ye||y.Te(t.ke)});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.qi=[],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.qi[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.qi[i&e]=t,this.Se=n}},t.prototype.shift=function(){var t=this.Ee,n=this.qi[t];return this.qi[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.qi,0,n,i)},t}();var F="unhandledrejection",U=t.PromiseRejectionEvent,L=t.CustomEvent;function M(t){return new U(F,{reason:t,promise:k.reject(t).catch(function(){}),cancelable:!0})}function z(t){var n=new L(F,{detail:{reason:t},cancelable:!0});return c.defineProperty(n,"reason",{value:t}),n}function q(t){var n=i.createEvent("CustomEvent");return n.initCustomEvent(F,!1,!0,{reason:t}),n}var W,j,V,H,X,G,Y=function(t){return(Y=function(){try{var t=k.resolve(),n=new U(F,{reason:"error",promise:t});return F===n.type&&"error"===n.reason}catch(t){}return!1}()?M:function(){try{var t=new L(F,{detail:{reason:"error"}});return F===t.type&&"error"===t.detail.reason}catch(t){}return!1}()?z:q)(t)};if(k&&!(P&&A<60||x&&C<15))j=k,function(){};else{j=y;var K=null!==(W=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!==W?W: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}});$.Pe,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,Z=function(t,n,i){return t(i={path:n,exports:{},require:function(t,n){return function(){throw new f("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&i.path)}},i.exports),i.exports}(function(t){!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.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.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,"Wr")?j.resolve(h.Wr).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{Wr: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}}}(t.exports)});function Q(t){J=t}var tt={}.toString;var nt=Array.isArray||function(t){return"[object Array]"===tt.call(t)};function it(t){return"object"==typeof t&&null!==t}var et,rt=9007199254740991,ot=a.pow(2,-52);function ut(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.Ss=0]="Ss",t[t.Es=1]="Es",t[t.Is=-1]="Is"}(et||(et={}));var st=function(t,n){return function(t,n){if(t===n)return!0;var i=a.abs(t-n);return i<ot||i<a.max(a.abs(t),a.abs(n))*ot}(t,n)?et.Ss:function(t,n){return t===n?et.Ss:t<n?et.Is:t>n?et.Es:l(t)?l(n)?et.Ss:et.Es:et.Is}(t,n)};function ft(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 ht(t,n){var i=t.indexOf(n);return-1!==i&&(function(t,n){t.splice(n,1)}(t,i),!0)}function ct(t,n){return-1!==t.indexOf(n)}function at(t){t.length=0}var vt=function(){};function dt(){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 lt,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),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.bA="metadata"}(lt||(lt={}));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.ykt="#EXT-X-MAP",t.oO="#EXTM3U",t.i="#EXT-X-VERSION",t.o="#EXT-X-TARGETDURATION",t.S5="#EXT-X-START",t.s="#EXT-X-INDEPENDENT-SEGMENTS",t.Wf="#EXT-X-STREAM-INF",t.h="#EXT-X-MEDIA-SEQUENCE",t.m="#EXT-X-ENDLIST",t.hO="#EXT-X-MEDIA",t.p="#EXT-X-DISCONTINUITY",t.S="#EXT-X-DISCONTINUITY-SEQUENCE",t.I="#EXT-X-PLAYLIST-TYPE"}(_t||(_t={}));var It,Tt=function(){function t(t,n){this.us=_t.Zd,this.T=void 0,this.k=void 0,this.T=t,this.k=n}return t.prototype.zI=function(){return this.us+":"+this.T+",\n"+this.k},t}(),Et=function(){function t(){this.us=_t.oO}return t.prototype.zI=function(){return this.us},t}(),Rt=function(){function t(t){this.us=_t.i,this.ZA=void 0,this.ZA=t}return t.prototype.zI=function(){return this.us+":"+this.ZA},t}(),kt=function(){function t(t){this.us=_t.o,this.kpt=void 0,this.kpt=t}return t.prototype.zI=function(){return this.us+":"+this.kpt},t}(),Nt=function(){function t(t){this.us=_t.S5,this.vAt=void 0,this.vAt=t}return t.prototype.zI=function(){return this.us+":TIME-OFFSET="+this.vAt},t}(),Ot=function(){function t(){this.us=_t.s}return t.prototype.zI=function(){return this.us},t}(),Pt=function(){function t(t){this.us=_t.Wf,this.$R=1,this.k=void 0,this.k=t}return t.prototype.zI=function(){return this.us+":BANDWIDTH="+this.$R+',AUDIO="audio"\n'+this.k},t}(),At=function(){function t(t){this.us=_t.h,this.xS=void 0,this.xS=t}return t.prototype.zI=function(){return this.us+":"+this.xS},t}(),Dt=function(){function t(){this.us=_t.p}return t.prototype.zI=function(){return this.us},t}(),xt=function(){function t(t){this.us=_t.S,this.xS=void 0,this.xS=t}return t.prototype.zI=function(){return this.us+":"+this.xS},t}();!function(t){t.Akt="VOD",t.NNt="EVENT"}(It||(It={}));var Ct=function(){function t(t){this.us=_t.hO,this.k=void 0,this.k=t}return t.prototype.zI=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.k+'"');var n=[];return t.forEach(function(t,i){return n.push(i+"="+t)}),this.us+":"+n.join(",")},t}(),Bt=function(){function t(t){this.Fo=[],this.Fo=t}return t.prototype.O=function(){for(var t="",n=0,i=this.Fo;n<i.length;n++){t+=i[n].zI()+"\n"}return t},gt(t,[{key:"VT",get:function(){return this.Fo}}]),t}(),Ft=function(){function t(){this.Fo=[];for(var t=[new Et,new Rt(8)],n=0;n<t.length;n++){var i=t[n];this.P(i)}}var n=t.prototype;return n.P=function(t){this.Fo.push(t)},n.Os=function(){this.Fo.length=0},gt(t,[{key:"VT",get:function(){return new Bt(this.Fo)}}]),t}();function Ut(t,n){return(Ut=c.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function Lt(t,n){t.prototype=c.create(n.prototype),t.prototype.constructor=t,Ut(t,n)}var Mt=function(){function t(){}var n=t.prototype;return n.Zk=function(t){return this.Jk()*t},n.$k=function(t){return this.tp(t)>0},n.np=function(t){return this.tp(t)>=0},n.ip=function(t,n){return this.rp(t).ep(n)},n.Hk=function(t){return 0===this.tp(t)},n.sp=function(t){return this.tp(t)<0},n.ep=function(t){return this.tp(t)<=0},n.op=function(){return this.hp()?this.ap():this},n.cp=function(t){return this.jy(t.ap())},n.rp=function(t){return this.cp(t).op()},t}();function zt(t,n){return t.fp()?n.fp()?et.Ss:et.Es:n.fp()?et.Is:t.vp()?n.vp()&&t.hp()===n.hp()?et.Ss:t.hp()?et.Is:et.Es:n.hp()?et.Es:et.Is}var qt=jt,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 jt(t,n,i){this.low=0|t,this.high=0|n,this.unsigned=!!i}function Vt(t){return!0===(t&&t.jn)}jt.prototype.jn,c.defineProperty(jt.prototype,"jn",{value:!0}),jt.isLong=Vt;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|t)<0?-1: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 jt(t,n,i)}jt.fromInt=Gt,jt.fromNumber=Yt,jt.fromBits=Kt;var $t=a.pow;function Jt(t,n,i){if(0===t.length)throw f("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return rn;if("number"==typeof n?(i=n,n=!1):n=!!n,(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)}jt.fromString=Jt,jt.fromValue=Zt;var Qt=4294967296,tn=Qt*Qt,nn=tn/2,en=Gt(1<<24),rn=Gt(0);jt.ZERO=rn;var on=Gt(0,!0);jt.UZERO=on;var un=Gt(1);jt.ONE=un;var sn=Gt(1,!0);jt.UONE=sn;var fn=Gt(-1);jt.NEG_ONE=fn;var hn=Kt(-1,2147483647,!1);jt.MAX_VALUE=hn;var cn=Kt(-1,-1,!0);jt.MAX_UNSIGNED_VALUE=cn;var an=Kt(0,-2147483648,!1);jt.MIN_VALUE=an;var vn=jt.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 Vt(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(Vt(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){Vt(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 Vt(t)||(t=Zt(t)),this.add(t.neg())},vn.sub=vn.subtract,vn.multiply=function(t){if(this.isZero())return rn;if(Vt(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 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(Vt(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 Vt(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.and=function(t){return Vt(t)||(t=Zt(t)),Kt(this.low&t.low,this.high&t.high,this.unsigned)},vn.or=function(t){return Vt(t)||(t=Zt(t)),Kt(this.low|t.low,this.high|t.high,this.unsigned)},vn.xor=function(t){return Vt(t)||(t=Zt(t)),Kt(this.low^t.low,this.high^t.high,this.unsigned)},vn.shiftLeft=function(t){return Vt(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 Vt(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){if(Vt(t)&&(t=t.toInt()),0===(t&=63))return this;var n=this.high;return t<32?Kt(this.low>>>t|n<<32-t,n>>>t,this.unsigned):Kt(32===t?n:n>>>t-32,0,this.unsigned)},vn.shru=vn.shiftRightUnsigned,vn.shr_u=vn.shiftRightUnsigned,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]},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 dn=qt,ln=function(){function t(t,n){this.dp=void 0,this.lp=void 0,this.dp=t,this.lp=n}t._p=function(n,i,e){return e?new t(n.toUnsigned(),i.toUnsigned()):new t(n.toSigned(),i.toSigned())},t.wp=function(n){return n.unsigned?new t(n,dn.UZERO):new t(n,n.isNegative()?dn.NEG_ONE:dn.ZERO)},t.gp=function(n,i){if(l(n))return i?t.mp:t.yp;if(i){if(n<0)return t.mp;if(n>=3.402823669209385e38)return t.kp}else{if(n<=-1.7014118346046923e38)return t.pp;if(n+1>=1.7014118346046923e38)return t.bp}return n<0?t.gp(-n,i).ap():t._p(dn.fromNumber(n%0x10000000000000000),dn.fromNumber(n/0x10000000000000000),i)};var n=t.prototype;return n.Ap=function(){return this.lp.unsigned},n.Tp=function(){return this.dp.isZero()&&this.lp.isZero()},n.hp=function(){return this.lp.isNegative()},n.Sp=function(){return this.Ap()?t._p(this.dp,this.lp,!1):this},n.Ep=function(){return this.Ap()?this:t._p(this.dp,this.lp,!0)},n.Ip=function(){return this.dp},n.Jk=function(){return this.hp()?-this.ap().Jk():0x10000000000000000*this.lp.toNumber()+this.dp.toUnsigned().toNumber()},n.Rp=function(){return this.dp.toInt()},n.Hk=function(t){return(this.Ap()===t.Ap()||this.lp.getHighBits()>>>31!=1||t.lp.getHighBits()>>>31!=1)&&(this.lp.toUnsigned().eq(t.lp.toUnsigned())&&this.dp.toUnsigned().eq(t.dp.toUnsigned()))},n.tp=function(t){if(this.Hk(t))return et.Ss;var n=this.hp(),i=t.hp();if(n&&!i)return et.Is;if(!n&&i)return et.Es;if(!this.Ap())return this.cp(t).hp()?et.Is:et.Es;var e=this.Ep(),r=t.Ep(),o=r.lp.comp(e.lp);return o>0||0===o&&r.dp.gt(e.dp)?et.Is:et.Es},n.sp=function(t){return this.tp(t)<0},n.ep=function(t){return this.tp(t)<=0},n.Np=function(t){return this.tp(t)>0},n.Dp=function(t){return this.tp(t)>=0},n.Cp=function(){return new t(this.dp.not(),this.lp.not())},n.Pp=function(n){return new t(this.dp.and(n.dp),this.lp.and(n.lp))},n.Op=function(n){return new t(this.dp.or(n.dp),this.lp.or(n.lp))},n.Bp=function(n){var i=127&n;return 0===i?this:i<64?t._p(this.dp.shl(i),this.lp.shl(i).or(this.dp.shru(64-i)),this.Ap()):t._p(dn.ZERO,this.dp.shl(i-64),this.Ap())},n.Lp=function(n){var i=127&n;return 0===i?this:i<64?t._p(this.dp.shru(i).or(this.lp.shl(64-i)),this.lp.shr(i),this.Ap()):t._p(this.lp.shr(i-64),this.lp.isNegative()?dn.NEG_ONE:dn.ZERO,this.Ap())},n.xp=function(n){var i=127&n;return 0===i?this:i<64?t._p(this.dp.shru(i).or(this.lp.shl(64-i)),this.lp.shru(i),this.Ap()):64===i?t._p(this.lp,dn.ZERO,this.Ap()):t._p(this.lp.shru(i-64),dn.ZERO,this.Ap())},n.jy=function(n){var i=this.lp.high>>>16,e=65535&this.lp.high,r=this.lp.low>>>16,o=65535&this.lp.low,u=this.dp.high>>>16,s=65535&this.dp.high,f=this.dp.low>>>16,h=65535&this.dp.low,c=n.lp.high>>>16,a=65535&n.lp.high,v=n.lp.low>>>16,d=65535&n.lp.low,l=n.dp.high>>>16,w=65535&n.dp.high,b=n.dp.low>>>16,g=0,m=0,p=0,y=0,_=0,S=0,I=0,T=0;I+=(T+=h+(65535&n.dp.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.Ap(),R=dn.fromBits(p<<16|y,g<<16|m,E),k=dn.fromBits(I<<16|T,_<<16|S,E);return t._p(k,R,E)},n.cp=function(t){return this.jy(t.ap())},n.ap=function(){return this.Cp().jy(t.Mp)},n.Fp=function(n){if(this.Tp()||n.Tp())return this.Ap()?t.mp:t.yp;if(this.hp())return n.hp()?this.ap().Fp(n.ap()):this.ap().Fp(n).ap();if(n.hp())return this.Fp(n.ap()).ap();if(this.lp.isZero()&&0===this.dp.high&&n.lp.isZero()&&0===n.dp.high)return t.wp(this.dp.multiply(n.dp));var i=dn.fromBits(4294967295,0,!0),e=this.dp.and(i),r=this.dp.shru(32),o=this.lp.and(i),u=this.lp.shru(32),s=n.dp.and(i),f=n.dp.shru(32),h=n.lp.and(i),c=n.lp.shru(32),a=dn.UZERO,v=dn.UZERO,d=dn.UZERO,l=dn.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=dn.fromBits(a.getLowBitsUnsigned(),v.getLowBitsUnsigned(),!0),b=dn.fromBits(d.getLowBitsUnsigned(),l.getLowBitsUnsigned(),!0);return t._p(w,b,this.Ap())},n.Up=function(n){var i,e,r=n;if(r.Tp())throw new RangeError("division by zero");if(this.Tp())return this.Ap()?[t.mp,t.mp]:[t.yp,t.yp];if(this.Ap()){if(r.Ap()||(r=r.Ep()),r.Np(this))return[t.mp,this];if(r.Np(this.xp(1)))return[e=t.Hp,i=this.cp(r)];e=t.mp}else{if(this.Hk(t.pp)){if(r.Hk(t.Mp)||r.Hk(t.Vp))return[t.pp,t.yp];if(r.Hk(t.pp))return[t.Mp,t.yp];var o=this.Lp(1).Xp(r).Bp(1);return o.Hk(t.yp)?e=r.hp()?t.Mp:t.Vp:(i=this.cp(r.Fp(o)),e=o.jy(i.Xp(r))),[e,i=this.cp(r.Fp(e))]}if(r.Hk(t.pp))return this.Ap()?[t.mp,this]:[t.yp,this];if(this.hp()){if(r.hp())return this.ap().Up(r.ap());var u=this.ap().Up(r);return e=u[0],i=u[1],[e.ap(),i.ap()]}if(r.hp()){var s=this.Up(r.ap());return e=s[0],i=s[1],[e.ap(),i.ap()]}e=t.yp}for(i=this;i.Dp(r);){for(var f=a.max(1,a.floor(i.Jk()/r.Jk())),h=a.ceil(a.log(f)/a.LN2),c=h<=48?1:a.pow(2,h-48),v=t.gp(f),d=v.Fp(r);d.hp()||d.Np(i);)f-=c,d=(v=t.gp(f,this.Ap())).Fp(r);v.Tp()&&(v=t.Mp),e=e.jy(v),i=i.cp(d)}return[e,i]},n.Xp=function(t){return this.Up(t)[0]},n.zp=function(t){return this.Up(t)[1]},n.toString=function(n){var i=n||10;if(i<2||i>36)throw new RangeError("radix");if(this.Tp())return"0";if(this.hp()){if(this.Hk(t.pp)){var e=t.gp(i),r=this.Xp(e),o=r.Fp(e).cp(this);return r.toString(i)+o.Rp().toString(i)}return"-"+this.ap().toString(i)}for(var u=t.gp(a.pow(i,6),this.Ap()),s=this,f="";;){var h=s.Xp(u),c=(s.cp(h.Fp(u)).Rp()>>>0).toString(i);if((s=h).Tp())return c+f;for(;c.length<6;)c="0"+c;f=String(c)+f}},t}();ln.yp=ln.wp(dn.ZERO),ln.mp=ln.wp(dn.UZERO),ln.Mp=ln.wp(dn.ONE),ln.Hp=ln.wp(dn.UONE),ln.Vp=ln.wp(dn.NEG_ONE),ln.bp=ln._p(dn.NEG_ONE,dn.MAX_VALUE,!1),ln.kp=ln._p(dn.MAX_UNSIGNED_VALUE,dn.MAX_UNSIGNED_VALUE,!0),ln.pp=ln._p(dn.ZERO,dn.MIN_VALUE,!1);var wn=function(){function t(t,n){void 0===n&&(n=1),this.Gp=void 0,this.qp=void 0,this.Gp=t,this.qp=n}t.Wp=function(n){return new t(a.ceil(n.Gp),n.qp)},t.Yp=function(n){return new t(a.floor(n.Gp),n.qp)},t.Qp=function(t,n){return t.np(n)?t:n},t.jp=function(t,n){return t.ep(n)?t:n};var n=t.prototype;return n.jy=function(n){return this.qp>=n.qp?new t(this.Gp+n.Kp(this.qp).Gp,this.qp):new t(this.Kp(n.qp).Gp+n.Gp,n.qp)},n.$k=function(t){return t.sp(this)},n.np=function(t){return t.ep(this)},n.rp=function(n){return this.qp>=n.qp?new t(a.abs(this.Gp-n.Kp(this.qp).Gp),this.qp):n.rp(this)},n.ip=function(t,n){return this.rp(t).ep(n)},n.tp=function(t){return i=t,(n=this).qp>=i.qp?st(n.Gp,i.Kp(n.qp).Gp):st(n.Kp(i.qp).Gp,i.Gp);var n,i},n.Hk=function(t){return 0===this.tp(t)},n.sp=function(t){return this.tp(t)<0},n.ep=function(t){return this.tp(t)<=0},n.Kp=function(n){return new t(this.Gp*(n/this.qp),n)},n.cp=function(n){return this.qp>=n.qp?new t(this.Gp-n.Kp(this.qp).Gp,this.qp):new t(this.Kp(n.qp).Gp-n.Gp,n.qp)},n.Zp=function(n){return new t(this.Gp*n,this.qp)},gt(t,[{key:"vp",get:function(){return!isFinite(this.Gp)}},{key:"Jp",get:function(){return this.Gp/this.qp}}]),t}();wn.$p=new wn(1/6,1),wn.yp=new wn(0),wn.ib=new wn(1/0),wn.eb=1e6;var bn=function(t){function n(n,i){var e;return(e=t.call(this)||this).Ai=void 0,e.qp=void 0,e.Ai=n.toSigned(),e.qp=i>>>0,e}Lt(n,t),n.sb=function(t,i){return void 0===i&&(i=1e6),n.gp(t*i,i)},n.gp=function(t,i){return l(t)?n.ub:t===1/0?n.ob:t===-1/0?n.hb:new n(dn.fromNumber(t),i)},n.wp=function(t,i){return new n(t,i)},n.cb=function(t){return n.sb(t.Jp,1e6)},n.fb=function(t){return new n(dn.fromNumber(t.getTime()),1e3)},n.Qp=function(t,n){return t.np(n)?t:n},n.jp=function(t,n){return t.ep(n)?t:n},n.vb=function(t,i,e){return n.Qp(i,n.jp(e,t))};var i=n.prototype;return i.hp=function(){return this.Ai.isNegative()},i.Tp=function(){return 0!==this.qp&&this.Ai.isZero()},i.vp=function(){return 0===this.qp&&!this.Ai.isZero()},i.fp=function(){return 0===this.qp&&this.Ai.isZero()},i.Jk=function(){if(0===this.qp)return this.Ai.isZero()?NaN:this.Ai.isNegative()?-1/0:1/0;var t=this.Ai.divide(this.qp),n=this.Ai.subtract(t.multiply(this.qp));return t.toNumber()+n.toNumber()/this.qp},i.Ip=function(){if(0===this.qp)throw new f("Failed to convert timestamp");return this.Ai},i._b=function(){return new Date(0===this.qp?NaN:this.Kp(1e3).Ai.toNumber())},i.wb=function(){return new wn(0===this.qp?this.Jk():this.Ai.toNumber(),this.qp)},i.Kp=function(t,i){void 0===i&&(i=pn.gb);var e=this.qp;if(e===t)return this;if(0===e)return this;var r=ut(e,t);return new n(function(t,n,i){var e=t.Up(n),r=e[0],o=e[1];if(o.Tp())return r;if(i===pn.gb)return o.hp()?r.cp(ln.Mp):r;if(i===pn.mb)return o.hp()?r:r.jy(ln.Mp);var u=o.Fp(ln.gp(2));return u.hp()?u.ap().sp(n)?r:r.cp(ln.Mp):u.sp(n)?r:r.jy(ln.Mp)}(ln.wp(this.Ai).Fp(ln.gp(t/r)),ln.gp(e/r),i).Ip(),t)},i.tp=function(t){if(this===t)return et.Ss;if(0===this.qp||0===t.qp)return zt(this,t);if(this.Tp())return t.Tp()?et.Ss:t.hp()?et.Es:et.Is;if(t.Tp())return this.hp()?et.Is:et.Es;var n=a.min(this.qp,t.qp),i=this.Kp(n,pn.yb).Ai,e=t.Kp(n,pn.yb).Ai;return i.compare(e)},i.ap=function(){return 0===this.qp?gn(this):new n(this.Ai.negate(),this.qp)},i.jy=function(t){if(0===this.qp||0===t.qp)return mn(this,t);if(this.Tp())return t;if(t.Tp())return this;var i=a.max(this.qp,t.qp),e=this.Kp(i,pn.yb),r=t.Kp(i,pn.yb);return new n(e.Ai.add(r.Ai),i)},i.Fp=function(t){if(this.fp()||l(t))return n.ub;if(this.vp()||!isFinite(t)){if(this.Tp()||0===t)return n.ub;var i=this.hp()?n.hb:n.ob;return t<0?i.ap():i}return this.Tp()?this:new n(0===t?dn.ZERO:this.Ai.multiply(t),this.qp)},i.Xp=function(t){if(this.fp()||l(t))return n.ub;if(this.vp())return isFinite(t)?0===t?1/t<0?this.ap():this:t<0?this.ap():this:n.ub;if(!isFinite(t))return new n(dn.ZERO,this.qp);if(this.Tp())return 0===t?n.ub:new n(dn.ZERO,this.qp);if(0===t){var i=this.hp()?n.hb:n.ob;return 1/t<0?i.ap():i}return new n(this.Ai.divide(t),this.qp)},i.kb=function(){return[this.Ai.low,this.Ai.high,this.qp]},n}(Mt);function gn(t){return t.fp()?t:t.hp()?bn.ob:bn.hb}function mn(t,n){return t.fp()||n.fp()?bn.ub:t.vp()&&n.vp()?t.hp()===n.hp()?t:bn.ub:t.vp()?t:n}bn.yp=new bn(dn.ZERO,1e6),bn.ub=new bn(dn.ZERO,0),bn.ob=new bn(dn.ONE,0),bn.hb=new bn(dn.NEG_ONE,0);var pn,yn=function(t){function n(n,i){var e;return(e=t.call(this)||this).Ai=void 0,e.qp=void 0,e.Ai=BigInt.asIntN(64,n),e.qp=i>>>0,e}Lt(n,t),n.sb=function(t,i){return void 0===i&&(i=1e6),n.gp(t*i,i)},n.gp=function(t,i){return l(t)?n.ub:t===1/0?n.ob:t===-1/0?n.hb:new n(BigInt(a.floor(t)),i)},n.wp=function(t,i){return new n(BigInt(t.high)<<BigInt(32)|BigInt(t.low>>>0),i)},n.cb=function(t){return n.sb(t.Jp,1e6)},n.fb=function(t){return n.gp(t.getTime(),1e3)},n.Qp=function(t,n){return t.np(n)?t:n},n.jp=function(t,n){return t.ep(n)?t:n},n.vb=function(t,i,e){return n.Qp(i,n.jp(e,t))};var i=n.prototype;return i.hp=function(){return this.Ai<BigInt(0)},i.Tp=function(){return 0!==this.qp&&this.Ai===BigInt(0)},i.vp=function(){return 0===this.qp&&this.Ai!==BigInt(0)},i.fp=function(){return 0===this.qp&&this.Ai===BigInt(0)},i.Jk=function(){if(0===this.qp)return this.Ai===BigInt(0)?NaN:this.Ai<BigInt(0)?-1/0:1/0;var t=this.Ai/BigInt(this.qp),n=this.Ai-t*BigInt(this.qp);return Number(t)+Number(n)/this.qp},i.Ip=function(){if(0===this.qp)throw new f("Failed to convert timestamp");return this.pb()},i.pb=function(){var t=this.Ai&BigInt(4294967295),n=this.Ai>>BigInt(32)&BigInt(4294967295);return dn.fromBits(Number(t),Number(n))},i._b=function(){return new Date(0===this.qp?NaN:Number(this.Kp(1e3).Ai))},i.wb=function(){return new wn(0===this.qp?this.Jk():Number(this.Ai),this.qp)},i.Kp=function(t,i){void 0===i&&(i=pn.gb);var e=this.qp;if(e===t)return this;if(0===e)return this;var r=ut(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.gb)return r<BigInt(0)?e-BigInt(1):e;if(i===pn.mb)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.tp=function(t){if(this===t)return et.Ss;if(0===this.qp||0===t.qp)return zt(this,t);if(this.Tp())return t.Tp()?et.Ss:t.hp()?et.Es:et.Is;if(t.Tp())return this.hp()?et.Is:et.Es;var n=a.min(this.qp,t.qp),i=this.Kp(n,pn.yb).Ai,e=t.Kp(n,pn.yb).Ai;return i>e?et.Es:i<e?et.Is:et.Ss},i.ap=function(){return 0===this.qp?_n(this):new n(-this.Ai,this.qp)},i.jy=function(t){if(0===this.qp||0===t.qp)return Sn(this,t);if(this.Tp())return t;if(t.Tp())return this;var i=a.max(this.qp,t.qp),e=this.Kp(i,pn.yb),r=t.Kp(i,pn.yb);return new n(e.Ai+r.Ai,i)},i.Fp=function(t){if(this.fp()||l(t))return n.ub;if(this.vp()||!isFinite(t)){if(this.Tp()||0===t)return n.ub;var i=this.hp()?n.hb:n.ob;return t<0?i.ap():i}return this.Tp()?this:new n(0===t?BigInt(0):this.Ai*BigInt(t),this.qp)},i.Xp=function(t){if(this.fp()||l(t))return n.ub;if(this.vp())return isFinite(t)?0===t?1/t<0?this.ap():this:t<0?this.ap():this:n.ub;if(!isFinite(t))return new n(BigInt(0),this.qp);if(this.Tp())return 0===t?n.ub:new n(BigInt(0),this.qp);if(0===t){var i=this.hp()?n.hb:n.ob;return 1/t<0?i.ap():i}return new n(this.Ai/BigInt(t),this.qp)},i.kb=function(){var t=this.pb();return[t.low,t.high,this.qp]},gt(n,null,[{key:"yp",get:function(){return n.bb||(n.bb=new n(BigInt(0),1e6)),n.bb}},{key:"ub",get:function(){return n.Ab||(n.Ab=new n(BigInt(0),0)),n.Ab}},{key:"ob",get:function(){return n.Tb||(n.Tb=new n(BigInt(1),0)),n.Tb}},{key:"hb",get:function(){return n.Sb||(n.Sb=new n(BigInt(-1),0)),n.Sb}}]),n}(Mt);function _n(t){return t.fp()?t:t.hp()?yn.ob:yn.hb}function Sn(t,n){return t.fp()||n.fp()?yn.ub:t.vp()&&n.vp()?t.hp()===n.hp()?t:yn.ub:t.vp()?t:n}yn.bb=void 0,yn.Ab=void 0,yn.Tb=void 0,yn.Sb=void 0,function(t){t[t.gb=0]="gb",t[t.mb=1]="mb",t[t.yb=2]="yb"}(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.wp(dn.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=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 Lt(n,t),gt(n,[{key:"name",get:function(){return"BaseError"}}]),n}(Rn),Nn=function(){function t(){this.Rs=!1,this.Ns=!1,this.Ds=[],this.Cs=[]}var n=t.prototype;return n.Ps=function(){if(!this.Rs&&!this.Ns){this.Rs=!0;for(var t=0,n=this.Ds.slice();t<n.length;t++){(0,n[t])()}this.Os()}},n.Os=function(){if(!this.Ns){this.Ns=!0;for(var t=0,n=this.Cs.slice();t<n.length;t++){(0,n[t])()}at(this.Ds),at(this.Cs)}},n.Bs=function(t){this.Ns||this.Ds.push(t)},n.Ls=function(t){this.Ns||ht(this.Ds,t)},n.xs=function(t){this.Ns||this.Cs.push(t)},n.Ms=function(t){this.Ns||ht(this.Cs,t)},t}(),On=function(){function t(){this.Fs=new Nn}var n=t.prototype;return n.Us=function(){this.Fs.Ps()},n.Os=function(){this.Fs.Os()},n.Hs=function(t){var n=this.Fs;if(!n.Rs)if(t.Rs)n.Ps();else if(!n.Ns&&!t.Ns){var i=function(){e(),n.Ps()},e=function e(){t.Ls(i),t.Ms(e),n.Ls(i),n.Ms(e)};t.Bs(i),t.xs(e),n.Bs(i),n.xs(e)}},n.Vs=function(){var n=new t,i=new t,e=n.Xs,r=i.Xs,o=this.Fs,u=function(){e.Rs&&r.Ns||r.Rs&&e.Ns?o.Ps():e.Ns&&r.Ns&&o.Os()};e.Bs(u),r.Bs(u),e.xs(u),r.xs(u),n.Hs(o),i.Hs(o);return o.xs(function(){e.Ls(u),r.Ls(u),e.Ms(u),r.Ms(u)}),[n,i]},gt(t,[{key:"Xs",get:function(){return this.Fs}}]),t}(),Pn=function(t){function n(n,i){return t.call(this,n||"Aborted",i)||this}return Lt(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.Os(),t},function(t){throw n.Os(),t})}var xn;j.resolve();!function(t){t.lZ="HELLO",t._Z="HI_THERE",t.wZ="INITIALIZE",t.gZ="APPEND_INIT",t.mZ="APPEND_DATA",t.yZ="ACK",t.kZ="REMOVE",t.pZ="DESTROY_SESSION"}(xn||(xn={}));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 Un=function(){function t(t){void 0===t&&(t=0),this.Pu=t}var n=t.prototype;return n.Cu=function(t){this.Pu+=t},n.Ou=function(t){this.Pu=t},n.Bu=function(){return new t(this.Du)},gt(t,[{key:"Du",get:function(){return this.Pu}}]),t}();function Ln(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 qn(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 Wn(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)?(Wn(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.Du>=t.length)throw new f("Invalid byte index");var i=255&t[n.Du];if(n.Cu(1),128==(192&i))return 63&i;throw new f("Invalid continuation byte")}function Xn(t,n){var i=n.Du;if(i>t.length)throw new f("Invalid byte index");if(i===t.length)return!1;var e=255&t[i];if(n.Cu(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 Wn(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.Du,i);return n.Cu(2),e}function Kn(t,n,i,e){void 0===e&&(e=!1),t.setUint16(n.Du,i,e),n.Cu(2)}function $n(t,n){return void 0===n&&(n=!1),function(t,n,i,e){for(var r=[];n.Du+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 qn(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.Pu=t}var n=t.prototype;return n.Cu=function(t){this.Pu+=t},n.Ou=function(t){this.Pu=t},n.Bu=function(){return new t(this.Du)},n.Mu=function(){return new Un(this.Du<<3)},gt(t,[{key:"Du",get:function(){return this.Pu}}]),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&&ct(oi,tt.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.zs=mt(),this.Gs=void 0,this.qs=void 0,this.Ws=function(t){n.Ys(t)},this.qs=t||this}var n=t.prototype;return n.Qs=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.zs[t];i?"function"==typeof i?this.zs[t]=[i,n]:i.push(n):this.zs[t]=n},n.Ks=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.Zs=function(){this.zs=mt(),this.Gs=void 0},n.Ys=function(t){var n=hi(this.zs[t.type]),i=hi(this.Gs);ci(this.qs,t,n),ci(this.qs,t,i)},n.Js=function(t,n){if("function"==typeof n)if("string"==typeof t)this.$s(t,n);else for(var i=0;i<t.length;i++){var e=t[i];this.$s(e,n)}},n.$s=function(t,n){var i=this.zs[t];i&&("function"==typeof i?i===n&&(this.zs[t]=void 0):ht(i,n))},n.tu=function(t){if("string"==typeof t)this.zs[t]=void 0;else for(var n=0;n<t.length;n++){var i=t[n];this.zs[i]=void 0}},n.nu=function(t){var n=this.Gs;n&&("function"==typeof n?n===t&&(this.Gs=void 0):ht(n,t))},n.uu=function(t,n){var i=this;return new j(function(e,r){if(n&&n.Rs)return r(new Pn);var o=function(t){s(),e(t)},u=function(){s(),r(new Pn)},s=function(){i.Js(t,o),n&&n.Ls(u)};i.Qs(t,o),n&&n.Bs(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).Vi=void 0,i.Vi=n,i}return Lt(n,t),n}(vi),li=function(t){function n(n){var i;return(i=t.call(this)||this).Vg=void 0,i.Lct=0,i.qi=new w(0),i.oo=!1,i.A=!1,i.D=void 0,i.Vg=n,i}Lt(n,t);var i=n.prototype;return i.SV=function(t,n){this.C&&0===this.qi.length&&(this.qi=this.D.slice()),this.Lct+=n.Jk(),this.qi=si([this.qi,t]),this.Ys(new di(t))},i.Ga=function(){this.Za||(this.Ys(new vi("close")),this.oo=!0)},gt(n,[{key:"Am",get:function(){return this.Lct}},{key:"Vi",get:function(){return this.qi}},{key:"Za",get:function(){return this.oo}},{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.V=void 0,this.DEFAULT_SEGMENT_DURATION_IN_SECONDS=1.1,this.Bw="sync-seg-"+dt(),this.H=this.DEFAULT_SEGMENT_DURATION_IN_SECONDS,this.X=t;for(var n=0,i=this.X;n<i.length;n++){var e=i[n];if(e.match(/video/))this.W=new li(this.tt(e));else{if(!e.match(/audio/))throw new f("Unsupported MIME type.");this.V=new li(this.tt(e))}}}var n=t.prototype;return n.tt=function(t){for(var n=0,i=this.X;n<i.length;n++){if(i[n]===t)return this.H}},n.Ga=function(){this.W&&this.W.Ga(),this.V&&this.V.Ga()},gt(t,[{key:"it",get:function(){return this.L},set:function(t){this.L=t}},{key:"et",get:function(){var t,n;return Boolean((null==(t=this.W)?void 0:t.C)||(null==(n=this.V)?void 0:n.C))}}]),t}(),bi=function(t){function n(n){var i;return(i=t.call(this,"remove")||this).bk=void 0,i.bk=n,i}return Lt(n,t),n}(vi),gi=function(t){function n(n){var i;return(i=t.call(this)||this).rt=[],i.st=void 0,i.ht=[],i.pt=pt(),i.tn=pt(),i.nn=0,i.en=0,i.X=n,i.st=new wi(i.X),i.st.V&&(i.st.V.C=!0),i.st.W&&(i.st.W.C=!0),i.ht.push(new wi(i.X)),i}Lt(n,t);var i=n.prototype;return i.rn=function(){var t=[].concat(this.rt,[this.st],this.ht);return this.rt.length=0,t},i.SV=function(t){this.sn(t),this.an(t),this.ln(t)},i.NV=function(t){this.sn(t)},i.Ya=function(t){this.sn(t),this.ln(t)},i.Os=function(){this.st.Ga(),this.ht.forEach(function(t){return t.Ga()}),this.rt.length=0},i.an=function(t){var n=Tn(t.startPts),i=Tn(t.totalDuration);this.tn.set(t.mimeType,n.jy(i))},i.bn=function(){this.st.Ga(),this.rt.push(this.st);var t=this.ht.shift(),n=this.gn();t?(this.st=t,this.ht.push(n)):this.st=n},i.gn=function(){var t=new wi(this.X);return t.V&&(t.V.B=this.st.V.B),t.W&&(t.W.B=this.st.W.B),t},i.mn=function(t){var i=!this.st.V||0===this.st.V.Am,e=!this.st.W||0===this.st.W.Am,r=this.st.V&&this.st.V.C,o=this.st.W&&this.st.W.C,u=e&&(i&&!this.st.it||r),s=i&&(e&&!this.st.it||o);("audio"===n.kn(t)&&!s||"video"===n.kn(t)&&!u)&&(this.bn(),this.bn())},i.sn=function(t){var n=t.mimeType,i=t.kind,e=this.pt.get(n);void 0===e&&(i!==xn.gZ&&i!==xn.mZ||(e=[],this.pt.set(n,e))),void 0!==e&&e.push(t)},i.ln=function(t){for(var n=this.ti(t),i=0;i<n.length;i++){var e=n[i];switch(e.kind){case xn.gZ:this.ii(e),this.nn=0,this.en=0;break;case xn.kZ:this.ui(e);break;case xn.mZ:this.si(e)}}},i.ii=function(t){var n=t.mimeType,i=t.segment;this.mn(n),n.match(/video/)?(this.st.W.B=i,this.ht.forEach(function(t){t.W.B=i})):(this.st.V.B=i,this.ht.forEach(function(t){t.V.B=i})),this.st.V&&(this.st.V.C=!0),this.st.W&&(this.st.W.C=!0)},i.si=function(t){var n=t.mimeType.match(/audio/),i=Tn(t.totalDuration);if(n?this.st.V.SV(t.segment,i):this.st.W.SV(t.segment,i),n||1===this.X.length){this.nn+=i.Jk();var e=this.st.tt(t.mimeType);this.nn>=this.en+e&&(this.en+=e,this.bn())}},i.ui=function(t){this.tn.set(t.mimeType,void 0),this.mn(t.mimeType),this.st.V&&(this.st.V.C=!0),this.st.W&&(this.st.W.C=!0),this.rt.length=0,this.Ys(new bi(Tn(t.endTime)))},i.ti=function(t){var n=this;if(t.kind===xn.kZ)return this.fi(t);var i=[];return this.pt.forEach(function(t){if(t&&t.length>0){var e=ft(t,function(t){return t.kind===xn.kZ});-1===e&&(e=t.length);for(var r=t.slice(0,e),o=0;o<r.length;o++){var u=r[o];if(!ct(i,u)){var s=n.fi(u);if(s.length>0)i.push.apply(i,s);else if(u.kind===xn.mZ)break}}}}),i},i.fi=function(t){for(var i,e=this.pt.get(t.mimeType),r=0,o=this.X;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===xn.gZ)return[];var s=this.tn.get(i);if(void 0===s)return[];if(t.kind===xn.kZ){var f=this.hi(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.vi(t,s)){var c=e.splice(0,e.indexOf(t));e.splice(0,1);var a=this.li(t,c,i);return[].concat(c,a,[t])}return[]},i.li=function(t,i,e){var r=this.pt.get(e);if(!r)return[];var o=Tn(t.startPts),u=Tn(t.totalDuration),s=o.jy(u),f=ft(r,function(t){return t.kind===xn.kZ}),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!==xn.mZ||n.vi(v,s)||(c=a)}var d=-1;return-1!==ft(i,function(t){return t.kind===xn.gZ})&&(d=ft(r,function(t){return t.kind===xn.gZ})),d>c&&(c=d+1),c>0?(r[c-1].kind===xn.gZ&&(c-=1),r.splice(0,c)):[]},i.hi=function(t){var n=this.pt.get(t);if(n){var i=ft(n,function(t){return t.kind===xn.kZ});if(i>=0)return n.splice(0,i+1)}return[]},n.vi=function(t,n){var i=n,e=Tn(t.startPts);return i.np(e)},i.bi=function(){var t="[MEDIABUFFER] endPTS: ";this.tn.forEach(function(i,e){t=t.concat(n.kn(e)+" = "+(null==i?void 0:i.Jk())+" ")}),J._r(t)},i.mi=function(){var t=this;J._r("[MEDIABUFFER] unsyncedMessageMap:"),this.pt.forEach(function(i,e){void 0!==i&&t.pi(n.kn(e),i)})},i.pi=function(t,i){var e=t+": [";null==i||i.forEach(function(t){e=e.concat(" "+t.kind+"("+n.kn(t.mimeType)+")")}),e=e.concat(" ]"),J._r(e)},n.kn=function(t){return t.match(/audio/)?"audio":"video"},n}(ai);var mi=function(){function t(t,n,i){var e=this;this.yi=[],this.ki=pt(),this.te=0,this.ert=void 0,this.ie=void 0,this.ee=function(t){if(t.bk.np(In.sb(rt)))for(;e.yi.length>0;)e.se()},this.he=n,this.ce=i,this.ie=[new Et,new Rt(8),new kt(1),new Ot,new Nt(0)],this.ert=t,this.ert.Qs("remove",this.ee)}var n=t.prototype;return n.ynt=function(t,n){var i=this.ki.get(t);if(i)if(n===lt.dl){var e=i.W;if(e)return e}else{var r=i.V;if(r)return r}throw new f(t+" segment not available!")},n.Os=function(){this.yi.length=0,this.he.xS=0,this.ki.clear(),this.te=0},n.VT=function(){return this.ae(),new Bt([].concat(this.ie,[this.he,this.ce],this.yi))},n.ae=function(){for(var t=this.ert.rn(),n=0;n<t.length;n++){var i=t[n];if(!this.ki.has(i.Bw)){i.it=!0;var e=i.H;i.et&&this.yi.push(new Dt),this.ki.set(i.Bw,i),this.yi.push(new Tt(e,i.Bw)),this.te+=e}}this.ve()},n.ve=function(){for(;this.te>300;)this.se()},n.se=function(){var t=this.yi.shift();void 0!==t&&(t.us===_t.Zd?(this.de(t),this.te-=t.T,this.he.xS++):function(t){return t.us===_t.p}(t)&&this.ce.xS++)},n.de=function(t){this.ki.delete(t.k)},t}(),pi=function(){function t(t){this.QJt=void 0,this.be=void 0,this.tr=void 0,this.X=t,this.QJt=new Ft,this.be=new gi(this.X);for(var n=0,i=this.X;n<i.length;n++){var e=i[n];if(this.tr=new mi(this.be,new At(0),new xt(0)),e.match(/video/)){var r=new Pt("video/index.m3u8");this.QJt.P(r)}else{if(!e.match(/audio/))throw new f("Unsupported MIME type.");var o=new Ct("audio/index.m3u8");this.QJt.P(o)}}}var n=t.prototype;return n.nr=function(t){if("master.m3u8"===t){if(this.QJt)return this.QJt.VT;throw new f("Master playlist not ready yet")}if(this.tr)return this.tr.VT();throw new f("Media playlist not ready yet")},n.ynt=function(n){var i=n.split("/")[1];return this.tr.ynt(i,t.er(n))},n.NV=function(t){this.be.NV(t)},n.SV=function(t){this.be.SV(t)},n.yet=function(t){this.be.Ya(t)},n.Os=function(){this.be.Os(),this.QJt.Os(),this.tr&&this.tr.Os()},t.er=function(t){return t.match(/video/)?lt.dl:lt.vl},t}();var yi,_i=function(){function n(t,n){var i=this;this.Ynt=void 0,this.ur=function(t){var n,e,r;return Z.async(function(o){for(;;)switch(o.prev=o.next){case 0:n=t.data,o.t0=n.kind,o.next=o.t0===xn.wZ?4:o.t0===xn.gZ?7:o.t0===xn.mZ?9:o.t0===xn.kZ?11:13;break;case 4:return e=n.mediaBufferConfigs,i.Ynt=new pi(e),o.abrupt("break",13);case 7:return i.Ynt.NV(n),o.abrupt("break",13);case 9:return i.Ynt.SV(n),o.abrupt("break",13);case 11:return i.Ynt.yet(n),o.abrupt("break",13);case 13:r={kind:xn.yZ},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.ur}var i=n.prototype;return i.cr=function(t){return this.Ynt.nr(t)},i.ar=function(n){if(this.Ynt){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(t){return{start:function(n){var i,e;return Z.async(function(r){for(;;)switch(r.prev=r.next){case 0:if(n.enqueue(t.Vi),!t.Za){r.next=6;break}return n.close(),r.abrupt("return");case 6:i=function(t){n.enqueue(t.Vi)},t.Qs("append",i),e=function e(){n.close(),t.Js("append",i),t.Js("close",e)},t.Qs("close",e);case 10:case"end":return r.stop()}},null,null,null,j)}}}(this.wnt(n)),o=new t.ReadableStream(r);return new Response(o,{headers:e})}throw new f("Stream not active.")},i.wnt=function(t){return this.Ynt.ynt(t)},i.close=function(){this.sr.close(),this.Ynt&&this.Ynt.Os()},n}(),Si=function(){function t(){var t=this;this.vq=pt(),this.cBt=void 0,this.ur=function(n){var i=n.data;switch(i.kind){case xn.lZ:t.vr().catch(vt);var e=i.port,r=dt(),o=new _i(e,n.source.id);t.vq.set(r,o);e.addEventListener("message",function n(i){i.data.kind===xn.pZ&&(t.lr(r),e.removeEventListener("message",n))});var u={kind:xn._Z,sessionId:r};e.postMessage(u)}},this.br=function(n){if(Ln(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.vq.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.by=function(t){this.cBt=t,t.addEventListener("message",this.ur),t.addEventListener("fetch",this.br)},n.lr=function(t){var n=this.vq.get(t);n&&n.close(),this.vq.delete(t)},n.vr=function(){var t,n,i=this;return Z.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z.awrap(this.cBt.clients.matchAll());case 2:t=e.sent,n=t.map(function(t){return t.id}),this.vq.forEach(function(t,e){ct(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=function(){function n(){this.U=Boolean("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch||e&&e.msMaxTouchPoints),this.G=/(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.Y=ki?d(ki[1]):0,this.j=/Android/i.test(Ii),this.K=Ri?d(Ri[1]):0,this.Z=/windows phone (8|8\.1)/i.test(Ii),this.J=/iPhone/i.test(Ii),this.nt=/iPad/i.test(Ii),this.ut=this.G&&this.U&&!this.nt,this.ot=/iPod/i.test(Ii),this.ct=/Mobile Safari/i.test(Ii),this.ft=/EOSSTB/i.test(Ii),this.vt=(this.J||this.nt||this.ut||this.ot)&&!this.Z,this.dt=this.Z||this.vt||this.j||this.ct,this._t=/CriOS/i.test(Ii),this.wt=Boolean(t.chrome&&/google/i.test(e.vendor))||this._t,this.yt=this.wt&&/Edg\//i.test(e.userAgent),this.kt=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.Z&&!this.Tt,this.Bt=Ni?d(Ni[2]):0,this.Lt=Boolean(Pi),this.xt=Pi?d(Pi[1]):0,this.Mt=/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.Gt="web"===yi.F}return gt(n,[{key:"qt",get:function(){return this.U}},{key:"Wt",get:function(){return this.G}},{key:"Yt",get:function(){return this.q}},{key:"Qt",get:function(){return this.Y}},{key:"jt",get:function(){return this.j}},{key:"Kt",get:function(){return this.K}},{key:"Zt",get:function(){return this.Z}},{key:"Jt",get:function(){return this.J}},{key:"$t",get:function(){return this.nt}},{key:"in",get:function(){return this.ut}},{key:"un",get:function(){return this.ot}},{key:"hn",get:function(){return this.vt}},{key:"cn",get:function(){return this.ft}},{key:"fn",get:function(){return this.ct}},{key:"vn",get:function(){return this.dt}},{key:"dn",get:function(){return this._t}},{key:"_n",get:function(){return this.wt}},{key:"wn",get:function(){return this.At}},{key:"yn",get:function(){return this.yt}},{key:"pn",get:function(){return this.kt}},{key:"An",get:function(){return this.Tt}},{key:"Tn",get:function(){return this.St}},{key:"Sn",get:function(){return this.Et}},{key:"En",get:function(){return this.It}},{key:"In",get:function(){return this.Rt}},{key:"Rn",get:function(){return this.Nt}},{key:"Nn",get:function(){return this.Dt}},{key:"Dn",get:function(){return this.Ct}},{key:"Cn",get:function(){return this.Pt}},{key:"Pn",get:function(){return this.Ot}},{key:"On",get:function(){return this.Bt}},{key:"Bn",get:function(){return this.Lt}},{key:"Ln",get:function(){return this.xt}},{key:"xn",get:function(){return this.Mt}},{key:"Mn",get:function(){return this.Ft}},{key:"Fn",get:function(){if(!(this.Sn||this.An))return!1;var t=this.wn;return void 0===t||Number(t)<56}},{key:"Un",get:function(){return this.Ut}},{key:"Hn",get:function(){return this.Ht}},{key:"Vn",get:function(){return this.Vt}},{key:"Xn",get:function(){return this.Xt}},{key:"zn",get:function(){return this.zt}},{key:"Gn",get:function(){return this.Gt}},{key:"qn",get:function(){return this.bt}}]),n}();Di.Wn=new Di;var xi=Di.Wn,Ci=!(xi.In&&!xi.Rn),Bi=t.console;function Fi(t){if(it(t))try{return JSON.stringify(t)}catch(t){}return t}function Ui(t){return t.map(Fi).join(" ")}function Li(t){var n=Bi&&Bi[t];return n?n.bind&&Ci?n.bind(Bi):function(){for(var n=arguments.length,i=new Array(n),e=0;e<n;e++)i[e]=arguments[e];Bi[t](Ui(i))}:void 0}var Mi,zi=Li("log")||vt,qi=Li("warn")||zi.bind(void 0,"WARNING:"),Wi=Li("error")||zi.bind(void 0,"ERROR:"),ji=(Mi=Bi&&Bi.assert)?Mi.bind&&Ci?Mi.bind(Bi):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];Bi.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];Wi.apply(void 0,["Assertion failed:"].concat(i))}};function Vi(){return Date.now()||(new Date).getTime()}var Hi;dn.fromNumber(rt);!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"}(Hi||(Hi={}));var Xi=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return Lt(n,t),n}(kn),Gi=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 Xi(t)}if(!n||n.getElementsByTagName("parsererror").length>0)throw new Xi;return new te(n)},t}(),Yi=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 Hi.$n}},{key:"di",get:function(){var t;return null!=(t=this.oi.localName)?t:ee(this.oi.nodeName)}},{key:"_i",get:function(){return this.oi.nodeName}},{key:"wi",get:function(){var t;return null!=(t=this.oi.namespaceURI)?t:void 0}},{key:"gi",get:function(){var t;return null!=(t=this.oi.prefix)?t:void 0}},{key:"Ai",get:function(){return this.oi.nodeValue}}]),t}(),Ki=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 ne(n)&&n.Ri===t})},n.Ni=function(t,n){return this.Ii.filter(function(i){return ne(i)&&i.di===n&&i.wi===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=ie(t.item(i));e&&n.push(e)}return n}(this.Ti.childNodes)),this.Si}},{key:"Pi",get:function(){return this.Ii.filter(ne)}},{key:"Ci",get:function(){return this.Ti}}]),t}(),$i=function(t){function n(n){return t.call(this,n)||this}Lt(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.xi=function(t,n){this.Ti.removeAttributeNS(t,n)},i.Mi=function(t,n){this.Ti.setAttribute(t,n)},i.Fi=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 Hi.Zn}},{key:"di",get:function(){var t;return null!=(t=this.Ti.localName)?t:ee(this.Ti.nodeName)}},{key:"wi",get:function(){var t;return null!=(t=this.Ti.namespaceURI)?t:void 0}},{key:"gi",get:function(){var t;return null!=(t=this.Ti.prefix)?t:void 0}},{key:"Ri",get:function(){return this.Ti.nodeName}},{key:"Ui",get:function(){return function(t){for(var n=[],i=0;i<t.length;i++)n.push(new Yi(t.item(i)));return n}(this.Ti.attributes)}},{key:"Hi",get:function(){return this.Ti.textContent}}]),n}(Ki),Ji=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}(),Zi=function(t){function n(n){return t.call(this,n)||this}return Lt(n,t),n.prototype.ci=function(t){return new n(this.Ti.cloneNode(t))},gt(n,[{key:"Kn",get:function(){return Hi.Jn}}]),n}(Ji),Qi=function(t){function n(n){return t.call(this,n)||this}return Lt(n,t),n.prototype.ci=function(t){return new n(this.Ti.cloneNode(t))},gt(n,[{key:"Kn",get:function(){return Hi.ni}}]),n}(Ji),te=function(t){function n(n){return t.call(this,n)||this}return Lt(n,t),n.prototype.ci=function(t){return new n(this.Ti.cloneNode(t))},gt(n,[{key:"Kn",get:function(){return Hi.ei}},{key:"Xi",get:function(){return new $i(this.Ti.documentElement)}}]),n}(Ki);function ne(t){return function(t){return t.Kn===Hi.Zn}(t)}function ie(t){switch(t.nodeType){case Hi.Zn:return new $i(t);case Hi.Jn:return new Zi(t);case Hi.ni:return new Qi(t)}}function ee(t){var n=t.indexOf(":");return n<0?t:t.substr(n+1)}function re(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 oe(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){ue(t,n,r,e);var o=t;t=e,e=o}return t}(t,n);return i!==t&&ue(i,null,t.length,t),t}function ue(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 se=/[a-zA-Z]/,fe=/[0-9]/,he=/[0-9a-fA-F]/,ce=/^0x/i,ae=/^[0-9]+$/,ve=/^[0-9a-fA-F]+$/,de=/^[0-7]+$/,le=c.prototype.toString,we=Array.isArray||function(t){return"[object Array]"===le.call(t)},be="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function ge(t){return we(t)?t:Array.from(t)}function me(t){return t>=65&&t<=90}function pe(t){return me(t)||function(t){return t>=97&&t<=122}(t)}function ye(t){return t>=48&&t<=57}function _e(t){return ye(t)||pe(t)}function Se(t){return ye(t)||t>=65&&t<=70||t>=97&&t<=102}function Ie(t){return me(t)?t+32:t}function Te(t){return ye(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function Ee(t,n){return void 0===n&&(n=!1),0<=t&&t<=9?t+48:10<=t&&t<=15?t+(n?87:55):-1}var Re=a.min,ke=String.fromCharCode,Ne=16384;function Oe(t){for(var n=t.length,i=[],e=0;e<n;e+=Ne){var r=Re(e+Ne,n);i.push(ke.apply(null,t.slice(e,r)))}return i.join("")}var Pe=/[^\0-\x7E]/,Ae=/[\x2E\u3002\uFF0E\uFF61]/g,De={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},xe=a.floor,Ce=String.fromCharCode;function Be(t){throw new RangeError(De[t])}function Fe(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,Le,Me,ze=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},qe=function(t,n,i){var e=0;for(t=i?xe(t/700):t>>1,t+=xe(t/n);t>455;e+=36)t=xe(t/35);return xe(e+36*t/(t+38))},We=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(Ae,".")).split("."),n).join(".");return e+r}(t,function(t){return Pe.test(t)?"xn--"+function(t){for(var n=[],i=(t=Fe(t)).length,e=128,r=0,o=72,u=0,s=t;u<s.length;u++){var f=s[u];f<128&&n.push(Ce(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>xe((2147483647-r)/w)&&Be("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&&Be("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(Ce(ze(_+S%I,0))),p=xe(S/I)}n.push(Ce(ze(p,0))),o=qe(r,w,c==h),r=0,++c}}++r,++e}return n.join("")}(t):t})};function je(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 Oe(n)}function Ve(t){if(t>=55296&&t<=57343)throw new f("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function He(t,n){return t>>n&63|128}function Xe(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(Ve(t),n.push(t>>12&15|224),n.push(He(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(He(t,12)),n.push(He(t,6))),n.push(63&t|128)):n.push(t)}function Ge(t){for(var n=[],i=0;i<t.length;i++){Xe(t[i],n)}return n}function Ye(){if(Me>=Le)throw new f("Invalid byte index");var t=255&Ue[Me];if(Me++,128==(192&t))return 63&t;throw new f("Invalid continuation byte")}function Ke(){var t,n;if(Me>Le)throw new f("Invalid byte index");if(Me===Le)return!1;if(t=255&Ue[Me],Me++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|Ye())>=128)return n;throw new f("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|Ye()<<6|Ye())>=2048)return Ve(n),n;throw new f("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|Ye()<<12|Ye()<<6|Ye())>=65536&&n<=1114111)return n;throw new f("Invalid UTF-8 detected")}function $e(t){return[37,Ee(t>>4),Ee(15&t)]}function Je(t){return function(t){return t>=0&&t<=31}(t)||t>126}function Ze(t){return Je(t)||32===t||34===t||60===t||62===t||96===t}function Qe(t){return Ze(t)||35===t||63===t||123===t||125===t}function tr(t){return Qe(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function nr(t){return t<33||t>126||34===t||35===t||60===t||62===t}function ir(t){return nr(t)||39===t}function er(t,n){if(!n(t))return[t];for(var i=Ge([t]),e=[],r=0;r<i.length;r++){var o=i[r];e.push.apply(e,$e(o))}return e}function rr(t,n){for(var i=[],e=0,r=Fe(t);e<r.length;e++){var o=r[e];i.push.apply(i,er(o,n))}return je(i)}function or(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&&Se(t[e+1])&&Se(t[e+2])){var o=Te(t[e+1])<<4|Te(t[e+2]);n.push(o),e+=2}else n.push(r)}return n}(Ge(t))}function ur(t){return je(function(t){Ue=t.slice(),Le=Ue.length,Me=0;for(var n,i=[];!1!==(n=Ke());)i.push(n);return i}(or(Fe(t))))}function sr(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&&he.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(!fe.test(t[c]))throw new h;for(;c<o&&fe.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 fr(t){var n=10,i=ae;return ce.test(t)?(t=t.slice(2),n=16,i=ve):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,i=de),""===t?0:i.test(t)?v(t,n):void 0}var hr={zi:4},cr=/[\0\t\n\r #%/:?@\[\\\]]/,ar=/[\0\t\n\r #/:?@\[\\\]]/;function vr(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new h("Invalid IPv6 address");return{zi:2,Gi:sr(t.slice(1,-1))}}if(!n)return function(t){if(ar.test(t))throw new h("Invalid code point in opaque host");var n=rr(t,Je);return""===n?hr:{zi:3,qi:n}}(t);var i=function(t){return function(t){return We(t.toLowerCase())}(t)}(ur(t));if(cr.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=fr(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,Gi:e}:""===i?hr:{zi:0,Wi:i}}function dr(t){switch(t.zi){case 0:return t.Wi;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.Gi);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.Gi)+"]";case 3:return t.qi;case 4:return""}}var lr=/\+/g;function wr(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(lr," "),s=s.replace(lr," ");var f=ur(u),h=ur(s);i.push([f,h])}}return i}function br(t){for(var n="",i=0;i<t.length;i++){var e=t[i];i>0&&(n+="&"),n+=gr(Ge(Fe(e[0])))+"="+gr(Ge(Fe(e[1])))}return n}function gr(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||_e(n)?i.push(r):i.push.apply(i,$e(r))}return Oe(i)}var mr=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function pr(t){var n=""+t,i=mr.exec(n);return i?function(t,n){for(var i=t.length,e=[],r=n;r<i;r++){var o=t.charCodeAt(r);if(_r(o))if(Sr(o)||r===i-1)e.push(yr);else{var u=t.charCodeAt(r+1);Sr(u)?(e.push(o,u),r++):e.push(yr)}else e.push(o)}return t.slice(0,n)+Oe(e)}(n,i.index):n}var yr=65533,_r=function(t){return 55296==(63488&t)},Sr=function(t){return 0!=(1024&t)};function Ir(t,n){var i=t[0],e=n[0];return i===e?0:i<e?-1:1}function Tr(t){t.Yi.length=0}function Er(t,n){!function(t,n){for(var i=0;i<n.length;i++)t[i]=n[i];t.length=n.length}(t.Yi,wr(n))}function Rr(t){if(t.Qi){var n=br(t.Yi);""===n&&(n=null),t.Qi.Qi.ji=n}}var kr=function(){function t(t){if(void 0===t&&(t=void 0),this.Qi=null,null==t)this.Yi=[];else if("object"==typeof t||"function"==typeof t)if((o=t)instanceof kr&&we(o.Yi)&&(!be||o[Symbol.iterator]===Nr))this.Yi=t.Yi.slice();else if(function(t){return null!=t&&(!!we(t)||!!be&&"function"==typeof t[Symbol.iterator])}(t)){this.Yi=[];for(var n=0,i=ge(t);n<i.length;n++){var e=ge(i[n]);if(2!==e.length)throw new h("Invalid name-value pair");this.Yi.push([pr(e[0]),pr(e[1])])}}else for(var r in this.Yi=[],t)c.prototype.hasOwnProperty.call(t,r)&&this.Yi.push([pr(r),pr(t[r])]);else(t=pr(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Yi=wr(t);var o}var n=t.prototype;return n.append=function(t,n){t=pr(t),n=pr(n),this.Yi.push([t,n]),Rr(this)},n.delete=function(t){t=pr(t);for(var n=this.Yi,i=0;i<n.length;){n[i][0]===t?n.splice(i,1):i++}Rr(this)},n.get=function(t){t=pr(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=pr(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=pr(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=pr(t),n=pr(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]),Rr(this)},n.sort=function(){oe(this.Yi,Ir),Rr(this)},n.toString=function(){return br(this.Yi)},n.entries=function(){return new Dr(this.Yi,Or)},n.keys=function(){return new Dr(this.Yi,Pr)},n.values=function(){return new Dr(this.Yi,Ar)},n.forEach=function(t){var n=this;this.Yi.forEach(function(i){return t(i[1],i[0],n)})},t}(),Nr=kr.prototype.entries;be&&(kr.prototype[Symbol.iterator]=Nr);var Or=function(t){return[t[0],t[1]]},Pr=function(t){return t[0]},Ar=function(t){return t[1]},Dr=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}(),xr="null";var Cr=c.create(null);Cr.ftp=21,Cr.file=0,Cr.gopher=70,Cr.http=80,Cr.https=443,Cr.ws=80,Cr.wss=443;var Br=/^(?:\.|%2e)$/i,Fr=/^(?:\.|%2e){2}$/i;function Ur(t){return Br.test(t)}function Lr(t){return Fr.test(t)}function Mr(t){return void 0!==Cr[t]}function zr(t){return Mr(t.Ji)}function qr(t){return""!==t.$i||""!==t.re}function Wr(t){var n=t.length;if(!(n>=2))return!1;if(!Vr(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 jr(t){return 2===t.length&&se.test(t[0])&&(":"===t[1]||"|"===t[1])}function Vr(t){return 2===t.length&&jr(Oe(t))}function Hr(t){return jr(t)&&":"===t[1]}function Xr(t){var n=t.ue;0!==n.length&&("file"===t.Ji&&1===n.length&&Hr(n[0])||n.pop())}function Gr(t){return null===t.oe||hr===t.oe||t.fe||"file"===t.Ji}var Yr=-1,Kr=/\t|\n|\r/g,$r=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function Jr(t,n,i,e){void 0===i&&(i=null),void 0===e&&(e=null),i||(i=new Qr,t=t.replace($r,""));var r=null!==e?e:0;n=n||null;for(var o=[],u=!1,s=!1,f=!1,c=Fe(t=t.replace(Kr,"")),a=c.length,d=0;d<=a;){var l=d<a?c[d]:Yr;switch(r){case 0:if(!pe(l)){if(null===e){o.length=0,r=2;continue}throw new h("Invalid scheme")}o.push(Ie(l)),r=1;break;case 1:if(_e(l)||43===l||45===l||46===l)o.push(Ie(l));else{if(58!==l){if(null===e){o.length=0,r=2,d=0;continue}throw new h("Invalid scheme")}var w=je(o);if(null!==e){if(Mr(i.Ji)&&!Mr(w))return;if(!Mr(i.Ji)&&Mr(w))return;if((qr(i)||null!==i._e)&&"file"===w)return;if("file"===i.Ji&&(i.oe===hr||null===i.oe))return}if(i.Ji=w,null!==e)return void(zr(i)&&i._e===Cr[i.Ji]&&(i._e=null));o.length=0,"file"===i.Ji?r=13:zr(i)&&n&&n.Ji===i.Ji?r=3:zr(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.ji=n.ji,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,Yr===l?(i.$i=n.$i,i.re=n.re,i.oe=n.oe,i._e=n._e,i.ue=n.ue.slice(),i.ji=n.ji):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.ji="",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.ji=n.ji,i.we="",r=20):92===l&&zr(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:!zr(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=je(er(g,tr));f?i.re+=m:i.$i+=m}else f=!0}o.length=0}else if(Yr===l||47===l||63===l||35===l||zr(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(Yr===l||47===l||63===l||35===l||zr(i)&&92===l){if(d-=1,zr(i)&&0===o.length)throw new h("Invalid host");if(null!==e&&0===o.length&&(qr(i)||null!==i._e))return;var p=vr(je(o),zr(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=vr(je(o),zr(i));if(i.oe=y,o.length=0,r=12,11===e)return}break;case 12:if(ye(l))o.push(l);else{if(!(Yr===l||47===l||63===l||35===l||zr(i)&&92===l||null!==e))throw new h("Invalid port");if(0!==o.length){var _=v(je(o),10);if(_>65535)throw new h("Invalid port");i._e=_===Cr[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?Yr===l?(i.oe=n.oe,i.ue=n.ue.slice(),i.ji=n.ji):63===l?(i.oe=n.oe,i.ue=n.ue.slice(),i.ji="",r=19):35===l?(i.oe=n.oe,i.ue=n.ue.slice(),i.ji=n.ji,i.we="",r=20):(Wr(c.slice(d))||(i.oe=n.oe,i.ue=n.ue.slice(),Xr(i)),r=17,d-=1):(r=17,d-=1);break;case 14:47===l||92===l?r=15:(n&&"file"===n.Ji&&!Wr(c.slice(d))&&(Hr(n.ue[0])?i.ue.push(n.ue[0]):i.oe=n.oe),r=17,d-=1);break;case 15:if(Yr===l||47===l||92===l||63===l||35===l)if(d-=1,null===e&&Vr(o))r=17;else if(0===o.length){if(i.oe=hr,null!==e)return;r=16}else{var S=vr(je(o),zr(i));if(0===S.zi&&"localhost"===S.Wi&&(S=hr),i.oe=S,null!==e)return;o.length=0,r=16}else o.push(l);break;case 16:zr(i)?(r=17,47!==l&&92!==l&&(d-=1)):null===e&&63===l?(i.ji="",r=19):null===e&&35===l?(i.we="",r=20):Yr!==l&&(r=17,47!==l&&(d-=1));break;case 17:if(Yr===l||47===l||zr(i)&&92===l||null===e&&(63===l||35===l)){var I=je(o);if(Lr(I)?(Xr(i),47===l||zr(i)&&92===l||i.ue.push("")):!Ur(I)||47===l||zr(i)&&92===l?Ur(I)||("file"===i.Ji&&0===i.ue.length&&Vr(o)&&(hr!==i.oe&&null!==i.oe&&(i.oe=hr),o[1]=58,I=je(o)),i.ue.push(I)):i.ue.push(""),o.length=0,"file"===i.Ji&&(Yr===l||63===l||35===l))for(;i.ue.length>1&&""===i.ue[0];)i.ue.shift();63===l?(i.ji="",r=19):35===l&&(i.we="",r=20)}else o.push.apply(o,er(l,Qe));break;case 18:63===l?(i.ji="",r=19):35===l?(i.we="",r=20):Yr!==l&&(i.ue[0]+=je(er(l,Je)));break;case 19:null===e&&35===l?(i.we="",r=20):Yr!==l&&(i.ji+=je(er(l,zr(i)?ir:nr)));break;case 20:Yr===l||0===l||(i.we+=je(er(l,Ze)))}d++}return i}function Zr(t,n,i,e){try{Jr(t,n,i,e)}catch(t){}}var Qr=function(){this.Ji="",this.$i="",this.re="",this.oe=null,this._e=null,this.ue=[],this.ji=null,this.we=null,this.fe=!1};function to(t){switch(t.Ji){case"blob":var n;try{n=Jr(t.ue[0],null)}catch(t){return xr}return to(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return i=t.Ji,e=t.oe,r=t._e,i+"://"+dr(e)+(null===r?"":":"+r);case"file":default:return xr}var i,e,r}var no,io,eo=function(){function t(t,n){var i,e,r=null;if(null!=n)if(null!=(i=n)&&i instanceof eo&&"object"==typeof i.Qi)r=n.Qi;else try{r=Jr(String(n),null)}catch(t){throw new h("Invalid base URL: "+t.message)}try{e=Jr(String(t),r)}catch(t){throw new h("Invalid URL: "+t.message)}var o=e.ji;this.Qi=e,this.ji=function(t){var n=new kr;return null!==t&&Er(n,t),n}(o),this.ji.Qi=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+="//",qr(t)&&(i+=t.$i,""!==t.re&&(i+=":"+t.re),i+="@"),i+=dr(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.ji&&(i+="?"+t.ji),n||null===t.we||(i+="#"+t.we),i}(this.Qi)},set:function(t){var n;try{n=Jr(String(t),null)}catch(t){throw new h("Invalid URL: "+t.message)}this.Qi=n,Tr(this.ji);var i=this.Qi.ji;null!==i&&Er(this.ji,i)}},{key:"origin",get:function(){return to(this.Qi)}},{key:"protocol",get:function(){return this.Qi.Ji+":"},set:function(t){Zr(t+":",null,this.Qi,0)}},{key:"username",get:function(){return this.Qi.$i},set:function(t){Gr(this.Qi)||(this.Qi.$i=rr(t,tr))}},{key:"password",get:function(){return this.Qi.re},set:function(t){Gr(this.Qi)||(this.Qi.re=rr(t,tr))}},{key:"host",get:function(){var t=this.Qi,n=t.oe;if(null===n)return"";var i=t._e,e=dr(n);return null!==i&&(e+=":"+i),e},set:function(t){this.Qi.fe||Zr(t,null,this.Qi,10)}},{key:"hostname",get:function(){var t=this.Qi.oe;return null===t?"":dr(t)},set:function(t){this.Qi.fe||Zr(t,null,this.Qi,11)}},{key:"port",get:function(){var t=this.Qi._e;return null===t?"":""+t},set:function(t){Gr(this.Qi)||(""===t?this.Qi._e=null:Zr(t,null,this.Qi,12))}},{key:"pathname",get:function(){var t=this.Qi.ue;return this.Qi.fe?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.Qi.fe||(this.Qi.ue.length=0,Zr(t,null,this.Qi,16))}},{key:"search",get:function(){var t=this.Qi.ji;return null===t||""===t?"":"?"+t},set:function(t){t=pr(t);var n=this.Qi;if(""===t)return n.ji=null,void Tr(this.ji);"?"===t[0]&&(t=t.slice(1)),n.ji="",Zr(t,null,n,19),Er(this.ji,t)}},{key:"searchParams",get:function(){return this.ji}},{key:"hash",get:function(){var t=this.Qi.we;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.Qi.we="",Zr(t,null,this.Qi,20)):this.Qi.we=null}}])&&re(n.prototype,i),e&&re(n,e),t}();function ro(t){return t.document&&t.document.baseURI||t.location.href||""}function oo(){return void 0!==i?i.createElement("video"):void 0}function uo(){return io||(io=oo()),io}var so=!!("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch)||!(!e||!e.msMaxTouchPoints),fo=uo(),ho=!(!fo||!fo.webkitShowPlaybackTargetPicker),co=function(){function t(){this.Oe=void 0,this.Be=!1,this.qt=so,this.vn=!1,this.Le=!0,this.xe=!0}var i=t.prototype;return i.Me=function(){return 0},i.Fe=function(t,n){return!0},i.Ue=function(t){return t>=1/6*2},gt(t,[{key:"He",get:function(){return void 0===this.Oe&&(this.Oe=this.Me()),this.Oe}},{key:"Ve",get:function(){return n.devicePixelRatio||1}},{key:"Xe",get:function(){return ho}},{key:"ze",get:function(){return!1}},{key:"Ge",get:function(){return!0}},{key:"qe",get:function(){return xi.Wt||xi.hn}},{key:"We",get:function(){return!0}},{key:"Ye",get:function(){return!0}},{key:"Qe",get:function(){}},{key:"je",get:function(){return!0}}]),t}(),ao=function(){var t=oo();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(xi.in)return!1;var t=oo();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var vo=function(t){function n(n){var i;return(i=t.call(this)||this).Ke=void 0,i.Ke=n,i.Ke&&(i.Be=i.Ke.Be,i.qt=i.Ke.qt,i.Le=ao&&i.Ke.Le),i}Lt(n,t);var i=n.prototype;return i.Me=function(){return this.Ke?this.Ke.He:t.prototype.Me.call(this)},i.Fe=function(n,i){return this.Ke?this.Ke.Fe(n,i):t.prototype.Fe.call(this,n,i)},i.Ue=function(n){return this.Ke?this.Ke.Ue(n):t.prototype.Ue.call(this,n)},gt(n,[{key:"Qe",get:function(){var t;return null==(t=this.Ke)?void 0:t.Qe}},{key:"je",get:function(){var t,n;return null==(t=null==(n=this.Ke)?void 0:n.je)||t}}]),n}(co),lo=function(t){function n(n){var i;return(i=t.call(this,n)||this).Be=!0,i.vn=!0,i}return Lt(n,t),n}(vo),wo=function(t){function n(){return t.apply(this,arguments)||this}return Lt(n,t),n.prototype.Me=function(){if(!no.MediaSource)return 1},n}(lo),bo=function(t){function n(){return t.apply(this,arguments)||this}return Lt(n,t),n.prototype.Fe=function(n,i){return t.prototype.Fe.call(this,n,i)},gt(n,[{key:"ze",get:function(){return xi.Tn<3}},{key:"Ge",get:function(){return xi.Tn>=3}}]),n}(vo),go=function(t){function n(){return t.call(this)||this}return Lt(n,t),n}(co),mo=function(t){function n(){return t.apply(this,arguments)||this}return Lt(n,t),n.prototype.Fe=function(t,n){if(t&&t.Ze&&n&&n.Ze){var i=po(t.Ze,"mp4a.40.2")&&po(n.Ze,"mp4a.40.5"),e=po(t.Ze,"mp4a.40.5")&&po(n.Ze,"mp4a.40.2"),r=po(t.Ze,"mp4a.40.2")&&po(n.Ze,"mp4a.40.34"),o=po(t.Ze,"mp4a.40.34")&&po(n.Ze,"mp4a.40.2"),u=po(t.Ze,"mp4a.40.5")&&po(n.Ze,"mp4a.40.34"),s=po(t.Ze,"mp4a.40.34")&&po(n.Ze,"mp4a.40.5");return!(i||e||r||o||u||s)}return!0},gt(n,[{key:"Qe",get:function(){if(xi.Wt)return 4096}}]),n}(go);function po(t,n){return t.indexOf(n)>-1}var yo=function(t){function n(){return t.apply(this,arguments)||this}return Lt(n,t),n.prototype.Ue=function(t){return t>=2},n}(go),_o=function(t){function n(){var n;return(n=t.call(this)||this).Be=xi.On>=11,n.Le=xi.Pn&&!(xi.hn&&xi.On<10),n}return Lt(n,t),n}(go),So=function(t){function n(){return t.apply(this,arguments)||this}return Lt(n,t),gt(n,[{key:"We",get:function(){return!1}}]),n}(vo),Io=function(t){function n(){return t.apply(this,arguments)||this}return Lt(n,t),gt(n,[{key:"je",get:function(){return!xi.Yt||!!xi.yn&&92!==xi.pn}}]),n}(go),To=function(){function n(){var n;this.Je=void 0,this.$e=new Gi,this.ir=new Eo,this.rr=(n=function(){if(xi.Dn)return new mo;if(xi.En||xi.In)return new yo;if(xi.Pn)return new _o;if(xi._n)return new Io;return new go}(),xi.hn?new wo(n):xi.vn?new lo(n):xi.An?new bo(n):xi.Sn?new So(n):new vo(n)),this.dr=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.Je=function(){return t.performance.now()}:this.Je=Vi}var i=n.prototype;return i._r=function(){zi.apply(void 0,arguments)},i.wr=function(){qi.apply(void 0,arguments)},i.gr=function(){Wi.apply(void 0,arguments)},i.yr=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];ji.apply(void 0,[t].concat(i))},i.Qn=function(t,n){return r(t,n)},i.pr=function(t,n){return u(t,n)},i.Yn=function(t){o(t)},i.Ar=function(t){s(t)},i.ri=function(t){return this.$e.ri(t)},i.Tr=function(){return this.Sr.Tr()},i.Er=function(){return this.Sr.Er()},i.Ir=function(){return this.Sr.Ir()},i.Rr=function(){return this.Sr.Rr()},i.Nr=function(){return this.Sr.Nr()},i.Dr=function(t,n){return this.Sr.Dr(t,n)},i.Cr=function(t){return this.Sr.Cr(t)},i.Pr=function(t,n){var i;return void 0===n&&(n=ro(no)),i="object"!=typeof n||n instanceof eo?n:n.href,new eo(t,i)},i.Or=function(n,i){if(void 0===i&&(i=ro(no)),this.dr){var e="string"==typeof i?i:i.toString();return new t.URL(n,e).href}return this.Pr(n,i).href},gt(n,[{key:"Br",get:function(){return this.ir}},{key:"Lr",get:function(){return this.rr}},{key:"xr",get:function(){return{Mr:e&&e.userAgent.match(/Android /i)?"Android":"other",Fr:Boolean(e&&e.userAgent.match(/Android 8.0.0/i))}}},{key:"Ur",get:function(){return t&&t.location&&"https:"===t.location.protocol}},{key:"Hr",get:function(){return"languages"in e?e.languages.slice():[e.language]}}]),n}(),Eo=function(){function t(){}return gt(t,[{key:"Vr",get:function(){return e.oscpu}},{key:"Lr",get:function(){return e.platform}},{key:"Xr",get:function(){return e.vendor}},{key:"zr",get:function(){return e.vendorSub}}]),t}();function Ro(){return(Ro=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)}var ko,No="com.microsoft.playready",Oo="94ce86fb-07ff-4f43-adb8-93d2fa968ca2",Po="urn:uuid:"+Oo,Ao="com.apple.fps.1_0";!function(t){t.Zr="playready",t.Jr="widevine",t.$r="fairplay",t.ns="clearkey",t.rs="aes128"}(ko||(ko={}));var Do={us:ko.Zr,hs:No,fs:"cenc",vs:"9a04f079-9840-4286-ab92-e65be0885f95",ds:"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95",ls:"PlayReady"},xo={us:ko.Jr,hs:"com.widevine.alpha",fs:"cenc",vs:"edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",ds:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",ls:"Widevine"},Co={us:ko.$r,hs:Ao,fs:"skd",vs:Oo,ds:Po,ls:"FairPlay"},Bo=(ko.$r,{us:ko.ns,hs:"org.w3.clearkey",fs:"cenc",vs:"1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",ds:"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",ls:"ClearKey"}),Fo=xi._n&&xi.wn>=42||xi.Dn&&xi.Cn>=38||xi.En||xi.Rn||xi.Bn&&xi.Ln>=29;function Uo(t,n){return e="audio",null!=(i=t)&&-1!==i.indexOf(e)?{initDataTypes:["cenc"],audioCapabilities:[Ro({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[Ro({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]};var i,e}var Lo,Mo=function(){function t(t){this._s=void 0,this.gs=pt(),this.ys=void 0,this._s=t}var n=t.prototype;return n.Nr=function(){return this.Cr(xo)},n.Er=function(){return this.Cr(Bo)},n.Rr=function(){return this.Cr(Do)},n.Ir=function(){return this.Cr(Co)},n.Cr=function(t){var n=t.ds,i=this.gs.get(n);if(i)return i;var e=this.Dr(t,'video/mp4; codecs="avc1.42000a"');return this.gs.set(n,e),e},n.Dr=function(t,n){return Z.async(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,Z.awrap(this._s.As(t.hs,[Uo(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,Z.awrap(this._s.As(t.hs,[Uo(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.Tr=function(){return this.ys||(this.ys=this.Ts()),this.ys},n.Ts=function(){return Z.async(function(t){for(;;)switch(t.prev=t.next){case 0:if("https:"!==(void 0).protocol){t.next=2;break}case 2:if(Fo){t.next=4;break}return t.abrupt("return",!1);case 4:return t.next=6,Z.awrap(this.Er());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}(),zo=["cenc"],qo=function(t){function n(n){var i;return(i=t.call(this,"au")||this).ou=n,i}return Lt(n,t),n}(vi),Wo=function(t){function n(n,i,e,r){var o;return(o=t.call(this,"fu")||this).ou=n,o.vu=i,o.fu=e,o.du=r,o}return Lt(n,t),n}(vi);!function(t){t.wu="mu",t.yu="pu"}(Lo||(Lo={}));var jo=new w([0]).buffer,Vo=function(){function t(){this.Au=void 0,this.Au=[]}var n=t.prototype;return n.Tu=function(t){for(var n=0,i=this.Au;n<i.length;n++){if(i[n][0]===t)return!0}return!1},n.Su=function(t){for(var n=0,i=this.Au;n<i.length;n++){var e=i[n];if(e[0]===t)return e[1]}},n.Eu=function(t,n){this.Au.forEach(function(n){return t(n[1],n[0])},n)},n.Iu=function(t,n){this.Au.push([t,n])},n.Ru=function(){at(this.Au)},gt(t,[{key:"Nu",get:function(){return this.Au.length}}]),t}(),Ho=function(){function t(){var t=this;this.Fu=void 0,this.Uu=void 0,this.Hu=void 0,this.Fu=new j(function(n,i){t.Uu=n,t.Hu=i})}var n=t.prototype;return n.Vu=function(t){this.Uu&&(this.Uu(t),this.Os())},n.Xu=function(t){this.Hu&&(this.Hu(t),this.Os())},n.Us=function(){this.Fu.catch(vt),this.Xu(new Pn)},n.Os=function(){this.Uu=void 0,this.Hu=void 0},t}();function Xo(t,n){return t===No?function(t){if(t.byteLength<2*Go.length)return t;if($n(new DataView(t,0,2*Go.length),!0)===Go)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 Go="<PlayReady";var Yo=function(t){function n(n,i,e,r){var o;return(o=t.call(this,n,r)||this).Gu=void 0,o.Wu=void 0,o.Gu=i,o.Wu=e,o}return Lt(n,t),n}(kn),Ko=function(t,n){return(Ko=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 $o(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}Ko(t,n),t.prototype=null===n?c.create(n):(i.prototype=n.prototype,new i)}function Jo(t,n,i){return t.indexOf?t.indexOf(n,i):Array.prototype.indexOf.call(t,n,i)}!function(){function t(t,n){this.Yu=t,this.Qu=n}t.prototype.get=function(t){var n=this.Yu.get(t);if(0===this.Qu||void 0===n)return n;var i=this.Yu.get(t+1)||0,e=n&(1<<8-this.Qu)-1,r=i>>8-this.Qu;return(e<<this.Qu)+r},t.prototype.getBit=function(t){if(!(t<0)){var n=this.Yu.get(a.floor((t+this.Qu)/8));if(void 0!==n)return(n&1<<7-this.Qu-t%8)>0?1:0}},c.defineProperty(t.prototype,"bitLength",{get:function(){return this.Yu.bitLength-this.Qu},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"length",{get:function(){return this.Yu.length},enumerable:!1,configurable:!0})}();function Zo(t,n,i){return a.min(a.max(t,n),i)}function Qo(t,n){return t>>8-n}function tu(t,n){return t&(1<<n)-1}!function(){function t(t){this.ju=t,this.Ku=0,this.Zu=0}c.defineProperty(t.prototype,"totalBitsRead",{get:function(){return 8*this.Ku+this.Zu},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"done",{get:function(){return this.Ku===this.ju.length&&0===this.Zu},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"location",{get:function(){return{byte:this.Ku,bit:this.Zu}},enumerable:!1,configurable:!0}),t.prototype.copy=function(){var n=new t(this.ju);return n.seek(this.Ku,this.Zu),n},t.prototype.canReadBits=function(t){return 8*this.Ku+t+this.Zu<=8*this.ju.length},t.prototype.canReadBytes=function(t){return 0===this.Zu?this.Ku+t<=this.ju.length:this.Ku+t<this.ju.length},t.prototype.incBit=function(){this.Zu++,this.Zu>7&&(this.Ku++,this.Zu=0)},t.prototype.seek=function(t,n){this.Ku=t,this.Zu=n},t.prototype.peekBit=function(){if(!this.canReadBits(1))throw new f("Cannot read past end of buffer.");return this.ju.get(this.Ku)>>7-this.Zu&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.Zu)return this.ju.get(this.Ku++);var t=tu(this.ju.get(this.Ku),8-this.Zu),n=Qo(this.ju.get(this.Ku+1),this.Zu);return this.Ku++,t<<this.Zu|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.Zu&&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.Zu+t;this.Ku+=n>>3,this.Zu=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 nu=function(t,n){return t===n?0:t<n?-1:t>n?1:l(t)?l(n)?0:1:-1},iu=function(){function t(){this.Ju=[],this.$u=[],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.$u.length)this.$u.push(0);else{var e=this.$u[this.$u.length-1]+this.Ju[this.Ju.length-1].length;this.$u.push(e)}this.Ju.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.Ju;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.Ju=[],this.$u=[],this.Se=0},t.prototype.get=function(t){if(!(t<0||t>=this.length)){var n=this.findContainingBufferIndex(t),i=t-this.$u[n];return this.Ju[n][i]}},c.defineProperty(t.prototype,"first",{get:function(){return this.get(0)},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){if(this.Ju.length<1)return-1;if(this.Ju.length>1){var n=this.join();this.clear(),this.pushRange(n)}var i=this.Ju[0];return"number"==typeof t?Jo(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=Jo(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.$u,t,nu)},t.prototype.join=function(){if(1===this.Ju.length)return this.Ju[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=Zo(n,0,this.length),r=Zo(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.Ju[u],f=e,h=f-this.$u[u];f+s.length-h<r;)o.pushRange(s,h,s.length-h),u+=1,h=(f+=s.length-h)-this.$u[u],s=this.Ju[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.Ju.length-1,e=this.Ju[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.Ju[i]).length-1}else r-=1;n-=1}return this.slice(0,n+1)},t}(),eu=function(){function t(n){this.uo=n||t.BUFFER_CHUNK_SIZE,this.oo=!1,this.ao=new iu,this.ju=new w(this.uo),this.do=0,this._o=0,this.Zu=7}return t.prototype.closeByte=function(){this.ju[this.do++]=this._o,this.do>=this.uo&&this.closeBuffer(),this._o=0,this.Zu=7},t.prototype.closeBuffer=function(t){void 0===t&&(t=!0),0!==this.do&&(this.ao.pushRange(this.ju,0,this.do),t&&(this.ju=new w(this.uo)),this.do=0)},c.defineProperty(t.prototype,"isWritingStartBit",{get:function(){return 7===this.Zu},enumerable:!1,configurable:!0}),t.prototype.close=function(){if(this.oo)throw new f("Cannot close a closed BitWriter.");return this.isWritingStartBit||this.closeByte(),this.closeBuffer(!1),this.oo=!0,this.ao},t.prototype.writeBit=function(t){if(this.oo)throw new f("Cannot write to a closed BitWriter.");this._o|=t<<this.Zu,0===this.Zu?this.closeByte():this.Zu--},t.prototype.writeByte=function(t){if(this.oo)throw new f("Cannot write to a closed BitWriter.");this.isWritingStartBit?(this._o=t,this.closeByte()):this.writeByteUnaligned(t)},t.prototype.writeByteUnaligned=function(t){var n=this.Zu;this._o|=Qo(t,n+1),this.closeByte(),this._o=tu(t,8-n)<<n+1,this.Zu=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.oo)throw new f("Cannot write to a closed BitWriter.");this.isWritingStartBit?this.writeBytesAligned(t):this.writeBytesUnaligned(t)},t.prototype.writeBytesAligned=function(t){this.do+t.length<=this.uo?(this.ju.set(t,this.do),this.do+=t.length,this.do===this.uo&&this.closeBuffer()):(this.closeBuffer(),this.ao.pushRange(t))},t.prototype.writeBytesUnaligned=function(t){if(0!==t.length){var n=this.Zu;this._o|=Qo(t[0],n+1),this.closeByte();for(var i=1;i<t.length;i++){var e=tu(t[i-1],8-n),r=Qo(t[i],n+1);this._o=e<<n+1|r,this.closeByte()}this._o=tu(t[t.length-1],8-n)<<n+1,this.Zu=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}(),ru=function(){function t(t){this.rb=new iu,this.mo=t}return t.prototype.closeWriter=function(){void 0!==this.mo&&(this.rb=this.rb.concat(this.mo.close()),this.mo=void 0)},c.defineProperty(t.prototype,"writer",{get:function(){return void 0===this.mo&&(this.mo=new eu),this.mo},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}(),ou=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 ru;return this.serializeCommonBoxHeader(t.writer),this.serializeBoxContent(t),t.toRangedBuffer()},t.LARGE_SIZE=a.pow(2,32),t}();function uu(t,n){return t instanceof qt?64===n:t<a.pow(2,n)}function su(t,n){return a.round(t*a.pow(2,n))}function fu(t,n){for(var i=0;i<n.length;i++)t.writeByte(n[i])}var hu=function(t){function n(n,i,e){var r=t.call(this,n)||this;if(r.version=i,!uu(i,8))throw new f("the provided version cannot fit in 8 bits.");return r.flags=e,r}return $o(n,t),c.defineProperty(n.prototype,"flags",{get:function(){return this.po},set:function(t){this.po=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}(ou),cu=(function(t){function n(n,i){var e=t.call(this,n)||this;return e.data=i,e}$o(n,t),n.prototype.getBoxContentSize=function(){return this.data.length},n.prototype.serializeBoxContent=function(t){t.concat(iu.from(this.data))}}(ou),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}());function au(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){var n=t.length;if(n<=vu)return String.fromCharCode.apply(String,t);for(var i=[],e=0;e<n;e+=vu)i.push(String.fromCharCode.apply(String,t.slice(e,e+vu)));return i.join("")}(n)}var vu=16384;function du(t,n){var i=t.getUint8(n.offset);return n.shift(1),i}function lu(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 wu(t,n,i){return n.offset+i<=t.byteLength}function bu(t,n,i){void 0===i&&(i=!1);var e=t.getUint32(n.offset,i);return n.shift(4),e}function gu(t,n,i){void 0===i&&(i=!1);var e=bu(t,n,i),r=bu(t,n,i),o=i?r:e,u=i?e:r;return qt.fromBits(u,o,!0)}function mu(t,n){var i=du(t,n);if(i)return String.fromCharCode(i)}function pu(t,n,i){for(var e="",r=0;r<i;r++)e+=mu(t,n);return e}function yu(t,n){var i,e=du(t,n);return 0==(128&e)?i=e:192==(224&e)?i=64*(31&e)+(63&du(t,n)):224==(240&e)?i=4096*(15&e)+64*(63&du(t,n))+(63&du(t,n)):240==(248&e)&&(i=262144*(7&e)+4096*(63&du(t,n))+64*(63&du(t,n))+(63&du(t,n))),i}function _u(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=yu(t,n);if(void 0===r)break;if(i&&0===r)break;e.push(r)}return au(e)}(t,n,!0)}var Su=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 cu(this.offset<<3)},t}(),Iu=function(){function t(t,n){this.data=t,this.cursor=n}return t.prototype.nextUint8=function(){return du(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 bu(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=bu(t,n,i),r=bu(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 gu(this.data,this.cursor)},t.prototype.nextUint8Array=function(t){return lu(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(bu(t,n));return e}(this.data,this.cursor,t)},t.prototype.nextChars=function(t){return pu(this.data,this.cursor,t)},t.prototype.nextUTF8String=function(){return _u(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 Tu(t,n){return t.type===n}var Eu=8;function Ru(t,n){var i=n.offset,e=function(t,n){var i=n.offset;if(!wu(t,n,Eu)){var e=n.offset+Eu;return{complete:!1,neededOffset:e}}var r=bu(t,n),o=pu(t,n,4);if(1===r){if(!wu(t,n,8)){var e=n.offset+8;return n.seek(i),{complete:!1,neededOffset:e}}r=gu(t,n).toNumber()}if("uuid"===o){if(!wu(t,n,16)){var e=n.offset+16;return n.seek(i),{complete:!1,neededOffset:e}}o=pu(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 Iu((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 Su(r.headerSize))};return n.seek(u),{complete:!0,box:a}}!function(t){function n(){return t.call(this,"mdir")||this}$o(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 $o(n,t),c.defineProperty(n.prototype,"handlerType",{get:function(){return this.Ao},set:function(t){this.Ao=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}(hu));var ku=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.To},set:function(t){if(!uu(t,8))throw new f("Provided tag does not fit in 8 bits.");this.To=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}(),Nu=(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}$o(n,t),c.defineProperty(n.prototype,"objectTypeIndication",{get:function(){return this.So},set:function(t){if(!uu(t,8))throw new f("Provided objectTypeIndication does not fit in 8 bits.");this.So=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"streamType",{get:function(){return this.Eo},set:function(t){if(!uu(t,6))throw new f("Provided streamType does not fit in 6 bits.");this.Eo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"bufferSizeDb",{get:function(){return this.Io},set:function(t){if(!uu(t,24))throw new f("Provided bufferSizeDb does not fit in 24 bits.");this.Io=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"maxBitrate",{get:function(){return this.Ro},set:function(t){if(!uu(t,32))throw new f("Provided maxBitrate does not fit in 32 bits.");this.Ro=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"avgBitrate",{get:function(){return this.No},set:function(t){if(!uu(t,32))throw new f("Provided avgBitrate does not fit in 32 bits.");this.No=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)}}}(ku),function(t){function n(n,i){void 0===i&&(i={});var e=t.call(this,5,i.fixed28BitMode)||this;return e.data=n,e}$o(n,t),n.prototype.getDescriptorSize=function(){return this.data.length},n.prototype.serializeDescriptorContent=function(t){t.concat(iu.from(this.data))}}(ku),function(t){function n(n){void 0===n&&(n=!1);var i=t.call(this,6,n)||this;return i.predefined=2,i}return $o(n,t),n.prototype.getDescriptorSize=function(){return 1},n.prototype.serializeDescriptorContent=function(t){t.writer.writeByte(this.predefined)},n}(ku)),Ou=(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 Nu(r.fixed28BitMode),o}$o(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.Do},set:function(t){if(!uu(t,16))throw new f("Provided esId does not fit in 16 bits.");this.Do=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"streamPriority",{get:function(){return this.Co},set:function(t){if(!uu(t,5))throw new f("Provided streamPriority does not fit in 5 bits.");this.Co=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"dependsOnEsId",{get:function(){return this.Po},set:function(t){if(t&&!uu(t,16))throw new f("Provided dependsOnEsId does not fit in 16 bits.");this.Po=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"ocrEsId",{get:function(){return this.Oo},set:function(t){if(t&&!uu(t,16))throw new f("Provided ocrEsId does not fit in 16 bits.");this.Oo=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)}}(ku),function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.boxes=[],n}return $o(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}(ou)),Pu=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return $o(n,t),n.prototype.serializeBoxContent=function(t){},n.prototype.getBoxContentSize=function(){return 0},n}(Ou),Au=function(t){function n(n,i){var e=t.call(this,n)||this;return e.dataReferenceIndex=i,e}return $o(n,t),c.defineProperty(n.prototype,"dataReferenceIndex",{get:function(){return this.Bo},set:function(t){if(!uu(t,16))throw new f("Provided dataReferenceIndex does not fit in 16 bits.");this.Bo=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}(Pu),Du=function(t){function n(n,i,e,r){var o,u,s=t.call(this,n,i)||this;return s.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 $o(n,t),c.defineProperty(n.prototype,"channelCount",{get:function(){return this.Lo},set:function(t){if(!uu(t,16))throw new f("Provided channelCount does not fit in 16 bits.");this.Lo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"sampleSize",{get:function(){return this.xo},set:function(t){if(!uu(t,16))throw new f("Provided sampleSize does not fit in 16 bits.");this.xo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"sampleRate",{get:function(){return this.Mo},set:function(t){if(!uu(su(t,16),32))throw new f("Provided rate does not fit in 32 bits (fixed 16.16).");this.Mo=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(su(this.sampleRate,16),32),this.extra&&fu(n.writer,this.extra)},n}(Au),xu=(function(t){function n(n){var i=t.call(this,"stco",0,0)||this;return i.entries=n,i}$o(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Fo},set:function(t){if(!uu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!uu(t,32)}))throw new f("Not all entries can be represented in 32 bits.");this.Fo=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)}}}(hu),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}$o(n,t),c.defineProperty(n.prototype,"cleanApertureWidthN",{get:function(){return this.Uo},set:function(t){if(!uu(t,32))throw new f("Provided cleanApertureWidthN does not fit in 32 bits.");this.Uo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"cleanApertureWidthD",{get:function(){return this.Ho},set:function(t){if(!uu(t,32))throw new f("Provided cleanApertureWidthD does not fit in 32 bits.");this.Ho=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"cleanApertureHeightN",{get:function(){return this.Vo},set:function(t){if(!uu(t,32))throw new f("Provided cleanApertureHeightN does not fit in 32 bits.");this.Vo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"cleanApertureHeightD",{get:function(){return this.Xo},set:function(t){if(!uu(t,32))throw new f("Provided cleanApertureHeightD does not fit in 32 bits.");this.Xo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"horizOffN",{get:function(){return this.zo},set:function(t){if(!uu(t,32))throw new f("Provided horizOffN does not fit in 32 bits.");this.zo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"horizOffD",{get:function(){return this.Go},set:function(t){if(!uu(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.qo},set:function(t){if(!uu(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.Wo},set:function(t){if(!uu(t,32))throw new f("Provided vertOffD does not fit in 32 bits.");this.Wo=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)}}(ou),function(t){function n(n,i){var e=t.call(this,"ctts",n,0)||this;return e.entries=i,e}$o(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Fo},set:function(t){if(!uu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!uu(t.sampleCount,32)||!uu(t.sampleOffset,32)}))throw new f("Not all entries can be represented in 64 bits.");this.Fo=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)}}}(hu),function(t){function n(n){var i=t.call(this,"url ",0,void 0===n?1:0)||this;return i.location=n,i}$o(n,t),c.defineProperty(n.prototype,"location",{get:function(){return this.Yo},set:function(t){this.flags=void 0===t?1:0,this.Yo=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))}}(hu),function(t){function n(n,i,e){var r=t.call(this,"urn ",0,e)||this;return r.name=n,r.location=i,r}$o(n,t),c.defineProperty(n.prototype,"location",{get:function(){return this.Yo},set:function(t){if(1&this.flags)throw new f("The moov containment flag is set, a DataEntryUrlBox should be used instead.");this.Yo=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))}}(hu),function(t){function n(){return t.call(this,"dinf")||this}$o(n,t)}(Pu),function(t){function n(n,i,e){var r=t.call(this,n)||this;if(r.version=i,!uu(i,8))throw new f("the provided version cannot fit in 8 bits.");return r.flags=e,r}return $o(n,t),c.defineProperty(n.prototype,"flags",{get:function(){return this.po},set:function(t){this.po=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}(Ou)),Cu=(function(t){function n(){return t.call(this,"dref",0,0)||this}$o(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)}}(xu),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 $o(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.Fo},set:function(t){for(var n=0,i=t;n<i.length;n++){var e=i[n];if(!uu(e.segmentDuration,this.bitSize))throw new f("SegmentDuration of one of the entries does not fit in "+this.bitSize+" bits.");if(!uu(e.mediaTime,this.bitSize))throw new f("MediaTime of one of the entries does not fit in "+this.bitSize+" bits.");if(!uu(e.mediaRateInteger,16))throw new f("Provided mediaRateInteger does not fit in 16 bits.");if(e.mediaRateFraction&&!uu(e.mediaRateFraction,16))throw new f("Provided mediaRateFraction does not fit in 16 bits.")}this.Fo=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}(hu)),Bu=(function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,0,i)||this}$o(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)}}}(Cu),function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,1,i)||this}$o(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)}}}(Cu),function(t){function n(){return t.call(this,"edts")||this}$o(n,t)}(Pu),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 $o(n,t),c.defineProperty(n.prototype,"majorBrand",{get:function(){return this.Qo},set:function(t){if(4!==t.length)throw new f("the provided major brand does not conform to the 4 character requirement");this.Qo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"minorVersion",{get:function(){return this.jo},set:function(t){if(!uu(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.Ko},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.Ko=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}(ou)),Fu=(function(t){function n(n,i,e){return t.call(this,"ftyp",n,i,e)||this}$o(n,t)}(Bu),function(t){function n(n,i){void 0===i&&(i="free");var e=t.call(this,i)||this;return e.data=n,e}$o(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(iu.from(this.data))}}(ou),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 $o(n,t),c.defineProperty(n.prototype,"creationTime",{get:function(){return this.Zo},set:function(t){if(!uu(t,this.bitSize))throw new f("Provided sequence number does not fit in "+this.bitSize+" bits.");this.Zo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"modificationTime",{get:function(){return this.Jo},set:function(t){if(!uu(t,this.bitSize))throw new f("Provided sequence number does not fit in "+this.bitSize+" bits.");this.Jo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"timescale",{get:function(){return this.$o},set:function(t){if(!uu(t,32))throw new f("Provided sequence number does not fit in 32 bits.");this.$o=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"duration",{get:function(){return this.nh},set:function(t){if(!uu(t,this.bitSize))throw new f("Provided sequence number does not fit in "+this.bitSize+" bits.");this.nh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"language",{get:function(){return this.ih},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.ih=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}(hu));(function(t){function n(n,i,e){return void 0===e&&(e=0),t.call(this,n,i,0,e)||this}$o(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)}})(Fu),function(t){function n(n,i,e){return void 0===e&&(e=0),t.call(this,n,i,1,e)||this}$o(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)}}(Fu);var Uu;(function(t){function n(){return t.call(this,"mdia")||this}$o(n,t)})(Pu),function(t){function n(){var n=t.call(this,"mdat")||this;return n.data=new iu,n}$o(n,t),n.prototype.getBoxContentSize=function(){return this.data.length},n.prototype.serializeBoxContent=function(t){t.concat(this.data)}}(ou),function(t){function n(){return t.call(this,"minf")||this}$o(n,t)}(Pu),function(t){function n(n){var i=t.call(this,"meta",0,0)||this;return i.handler=n,i}$o(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())}}(xu);!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"}(Uu||(Uu={}));var Lu,Mu,zu={a:1,b:0,u:0,c:0,d:1,v:0,x:0,y:0,w:1};function qu(t,n){n.writer.writeUInt(su(t.a,16),32),n.writer.writeUInt(su(t.b,16),32),n.writer.writeUInt(su(0,30),32),n.writer.writeUInt(su(t.c,16),32),n.writer.writeUInt(su(t.d,16),32),n.writer.writeUInt(su(0,30),32),n.writer.writeUInt(su(t.x,16),32),n.writer.writeUInt(su(t.y,16),32),n.writer.writeUInt(su(1,30),32)}function Wu(t,n){var i,e,r,o;n.writer.writeUInt(null!==(i=t.isLeading)&&void 0!==i?i:Lu.UNKNOWN,2),n.writer.writeUInt(null!==(e=t.sampleDependsOn)&&void 0!==e?e:Mu.UNKNOWN,2),n.writer.writeUInt(null!==(r=t.sampleIsDependedOn)&&void 0!==r?r:Mu.UNKNOWN,2),n.writer.writeUInt(null!==(o=t.sampleHasRedundancy)&&void 0!==o?o:Mu.UNKNOWN,2)}function ju(t,n){var i,e,r;n.writer.writeUInt(0,4),Wu(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"}(Lu||(Lu={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.YES=1]="YES",t[t.NO=2]="NO",t[t.RESERVED=3]="RESERVED"}(Mu||(Mu={}));var Vu=function(){return function(){}}(),Hu=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 $o(n,t),c.defineProperty(n.prototype,"systemId",{get:function(){return this.eh},set:function(t){if(16!==t.length)throw new f("Provided systemId length is not 16.");this.eh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"data",{get:function(){return this.qi},set:function(t){if(!uu(t.length,32))throw new f("Provided data length does not fit in 32 bits.");this.qi=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(iu.from(this.systemId)),this.serializeVersionBoxContent(n),n.writer.writeUInt(this.data.length,32),n.concat(iu.from(this.data))},n}(hu),Xu=function(t){function n(n,i){return t.call(this,0,n,i)||this}return $o(n,t),n}(Hu),Gu=function(t){function n(n,i,e){var r=t.call(this,1,n,i)||this;return r.kIds=e,r}return $o(n,t),c.defineProperty(n.prototype,"kIds",{get:function(){return this.rh},set:function(t){if(!uu(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.rh=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(iu.from(e))}},n}(Hu);var Yu=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 $o(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.sh},set:function(t){if(!uu(t,this.bitSize))throw new f("The provided fragmentDuration does not fit in "+this.bitSize+" bits.");this.sh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8},n}(hu),Ku=(function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,0,i)||this}$o(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.fragmentDuration,32)}}(Yu),function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,1,i)||this}$o(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)}}(Yu),function(t){function n(n,i,e,r){var o,u,s;void 0===i&&(i={}),void 0===e&&(e=0),void 0===r&&(r=0);var f=t.call(this,"trex",e,r)||this;return f.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}$o(n,t),c.defineProperty(n.prototype,"trackId",{get:function(){return this.uh},set:function(t){if(!uu(t,32))throw new f("Provided track id does not fit in 32 bits.");this.uh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleDescriptionIndex",{get:function(){return this.oh},set:function(t){if(!uu(t,32))throw new f("Provided default sample description index does not fit in 32 bits.");this.oh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleDuration",{get:function(){return this.ah},set:function(t){if(!uu(t,32))throw new f("Provided default sample duration does not fit in 32 bits.");this.ah=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleSize",{get:function(){return this.fh},set:function(t){if(!uu(t,32))throw new f("Provided default sample size does not fit in 32 bits.");this.fh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleFlags",{get:function(){return this.vh},set:function(t){if((null==t?void 0:t.samplePaddingValue)&&!uu(t.samplePaddingValue,3))throw new f("Provided sample padding value does not fit in 3 bits.");if((null==t?void 0:t.sampleDegradationPriority)&&!uu(t.sampleDegradationPriority,16))throw new f("Provided sample degradation priority does not fit in 16 bits.");this.vh=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)}}(hu),function(t){function n(){return t.call(this,"mvex")||this}$o(n,t)}(Pu),function(t){function n(i,e,r,o,u){var s,f,h;void 0===u&&(u=0);var c=t.call(this,"mvhd",o,u)||this;return c.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:zu,c.dh=e,c}return $o(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.Zo},set:function(t){if(!uu(t,this.bitSize))throw new f("Provided sequence number does not fit in "+this.bitSize+" bits.");this.Zo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"modificationTime",{get:function(){return this.Jo},set:function(t){if(!uu(t,this.bitSize))throw new f("Provided sequence number does not fit in "+this.bitSize+" bits.");this.Jo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"timescale",{get:function(){return this.$o},set:function(t){if(!uu(t,32))throw new f("Provided sequence number does not fit in 32 bits.");this.$o=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"duration",{get:function(){return this.nh},set:function(t){if(!uu(t,this.bitSize))throw new f("Provided sequence number does not fit in "+this.bitSize+" bits.");this.nh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"rate",{get:function(){return this.lh},set:function(t){if(!uu(su(t,16),32))throw new f("Provided rate does not fit in 32 bits (fixed 16.16).");this.lh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"volume",{get:function(){return this._h},set:function(t){if(!uu(su(t,8),16))throw new f("Provided volume does not fit in 16 bits (fixed 8.8).");this._h=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.dh},set:function(t){if(0===t)throw new f("NextTrackId cannot be 0.");if(!uu(t,32))throw new f("NextTrackId cannot exceed 32 bits.");this.dh=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(su(this.rate,16),32),n.writer.writeUInt(su(this.volume,8),16),n.writer.writeUInt(0,16),n.writer.writeUInt(0,32),n.writer.writeUInt(0,32),qu(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}(hu));(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}$o(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)}})(Ku),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}$o(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)}}(Ku);var $u=function(t){function n(n,i,e,r,o,u,s){var f,h,c;void 0===s&&(s={});var 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;return a.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:zu,a}return $o(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.Zo},set:function(t){if(!uu(t,this.bitSize))throw new f("Provided sequence number does not fit in "+this.bitSize+" bits.");this.Zo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"modificationTime",{get:function(){return this.Jo},set:function(t){if(!uu(t,this.bitSize))throw new f("Provided sequence number does not fit in "+this.bitSize+" bits.");this.Jo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"trackId",{get:function(){return this.uh},set:function(t){if(0===t)throw new f("trackId cannot be 0.");if(!uu(t,32))throw new f("trackId cannot exceed 32 bits.");this.uh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"duration",{get:function(){return this.nh},set:function(t){if(!uu(t,this.bitSize))throw new f("Provided sequence number does not fit in "+this.bitSize+" bits.");this.nh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"volume",{get:function(){return this._h},set:function(t){if(!uu(su(t,8),16))throw new f("Provided volume does not fit in 16 bits (fixed 8.8).");this._h=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"width",{get:function(){return this.gh},set:function(t){if(!uu(su(t,16),32))throw new f("Provided width does not fit in 32 bits (fixed 16.16).");this.gh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"height",{get:function(){return this.yh},set:function(t){if(!uu(su(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.kh},set:function(t){if(!uu(t,16))throw new f("Provided layer does not fit in 16 bits.");this.kh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"alternateGroup",{get:function(){return this.ph},set:function(t){if(!uu(t,16))throw new f("Provided alternateGroup does not fit in 16 bits.");this.ph=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(su(this.volume,8),16),n.writer.writeUInt(0,16),qu(this.matrix,n),n.writer.writeUInt(su(this.width,16),32),n.writer.writeUInt(su(this.height,16),32)},n}(hu),Ju=(function(t){function n(n,i,e,r,o,u){return t.call(this,0,n,i,e,r,o,u)||this}$o(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)}}($u),function(t){function n(n,i,e,r,o,u){return t.call(this,1,n,i,e,r,o,u)||this}$o(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)}}($u),function(t){function n(){return t.call(this,"trak")||this}$o(n,t)}(Pu),function(t){function n(){return t.call(this,"moov")||this}$o(n,t)}(Pu),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 $o(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.Ah},set:function(t){if(!uu(t,this.bitSize))throw new f("Provided baseMediaDecodeTime does not fit in "+this.bitSize+" bits.");this.Ah=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return t.prototype.getBoxContentSize.call(this)+this.bitSize/8},n}(hu));(function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,0,i)||this}$o(n,t),n.prototype.serializeBoxContent=function(n){t.prototype.serializeBoxContent.call(this,n),n.writer.writeUInt(this.baseMediaDecodeTime,32)}})(Ju),function(t){function n(n,i){return void 0===i&&(i=0),t.call(this,n,1,i)||this}$o(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)}}(Ju);!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}$o(n,t),c.defineProperty(n.prototype,"trackId",{get:function(){return this.uh},set:function(t){if(!uu(t,32))throw new f("Provided track id does not fit in 32 bits.");this.uh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"baseDataOffset",{get:function(){return this.Th},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&&!uu(t,64))throw new f("Provided baseDataOffset does not fit in 32 bits.");this.Th=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"sampleDescriptionIndex",{get:function(){return this.Sh},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&&!uu(t,32))throw new f("Provided sampleDescriptionIndex does not fit in 32 bits.");this.Sh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleDuration",{get:function(){return this.ah},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&&!uu(t,32))throw new f("Provided defaultSampleDuration does not fit in 32 bits.");this.ah=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleSize",{get:function(){return this.fh},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&&!uu(t,32))throw new f("Provided defaultSampleSize does not fit in 32 bits.");this.fh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"defaultSampleFlags",{get:function(){return this.vh},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)&&!uu(t.samplePaddingValue,3))throw new f("Provided sample padding value does not fit in 3 bits.");if((null==t?void 0:t.sampleDegradationPriority)&&!uu(t.sampleDegradationPriority,16))throw new f("Provided sample degradation priority does not fit in 16 bits.");this.vh=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)}}(hu);(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}$o(n,t),c.defineProperty(n.prototype,"dataOffset",{get:function(){return this.Eh},set:function(t){if(t&&!uu(t,32))throw new f("Provided data offset does not fit in 32 bits.");this.Eh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"firstSampleFlags",{get:function(){return this.Ih},set:function(t){if((null==t?void 0:t.samplePaddingValue)&&!uu(t.samplePaddingValue,3))throw new f("Provided sample padding value does not fit in 3 bits.");if((null==t?void 0:t.sampleDegradationPriority)&&!uu(t.sampleDegradationPriority,16))throw new f("Provided sample degradation priority does not fit in 16 bits.");this.Ih=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"samples",{get:function(){return this.Rh},set:function(t){var n,i;if(!uu(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&&!uu(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&&!uu(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)&&!uu(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)&&!uu(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&&!uu(o.compositionTimeOffset,32))throw new f("Provided sample compositionTimeOffset does not fit in 32 bits.")}this.Rh=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))}}})(hu),function(t){function n(){return t.call(this,"traf")||this}$o(n,t)}(Pu),function(t){function n(){return t.call(this,"moof")||this}$o(n,t)}(Pu),function(t){function n(n){var i=t.call(this,"mfhd",0,0)||this;return i.sequenceNumber=n,i}$o(n,t),c.defineProperty(n.prototype,"sequenceNumber",{get:function(){return this.Nh},set:function(t){if(!uu(t,32))throw new f("Provided sequence number does not fit in 32 bits.");this.Nh=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)}}(hu);var Zu=function(t){function n(n){var i=t.call(this,"frma")||this;return i.codingName=n,i}return $o(n,t),c.defineProperty(n.prototype,"codingName",{get:function(){return this.Dh},set:function(t){if(4!==t.length)throw new f("Provided coding name was not 4 characters long.");this.Dh=t},enumerable:!1,configurable:!0}),n.prototype.getBoxContentSize=function(){return 4},n.prototype.serializeBoxContent=function(t){t.writer.writeString(this.codingName)},n}(ou),Qu=(function(t){function n(n,i){var e=t.call(this,"pasp")||this;return e.hSpacing=n,e.vSpacing=i,e}$o(n,t),c.defineProperty(n.prototype,"hSpacing",{get:function(){return this.Ch},set:function(t){if(!uu(t,32))throw new f("Provided hSpacing does not fit in 32 bits.");this.Ch=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"vSpacing",{get:function(){return this.Ph},set:function(t){if(!uu(t,32))throw new f("Provided vSpacing does not fit in 32 bits.");this.Ph=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)}}(ou),function(t){function n(n,i,e){var r=t.call(this,n)||this;return r.sample=i,r.sinf=e,r}$o(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())}}(Pu),function(t){function n(n,i,e){var r=t.call(this,"sinf")||this;return r.schm=i,r.schi=e,r.frma=new Zu(n),r}$o(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())}}(ou),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 $o(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.Fo},set:function(t){var n=this;if(!uu(t.length,32))throw new f("Number of entries provided does not fit in 32 bits.");if(t.some(function(t){return!uu(t,n.bitSize)}))throw new f("Not all provided entries fit in "+this.bitSize+" bits.");this.Fo=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"explicitAuxInfoType",{get:function(){return this.Oh},set:function(t){if(void 0===t)this.flags=0;else{if(!uu(t.auxInfoType,32))throw new f("Provided auxInfoType does not fit in 32 bits.");if(!uu(t.auxInfoTypeParameter,32))throw new f("Provided auxInfoTypeParameter does not fit in 32 bits.");this.flags=1}this.Oh=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}(hu)),ts=(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}$o(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)}}}(Qu),function(t){function n(){return null!==t&&t.apply(this,arguments)||this}$o(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)}}}(Qu),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}$o(n,t),c.defineProperty(n.prototype,"defaultSampleInfoSize",{get:function(){return this.Bh},set:function(t){if(!uu(t,8))throw new f("Provided defaultSampleInfoSize does not fit in a single byte.");this.Bh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"sampleInfoSizes",{get:function(){return this.Lh},set:function(t){if(!uu(t.length,32))throw new f("Number of sampleInfoSizes provided does not fit in 32 bits.");if(t.some(function(t){return!uu(t,8)}))throw new f("Not all provided sampleInfoSizes fit in a byte.");this.Lh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"explicitAuxInfoType",{get:function(){return this.Oh},set:function(t){if(void 0===t)this.flags=0;else{if(!uu(t.auxInfoType,32))throw new f("Provided auxInfoType does not fit in 32 bits.");if(!uu(t.auxInfoTypeParameter,32))throw new f("Provided auxInfoTypeParameter does not fit in 32 bits.");this.flags=1}this.Oh=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)}}}(hu),function(t){function n(n){var i=t.call(this,"sdtp",0,0)||this;return i.samples=n,i}$o(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++){Wu(e[i],n)}}}(hu),function(t){function n(n){return t.call(this,"stsd",n,0)||this}$o(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)}}(xu),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 $o(n,t),c.defineProperty(n.prototype,"groupingType",{get:function(){return this.Mh},set:function(t){if(4!==t.length)throw new f("The provided groupingType does not equal 4 characters.");this.Mh=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}(hu)),ns=(function(t){function n(n,i){return t.call(this,0,n,i)||this}$o(n,t),n.prototype.serializeVersionBoxContent=function(t){}}(ts),function(t){function n(n,i,e){var r=t.call(this,1,n,e)||this;return r.defaultLength=i,r}$o(n,t),c.defineProperty(n.prototype,"defaultLength",{get:function(){return this.Fh},set:function(t){if(!uu(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)}}(ts),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}$o(n,t),c.defineProperty(n.prototype,"defaultSampleDescriptionIndex",{get:function(){return this.oh},set:function(t){if(!uu(t,32))throw new f("The provided defaultSampleDescriptionIndex does not fit in 32 bits.");this.oh=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)}}(ts),function(t){function n(n){void 0===n&&(n=[]);var i=t.call(this,"stsz",0,0)||this;return i.sampleSizes=n,i}$o(n,t),c.defineProperty(n.prototype,"sampleSizes",{get:function(){return this.Uh},set:function(t){if(!uu(t.length,32))throw new f("Number of allowed samples cannot fit in 32 bits.");if(t.some(function(t){return!uu(t,32)}))throw new f("Not all sampleSizes can be represented in 32 bits.");this.Uh=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)}}}(hu),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}$o(n,t),c.defineProperty(n.prototype,"defaultSampleSize",{get:function(){return this.fh},set:function(t){if(!uu(t,32))throw new f("Provided defaultSampleSize does not fit in 32 bits.");this.fh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"samples",{get:function(){return this.Rh},set:function(t){if(!uu(t,32))throw new f("Number of allowed samples cannot fit in 32 bits.");this.Rh=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)}}(hu),function(t){function n(){return t.call(this,"stbl")||this}$o(n,t)}(Pu),function(t){function n(n){var i=t.call(this,"stsc",0,0)||this;return i.entries=n,i}$o(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Fo},set:function(t){if(!uu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!uu(t.firstChunk,32)||!uu(t.sampleDescriptionIndex,32)||!uu(t.samplesPerChunk,32)}))throw new f("Not all entries can be represented in 96 bits.");this.Fo=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)}}}(hu),function(t){function n(){return t.call(this,"schi")||this}$o(n,t)}(Pu),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}$o(n,t),c.defineProperty(n.prototype,"schemeType",{get:function(){return this.Hh},set:function(t){if(4!==t.length)throw new f("The provided schemeType does not have a length of 4.");this.Hh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"schemeVersion",{get:function(){return this.Vh},set:function(t){if(!uu(t,32))throw new f("The provided schemeVersion does not fit in 23 bits.");this.Vh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"schemeUri",{get:function(){return this.Xh},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.Xh=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))}}(hu),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 $o(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(!uu(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.$o},set:function(t){if(!uu(t,32))throw new f("Provided timescale does not fit in 32 bits.");this.$o=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"earliestPresentationTime",{get:function(){return this.qh},set:function(t){if(!uu(t,this.bitSize))throw new f("Provided earliestPresentationTime does not fit in "+this.bitSize+" bits.");this.qh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"firstOffset",{get:function(){return this.Wh},set:function(t){if(!uu(t,this.bitSize))throw new f("Provided timescale does not fit in "+this.bitSize+" bits.");this.Wh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"references",{get:function(){return this.Yh},set:function(t){if(!uu(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(!uu(e.referencedSize,31))throw new f("Provided referenced size does not fit in 31 bits.");if(!uu(e.subsegmentDuration,32))throw new f("Provided subsegment duration does not fit in 31 bits.");if(!uu(e.sapType,3))throw new f("Provided SAP type does not fit in 3 bits.");if(!uu(e.sapDeltaTime,28))throw new f("Provided SAP delta time does not fit in 28 bits.")}this.Yh=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}(hu)),is=(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}$o(n,t),n.prototype.serializeSidxBoxContent=function(t){t.writer.writeUInt(this.earliestPresentationTime,32),t.writer.writeUInt(this.firstOffset,32)}}(ns),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}$o(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)}}(ns),function(t){function n(n,i,e){return t.call(this,"styp",n,i,e)||this}$o(n,t)}(Bu),function(t){function n(n){void 0===n&&(n=0);var i=t.call(this,"smhd",0,0)||this;return i.balance=n,i}$o(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(!uu(su(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(su(this.balance,8),16),n.writer.writeUInt(0,16)}}(hu),function(t){function n(n){var i=t.call(this,"stss",0,0)||this;return i.entries=n,i}$o(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Fo},set:function(t){if(!uu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!uu(t,32)}))throw new f("Not all entries can be represented in 32 bits.");this.Fo=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)}}}(hu),function(t){function n(n){var i=t.call(this,"stts",0,0)||this;return i.entries=n,i}$o(n,t),c.defineProperty(n.prototype,"entries",{get:function(){return this.Fo},set:function(t){if(!uu(t.length,32))throw new f("Number of allowed entries cannot fit in 32 bits.");if(t.some(function(t){return!uu(t.sampleCount,32)||!uu(t.sampleDelta,32)}))throw new f("Not all entries can be represented in 64 bits.");this.Fo=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)}}}(hu),function(t){function n(n){var i=t.call(this,"trep",0,0)||this;return i.trackId=n,i}$o(n,t),c.defineProperty(n.prototype,"trackId",{get:function(){return this.uh},set:function(t){if(!uu(t,32))throw new f("The provided trackId does not fit in 32 bits.");this.uh=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)}}(xu),function(t){function n(){return t.call(this,"udta")||this}$o(n,t)}(Pu),{red:0,green:0,blue:0}),es=(function(t){function n(n,i){void 0===n&&(n=0),void 0===i&&(i=is);var e=t.call(this,"vmhd",0,1)||this;return e.graphicsMode=n,e.opColor=i,e}$o(n,t),c.defineProperty(n.prototype,"opColor",{get:function(){return this.jh},set:function(t){if(!uu(t.red,16)||!uu(t.green,16)||!uu(t.blue,16))throw new f("Not all colors could be represented in 16 bits.");this.jh=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)}}(hu),function(t){function n(n,i,e,r,o){var u,s,f,h,c;void 0===r&&(r={});var a=t.call(this,n,i)||this;return a.extra=o,a.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}return $o(n,t),c.defineProperty(n.prototype,"width",{get:function(){return this.gh},set:function(t){if(!uu(t,16))throw new f("Provided width does not fit in 16 bits.");this.gh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"height",{get:function(){return this.yh},set:function(t){if(!uu(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.Kh},set:function(t){if(!uu(su(t,16),32))throw new f("Provided horizontalResolution does not fit in 32 bits (fixed 16.16).");this.Kh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"verticalResolution",{get:function(){return this.Zh},set:function(t){if(!uu(su(t,16),32))throw new f("Provided verticalResolution does not fit in 32 bits (fixed 16.16).");this.Zh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"compressorName",{get:function(){return this.Jh},set:function(t){if(t.length>31)throw new f("The provided compressorName should at most be 31 characters long.");this.Jh=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"frameCount",{get:function(){return this.$h},set:function(t){if(!uu(t,16))throw new f("Provided frameCount does not fit in 16 bits.");this.$h=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"depth",{get:function(){return this.ea},set:function(t){if(!uu(t,16))throw new f("Provided depth does not fit in 16 bits.");this.ea=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(su(this.horizontalResolution,16),32),n.writer.writeUInt(su(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&&fu(n.writer,this.extra)},n}(Au)),rs=(function(t){function n(n){var i=t.call(this,"esds",0,0)||this;return i.esDescriptor=n,i}$o(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(iu.from(this.esDescriptor)):this.esDescriptor.serialize(n)}}(hu),function(t){function n(n,i,e){var r=t.call(this,"mp4a",n,e)||this;return r.esd=i,r}$o(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())}}(Du),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}$o(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)}}(es),function(t){function n(n,i){var e=t.call(this,"mp4s",n)||this;return e.esDescriptor=i,e}$o(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)}}(Au),function(t){function n(n){var i=t.call(this,"avcC")||this;return i.decoderConfig=n,i}$o(n,t),n.prototype.getBoxContentSize=function(){return this.decoderConfig.getSize()},n.prototype.serializeBoxContent=function(t){this.decoderConfig.serialize(t)}}(ou),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.ra},set:function(t){if(!uu(t,8))throw new f("Provided version does not fit in 8 bits.");this.ra=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"profileIndication",{get:function(){return this.ua},set:function(t){if(!uu(t,8))throw new f("Provided profileIndication does not fit in 8 bits.");this.ua=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"profileCompatibility",{get:function(){return this.oa},set:function(t){if(!uu(t,8))throw new f("Provided profileCompatibility does not fit in 8 bits.");this.oa=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"levelIndication",{get:function(){return this.va},set:function(t){if(!uu(t,8))throw new f("Provided levelIndication does not fit in 8 bits.");this.va=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"spsSets",{get:function(){return this._a},set:function(t){if(!uu(t.length,5))throw new f("Provided number of spsSets exceeds the max (32)");this._a=t},enumerable:!1,configurable:!0}),c.defineProperty(t.prototype,"ppsSets",{get:function(){return this.ma},set:function(t){if(!uu(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(iu.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(iu.from(u))}}}(),function(t){function n(n,i,e,r,o){void 0===r&&(r={});var u=t.call(this,"avc1",n,i,r)||this;return u.configurationBox=e,u.bitrateBox=o,u}$o(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())}}(es),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}$o(n,t),c.defineProperty(n.prototype,"bufferSizeDb",{get:function(){return this.Io},set:function(t){if(!uu(t,32))throw new f("Provided bufferSizeDb does not fit in 32 bits.");this.Io=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"max",{get:function(){return this.ya},set:function(t){if(!uu(t,32))throw new f("Provided max does not fit in 32 bits.");this.ya=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"avg",{get:function(){return this.Aa},set:function(t){if(!uu(t,32))throw new f("Provided avg does not fit in 32 bits.");this.Aa=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)}}(ou),function(t){function n(n,i){var e,r,o,u,s=t.call(this,"tenc",n,0)||this;if(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 $o(n,t),c.defineProperty(n.prototype,"isProtected",{get:function(){return this.Ta},set:function(t){if(!uu(t,8))throw new f("Provided isProtected does not fit in 1 byte.");this.Ta=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"perSampleIvSize",{get:function(){return this.Sa},set:function(t){if(![8,16].includes(t))throw new f("Provided perSampleIvSize does not match any allowed value [8, 16].");this.Sa=t,this.Ea=new w(0)},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"kId",{get:function(){return this.Ia},set:function(t){if(16!==t.length)throw new f("Provided kId length is not 16.");this.Ia=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"constantIv",{get:function(){return this.Ea},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.Ea=t,this.Sa=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),fu(t.writer,this.kId),0===this.perSampleIvSize&&(t.writer.writeByte(this.constantIv.length),fu(t.writer,this.constantIv))},n}(hu)),os=(function(t){function n(n){return t.call(this,0,n)||this}$o(n,t)}(rs),function(t){function n(n){var i=t.call(this,1,n)||this;return i.cryptByteBlocks=n.cryptByteBlock,i.skipByteBlocks=n.skipByteBlock,i}return $o(n,t),c.defineProperty(n.prototype,"cryptByteBlocks",{get:function(){return this.Ra},set:function(t){if(!uu(t,4))throw new f("Provided cryptByteBlocks does not fit in 4 bits.");this.Ra=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"skipByteBlocks",{get:function(){return this.Na},set:function(t){if(!uu(t,4))throw new f("Provided skipByteBlocks does not fit in 4 bits.");this.Na=t},enumerable:!1,configurable:!0}),n.prototype.serializeVersionBoxContent=function(t){t.writer.writeUInt(this.cryptByteBlocks,4),t.writer.writeUInt(this.skipByteBlocks,4)},n}(rs));!function(t){function n(n){var i=t.call(this)||this;return i.tencBox=new os(n),i}$o(n,t),n.prototype.serializeBoxContent=function(t){this.tencBox.serializeOwnContent(t)},n.prototype.getBoxContentSize=function(){return this.tencBox.getTencHeaderSize()}}(Vu);function us(t){return void 0!==t.iv}function ss(t){return void 0!==t.subsamples}(function(t){function n(n){var i=t.call(this,"senc",0,{useSubsampleEncryption:!1})||this;return i.samples=n,i}$o(n,t),c.defineProperty(n.prototype,"samples",{get:function(){return this.Rh},set:function(t){var n;if(!uu(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(us(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=ss(r)),!0===n&&!ss(r)||!1===n&&ss(r))throw new f("Mix of samples with and without subsamples detected.");if(ss(r)){if(!uu(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(!uu(s.clearData,16))throw new f("Subsample clearData of one of the provided samples does not fit in 16 bits.");if(!uu(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.Rh=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];us(r)&&(n+=r.iv.length),ss(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(us(r)&&fu(n.writer,r.iv),ss(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)}})(hu),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}$o(n,t),c.defineProperty(n.prototype,"timescale",{get:function(){return this.$o},set:function(t){if(!uu(t,32))throw new f("The provided timescale does not fit in 32 bits.");this.$o=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"presentationTimeDelta",{get:function(){return this.Da},set:function(t){if(!uu(t,32))throw new f("The provided presentationTimeDelta does not fit in 32 bits.");this.Da=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"eventDuration",{get:function(){return this.Ca},set:function(t){if(!uu(t,32))throw new f("The provided eventDuration does not fit in 32 bits.");this.Ca=t},enumerable:!1,configurable:!0}),c.defineProperty(n.prototype,"id",{get:function(){return this.Pa},set:function(t){if(!uu(t,32))throw new f("The provided id does not fit in 32 bits.");this.Pa=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(iu.from(this.data))}}(hu);var fs,hs,cs=(fs="pssh",hs=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 Gu(i,s,e):new Xu(i,s)},function(t){var n,i=function(t,n){for(var i=t.data,e=t.cursor;e.offset<i.byteLength;){var r=Ru(i,e);if(!r.complete)return;if(Tu(r.box,n))return r.box}}(new Iu((n=t,new DataView(n.buffer,n.byteOffset,n.byteLength)),new Su),fs);if(!i)throw new f(fs+" box not found");return hs(i)}),as=function(t){function n(n,i){var e;(e=t.call(this)||this).Oa=void 0,e.Ba=!1,e.La=void 0,e.xa=void 0,e.Ma=function(){e.Fa()},e.Ua=function(t){e.Ys(new Wo(En(e),t.messageType,Xo(e.Ha,t.message)))},e.Va=function(){e.Ba=!0,e.Oa.Nu>0&&(e.Oa.Ru(),e.Ys(new qo(En(e)))),e.Xa.removeEventListener("keystatuseschange",e.Ma),e.Xa.removeEventListener("message",e.Ua)},e.Xa=n,e.Ha=i,e.Xa.addEventListener("keystatuseschange",e.Ma),e.Xa.addEventListener("message",e.Ua),e.Oa=new Vo;var r=[];return e.Xa.closed&&r.push(j.resolve(e.Xa.closed)),e.xa=new Ho,r.push(e.xa.Fu),e.La=j.race(r).then(e.Va,e.Va),e.Fa(),e}Lt(n,t);var i=n.prototype;return i.Ga=function(){if(this.Ba)return this.La;var t,n,i=[];return i.push(j.resolve(this.Xa.close())),i.push((t=1e3,new j(function(i,e){if(void 0!==n&&n.Rs)e(new Pn);else{var r=J.Qn(function(){void 0!==n&&n.Ls(o),i()},t),o=function(){J.Yn(r),e(new Pn)};void 0!==n&&n.Bs(o)}}))),this.xa.Vu(j.race(i).catch(vs)),this.Ba=!0,this.La},i.qa=function(t,n,i){if(xi.cn){var e=cs(ii(n));if(1===e.version)n=new Xu(e.systemId,e.data).serialize().join()}return j.resolve(this.Xa.generateRequest(t,n)).catch(vs)},i.Wa=function(t){return j.resolve(this.Xa.load(t)).catch(vs)},i.Ya=function(){return j.resolve(this.Xa.remove()).catch(vs)},i.Qa=function(t){return j.resolve(this.Xa.update(t)).catch(vs)},i.Fa=function(){var t=this;this.Oa.Ru(),this.Xa.keyStatuses.forEach(function(n,i){t.Ka(i,n)}),this.Ys(new qo(this))},i.Ka=function(t,n){if("string"==typeof t){var i=t;t=n,n=i}var e=ii(t);if(this.Ha===No&&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.Ha===No&&"status-pending"===n&&(n="usable"),this.Oa.Iu(e,n)},gt(n,[{key:"Za",get:function(){return this.La}},{key:"Ja",get:function(){return this.Xa.expiration}},{key:"$a",get:function(){return this.Oa}},{key:"tc",get:function(){return this.Xa.sessionId}}]),n}(ai);function vs(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 Yo(t.message,void 0,n,t)}var ds=function(){function t(t,n,i){this.nc=t,this.ic=n,this.ec=i}var n=t.prototype;return n.rc=function(t){return Z.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new as(this.nc.createSession(t),this.ic));case 1:case"end":return n.stop()}},null,this,null,j)},n.uc=function(t){return j.resolve(this.nc.setServerCertificate(t))},n.hc=function(t){return j.resolve(t.setMediaKeys(this.nc))},n.ac=function(t){return j.resolve(t.setMediaKeys(null))},t}(),ls=function(){function t(t,n,i){this.cc=t,this.Ha=n,this.fc=i}var n=t.prototype;return n.vc=function(){var t;return Z.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Z.awrap(this.cc.createMediaKeys());case 2:return t=n.sent,n.abrupt("return",new ds(t,this.Ha,this.fc));case 4:case"end":return n.stop()}},null,this,null,j)},n.dc=function(){return this.fc},gt(t,[{key:"ic",get:function(){return this.cc.keySystem}}]),t}();function ws(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 bs(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 bs(t,n,i,e)}),u=!0,o.videoCapabilities.length&&(r=!0))}return u||(r=t(i,"video/mp4")),r?o:void 0}}function bs(t,n,i,e){return!!e.contentType&&(!(e.encryptionScheme&&!ct(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 gs(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 ms(t){return!(!t.audioCapabilities||!t.audioCapabilities.some(ps))||!(!t.videoCapabilities||!t.videoCapabilities.some(ps))}function ps(t){return!t.robustness}function ys(t,n){for(var i=[],e=0;e<t.length;e++){var r=t[e];r.robustness?i.push(r):i.push(Ro({},r,{robustness:n}))}return i}var _s,Ss,Is=function(){function t(){}return t.prototype.As=function(t,n){var i,r,o,u,s,f,h,c;return Z.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=gs(o.audioCapabilities)),o.videoCapabilities&&(o.videoCapabilities=gs(o.videoCapabilities));if("com.widevine.alpha"!==t||!n.some(ms)){a.next=14;break}return u=n.map(function(t){return i="SW_SECURE_CRYPTO",Ro({},n=t,{videoCapabilities:n.videoCapabilities?ys(n.videoCapabilities,i):void 0,audioCapabilities:n.audioCapabilities?ys(n.audioCapabilities,i):void 0});var n,i}),a.prev=4,a.next=7,Z.awrap(e.requestMediaKeySystemAccess(t,u));case 7:return s=a.sent,f=s.getConfiguration(),a.abrupt("return",new ls(s,t,f));case 12:a.prev=12,a.t0=a.catch(4);case 14:return a.next=16,Z.awrap(e.requestMediaKeySystemAccess(t,n));case 16:return h=a.sent,c=h.getConfiguration(),a.abrupt("return",new ls(h,t,c));case 19:case"end":return a.stop()}},null,null,[[4,12]],j)},t.gc=function(){return void 0!==e&&"function"==typeof e.requestMediaKeySystemAccess},t}(),Ts=function(){function t(){}return t.prototype.As=function(t,n){try{return j.resolve(function(t,n){if(!Es())throw new h("Unsupported key system "+t)}(t))}catch(t){return j.reject(t)}},t.gc=function(){return Es()},t}();function Es(){return void 0!==no.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.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"}(_s||(_s={})),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"}(Ss||(Ss={})),function(t){(Ss||(Ss={})).fromCode=function(t){var n=a.floor(t/1e3);if(n in Ss)return n;throw new h("Invalid error code: "+t)}}();var Rs=function(){function t(){}return t.prototype.As=function(t,n){try{return j.resolve(function(t,n){if(t!==Ao)throw new h(t+" is not supported with webkit-prefixed Encrypted Media Extensions.");if(!ks())throw new h("Unsupported key system "+t)}(t))}catch(t){return j.reject(t)}},t.gc=function(){return ks()},t}();function ks(){return void 0!==no.WebKitMediaKeys}var Ns,Os=function(){function t(t){this.Fc=t}return t.prototype.As=function(t,n){var i,e,r;return Z.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,Z.awrap(r.As(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}(),Ps=function(t){function n(n){var i;return(i=t.call(this)||this).kc=void 0,i.Pc=void 0,i.mc=void 0,i.oo=!1,i.Uc=void 0,i.Hc=void 0,i.Vc=void 0,i.Xc=void 0,i.zc=void 0,i.Ha=n,i.mc=new Ho,i.Hc="",i.zc=new Ho,i.Vc=new Vo,i}Lt(n,t);var i=n.prototype;return i.Gc=function(){this.Pc&&(this.Ec("usable"),this.Pc.Vu(void 0),this.Pc=void 0)},i.qc=function(t){var n=new Yo("Unknown CDM error",t.errorCode,t.systemCode);this.Pc?(this.Pc.Xu(n),this.Pc=void 0):this.kc?(this.kc.Xu(n),this.kc=void 0):n.Gu===WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT?this.Ec("output-restricted"):1===n.Wu?this.Ec("expired"):this.Ec("internal-error")},i.Wc=function(t){0!==t.message.byteLength&&(this.kc&&(this.kc.Vu(void 0),this.kc=void 0),this.Ys(new Wo(this,"license-request",Xo(this.Ha,ei(t.message).buffer),t.defaultURL||void 0)))},i.Yc=function(t){this.Xc||(this.Xc=t,this.zc.Vu(t))},i.Ga=function(){return Z.async(function(t){for(;;)switch(t.prev=t.next){case 0:this.throwIfClosed(),this.oo=!0,this.mc.Vu(void 0);case 3:case"end":return t.stop()}},null,this,null,j)},i.qa=function(t,n){return Z.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.throwIfClosed(),this.kc=new Ho,this.Uc=ii(n),t.t0=this.Xc,t.t0){t.next=8;break}return t.next=7,Z.awrap(this.zc.Fu);case 7:t.t0=t.sent;case 8:return t.t0.webkitGenerateKeyRequest(this.Ha,this.Uc),t.next=12,Z.awrap(this.kc.Fu);case 12:case"end":return t.stop()}},null,this,null,j)},i.Wa=function(t){return Z.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.Ya=function(){return Z.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.Qa=function(t){return Z.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(this.throwIfClosed(),this.Pc=new Ho,n.t0=this.Xc,n.t0){n.next=7;break}return n.next=6,Z.awrap(this.zc.Fu);case 6:n.t0=n.sent;case 7:return n.t0.webkitAddKey(this.Ha,ii(t),this.Uc,this.tc),n.next=11,Z.awrap(this.Pc.Fu);case 11:case"end":return n.stop()}},null,this,null,j)},i.throwIfClosed=function(){if(this.oo)throw new h("Already closing or closed.")},i.Ec=function(t){this.Vc.Ru(),this.Vc.Iu(jo,t),this.Ys(new qo(this))},gt(n,[{key:"$a",get:function(){return this.Vc}},{key:"tc",get:function(){return this.Hc},set:function(t){this.Hc=t}},{key:"Za",get:function(){return this.mc.Fu}},{key:"Ja",get:function(){return NaN}}]),n}(ai),As=function(){function t(t,n){var i=this;this.Xc=void 0,this.Qc=pt(),this.jc=[],this.Sc=function(t){var n=i.Kc(t.sessionId);n&&n.Gc()},this.Zc=function(t){var n=i.Kc(t.sessionId);n&&n.qc(t)},this.Jc=function(t){var n=i.Kc(t.sessionId);n&&n.Wc(t)},this.ic=t,this.ec=n}var n=t.prototype;return n.hc=function(t){return this.Xc=t,this.Xc.addEventListener("webkitkeyadded",this.Sc),this.Xc.addEventListener("webkitkeyerror",this.Zc),this.Xc.addEventListener("webkitkeymessage",this.Jc),this.Qc.forEach(function(n,i){return n.Yc(t)}),this.jc.forEach(function(n){return n.Yc(t)}),j.resolve()},n.ac=function(t){return t.removeEventListener("webkitkeyadded",this.Sc),t.removeEventListener("webkitkeyerror",this.Zc),t.removeEventListener("webkitkeymessage",this.Jc),this.Xc=void 0,j.resolve()},n.rc=function(t,n,i){var e;return Z.async(function(t){for(;;)switch(t.prev=t.next){case 0:return e=new Ps(this.ic),this.Xc&&e.Yc(this.Xc),this.jc.push(e),t.abrupt("return",e);case 4:case"end":return t.stop()}},null,this,null,j)},n.uc=function(t){return j.resolve(!1)},n.Kc=function(t){if(t){var n=this.Qc.get(t);return n||((n=this.jc.shift())?(n.tc=t,this.Qc.set(t,n),n):void 0)}},t}(),Ds=function(){function t(t,n){this.ic=t,this.$c=n}var n=t.prototype;return n.vc=function(){return j.resolve(new As(this.ic,this.$c))},n.dc=function(){return this.$c},t}(),xs=function(){function t(){}return t.prototype.As=function(t,n){try{return j.resolve(Cs(t,n))}catch(t){return j.reject(t)}},t.gc=function(){return"undefined"!=typeof HTMLMediaElement&&void 0!==HTMLMediaElement.prototype.webkitGenerateKeyRequest&&void 0!==HTMLMediaElement.prototype.webkitAddKey&&void 0!==HTMLMediaElement.prototype.webkitCancelKeyRequest},t}();function Cs(t,n){if(!xs.gc())throw new h("Unsupported key system "+t);for(var i=0;i<n.length;i++){var e=n[i],r=ws(Bs,zo,t,e);if(r)return new Ds(t,r)}throw new h("Unsupported key system configuration for "+t)}function Bs(t,n){var i=uo();return!(!i||!i.canPlayType||""===i.canPlayType(n,t))}function Fs(){return Ns||(Ns=function(){var t=[];Rs.gc()&&t.push(new Rs);Is.gc()&&t.push(new Is);Ts.gc()&&t.push(new Ts);xs.gc()&&t.push(new xs);return new Os(t)}()),Ns}var Us=function(){function t(){this.tf=pt()}var n=t.prototype;return n.Ru=function(t){this.tf.delete(t)},n.nf=function(){this.tf.clear()},n.Su=function(t){return this.tf.get(t)},n.if=function(t,n){this.tf.set(t,n)},t}(),Ls=function(){function t(){}return t.ef=function(){return t.Wn||(t.Wn=Ms.gc()?new Ms:new Us),t.Wn},t.Ru=function(n){t.ef().Ru(n)},t.nf=function(){t.ef().nf()},t.Su=function(n){return t.ef().Su(n)},t.if=function(n,i){t.ef().if(n,i)},t}();Ls.Wn=void 0;var Ms=function(n){function i(){return n.apply(this,arguments)||this}Lt(i,n),i.gc=function(){try{return t.sessionStorage.setItem("foobar","foobar"),t.sessionStorage.removeItem("foobar"),!0}catch(t){return!1}};var e=i.prototype;return e.Ru=function(n){t.sessionStorage.removeItem(n)},e.nf=function(){t.sessionStorage.clear()},e.Su=function(n){return t.sessionStorage[n]},e.if=function(n,i){t.sessionStorage[n]=i},i}(Ls);var zs=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 qs(t,n,e){var r=zs([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 Ws,js;!function(t){t.rf="sf",t.uf="hf",t.cf="contentprotectionerror",t.vf="contentprotectionsuccess",t.df="currentsourcechange",t.lf="destroy",t._f="durationchange",t.wf="emptied",t.wu="encrypted",t.gf="ended",t.mf="yf",t.kf="loadstart",t.pf="manifestupdate",t.bf="nosupportedrepresentationfound",t.Af="offline",t.Tf="online",t.Sf="pause",t.Ef="play",t.If="progress",t.Rf="ratechange",t.Nf="representationchange",t.Df="resize",t.Cf="seeked",t.Pf="seeking",t.Of="segmentnotfound",t.Bf="Lf",t.xf="Mf",t.Ff="sourcechange",t.Uf="timeupdate",t.Hf="volumechange",t.Vf="Xf",t.zf="metricschange"}(Ws||(Ws={})),function(t){t.Gf="arraybuffer",t.qf="json",t.Wf="stream",t.Jn="text"}(js||(js={}));var Vs=function(){function t(n){var i=this;this.Kr=void 0,this.Kr={},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=Hs(i),e=Xs(e);var r=i.toLowerCase();if(this.Kr.hasOwnProperty(r)){var o=this.Kr[r],u=o[1];o[1]=u?u+", "+e:e}else this.Kr[r]=[i,e]},n.delete=function(t){var n=Hs(t).toLowerCase();delete this.Kr[n]},n.get=function(t){var n=Hs(t).toLowerCase();return this.Kr.hasOwnProperty(n)?this.Kr[n][1]:null},n.has=function(t){var n=Hs(t).toLowerCase();return this.Kr.hasOwnProperty(n)},n.set=function(t,n){var i=t,e=(i=Hs(i)).toLowerCase();this.Kr[e]=[i,Xs(n)]},n.forEach=function(t,n){for(var i in this.Kr)this.Kr.hasOwnProperty(i)&&t.call(n,this.Kr[i][1],i,this)},n.asList=function(){var t=[];for(var n in this.Kr)if(this.Kr.hasOwnProperty(n)){var i=this.Kr[n],e=i[0],r=i[1];t.push([e,r])}return t},n.Yf=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.jf=function(t){var n=this;t.forEach(function(t,i){n.set(i,t)})},t}();function Hs(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 Xs(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}var Gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:function(t){return"Symbol("+t+")"};function Ys(){}var Ks=Number.isNaN||function(t){return t!=t},$s=Ys;function Js(t){return"object"==typeof t&&null!==t||"function"==typeof t}function Zs(t){return t.slice()}function Qs(t){return!1!==function(t){if("number"!=typeof t)return!1;if(Ks(t))return!1;if(t<0)return!1;return!0}(t)&&t!==1/0}function tf(t,n,i){if("function"!=typeof t)throw new h("Argument is not a function");return Function.prototype.apply.call(t,n,i)}function nf(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 rf(r,t,e)};case 1:return function(n){var i=[n].concat(e);return rf(r,t,i)}}}return function(){return df(void 0)}}function ef(t,n,i){var e=t[n];if(void 0!==e)return tf(e,t,i)}function rf(t,n,i){try{return df(tf(t,n,i))}catch(t){return lf(t)}}function of(t){return t}function uf(t){if(t=Number(t),Ks(t)||t<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return t}function sf(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 ff=j,hf=j.prototype.then,cf=j.resolve.bind(ff),af=j.reject.bind(ff);function vf(t){return new ff(t)}function df(t){return cf(t)}function lf(t){return af(t)}function wf(t,n,i){return hf.call(t,n,i)}function bf(t,n,i){wf(wf(t,n,i),void 0,$s)}function gf(t,n){bf(t,n)}function mf(t,n){bf(t,void 0,n)}function pf(t,n,i){return wf(t,n,i)}function yf(t){wf(t,void 0,$s)}var _f=function(){function t(){this.Kf=0,this.Zf=0,this.Ee={Jf:[],$f:void 0},this.tv=this.Ee,this.Kf=0,this.Zf=0}return c.defineProperty(t.prototype,"length",{get:function(){return this.Zf},enumerable:!0,configurable:!0}),t.prototype.push=function(t){var n=this.tv,i=n;16383===n.Jf.length&&(i={Jf:[],$f:void 0}),n.Jf.push(t),i!==n&&(this.tv=i,n.$f=i),++this.Zf},t.prototype.shift=function(){var t=this.Ee,n=t,i=this.Kf,e=i+1,r=t.Jf,o=r[i];return 16384===e&&(n=t.$f,e=0),--this.Zf,this.Kf=e,t!==n&&(this.Ee=n),r[i]=void 0,o},t.prototype.forEach=function(t){for(var n=this.Kf,i=this.Ee,e=i.Jf;!(n===e.length&&void 0===i.$f||n===e.length&&(n=0,0===(e=(i=i.$f).Jf).length));)t(e[n]),++n},t.prototype.peek=function(){var t=this.Ee,n=this.Kf;return t.Jf[n]},t}();function Sf(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 If(t,n){t.ev=!0,t.rv=n,n.uv=t,"readable"===n.me?kf(t):"closed"===n.me?function(t){kf(t),Pf(t)}(t):Nf(t,n.ov)}function Tf(t,n){return Cc(t.rv,n)}function Ef(t){"readable"===t.rv.me?Of(t,new h("Reader was released and can no longer be used to monitor the stream's closedness")):function(t,n){Nf(t,n)}(t,new h("Reader was released and can no longer be used to monitor the stream's closedness")),t.rv.uv=void 0,t.rv=void 0}function Rf(t){return new h("Cannot "+t+" a stream using a released reader")}function kf(t){t.La=vf(function(n,i){t.hv=n,t.fv=i})}function Nf(t,n){kf(t),Of(t,n)}function Of(t,n){yf(t.La),t.fv(n),t.hv=void 0,t.fv=void 0}function Pf(t){t.hv(void 0),t.hv=void 0,t.fv=void 0}var Af=Gs("[[CancelSteps]]"),Df=Gs("[[PullSteps]]");function xf(t,n){void 0===n&&(n=!1);var i=new zf(t);return i.ev=n,i}function Cf(t){return vf(function(n,i){var e={Uu:n,Hu:i};t.uv.vv.push(e)})}function Bf(t,n,i){var e=t.uv;e.vv.shift().Uu(Sf(n,i,e.ev))}function Ff(t){return t.uv.vv.length}function Uf(t){var n=t.uv;return void 0!==n&&!!qf(n)}var Lf,Mf,zf=function(){function t(t){if(!1===Dc(t))throw new h("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===xc(t))throw new h("This stream has already been locked for exclusive reading by another reader");If(this,t),this.vv=new _f}return c.defineProperty(t.prototype,"closed",{get:function(){return qf(this)?this.La:lf(jf("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return qf(this)?void 0===this.rv?lf(Rf("cancel")):Tf(this,t):lf(jf("cancel"))},t.prototype.read=function(){return qf(this)?void 0===this.rv?lf(Rf("read from")):Wf(this):lf(jf("read"))},t.prototype.releaseLock=function(){if(!qf(this))throw jf("releaseLock");if(void 0!==this.rv){if(this.vv.length>0)throw new h("Tried to release a reader lock when that reader has pending read() calls un-settled");Ef(this)}},t}();function qf(t){return!!Js(t)&&!!c.prototype.hasOwnProperty.call(t,"vv")}function Wf(t){var n=t.rv;return n._v=!0,"closed"===n.me?df(Sf(void 0,!0,t.ev)):"errored"===n.me?lf(n.ov):n.wv[Df]()}function jf(t){return new h("ReadableStreamDefaultReader.prototype."+t+" can only be used on a ReadableStreamDefaultReader")}"symbol"==typeof Gs.asyncIterator&&((Lf={})[Gs.asyncIterator]=function(){return this},Mf=Lf,c.defineProperty(Mf,Gs.asyncIterator,{enumerable:!1}));var Vf={next:function(){if(!1===Hf(this))return lf(Xf("next"));var t=this.mv;return void 0===t.rv?lf(Rf("iterate")):pf(Wf(t),function(n){var i=n.done;return i&&Ef(t),Sf(n.value,i,!0)})},return:function(t){if(!1===Hf(this))return lf(Xf("next"));var n=this.mv;if(void 0===n.rv)return lf(Rf("finish iterating"));if(n.vv.length>0)return lf(new h("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this.yv){var i=Tf(n,t);return Ef(n),pf(i,function(){return Sf(t,!0,!0)})}return Ef(n),df(Sf(t,!0,!0))}};function Hf(t){return!!Js(t)&&!!c.prototype.hasOwnProperty.call(t,"mv")}function Xf(t){return new h("ReadableStreamAsyncIterator."+t+" can only be used on a ReadableSteamAsyncIterator")}function Gf(t){var n=t.pv.shift();return t.bv-=n.size,t.bv<0&&(t.bv=0),n.value}function Yf(t,n,i){if(!Qs(i=Number(i)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");t.pv.push({value:n,size:i}),t.bv+=i}function Kf(t){t.pv=new _f,t.bv=0}void 0!==Mf&&c.setPrototypeOf(Vf,Mf),c.defineProperty(Vf,"next",{enumerable:!1}),c.defineProperty(Vf,"return",{enumerable:!1});var $f=Gs("[[AbortSteps]]"),Jf=Gs("[[ErrorSteps]]"),Zf=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),th(this);var i=n.size,e=n.highWaterMark;if(void 0!==t.type)throw new RangeError("Invalid type is specified");var r=sf(i);void 0===e&&(e=1),function(t,n,i,e){var r=c.create(mh.prototype);var o=nf(n,"write",1,[r]),u=nf(n,"close",0,[]),s=nf(n,"abort",1,[]);ph(t,r,function(){return ef(n,"start",[r])},o,u,s,i,e)}(this,t,e=uf(e),r)}return c.defineProperty(t.prototype,"locked",{get:function(){if(!1===nh(this))throw Rh("locked");return ih(this)},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===nh(this)?lf(Rh("abort")):!0===ih(this)?lf(new h("Cannot abort a stream that already has a writer")):eh(this,t)},t.prototype.close=function(){return!1===nh(this)?lf(Rh("close")):!0===ih(this)?lf(new h("Cannot close a stream that already has a writer")):!0===fh(this)?lf(new h("Cannot close an already-closing stream")):rh(this)},t.prototype.getWriter=function(){if(!1===nh(this))throw Rh("getWriter");return Qf(this)},t}();function Qf(t){return new ah(t)}function th(t){t.me="writable",t.ov=void 0,t.mo=void 0,t.Av=void 0,t.Tv=new _f,t.Sv=void 0,t.Ev=void 0,t.Iv=void 0,t.Rv=void 0,t.Nv=!1}function nh(t){return!!Js(t)&&!!c.prototype.hasOwnProperty.call(t,"Av")}function ih(t){return void 0!==t.mo}function eh(t,n){var i=t.me;if("closed"===i||"errored"===i)return df(void 0);if(void 0!==t.Rv)return t.Rv.Dv;var e=!1;"erroring"===i&&(e=!0,n=void 0);var r=vf(function(i,r){t.Rv={Dv:void 0,Uu:i,Hu:r,Cv:n,Pv:e}});return t.Rv.Dv=r,!1===e&&uh(t,n),r}function rh(t){var n=t.me;if("closed"===n||"errored"===n)return lf(new h("The stream (in "+n+" state) is not in the writable state and cannot be closed"));var i,e=vf(function(n,i){var e={Uu:n,Hu:i};t.Ev=e}),r=t.mo;return void 0!==r&&!0===t.Nv&&"writable"===n&&Uh(r),Yf(i=t.Av,"close",0),Sh(i),e}function oh(t,n){"writable"!==t.me?sh(t):uh(t,n)}function uh(t,n){var i=t.Av;t.me="erroring",t.ov=n;var e=t.mo;void 0!==e&&wh(e,n),!1===function(t){if(void 0===t.Sv&&void 0===t.Iv)return!1;return!0}(t)&&!0===i.Ov&&sh(t)}function sh(t){t.me="errored",t.Av[Jf]();var n=t.ov;if(t.Tv.forEach(function(t){t.Hu(n)}),t.Tv=new _f,void 0!==t.Rv){var i=t.Rv;if(t.Rv=void 0,!0===i.Pv)return i.Hu(n),void hh(t);bf(t.Av[$f](i.Cv),function(){i.Uu(),hh(t)},function(n){i.Hu(n),hh(t)})}else hh(t)}function fh(t){return void 0!==t.Ev||void 0!==t.Iv}function hh(t){void 0!==t.Ev&&(t.Ev.Hu(t.ov),t.Ev=void 0);var n=t.mo;void 0!==n&&Ah(n,t.ov)}function ch(t,n){var i=t.mo;void 0!==i&&n!==t.Nv&&(!0===n?function(t){xh(t)}(i):Uh(i)),t.Nv=n}var ah=function(){function t(t){if(!1===nh(t))throw new h("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===ih(t))throw new h("This stream has already been locked for exclusive writing by another writer");this.Bv=t,t.mo=this;var n,i=t.me;if("writable"===i)!1===fh(t)&&!0===t.Nv?xh(this):Bh(this),Oh(this);else if("erroring"===i)Ch(this,t.ov),Oh(this);else if("closed"===i)Bh(this),Oh(n=this),Dh(n);else{var e=t.ov;Ch(this,e),Ph(this,e)}}return c.defineProperty(t.prototype,"closed",{get:function(){return!1===vh(this)?lf(kh("closed")):this.La},enumerable:!0,configurable:!0}),c.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===vh(this))throw kh("desiredSize");if(void 0===this.Bv)throw Nh("desiredSize");return function(t){var n=t.Bv,i=n.me;if("errored"===i||"erroring"===i)return null;if("closed"===i)return 0;return _h(n.Av)}(this)},enumerable:!0,configurable:!0}),c.defineProperty(t.prototype,"ready",{get:function(){return!1===vh(this)?lf(kh("ready")):this.Lv},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){return!1===vh(this)?lf(kh("abort")):void 0===this.Bv?lf(Nh("abort")):function(t,n){return eh(t.Bv,n)}(this,t)},t.prototype.close=function(){if(!1===vh(this))return lf(kh("close"));var t=this.Bv;return void 0===t?lf(Nh("close")):!0===fh(t)?lf(new h("Cannot close an already-closing stream")):dh(this)},t.prototype.releaseLock=function(){if(!1===vh(this))throw kh("releaseLock");void 0!==this.Bv&&bh(this)},t.prototype.write=function(t){return!1===vh(this)?lf(kh("write")):void 0===this.Bv?lf(Nh("write to")):gh(this,t)},t}();function vh(t){return!!Js(t)&&!!c.prototype.hasOwnProperty.call(t,"Bv")}function dh(t){return rh(t.Bv)}function lh(t,n){"pending"===t.xv?Ah(t,n):function(t,n){Ph(t,n)}(t,n)}function wh(t,n){"pending"===t.Mv?Fh(t,n):function(t,n){Ch(t,n)}(t,n)}function bh(t){var n=t.Bv,i=new h("Writer was released and can no longer be used to monitor the stream's closedness");wh(t,i),lh(t,i),n.mo=void 0,t.Bv=void 0}function gh(t,n){var i=t.Bv,e=i.Av,r=function(t,n){try{return t.Fv(n)}catch(n){return Ih(t,n),1}}(e,n);if(i!==t.Bv)return lf(Nh("write to"));var o=i.me;if("errored"===o)return lf(i.ov);if(!0===fh(i)||"closed"===o)return lf(new h("The stream is closing or closed and cannot be written to"));if("erroring"===o)return lf(i.ov);var u=function(t){return vf(function(n,i){var e={Uu:n,Hu:i};t.Tv.push(e)})}(i);return function(t,n,i){var e={chunk:n};try{Yf(t,e,i)}catch(n){return void Ih(t,n)}var r=t.Uv;if(!1===fh(r)&&"writable"===r.me){var o=Th(t);ch(r,o)}Sh(t)}(e,n,r),u}var mh=function(){function t(){throw new h("WritableStreamDefaultController cannot be constructed explicitly")}return t.prototype.error=function(t){if(!1===function(t){if(!Js(t))return!1;if(!c.prototype.hasOwnProperty.call(t,"Uv"))return!1;return!0}(this))throw new h("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this.Uv.me&&Eh(this,t)},t.prototype[$f]=function(t){var n=this.Hv(t);return yh(this),n},t.prototype[Jf]=function(){Kf(this)},t}();function ph(t,n,i,e,r,o,u,s){n.Uv=t,t.Av=n,n.pv=void 0,n.bv=void 0,Kf(n),n.Ov=!1,n.Fv=s,n.Vv=u,n.Xv=e,n.zv=r,n.Hv=o;var f=Th(n);ch(t,f),bf(df(i()),function(){n.Ov=!0,Sh(n)},function(i){n.Ov=!0,oh(t,i)})}function yh(t){t.Xv=void 0,t.zv=void 0,t.Hv=void 0,t.Fv=void 0}function _h(t){return t.Vv-t.bv}function Sh(t){var n=t.Uv;if(!1!==t.Ov&&void 0===n.Sv)if("erroring"!==n.me){if(0!==t.pv.length){var i=t.pv.peek().value;"close"===i?function(t){var n=t.Uv;(function(t){t.Iv=t.Ev,t.Ev=void 0})(n),Gf(t);var i=t.zv();yh(t),bf(i,function(){!function(t){t.Iv.Uu(void 0),t.Iv=void 0,"erroring"===t.me&&(t.ov=void 0,void 0!==t.Rv&&(t.Rv.Uu(),t.Rv=void 0)),t.me="closed";var n=t.mo;void 0!==n&&Dh(n)}(n)},function(t){!function(t,n){t.Iv.Hu(n),t.Iv=void 0,void 0!==t.Rv&&(t.Rv.Hu(n),t.Rv=void 0),oh(t,n)}(n,t)})}(t):function(t,n){var i=t.Uv;(function(t){t.Sv=t.Tv.shift()})(i),bf(t.Xv(n),function(){!function(t){t.Sv.Uu(void 0),t.Sv=void 0}(i);var n=i.me;if(Gf(t),!1===fh(i)&&"writable"===n){var e=Th(t);ch(i,e)}Sh(t)},function(n){"writable"===i.me&&yh(t),function(t,n){t.Sv.Hu(n),t.Sv=void 0,oh(t,n)}(i,n)})}(t,i.chunk)}}else sh(n)}function Ih(t,n){"writable"===t.Uv.me&&Eh(t,n)}function Th(t){return _h(t)<=0}function Eh(t,n){var i=t.Uv;yh(t),uh(i,n)}function Rh(t){return new h("WritableStream.prototype."+t+" can only be used on a WritableStream")}function kh(t){return new h("WritableStreamDefaultWriter.prototype."+t+" can only be used on a WritableStreamDefaultWriter")}function Nh(t){return new h("Cannot "+t+" a stream using a released writer")}function Oh(t){t.La=vf(function(n,i){t.hv=n,t.fv=i,t.xv="pending"})}function Ph(t,n){Oh(t),Ah(t,n)}function Ah(t,n){yf(t.La),t.fv(n),t.hv=void 0,t.fv=void 0,t.xv="rejected"}function Dh(t){t.hv(void 0),t.hv=void 0,t.fv=void 0,t.xv="resolved"}function xh(t){t.Lv=vf(function(n,i){t.Gv=n,t.qv=i}),t.Mv="pending"}function Ch(t,n){xh(t),Fh(t,n)}function Bh(t){xh(t),Uh(t)}function Fh(t,n){yf(t.Lv),t.qv(n),t.Gv=void 0,t.qv=void 0,t.Mv="rejected"}function Uh(t){t.Gv(void 0),t.Gv=void 0,t.qv=void 0,t.Mv="fulfilled"}function Lh(t){if("object"!=typeof t||null===t)return!1;try{return"boolean"==typeof t.aborted}catch(t){return!1}}var Mh="undefined"!=typeof DOMException?DOMException:void 0;var zh,qh=function(t){if("function"!=typeof t&&"object"!=typeof t)return!1;try{return new t,!0}catch(t){return!1}}(Mh)?Mh:((zh=function(t,n){this.message=t||"",this.name=n||"Error",f.captureStackTrace&&f.captureStackTrace(this,this.constructor)}).prototype=c.create(f.prototype),c.defineProperty(zh.prototype,"constructor",{value:zh,writable:!0,configurable:!0}),zh);function Wh(t,n,i,e,r,o){var u=xf(t),s=Qf(n);t._v=!0;var f=!1,c=df(void 0);return vf(function(a,v){var d,l,w,b;if(void 0!==o){if(d=function(){var i=new qh("Aborted","AbortError"),o=[];!1===e&&o.push(function(){return"writable"===n.me?eh(n,i):df(void 0)}),!1===r&&o.push(function(){return"readable"===t.me?Cc(t,i):df(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.La,function(t){!1===e?y(function(){return eh(n,t)},!0,t):_(!0,t)}),p(n,s.La,function(n){!1===r?y(function(){return Cc(t,n)},!0,n):_(!0,n)}),l=t,w=u.La,b=function(){!1===i?y(function(){return function(t){var n=t.Bv,i=n.me;return!0===fh(n)||"closed"===i?df(void 0):"errored"===i?lf(n.ov):dh(t)}(s)}):_()},"closed"===l.me?b():gf(w,b),!0===fh(n)||"closed"===n.me){var g=new h("the destination writable stream closed before all data could be piped to it");!1===r?y(function(){return Cc(t,g)},!0,g):_(!0,g)}function m(){var t=c;return wf(c,function(){return t!==c?m():void 0})}function p(t,n,i){"errored"===t.me?i(t.ov):mf(n,i)}function y(t,i,e){function r(){bf(t(),function(){return S(i,e)},function(t){return S(!0,t)})}!0!==f&&(f=!0,"writable"===n.me&&!1===fh(n)?gf(m(),r):r())}function _(t,i){!0!==f&&(f=!0,"writable"===n.me&&!1===fh(n)?gf(m(),function(){return S(t,i)}):S(t,i))}function S(t,n){bh(s),Ef(u),void 0!==o&&o.removeEventListener("abort",d),t?v(n):a(void 0)}yf(vf(function(t,n){!function i(e){e?t():wf(!0===f?df(!0):wf(s.Lv,function(){return wf(Wf(u),function(t){return!0===t.done||(c=wf(gh(s,t.value),void 0,Ys),!1)})}),i,n)}(!1)}))})}var jh=function(){function t(){throw new h}return c.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Vh(this))throw tc("desiredSize");return Jh(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===Vh(this))throw tc("close");if(!1===Zh(this))throw new h("The stream is not in a state that permits close");Yh(this)},t.prototype.enqueue=function(t){if(!1===Vh(this))throw tc("enqueue");if(!1===Zh(this))throw new h("The stream is not in a state that permits enqueue");return Kh(this,t)},t.prototype.error=function(t){if(!1===Vh(this))throw tc("error");$h(this,t)},t.prototype[Af]=function(t){Kf(this);var n=this.Wv(t);return Gh(this),n},t.prototype[Df]=function(){var t=this.Yv;if(this.pv.length>0){var n=Gf(this);return!0===this.Qv&&0===this.pv.length?(Gh(this),Bc(t)):Hh(this),df(Sf(n,!1,t.uv.ev))}var i=Cf(t);return Hh(this),i},t}();function Vh(t){return!!Js(t)&&!!c.prototype.hasOwnProperty.call(t,"Yv")}function Hh(t){!1!==Xh(t)&&(!0!==t.Kv?(t.Kv=!0,bf(t.Zv(),function(){t.Kv=!1,!0===t.Jv&&(t.Jv=!1,Hh(t))},function(n){$h(t,n)})):t.Jv=!0)}function Xh(t){var n=t.Yv;return!1!==Zh(t)&&(!1!==t.Ov&&(!0===xc(n)&&Ff(n)>0||Jh(t)>0))}function Gh(t){t.Zv=void 0,t.Wv=void 0,t.Fv=void 0}function Yh(t){var n=t.Yv;t.Qv=!0,0===t.pv.length&&(Gh(t),Bc(n))}function Kh(t,n){var i=t.Yv;if(!0===xc(i)&&Ff(i)>0)Bf(i,n,!1);else{var e=void 0;try{e=t.Fv(n)}catch(n){throw $h(t,n),n}try{Yf(t,n,e)}catch(n){throw $h(t,n),n}}Hh(t)}function $h(t,n){var i=t.Yv;"readable"===i.me&&(Kf(t),Gh(t),Fc(i,n))}function Jh(t){var n=t.Yv.me;return"errored"===n?null:"closed"===n?0:t.Vv-t.bv}function Zh(t){var n=t.Yv.me;return!1===t.Qv&&"readable"===n}function Qh(t,n,i,e,r,o,u){n.Yv=t,n.pv=void 0,n.bv=void 0,Kf(n),n.Ov=!1,n.Qv=!1,n.Jv=!1,n.Kv=!1,n.Fv=u,n.Vv=o,n.Zv=e,n.Wv=r,t.wv=n,bf(df(i()),function(){n.Ov=!0,Hh(n)},function(t){$h(n,t)})}function tc(t){return new h("ReadableStreamDefaultController.prototype."+t+" can only be used on a ReadableStreamDefaultController")}var nc=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&a.floor(t)===t},ic=function(){function t(){throw new h("ReadableStreamBYOBRequest cannot be used directly")}return c.defineProperty(t.prototype,"view",{get:function(){if(!1===oc(this))throw _c("view");return this.$v},enumerable:!0,configurable:!0}),t.prototype.respond=function(t){if(!1===oc(this))throw _c("respond");if(void 0===this.td)throw new h("This BYOB request has been invalidated");this.$v.buffer,function(t,n){if(!1===Qs(n=Number(n)))throw new RangeError("bytesWritten must be a finite");wc(t,n)}(this.td,t)},t.prototype.respondWithNewView=function(t){if(!1===oc(this))throw _c("respond");if(void 0===this.td)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.ed.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,wc(t,n.byteLength)}(this.td,t)},t}(),ec=function(){function t(){throw new h("ReadableByteStreamController constructor cannot be used directly")}return c.defineProperty(t.prototype,"byobRequest",{get:function(){if(!1===rc(this))throw Sc("byobRequest");if(void 0===this.rd&&this.ed.length>0){var t=this.ed.peek(),n=new w(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),i=c.create(ic.prototype);!function(t,n,i){t.td=n,t.$v=i}(i,this,n),this.rd=i}return this.rd},enumerable:!0,configurable:!0}),c.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===rc(this))throw Sc("desiredSize");return pc(this)},enumerable:!0,configurable:!0}),t.prototype.close=function(){if(!1===rc(this))throw Sc("close");if(!0===this.Qv)throw new h("The stream has already been closed; do not close it again!");var t=this.ud.me;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.ud;if(t.bv>0)return void(t.Qv=!0);if(t.ed.length>0){var i=t.ed.peek();if(i.bytesFilled>0){var e=new h("Insufficient bytes to fill elements in the given buffer");throw mc(t,e),e}}gc(t),Bc(n)}(this)},t.prototype.enqueue=function(t){if(!1===rc(this))throw Sc("enqueue");if(!0===this.Qv)throw new h("stream is closed or draining");var n=this.ud.me;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.ud,e=n.buffer,r=n.byteOffset,o=n.byteLength,u=of(e);if(!0===Uf(i))if(0===Ff(i))hc(t,u,r,o);else{var s=new w(u,r,o);Bf(i,s,!1)}else!0===Ec(i)?(hc(t,u,r,o),lc(t)):hc(t,u,r,o);uc(t)}(this,t)},t.prototype.error=function(t){if(!1===rc(this))throw Sc("error");mc(this,t)},t.prototype[Af]=function(t){this.ed.length>0&&(this.ed.peek().bytesFilled=0);Kf(this);var n=this.Wv(t);return gc(this),n},t.prototype[Df]=function(){var t=this.ud;if(this.bv>0){var n=this.pv.shift();this.bv-=n.byteLength,vc(this);var i=void 0;try{i=new w(n.buffer,n.byteOffset,n.byteLength)}catch(t){return lf(t)}return df(Sf(i,!1,t.uv.ev))}var e=this.od;if(void 0!==e){var r=void 0;try{r=new ArrayBuffer(e)}catch(t){return lf(t)}var o={buffer:r,byteOffset:0,byteLength:e,bytesFilled:0,elementSize:1,ctor:w,readerType:"default"};this.ed.push(o)}var u=Cf(t);return uc(this),u},t}();function rc(t){return!!Js(t)&&!!c.prototype.hasOwnProperty.call(t,"ud")}function oc(t){return!!Js(t)&&!!c.prototype.hasOwnProperty.call(t,"td")}function uc(t){!1!==function(t){var n=t.ud;if("readable"!==n.me)return!1;if(!0===t.Qv)return!1;if(!1===t.Ov)return!1;if(!0===Uf(n)&&Ff(n)>0)return!0;if(!0===Ec(n)&&Tc(n)>0)return!0;if(pc(t)>0)return!0;return!1}(t)&&(!0!==t.Kv?(t.Kv=!0,bf(t.Zv(),function(){t.Kv=!1,!0===t.Jv&&(t.Jv=!1,uc(t))},function(n){mc(t,n)})):t.Jv=!0)}function sc(t,n){var i=!1;"closed"===t.me&&(i=!0);var e=fc(n);"default"===n.readerType?Bf(t,e,i):function(t,n,i){var e=t.uv;e.hd.shift().Uu(Sf(n,i,e.ev))}(t,e,i)}function fc(t){var n=t.bytesFilled,i=t.elementSize;return new t.ctor(t.buffer,t.byteOffset,n/i)}function hc(t,n,i,e){t.pv.push({buffer:n,byteOffset:i,byteLength:e}),t.bv+=e}function cc(t,n){var i=n.elementSize,e=n.bytesFilled-n.bytesFilled%i,r=a.min(t.bv,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.pv;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.bv-=m,ac(t,m,n),s-=m}return f}function ac(t,n,i){dc(t),i.bytesFilled+=n}function vc(t){0===t.bv&&!0===t.Qv?(gc(t),Bc(t.ud)):uc(t)}function dc(t){void 0!==t.rd&&(t.rd.td=void 0,t.rd.$v=void 0,t.rd=void 0)}function lc(t){for(;t.ed.length>0;){if(0===t.bv)return;var n=t.ed.peek();!0===cc(t,n)&&(bc(t),sc(t.ud,n))}}function wc(t,n){var i=t.ed.peek();if("closed"===t.ud.me){if(0!==n)throw new h("bytesWritten must be 0 when calling respond() on a closed stream");!function(t,n){n.buffer=of(n.buffer);var i=t.ud;if(!0===Ec(i))for(;Tc(i)>0;)sc(i,bc(t))}(t,i)}else!function(t,n,i){if(i.bytesFilled+n>i.byteLength)throw new RangeError("bytesWritten out of range");if(ac(t,n,i),!(i.bytesFilled<i.elementSize)){bc(t);var e=i.bytesFilled%i.elementSize;if(e>0){var r=i.byteOffset+i.bytesFilled,o=i.buffer.slice(r-e,r);hc(t,o,0,o.byteLength)}i.buffer=of(i.buffer),i.bytesFilled-=e,sc(t.ud,i),lc(t)}}(t,n,i);uc(t)}function bc(t){var n=t.ed.shift();return dc(t),n}function gc(t){t.Zv=void 0,t.Wv=void 0}function mc(t,n){var i=t.ud;"readable"===i.me&&(!function(t){dc(t),t.ed=new _f}(t),Kf(t),gc(t),Fc(i,n))}function pc(t){var n=t.ud.me;return"errored"===n?null:"closed"===n?0:t.Vv-t.bv}function yc(t,n,i){var e=c.create(ec.prototype);var r=nf(n,"pull",0,[e]),o=nf(n,"cancel",1,[]),u=n.autoAllocateChunkSize;if(void 0!==u&&(u=Number(u),!1===nc(u)||u<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(t,n,i,e,r,o,u){n.ud=t,n.Jv=!1,n.Kv=!1,n.rd=void 0,n.pv=n.bv=void 0,Kf(n),n.Qv=!1,n.Ov=!1,n.Vv=uf(o),n.Zv=e,n.Wv=r,n.od=u,n.ed=new _f,t.wv=n,bf(df(i()),function(){n.Ov=!0,uc(n)},function(t){mc(n,t)})}(t,e,function(){return ef(n,"start",[e])},r,o,i,u)}function _c(t){return new h("ReadableStreamBYOBRequest.prototype."+t+" can only be used on a ReadableStreamBYOBRequest")}function Sc(t){return new h("ReadableByteStreamController.prototype."+t+" can only be used on a ReadableByteStreamController")}function Ic(t){return vf(function(n,i){var e={Uu:n,Hu:i};t.uv.hd.push(e)})}function Tc(t){return t.uv.hd.length}function Ec(t){var n=t.uv;return void 0!==n&&!!kc(n)}var Rc=function(){function t(t){if(!Dc(t))throw new h("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===rc(t.wv))throw new h("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(xc(t))throw new h("This stream has already been locked for exclusive reading by another reader");If(this,t),this.hd=new _f}return c.defineProperty(t.prototype,"closed",{get:function(){return kc(this)?this.La:lf(Nc("closed"))},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return kc(this)?void 0===this.rv?lf(Rf("cancel")):Tf(this,t):lf(Nc("cancel"))},t.prototype.read=function(t){return kc(this)?void 0===this.rv?lf(Rf("read from")):ArrayBuffer.isView(t)?(t.buffer,0===t.byteLength?lf(new h("view must have non-zero byteLength")):function(t,n){var i=t.rv;if(i._v=!0,"errored"===i.me)return lf(i.ov);return function(t,n){var i=t.ud,e=1;n.constructor!==DataView&&(e=n.constructor.BYTES_PER_ELEMENT);var r=n.constructor,o={buffer:of(n.buffer),byteOffset:n.byteOffset,byteLength:n.byteLength,bytesFilled:0,elementSize:e,ctor:r,readerType:"byob"};if(t.ed.length>0)return t.ed.push(o),Ic(i);if("closed"===i.me)return df(Sf(new r(o.buffer,o.byteOffset,0),!0,i.uv.ev));if(t.bv>0){if(!0===cc(t,o)){var u=fc(o);return vc(t),df(Sf(u,!1,i.uv.ev))}if(!0===t.Qv){var s=new h("Insufficient bytes to fill elements in the given buffer");return mc(t,s),lf(s)}}t.ed.push(o);var f=Ic(i);return uc(t),f}(i.wv,n)}(this,t)):lf(new h("view must be an array buffer view")):lf(Nc("read"))},t.prototype.releaseLock=function(){if(!kc(this))throw Nc("releaseLock");if(void 0!==this.rv){if(this.hd.length>0)throw new h("Tried to release a reader lock when that reader has pending read() calls un-settled");Ef(this)}},t}();function kc(t){return!!Js(t)&&!!c.prototype.hasOwnProperty.call(t,"hd")}function Nc(t){return new h("ReadableStreamBYOBReader.prototype."+t+" can only be used on a ReadableStreamBYOBReader")}var Oc=function(){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={}),Ac(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),yc(this,t,e=uf(e))}else{if(void 0!==r)throw new RangeError("Invalid type is specified");var o=sf(i);void 0===e&&(e=1),function(t,n,i,e){var r=c.create(jh.prototype),o=nf(n,"pull",0,[r]),u=nf(n,"cancel",1,[]);Qh(t,r,function(){return ef(n,"start",[r])},o,u,i,e)}(this,t,e=uf(e),o)}}return c.defineProperty(t.prototype,"locked",{get:function(){if(!1===Dc(this))throw Uc("locked");return xc(this)},enumerable:!0,configurable:!0}),t.prototype.cancel=function(t){return!1===Dc(this)?lf(Uc("cancel")):!0===xc(this)?lf(new h("Cannot cancel a stream that already has a reader")):Cc(this,t)},t.prototype.getReader=function(t){var n=(void 0===t?{}:t).mode;if(!1===Dc(this))throw Uc("getReader");if(void 0===n)return xf(this,!0);if("byob"===(n=String(n)))return function(t,n){void 0===n&&(n=!1);var i=new Rc(t);return i.ev=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===Dc(this))throw Uc("pipeThrough");if(!1===nh(i))throw new h("writable argument to pipeThrough must be a WritableStream");if(!1===Dc(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&&!Lh(f))throw new h("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===xc(this))throw new h("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===ih(i))throw new h("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return yf(Wh(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===Dc(this)?lf(Uc("pipeTo")):!1===nh(t)?lf(new h("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(e=Boolean(e),r=Boolean(r),o=Boolean(o),void 0===u||Lh(u)?!0===xc(this)?lf(new h("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===ih(t)?lf(new h("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Wh(this,t,e,r,o,u):lf(new h("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))},t.prototype.tee=function(){if(!1===Dc(this))throw Uc("tee");var t=function(t,n){var i,e,r,o,u,s=xf(t),f=!1,h=!1,c=!1,a=vf(function(t){u=t});function v(){return!0===f?df(void 0):(f=!0,yf(pf(Wf(s),function(t){if(f=!1,!0===t.done)return!1===h&&Yh(r.wv),void(!1===c&&Yh(o.wv));var n=t.value,i=n,e=n;!1===h&&Kh(r.wv,i),!1===c&&Kh(o.wv,e)})),df(void 0))}function d(){}return r=Pc(d,v,function(n){if(h=!0,i=n,!0===c){var r=Zs([i,e]),o=Cc(t,r);u(o)}return a}),o=Pc(d,v,function(n){if(c=!0,e=n,!0===h){var r=Zs([i,e]),o=Cc(t,r);u(o)}return a}),mf(s.La,function(t){$h(r.wv,t),$h(o.wv,t)}),[r,o]}(this);return Zs(t)},t.prototype.getIterator=function(t){var n=(void 0===t?{}:t).preventCancel,i=void 0!==n&&n;if(!1===Dc(this))throw Uc("getIterator");return function(t,n){void 0===n&&(n=!1);var i=xf(t),e=c.create(Vf);return e.mv=i,e.yv=Boolean(n),e}(this,i)},t}();function Pc(t,n,i,e,r){void 0===e&&(e=1),void 0===r&&(r=function(){return 1});var o=c.create(Oc.prototype);return Ac(o),Qh(o,c.create(jh.prototype),t,n,i,e,r),o}function Ac(t){t.me="readable",t.uv=void 0,t.ov=void 0,t._v=!1}function Dc(t){return!!Js(t)&&!!c.prototype.hasOwnProperty.call(t,"wv")}function xc(t){return void 0!==t.uv}function Cc(t,n){return t._v=!0,"closed"===t.me?df(void 0):"errored"===t.me?lf(t.ov):(Bc(t),pf(t.wv[Af](n),Ys))}function Bc(t){t.me="closed";var n=t.uv;void 0!==n&&(qf(n)&&(n.vv.forEach(function(t){t.Uu(Sf(void 0,!0,n.ev))}),n.vv=new _f),Pf(n))}function Fc(t,n){t.me="errored",t.ov=n;var i=t.uv;void 0!==i&&(qf(i)?(i.vv.forEach(function(t){t.Hu(n)}),i.vv=new _f):(i.hd.forEach(function(t){t.Hu(n)}),i.hd=new _f),Of(i,n))}function Uc(t){return new h("ReadableStream.prototype."+t+" can only be used on a ReadableStream")}"symbol"==typeof Gs.asyncIterator&&c.defineProperty(Oc.prototype,Gs.asyncIterator,{value:Oc.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var Lc=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=sf(e);if(void 0===r&&(r=1),r=uf(r),void 0!==t.readableType)throw new RangeError("Invalid readable type specified");var f,a=sf(o);void 0===u&&(u=0),u=uf(u),function(t,n,i,e,r,o){function u(){return n}t.fd=function(t,n,i,e,r,o){void 0===r&&(r=1),void 0===o&&(o=function(){return 1});var u=c.create(Zf.prototype);return th(u),ph(u,c.create(mh.prototype),t,n,i,e,r,o),u}(u,function(n){return function(t,n){var i=t.vd;if(!0===t.Nv){var e=t.dd;return pf(e,function(){var e=t.fd,r=e.me;if("erroring"===r)throw e.ov;return Yc(i,n)})}return Yc(i,n)}(t,n)},function(){return function(t){var n=t.ld,i=t.vd,e=i._d();return Xc(i),pf(e,function(){if("errored"===n.me)throw n.ov;var t=n.wv;!0===Zh(t)&&Yh(t)},function(i){throw zc(t,i),n.ov})}(t)},function(n){return function(t,n){return zc(t,n),df(void 0)}(t,n)},i,e),t.ld=Pc(u,function(){return function(t){return Wc(t,!1),t.dd}(t)},function(n){return qc(t,n),df(void 0)},r,o),t.Nv=void 0,t.dd=void 0,t.wd=void 0,Wc(t,!0),t.vd=void 0}(this,vf(function(t){f=t}),r,s,u,a),function(t,n){var i=c.create(Vc.prototype),e=function(t){try{return Gc(i,t),df(void 0)}catch(t){return lf(t)}},r=n.transform;if(void 0!==r){if("function"!=typeof r)throw new h("transform is not a method");e=function(t){return rf(r,n,[t,i])}}var o=nf(n,"flush",0,[i]);!function(t,n,i,e){n.md=t,t.vd=n,n.yd=i,n._d=e}(t,i,e,o)}(this,t);var v=ef(t,"start",[this.vd]);f(v)}return c.defineProperty(t.prototype,"readable",{get:function(){if(!1===Mc(this))throw $c("readable");return this.ld},enumerable:!0,configurable:!0}),c.defineProperty(t.prototype,"writable",{get:function(){if(!1===Mc(this))throw $c("writable");return this.fd},enumerable:!0,configurable:!0}),t}();function Mc(t){return!!Js(t)&&!!c.prototype.hasOwnProperty.call(t,"vd")}function zc(t,n){$h(t.ld.wv,n),qc(t,n)}function qc(t,n){Xc(t.vd),Ih(t.fd.Av,n),!0===t.Nv&&Wc(t,!1)}function Wc(t,n){void 0!==t.dd&&t.wd(),t.dd=vf(function(n){t.wd=n}),t.Nv=n}var jc,Vc=function(){function t(){throw new h("TransformStreamDefaultController instances cannot be created directly")}return c.defineProperty(t.prototype,"desiredSize",{get:function(){if(!1===Hc(this))throw Kc("desiredSize");return Jh(this.md.ld.wv)},enumerable:!0,configurable:!0}),t.prototype.enqueue=function(t){if(!1===Hc(this))throw Kc("enqueue");Gc(this,t)},t.prototype.error=function(t){if(!1===Hc(this))throw Kc("error");var n;n=t,zc(this.md,n)},t.prototype.terminate=function(){if(!1===Hc(this))throw Kc("terminate");!function(t){var n=t.md,i=n.ld.wv;!0===Zh(i)&&Yh(i);var e=new h("TransformStream terminated");qc(n,e)}(this)},t}();function Hc(t){return!!Js(t)&&!!c.prototype.hasOwnProperty.call(t,"md")}function Xc(t){t.yd=void 0,t._d=void 0}function Gc(t,n){var i=t.md,e=i.ld.wv;if(!1===Zh(e))throw new h("Readable side is not in a state that permits enqueue");try{Kh(e,n)}catch(t){throw qc(i,t),i.ld.ov}(function(t){return!0!==Xh(t)})(e)!==i.Nv&&Wc(i,!0)}function Yc(t,n){return pf(t.yd(n),void 0,function(n){throw zc(t.md,n),n})}function Kc(t){return new h("TransformStreamDefaultController.prototype."+t+" can only be used on a TransformStreamDefaultController")}function $c(t){return new h("TransformStream.prototype."+t+" can only be used on a TransformStream")}function Jc(t){return n=[t],new Oc({start:function(t){for(var i=0;i<n.length;i++){var e=n[i];t.enqueue(e)}t.close()}});var n}function Zc(t){return Jc(new w(t))}function Qc(t,n){return function(t,n){var i=n,e=t.getReader(),r=new Ho,o=function(){u();var t=new Pn;e.cancel(t).catch(vt),r.Xu(t)},u=function(){i&&(i.Ls(o),i=void 0)};i&&(i.Rs?o():i.Bs(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.Vu(t)},function(t){u(),r.Xu(t)}),r.Fu}(t,n).then(function(t){return si(t).buffer})}function ta(t,n){var i=n,e=new Lc,r=e.readable,o=e.writable,u=o.getWriter(),s=function(){i&&i.Us()};return u.closed.then(s,s),t.then(function(t){return i=void 0,u.releaseLock(),t.pipeTo(o).catch(vt)},function(t){return i=void 0,u.releaseLock(),o.abort(t).catch(vt)}),r}function na(t){return Zn(new w(t))}function ia(t){return Qn(t).buffer}!function(t){t[t.Wf=0]="Wf",t[t.pd=1]="pd"}(jc||(jc={}));var ea="content-type",ra="text/plain;charset=UTF-8",oa=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 js.Gf:return this.Ed(n);case js.qf:return this.bd(n);case js.Wf:return this.Id();case js.Jn:return this.Td(n);default:throw new h}},t}();function ua(t,n,i){if(t instanceof oa)return t;if(t instanceof Oc)return function(t,n){return new fa({us:jc.Wf,Id:t,Rd:sa(n)})}(t,i);var e=sa(i),r=j.resolve(t).then(function(t){return function(t,n){if(t){if("string"==typeof t)return{us:js.Jn,Nd:t,Rd:n||ra};if(t instanceof ArrayBuffer||ui(t))return{us:js.Gf,Nd:wa(t),Rd:n};if(it(i=t)&&i.constructor&&i.constructor===c||nt(t))return{us:js.qf,Nd:t,Rd:n};throw new h("Unsupported BodyInit type")}return{us:js.Jn,Nd:null,Rd:n};var i}(t,e)});return new fa({us:jc.pd,Fu:r,Dd:n})}function sa(t){return(t.get(ea)||"").toLowerCase()}var fa=function(t){function n(n){var i;return(i=t.call(this)||this).Cd=!1,i.Pd=void 0,i.Od=new Ho,i.Od.Fu.catch(vt),i.Bd(n),i}Lt(n,t);var i=n.prototype;return i.Ld=function(){return this.Od.Fu},i.Td=function(t){return this.xd(ha,t)},i.bd=function(t){return this.xd(aa,t)},i.Ed=function(t){return this.xd(da,t)},i.Id=function(){return this.Md((t=this.Pd).us===jc.Wf?t.Id:ta(t.Fu.then(la).then(Zc),t.Dd));var t},i.xd=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.Vu(i.then(vt)),i},i.Md=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 Lc,i=j.resolve(t.pipeTo(n.writable));return this.Od.Vu(i),n.readable},i.Bd=function(t){this.Pd=t,t.us===jc.pd&&t.Fu.catch(vt)},i.Fd=function(){if(this.Cd)throw new h("Already used");var t=function(t){if(t.us===jc.Wf){var n=t.Id.tee(),i=n[0],e=n[1];return[{us:t.us,Id:i,Rd:t.Rd},{us:t.us,Id:e,Rd:t.Rd}]}var r=t.Dd.Vs(),o=r[0],u=r[1];return[{us:t.us,Fu:t.Fu,Dd:o},{us:t.us,Fu:t.Fu,Dd:u}]}(this.Pd),i=t[0],e=t[1];return this.Bd(i),new n(e)},gt(n,[{key:"Ud",get:function(){return this.Cd}}]),n}(oa);function ha(t,n){return t.us===jc.Wf?Qc(t.Id,n).then(na):(n&&t.Dd.Hs(n),Dn(t.Fu.then(ca),t.Dd))}function ca(t){switch(t.us){case js.Jn:return j.resolve(t.Nd||"");case js.Gf:return j.resolve(t.Nd).then(na);case js.qf:return j.resolve(t.Nd).then(JSON.stringify)}}function aa(t,n){return t.us===jc.Wf?ha(t,n).then(JSON.parse):(n&&t.Dd.Hs(n),Dn(t.Fu.then(va),t.Dd))}function va(t){return t.us===js.qf?j.resolve(t.Nd):ca(t).then(JSON.parse)}function da(t,n){return t.us===jc.Wf?Qc(t.Id,n):(n&&t.Dd.Hs(n),Dn(t.Fu.then(la),t.Dd))}function la(t){switch(t.us){case js.Gf:return j.resolve(t.Nd);case js.Jn:case js.qf:return ca(t).then(ia)}}function wa(t){return t instanceof ArrayBuffer?t:ei(ni(t)).buffer}function ba(t){return t.Hd>=200&&t.Hd<=299||304===t.Hd}var ga,ma,pa,ya,_a=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.Gd):(r=[],o=js.Jn,u=200,s="OK",f=!1);var h=n.qd,c=new Vs(n.Vd||r),a=n.Xd||o,v=n.Wd||(i&&i.qd===h?i.Wd:h.Yd),d=i?i.Qd:null,l=ua(void 0!==n.Vi?n.Vi:d,n.Dd||new On,c);return(e=t.call(this,l)||this).Vd=void 0,e.qd=void 0,e.Wd=void 0,e.Xd=void 0,e.Hd=void 0,e.zd=void 0,e.Gd=void 0,e.Vd=c,e.qd=h,e.Wd=v,e.Xd=a,e.Hd=void 0!==n.Hd?n.Hd:u,e.zd=void 0!==n.zd?String(n.zd):s,e.Gd=n.Gd||f,e}Lt(n,t);var i=n.prototype;return i.Vi=function(t){return this.Sd(this.Xd,t)},i.Bu=function(){return new n({Vi:this.Fd(),qd:this.qd},this)},n}(function(t){function n(n){var i;return(i=t.call(this)||this).Qd=void 0,i.Qd=n,i}Lt(n,t);var i=n.prototype;return i.Ld=function(){return this.Qd.Ld()},i.Td=function(t){return this.Qd.Td(t)},i.bd=function(t){return this.Qd.bd(t)},i.Ed=function(t){return this.Qd.Ed(t)},i.Id=function(){return this.Qd.Id()},i.Fd=function(){return this.Qd.Fd()},gt(n,[{key:"Ud",get:function(){return this.Qd.Ud}}]),n}(oa));!function(t){t.DELETE="DELETE",t.GET="GET",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT"}(ga||(ga={})),function(t){t.jd="",t.Kd="manifest",t.Zd="segment",t.Jd="content-protection"}(ma||(ma={})),function(t){t.jd="",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"}(pa||(pa={})),function(t){t.jd="",t.vl="audio",t.dl="video",t.Jn="text",t.ll="image"}(ya||(ya={}));var Sa=function(t,n){this.Nd=void 0,this.Vd=void 0,this._l=void 0,this.Xd=void 0,this.wl=void 0,this.Xs=void 0,this.us=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.Xs,f=n.us,h=n.yl,c=n.bl,a=n.Al,v=n.Tl):(i=null,e={},r=ga.GET,o=js.Jn,u=0,f=ma.jd,h=pa.jd,c=ya.jd,a=!1),this.Yd=d,this.Nd=t.Nd||i,this.Vd=new Vs(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.Xs=t.Xs||s||(new On).Xs,this.us=t.us||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},Ia=function(){function t(){}var n=t.prototype;return n.qd=function(t){var n=function(t){return new _a({Vi:null,Vd:{},qd:t,Wd:t.Yd,Xd:t.Xd,Hd:0,zd:Ws.Af})}(new Sa(t));return j.resolve(n)},n.Sl=function(t){},n.El=function(){},t}();var Ta,Ea=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.qd=function(t){var n=this.Nl(t);return this.Il.qd(n)},n.Sl=function(t){return this.Il.Sl(this.Dl(t))},n.Nl=function(n){var i=new Sa(n);if(!this.Rl){var e=t.Cl(i.Yd);i=new Sa({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 J.Ur&&Ln(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 Ia)),t.Ol}}]),t}();Ea.Ol=void 0,function(t){t.Bl="HttpOpenError",t.Ll="HttpResponseError",t.xl="HttpTimeoutError"}(Ta||(Ta={}));var Ra=function(t){function n(n,i,e){var r;return(r=t.call(this,i,e)||this).Ml=void 0,r.Ml=n,r}return Lt(n,t),gt(n,[{key:"qd",get:function(){return this.Ml}}]),n}(kn);var ka=function(t){function n(n,i){return t.call(this,n,"Error while opening "+n.Yd+". Invalid URL.",i)||this}return Lt(n,t),gt(n,[{key:"name",get:function(){return Ta.Bl}}]),n}(Ra);var Na=function(t){function n(n,i,e){var r;return(r=t.call(this,n.qd,null!=e?e:function(t){return"Error while loading "+t.qd.Yd+", status code "+t.Hd}(n),i)||this).Fl=void 0,r.Fl=n,r}return Lt(n,t),gt(n,[{key:"name",get:function(){return Ta.Ll}},{key:"Ul",get:function(){return this.Fl}}]),n}(Ra);var Oa=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 Lt(n,t),gt(n,[{key:"name",get:function(){return Ta.xl}}]),n}(Ra),Pa=function(t,n){return(Pa=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 Aa(t,n){function i(){this.constructor=t}Pa(t,n),t.prototype=null===n?c.create(n):(i.prototype=n.prototype,new i)}var Da="object"==typeof n?n:"object"==typeof t?t:"object"==typeof global?global:null;var xa=function(){var t=Da.Blob;if(t)try{return new t,function(t,n){return new Da.Blob(t,n)}}catch(t){}var n,i=Da.BlobBuilder||Da.WebKitBlobBuilder||Da.MozBlobBuilder||Da.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}(),Ca="function"==typeof Oc?Oc:void 0;function Ba(t){return t&&"function"==typeof t.getReader}function Fa(t){if("function"!=typeof t)return!1;try{var n=!1,i=new t({start:function(){n=!0}});return!!n&&Ba(i)}catch(t){return!1}}var Ua=function(){function t(t,n){this.uv=t,this.Hl=n}return t.prototype.pull=function(t){var n=this;return this.uv.read().then(function(i){n.Hl&&n.Hl(i),i.done?t.close():t.enqueue(i.value)})},t.prototype.cancel=function(t){return this.uv.cancel(t)},t}();function La(t,n){return n.constructor===t?n:new t(new Ua(n.getReader()),{highWaterMark:0})}var Ma=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 za(t,n,i){return new t(new Ma(n,i),{highWaterMark:0})}var qa={searchParams:"URLSearchParams"in Da,iterable:"Symbol"in Da&&"iterator"in Symbol,blob:"FileReader"in Da&&!!xa,formData:"FormData"in Da,arrayBuffer:"ArrayBuffer"in Da,stream:Fa(Ca),streamRequest:"Request"in Da&&"body"in Da.Request.prototype,streamResponse:"Response"in Da&&"body"in Da.Response.prototype,abort:"AbortController"in Da&&"Request"in Da&&"signal"in Da.Request.prototype,encoding:"TextEncoder"in Da&&"TextDecoder"in Da,url:"URL"in Da&&function(t){try{return new Da.URL(t).toString()===t}catch(t){return!1}}("http://example.com/"),firefox:"navigator"in Da&&/Firefox\//.test(Da.navigator.userAgent)};function Wa(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 Va(t){var n={next:function(){var n=t.shift();return{done:void 0===n,value:n}}};return qa.iterable&&(n[Symbol.iterator]=function(){return n}),n}var Ha=function(){function t(t){var n=this;this.Kr={};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 qa.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=Wa(t),n=ja(n);var i=t.toLowerCase();if(this.Kr.hasOwnProperty(i)){var e=this.Kr[i],r=e[1];e[1]=r?r+", "+n:n}else this.Kr[i]=[t,n]},t.prototype.delete=function(t){var n=Wa(t).toLowerCase();delete this.Kr[n]},t.prototype.get=function(t){var n=Wa(t).toLowerCase();return this.Kr.hasOwnProperty(n)?this.Kr[n][1]:null},t.prototype.has=function(t){var n=Wa(t).toLowerCase();return this.Kr.hasOwnProperty(n)},t.prototype.set=function(t,n){var i=(t=Wa(t)).toLowerCase();this.Kr[i]=[t,ja(n)]},t.prototype.forEach=function(t,n){for(var i in this.Kr)this.Kr.hasOwnProperty(i)&&t.call(n,this.Kr[i][1],i,this)},t.prototype.keys=function(){var t=[];return this.forEach(function(n,i){t.push(i)}),Va(t)},t.prototype.values=function(){var t=[];return this.forEach(function(n){t.push(n)}),Va(t)},t.prototype.entries=function(){var t=[];return this.forEach(function(n,i){t.push([i,n])}),Va(t)},t.prototype.asList=function(){var t=[];for(var n in this.Kr)if(this.Kr.hasOwnProperty(n)){var i=this.Kr[n],e=i[0],r=i[1];t.push([e,r])}return t},t}();function Xa(){}qa.iterable&&(Ha.prototype[Symbol.iterator]=Ha.prototype.entries);var Ga,Ya,Ka,$a=a.min,Ja=String.fromCharCode,Za=16384;function Qa(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+=Za){var r=$a(e+Za,n);i.push(Ja.apply(null,t.slice(e,r)))}return i.join("")}(n)}function tv(t){if(t>=55296&&t<=57343)throw new f("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function nv(t,n){return t>>n&63|128}function iv(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(tv(t),n.push(t>>12&15|224),n.push(nv(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push(nv(t,12)),n.push(nv(t,6))),n.push(63&t|128)):n.push(t)}function ev(){if(Ka>=Ya)throw new f("Invalid byte index");var t=255&Ga[Ka];if(Ka++,128==(192&t))return 63&t;throw new f("Invalid continuation byte")}function rv(){var t,n;if(Ka>Ya)throw new f("Invalid byte index");if(Ka===Ya)return!1;if(t=255&Ga[Ka],Ka++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|ev())>=128)return n;throw new f("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|ev()<<6|ev())>=2048)return tv(n),n;throw new f("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|ev()<<12|ev()<<6|ev())>=65536&&n<=1114111)return n;throw new f("Invalid UTF-8 detected")}var ov=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];function uv(t){return t&&URLSearchParams.prototype.isPrototypeOf(t)}function sv(t){return t&&ArrayBuffer.prototype.isPrototypeOf(t)}function fv(t){return t&&DataView.prototype.isPrototypeOf(t)}var hv,cv=ArrayBuffer.isView||function(t){return t&&(ov.indexOf(c.prototype.toString.call(t))>-1||fv(t))};function av(t){if(t.bodyUsed)return j.reject(new h("Already used"));t.bodyUsed=!0}function vv(t){return new j(function(n,i){t.onload=function(){n(t.result)},t.onerror=function(){i(t.error)}})}function dv(t){return qa.encoding?new Da.TextDecoder("utf-8").decode(new w(t)):Qa(function(t){Ya=(Ga=t).length,Ka=0;for(var n,i=[];!1!==(n=rv());)i.push(n);return i}(new w(t)))}function lv(t){return qa.encoding?(new Da.TextEncoder).encode(t).buffer:new w(function(t){for(var n=[],i=0,e=t;i<e.length;i++)iv(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 wv(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 bv(t){return wv(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 gv(t){return t.slice?t.slice(0):mv(new w(t))}function mv(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 pv(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 yv(t){var n=t;if(n.bodyUsed)throw new h("Already used");if(n.zl===hv.Gl){if(!n.ql.tee)throw new f("could not clone ReadableStream body");var i=n.ql.tee(),e=i[0],r=i[1];return n.body=e,n.ql=e,n.Wl=e,r}return n.zl===hv.Gf?gv(n.ql):n.zl===hv.pd?n.ql.then(yv):n.Wl}!function(t){t[t.Jn=0]="Jn",t[t.Yl=1]="Yl",t[t.Ql=2]="Ql",t[t.Gf=3]="Gf",t[t.Gl=4]="Gl",t[t.pd=5]="pd"}(hv||(hv={}));var _v=function(){function t(n,i){this.bodyUsed=!1;var e,r,o,u=this;if(this.Wl=n||null,n)if("string"==typeof n)this.zl=hv.Jn,this.ql=n;else if((o=n)&&"function"==typeof o.then)this.zl=hv.pd,this.ql=j.resolve(n).then(function(n){return new t(n,i)}),this.ql.catch(Xa);else if(qa.blob&&function(t){return t&&Blob.prototype.isPrototypeOf(t)}(n))this.zl=hv.Yl,this.ql=n;else if(qa.formData&&function(t){return t&&FormData.prototype.isPrototypeOf(t)}(n))this.zl=hv.Ql,this.ql=n;else if(qa.searchParams&&uv(n))this.zl=hv.Jn,this.ql=n.toString();else if(qa.arrayBuffer&&(sv(n)||cv(n)))fv(n)&&(this.Wl=new w((r=n).buffer,r.byteOffset,r.byteLength)),this.zl=hv.Gf,this.ql=sv(e=n)?gv(e):mv(e);else{if(!qa.stream||!Ba(n))throw new f("unsupported BodyInit type");n=La(Ca,n),this.zl=hv.Gl,this.ql=n,this.Wl=n}else this.zl=hv.Jn,this.ql="";this.jl="",i.has("content-type")?this.jl=(i.get("content-type")||"").toLowerCase():("string"==typeof n?this.jl="text/plain;charset=UTF-8":u.zl===hv.Yl&&u.ql.type?this.jl=u.ql.type:qa.searchParams&&uv(n)&&(this.jl="application/x-www-form-urlencoded;charset=UTF-8"),this.jl&&i.set("content-type",this.jl)),qa.stream&&(null==n?this.body=null:u.zl===hv.Gl?this.body=u.ql:this.body=za(Ca,function(){return u.arrayBuffer()},function(){u.bodyUsed=!0}))}return t.prototype.text=function(){var t,n,i,e=av(this);return e||(this.zl===hv.Yl?(t=this.ql,n=new FileReader,i=vv(n),n.readAsText(t),i):this.zl===hv.Gf?j.resolve(this.ql).then(dv):this.zl===hv.Gl?bv(this.ql).then(dv):this.zl===hv.pd?this.ql.then(function(t){return t.text()}):this.zl===hv.Ql?j.reject(new f("could not read FormData body as text")):j.resolve(this.ql))},t.prototype.json=function(){return this.text().then(JSON.parse)},t}();qa.blob&&(_v.prototype.blob=function(){var t,n,i=av(this);return i||(this.zl===hv.Yl?j.resolve(this.ql):this.zl===hv.Gf?j.resolve(xa([this.ql],{type:this.jl})):this.zl===hv.Gl?(t=this.ql,n=this.jl,wv(t).then(function(t){return xa(t,{type:n||""})})):this.zl===hv.pd?this.ql.then(function(t){return t.blob()}):this.zl===hv.Ql?j.reject(new f("could not read FormData body as Blob")):j.resolve(xa([this.ql],{type:this.jl})))}),qa.arrayBuffer&&(_v.prototype.arrayBuffer=function(){var t,n,i;return this.zl===hv.Gf?av(this)||j.resolve(this.ql):this.zl===hv.Yl?av(this)||(t=this.ql,n=new FileReader,i=vv(n),n.readAsArrayBuffer(t),i):this.zl===hv.Gl?bv(this.ql):this.zl===hv.pd?av(this)||this.ql.then(function(t){return t.arrayBuffer()}):this.zl===hv.Ql?j.reject(new f("could not read FormData body as ArrayBuffer")):j.resolve(this.ql).then(lv)}),qa.formData&&(_v.prototype.formData=function(){return this.zl===hv.Ql?av(this)||j.resolve(this.ql):this.text().then(pv)});var Sv=[301,302,303,307,308],Iv=function(t){function n(n,i){var e=this,r=new Ha((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 Aa(n,t),n.prototype.clone=function(){return new n(yv(this),{status:this.status,statusText:this.statusText,headers:new Ha(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===Sv.indexOf(i))throw new RangeError("Invalid status code");return new n(null,{status:i,headers:{location:t}})},n}(_v);var Tv,Ev=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});(Tv=Ev)&&Tv.__esModule&&c.prototype.hasOwnProperty.call(Tv,"default")&&Tv.default;Ev.AbortSignal;var Rv=Ev.AbortController,kv=Da.DOMException;try{new kv}catch(t){(kv=function(t,n){f.call(this,t),this.name=n||"Error",f.captureStackTrace&&f.captureStackTrace(this,this.constructor)}).prototype=c.create(f.prototype),kv.prototype.constructor=kv}var Nv=Rv;function Ov(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 Pv(t,n,i){return new j(function(e,r){if(n.signal.aborted)return t.catch(Xa),r(Av());var o=function(){n.signal.removeEventListener("abort",o),r(Av())};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 Av(){return new kv("Aborted","AbortError")}var Dv,xv="moz-chunked-arraybuffer";function Cv(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"}(Dv||(Dv={}));var Bv=function(){function t(t,n){var i=this;this.Kl=!1,this.Ml=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.Ml;return t.zl===hv.Gl?t.arrayBuffer():j.resolve(t.Wl)},t.prototype.r_=function(t){this.Ml.onprogress&&this.Ml.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_(Av())},t.prototype.e_=function(t,n){var i=this,e=this.Ml,r=this.Jl,o=function(){return i.a_()};if(e.signal.aborted)return this.h_();r.onreadystatechange=function(){if(r.readyState>=Dv.HEADERS_RECEIVED&&!i.Kl){var t=function(t){var n=new Ha;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}(),Fv=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 Aa(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 Iv(this.v_,t))},n.prototype.f_=function(){var t=this.Jl.response||this.Jl.responseText;this.d_(t)},n.prototype.s_=function(n){t.prototype.s_.call(this,n),this.l_&&this.l_(n)},n}(Bv),Uv=function(t){function n(n){var i=t.call(this,n,xv)||this;return i.__=void 0,i.w_=void 0,i.g_=!1,i}return Aa(n,t),n.prototype.c_=function(t){var n=this;this.__=new Ca({start:function(t){n.w_=t},cancel:function(){n.g_=!0,n.a_()}}),this.t_(new Iv(this.__,t))},n.prototype.r_=function(n){this.g_||this.w_.enqueue(new w(this.Jl.response)),t.prototype.r_.call(this,n)},n.prototype.f_=function(){this.w_.close()},n.prototype.s_=function(n){t.prototype.s_.call(this,n),this.w_&&!this.g_&&(this.g_=!0,this.w_.error(n))},n}(Bv),Lv=function(){var t=qa.firefox&&Cv(xv);return Lv=function(){return t},t},Mv=function(){var t;return t=qa.arrayBuffer&&Cv("arraybuffer")?"arraybuffer":qa.blob&&Cv("blob")?"blob":"",Mv=function(){return t},t};function zv(t){return(qa.stream&&Lv()?new Uv(t):new Fv(t,Mv())).send()}var qv=Da.fetch,Wv=Da.Request,jv=(Da.Response,Da.AbortController);var Vv=["http:","https:"];var Hv=function(){try{if(qa.streamRequest){var t=new Wv("about:blank",{body:"",method:"POST"}).body;if(t&&Fa(t.constructor))return t.constructor}}catch(t){}}();function Xv(t,n,i){var e;if(qa.stream){var r=void 0;if(qa.streamResponse){var o=t.body;r=o&&La(Ca,o)}else r=za(Ca,function(){return Pv(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 Ua(n.getReader(),i),{highWaterMark:0})}(Ca,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,Gv(t.headers))),e=r}else{var u=Pv(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,Gv(t.headers))),e=u}return new Iv(e,t)}function Gv(t){return t.has("content-length")?Number(t.get("content-length")):void 0}function Yv(t){var n=new Nv;return t.signal&&Ov(n,t.signal),function(t,n){var i,e,r=t;if(i=r.zl===hv.Gl?qa.streamRequest&&Hv?j.resolve(La(Hv,r.ql)):Pv(t.arrayBuffer(),n,!1):Pv(j.resolve(t.Wl),n,!1),qa.abort){var o=new jv;Ov(o,n.signal),e=o.signal}return i.then(function(n){return new Wv(t.url,{body:n||void 0,credentials:t.credentials,headers:(i=t.headers,(i instanceof Ha?i:new Ha(i)).asList()),method:t.method,mode:t.mode,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:e});var i})}(t,n).then(function(i){return qv(i).then(function(i){return Xv(i,n,t.onprogress)})})}var Kv=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];var $v=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 Ha(i.headers)),s=i.method,f=i.mode,c=i.referrer,a=i.referrerPolicy,v=i.signal,d=i.onprogress,w||null==i.Wl||(w=i.Wl,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 Ha(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 Kv.indexOf(n)>-1?n:t}(e.method||s),l.mode=e.mode||f,l.signal=e.signal||v||(new Nv).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 Aa(n,t),n.prototype.clone=function(){return new n(this,{body:yv(this)})},n}(_v),Jv="function"==typeof qv&&qa.stream&&qa.streamResponse&&qa.url;function Zv(t,n){return new j(function(i){var e=new $v(t,n);i((Jv&&function(t){try{return Vv.indexOf(new Da.URL(t,Da.location.href).protocol)>=0}catch(t){return!1}}(e.url)?Yv:zv)(e))})}Zv.polyfill=!0;var Qv=function(){function t(t){this.Ul=void 0,this.Ml=void 0,this.m_=new On,this.Fl=void 0,this.y_=!1,this.Ml=t,this.m_.Hs(t.Xs),this.Ul=this.k_()}var n=t.prototype;return n.k_=function(){var t,n,i,e,o,u,s,f,h=this;return Z.async(function(c){for(;;)switch(c.prev=c.next){case 0:(t=this.Ml).wl&&r(function(){h.y_=!0,h.m_.Us()},t.wl),c.prev=2,n=Zv(t.Yd,{method:t._l,headers:t.Vd.Yf(),body:t.Nd,credentials:t.Al?"include":"same-origin",signal:id(this.m_.Xs),onprogress:t.Tl}),c.next=9;break;case 6:throw c.prev=6,c.t0=c.catch(2),new ka(t,c.t0);case 9:return c.prev=9,c.next=12,Z.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.m_.Us(),e;case 20:if(o=i.url||t.Yd,u=0===i.status&&"file:"===(a=o,J.Pr(a).protocol)?200:i.status,s=new td(this,i,this.m_),f=new _a({Vi:s,qd:t,Xd:t.Xd,Vd:new Vs(i.headers.asList()),Hd:u,zd:i.statusText,Wd:o}),this.Fl=f,!ba(f)){c.next=29;break}return c.abrupt("return",f);case 29:throw new Na(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 Oa(this.Ml):new Pn(t.message,t):this.Fl?new Na(this.Fl,t):new ka(this.Ml,t)},t}(),td=function(t){function n(n,i,e){var r;return(r=t.call(this)||this).b_=void 0,r.A_=void 0,r.m_=void 0,r.Od=new Ho,r.b_=n,r.A_=i,r.m_=e,r.Od.Fu.catch(vt),r}Lt(n,t);var i=n.prototype;return i.Ld=function(){return this.Od.Fu},i.Td=function(t){return this.xd(this.A_.text(),t)},i.Ed=function(t){return this.xd(this.A_.arrayBuffer(),t)},i.Id=function(){var t=this.A_.body;return t?this.Md(t):ta(this.Ed().then(Zc),this.m_)},i.Fd=function(){var t=this.A_.clone(),i=this.m_.Vs(),e=i[0],r=i[1];return this.m_=e,new n(this.b_,t,r)},i.xd=function(t,n){var i=this;n&&this.m_.Hs(n);var e=j.resolve(t).catch(function(t){throw i.b_.p_(t)});return e=Dn(e,this.m_),this.Od.Vu(e.then(vt)),e},i.Md=function(t){var n=this,i=new Lc,e=j.resolve(t.pipeTo(i.writable,{preventAbort:!0})).catch(function(t){var e=n.b_.p_(t);throw i.writable.abort(e).catch(vt),e});return e=Dn(e,this.m_),this.Od.Vu(e.then(vt)),i.readable},gt(n,[{key:"Ud",get:function(){return this.A_.bodyUsed}}]),n}(oa),nd="abort";function id(t){var n=new Nv;if(t.Rs)n.abort();else if(!t.Ns){var i=function(){e(),n.abort()},e=function e(){n.signal.removeEventListener(nd,i),t.Ls(i),t.Ms(e)};n.signal.addEventListener(nd,i),t.Bs(i),t.xs(e)}return n.signal}var ed=function(){function t(){}var n=t.prototype;return n.qd=function(t){return new Qv(t).Ul},n.Sl=function(t){var n=t.Rd?{"Content-type":t.Rd}:void 0;this.qd(new Sa({_l:ga.POST,Yd:t.Yd,Nd:t.Nd,Vd:n})).then(vt,vt)},n.El=function(){},t}(),rd=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(xi.cn)return!1;try{return"body"in t.Response.prototype}catch(t){return!1}}(),i.E_=xi.Fn,i.I_=void 0,i}return Lt(i,n),gt(i,[{key:"Sr",get:function(){return this.T_||(this.T_=new Mo(Fs())),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 Ls.ef()}},{key:"P_",get:function(){return{O_:qs}}},{key:"B_",get:function(){return e.connection&&e.connection.effectiveType||"default"}},{key:"L_",get:function(){return e.connection&&e.connection.type||"unknown"}},{key:"x_",get:function(){return this.I_||(this.I_=new Ea(new ed)),this.I_}}]),i}(To);Q(new rd),Q(new rd);var od=t;od.addEventListener("install",function(t){t.waitUntil(od.skipWaiting())}),od.addEventListener("activate",function(t){t.waitUntil(od.clients.claim())}),Si.mr.by(od)}()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this);