@theoplayer/extended 3.2.3 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THEOplayer.chromeless.js +8 -6
- package/THEOplayer.d.ts +236 -13
- package/THEOplayer.js +8 -7
- package/THEOplayer.transmux.asmjs.js +30 -0
- package/THEOplayer.transmux.js +30 -0
- package/THEOplayer.transmux.wasm +0 -0
- package/package.json +4 -1
- package/theoplayer.d.js +3 -3
- package/theoplayer.e.js +3 -3
- package/theoplayer.p.js +3 -3
- package/theoplayer.sw.js +3 -3
- package/ui.css +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
THEOplayer
|
|
3
|
+
|
|
4
|
+
Usage of this software is limited by the THEOplayer License.
|
|
5
|
+
|
|
6
|
+
It is prohibited to reverse engineer, decompile, translate,
|
|
7
|
+
disassemble, decipher, decrypt, or otherwise attempt to
|
|
8
|
+
discover the source code of this software.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
11
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
12
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
13
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
14
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
15
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
16
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
17
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
18
|
+
|
|
19
|
+
For more information, visit https://www.theoplayer.com or contact
|
|
20
|
+
contact @ theoplayer . com
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
THEOplayer is based on patented technology developed by
|
|
25
|
+
THEO Technologies (https://www.theoplayer.com).
|
|
26
|
+
|
|
27
|
+
Version: 2022.2.2 (3.5.0)
|
|
28
|
+
Created: 2022-06-02T15:18:37.379Z
|
|
29
|
+
*/
|
|
30
|
+
!function(t){!function(){"use strict";var n,r=t.window,i=t.document,e=t.location,u=t.navigator,o=t.setTimeout,f=t.clearTimeout,s=t.setInterval,c=t.clearInterval,a=t.Error,h=t.TypeError,l=(t.SyntaxError,t.Object),v=t.Math,_=t.parseInt,d=t.parseFloat,y=t.isNaN,w=t.Uint8Array;t.Worker,t.WorkerGlobalScope,t.XMLHttpRequest;function p(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),l.defineProperty(t,i.key,i)}}function E(t,n,r){return n&&p(t.prototype,n),r&&p(t,r),l.defineProperty(t,"prototype",{writable:!1}),t}function I(t,n){return(I=l.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function g(t,n){t.prototype=l.create(n.prototype),t.prototype.constructor=t,I(t,n)}!function(t){t.l="web",t.g="android",t.R="android-tv",t.N="ios",t.M="tvos",t.F="chromecast"}(n||(n={}));var R=u?u.userAgent:"",k=R.match(/chrome\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),T=R.match(/Edg\/([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/i),O=R.match(/Android ([0-9\.]+)/i),m=R.match(/Windows NT ([0-9\.]+)/i),S=R.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),b=R.match(/Firefox\/([0-9\.]+)/i),N=R.match(/OPR\/(\d+\.\d+)/i),A=R.match(/Tizen ([0-9\.]+)/i),D=function(){function r(){this.U=Boolean("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch||u&&u.msMaxTouchPoints),this.V=/(mac\sos\sx)\s?([\w\s\.]+\w)*/i.test(R)||/(macintosh|mac(?=_powerpc)\s)/i.test(R),this.q=/Windows NT/i.test(R),this.G=m?d(m[1]):0,this.Y=/Android/i.test(R),this.j=O?d(O[1]):0,this.K=/windows phone (8|8\.1)/i.test(R),this.Z=/iPhone/i.test(R),this.J=/iPad/i.test(R),this.nt=this.V&&this.U&&!this.J,this.ut=/iPod/i.test(R),this.ot=/Mobile Safari/i.test(R),this.ct=/EOSSTB/i.test(R),this.ft=(this.Z||this.J||this.nt||this.ut)&&!this.K,this.vt=this.K||this.ft||this.Y||this.ot,this.dt=/CriOS/i.test(R),this._t=Boolean(t.chrome&&/google/i.test(u.vendor))||this.dt,this.wt=this._t&&/Edg\//i.test(u.userAgent),this.yt=T?_(T[1],10):0,this.kt=Boolean(t.chrome||/Chrome/i.test(R)||/CriOS/i.test(R)),this.bt=k?_(k[1],10):0,this.At=/SMART-TV.*Tizen/i.test(R),this.Tt=A?d(A[1]):0,this.St=/webos|web0s/i.test(R),this.Et=/Edge\/\d+/i.test(R),this.It=/Trident/i.test(R),this.Rt=this.It&&!t.ActiveXObject&&"ActiveXObject"in t,this.Nt=/Vivaldi/i.test(R),this.Dt=/Firefox/i.test(R)&&!/Seamonkey/i.test(R),this.Ct=b?d(b[1]):0,this.Pt=/Safari/i.test(R)&&!/Chrome/i.test(R)&&!this.K&&!this.At,this.Ot=S?d(S[2]):0,this.Bt=Boolean(N),this.Lt=N?d(N[1]):0,this.Mt=/CrKey/.test(R),this.xt=/\b(tv|smart-tv|smarttv|appletv|crkey|googletv|hbbtv|pov_tv|roku|viera|nettv|philipstv)\b/i.test(R),this.Ft="web"===n.R,this.Ut="web"===n.g,this.Ht=this.Ut||this.Ft,this.Vt="web"===n.N,this.Xt="web"===n.M,this.zt="web"===n.F}return E(r,[{key:"Wt",get:function(){return this.U}},{key:"qt",get:function(){return this.V}},{key:"Gt",get:function(){return this.q}},{key:"Qt",get:function(){return this.G}},{key:"Yt",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.ft}},{key:"hn",get:function(){return this.ct}},{key:"cn",get:function(){return this.ot}},{key:"fn",get:function(){return this.vt}},{key:"vn",get:function(){return this.dt}},{key:"dn",get:function(){return this._t}},{key:"_n",get:function(){return this.bt}},{key:"wn",get:function(){return this.wt}},{key:"yn",get:function(){return this.yt}},{key:"pn",get:function(){return this.At}},{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.Mt}},{key:"Mn",get:function(){return this.xt}},{key:"xn",get:function(){if(!(this.Tn||this.pn))return!1;var t=this._n;return void 0===t||Number(t)<56}},{key:"Fn",get:function(){return this.Ft}},{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:"Wn",get:function(){return this.kt}}]),r}();D.qn=new D;var C=D.qn;function P(t){return null!=t}var L=function(){},F=!(C.En&&!C.In),U=t.console;function M(t){if(function(t){return"object"==typeof t&&null!==t}(t))try{return JSON.stringify(t)}catch(t){}return t}function x(t){return t.map(M).join(" ")}function W(t){var n=U&&U[t];return n?n.bind&&F?n.bind(U):function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];U[t](x(r))}:void 0}var B,V=W("log")||L,G=W("warn")||V.bind(void 0,"WARNING:"),H=W("error")||V.bind(void 0,"ERROR:"),j=(B=U&&U.assert)?B.bind&&F?B.bind(U):function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];U.assert(t,x(r))}:function(t){if(!t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];H.apply(void 0,["Assertion failed:"].concat(r))}};function K(t,n,r){return t(r={path:n,exports:{},require:function(t,n){return function(){throw new a("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&r.path)}},r.exports),r.exports}var q=K(function(t,n){var r=function(t){l.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=null;try{n=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 r(t,n,r){this.low=0|t,this.high=0|n,this.unsigned=!!r}function i(t){return!0===(t&&t.Yn)}function e(t){var n=v.clz32(t&-t);return t?31-n:n}r.prototype.Yn,l.defineProperty(r.prototype,"Yn",{value:!0}),r.isLong=i;var u={},o={};function f(t,n){var r,i,e;return n?(e=0<=(t>>>=0)&&t<256)&&(i=o[t])?i:(r=c(t,0,!0),e&&(o[t]=r),r):(e=-128<=(t|=0)&&t<128)&&(i=u[t])?i:(r=c(t,t<0?-1:0,!1),e&&(u[t]=r),r)}function s(t,n){if(y(t))return n?T:k;if(n){if(t<0)return T;if(t>=I)return N}else{if(t<=-g)return A;if(t+1>=g)return b}return t<0?s(-t,n).neg():c(t%E|0,t/E|0,n)}function c(t,n,i){return new r(t,n,i)}r.fromInt=f,r.fromNumber=s,r.fromBits=c;var h=v.pow;function d(t,n,r){if(0===t.length)throw a("empty string");if("number"==typeof n?(r=n,n=!1):n=!!n,"NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return n?T:k;if((r=r||10)<2||36<r)throw RangeError("radix");var i;if((i=t.indexOf("-"))>0)throw a("interior hyphen");if(0===i)return d(t.substring(1),n,r).neg();for(var e=s(h(r,8)),u=k,o=0;o<t.length;o+=8){var f=v.min(8,t.length-o),c=_(t.substring(o,o+f),r);if(f<8){var l=s(h(r,f));u=u.mul(l).add(s(c))}else u=(u=u.mul(e)).add(s(c))}return u.unsigned=n,u}function p(t,n){return"number"==typeof t?s(t,n):"string"==typeof t?d(t,n):c(t.low,t.high,"boolean"==typeof n?n:t.unsigned)}r.fromString=d,r.fromValue=p;var E=4294967296,I=E*E,g=I/2,R=f(1<<24),k=f(0);r.ZERO=k;var T=f(0,!0);r.UZERO=T;var O=f(1);r.ONE=O;var m=f(1,!0);r.UONE=m;var S=f(-1);r.NEG_ONE=S;var b=c(-1,2147483647,!1);r.MAX_VALUE=b;var N=c(-1,-1,!0);r.MAX_UNSIGNED_VALUE=N;var A=c(0,-2147483648,!1);r.MIN_VALUE=A;var D=r.prototype;D.toInt=function(){return this.unsigned?this.low>>>0:this.low},D.toNumber=function(){return this.unsigned?(this.high>>>0)*E+(this.low>>>0):this.high*E+(this.low>>>0)},D.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(A)){var n=s(t),r=this.div(n),i=r.mul(n).sub(this);return r.toString(t)+i.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var e=s(h(t,6),this.unsigned),u=this,o="";;){var f=u.div(e),c=(u.sub(f.mul(e)).toInt()>>>0).toString(t);if((u=f).isZero())return c+o;for(;c.length<6;)c="0"+c;o=""+c+o}},D.getHighBits=function(){return this.high},D.getHighBitsUnsigned=function(){return this.high>>>0},D.getLowBits=function(){return this.low},D.getLowBitsUnsigned=function(){return this.low>>>0},D.getNumBitsAbs=function(){if(this.isNegative())return this.eq(A)?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},D.isZero=function(){return 0===this.high&&0===this.low},D.eqz=D.isZero,D.isNegative=function(){return!this.unsigned&&this.high<0},D.isPositive=function(){return this.unsigned||this.high>=0},D.isOdd=function(){return 1==(1&this.low)},D.isEven=function(){return 0==(1&this.low)},D.equals=function(t){return i(t)||(t=p(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},D.eq=D.equals,D.notEquals=function(t){return!this.eq(t)},D.neq=D.notEquals,D.ne=D.notEquals,D.lessThan=function(t){return this.comp(t)<0},D.lt=D.lessThan,D.lessThanOrEqual=function(t){return this.comp(t)<=0},D.lte=D.lessThanOrEqual,D.le=D.lessThanOrEqual,D.greaterThan=function(t){return this.comp(t)>0},D.gt=D.greaterThan,D.greaterThanOrEqual=function(t){return this.comp(t)>=0},D.gte=D.greaterThanOrEqual,D.ge=D.greaterThanOrEqual,D.compare=function(t){if(i(t)||(t=p(t)),this.eq(t))return 0;var n=this.isNegative(),r=t.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},D.comp=D.compare,D.negate=function(){return!this.unsigned&&this.eq(A)?A:this.not().add(O)},D.neg=D.negate,D.add=function(t){i(t)||(t=p(t));var n=this.high>>>16,r=65535&this.high,e=this.low>>>16,u=65535&this.low,o=t.high>>>16,f=65535&t.high,s=t.low>>>16,a=0,h=0,l=0,v=0;return l+=(v+=u+(65535&t.low))>>>16,h+=(l+=e+s)>>>16,a+=(h+=r+f)>>>16,a+=n+o,c((l&=65535)<<16|(v&=65535),(a&=65535)<<16|(h&=65535),this.unsigned)},D.subtract=function(t){return i(t)||(t=p(t)),this.add(t.neg())},D.sub=D.subtract,D.multiply=function(t){if(this.isZero())return this;if(i(t)||(t=p(t)),n)return c(n.mul(this.low,this.high,t.low,t.high),n.get_high(),this.unsigned);if(t.isZero())return this.unsigned?T:k;if(this.eq(A))return t.isOdd()?A:k;if(t.eq(A))return this.isOdd()?A:k;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(R)&&t.lt(R))return s(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,e=65535&this.high,u=this.low>>>16,o=65535&this.low,f=t.high>>>16,a=65535&t.high,h=t.low>>>16,l=65535&t.low,v=0,_=0,d=0,y=0;return d+=(y+=o*l)>>>16,_+=(d+=u*l)>>>16,d&=65535,_+=(d+=o*h)>>>16,v+=(_+=e*l)>>>16,_&=65535,v+=(_+=u*h)>>>16,_&=65535,v+=(_+=o*a)>>>16,v+=r*l+e*h+u*a+o*f,c((d&=65535)<<16|(y&=65535),(v&=65535)<<16|(_&=65535),this.unsigned)},D.mul=D.multiply,D.divide=function(t){if(i(t)||(t=p(t)),t.isZero())throw a("division by zero");var r,e,u;if(n)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?c((this.unsigned?n.div_u:n.div_s)(this.low,this.high,t.low,t.high),n.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?T:k;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return T;if(t.gt(this.shru(1)))return m;u=T}else{if(this.eq(A))return t.eq(O)||t.eq(S)?A:t.eq(A)?O:(r=this.shr(1).div(t).shl(1)).eq(k)?t.isNegative()?O:S:(e=this.sub(t.mul(r)),u=r.add(e.div(t)));if(t.eq(A))return this.unsigned?T:k;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();u=k}for(e=this;e.gte(t);){r=v.max(1,v.floor(e.toNumber()/t.toNumber()));for(var o=v.ceil(v.log(r)/v.LN2),f=o<=48?1:h(2,o-48),l=s(r),_=l.mul(t);_.isNegative()||_.gt(e);)_=(l=s(r-=f,this.unsigned)).mul(t);l.isZero()&&(l=O),u=u.add(l),e=e.sub(_)}return u},D.div=D.divide,D.modulo=function(t){return i(t)||(t=p(t)),n?c((this.unsigned?n.rem_u:n.rem_s)(this.low,this.high,t.low,t.high),n.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},D.mod=D.modulo,D.rem=D.modulo,D.not=function(){return c(~this.low,~this.high,this.unsigned)},D.countLeadingZeros=function(){return this.high?v.clz32(this.high):v.clz32(this.low)+32},D.clz=D.countLeadingZeros,D.countTrailingZeros=function(){return this.low?e(this.low):e(this.high)+32},D.ctz=D.countTrailingZeros,D.and=function(t){return i(t)||(t=p(t)),c(this.low&t.low,this.high&t.high,this.unsigned)},D.or=function(t){return i(t)||(t=p(t)),c(this.low|t.low,this.high|t.high,this.unsigned)},D.xor=function(t){return i(t)||(t=p(t)),c(this.low^t.low,this.high^t.high,this.unsigned)},D.shiftLeft=function(t){return i(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?c(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):c(0,this.low<<t-32,this.unsigned)},D.shl=D.shiftLeft,D.shiftRight=function(t){return i(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?c(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):c(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},D.shr=D.shiftRight,D.shiftRightUnsigned=function(t){return i(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?c(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):c(32===t?this.high:this.high>>>t-32,0,this.unsigned)},D.shru=D.shiftRightUnsigned,D.shr_u=D.shiftRightUnsigned,D.rotateLeft=function(t){var n;return i(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?c(this.high,this.low,this.unsigned):t<32?(n=32-t,c(this.low<<t|this.high>>>n,this.high<<t|this.low>>>n,this.unsigned)):(n=32-(t-=32),c(this.high<<t|this.low>>>n,this.low<<t|this.high>>>n,this.unsigned))},D.rotl=D.rotateLeft,D.rotateRight=function(t){var n;return i(t)&&(t=t.toInt()),0==(t&=63)?this:32===t?c(this.high,this.low,this.unsigned):t<32?(n=32-t,c(this.high<<n|this.low>>>t,this.low<<n|this.high>>>t,this.unsigned)):(n=32-(t-=32),c(this.low<<n|this.high>>>t,this.high<<n|this.low>>>t,this.unsigned))},D.rotr=D.rotateRight,D.toSigned=function(){return this.unsigned?c(this.low,this.high,!1):this},D.toUnsigned=function(){return this.unsigned?this:c(this.low,this.high,!0)},D.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},D.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]},D.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]},r.fromBytes=function(t,n,i){return i?r.fromBytesLE(t,n):r.fromBytesBE(t,n)},r.fromBytesLE=function(t,n){return new r(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,n)},r.fromBytesBE=function(t,n){return new r(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],n)};var C=r;return t.default=C,"default"in t?t.default:t}({});t.exports=r});function X(){return Date.now()||(new Date).getTime()}var z;q.fromNumber(9007199254740991);!function(t){t[t.Kn=1]="Kn",t[t.Jn=2]="Jn",t[t.Zn=3]="Zn",t[t.$n=4]="$n",t[t.ni=9]="ni"}(z||(z={}));var Y=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];a.apply(this,n)};(Y.prototype=l.create(a.prototype)).constructor=Y;var $=function(t){function n(n,r){var i;return(i=t.call(this)||this).cause=void 0,i.message=n||"Unknown error",i.cause=r,a.captureStackTrace&&a.captureStackTrace(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(i),i.constructor),i}return g(n,t),E(n,[{key:"name",get:function(){return"BaseError"}}]),n}(Y),Z=function(t){function n(n){return t.call(this,"Invalid XML",n)||this}return g(n,t),n}($),J=function(){function t(){}return t.prototype.ei=function(t){var n,r=new DOMParser;try{n=r.parseFromString(t,"text/xml")}catch(t){throw new Z(t)}if(!n||n.getElementsByTagName("parsererror").length>0)throw new Z;return new ut(n)},t}(),Q=function(){function t(t){this.ri=void 0,this.ri=t}var n=t.prototype;return n.oi=function(t){return this.ri.isEqualNode(t.ri)},n.ai=function(n){return new t(this.ri.cloneNode(n))},E(t,[{key:"jn",get:function(){return z.Jn}},{key:"ci",get:function(){var t;return null!=(t=this.ri.localName)?t:st(this.ri.nodeName)}},{key:"di",get:function(){return this.ri.nodeName}},{key:"_i",get:function(){var t;return null!=(t=this.ri.namespaceURI)?t:void 0}},{key:"gi",get:function(){var t;return null!=(t=this.ri.prefix)?t:void 0}},{key:"wi",get:function(){return this.ri.nodeValue}}]),t}(),tt=function(){function t(t){this.Ai=void 0,this.Ti=void 0,this.Ai=t}var n=t.prototype;return n.Si=function(t){return this.Ei.filter(function(n){return ot(n)&&n.Ii===t})},n.Ri=function(t,n){return this.Ei.filter(function(r){return ot(r)&&r.ci===n&&r._i===t})},n.Ni=function(t){this.Ai.appendChild(t.Di),this.Ti&&this.Ti.push(t)},n.oi=function(t){return this.Ai.isEqualNode(t.Di)},E(t,[{key:"Ei",get:function(){return void 0===this.Ti&&(this.Ti=function(t){for(var n=[],r=0;r<t.length;r++){var i=ft(t.item(r));i&&n.push(i)}return n}(this.Ai.childNodes)),this.Ti}},{key:"Ci",get:function(){return this.Ei.filter(ot)}},{key:"Di",get:function(){return this.Ai}}]),t}(),nt=function(t){function n(n){return t.call(this,n)||this}g(n,t);var r=n.prototype;return r.Pi=function(t){if(this.Ai.hasAttribute(t))return this.Ai.getAttribute(t)},r.Oi=function(t,n){if(this.Ai.hasAttributeNS(t,n))return this.Ai.getAttributeNS(t,n)},r.Bi=function(t){this.Ai.removeAttribute(t)},r.Li=function(t,n){this.Ai.removeAttributeNS(t,n)},r.Mi=function(t,n){this.Ai.setAttribute(t,n)},r.xi=function(t,n,r){this.Ai.setAttributeNS(t,n,r)},r.ai=function(t){return new n(this.Ai.cloneNode(t))},E(n,[{key:"jn",get:function(){return z.Kn}},{key:"ci",get:function(){var t;return null!=(t=this.Ai.localName)?t:st(this.Ai.nodeName)}},{key:"_i",get:function(){var t;return null!=(t=this.Ai.namespaceURI)?t:void 0}},{key:"gi",get:function(){var t;return null!=(t=this.Ai.prefix)?t:void 0}},{key:"Ii",get:function(){return this.Ai.nodeName}},{key:"Fi",get:function(){return function(t){for(var n=[],r=0;r<t.length;r++)n.push(new Q(t.item(r)));return n}(this.Ai.attributes)}},{key:"Ui",get:function(){return this.Ai.textContent}}]),n}(tt),rt=function(){function t(t){this.Ai=void 0,this.Ai=t}return t.prototype.oi=function(t){return this.Hi===t.Hi},E(t,[{key:"Hi",get:function(){return this.Ai.nodeValue}},{key:"Di",get:function(){return this.Ai}}]),t}(),it=function(t){function n(n){return t.call(this,n)||this}return g(n,t),n.prototype.ai=function(t){return new n(this.Ai.cloneNode(t))},E(n,[{key:"jn",get:function(){return z.Zn}}]),n}(rt),et=function(t){function n(n){return t.call(this,n)||this}return g(n,t),n.prototype.ai=function(t){return new n(this.Ai.cloneNode(t))},E(n,[{key:"jn",get:function(){return z.$n}}]),n}(rt),ut=function(t){function n(n){return t.call(this,n)||this}return g(n,t),n.prototype.ai=function(t){return new n(this.Ai.cloneNode(t))},E(n,[{key:"jn",get:function(){return z.ni}},{key:"Vi",get:function(){return new nt(this.Ai.documentElement)}}]),n}(tt);function ot(t){return function(t){return t.jn===z.Kn}(t)}function ft(t){switch(t.nodeType){case z.Kn:return new nt(t);case z.Zn:return new it(t);case z.$n:return new et(t)}}function st(t){var n=t.indexOf(":");return n<0?t:t.substr(n+1)}function ct(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),l.defineProperty(t,i.key,i)}}function at(t,n){var r=function(t,n){var r=t.length;if(r<=1)return t;for(var i=new Array(r),e=1;e<r;e*=2){ht(t,n,e,i);var u=t;t=i,i=u}return t}(t,n);return r!==t&&ht(r,null,t.length,t),t}function ht(t,n,r,i){var e,u,o,f,s,c=t.length,a=0,h=2*r;for(e=0;e<c;e+=h)for(o=(u=e+r)+r,u>c&&(u=c),o>c&&(o=c),f=e,s=u;;)if(f<u&&s<o)n(t[f],t[s])<=0?i[a++]=t[f++]:i[a++]=t[s++];else if(f<u)i[a++]=t[f++];else{if(!(s<o))break;i[a++]=t[s++]}}var lt=/[a-zA-Z]/,vt=/[0-9]/,_t=/[0-9a-fA-F]/,dt=/^0x/i,yt=/^[0-9]+$/,wt=/^[0-9a-fA-F]+$/,pt=/^[0-7]+$/,Et=l.prototype.toString,It=Array.isArray||function(t){return"[object Array]"===Et.call(t)},gt="undefined"!=typeof Symbol&&"symbol"==typeof Symbol.iterator;function Rt(t){return It(t)?t:Array.from(t)}function kt(t){return t>=65&&t<=90}function Tt(t){return kt(t)||function(t){return t>=97&&t<=122}(t)}function Ot(t){return t>=48&&t<=57}function mt(t){return Ot(t)||Tt(t)}function St(t){return Ot(t)||t>=65&&t<=70||t>=97&&t<=102}function bt(t){return kt(t)?t+32:t}function Nt(t){return Ot(t)?t-48:t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:-1}function At(t,n){return void 0===n&&(n=!1),0<=t&&t<=9?t+48:10<=t&&t<=15?t+(n?87:55):-1}var Dt=v.min,Ct=String.fromCharCode,Pt=16384;function Lt(t){for(var n=t.length,r=[],i=0;i<n;i+=Pt){var e=Dt(i+Pt,n);r.push(Ct.apply(null,t.slice(i,e)))}return r.join("")}var Ft=/[^\0-\x7E]/,Ut=/[\x2E\u3002\uFF0E\uFF61]/g,Mt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},xt=v.floor,Wt=String.fromCharCode;function Bt(t){throw new RangeError(Mt[t])}function Vt(t){for(var n=[],r=0,i=t.length;r<i;){var e=t.charCodeAt(r++);if(e>=55296&&e<=56319&&r<i){var u=t.charCodeAt(r++);56320==(64512&u)?n.push(((1023&e)<<10)+(1023&u)+65536):(n.push(e),r--)}else n.push(e)}return n}var Gt,Ht,jt,Kt=function(t,n){return t+22+75*(t<26)-((0!=n)<<5)},qt=function(t,n,r){var i=0;for(t=r?xt(t/700):t>>1,t+=xt(t/n);t>455;i+=36)t=xt(t/35);return xt(i+36*t/(t+38))},Xt=function(t){return function(t,n){var r=t.split("@"),i="";r.length>1&&(i=r[0]+"@",t=r[1]);var e=function(t,n){for(var r=[],i=t.length;i--;)r[i]=n(t[i]);return r}((t=t.replace(Ut,".")).split("."),n).join(".");return i+e}(t,function(t){return Ft.test(t)?"xn--"+function(t){for(var n=[],r=(t=Vt(t)).length,i=128,e=0,u=72,o=0,f=t;o<f.length;o++){var s=f[o];s<128&&n.push(Wt(s))}var c=n.length,a=c;for(c&&n.push("-");a<r;){for(var h=2147483647,l=0,v=t;l<v.length;l++){var _=v[l];_>=i&&_<h&&(h=_)}var d=a+1;h-i>xt((2147483647-e)/d)&&Bt("overflow"),e+=(h-i)*d,i=h;for(var y=0,w=t;y<w.length;y++){var p=w[y];if(p<i&&++e>2147483647&&Bt("overflow"),p==i){for(var E=e,I=36;;I+=36){var g=I<=u?1:I>=u+26?26:I-u;if(E<g)break;var R=E-g,k=36-g;n.push(Wt(Kt(g+R%k,0))),E=xt(R/k)}n.push(Wt(Kt(E,0))),u=qt(e,d,a==c),e=0,++a}}++e,++i}return n.join("")}(t):t})};function zt(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i)}return Lt(n)}function Yt(t){if(t>=55296&&t<=57343)throw new a("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function $t(t,n){return t>>n&63|128}function Zt(t,n){0!=(4294967168&t)?(0==(4294965248&t)?n.push(t>>6&31|192):0==(4294901760&t)?(Yt(t),n.push(t>>12&15|224),n.push($t(t,6))):0==(4292870144&t)&&(n.push(t>>18&7|240),n.push($t(t,12)),n.push($t(t,6))),n.push(63&t|128)):n.push(t)}function Jt(t){for(var n=[],r=0;r<t.length;r++){Zt(t[r],n)}return n}function Qt(){if(jt>=Ht)throw new a("Invalid byte index");var t=255&Gt[jt];if(jt++,128==(192&t))return 63&t;throw new a("Invalid continuation byte")}function tn(){var t,n;if(jt>Ht)throw new a("Invalid byte index");if(jt===Ht)return!1;if(t=255&Gt[jt],jt++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|Qt())>=128)return n;throw new a("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|Qt()<<6|Qt())>=2048)return Yt(n),n;throw new a("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|Qt()<<12|Qt()<<6|Qt())>=65536&&n<=1114111)return n;throw new a("Invalid UTF-8 detected")}function nn(t){return[37,At(t>>4),At(15&t)]}function rn(t){return function(t){return t>=0&&t<=31}(t)||t>126}function en(t){return rn(t)||32===t||34===t||60===t||62===t||96===t}function un(t){return en(t)||35===t||63===t||123===t||125===t}function on(t){return un(t)||47===t||58===t||59===t||61===t||64===t||t>=91&&t<=94||124===t}function fn(t){return t<33||t>126||34===t||35===t||60===t||62===t}function sn(t){return fn(t)||39===t}function cn(t,n){if(!n(t))return[t];for(var r=Jt([t]),i=[],e=0;e<r.length;e++){var u=r[e];i.push.apply(i,nn(u))}return i}function an(t,n){for(var r=[],i=0,e=Vt(t);i<e.length;i++){var u=e[i];r.push.apply(r,cn(u,n))}return zt(r)}function hn(t){return function(t){for(var n=[],r=t.length,i=0;i<r;i++){var e=t[i];if(37===e&&i+2<r&&St(t[i+1])&&St(t[i+2])){var u=Nt(t[i+1])<<4|Nt(t[i+2]);n.push(u),i+=2}else n.push(e)}return n}(Jt(t))}function ln(t){return zt(function(t){Gt=t.slice(),Ht=Gt.length,jt=0;for(var n,r=[];!1!==(n=tn());)r.push(n);return r}(hn(Vt(t))))}function vn(t){var n,r,i,e,u=t.length,o=[0,0,0,0,0,0,0,0],f=0,s=null,c=0;if(c<u&&":"===t[c]){if(!(c+1<u&&":"===t[c+1]))throw new h;c+=2,s=f+=1}for(;c<u;){if(8===f)throw new h("Too many groups");if(":"!==t[c]){for(var a=0,l=0;l<4&&c<u&&_t.test(t[c]);)a=a<<4|_(t[c],16),c+=1,l+=1;if("."===t[c]){if(0===l)throw new h;if(c-=l,f>6)throw new h;for(var v=0;c<u;){var d=null;if(v>0){if(!("."===t[c]&&v<4))throw new h;c+=1}if(!vt.test(t[c]))throw new h;for(;c<u&&vt.test(t[c]);){var y=_(t[c],10);if(null===d)d=y;else{if(0===d)throw new h;if((d=10*d+y)>255)throw new h}c+=1}o[f]=o[f]<<8|d,2!==(v+=1)&&4!==v||(f+=1)}if(4!==v)throw new h;break}if(":"===t[c]){if((c+=1)===u)throw new h}else if(c<u)throw new h;o[f]=a,f+=1}else{if(null!==s)throw new h("Too many :: groups");c+=1,s=f+=1}}if(null!==s){var w=f-s;for(f=7;0!==f&&w>0;)i=s+w-1,e=void 0,e=(n=o)[r=f],n[r]=n[i],n[i]=e,f-=1,w-=1}else if(8!==f)throw new h;return o}function _n(t){var n=10,r=yt;return dt.test(t)?(t=t.slice(2),n=16,r=wt):t.length>=2&&"0"===t[0]&&(t=t.slice(1),n=8,r=pt),""===t?0:r.test(t)?_(t,n):void 0}var dn={Xi:4},yn=/[\0\t\n\r #%/:?@\[\\\]]/,wn=/[\0\t\n\r #/:?@\[\\\]]/;function pn(t,n){if("["===t[0]){if("]"!==t[t.length-1])throw new h("Invalid IPv6 address");return{Xi:2,zi:vn(t.slice(1,-1))}}if(!n)return function(t){if(wn.test(t))throw new h("Invalid code point in opaque host");var n=an(t,rn);return""===n?dn:{Xi:3,Wi:n}}(t);var r=function(t){return function(t){return Xt(t.toLowerCase())}(t)}(ln(t));if(yn.test(r))throw new h("Invalid code point in host");var i=function(t){var n=t.split(".");if(""===n[n.length-1]&&n.pop(),!(n.length>4)){for(var r=[],i=0;i<n.length;i++){var e=n[i];if(""===e)return;var u=_n(e);if(void 0===u)return;r.push(u)}for(var o=0;o<r.length-1;o++)if(r[o]>255)throw new h;if(r[r.length-1]>=v.pow(256,5-r.length))throw new h;for(var f=r.pop(),s=0;s<r.length;s++)f+=r[s]*v.pow(256,3-s);return f}}(r);return void 0!==i?{Xi:1,zi:i}:""===r?dn:{Xi:0,qi:r}}function En(t){switch(t.Xi){case 0:return t.qi;case 1:return function(t){for(var n=[],r=t,i=1;i<=4;i++)n.push(""+(255&r)),4!==i&&n.push("."),r>>>=8;return n.reverse().join("")}(t.zi);case 2:return"["+function(t){for(var n="",r=function(t){for(var n=0,r=0,i=0,e=0,u=0;u<8;u++)0===t[u]?(0===e&&(i=u),e++):(e>r&&(n=i,r=e),e=0);return e>r&&(n=i,r=e),r>1?n:null}(t),i=!1,e=0;e<8;e++){if(i){if(0===t[e])continue;i=!1}r!==e?(n+=t[e].toString(16),7!==e&&(n+=":")):(n+=0===e?"::":":",i=!0)}return n}(t.zi)+"]";case 3:return t.Wi;case 4:return""}}var In=/\+/g;function gn(t){for(var n=t.split("&"),r=[],i=0;i<n.length;i++){var e=n[i];if(""!==e){var u=e.indexOf("="),o=void 0,f=void 0;-1!==u?(o=e.slice(0,u),f=e.slice(u+1)):(o=e,f=""),o=o.replace(In," "),f=f.replace(In," ");var s=ln(o),c=ln(f);r.push([s,c])}}return r}function Rn(t){for(var n="",r=0;r<t.length;r++){var i=t[r];r>0&&(n+="&"),n+=kn(Jt(Vt(i[0])))+"="+kn(Jt(Vt(i[1])))}return n}function kn(t){for(var n,r=[],i=0;i<t.length;i++){var e=t[i];32===e?r.push(43):42===(n=e)||45===n||46===n||95===n||mt(n)?r.push(e):r.push.apply(r,nn(e))}return Lt(r)}var Tn=/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/;function On(t){var n=""+t,r=Tn.exec(n);return r?function(t,n){for(var r=t.length,i=[],e=n;e<r;e++){var u=t.charCodeAt(e);if(Sn(u))if(bn(u)||e===r-1)i.push(mn);else{var o=t.charCodeAt(e+1);bn(o)?(i.push(u,o),e++):i.push(mn)}else i.push(u)}return t.slice(0,n)+Lt(i)}(n,r.index):n}var mn=65533,Sn=function(t){return 55296==(63488&t)},bn=function(t){return 0!=(1024&t)};function Nn(t,n){var r=t[0],i=n[0];return r===i?0:r<i?-1:1}function An(t){t.Gi.length=0}function Dn(t,n){!function(t,n){for(var r=0;r<n.length;r++)t[r]=n[r];t.length=n.length}(t.Gi,gn(n))}function Cn(t){if(t.Qi){var n=Rn(t.Gi);""===n&&(n=null),t.Qi.Qi.Yi=n}}function Pn(t){return t instanceof Ln&&(!!It(t.Gi)&&(!gt||t[Symbol.iterator]===Fn))}var Ln=function(){function t(t){if(void 0===t&&(t=void 0),this.Qi=null,null==t)this.Gi=[];else if("object"==typeof t||"function"==typeof t)if(Pn(t))this.Gi=t.Gi.slice();else if(null!=(u=t)&&(It(u)||gt&&"function"==typeof u[Symbol.iterator])){this.Gi=[];for(var n=0,r=Rt(t);n<r.length;n++){var i=Rt(r[n]);if(2!==i.length)throw new h("Invalid name-value pair");this.Gi.push([On(i[0]),On(i[1])])}}else for(var e in this.Gi=[],t)l.prototype.hasOwnProperty.call(t,e)&&this.Gi.push([On(e),On(t[e])]);else(t=On(t)).length>0&&"?"===t[0]&&(t=t.slice(1)),this.Gi=gn(t);var u}var n=t.prototype;return n.append=function(t,n){t=On(t),n=On(n),this.Gi.push([t,n]),Cn(this)},n.delete=function(t){t=On(t);for(var n=this.Gi,r=0;r<n.length;){n[r][0]===t?n.splice(r,1):r++}Cn(this)},n.get=function(t){t=On(t);for(var n=this.Gi,r=0;r<n.length;r++){var i=n[r];if(i[0]===t)return i[1]}return null},n.getAll=function(t){t=On(t);for(var n=this.Gi,r=[],i=0;i<n.length;i++){var e=n[i];e[0]===t&&r.push(e[1])}return r},n.has=function(t){t=On(t);for(var n=this.Gi,r=0;r<n.length;r++){if(n[r][0]===t)return!0}return!1},n.set=function(t,n){t=On(t),n=On(n);for(var r=this.Gi,i=!1,e=0;e<r.length;){var u=r[e];u[0]===t?i?r.splice(e,1):(u[1]=n,i=!0,e++):e++}i||r.push([t,n]),Cn(this)},n.sort=function(){at(this.Gi,Nn),Cn(this)},n.toString=function(){return Rn(this.Gi)},n.entries=function(){return new Wn(this.Gi,Un)},n.keys=function(){return new Wn(this.Gi,Mn)},n.values=function(){return new Wn(this.Gi,xn)},n.forEach=function(t){var n=this;this.Gi.forEach(function(r){return t(r[1],r[0],n)})},t}(),Fn=Ln.prototype.entries;gt&&(Ln.prototype[Symbol.iterator]=Fn);var Un=function(t){return[t[0],t[1]]},Mn=function(t){return t[0]},xn=function(t){return t[1]},Wn=function(){function t(t,n){this.ji=0,this.Gi=t,this.Ki=n}return t.prototype.next=function(){return this.ji<this.Gi.length?{done:!1,value:this.Ki(this.Gi[this.ji++])}:{done:!0,value:void 0}},t}(),Bn="null";var Vn=l.create(null);Vn.ftp=21,Vn.file=0,Vn.gopher=70,Vn.http=80,Vn.https=443,Vn.ws=80,Vn.wss=443;var Gn=/^(?:\.|%2e)$/i,Hn=/^(?:\.|%2e){2}$/i;function jn(t){return Gn.test(t)}function Kn(t){return Hn.test(t)}function qn(t){return void 0!==Vn[t]}function Xn(t){return qn(t.Zi)}function zn(t){return""!==t.Ji||""!==t.$i}function Yn(t){var n=t.length;if(!(n>=2))return!1;if(!Zn(t.slice(0,2)))return!1;if(2!==n){var r=t[2];if(47!==r&&92!==r&&63!==r&&35!==r)return!1}return!0}function $n(t){return 2===t.length&<.test(t[0])&&(":"===t[1]||"|"===t[1])}function Zn(t){return 2===t.length&&$n(Lt(t))}function Jn(t){return $n(t)&&":"===t[1]}function Qn(t){var n=t.re;0!==n.length&&("file"===t.Zi&&1===n.length&&Jn(n[0])||n.pop())}function tr(t){return null===t.ue||dn===t.ue||t.oe||"file"===t.Zi}var nr=-1,rr=/\t|\n|\r/g,ir=/^[\x00-\x1f ]+|[\x00-\x1f ]+$/g;function er(t,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null),r||(r=new or,t=t.replace(ir,""));var e=null!==i?i:0;n=n||null;for(var u=[],o=!1,f=!1,s=!1,c=Vt(t=t.replace(rr,"")),a=c.length,l=0;l<=a;){var v=l<a?c[l]:nr;switch(e){case 0:if(!Tt(v)){if(null===i){u.length=0,e=2;continue}throw new h("Invalid scheme")}u.push(bt(v)),e=1;break;case 1:if(mt(v)||43===v||45===v||46===v)u.push(bt(v));else{if(58!==v){if(null===i){u.length=0,e=2,l=0;continue}throw new h("Invalid scheme")}var d=zt(u);if(null!==i){if(qn(r.Zi)&&!qn(d))return;if(!qn(r.Zi)&&qn(d))return;if((zn(r)||null!==r.fe)&&"file"===d)return;if("file"===r.Zi&&(r.ue===dn||null===r.ue))return}if(r.Zi=d,null!==i)return void(Xn(r)&&r.fe===Vn[r.Zi]&&(r.fe=null));u.length=0,"file"===r.Zi?e=13:Xn(r)&&n&&n.Zi===r.Zi?e=3:Xn(r)?e=7:47===c[l+1]?(e=4,l+=1):(r.oe=!0,r.re.push(""),e=18)}break;case 2:if(!n||n.oe&&35!==v)throw new h("Invalid scheme");n.oe&&35===v?(r.Zi=n.Zi,r.re=n.re.slice(),r.Yi=n.Yi,r._e="",r.oe=!0,e=20):"file"!==n.Zi?(e=5,l-=1):(e=13,l-=1);break;case 3:47===v&&47===c[l+1]?e=8:(e=5,l-=1);break;case 4:47===v?e=9:(e=17,l-=1);break;case 5:r.Zi=n.Zi,nr===v?(r.Ji=n.Ji,r.$i=n.$i,r.ue=n.ue,r.fe=n.fe,r.re=n.re.slice(),r.Yi=n.Yi):47===v?e=6:63===v?(r.Ji=n.Ji,r.$i=n.$i,r.ue=n.ue,r.fe=n.fe,r.re=n.re.slice(),r.Yi="",e=19):35===v?(r.Ji=n.Ji,r.$i=n.$i,r.ue=n.ue,r.fe=n.fe,r.re=n.re.slice(),r.Yi=n.Yi,r._e="",e=20):92===v&&Xn(r)?e=6:(r.Ji=n.Ji,r.$i=n.$i,r.ue=n.ue,r.fe=n.fe,r.re=n.re.slice(),r.re.pop(),e=17,l-=1);break;case 6:!Xn(r)||47!==v&&92!==v?47===v?e=9:(r.Ji=n.Ji,r.$i=n.$i,r.ue=n.ue,r.fe=n.fe,e=17,l-=1):e=8;break;case 7:if(47!==v||47!==c[l+1]){e=8;continue}e=8,l+=1;break;case 8:47!==v&&92!==v&&(e=9,l-=1);break;case 9:if(64===v){o&&u.unshift(37,52,48),o=!0;for(var y=0;y<u.length;y++){var w=u[y];if(58!==w||s){var p=zt(cn(w,on));s?r.$i+=p:r.Ji+=p}else s=!0}u.length=0}else if(nr===v||47===v||63===v||35===v||Xn(r)&&92===v){if(o&&0===u.length)throw new h("Invalid host");l-=u.length+1,u.length=0,e=10}else u.push(v);break;case 10:case 11:if(null!==i&&"file"===r.Zi)l-=1,e=15;else if(58!==v||f)if(nr===v||47===v||63===v||35===v||Xn(r)&&92===v){if(l-=1,Xn(r)&&0===u.length)throw new h("Invalid host");if(null!==i&&0===u.length&&(zn(r)||null!==r.fe))return;var E=pn(zt(u),Xn(r));if(r.ue=E,u.length=0,e=16,null!==i)return}else 91===v?f=!0:93===v&&(f=!1),u.push(v);else{if(0===u.length)throw new h("Invalid host");var I=pn(zt(u),Xn(r));if(r.ue=I,u.length=0,e=12,11===i)return}break;case 12:if(Ot(v))u.push(v);else{if(!(nr===v||47===v||63===v||35===v||Xn(r)&&92===v||null!==i))throw new h("Invalid port");if(0!==u.length){var g=_(zt(u),10);if(g>65535)throw new h("Invalid port");r.fe=g===Vn[r.Zi]?null:g,u.length=0}if(null!==i)return;e=16,l-=1}break;case 13:r.Zi="file",47===v||92===v?e=14:n&&"file"===n.Zi?nr===v?(r.ue=n.ue,r.re=n.re.slice(),r.Yi=n.Yi):63===v?(r.ue=n.ue,r.re=n.re.slice(),r.Yi="",e=19):35===v?(r.ue=n.ue,r.re=n.re.slice(),r.Yi=n.Yi,r._e="",e=20):(Yn(c.slice(l))||(r.ue=n.ue,r.re=n.re.slice(),Qn(r)),e=17,l-=1):(e=17,l-=1);break;case 14:47===v||92===v?e=15:(n&&"file"===n.Zi&&!Yn(c.slice(l))&&(Jn(n.re[0])?r.re.push(n.re[0]):r.ue=n.ue),e=17,l-=1);break;case 15:if(nr===v||47===v||92===v||63===v||35===v)if(l-=1,null===i&&Zn(u))e=17;else if(0===u.length){if(r.ue=dn,null!==i)return;e=16}else{var R=pn(zt(u),Xn(r));if(0===R.Xi&&"localhost"===R.qi&&(R=dn),r.ue=R,null!==i)return;u.length=0,e=16}else u.push(v);break;case 16:Xn(r)?(e=17,47!==v&&92!==v&&(l-=1)):null===i&&63===v?(r.Yi="",e=19):null===i&&35===v?(r._e="",e=20):nr!==v&&(e=17,47!==v&&(l-=1));break;case 17:if(nr===v||47===v||Xn(r)&&92===v||null===i&&(63===v||35===v)){var k=zt(u);if(Kn(k)?(Qn(r),47===v||Xn(r)&&92===v||r.re.push("")):!jn(k)||47===v||Xn(r)&&92===v?jn(k)||("file"===r.Zi&&0===r.re.length&&Zn(u)&&(dn!==r.ue&&null!==r.ue&&(r.ue=dn),u[1]=58,k=zt(u)),r.re.push(k)):r.re.push(""),u.length=0,"file"===r.Zi&&(nr===v||63===v||35===v))for(;r.re.length>1&&""===r.re[0];)r.re.shift();63===v?(r.Yi="",e=19):35===v&&(r._e="",e=20)}else u.push.apply(u,cn(v,un));break;case 18:63===v?(r.Yi="",e=19):35===v?(r._e="",e=20):nr!==v&&(r.re[0]+=zt(cn(v,rn)));break;case 19:null===i&&35===v?(r._e="",e=20):nr!==v&&(r.Yi+=zt(cn(v,Xn(r)?sn:fn)));break;case 20:nr===v||0===v||(r._e+=zt(cn(v,en)))}l++}return r}function ur(t,n,r,i){try{er(t,n,r,i)}catch(t){}}var or=function(){this.Zi="",this.Ji="",this.$i="",this.ue=null,this.fe=null,this.re=[],this.Yi=null,this._e=null,this.oe=!1};function fr(t){switch(t.Zi){case"blob":var n;try{n=er(t.re[0],null)}catch(t){return Bn}return fr(n);case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return r=t.Zi,i=t.ue,e=t.fe,r+"://"+En(i)+(null===e?"":":"+e);case"file":default:return Bn}var r,i,e}var sr=function(){function t(t,n){var r,i,e=null;if(null!=n)if(null!=(r=n)&&r instanceof sr&&"object"==typeof r.Qi)e=n.Qi;else try{e=er(String(n),null)}catch(t){throw new h("Invalid base URL: "+t.message)}try{i=er(String(t),e)}catch(t){throw new h("Invalid URL: "+t.message)}var u=i.Yi;this.Qi=i,this.Yi=function(t){var n=new Ln;return null!==t&&Dn(n,t),n}(u),this.Yi.Qi=this}var n,r,i,e=t.prototype;return e.toString=function(){return this.href},e.toJSON=function(){return this.href},n=t,(r=[{key:"href",get:function(){return function(t,n){void 0===n&&(n=!1);var r=t.Zi+":";if(null!==t.ue?(r+="//",zn(t)&&(r+=t.Ji,""!==t.$i&&(r+=":"+t.$i),r+="@"),r+=En(t.ue),null!==t.fe&&(r+=":"+t.fe)):null===t.ue&&"file"===t.Zi&&(r+="//"),t.oe)r+=t.re[0];else for(var i=0,e=t.re;i<e.length;i++)r+="/"+e[i];return null!==t.Yi&&(r+="?"+t.Yi),n||null===t._e||(r+="#"+t._e),r}(this.Qi)},set:function(t){var n;try{n=er(String(t),null)}catch(t){throw new h("Invalid URL: "+t.message)}this.Qi=n,An(this.Yi);var r=this.Qi.Yi;null!==r&&Dn(this.Yi,r)}},{key:"origin",get:function(){return fr(this.Qi)}},{key:"protocol",get:function(){return this.Qi.Zi+":"},set:function(t){ur(t+":",null,this.Qi,0)}},{key:"username",get:function(){return this.Qi.Ji},set:function(t){tr(this.Qi)||(this.Qi.Ji=an(t,on))}},{key:"password",get:function(){return this.Qi.$i},set:function(t){tr(this.Qi)||(this.Qi.$i=an(t,on))}},{key:"host",get:function(){var t=this.Qi,n=t.ue;if(null===n)return"";var r=t.fe,i=En(n);return null!==r&&(i+=":"+r),i},set:function(t){this.Qi.oe||ur(t,null,this.Qi,10)}},{key:"hostname",get:function(){var t=this.Qi.ue;return null===t?"":En(t)},set:function(t){this.Qi.oe||ur(t,null,this.Qi,11)}},{key:"port",get:function(){var t=this.Qi.fe;return null===t?"":""+t},set:function(t){tr(this.Qi)||(""===t?this.Qi.fe=null:ur(t,null,this.Qi,12))}},{key:"pathname",get:function(){var t=this.Qi.re;return this.Qi.oe?t[0]:0===t.length?"":"/"+t.join("/")},set:function(t){this.Qi.oe||(this.Qi.re.length=0,ur(t,null,this.Qi,16))}},{key:"search",get:function(){var t=this.Qi.Yi;return null===t||""===t?"":"?"+t},set:function(t){t=On(t);var n=this.Qi;if(""===t)return n.Yi=null,void An(this.Yi);"?"===t[0]&&(t=t.slice(1)),n.Yi="",ur(t,null,n,19),Dn(this.Yi,t)}},{key:"searchParams",get:function(){return this.Yi}},{key:"hash",get:function(){var t=this.Qi._e;return null===t||""===t?"":"#"+t},set:function(t){""!==t?("#"===t[0]&&(t=t.slice(1)),this.Qi._e="",ur(t,null,this.Qi,20)):this.Qi._e=null}}])&&ct(n.prototype,r),i&&ct(n,i),t}();function cr(t){return t.document&&t.document.baseURI||t.location.href||""}var ar=o;function hr(t){return Boolean(t&&void 0!==t.length)}function lr(){}function vr(t){if(!(this instanceof vr))throw new h("Promises must be constructed via new");if("function"!=typeof t)throw new h("not a function");this.we=0,this.me=!1,this.ye=void 0,this.ke=[],Er(t,this)}function _r(t,n){for(;3===t.we;)t=t.ye;0!==t.we?(t.me=!0,vr.pe(function(){var r=1===t.we?n.onFulfilled:n.onRejected;if(null!==r){var i;try{i=r(t.ye)}catch(t){return void yr(n.promise,t)}dr(n.promise,i)}else(1===t.we?dr:yr)(n.promise,t.ye)})):t.ke.push(n)}function dr(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 r=n.then;if(n instanceof vr)return t.we=3,t.ye=n,void wr(t);if("function"==typeof r)return void Er((i=r,e=n,function(){i.apply(e,arguments)}),t)}t.we=1,t.ye=n,wr(t)}catch(n){yr(t,n)}var i,e}function yr(t,n){t.we=2,t.ye=n,wr(t)}function wr(t){2===t.we&&0===t.ke.length&&vr.pe(function(){t.me||vr.Ae(t.ye)});for(var n=0,r=t.ke.length;n<r;n++)_r(t,t.ke[n]);t.ke=null}function pr(t,n,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=r}function Er(t,n){var r=!1;try{t(function(t){r||(r=!0,dr(n,t))},function(t){r||(r=!0,yr(n,t))})}catch(t){if(r)return;r=!0,yr(n,t)}}vr.prototype.catch=function(t){return this.then(null,t)},vr.prototype.then=function(t,n){var r=new this.constructor(lr);return _r(this,new pr(t,n,r)),r},vr.prototype.finally=function(t){var n=this.constructor;return this.then(function(r){return n.resolve(t()).then(function(){return r})},function(r){return n.resolve(t()).then(function(){return n.reject(r)})})},vr.all=function(t){return new vr(function(n,r){if(!hr(t))return r(new h("Promise.all accepts an array"));var i=Array.prototype.slice.call(t);if(0===i.length)return n([]);var e=i.length;function u(t,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var f=o.then;if("function"==typeof f)return void f.call(o,function(n){u(t,n)},r)}i[t]=o,0==--e&&n(i)}catch(t){r(t)}}for(var o=0;o<i.length;o++)u(o,i[o])})},vr.allSettled=function(t){return new this(function(n,r){if(!t||void 0===t.length)return r(new h(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var i=Array.prototype.slice.call(t);if(0===i.length)return n([]);var e=i.length;function u(t,r){if(r&&("object"==typeof r||"function"==typeof r)){var o=r.then;if("function"==typeof o)return void o.call(r,function(n){u(t,n)},function(r){i[t]={status:"rejected",reason:r},0==--e&&n(i)})}i[t]={status:"fulfilled",value:r},0==--e&&n(i)}for(var o=0;o<i.length;o++)u(o,i[o])})},vr.resolve=function(t){return t&&"object"==typeof t&&t.constructor===vr?t:new vr(function(n){n(t)})},vr.reject=function(t){return new vr(function(n,r){r(t)})},vr.race=function(t){return new vr(function(n,r){if(!hr(t))return r(new h("Promise.race accepts an array"));for(var i=0,e=t.length;i<e;i++)vr.resolve(t[i]).then(n,r)})},vr.pe="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){ar(t,0)},vr.Ae=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var Ir=function(){var n=t.Promise;if(void 0!==n)try{if(-1!==n.toString().indexOf("[native code]"))return n}catch(t){}}(),gr=u?u.userAgent:"",Rr=gr.match(/Firefox\/([0-9]+)/i),kr=null!=Rr,Tr=Rr?Number(Rr[1]):0,Or=gr.match(/(Version)\/((\d+)\.(\d+)(?:\.(\d+))?).*Safari/),mr=null!=Or,Sr=Or?Number(Or[3]):0,br=function(){function t(t){this.Te=0,this.Se=0,this.Wi=[],this.Ee=t}return t.prototype.Ie=function(t){var n=this.length();this.Re(n+1);var r=this.Se+n&this.Ee-1;this.Wi[r]=t,this.Te=n+1},t.prototype.push=function(t){var n=this.length()+1;if(this.Ee<n)this.Ie(t);else{var r=this.Se+n-1,i=this.Ee-1;this.Wi[r&i]=t,this.Te=n}},t.prototype.shift=function(){var t=this.Se,n=this.Wi[t];return this.Wi[t]=void 0,this.Se=t+1&this.Ee-1,this.Te--,n},t.prototype.length=function(){return this.Te},t.prototype.Re=function(t){this.Ee<t&&this.Ne(this.Ee<<1)},t.prototype.Ne=function(t){var n=this.Ee;this.Ee=t;var r=this.Se+this.Te&n-1;!function(t,n,r,i){for(var e=0;e<i;++e)t[e+r]=t[e+n],t[e+n]=void 0}(this.Wi,0,n,r)},t}();var Nr="unhandledrejection",Ar=t.PromiseRejectionEvent,Dr=t.CustomEvent;function Cr(t){return new Ar(Nr,{reason:t,promise:Ir.reject(t).catch(function(){}),cancelable:!0})}function Pr(t){var n=new Dr(Nr,{detail:{reason:t},cancelable:!0});return l.defineProperty(n,"reason",{value:t}),n}function Lr(t){var n=i.createEvent("CustomEvent");return n.initCustomEvent(Nr,!1,!0,{reason:t}),n}var Fr,Ur,Mr,xr,Wr,Br,Vr,Gr=function(t){return(Gr=function(){try{var t=Ir.resolve(),n=new Ar(Nr,{reason:"error",promise:t});return Nr===n.type&&"error"===n.reason}catch(t){}return!1}()?Cr:function(){try{var t=new Dr(Nr,{detail:{reason:"error"}});return Nr===t.type&&"error"===t.detail.reason}catch(t){}return!1}()?Pr:Lr)(t)};if(Ir&&!(kr&&Tr<60||mr&&Sr<15))Ur=Ir,function(){};else{Ur=vr;var Hr=null!==(Fr=function(){var n=t.queueMicrotask;if("function"==typeof n)return function(t){return n(t)};var r=Ir;if(r&&"function"==typeof r.resolve){var i=r.resolve();return function(t){return i.then(t)}}}())&&void 0!==Fr?Fr:vr.pe,jr=(Mr=Hr,xr=new br(16),Wr=!1,{De:function(t){xr.push(t),Wr||(Wr=!0,Mr(Br))},Ce:Br=function(){for(;xr.length()>0;)xr.shift()();Wr=!1}});jr.Ce,vr.pe=jr.De,vr.Ae=function(n){try{var r=Gr(n);if(!t.dispatchEvent(r)||r.defaultPrevented)return}catch(t){}o(function(){throw new a("Unhandled promise rejection: ".concat(n))},0)}}function Kr(){return void 0!==i?i.createElement("video"):void 0}var qr=!!("ontouchstart"in t||t.DocumentTouch&&i instanceof t.DocumentTouch)||!(!u||!u.msMaxTouchPoints),Xr=(Vr||(Vr=Kr()),Vr),zr=!(!Xr||!Xr.webkitShowPlaybackTargetPicker),Yr=function(){function t(){this.Pe=void 0,this.Oe=!1,this.Wt=qr,this.fn=!1,this.Be=!0,this.Le=!0}var n=t.prototype;return n.Me=function(){return 0},n.xe=function(t,n){return!0},n.Fe=function(t){return t>=1/6*2},E(t,[{key:"Ue",get:function(){return void 0===this.Pe&&(this.Pe=this.Me()),this.Pe}},{key:"He",get:function(){return r.devicePixelRatio||1}},{key:"Ve",get:function(){return zr}},{key:"Xe",get:function(){return!1}},{key:"ze",get:function(){return!0}},{key:"We",get:function(){return C.Cn||C.un}},{key:"qe",get:function(){return!0}},{key:"Ge",get:function(){return!0}},{key:"Qe",get:function(){return!1}},{key:"Ye",get:function(){}},{key:"je",get:function(){return!0}},{key:"Ke",get:function(){return!1}}]),t}(),$r=function(){var t=Kr();if(!t)return!1;var n=t.muted;return t.muted=!n,t.muted!==n}();!function(){if(C.$t)return!1;var t=Kr();if(!t)return!1;var n=t.volume;t.volume=n/2+.1,t.volume}();var Zr=function(t){function n(n){var r;return(r=t.call(this)||this).Ze=void 0,r.Ze=n,r.Ze&&(r.Oe=r.Ze.Oe,r.Wt=r.Ze.Wt,r.Be=$r&&r.Ze.Be),r}g(n,t);var r=n.prototype;return r.Me=function(){return this.Ze?this.Ze.Ue:t.prototype.Me.call(this)},r.xe=function(n,r){return this.Ze?this.Ze.xe(n,r):t.prototype.xe.call(this,n,r)},r.Fe=function(n){return this.Ze?this.Ze.Fe(n):t.prototype.Fe.call(this,n)},E(n,[{key:"Ye",get:function(){var t;return null==(t=this.Ze)?void 0:t.Ye}},{key:"je",get:function(){var t,n;return null==(t=null==(n=this.Ze)?void 0:n.je)||t}}]),n}(Yr),Jr=function(t){function n(n){var r;return(r=t.call(this,n)||this).Oe=!0,r.fn=!0,r}return g(n,t),E(n,[{key:"Qe",get:function(){return C.un}}]),n}(Zr),Qr=function(t){function n(){return t.apply(this,arguments)||this}return g(n,t),n.prototype.Me=function(){if(!(void 0).MediaSource)return 1},E(n,[{key:"Qe",get:function(){return!0}}]),n}(Jr),ti=function(t){function n(){return t.apply(this,arguments)||this}return g(n,t),n.prototype.xe=function(n,r){return t.prototype.xe.call(this,n,r)},E(n,[{key:"Xe",get:function(){return C.An<3}},{key:"ze",get:function(){return C.An>=3}},{key:"Ke",get:function(){return C.An<3}}]),n}(Zr),ni=function(t){function n(){return t.call(this)||this}return g(n,t),n}(Yr),ri=function(t){function n(){return t.apply(this,arguments)||this}return g(n,t),n.prototype.xe=function(t,n){if(t&&t.Je&&n&&n.Je){var r=ii(t.Je,"mp4a.40.2")&&ii(n.Je,"mp4a.40.5"),i=ii(t.Je,"mp4a.40.5")&&ii(n.Je,"mp4a.40.2"),e=ii(t.Je,"mp4a.40.2")&&ii(n.Je,"mp4a.40.34"),u=ii(t.Je,"mp4a.40.34")&&ii(n.Je,"mp4a.40.2"),o=ii(t.Je,"mp4a.40.5")&&ii(n.Je,"mp4a.40.34"),f=ii(t.Je,"mp4a.40.34")&&ii(n.Je,"mp4a.40.5");return!(r||i||e||u||o||f)}return!0},E(n,[{key:"Ye",get:function(){if(C.qt)return 4096}}]),n}(ni);function ii(t,n){return t.indexOf(n)>-1}var ei=function(t){function n(){return t.apply(this,arguments)||this}return g(n,t),n.prototype.Fe=function(t){return t>=2},n}(ni),ui=function(t){function n(){var n;return(n=t.call(this)||this).Oe=C.Pn>=11,n.Be=C.Cn&&!(C.un&&C.Pn<10),n}return g(n,t),n}(ni),oi=function(t){function n(){return t.apply(this,arguments)||this}return g(n,t),E(n,[{key:"qe",get:function(){return!1}}]),n}(Zr),fi=function(t){function n(){return t.apply(this,arguments)||this}return g(n,t),E(n,[{key:"je",get:function(){return!C.Gt||(C.wn?92!==C.yn:C._n>=100)}}]),n}(ni),si=function(t){function n(){return t.apply(this,arguments)||this}return g(n,t),E(n,[{key:"Qe",get:function(){return!0}}]),n}(Zr),ci=function(){function n(){var n;this.$e=void 0,this.ir=new J,this.rr=new ai,this.dr=(n=function(){if(C.Nn)return new ri;if(C.Sn||C.En)return new ei;if(C.Cn)return new ui;if(C.dn)return new fi;return new ni}(),C.un?new Qr(n):C.fn?new Jr(n):C.pn?new ti(n):C.Tn?new oi(n):C.qt?new si(n):new Zr(n)),this._r=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.$e=function(){return t.performance.now()}:this.$e=X}var r=n.prototype;return r.gr=function(){V.apply(void 0,arguments)},r.wr=function(){G.apply(void 0,arguments)},r.yr=function(){H.apply(void 0,arguments)},r.pr=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];j.apply(void 0,[t].concat(r))},r.Qn=function(t,n){return o(t,n)},r.Ar=function(t,n){return s(t,n)},r.Gn=function(t){f(t)},r.Tr=function(t){c(t)},r.ei=function(t){return this.ir.ei(t)},r.Sr=function(){return this.Er.Sr()},r.Ir=function(){return this.Er.Ir()},r.Rr=function(){return this.Er.Rr()},r.Nr=function(){return this.Er.Nr()},r.Dr=function(){return this.Er.Dr()},r.Cr=function(t,n){return this.Er.Cr(t,n)},r.Pr=function(t){return this.Er.Pr(t)},r.Or=function(t,n){var r;return void 0===n&&(n=cr(void 0)),r="object"!=typeof n||n instanceof sr?n:n.href,new sr(t,r)},r.Br=function(n,r){if(void 0===r&&(r=cr(void 0)),this._r){var i="string"==typeof r?r:r.toString();return new t.URL(n,i).href}return this.Or(n,r).href},E(n,[{key:"Lr",get:function(){return this.rr}},{key:"Mr",get:function(){return this.dr}},{key:"xr",get:function(){return{Fr:u&&u.userAgent.match(/Android /i)?"Android":"other",Ur:Boolean(u&&u.userAgent.match(/Android 8.0.0/i))}}},{key:"Hr",get:function(){return t&&t.location&&"https:"===t.location.protocol}},{key:"Vr",get:function(){return"languages"in u?u.languages.slice():[u.language]}}]),n}(),ai=function(){function t(){}return E(t,[{key:"Xr",get:function(){return u.oscpu}},{key:"Mr",get:function(){return u.platform}},{key:"zr",get:function(){return u.vendor}},{key:"Wr",get:function(){return u.vendorSub}}]),t}();var hi=K(function(t){!function(t){var n,r=l.prototype,i=r.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},u=e.iterator||"@@iterator",o=e.asyncIterator||"@@asyncIterator",f=e.toStringTag||"@@toStringTag";function s(t,n,r,i){var e=n&&n.prototype instanceof E?n:E,u=l.create(e.prototype),o=new D(i||[]);return u.qr=function(t,n,r){var i=v;return function(e,u){if(i===d)throw new a("Generator is already running");if(i===w){if("throw"===e)throw u;return P()}for(r.method=e,r.arg=u;;){var o=r.delegate;if(o){var f=b(o,r);if(f){if(f===p)continue;return f}}if("next"===r.method)r.sent=r.Gr=r.arg;else if("throw"===r.method){if(i===v)throw i=w,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=d;var s=c(t,n,r);if("normal"===s.type){if(i=r.done?w:_,s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(i=w,r.method="throw",r.arg=s.arg)}}}(t,r,o),u}function c(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var v="suspendedStart",_="suspendedYield",d="executing",w="completed",p={};function E(){}function I(){}function g(){}var R={};R[u]=function(){return this};var k=l.getPrototypeOf,T=k&&k(k(C([])));T&&T!==r&&i.call(T,u)&&(R=T);var O=g.prototype=E.prototype=l.create(R);function m(t){["next","throw","return"].forEach(function(n){t[n]=function(t){return this.qr(n,t)}})}function S(t){var n;this.qr=function(r,e){function u(){return new Ur(function(n,u){!function n(r,e,u,o){var f=c(t[r],t,e);if("throw"!==f.type){var s=f.arg,a=s.value;return a&&"object"==typeof a&&i.call(a,"Qr")?Ur.resolve(a.Qr).then(function(t){n("next",t,u,o)},function(t){n("throw",t,u,o)}):Ur.resolve(a).then(function(t){s.value=t,u(s)},function(t){return n("throw",t,u,o)})}o(f.arg)}(r,e,n,u)})}return n=n?n.then(u,u):u()}}function b(t,r){var i=t.iterator[r.method];if(i===n){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=n,b(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new h("The iterator does not provide a 'throw' method")}return p}var e=c(i,t.iterator,r.arg);if("throw"===e.type)return r.method="throw",r.arg=e.arg,r.delegate=null,p;var u=e.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=n),r.delegate=null,p):u:(r.method="throw",r.arg=new h("iterator result is not an object"),r.delegate=null,p)}function N(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 A(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function C(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!y(t.length)){var e=-1,o=function r(){for(;++e<t.length;)if(i.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=n,r.done=!0,r};return o.next=o}}return{next:P}}function P(){return{value:n,done:!0}}I.prototype=O.constructor=g,g.constructor=I,g[f]=I.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===I||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return l.setPrototypeOf?l.setPrototypeOf(t,g):(t.__proto__=g,f in t||(t[f]="GeneratorFunction")),t.prototype=l.create(O),t},t.awrap=function(t){return{Qr:t}},m(S.prototype),S.prototype[o]=function(){return this},t.AsyncIterator=S,t.async=function(n,r,i,e){var u=new S(s(n,r,i,e));return t.isGeneratorFunction(r)?u:u.next().then(function(t){return t.done?t.value:u.next()})},m(O),O[f]="Generator",O[u]=function(){return this},O.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var i=n.pop();if(i in t)return r.value=i,r.done=!1,r}return r.done=!0,r}},t.values=C,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this.Gr=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!y(+r.slice(1))&&(this[r]=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 r=this;function e(i,e){return f.type="throw",f.arg=t,r.next=i,e&&(r.method="next",r.arg=n),!!e}for(var u=this.tryEntries.length-1;u>=0;--u){var o=this.tryEntries[u],f=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var s=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!c)throw new a("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc<=this.prev&&i.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,p):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),p},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),p}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var e=i.arg;A(r)}return e}}throw new a("illegal catch attempt")},delegateYield:function(t,r,i){return this.delegate={iterator:C(t),resultName:r,nextLoc:i},"next"===this.method&&(this.arg=n),p}}}(t.exports)});function li(){return(li=l.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)l.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}).apply(this,arguments)}function vi(){var t=l.create(null);return t.__=void 0,delete t.__,t}var _i,di,yi=("undefined"!=typeof Map&&"entries"in Map.prototype?Map:void 0)||(_i=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=l.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=vi(),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=vi(),this.size=0},n.keys=function(){return new _i(this.data,function(t,n){return n})},n.values=function(){return new _i(this.data,function(t,n){return t[n]})},n.entries=function(){return new _i(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.Jr="9a04f079-9840-4286-ab92-e65be0885f95",t.$r="edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",t.ns="1077efec-c0b2-4d02-ace3-3c1e52e2fb4b",t.rs="94ce86fb-07ff-4f43-adb8-93d2fa968ca2"}(di||(di={}));var wi,pi=di.Jr,Ei="urn:uuid:"+pi,Ii=di.$r,gi="urn:uuid:"+Ii,Ri=di.ns,ki="urn:uuid:"+Ri,Ti=di.rs,Oi="urn:uuid:"+Ti;!function(t){t.Jr="playready",t.$r="widevine",t.rs="fairplay",t.ns="clearkey",t.us="aes128"}(wi||(wi={}));var mi={hs:wi.Jr,fs:"com.microsoft.playready",vs:"cenc",ds:pi,ls:Ei,_s:"PlayReady"},Si={hs:wi.$r,fs:"com.widevine.alpha",vs:"cenc",ds:Ii,ls:gi,_s:"Widevine"},bi={hs:wi.rs,fs:"com.apple.fps.1_0",vs:"skd",ds:Ti,ls:Oi,_s:"FairPlay"},Ni=(wi.rs,{hs:wi.ns,fs:"org.w3.clearkey",vs:"cenc",ds:Ri,ls:ki,_s:"ClearKey"});var Ai=C.dn&&C._n>=42||C.Nn&&C.Dn>=38||C.Sn||C.In||C.On&&C.Bn>=29;function Di(t,n){return i="audio",null!=(r=t)&&-1!==r.indexOf(i)?{initDataTypes:["cenc"],audioCapabilities:[li({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]}:{initDataTypes:["cenc"],videoCapabilities:[li({contentType:t},n?{robustness:"SW_SECURE_CRYPTO"}:{})]};var r,i}var Ci,Pi=function(){function t(t){this.gs=void 0,this.ys=new yi,this.As=void 0,this.gs=t}var n=t.prototype;return n.Dr=function(){return this.Pr(Si)},n.Ir=function(){return this.Pr(Ni)},n.Nr=function(){return this.Pr(mi)},n.Rr=function(){return this.Pr(bi)},n.Pr=function(t){var n=t.ls,r=this.ys.get(n);if(r)return r;var i=this.Cr(t,'video/mp4; codecs="avc1.42000a"');return this.ys.set(n,i),i},n.Cr=function(t,n){return hi.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,hi.awrap(this.gs.Ts(t.fs,[Di(n,!0)]));case 3:return r.abrupt("return",!0);case 6:return r.prev=6,r.t0=r.catch(0),r.prev=8,r.next=11,hi.awrap(this.gs.Ts(t.fs,[Di(n,!1)]));case 11:return r.abrupt("return",!0);case 14:return r.prev=14,r.t1=r.catch(8),r.abrupt("return",!1);case 17:case"end":return r.stop()}},null,this,[[0,6],[8,14]],Ur)},n.Sr=function(){return this.As||(this.As=this.Ss()),this.As},n.Ss=function(){return hi.async(function(t){for(;;)switch(t.prev=t.next){case 0:if("https:"!==(void 0).protocol){t.next=2;break}case 2:if(Ai){t.next=4;break}return t.abrupt("return",!1);case 4:return t.next=6,hi.awrap(this.Ir());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,Ur)},t}(),Li=function(){function t(){}var n=t.prototype;return n.nf=function(){},n.Nu=function(t){},n.Eu=function(t){},n.if=function(t,n){},t}(),Fi=function(){function t(){}return t.prototype.Ts=function(t,n){return Ur.reject(new h("Unsupported key system configuration"))},t}();!function(t){t.Wf="arraybuffer",t.qf="json",t.Gf="stream",t.Zn="text"}(Ci||(Ci={}));var Ui,Mi=function(){function t(n){var r=this;this.Zr=void 0,this.Zr={},n instanceof t?n.asList().forEach(function(t){var n=t[0],i=t[1];r.append(n,i)}):Array.isArray(n)?n.forEach(function(t){r.append(t[0],t[1])}):n&&l.getOwnPropertyNames(n).forEach(function(t){r.append(t,n[t])})}var n=t.prototype;return n.append=function(t,n){var r=t,i=n;r=xi(r),i=Wi(i);var e=r.toLowerCase();if(this.Zr.hasOwnProperty(e)){var u=this.Zr[e],o=u[1];u[1]=o?o+", "+i:i}else this.Zr[e]=[r,i]},n.delete=function(t){var n=xi(t).toLowerCase();delete this.Zr[n]},n.get=function(t){var n=xi(t).toLowerCase();return this.Zr.hasOwnProperty(n)?this.Zr[n][1]:null},n.has=function(t){var n=xi(t).toLowerCase();return this.Zr.hasOwnProperty(n)},n.set=function(t,n){var r=t,i=(r=xi(r)).toLowerCase();this.Zr[i]=[r,Wi(n)]},n.forEach=function(t,n){for(var r in this.Zr)this.Zr.hasOwnProperty(r)&&t.call(n,this.Zr[r][1],r,this)},n.asList=function(){var t=[];for(var n in this.Zr)if(this.Zr.hasOwnProperty(n)){var r=this.Zr[n],i=r[0],e=r[1];t.push([i,e])}return t},n.Qf=function(){var t={};return this.forEach(function(n,r){t[r]=n}),t},n.Yf=function(t){var n=this;t.forEach(function(t,r){n.append(r,t)})},n.jf=function(t){var n=this;t.forEach(function(t,r){n.set(r,t)})},t}();function xi(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 Wi(t){var n=t;return"string"!=typeof n&&(n=String(n)),n}function Bi(t,n){var r=t.indexOf(n);return-1!==r&&(function(t,n){t.splice(n,1)}(t,r),!0)}function Vi(t){t.length=0}!function(t){t[t.Es=0]="Es",t[t.Is=1]="Is",t[t.Rs=-1]="Rs"}(Ui||(Ui={}));var Gi,Hi,ji,Ki,qi=function(){function t(){this.Ns=!1,this.Ds=!1,this.Cs=[],this.Ps=[]}var n=t.prototype;return n.Os=function(){if(!this.Ns&&!this.Ds){this.Ns=!0;for(var t=0,n=this.Cs.slice();t<n.length;t++){(0,n[t])()}this.Bs()}},n.Bs=function(){if(!this.Ds){this.Ds=!0;for(var t=0,n=this.Ps.slice();t<n.length;t++){(0,n[t])()}Vi(this.Cs),Vi(this.Ps)}},n.Ls=function(t){this.Ds||this.Cs.push(t)},n.Ms=function(t){this.Ds||Bi(this.Cs,t)},n.xs=function(t){this.Ds||this.Ps.push(t)},n.Fs=function(t){this.Ds||Bi(this.Ps,t)},t}(),Xi=function(){function t(){this.Us=new qi}var n=t.prototype;return n.Hs=function(){this.Us.Os()},n.Bs=function(){this.Us.Bs()},n.Vs=function(t){var n=this.Us;if(!n.Ns)if(t.Ns)n.Os();else if(!n.Ds&&!t.Ds){var r=function(){i(),n.Os()},i=function i(){t.Ms(r),t.Fs(i),n.Ms(r),n.Fs(i)};t.Ls(r),t.xs(i),n.Ls(r),n.xs(i)}},n.Xs=function(){var n=new t,r=new t,i=n.zs,e=r.zs,u=this.Us,o=function(){i.Ns&&e.Ds||e.Ns&&i.Ds?u.Os():i.Ds&&e.Ds&&u.Bs()};i.Ls(o),e.Ls(o),i.xs(o),e.xs(o),n.Vs(u),r.Vs(u);return u.xs(function(){i.Ms(o),e.Ms(o),i.Fs(o),e.Fs(o)}),[n,r]},E(t,[{key:"zs",get:function(){return this.Us}}]),t}();!function(t){t.DELETE="DELETE",t.GET="GET",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.POST="POST",t.PUT="PUT"}(Gi||(Gi={})),function(t){t.cl="",t.fl="manifest",t.vl="segment",t.dl="content-protection"}(Hi||(Hi={})),function(t){t.cl="",t.ll="initialization-segment",t._l="fairplay-license",t.wl="fairplay-certificate",t.yl="widevine-license",t.bl="widevine-certificate",t.Al="playready-license",t.Tl="clearkey-license",t.Sl="aes128-key"}(ji||(ji={})),function(t){t.cl="",t.El="audio",t.Il="video",t.Zn="text",t.Rl="image"}(Ki||(Ki={}));var zi,Yi=function(t,n){this.Ud=void 0,this.Zd=void 0,this.Nl=void 0,this.Jd=void 0,this.Dl=void 0,this.zs=void 0,this.hs=void 0,this.Cl=void 0,this.Pl=void 0,this.hl=void 0,this.Ol=void 0,this.Bl=void 0;var r,i,e,u,o,f,s,c,a,h,l,v=t.hl;n?(r=n.Ud,i=n.Zd,e=n.Nl,u=n.Jd,o=n.Dl,f=n.zs,s=n.hs,c=n.Cl,a=n.Pl,h=n.Ol,l=n.Bl):(r=null,i={},e=Gi.GET,u=Ci.Zn,o=0,s=Hi.cl,c=ji.cl,a=Ki.cl,h=!1),this.hl=v,this.Ud=t.Ud||r,this.Zd=new Mi(t.Zd||i),this.Nl=t.Nl||e,this.Jd=t.Jd||u,this.Dl=void 0!==t.Dl?Number(t.Dl)||0:o,this.zs=t.zs||f||(new Xi).zs,this.hs=t.hs||s,this.Cl=t.Cl||c,this.Pl=t.Pl||a,this.Ol=void 0!==t.Ol?Boolean(t.Ol):h,this.Bl=t.Bl||l};!function(t){t.Wl="HttpOpenError",t.ql="HttpResponseError",t.Gl="HttpTimeoutError"}(zi||(zi={}));var $i,Zi,Ji,Qi=function(t){function n(n,r){return t.call(this,n,"Error while opening "+n.hl+". Invalid URL.",r)||this}return g(n,t),E(n,[{key:"name",get:function(){return zi.Wl}}]),n}(function(t){function n(n,r,i){var e;return(e=t.call(this,r,i)||this).Ql=void 0,e.Ql=n,e}return g(n,t),E(n,[{key:"ul",get:function(){return this.Ql}}]),n}($)),te=function(){function t(){}var n=t.prototype;return n.ul=function(t){return Ur.reject(new Qi(new Yi(t)))},n.Ll=function(t){},n.Ml=function(){},t}();new(function(t){function n(){for(var n,r=arguments.length,i=new Array(r),e=0;e<r;e++)i[e]=arguments[e];return(n=t.call.apply(t,[this].concat(i))||this).O_=new Pi(new Fi),n.gm=new te,n.u=new Li,n}return g(n,t),E(n,[{key:"Er",get:function(){return this.O_}},{key:"x_",get:function(){return!1}},{key:"F_",get:function(){return!1}},{key:"U_",get:function(){return!1}},{key:"H_",get:function(){return this.u}},{key:"V_",get:function(){return{X_:L}}},{key:"z_",get:function(){return"default"}},{key:"W_",get:function(){return"unknown"}},{key:"q_",get:function(){return this.gm}}]),n}(ci)),function(t){t[t.MPEGTS_TO_FMP4=0]="MPEGTS_TO_FMP4",t[t.RAW_AUDIO_TO_FMP4=1]="RAW_AUDIO_TO_FMP4"}($i||($i={})),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"}(Zi||(Zi={})),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"}(Ji||(Ji={})),function(t){(Ji||(Ji={})).fromCode=function(t){var n=v.floor(t/1e3);if(n in Ji)return n;throw new h("Invalid error code: "+t)}}();var ne=function(t){function n(n,r,i){var e;return(e=t.call(this,r,i)||this).code=void 0,e.code=n,e}return g(n,t),E(n,[{key:"name",get:function(){return"THEOplayerError"}},{key:"category",get:function(){return Ji.fromCode(this.code)}}]),n}($);let re,ie=new class{constructor(t,n){this.encoding=t,this.fatal=(null==n?void 0:n.fatal)||!1,this.ignoreBOM=(null==n?void 0:n.ignoreBOM)||!1}decode(t,n){if(!t)return"";let r;return r=t instanceof ArrayBuffer?new w(t):new w(t.buffer,t.byteOffset,t.byteLength),String.fromCharCode.apply(void 0,r)}}("utf-8",{ignoreBOM:!0,fatal:!0});ie.decode();let ee=null;function ue(){return null!==ee&&ee.buffer===re.memory.buffer||(ee=new w(re.memory.buffer)),ee}function oe(t,n){return ie.decode(ue().subarray(t,t+n))}const fe=new Array(32).fill(void 0);fe.push(void 0,null,!0,!1);let se=fe.length;function ce(t){se===fe.length&&fe.push(fe.length+1);const n=se;return se=fe[n],fe[n]=t,n}function ae(t){return fe[t]}function he(t){const n=ae(t);return function(t){t<36||(fe[t]=se,se=t)}(t),n}let le=0;function ve(t,n){const r=n(1*t.length);return ue().set(t,r/1),le=t.length,r}let _e=null;function de(){return null!==_e&&_e.buffer===re.memory.buffer||(_e=new Int32Array(re.memory.buffer)),_e}function ye(t){return null==t}function we(t,n){return ue().subarray(t/1,t/1+n)}function pe(t){return he(re.mpegts_to_fmp4(ce(t)))}function Ee(t){return he(re.raw_audio_to_fmp4(ce(t)))}let Ie=new class{constructor(t){this.encoding=t}encode(t){if(!t)return new w(0);const n=new w(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}encodeInto(t,n){const r=v.min(t.length,n.byteLength);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return{read:r,written:r}}}("utf-8");const ge="function"==typeof Ie.encodeInto?function(t,n){return Ie.encodeInto(t,n)}:function(t,n){const r=Ie.encode(t);return n.set(r),{read:t.length,written:r.length}};async function Re(t){void 0===t&&(t=new URL("theomux_bg.wasm",void 0));const n={wbg:{}};n.wbg.__wbindgen_string_new=function(t,n){return ce(oe(t,n))},n.wbg.__wbg_new_59cb74e423758ede=function(){return ce(new a)},n.wbg.__wbg_stack_558ba5917b466edd=function(t,n){var r=function(t,n,r){if(void 0===r){const r=Ie.encode(t),i=n(r.length);return ue().subarray(i,i+r.length).set(r),le=r.length,i}let i=t.length,e=n(i);const u=ue();let o=0;for(;o<i;o++){const n=t.charCodeAt(o);if(n>127)break;u[e+o]=n}if(o!==i){0!==o&&(t=t.slice(o)),e=r(e,i,i=o+3*t.length);const n=ue().subarray(e+o,e+i);o+=ge(t,n).written}return le=o,e}(ae(n).stack,re.__wbindgen_export_0,re.__wbindgen_export_2),i=le;de()[t/4+1]=i,de()[t/4+0]=r},n.wbg.__wbg_error_4bb6c2a97407129a=function(t,n){try{console.error(oe(t,n))}finally{re.__wbindgen_export_1(t,n)}},n.wbg.__wbindgen_object_drop_ref=function(t){he(t)},n.wbg.__wbg_data_6f546cf79b78ac01=function(t,n){var r=ve(ae(n).data,re.__wbindgen_export_0),i=le;de()[t/4+1]=i,de()[t/4+0]=r},n.wbg.__wbg_metadata_6903c7c69e067c51=function(t){var n=ae(t).metadata;return ye(n)?0:ce(n)},n.wbg.__wbg_spsnal_de013568aa871d0e=function(t,n){var r=ae(n).sps_nal,i=ye(r)?0:ve(r,re.__wbindgen_export_0),e=le;de()[t/4+1]=e,de()[t/4+0]=i},n.wbg.__wbg_ppsnal_90061aefa8608f12=function(t,n){var r=ae(n).pps_nal,i=ye(r)?0:ve(r,re.__wbindgen_export_0),e=le;de()[t/4+1]=e,de()[t/4+0]=i},n.wbg.__wbg_videopid_bdf630ec665e5133=function(t){var n=ae(t).video_pid;return ye(n)?16777215:n},n.wbg.__wbg_audiopid_1af42c2f82c6469a=function(t){var n=ae(t).audio_pid;return ye(n)?16777215:n},n.wbg.__wbg_programmaptablepid_63642a9ea89d98a9=function(t){var n=ae(t).program_map_table_pid;return ye(n)?16777215:n},n.wbg.__wbg_createoutputdata_4b103a0032cd3673=function(t,n,r,i,e,u,o,f){let s,c,a,h;return 0!==t&&(s=we(t,n).slice(),re.__wbindgen_export_1(t,1*n)),0!==r&&(c=we(r,i).slice(),re.__wbindgen_export_1(r,1*i)),0!==e&&(a=we(e,u).slice(),re.__wbindgen_export_1(e,1*u)),0!==o&&(h=we(o,f).slice(),re.__wbindgen_export_1(o,1*f)),ce({video_init:s,audio_init:c,video_media:a,audio_media:h})},n.wbg.__wbg_createoutputmetadata_484ad8fd8c0f5781=function(t,n,r,i,e,u,o,f,s,c){let a,h;return 0!==r&&(a=oe(r,i).slice(),re.__wbindgen_export_1(r,1*i)),0!==e&&(h=oe(e,u).slice(),re.__wbindgen_export_1(e,1*u)),ce({video_pid:16777215===t?void 0:t,audio_pid:16777215===n?void 0:n,video_codec:a,audio_codec:h,first_timestamp_low:o>>>0,first_timestamp_high:f>>>0,first_timestamp_timescale:s>>>0,program_map_table_pid:16777215===c?void 0:c})},n.wbg.__wbg_createoutput_70e25d77501f50f3=function(t,n){var r,i;return ce((r=he(t),i=he(n),{data:r,metadata:i}))},n.wbg.__wbindgen_rethrow=function(t){throw he(t)},("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));const{instance:r,module:i}=await async function(t,n){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,n)}catch(n){if("application/wasm"==t.headers.get("Content-Type"))throw n;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n)}const r=await t.arrayBuffer();return await WebAssembly.instantiate(r,n)}{const r=await WebAssembly.instantiate(t,n);return r instanceof WebAssembly.Instance?{instance:r,module:t}:r}}(await t,n);return re=r.exports,Re.__wbindgen_wasm_module=i,re.__wbindgen_start(),re}var ke=new URL("./THEOplayer.transmux.wasm",e.href);!function(n){var r=Ur.resolve(n());function i(n){var i,e,u,o;return hi.async(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,hi.awrap(r);case 2:if(i=f.sent,n.type!==$i.MPEGTS_TO_FMP4){f.next=7;break}e=i.mpegts_to_fmp4(n.input),f.next=12;break;case 7:if(n.type!==$i.RAW_AUDIO_TO_FMP4){f.next=11;break}e=i.raw_audio_to_fmp4(n.input),f.next=12;break;case 11:throw new a("Unknown request type: "+n.type);case 12:u={success:!0,requestId:n.id,output:e},o=[e.data.video_init,e.data.audio_init,e.data.video_media,e.data.audio_media].filter(P).map(function(t){return t.buffer}),t.postMessage(u,o);case 15:case"end":return f.stop()}},null,null,null,Ur)}r.then(function(){t.postMessage({lNt:"3.5.0"})},function(n){var r=n,i={success:!1,error:r.message,errorCode:r instanceof ne?r.code:Zi.MEDIA_DECODE_ERROR};t.postMessage(i)}),t.addEventListener("message",function(n){var r,e,u;return hi.async(function(o){for(;;)switch(o.prev=o.next){case 0:return r=n.data,o.prev=1,o.next=4,hi.awrap(i(n.data));case 4:o.next=11;break;case 6:o.prev=6,o.t0=o.catch(1),e=o.t0,u={success:!1,requestId:r.id,error:e.message,errorCode:e instanceof ne?e.code:Zi.MEDIA_DECODE_ERROR},t.postMessage(u);case 11:case"end":return o.stop()}},null,null,[[1,6]],Ur)})}(function(){return async function(t){return await Re(t),{mpegts_to_fmp4:pe,raw_audio_to_fmp4:Ee}}(ke)})}()}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this);
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@theoplayer/extended",
|
|
3
3
|
"main": "THEOplayer.js",
|
|
4
4
|
"types": "THEOplayer.d.ts",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.5.0",
|
|
6
6
|
"description": "THEOplayer is the universal video player solution, enabling you to quickly deliver cross-platform content playback.",
|
|
7
7
|
"author": "THEO Technologies",
|
|
8
8
|
"homepage": "https://www.theoplayer.com/",
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
"theoplayer.e.js",
|
|
16
16
|
"theoplayer.p.js",
|
|
17
17
|
"THEOplayer.d.ts",
|
|
18
|
+
"THEOplayer.transmux.js",
|
|
19
|
+
"THEOplayer.transmux.asmjs.js",
|
|
20
|
+
"THEOplayer.transmux.wasm",
|
|
18
21
|
"ui.css",
|
|
19
22
|
"iframe.html"
|
|
20
23
|
],
|