UNPKG

@baladshow/plyr-shaka

Version:

A simple, accessible and customizable HTML5, YouTube and Vimeo media player

1 lines 183 kB
"object"==typeof navigator&&function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Plyr",t):(e=e||self).Plyr=t()}(this,function(){"use strict";!function(){if("undefined"!=typeof window)try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var t=function(e,t){var n,i;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i=n.preventDefault,n.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};t.prototype=window.Event.prototype,window.CustomEvent=t}}();var e="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")(),t={}.hasOwnProperty,n=function(e,n){return t.call(e,n)},i=function(e){try{return!!e()}catch(e){return!0}},r=!i(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),a={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,s={f:o&&!a.call({1:2},1)?function(e){var t=o(this,e);return!!t&&t.enumerable}:a},l=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},c={}.toString,u=function(e){return c.call(e).slice(8,-1)},h="".split,f=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==u(e)?h.call(e,""):Object(e)}:Object,d=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},p=function(e){return f(d(e))},m=function(e){return"object"==typeof e?null!==e:"function"==typeof e},g=function(e,t){if(!m(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!m(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!m(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!m(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")},v=e.document,y=m(v)&&m(v.createElement),b=function(e){return y?v.createElement(e):{}},w=!r&&!i(function(){return 7!=Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a}),k=Object.getOwnPropertyDescriptor,T={f:r?k:function(e,t){if(e=p(e),t=g(t,!0),w)try{return k(e,t)}catch(e){}if(n(e,t))return l(!s.f.call(e,t),e[t])}},S=function(e){if(!m(e))throw TypeError(String(e)+" is not an object");return e},E=Object.defineProperty,A={f:r?E:function(e,t,n){if(S(e),t=g(t,!0),S(n),w)try{return E(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P=r?function(e,t,n){return A.f(e,t,l(1,n))}:function(e,t,n){return e[t]=n,e},x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function C(e,t){return e(t={exports:{}},t.exports),t.exports}var L,I,M,N=function(t,n){try{P(e,t,n)}catch(i){e[t]=n}return n},O=C(function(t){var n=e["__core-js_shared__"]||N("__core-js_shared__",{});(t.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.0.1",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),j=O("native-function-to-string",Function.toString),R=e.WeakMap,_="function"==typeof R&&/native code/.test(j.call(R)),U=0,F=Math.random(),q=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++U+F).toString(36))},D=O("keys"),B=function(e){return D[e]||(D[e]=q(e))},H={},V=e.WeakMap;if(_){var z=new V,W=z.get,K=z.has,Y=z.set;L=function(e,t){return Y.call(z,e,t),t},I=function(e){return W.call(z,e)||{}},M=function(e){return K.call(z,e)}}else{var $=B("state");H[$]=!0,L=function(e,t){return P(e,$,t),t},I=function(e){return n(e,$)?e[$]:{}},M=function(e){return n(e,$)}}var G={set:L,get:I,has:M,enforce:function(e){return M(e)?I(e):L(e,{})},getterFor:function(e){return function(t){var n;if(!m(t)||(n=I(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Q=C(function(t){var i=G.get,r=G.enforce,a=String(j).split("toString");O("inspectSource",function(e){return j.call(e)}),(t.exports=function(t,i,o,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,u=!!s&&!!s.noTargetGet;"function"==typeof o&&("string"!=typeof i||n(o,"name")||P(o,"name",i),r(o).source=a.join("string"==typeof i?i:"")),t!==e?(l?!u&&t[i]&&(c=!0):delete t[i],c?t[i]=o:P(t,i,o)):c?t[i]=o:N(i,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&i(this).source||j.call(this)})}),X=Math.ceil,J=Math.floor,Z=function(e){return isNaN(e=+e)?0:(e>0?J:X)(e)},ee=Math.min,te=function(e){return e>0?ee(Z(e),9007199254740991):0},ne=Math.max,ie=Math.min,re=function(e,t){var n=Z(e);return n<0?ne(n+t,0):ie(n,t)},ae=function(e){return function(t,n,i){var r,a=p(t),o=te(a.length),s=re(i,o);if(e&&n!=n){for(;o>s;)if((r=a[s++])!=r)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},oe=ae(!1),se=function(e,t){var i,r=p(e),a=0,o=[];for(i in r)!n(H,i)&&n(r,i)&&o.push(i);for(;t.length>a;)n(r,i=t[a++])&&(~oe(o,i)||o.push(i));return o},le=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ce=le.concat("length","prototype"),ue={f:Object.getOwnPropertyNames||function(e){return se(e,ce)}},he={f:Object.getOwnPropertySymbols},fe=e.Reflect,de=fe&&fe.ownKeys||function(e){var t=ue.f(S(e)),n=he.f;return n?t.concat(n(e)):t},pe=function(e,t){for(var i=de(t),r=A.f,a=T.f,o=0;o<i.length;o++){var s=i[o];n(e,s)||r(e,s,a(t,s))}},me=/#|\.prototype\./,ge=function(e,t){var n=ye[ve(e)];return n==we||n!=be&&("function"==typeof t?i(t):!!t)},ve=ge.normalize=function(e){return String(e).replace(me,".").toLowerCase()},ye=ge.data={},be=ge.NATIVE="N",we=ge.POLYFILL="P",ke=ge,Te=T.f,Se=function(t,n){var i,r,a,o,s,l=t.target,c=t.global,u=t.stat;if(i=c?e:u?e[l]||N(l,{}):(e[l]||{}).prototype)for(r in n){if(o=n[r],a=t.noTargetGet?(s=Te(i,r))&&s.value:i[r],!ke(c?r:l+(u?".":"#")+r,t.forced)&&void 0!==a){if(typeof o==typeof a)continue;pe(o,a)}(t.sham||a&&a.sham)&&P(o,"sham",!0),Q(i,r,o,t)}},Ee=!i(function(){return!String(Symbol())}),Ae=O("wks"),Pe=e.Symbol,xe=function(e){return Ae[e]||(Ae[e]=Ee&&Pe[e]||(Ee?Pe:q)("Symbol."+e))},Ce=A.f,Le=xe("toStringTag"),Ie=function(e,t,i){e&&!n(e=i?e:e.prototype,Le)&&Ce(e,Le,{configurable:!0,value:t})},Me={f:xe},Ne=e,Oe=A.f,je=function(e){var t=Ne.Symbol||(Ne.Symbol={});n(t,e)||Oe(t,e,{value:Me.f(e)})},Re=Object.keys||function(e){return se(e,le)},_e=Array.isArray||function(e){return"Array"==u(e)},Ue=r?Object.defineProperties:function(e,t){S(e);for(var n,i=Re(t),r=i.length,a=0;r>a;)A.f(e,n=i[a++],t[n]);return e},Fe=e.document,qe=Fe&&Fe.documentElement,De=B("IE_PROTO"),Be=function(){},He=function(){var e,t=b("iframe"),n=le.length;for(t.style.display="none",qe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),He=e.F;n--;)delete He.prototype[le[n]];return He()},Ve=Object.create||function(e,t){var n;return null!==e?(Be.prototype=S(e),n=new Be,Be.prototype=null,n[De]=e):n=He(),void 0===t?n:Ue(n,t)};H[De]=!0;var ze=ue.f,We={}.toString,Ke="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ye={f:function(e){return Ke&&"[object Window]"==We.call(e)?function(e){try{return ze(e)}catch(e){return Ke.slice()}}(e):ze(p(e))}},$e=B("hidden"),Ge=G.set,Qe=G.getterFor("Symbol"),Xe=T.f,Je=A.f,Ze=Ye.f,et=e.Symbol,tt=e.JSON,nt=tt&&tt.stringify,it=xe("toPrimitive"),rt=s.f,at=O("symbol-registry"),ot=O("symbols"),st=O("op-symbols"),lt=O("wks"),ct=Object.prototype,ut=e.QObject,ht=!ut||!ut.prototype||!ut.prototype.findChild,ft=r&&i(function(){return 7!=Ve(Je({},"a",{get:function(){return Je(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=Xe(ct,t);i&&delete ct[t],Je(e,t,n),i&&e!==ct&&Je(ct,t,i)}:Je,dt=function(e,t){var n=ot[e]=Ve(et.prototype);return Ge(n,{type:"Symbol",tag:e,description:t}),r||(n.description=t),n},pt=Ee&&"symbol"==typeof et.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof et},mt=function(e,t,i){return e===ct&&mt(st,t,i),S(e),t=g(t,!0),S(i),n(ot,t)?(i.enumerable?(n(e,$e)&&e[$e][t]&&(e[$e][t]=!1),i=Ve(i,{enumerable:l(0,!1)})):(n(e,$e)||Je(e,$e,l(1,{})),e[$e][t]=!0),ft(e,t,i)):Je(e,t,i)},gt=function(e,t){S(e);for(var n,i=function(e){var t=Re(e),n=he.f;if(n)for(var i,r=n(e),a=s.f,o=0;r.length>o;)a.call(e,i=r[o++])&&t.push(i);return t}(t=p(t)),r=0,a=i.length;a>r;)mt(e,n=i[r++],t[n]);return e},vt=function(e){var t=rt.call(this,e=g(e,!0));return!(this===ct&&n(ot,e)&&!n(st,e))&&(!(t||!n(this,e)||!n(ot,e)||n(this,$e)&&this[$e][e])||t)},yt=function(e,t){if(e=p(e),t=g(t,!0),e!==ct||!n(ot,t)||n(st,t)){var i=Xe(e,t);return!i||!n(ot,t)||n(e,$e)&&e[$e][t]||(i.enumerable=!0),i}},bt=function(e){for(var t,i=Ze(p(e)),r=[],a=0;i.length>a;)n(ot,t=i[a++])||n(H,t)||r.push(t);return r},wt=function(e){for(var t,i=e===ct,r=Ze(i?st:p(e)),a=[],o=0;r.length>o;)!n(ot,t=r[o++])||i&&!n(ct,t)||a.push(ot[t]);return a};Ee||(Q((et=function(){if(this instanceof et)throw TypeError("Symbol is not a constructor");var e=void 0===arguments[0]?void 0:String(arguments[0]),t=q(e),i=function(e){this===ct&&i.call(st,e),n(this,$e)&&n(this[$e],t)&&(this[$e][t]=!1),ft(this,t,l(1,e))};return r&&ht&&ft(ct,t,{configurable:!0,set:i}),dt(t,e)}).prototype,"toString",function(){return Qe(this).tag}),s.f=vt,A.f=mt,T.f=yt,ue.f=Ye.f=bt,he.f=wt,r&&(Je(et.prototype,"description",{configurable:!0,get:function(){return Qe(this).description}}),Q(ct,"propertyIsEnumerable",vt,{unsafe:!0})),Me.f=function(e){return dt(xe(e),e)}),Se({global:!0,wrap:!0,forced:!Ee,sham:!Ee},{Symbol:et});for(var kt=Re(lt),Tt=0;kt.length>Tt;)je(kt[Tt++]);Se({target:"Symbol",stat:!0,forced:!Ee},{for:function(e){return n(at,e+="")?at[e]:at[e]=et(e)},keyFor:function(e){if(!pt(e))throw TypeError(e+" is not a symbol");for(var t in at)if(at[t]===e)return t},useSetter:function(){ht=!0},useSimple:function(){ht=!1}}),Se({target:"Object",stat:!0,forced:!Ee,sham:!r},{create:function(e,t){return void 0===t?Ve(e):gt(Ve(e),t)},defineProperty:mt,defineProperties:gt,getOwnPropertyDescriptor:yt}),Se({target:"Object",stat:!0,forced:!Ee},{getOwnPropertyNames:bt,getOwnPropertySymbols:wt}),tt&&Se({target:"JSON",stat:!0,forced:!Ee||i(function(){var e=et();return"[null]"!=nt([e])||"{}"!=nt({a:e})||"{}"!=nt(Object(e))})},{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=t=i[1],(m(t)||void 0!==e)&&!pt(e))return _e(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!pt(t))return t}),i[1]=t,nt.apply(tt,i)}}),et.prototype[it]||P(et.prototype,it,et.prototype.valueOf),Ie(et,"Symbol"),H[$e]=!0;var St=A.f,Et=e.Symbol;if(r&&"function"==typeof Et&&(!("description"in Et.prototype)||void 0!==Et().description)){var At={},Pt=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Pt?new Et(e):void 0===e?Et():Et(e);return""===e&&(At[t]=!0),t};pe(Pt,Et);var xt=Pt.prototype=Et.prototype;xt.constructor=Pt;var Ct=xt.toString,Lt="Symbol(test)"==String(Et("test")),It=/^Symbol\((.*)\)[^)]+$/;St(xt,"description",{configurable:!0,get:function(){var e=m(this)?this.valueOf():this,t=Ct.call(e);if(n(At,e))return"";var i=Lt?t.slice(7,-1):t.replace(It,"$1");return""===i?void 0:i}}),Se({global:!0,forced:!0},{Symbol:Pt})}je("iterator");var Mt=xe("unscopables"),Nt=Array.prototype;null==Nt[Mt]&&P(Nt,Mt,Ve(null));var Ot,jt,Rt,_t=function(e){Nt[Mt][e]=!0},Ut={},Ft=function(e){return Object(d(e))},qt=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Dt=B("IE_PROTO"),Bt=Object.prototype,Ht=qt?Object.getPrototypeOf:function(e){return e=Ft(e),n(e,Dt)?e[Dt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Bt:null},Vt=xe("iterator"),zt=!1;[].keys&&("next"in(Rt=[].keys())?(jt=Ht(Ht(Rt)))!==Object.prototype&&(Ot=jt):zt=!0),null==Ot&&(Ot={}),n(Ot,Vt)||P(Ot,Vt,function(){return this});var Wt={IteratorPrototype:Ot,BUGGY_SAFARI_ITERATORS:zt},Kt=Wt.IteratorPrototype,Yt=function(){return this},$t=function(e,t,n){var i=t+" Iterator";return e.prototype=Ve(Kt,{next:l(1,n)}),Ie(e,i,!1),Ut[i]=Yt,e},Gt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return function(e,t){if(S(e),!m(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n,i),t?e.call(n,i):n.__proto__=i,n}}():void 0),Qt=xe("iterator"),Xt=Wt.IteratorPrototype,Jt=Wt.BUGGY_SAFARI_ITERATORS,Zt=function(){return this},en=function(e,t,n,i,r,a,o){$t(n,t,i);var s,l,c,u=function(e){if(e===r&&m)return m;if(!Jt&&e in d)return d[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",f=!1,d=e.prototype,p=d[Qt]||d["@@iterator"]||r&&d[r],m=!Jt&&p||u(r),g="Array"==t&&d.entries||p;if(g&&(s=Ht(g.call(new e)),Xt!==Object.prototype&&s.next&&(Ht(s)!==Xt&&(Gt?Gt(s,Xt):"function"!=typeof s[Qt]&&P(s,Qt,Zt)),Ie(s,h,!0))),"values"==r&&p&&"values"!==p.name&&(f=!0,m=function(){return p.call(this)}),d[Qt]!==m&&P(d,Qt,m),Ut[t]=m,r)if(l={values:u("values"),keys:a?m:u("keys"),entries:u("entries")},o)for(c in l)!Jt&&!f&&c in d||Q(d,c,l[c]);else Se({target:t,proto:!0,forced:Jt||f},l);return l},tn=G.set,nn=G.getterFor("Array Iterator"),rn=en(Array,"Array",function(e,t){tn(this,{type:"Array Iterator",target:p(e),index:0,kind:t})},function(){var e=nn(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}},"values");Ut.Arguments=Ut.Array,_t("keys"),_t("values"),_t("entries");var an=function(e,t){var n=[][e];return!n||!i(function(){n.call(null,t||function(){throw 1},1)})},on=[].join,sn=f!=Object,ln=an("join",",");Se({target:"Array",proto:!0,forced:sn||ln},{join:function(e){return on.call(p(this),void 0===e?",":e)}});var cn=function(e,t,n){var i=g(t);i in e?A.f(e,i,l(0,n)):e[i]=n},un=xe("species"),hn=function(e){return!i(function(){var t=[];return(t.constructor={})[un]=function(){return{foo:1}},1!==t[e](Boolean).foo})},fn=xe("species"),dn=[].slice,pn=Math.max,mn=hn("slice");Se({target:"Array",proto:!0,forced:!mn},{slice:function(e,t){var n,i,r,a=p(this),o=te(a.length),s=re(e,o),l=re(void 0===t?o:t,o);if(_e(a)&&("function"!=typeof(n=a.constructor)||n!==Array&&!_e(n.prototype)?m(n)&&null===(n=n[fn])&&(n=void 0):n=void 0,n===Array||void 0===n))return dn.call(a,s,l);for(i=new(void 0===n?Array:n)(pn(l-s,0)),r=0;s<l;s++,r++)s in a&&cn(i,r,a[s]);return i.length=r,i}});var gn=xe("toStringTag"),vn="Arguments"==u(function(){return arguments}()),yn=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),gn))?n:vn?u(t):"Object"==(i=u(t))&&"function"==typeof t.callee?"Arguments":i},bn={};bn[xe("toStringTag")]="z";var wn="[object z]"!==String(bn)?function(){return"[object "+yn(this)+"]"}:bn.toString,kn=Object.prototype;wn!==kn.toString&&Q(kn,"toString",wn,{unsafe:!0});var Tn=function(){var e=S(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Sn=/./.toString,En=i(function(){return"/a/b"!=Sn.call({source:"a",flags:"b"})}),An="toString"!=Sn.name;(En||An)&&Q(RegExp.prototype,"toString",function(){var e=S(this);return"/".concat(e.source,"/","flags"in e?e.flags:!r&&e instanceof RegExp?Tn.call(e):void 0)},{unsafe:!0});var Pn=function(e,t,n){var i,r,a=String(d(e)),o=Z(t),s=a.length;return o<0||o>=s?n?"":void 0:(i=a.charCodeAt(o))<55296||i>56319||o+1===s||(r=a.charCodeAt(o+1))<56320||r>57343?n?a.charAt(o):i:n?a.slice(o,o+2):r-56320+(i-55296<<10)+65536},xn=G.set,Cn=G.getterFor("String Iterator");en(String,"String",function(e){xn(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=Cn(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=Pn(n,i,!0),t.index+=e.length,{value:e,done:!1})});var Ln=function(e,t,n){return t+(n?Pn(e,t,!0).length:1)},In=RegExp.prototype.exec,Mn=String.prototype.replace,Nn=In,On=function(){var e=/a/,t=/b*/g;return In.call(e,"a"),In.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),jn=void 0!==/()??/.exec("")[1];(On||jn)&&(Nn=function(e){var t,n,i,r,a=this;return jn&&(n=new RegExp("^"+a.source+"$(?!\\s)",Tn.call(a))),On&&(t=a.lastIndex),i=In.call(a,e),On&&i&&(a.lastIndex=a.global?i.index+i[0].length:t),jn&&i&&i.length>1&&Mn.call(i[0],n,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)}),i});var Rn=Nn,_n=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==u(e))throw TypeError("RegExp#exec called on incompatible receiver");return Rn.call(e,t)},Un=xe("species"),Fn=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),qn=!i(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),Dn=function(e,t,n,r){var a=xe(e),o=!i(function(){var t={};return t[a]=function(){return 7},7!=""[e](t)}),s=o&&!i(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[Un]=function(){return n}),n[a](""),!t});if(!o||!s||"replace"===e&&!Fn||"split"===e&&!qn){var l=/./[a],c=n(a,""[e],function(e,t,n,i,r){return t.exec===Rn?o&&!r?{done:!0,value:l.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),u=c[0],h=c[1];Q(String.prototype,e,u),Q(RegExp.prototype,a,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)}),r&&P(RegExp.prototype[a],"sham",!0)}},Bn=Math.max,Hn=Math.min,Vn=Math.floor,zn=/\$([$&`']|\d\d?|<[^>]*>)/g,Wn=/\$([$&`']|\d\d?)/g;Dn("replace",2,function(e,t,n){return[function(n,i){var r=d(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,r,i):t.call(String(r),n,i)},function(e,r){var a=n(t,e,this,r);if(a.done)return a.value;var o=S(e),s=String(this),l="function"==typeof r;l||(r=String(r));var c=o.global;if(c){var u=o.unicode;o.lastIndex=0}for(var h=[];;){var f=_n(o,s);if(null===f)break;if(h.push(f),!c)break;""===String(f[0])&&(o.lastIndex=Ln(s,te(o.lastIndex),u))}for(var d,p="",m=0,g=0;g<h.length;g++){f=h[g];for(var v=String(f[0]),y=Bn(Hn(Z(f.index),s.length),0),b=[],w=1;w<f.length;w++)b.push(void 0===(d=f[w])?d:String(d));var k=f.groups;if(l){var T=[v].concat(b,y,s);void 0!==k&&T.push(k);var E=String(r.apply(void 0,T))}else E=i(v,s,y,b,k,r);y>=m&&(p+=s.slice(m,y)+E,m=y+v.length)}return p+s.slice(m)}];function i(e,n,i,r,a,o){var s=i+e.length,l=r.length,c=Wn;return void 0!==a&&(a=Ft(a),c=zn),t.call(o,c,function(t,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(s);case"<":c=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>l){var h=Vn(u/10);return 0===h?t:h<=l?void 0===r[h-1]?o.charAt(1):r[h-1]+o.charAt(1):t}c=r[u-1]}return void 0===c?"":c})}});var Kn=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Dn("search",1,function(e,t,n){return[function(t){var n=d(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var r=S(e),a=String(this),o=r.lastIndex;Kn(o,0)||(r.lastIndex=0);var s=_n(r,a);return Kn(r.lastIndex,o)||(r.lastIndex=o),null===s?-1:s.index}]});var Yn=xe("match"),$n=function(e){var t;return m(e)&&(void 0!==(t=e[Yn])?!!t:"RegExp"==u(e))},Gn=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Qn=xe("species"),Xn=function(e,t){var n,i=S(e).constructor;return void 0===i||null==(n=S(i)[Qn])?t:Gn(n)},Jn=[].push,Zn=Math.min,ei=!i(function(){return!RegExp(4294967295,"y")});Dn("split",2,function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(d(this)),r=void 0===n?4294967295:n>>>0;if(0===r)return[];if(void 0===e)return[i];if(!$n(e))return t.call(i,e,r);for(var a,o,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,h=new RegExp(e.source,c+"g");(a=Rn.call(h,i))&&!((o=h.lastIndex)>u&&(l.push(i.slice(u,a.index)),a.length>1&&a.index<i.length&&Jn.apply(l,a.slice(1)),s=a[0].length,u=o,l.length>=r));)h.lastIndex===a.index&&h.lastIndex++;return u===i.length?!s&&h.test("")||l.push(""):l.push(i.slice(u)),l.length>r?l.slice(0,r):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=d(this),a=null==t?void 0:t[e];return void 0!==a?a.call(t,r,n):i.call(String(r),t,n)},function(e,r){var a=n(i,e,this,r,i!==t);if(a.done)return a.value;var o=S(e),s=String(this),l=Xn(o,RegExp),c=o.unicode,u=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(ei?"y":"g"),h=new l(ei?o:"^(?:"+o.source+")",u),f=void 0===r?4294967295:r>>>0;if(0===f)return[];if(0===s.length)return null===_n(h,s)?[s]:[];for(var d=0,p=0,m=[];p<s.length;){h.lastIndex=ei?p:0;var g,v=_n(h,ei?s:s.slice(p));if(null===v||(g=Zn(te(h.lastIndex+(ei?0:p)),s.length))===d)p=Ln(s,p,c);else{if(m.push(s.slice(d,p)),m.length===f)return m;for(var y=1;y<=v.length-1;y++)if(m.push(v[y]),m.length===f)return m;p=d=g}}return m.push(s.slice(d)),m}]},!ei);var ti={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ni=function(e,t,n){if(Gn(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}},ii=xe("species"),ri=function(e,t){var n;return _e(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!_e(n.prototype)?m(n)&&null===(n=n[ii])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},ai=function(e,t){var n=1==e,i=2==e,r=3==e,a=4==e,o=6==e,s=5==e||o,l=t||ri;return function(t,c,u){for(var h,d,p=Ft(t),m=f(p),g=ni(c,u,3),v=te(m.length),y=0,b=n?l(t,v):i?l(t,0):void 0;v>y;y++)if((s||y in m)&&(d=g(h=m[y],y,p),e))if(n)b[y]=d;else if(d)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:b.push(h)}else if(a)return!1;return o?-1:r||a?a:b}},oi=[].forEach,si=ai(0),li=an("forEach")?function(e){return si(this,e,arguments[1])}:oi;for(var ci in ti){var ui=e[ci],hi=ui&&ui.prototype;if(hi&&hi.forEach!==li)try{P(hi,"forEach",li)}catch(e){hi.forEach=li}}var fi=xe("iterator"),di=xe("toStringTag"),pi=rn.values;for(var mi in ti){var gi=e[mi],vi=gi&&gi.prototype;if(vi){if(vi[fi]!==pi)try{P(vi,fi,pi)}catch(e){vi[fi]=pi}if(vi[di]||P(vi,di,mi),ti[mi])for(var yi in rn)if(vi[yi]!==rn[yi])try{P(vi,yi,rn[yi])}catch(e){vi[yi]=rn[yi]}}}var bi=xe("iterator"),wi=!i(function(){var e=new URL("b?e=1","http://a"),t=e.searchParams;return e.pathname="c%20d",!t.sort||"http://a/c%20d?e=1"!==e.href||"1"!==t.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[bi]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash}),ki=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Ti=Object.assign,Si=!Ti||i(function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=Ti({},e)[n]||"abcdefghijklmnopqrst"!=Re(Ti({},t)).join("")})?function(e,t){for(var n=Ft(e),i=arguments.length,r=1,a=he.f,o=s.f;i>r;)for(var l,c=f(arguments[r++]),u=a?Re(c).concat(a(c)):Re(c),h=u.length,d=0;h>d;)o.call(c,l=u[d++])&&(n[l]=c[l]);return n}:Ti,Ei=function(e,t,n,i){try{return i?t(S(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&S(r.call(e)),t}},Ai=xe("iterator"),Pi=Array.prototype,xi=function(e){return void 0!==e&&(Ut.Array===e||Pi[Ai]===e)},Ci=xe("iterator"),Li=function(e){if(null!=e)return e[Ci]||e["@@iterator"]||Ut[yn(e)]},Ii=function(e){var t,n,i,r,a=Ft(e),o="function"==typeof this?this:Array,s=arguments.length,l=s>1?arguments[1]:void 0,c=void 0!==l,u=0,h=Li(a);if(c&&(l=ni(l,s>2?arguments[2]:void 0,2)),null==h||o==Array&&xi(h))for(n=new o(t=te(a.length));t>u;u++)cn(n,u,c?l(a[u],u):a[u]);else for(r=h.call(a),n=new o;!(i=r.next()).done;u++)cn(n,u,c?Ei(r,l,[i.value,u],!0):i.value);return n.length=u,n},Mi=/[^\0-\u007E]/,Ni=/[\u002E\u3002\uFF0E\uFF61]/g,Oi="Overflow: input needs wider integers to process",ji=Math.floor,Ri=String.fromCharCode,_i=function(e){return e+22+75*(e<26)},Ui=function(e,t,n){var i=0;for(e=n?ji(e/700):e>>1,e+=ji(e/t);e>455;i+=36)e=ji(e/35);return ji(i+36*e/(e+38))},Fi=function(e){var t,n,i=[],r=(e=function(e){for(var t=[],n=0,i=e.length;n<i;){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var a=e.charCodeAt(n++);56320==(64512&a)?t.push(((1023&r)<<10)+(1023&a)+65536):(t.push(r),n--)}else t.push(r)}return t}(e)).length,a=128,o=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&i.push(Ri(n));var l=i.length,c=l;for(l&&i.push("-");c<r;){var u=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=a&&n<u&&(u=n);var h=c+1;if(u-a>ji((2147483647-o)/h))throw RangeError(Oi);for(o+=(u-a)*h,a=u,t=0;t<e.length;t++){if((n=e[t])<a&&++o>2147483647)throw RangeError(Oi);if(n==a){for(var f=o,d=36;;d+=36){var p=d<=s?1:d>=s+26?26:d-s;if(f<p)break;var m=f-p,g=36-p;i.push(Ri(_i(p+m%g))),f=ji(m/g)}i.push(Ri(_i(f))),s=Ui(o,h,c==l),o=0,++c}}++o,++a}return i.join("")},qi=function(e,t,n){for(var i in t)Q(e,i,t[i],n);return e},Di=function(e){var t=Li(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return S(t.call(e))},Bi=xe("iterator"),Hi=G.set,Vi=G.getterFor("URLSearchParams"),zi=G.getterFor("URLSearchParamsIterator"),Wi=/\+/g,Ki=Array(4),Yi=function(e){return Ki[e-1]||(Ki[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},$i=function(e){try{return decodeURIComponent(e)}catch(t){return e}},Gi=function(e){for(var t=e.replace(Wi," "),n=4;n;)t=t.replace(Yi(n--),$i);return t},Qi=/[!'()~]|%20/g,Xi={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ji=function(e){return Xi[e]},Zi=function(e){return encodeURIComponent(e).replace(Qi,Ji)},er=function(e,t){if(t)for(var n,i,r=t.split("&"),a=0;a<r.length;)(n=r[a++]).length&&(i=n.split("="),e.push({key:Gi(i.shift()),value:Gi(i.join("="))}));return e},tr=function(e){this.entries.length=0,er(this.entries,e)},nr=function(e,t){if(e<t)throw TypeError("Not enough arguments")},ir=$t(function(e,t){Hi(this,{type:"URLSearchParamsIterator",iterator:Di(Vi(e).entries),kind:t})},"Iterator",function(){var e=zi(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n}),rr=function(){ki(this,rr,"URLSearchParams");var e,t,i,r,a,o,s,l=arguments.length>0?arguments[0]:void 0,c=[];if(Hi(this,{type:"URLSearchParams",entries:c,updateURL:null,updateSearchParams:tr}),void 0!==l)if(m(l))if("function"==typeof(e=Li(l)))for(t=e.call(l);!(i=t.next()).done;){if((a=(r=Di(S(i.value))).next()).done||(o=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");c.push({key:a.value+"",value:o.value+""})}else for(s in l)n(l,s)&&c.push({key:s,value:l[s]+""});else er(c,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},ar=rr.prototype;qi(ar,{append:function(e,t){nr(arguments.length,2);var n=Vi(this);n.entries.push({key:e+"",value:t+""}),n.updateURL&&n.updateURL()},delete:function(e){nr(arguments.length,1);for(var t=Vi(this),n=t.entries,i=e+"",r=0;r<n.length;)n[r].key===i?n.splice(r,1):r++;t.updateURL&&t.updateURL()},get:function(e){nr(arguments.length,1);for(var t=Vi(this).entries,n=e+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){nr(arguments.length,1);for(var t=Vi(this).entries,n=e+"",i=[],r=0;r<t.length;r++)t[r].key===n&&i.push(t[r].value);return i},has:function(e){nr(arguments.length,1);for(var t=Vi(this).entries,n=e+"",i=0;i<t.length;)if(t[i++].key===n)return!0;return!1},set:function(e,t){nr(arguments.length,1);for(var n,i=Vi(this),r=i.entries,a=!1,o=e+"",s=t+"",l=0;l<r.length;l++)(n=r[l]).key===o&&(a?r.splice(l--,1):(a=!0,n.value=s));a||r.push({key:o,value:s}),i.updateURL&&i.updateURL()},sort:function(){var e,t,n,i=Vi(this),r=i.entries,a=r.slice();for(r.length=0,t=0;t<a.length;t++){for(e=a[t],n=0;n<t;n++)if(r[n].key>e.key){r.splice(n,0,e);break}n===t&&r.push(e)}i.updateURL&&i.updateURL()},forEach:function(e){for(var t,n=Vi(this).entries,i=ni(e,arguments.length>1?arguments[1]:void 0,3),r=0;r<n.length;)i((t=n[r++]).value,t.key,this)},keys:function(){return new ir(this,"keys")},values:function(){return new ir(this,"values")},entries:function(){return new ir(this,"entries")}},{enumerable:!0}),Q(ar,Bi,ar.entries),Q(ar,"toString",function(){for(var e,t=Vi(this).entries,n=[],i=0;i<t.length;)e=t[i++],n.push(Zi(e.key)+"="+Zi(e.value));return n.join("&")},{enumerable:!0}),Ie(rr,"URLSearchParams"),Se({global:!0,forced:!wi},{URLSearchParams:rr});var or,sr={URLSearchParams:rr,getState:Vi},lr=e.URL,cr=sr.URLSearchParams,ur=sr.getState,hr=G.set,fr=G.getterFor("URL"),dr=Math.pow,pr=/[a-zA-Z]/,mr=/[a-zA-Z0-9+\-.]/,gr=/\d/,vr=/^(0x|0X)/,yr=/^[0-7]+$/,br=/^\d+$/,wr=/^[0-9A-Fa-f]+$/,kr=/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/,Tr=/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/,Sr=/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,Er=/\u0009|\u000A|\u000D/g,Ar=function(e,t){var n,i,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=xr(t.slice(1,-1))))return"Invalid host";e.host=n}else if(Rr(e)){if(t=function(e){var t,n,i=[],r=e.toLowerCase().replace(Ni,".").split(".");for(t=0;t<r.length;t++)n=r[t],i.push(Mi.test(n)?"xn--"+Fi(n):n);return i.join(".")}(t),kr.test(t))return"Invalid host";if(null===(n=Pr(t)))return"Invalid host";e.host=n}else{if(Tr.test(t))return"Invalid host";for(n="",i=Ii(t),r=0;r<i.length;r++)n+=Or(i[r],Lr);e.host=n}},Pr=function(e){var t,n,i,r,a,o,s,l=e.split(".");if(""==l[l.length-1]&&l.length&&l.pop(),(t=l.length)>4)return e;for(n=[],i=0;i<t;i++){if(""==(r=l[i]))return e;if(a=10,r.length>1&&"0"==r.charAt(0)&&(a=vr.test(r)?16:8,r=r.slice(8==a?1:2)),""===r)o=0;else{if(!(10==a?br:8==a?yr:wr).test(r))return e;o=parseInt(r,a)}n.push(o)}for(i=0;i<t;i++)if(o=n[i],i==t-1){if(o>=dr(256,5-t))return null}else if(o>255)return null;for(s=n.pop(),i=0;i<n.length;i++)s+=n[i]*dr(256,3-i);return s},xr=function(e){var t,n,i,r,a,o,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,h=0,f=function(){return e.charAt(h)};if(":"==f()){if(":"!=e.charAt(1))return;h+=2,u=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=n=0;n<4&&wr.test(f());)t=16*t+parseInt(f(),16),h++,n++;if("."==f()){if(0==n)return;if(h-=n,c>6)return;for(i=0;f();){if(r=null,i>0){if(!("."==f()&&i<4))return;h++}if(!gr.test(f()))return;for(;gr.test(f());){if(a=parseInt(f(),10),null===r)r=a;else{if(0==r)return;r=10*r+a}if(r>255)return;h++}l[c]=256*l[c]+r,2!=++i&&4!=i||c++}if(4!=i)return;break}if(":"==f()){if(h++,!f())return}else if(f())return;l[c++]=t}else{if(null!==u)return;h++,u=++c}}if(null!==u)for(o=c-u,c=7;0!=c&&o>0;)s=l[c],l[c--]=l[u+o-1],l[u+--o]=s;else if(8!=c)return;return l},Cr=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=Math.floor(e/256);return t.join(".")}if("object"==typeof e){for(t="",i=function(e){for(var t=null,n=1,i=null,r=0,a=0;a<8;a++)0!==e[a]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=a),++r);return r>n&&(t=i,n=r),t}(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},Lr={},Ir=Si({},Lr,{" ":1,'"':1,"<":1,">":1,"`":1}),Mr=Si({},Ir,{"#":1,"?":1,"{":1,"}":1}),Nr=Si({},Mr,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Or=function(e,t){var i=Pn(e,0);return i>32&&i<127&&!n(t,e)?e:encodeURIComponent(e)},jr={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},Rr=function(e){return n(jr,e.scheme)},_r=function(e){return""!=e.username||""!=e.password},Ur=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Fr=function(e,t){var n;return 2==e.length&&pr.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},qr=function(e){var t;return e.length>1&&Fr(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Dr=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Fr(t[0],!0)||t.pop()},Br=function(e){return"."===e||"%2e"===e.toLowerCase()},Hr={},Vr={},zr={},Wr={},Kr={},Yr={},$r={},Gr={},Qr={},Xr={},Jr={},Zr={},ea={},ta={},na={},ia={},ra={},aa={},oa={},sa={},la={},ca=function(e,t,i,r){var a,o,s,l,c,u=i||Hr,h=0,f="",d=!1,p=!1,m=!1;for(i||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(Sr,"")),t=t.replace(Er,""),a=Ii(t);h<=a.length;){switch(o=a[h],u){case Hr:if(!o||!pr.test(o)){if(i)return"Invalid scheme";u=zr;continue}f+=o.toLowerCase(),u=Vr;break;case Vr:if(o&&(mr.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(i)return"Invalid scheme";f="",u=zr,h=0;continue}if(i&&(Rr(e)!=n(jr,f)||"file"==f&&(_r(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,i)return void(Rr(e)&&jr[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?u=ta:Rr(e)&&r&&r.scheme==e.scheme?u=Wr:Rr(e)?u=Gr:"/"==a[h+1]?(u=Kr,h++):(e.cannotBeABaseURL=!0,e.path.push(""),u=oa)}break;case zr:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,u=la;break}u="file"==r.scheme?ta:Yr;continue;case Wr:if("/"!=o||"/"!=a[h+1]){u=Yr;continue}u=Qr,h++;break;case Kr:if("/"==o){u=Xr;break}u=aa;continue;case Yr:if(e.scheme=r.scheme,o==or)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==o||"\\"==o&&Rr(e))u=$r;else if("?"==o)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",u=sa;else{if("#"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),u=aa;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",u=la}break;case $r:if(!Rr(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,u=aa;continue}u=Xr}else u=Qr;break;case Gr:if(u=Qr,"/"!=o||"/"!=f.charAt(h+1))continue;h++;break;case Qr:if("/"!=o&&"\\"!=o){u=Xr;continue}break;case Xr:if("@"==o){d&&(f="%40"+f),d=!0,s=Ii(f);for(var g=0;g<s.length;g++){var v=s[g];if(":"!=v||m){var y=Or(v,Nr);m?e.password+=y:e.username+=y}else m=!0}f=""}else if(o==or||"/"==o||"?"==o||"#"==o||"\\"==o&&Rr(e)){if(d&&""==f)return"Invalid authority";h-=Ii(f).length+1,f="",u=Jr}else f+=o;break;case Jr:case Zr:if(i&&"file"==e.scheme){u=ia;continue}if(":"!=o||p){if(o==or||"/"==o||"?"==o||"#"==o||"\\"==o&&Rr(e)){if(Rr(e)&&""==f)return"Invalid host";if(i&&""==f&&(_r(e)||null!==e.port))return;if(l=Ar(e,f))return l;if(f="",u=ra,i)return;continue}"["==o?p=!0:"]"==o&&(p=!1),f+=o}else{if(""==f)return"Invalid host";if(l=Ar(e,f))return l;if(f="",u=ea,i==Zr)return}break;case ea:if(!gr.test(o)){if(o==or||"/"==o||"?"==o||"#"==o||"\\"==o&&Rr(e)||i){if(""!=f){var b=parseInt(f,10);if(b>65535)return"Invalid port";e.port=Rr(e)&&b===jr[e.scheme]?null:b,f=""}if(i)return;u=ra;continue}return"Invalid port"}f+=o;break;case ta:if(e.scheme="file","/"==o||"\\"==o)u=na;else{if(!r||"file"!=r.scheme){u=aa;continue}if(o==or)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==o)e.host=r.host,e.path=r.path.slice(),e.query="",u=sa;else{if("#"!=o){qr(a.slice(h).join(""))||(e.host=r.host,e.path=r.path.slice(),Dr(e)),u=aa;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",u=la}}break;case na:if("/"==o||"\\"==o){u=ia;break}r&&"file"==r.scheme&&!qr(a.slice(h).join(""))&&(Fr(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),u=aa;continue;case ia:if(o==or||"/"==o||"\\"==o||"?"==o||"#"==o){if(!i&&Fr(f))u=aa;else if(""==f){if(e.host="",i)return;u=ra}else{if(l=Ar(e,f))return l;if("localhost"==e.host&&(e.host=""),i)return;f="",u=ra}continue}f+=o;break;case ra:if(Rr(e)){if(u=aa,"/"!=o&&"\\"!=o)continue}else if(i||"?"!=o)if(i||"#"!=o){if(o!=or&&(u=aa,"/"!=o))continue}else e.fragment="",u=la;else e.query="",u=sa;break;case aa:if(o==or||"/"==o||"\\"==o&&Rr(e)||!i&&("?"==o||"#"==o)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Dr(e),"/"==o||"\\"==o&&Rr(e)||e.path.push("")):Br(f)?"/"==o||"\\"==o&&Rr(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Fr(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(o==or||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",u=sa):"#"==o&&(e.fragment="",u=la)}else f+=Or(o,Mr);break;case oa:"?"==o?(e.query="",u=sa):"#"==o?(e.fragment="",u=la):o!=or&&(e.path[0]+=Or(o,Lr));break;case sa:i||"#"!=o?o!=or&&("'"==o&&Rr(e)?e.query+="%27":e.query+="#"==o?"%23":Or(o,Lr)):(e.fragment="",u=la);break;case la:o!=or&&(e.fragment+=Or(o,Ir))}h++}},ua=function(e){var t,n,i=ki(this,ua,"URL"),a=arguments.length>1?arguments[1]:void 0,o=String(e),s=hr(i,{type:"URL"});if(void 0!==a)if(a instanceof ua)t=fr(a);else if(n=ca(t={},String(a)))throw TypeError(n);if(n=ca(s,o,null,t))throw TypeError(n);var l=s.searchParams=new cr,c=ur(l);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(l)||null},r||(i.href=fa.call(i),i.origin=da.call(i),i.protocol=pa.call(i),i.username=ma.call(i),i.password=ga.call(i),i.host=va.call(i),i.hostname=ya.call(i),i.port=ba.call(i),i.pathname=wa.call(i),i.search=ka.call(i),i.searchParams=Ta.call(i),i.hash=Sa.call(i))},ha=ua.prototype,fa=function(){var e=fr(this),t=e.scheme,n=e.username,i=e.password,r=e.host,a=e.port,o=e.path,s=e.query,l=e.fragment,c=t+":";return null!==r?(c+="//",_r(e)&&(c+=n+(i?":"+i:"")+"@"),c+=Cr(r),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+o.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},da=function(){var e=fr(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&Rr(e)?t+"://"+Cr(e.host)+(null!==n?":"+n:""):"null"},pa=function(){return fr(this).scheme+":"},ma=function(){return fr(this).username},ga=function(){return fr(this).password},va=function(){var e=fr(this),t=e.host,n=e.port;return null===t?"":null===n?Cr(t):Cr(t)+":"+n},ya=function(){var e=fr(this).host;return null===e?"":Cr(e)},ba=function(){var e=fr(this).port;return null===e?"":String(e)},wa=function(){var e=fr(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},ka=function(){var e=fr(this).query;return e?"?"+e:""},Ta=function(){return fr(this).searchParams},Sa=function(){var e=fr(this).fragment;return e?"#"+e:""},Ea=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(r&&Ue(ha,{href:Ea(fa,function(e){var t=fr(this),n=String(e),i=ca(t,n);if(i)throw TypeError(i);ur(t.searchParams).updateSearchParams(t.query)}),origin:Ea(da),protocol:Ea(pa,function(e){var t=fr(this);ca(t,String(e)+":",Hr)}),username:Ea(ma,function(e){var t=fr(this),n=Ii(String(e));if(!Ur(t)){t.username="";for(var i=0;i<n.length;i++)t.username+=Or(n[i],Nr)}}),password:Ea(ga,function(e){var t=fr(this),n=Ii(String(e));if(!Ur(t)){t.password="";for(var i=0;i<n.length;i++)t.password+=Or(n[i],Nr)}}),host:Ea(va,function(e){var t=fr(this);t.cannotBeABaseURL||ca(t,String(e),Jr)}),hostname:Ea(ya,function(e){var t=fr(this);t.cannotBeABaseURL||ca(t,String(e),Zr)}),port:Ea(ba,function(e){var t=fr(this);Ur(t)||(""==(e=String(e))?t.port=null:ca(t,e,ea))}),pathname:Ea(wa,function(e){var t=fr(this);t.cannotBeABaseURL||(t.path=[],ca(t,e+"",ra))}),search:Ea(ka,function(e){var t=fr(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",ca(t,e,sa)),ur(t.searchParams).updateSearchParams(t.query)}),searchParams:Ea(Ta),hash:Ea(Sa,function(e){var t=fr(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",ca(t,e,la)):t.fragment=null})}),Q(ha,"toJSON",function(){return fa.call(this)},{enumerable:!0}),Q(ha,"toString",function(){return fa.call(this)},{enumerable:!0}),lr){var Aa=lr.createObjectURL,Pa=lr.revokeObjectURL;Aa&&Q(ua,"createObjectURL",function(e){return Aa.apply(lr,arguments)}),Pa&&Q(ua,"revokeObjectURL",function(e){return Pa.apply(lr,arguments)})}function xa(e){return(xa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ca(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function La(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Ia(e,t,n){return t&&La(e.prototype,t),n&&La(e,n),e}function Ma(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Na(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Oa(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Ie(ua,"URL"),Se({global:!0,forced:!wi,sham:!r},{URL:ua}),function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},i=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},r=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};"URLSearchParams"in e&&"a=1"===new e.URLSearchParams("?a=1").toString()||function(){var r=function e(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var n=xa(t);if("undefined"===n);else if("string"===n)""!==t&&this._fromString(t);else if(t instanceof e){var i=this;t.forEach(function(e,t){i.append(t,e)})}else{if(null===t||"object"!==n)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var r=0;r<t.length;r++){var a=t[r];if("[object Array]"!==Object.prototype.toString.call(a)&&2===a.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(a[0],a[1])}else for(var o in t)t.hasOwnProperty(o)&&this.append(o,t[o])}},a=r.prototype;a.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},a.delete=function(e){delete this._entries[e]},a.get=function(e){return e in this._entries?this._entries[e][0]:null},a.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},a.has=function(e){return e in this._entries},a.set=function(e,t){this._entries[e]=[String(t)]},a.forEach=function(e,t){var n;for(var i in this._entries)if(this._entries.hasOwnProperty(i)){n=this._entries[i];for(var r=0;r<n.length;r++)e.call(t,n[r],i,this)}},a.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),n(e)},a.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),n(e)},a.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),n(e)},t&&(a[Symbol.iterator]=a.entries),a.toString=function(){var e=[];return this.forEach(function(t,n){e.push(i(n)+"="+i(t))}),e.join("&")},e.URLSearchParams=r}();var a=e.URLSearchParams.prototype;"function"!=typeof a.sort&&(a.sort=function(){var e=this,t=[];this.forEach(function(n,i){t.push([i,n]),e._entries||e.delete(i)}),t.sort(function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0}),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof a._fromString&&Object.defineProperty(a,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach(function(e,n){t.push(n)});for(var n=0;n<t.length;n++)this.delete(t[n])}var i,a=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<a.length;n++)i=a[n].split("="),this.append(r(i[0]),i.length>1?r(i[1]):"")}})}(void 0!==x?x:"undefined"!=typeof window?window:"undefined"!=typeof self?self:x),function(e){var t,n,i;if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||(t=e.URL,i=(n=function(t,n){"string"!=typeof t&&(t=String(t));var i,r=document;if(n&&(void 0===e.location||n!==e.location.href)){(i=(r=document.implementation.createHTMLDocument("")).createElement("base")).href=n,r.head.appendChild(i);try{if(0!==i.href.indexOf(n))throw new Error(i.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var a=r.createElement("a");if(a.href=t,i&&(r.body.appendChild(a),a.href=a.href),":"===a.protocol||!/:/.test(a.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:a});var o=new e.URLSearchParams(this.search),s=!0,l=!0,c=this;["append","delete","set"].forEach(function(e){var t=o[e];o[e]=function(){t.apply(o,arguments),s&&(l=!1,c.search=o.toString(),l=!0)}}),Object.defineProperty(this,"searchParams",{value:o,enumerable:!0});var u=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==u&&(u=this.search,l&&(s=!1,this.searchParams._fromString(this.search),s=!0))}})}).prototype,["hash","host","hostname","port","protocol"].forEach(function(e){!function(e){Object.defineProperty(i,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)}),Object.defineProperty(i,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(i,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n),void 0!==e.location&&!("origin"in e.location)){var r=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:r,enumerable:!0})}catch(t){setInterval(function(){e.location.origin=r()},100)}}}(void 0!==x?x:"undefined"!=typeof window?window:"undefined"!=typeof self?self:x);var ja=xe("isConcatSpreadable"),Ra=!i(function(){var e=[];return e[ja]=!1,e.concat()[0]!==e}),_a=hn("concat"),Ua=function(e){if(!m(e))return!1;var t=e[ja];return void 0!==t?!!t:_e(e)};Se({target:"Array",proto:!0,forced:!Ra||!_a},{concat:function(e){var t,n,i,r,a,o=Ft(this),s=ri(o,0),l=0;for(t=-1,i=arguments.length;t<i;t++)if(a=-1===t?o:arguments[t],Ua(a)){if(l+(r=te(a.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<r;n++,l++)n in a&&cn(s,l,a[n])}else{if(l>=9007199254740991)throw TypeError("Maximum allowed index exceeded");cn(s,l++,a)}return s.length=l,s}});var Fa=ai(2),qa=hn("filter");Se({target:"Array",proto:!0,forced:!qa},{filter:function(e){return Fa(this,e,arguments[1])}});var Da=ai(5),Ba=!0;"find"in[]&&Array(1).find(function(){Ba=!1}),Se({target:"Array",proto:!0,forced:Ba},{find:function(e){return Da(this,e,arguments.length>1?arguments[1]:void 0)}}),_t("find");var Ha=xe("iterator"),Va=!1;try{var za=0;({next:function(){return{done:!!za++}},return:function(){Va=!0}})[Ha]=function(){return this}}catch(e){}var Wa=function(e,t){if(!t&&!Va)return!1;var n=!1;try{var i={};i[Ha]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n},Ka=!Wa(function(e){});Se({target:"Array",stat:!0,forced:Ka},{from:Ii});var Ya=ae(!0);Se({target:"Array",proto:!0},{includes:function(e){return Ya(this,e,arguments.length>1?arguments[1]:void 0)}}),_t(