3 lines
292 KiB
JavaScript
3 lines
292 KiB
JavaScript
"object"==typeof navigator&&function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n,r,i,o="object",a=function(e){return e&&e.Math==Math&&e},s=a(typeof globalThis==o&&globalThis)||a(typeof window==o&&window)||a(typeof self==o&&self)||a(typeof e==o&&e)||Function("return this")(),c=function(e){try{return!!e()}catch(e){return!0}},l=!c(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),u={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,h={f:f&&!u.call({1:2},1)?function(e){var t=f(this,e);return!!t&&t.enumerable}:u},d=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},p={}.toString,g=function(e){return p.call(e).slice(8,-1)},m="".split,v=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==g(e)?m.call(e,""):Object(e)}:Object,y=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},b=function(e){return v(y(e))},w=function(e){return"object"==typeof e?null!==e:"function"==typeof e},k=function(e,t){if(!w(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!w(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!w(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!w(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},E={}.hasOwnProperty,S=function(e,t){return E.call(e,t)},_=s.document,T=w(_)&&w(_.createElement),x=function(e){return T?_.createElement(e):{}},A=!l&&!c(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,P={f:l?O:function(e,t){if(e=b(e),t=k(t,!0),A)try{return O(e,t)}catch(e){}if(S(e,t))return d(!h.f.call(e,t),e[t])}},C=function(e){if(!w(e))throw TypeError(String(e)+" is not an object");return e},L=Object.defineProperty,I={f:l?L:function(e,t,n){if(C(e),t=k(t,!0),C(n),A)try{return L(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}},j=l?function(e,t,n){return I.f(e,t,d(1,n))}:function(e,t,n){return e[t]=n,e},R=function(e,t){try{j(s,e,t)}catch(n){s[e]=t}return t},M=t(function(e){var t=s["__core-js_shared__"]||R("__core-js_shared__",{});(e.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),N=M("native-function-to-string",Function.toString),U=s.WeakMap,F="function"==typeof U&&/native code/.test(N.call(U)),D=0,B=Math.random(),q=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++D+B).toString(36))},H=M("keys"),V=function(e){return H[e]||(H[e]=q(e))},z={},W=s.WeakMap;if(F){var $=new W,K=$.get,Y=$.has,G=$.set;n=function(e,t){return G.call($,e,t),t},r=function(e){return K.call($,e)||{}},i=function(e){return Y.call($,e)}}else{var X=V("state");z[X]=!0,n=function(e,t){return j(e,X,t),t},r=function(e){return S(e,X)?e[X]:{}},i=function(e){return S(e,X)}}var J={set:n,get:r,has:i,enforce:function(e){return i(e)?r(e):n(e,{})},getterFor:function(e){return function(t){var n;if(!w(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Q=t(function(e){var t=J.get,n=J.enforce,r=String(N).split("toString");M("inspectSource",function(e){return N.call(e)}),(e.exports=function(e,t,i,o){var a=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||S(i,"name")||j(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==s?(a?!l&&e[t]&&(c=!0):delete e[t],c?e[t]=i:j(e,t,i)):c?e[t]=i:R(t,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||N.call(this)})}),Z=Math.ceil,ee=Math.floor,te=function(e){return isNaN(e=+e)?0:(e>0?ee:Z)(e)},ne=Math.min,re=function(e){return e>0?ne(te(e),9007199254740991):0},ie=Math.max,oe=Math.min,ae=function(e,t){var n=te(e);return n<0?ie(n+t,0):oe(n,t)},se=function(e){return function(t,n,r){var i,o=b(t),a=re(o.length),s=ae(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ce=se(!1),le=function(e,t){var n,r=b(e),i=0,o=[];for(n in r)!S(z,n)&&S(r,n)&&o.push(n);for(;t.length>i;)S(r,n=t[i++])&&(~ce(o,n)||o.push(n));return o},ue=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fe=ue.concat("length","prototype"),he={f:Object.getOwnPropertyNames||function(e){return le(e,fe)}},de={f:Object.getOwnPropertySymbols},pe=s.Reflect,ge=pe&&pe.ownKeys||function(e){var t=he.f(C(e)),n=de.f;return n?t.concat(n(e)):t},me=function(e,t){for(var n=ge(t),r=I.f,i=P.f,o=0;o<n.length;o++){var a=n[o];S(e,a)||r(e,a,i(t,a))}},ve=/#|\.prototype\./,ye=function(e,t){var n=we[be(e)];return n==Ee||n!=ke&&("function"==typeof t?c(t):!!t)},be=ye.normalize=function(e){return String(e).replace(ve,".").toLowerCase()},we=ye.data={},ke=ye.NATIVE="N",Ee=ye.POLYFILL="P",Se=ye,_e=P.f,Te=function(e,t){var n,r,i,o,a,c=e.target,l=e.global,u=e.stat;if(n=l?s:u?s[c]||R(c,{}):(s[c]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=_e(n,r))&&a.value:n[r],!Se(l?r:c+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;me(o,i)}(e.sham||i&&i.sham)&&j(o,"sham",!0),Q(n,r,o,e)}},xe=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Ae=function(e,t,n){if(xe(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,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Oe=function(e){return Object(y(e))},Pe=function(e,t,n,r){try{return r?t(C(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&C(i.call(e)),t}},Ce=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())}),Le=s.Symbol,Ie=M("wks"),je=function(e){return Ie[e]||(Ie[e]=Ce&&Le[e]||(Ce?Le:q)("Symbol."+e))},Re={},Me=je("iterator"),Ne=Array.prototype,Ue=function(e){return void 0!==e&&(Re.Array===e||Ne[Me]===e)},Fe=function(e,t,n){var r=k(t);r in e?I.f(e,r,d(0,n)):e[r]=n},De=je("toStringTag"),Be="Arguments"==g(function(){return arguments}()),qe=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),De))?n:Be?g(t):"Object"==(r=g(t))&&"function"==typeof t.callee?"Arguments":r},He=je("iterator"),Ve=function(e){if(null!=e)return e[He]||e["@@iterator"]||Re[qe(e)]},ze=function(e){var t,n,r,i,o=Oe(e),a="function"==typeof this?this:Array,s=arguments.length,c=s>1?arguments[1]:void 0,l=void 0!==c,u=0,f=Ve(o);if(l&&(c=Ae(c,s>2?arguments[2]:void 0,2)),null==f||a==Array&&Ue(f))for(n=new a(t=re(o.length));t>u;u++)Fe(n,u,l?c(o[u],u):o[u]);else for(i=f.call(o),n=new a;!(r=i.next()).done;u++)Fe(n,u,l?Pe(i,c,[r.value,u],!0):r.value);return n.length=u,n},We=je("iterator"),$e=!1;try{var Ke=0;({next:function(){return{done:!!Ke++}},return:function(){$e=!0}})[We]=function(){return this}}catch(e){}var Ye=function(e,t){if(!t&&!$e)return!1;var n=!1;try{var r={};r[We]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Ge=!Ye(function(e){});Te({target:"Array",stat:!0,forced:Ge},{from:ze});var Xe=Object.keys||function(e){return le(e,ue)},Je=l?Object.defineProperties:function(e,t){C(e);for(var n,r=Xe(t),i=r.length,o=0;i>o;)I.f(e,n=r[o++],t[n]);return e},Qe=s.document,Ze=Qe&&Qe.documentElement,et=V("IE_PROTO"),tt=function(){},nt=function(){var e,t=x("iframe"),n=ue.length;for(t.style.display="none",Ze.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),nt=e.F;n--;)delete nt.prototype[ue[n]];return nt()},rt=Object.create||function(e,t){var n;return null!==e?(tt.prototype=C(e),n=new tt,tt.prototype=null,n[et]=e):n=nt(),void 0===t?n:Je(n,t)};z[et]=!0;var it=je("unscopables"),ot=Array.prototype;null==ot[it]&&j(ot,it,rt(null));var at=function(e){ot[it][e]=!0},st=se(!0);Te({target:"Array",proto:!0},{includes:function(e){return st(this,e,arguments.length>1?arguments[1]:void 0)}}),at("includes");var ct=c(function(){Xe(1)});Te({target:"Object",stat:!0,forced:ct},{keys:function(e){return Xe(Oe(e))}});var lt=je("match"),ut=function(e){var t;return w(e)&&(void 0!==(t=e[lt])?!!t:"RegExp"==g(e))},ft=je("match");Te({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[ft]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~function(e,t,n){if(ut(t))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(y(e))}(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}});var ht,dt,pt,gt=function(e,t,n){var r,i,o=String(y(e)),a=te(t),s=o.length;return a<0||a>=s?n?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?n?o.charAt(a):r:n?o.slice(a,a+2):i-56320+(r-55296<<10)+65536},mt=!c(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),vt=V("IE_PROTO"),yt=Object.prototype,bt=mt?Object.getPrototypeOf:function(e){return e=Oe(e),S(e,vt)?e[vt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?yt:null},wt=je("iterator"),kt=!1;[].keys&&("next"in(pt=[].keys())?(dt=bt(bt(pt)))!==Object.prototype&&(ht=dt):kt=!0),null==ht&&(ht={}),S(ht,wt)||j(ht,wt,function(){return this});var Et={IteratorPrototype:ht,BUGGY_SAFARI_ITERATORS:kt},St=I.f,_t=je("toStringTag"),Tt=function(e,t,n){e&&!S(e=n?e:e.prototype,_t)&&St(e,_t,{configurable:!0,value:t})},xt=Et.IteratorPrototype,At=function(){return this},Ot=function(e,t,n){var r=t+" Iterator";return e.prototype=rt(xt,{next:d(1,n)}),Tt(e,r,!1),Re[r]=At,e},Pt=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,r){return function(e,t){if(C(e),!w(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n,r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Ct=Et.IteratorPrototype,Lt=Et.BUGGY_SAFARI_ITERATORS,It=je("iterator"),jt=function(){return this},Rt=function(e,t,n,r,i,o,a){Ot(n,t,r);var s,c,l,u=function(e){if(e===i&&g)return g;if(!Lt&&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)}},f=t+" Iterator",h=!1,d=e.prototype,p=d[It]||d["@@iterator"]||i&&d[i],g=!Lt&&p||u(i),m="Array"==t&&d.entries||p;if(m&&(s=bt(m.call(new e)),Ct!==Object.prototype&&s.next&&(bt(s)!==Ct&&(Pt?Pt(s,Ct):"function"!=typeof s[It]&&j(s,It,jt)),Tt(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),d[It]!==g&&j(d,It,g),Re[t]=g,i)if(c={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(l in c)!Lt&&!h&&l in d||Q(d,l,c[l]);else Te({target:t,proto:!0,forced:Lt||h},c);return c},Mt=J.set,Nt=J.getterFor("String Iterator");Rt(String,"String",function(e){Mt(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=Nt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=gt(n,r,!0),t.index+=e.length,{value:e,done:!1})});var Ut={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},Ft=Array.isArray||function(e){return"Array"==g(e)},Dt=je("species"),Bt=function(e,t){var n;return Ft(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Ft(n.prototype)?w(n)&&null===(n=n[Dt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},qt=function(e,t){var n=1==e,r=2==e,i=3==e,o=4==e,a=6==e,s=5==e||a,c=t||Bt;return function(t,l,u){for(var f,h,d=Oe(t),p=v(d),g=Ae(l,u,3),m=re(p.length),y=0,b=n?c(t,m):r?c(t,0):void 0;m>y;y++)if((s||y in p)&&(h=g(f=p[y],y,d),e))if(n)b[y]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:b.push(f)}else if(o)return!1;return a?-1:i||o?o:b}},Ht=function(e,t){var n=[][e];return!n||!c(function(){n.call(null,t||function(){throw 1},1)})},Vt=qt(0),zt=Ht("forEach")?function(e){return Vt(this,e,arguments[1])}:[].forEach;for(var Wt in Ut){var $t=s[Wt],Kt=$t&&$t.prototype;if(Kt&&Kt.forEach!==zt)try{j(Kt,"forEach",zt)}catch(e){Kt.forEach=zt}}var Yt=document.getElementById("container");document.addEventListener("focusout",function(e){e.target.classList&&!Yt.contains(e.target)&&e.target.classList.remove("tab-focus")}),document.addEventListener("keydown",function(e){9===e.keyCode&&setTimeout(function(){var e=document.activeElement;e&&e.classList&&!Yt.contains(e)&&e.classList.add("tab-focus")},10)}),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,r;return(t=t||{}).bubbles=!!t.bubbles,t.cancelable=!!t.cancelable,(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r=n.preventDefault,n.preventDefault=function(){r.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 Gt={f:je},Xt=s,Jt=I.f,Qt=function(e){var t=Xt.Symbol||(Xt.Symbol={});S(t,e)||Jt(t,e,{value:Gt.f(e)})},Zt=he.f,en={}.toString,tn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nn={f:function(e){return tn&&"[object Window]"==en.call(e)?function(e){try{return Zt(e)}catch(e){return tn.slice()}}(e):Zt(b(e))}},rn=V("hidden"),on=J.set,an=J.getterFor("Symbol"),sn=P.f,cn=I.f,ln=nn.f,un=s.Symbol,fn=s.JSON,hn=fn&&fn.stringify,dn=je("toPrimitive"),pn=h.f,gn=M("symbol-registry"),mn=M("symbols"),vn=M("op-symbols"),yn=M("wks"),bn=Object.prototype,wn=s.QObject,kn=!wn||!wn.prototype||!wn.prototype.findChild,En=l&&c(function(){return 7!=rt(cn({},"a",{get:function(){return cn(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=sn(bn,t);r&&delete bn[t],cn(e,t,n),r&&e!==bn&&cn(bn,t,r)}:cn,Sn=function(e,t){var n=mn[e]=rt(un.prototype);return on(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},_n=Ce&&"symbol"==typeof un.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof un},Tn=function(e,t,n){return e===bn&&Tn(vn,t,n),C(e),t=k(t,!0),C(n),S(mn,t)?(n.enumerable?(S(e,rn)&&e[rn][t]&&(e[rn][t]=!1),n=rt(n,{enumerable:d(0,!1)})):(S(e,rn)||cn(e,rn,d(1,{})),e[rn][t]=!0),En(e,t,n)):cn(e,t,n)},xn=function(e,t){C(e);for(var n,r=function(e){var t=Xe(e),n=de.f;if(n)for(var r,i=n(e),o=h.f,a=0;i.length>a;)o.call(e,r=i[a++])&&t.push(r);return t}(t=b(t)),i=0,o=r.length;o>i;)Tn(e,n=r[i++],t[n]);return e},An=function(e){var t=pn.call(this,e=k(e,!0));return!(this===bn&&S(mn,e)&&!S(vn,e))&&(!(t||!S(this,e)||!S(mn,e)||S(this,rn)&&this[rn][e])||t)},On=function(e,t){if(e=b(e),t=k(t,!0),e!==bn||!S(mn,t)||S(vn,t)){var n=sn(e,t);return!n||!S(mn,t)||S(e,rn)&&e[rn][t]||(n.enumerable=!0),n}},Pn=function(e){for(var t,n=ln(b(e)),r=[],i=0;n.length>i;)S(mn,t=n[i++])||S(z,t)||r.push(t);return r},Cn=function(e){for(var t,n=e===bn,r=ln(n?vn:b(e)),i=[],o=0;r.length>o;)!S(mn,t=r[o++])||n&&!S(bn,t)||i.push(mn[t]);return i};Ce||(Q((un=function(){if(this instanceof un)throw TypeError("Symbol is not a constructor");var e=void 0===arguments[0]?void 0:String(arguments[0]),t=q(e),n=function(e){this===bn&&n.call(vn,e),S(this,rn)&&S(this[rn],t)&&(this[rn][t]=!1),En(this,t,d(1,e))};return l&&kn&&En(bn,t,{configurable:!0,set:n}),Sn(t,e)}).prototype,"toString",function(){return an(this).tag}),h.f=An,I.f=Tn,P.f=On,he.f=nn.f=Pn,de.f=Cn,l&&(cn(un.prototype,"description",{configurable:!0,get:function(){return an(this).description}}),Q(bn,"propertyIsEnumerable",An,{unsafe:!0})),Gt.f=function(e){return Sn(je(e),e)}),Te({global:!0,wrap:!0,forced:!Ce,sham:!Ce},{Symbol:un});for(var Ln=Xe(yn),In=0;Ln.length>In;)Qt(Ln[In++]);Te({target:"Symbol",stat:!0,forced:!Ce},{for:function(e){return S(gn,e+="")?gn[e]:gn[e]=un(e)},keyFor:function(e){if(!_n(e))throw TypeError(e+" is not a symbol");for(var t in gn)if(gn[t]===e)return t},useSetter:function(){kn=!0},useSimple:function(){kn=!1}}),Te({target:"Object",stat:!0,forced:!Ce,sham:!l},{create:function(e,t){return void 0===t?rt(e):xn(rt(e),t)},defineProperty:Tn,defineProperties:xn,getOwnPropertyDescriptor:On}),Te({target:"Object",stat:!0,forced:!Ce},{getOwnPropertyNames:Pn,getOwnPropertySymbols:Cn}),Te({target:"Object",stat:!0,forced:c(function(){de.f(1)})},{getOwnPropertySymbols:function(e){return de.f(Oe(e))}}),fn&&Te({target:"JSON",stat:!0,forced:!Ce||c(function(){var e=un();return"[null]"!=hn([e])||"{}"!=hn({a:e})||"{}"!=hn(Object(e))})},{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(w(t)||void 0!==e)&&!_n(e))return Ft(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!_n(t))return t}),r[1]=t,hn.apply(fn,r)}}),un.prototype[dn]||j(un.prototype,dn,un.prototype.valueOf),Tt(un,"Symbol"),z[rn]=!0;var jn=I.f,Rn=s.Symbol;if(l&&"function"==typeof Rn&&(!("description"in Rn.prototype)||void 0!==Rn().description)){var Mn={},Nn=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Nn?new Rn(e):void 0===e?Rn():Rn(e);return""===e&&(Mn[t]=!0),t};me(Nn,Rn);var Un=Nn.prototype=Rn.prototype;Un.constructor=Nn;var Fn=Un.toString,Dn="Symbol(test)"==String(Rn("test")),Bn=/^Symbol\((.*)\)[^)]+$/;jn(Un,"description",{configurable:!0,get:function(){var e=w(this)?this.valueOf():this,t=Fn.call(e);if(S(Mn,e))return"";var n=Dn?t.slice(7,-1):t.replace(Bn,"$1");return""===n?void 0:n}}),Te({global:!0,forced:!0},{Symbol:Nn})}Qt("iterator");var qn=J.set,Hn=J.getterFor("Array Iterator"),Vn=Rt(Array,"Array",function(e,t){qn(this,{type:"Array Iterator",target:b(e),index:0,kind:t})},function(){var e=Hn(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Re.Arguments=Re.Array,at("keys"),at("values"),at("entries");var zn=[].join,Wn=v!=Object,$n=Ht("join",",");Te({target:"Array",proto:!0,forced:Wn||$n},{join:function(e){return zn.call(b(this),void 0===e?",":e)}});var Kn=je("species"),Yn=function(e){return!c(function(){var t=[];return(t.constructor={})[Kn]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Gn=je("species"),Xn=[].slice,Jn=Math.max,Qn=Yn("slice");Te({target:"Array",proto:!0,forced:!Qn},{slice:function(e,t){var n,r,i,o=b(this),a=re(o.length),s=ae(e,a),c=ae(void 0===t?a:t,a);if(Ft(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Ft(n.prototype)?w(n)&&null===(n=n[Gn])&&(n=void 0):n=void 0,n===Array||void 0===n))return Xn.call(o,s,c);for(r=new(void 0===n?Array:n)(Jn(c-s,0)),i=0;s<c;s++,i++)s in o&&Fe(r,i,o[s]);return r.length=i,r}});var Zn={};Zn[je("toStringTag")]="z";var er="[object z]"!==String(Zn)?function(){return"[object "+qe(this)+"]"}:Zn.toString,tr=Object.prototype;er!==tr.toString&&Q(tr,"toString",er,{unsafe:!0});var nr=function(){var e=C(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},rr=/./.toString,ir=RegExp.prototype,or=c(function(){return"/a/b"!=rr.call({source:"a",flags:"b"})}),ar="toString"!=rr.name;(or||ar)&&Q(RegExp.prototype,"toString",function(){var e=C(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in ir)?nr.call(e):n)},{unsafe:!0});var sr=RegExp.prototype.exec,cr=String.prototype.replace,lr=sr,ur=function(){var e=/a/,t=/b*/g;return sr.call(e,"a"),sr.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),fr=void 0!==/()??/.exec("")[1];(ur||fr)&&(lr=function(e){var t,n,r,i,o=this;return fr&&(n=new RegExp("^"+o.source+"$(?!\\s)",nr.call(o))),ur&&(t=o.lastIndex),r=sr.call(o,e),ur&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),fr&&r&&r.length>1&&cr.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r});var hr=lr,dr=je("species"),pr=!c(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),gr=!c(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]}),mr=function(e,t,n,r){var i=je(e),o=!c(function(){var t={};return t[i]=function(){return 7},7!=""[e](t)}),a=o&&!c(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[dr]=function(){return n}),n[i](""),!t});if(!o||!a||"replace"===e&&!pr||"split"===e&&!gr){var s=/./[i],l=n(i,""[e],function(e,t,n,r,i){return t.exec===hr?o&&!i?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),u=l[0],f=l[1];Q(String.prototype,e,u),Q(RegExp.prototype,i,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}),r&&j(RegExp.prototype[i],"sham",!0)}},vr=function(e,t,n){return t+(n?gt(e,t,!0).length:1)},yr=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==g(e))throw TypeError("RegExp#exec called on incompatible receiver");return hr.call(e,t)},br=Math.max,wr=Math.min,kr=Math.floor,Er=/\$([$&'`]|\d\d?|<[^>]*>)/g,Sr=/\$([$&'`]|\d\d?)/g;mr("replace",2,function(e,t,n){return[function(n,r){var i=y(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,i){var o=n(t,e,this,i);if(o.done)return o.value;var a=C(e),s=String(this),c="function"==typeof i;c||(i=String(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var f=[];;){var h=yr(a,s);if(null===h)break;if(f.push(h),!l)break;""===String(h[0])&&(a.lastIndex=vr(s,re(a.lastIndex),u))}for(var d,p="",g=0,m=0;m<f.length;m++){h=f[m];for(var v=String(h[0]),y=br(wr(te(h.index),s.length),0),b=[],w=1;w<h.length;w++)b.push(void 0===(d=h[w])?d:String(d));var k=h.groups;if(c){var E=[v].concat(b,y,s);void 0!==k&&E.push(k);var S=String(i.apply(void 0,E))}else S=r(v,s,y,b,k,i);y>=g&&(p+=s.slice(g,y)+S,g=y+v.length)}return p+s.slice(g)}];function r(e,n,r,i,o,a){var s=r+e.length,c=i.length,l=Sr;return void 0!==o&&(o=Oe(o),l=Er),t.call(a,l,function(t,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return t;if(u>c){var f=kr(u/10);return 0===f?t:f<=c?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):t}l=i[u-1]}return void 0===l?"":l})}});var _r=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};mr("search",1,function(e,t,n){return[function(t){var n=y(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=C(e),o=String(this),a=i.lastIndex;_r(a,0)||(i.lastIndex=0);var s=yr(i,o);return _r(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]});var Tr=je("species"),xr=function(e,t){var n,r=C(e).constructor;return void 0===r||null==(n=C(r)[Tr])?t:xe(n)},Ar=[].push,Or=Math.min,Pr=!c(function(){return!RegExp(4294967295,"y")});mr("split",2,function(e,t,n){var r;return r="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 r=String(y(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!ut(e))return t.call(r,e,i);for(var o,a,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f=new RegExp(e.source,l+"g");(o=hr.call(f,r))&&!((a=f.lastIndex)>u&&(c.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&Ar.apply(c,o.slice(1)),s=o[0].length,u=a,c.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return u===r.length?!s&&f.test("")||c.push(""):c.push(r.slice(u)),c.length>i?c.slice(0,i):c}:"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 i=y(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var a=C(e),s=String(this),c=xr(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Pr?"y":"g"),f=new c(Pr?a:"^(?:"+a.source+")",u),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===yr(f,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){f.lastIndex=Pr?p:0;var m,v=yr(f,Pr?s:s.slice(p));if(null===v||(m=Or(re(f.lastIndex+(Pr?0:p)),s.length))===d)p=vr(s,p,l);else{if(g.push(s.slice(d,p)),g.length===h)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===h)return g;p=d=m}}return g.push(s.slice(d)),g}]},!Pr);var Cr=je("iterator"),Lr=je("toStringTag"),Ir=Vn.values;for(var jr in Ut){var Rr=s[jr],Mr=Rr&&Rr.prototype;if(Mr){if(Mr[Cr]!==Ir)try{j(Mr,Cr,Ir)}catch(e){Mr[Cr]=Ir}if(Mr[Lr]||j(Mr,Lr,jr),Ut[jr])for(var Nr in Vn)if(Mr[Nr]!==Vn[Nr])try{j(Mr,Nr,Vn[Nr])}catch(e){Mr[Nr]=Vn[Nr]}}}var Ur=je("iterator"),Fr=!c(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[Ur]||"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}),Dr=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Br=Object.assign,qr=!Br||c(function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=Br({},e)[n]||"abcdefghijklmnopqrst"!=Xe(Br({},t)).join("")})?function(e,t){for(var n=Oe(e),r=arguments.length,i=1,o=de.f,a=h.f;r>i;)for(var s,c=v(arguments[i++]),u=o?Xe(c).concat(o(c)):Xe(c),f=u.length,d=0;f>d;)s=u[d++],l&&!a.call(c,s)||(n[s]=c[s]);return n}:Br,Hr=/[^\0-\u007E]/,Vr=/[.\u3002\uFF0E\uFF61]/g,zr="Overflow: input needs wider integers to process",Wr=Math.floor,$r=String.fromCharCode,Kr=function(e){return e+22+75*(e<26)},Yr=function(e,t,n){var r=0;for(e=n?Wr(e/700):e>>1,e+=Wr(e/t);e>455;r+=36)e=Wr(e/35);return Wr(r+36*e/(e+38))},Gr=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,o=128,a=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push($r(n));var c=r.length,l=c;for(c&&r.push("-");l<i;){var u=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<u&&(u=n);var f=l+1;if(u-o>Wr((2147483647-a)/f))throw RangeError(zr);for(a+=(u-o)*f,o=u,t=0;t<e.length;t++){if((n=e[t])<o&&++a>2147483647)throw RangeError(zr);if(n==o){for(var h=a,d=36;;d+=36){var p=d<=s?1:d>=s+26?26:d-s;if(h<p)break;var g=h-p,m=36-p;r.push($r(Kr(p+g%m))),h=Wr(g/m)}r.push($r(Kr(h))),s=Yr(a,f,l==c),a=0,++l}}++a,++o}return r.join("")},Xr=function(e,t,n){for(var r in t)Q(e,r,t[r],n);return e},Jr=function(e){var t=Ve(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return C(t.call(e))},Qr=je("iterator"),Zr=J.set,ei=J.getterFor("URLSearchParams"),ti=J.getterFor("URLSearchParamsIterator"),ni=/\+/g,ri=Array(4),ii=function(e){return ri[e-1]||(ri[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},oi=function(e){try{return decodeURIComponent(e)}catch(t){return e}},ai=function(e){var t=e.replace(ni," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(ii(n--),oi);return t}},si=/[!'()~]|%20/g,ci={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},li=function(e){return ci[e]},ui=function(e){return encodeURIComponent(e).replace(si,li)},fi=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:ai(r.shift()),value:ai(r.join("="))}));return e},hi=function(e){this.entries.length=0,fi(this.entries,e)},di=function(e,t){if(e<t)throw TypeError("Not enough arguments")},pi=Ot(function(e,t){Zr(this,{type:"URLSearchParamsIterator",iterator:Jr(ei(e).entries),kind:t})},"Iterator",function(){var e=ti(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),gi=function(){Dr(this,gi,"URLSearchParams");var e,t,n,r,i,o,a,s=arguments.length>0?arguments[0]:void 0,c=[];if(Zr(this,{type:"URLSearchParams",entries:c,updateURL:null,updateSearchParams:hi}),void 0!==s)if(w(s))if("function"==typeof(e=Ve(s)))for(t=e.call(s);!(n=t.next()).done;){if((i=(r=Jr(C(n.value))).next()).done||(o=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");c.push({key:i.value+"",value:o.value+""})}else for(a in s)S(s,a)&&c.push({key:a,value:s[a]+""});else fi(c,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},mi=gi.prototype;Xr(mi,{append:function(e,t){di(arguments.length,2);var n=ei(this);n.entries.push({key:e+"",value:t+""}),n.updateURL&&n.updateURL()},delete:function(e){di(arguments.length,1);for(var t=ei(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL&&t.updateURL()},get:function(e){di(arguments.length,1);for(var t=ei(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){di(arguments.length,1);for(var t=ei(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){di(arguments.length,1);for(var t=ei(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){di(arguments.length,1);for(var n,r=ei(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL&&r.updateURL()},sort:function(){var e,t,n,r=ei(this),i=r.entries,o=i.slice();for(i.length=0,t=0;t<o.length;t++){for(e=o[t],n=0;n<t;n++)if(i[n].key>e.key){i.splice(n,0,e);break}n===t&&i.push(e)}r.updateURL&&r.updateURL()},forEach:function(e){for(var t,n=ei(this).entries,r=Ae(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new pi(this,"keys")},values:function(){return new pi(this,"values")},entries:function(){return new pi(this,"entries")}},{enumerable:!0}),Q(mi,Qr,mi.entries),Q(mi,"toString",function(){for(var e,t=ei(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(ui(e.key)+"="+ui(e.value));return n.join("&")},{enumerable:!0}),Tt(gi,"URLSearchParams"),Te({global:!0,forced:!Fr},{URLSearchParams:gi});var vi,yi={URLSearchParams:gi,getState:ei},bi=s.URL,wi=yi.URLSearchParams,ki=yi.getState,Ei=J.set,Si=J.getterFor("URL"),_i=Math.pow,Ti=/[A-Za-z]/,xi=/[\d+\-.A-Za-z]/,Ai=/\d/,Oi=/^(0x|0X)/,Pi=/^[0-7]+$/,Ci=/^\d+$/,Li=/^[\dA-Fa-f]+$/,Ii=/[\u0000\u0009\u000A\u000D #%\/:?@[\\]]/,ji=/[\u0000\u0009\u000A\u000D #\/:?@[\\]]/,Ri=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Mi=/[\u0009\u000A\u000D]/g,Ni=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=Fi(t.slice(1,-1))))return"Invalid host";e.host=n}else if($i(e)){if(t=function(e){var t,n,r=[],i=e.toLowerCase().replace(Vr,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(Hr.test(n)?"xn--"+Gr(n):n);return r.join(".")}(t),Ii.test(t))return"Invalid host";if(null===(n=Ui(t)))return"Invalid host";e.host=n}else{if(ji.test(t))return"Invalid host";for(n="",r=ze(t),i=0;i<r.length;i++)n+=zi(r[i],Bi);e.host=n}},Ui=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(""==c[c.length-1]&&c.length&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=Oi.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?Ci:8==o?Pi:Li).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=_i(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*_i(256,3-r);return s},Fi=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,f=0,h=function(){return e.charAt(f)};if(":"==h()){if(":"!=e.charAt(1))return;f+=2,u=++l}for(;h();){if(8==l)return;if(":"!=h()){for(t=n=0;n<4&&Li.test(h());)t=16*t+parseInt(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,l>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!Ai.test(h()))return;for(;Ai.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}c[l]=256*c[l]+i,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[l++]=t}else{if(null!==u)return;f++,u=++l}}if(null!==u)for(a=l-u,l=7;0!=l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!=l)return;return c},Di=function(e){var t,n,r,i;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="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},Bi={},qi=qr({},Bi,{" ":1,'"':1,"<":1,">":1,"`":1}),Hi=qr({},qi,{"#":1,"?":1,"{":1,"}":1}),Vi=qr({},Hi,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),zi=function(e,t){var n=gt(e,0);return n>32&&n<127&&!S(t,e)?e:encodeURIComponent(e)},Wi={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},$i=function(e){return S(Wi,e.scheme)},Ki=function(e){return""!=e.username||""!=e.password},Yi=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Gi=function(e,t){var n;return 2==e.length&&Ti.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},Xi=function(e){var t;return e.length>1&&Gi(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Ji=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Gi(t[0],!0)||t.pop()},Qi=function(e){return"."===e||"%2e"===e.toLowerCase()},Zi={},eo={},to={},no={},ro={},io={},oo={},ao={},so={},co={},lo={},uo={},fo={},ho={},po={},go={},mo={},vo={},yo={},bo={},wo={},ko=function(e,t,n,r){var i,o,a,s,c,l=n||Zi,u=0,f="",h=!1,d=!1,p=!1;for(n||(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(Ri,"")),t=t.replace(Mi,""),i=ze(t);u<=i.length;){switch(o=i[u],l){case Zi:if(!o||!Ti.test(o)){if(n)return"Invalid scheme";l=to;continue}f+=o.toLowerCase(),l=eo;break;case eo:if(o&&(xi.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";f="",l=to,u=0;continue}if(n&&($i(e)!=S(Wi,f)||"file"==f&&(Ki(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void($i(e)&&Wi[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?l=ho:$i(e)&&r&&r.scheme==e.scheme?l=no:$i(e)?l=ao:"/"==i[u+1]?(l=ro,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=yo)}break;case to: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,l=wo;break}l="file"==r.scheme?ho:io;continue;case no:if("/"!=o||"/"!=i[u+1]){l=io;continue}l=so,u++;break;case ro:if("/"==o){l=co;break}l=vo;continue;case io:if(e.scheme=r.scheme,o==vi)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&&$i(e))l=oo;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="",l=bo;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(),l=vo;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="",l=wo}break;case oo:if(!$i(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,l=vo;continue}l=co}else l=so;break;case ao:if(l=so,"/"!=o||"/"!=f.charAt(u+1))continue;u++;break;case so:if("/"!=o&&"\\"!=o){l=co;continue}break;case co:if("@"==o){h&&(f="%40"+f),h=!0,a=ze(f);for(var g=0;g<a.length;g++){var m=a[g];if(":"!=m||p){var v=zi(m,Vi);p?e.password+=v:e.username+=v}else p=!0}f=""}else if(o==vi||"/"==o||"?"==o||"#"==o||"\\"==o&&$i(e)){if(h&&""==f)return"Invalid authority";u-=ze(f).length+1,f="",l=lo}else f+=o;break;case lo:case uo:if(n&&"file"==e.scheme){l=go;continue}if(":"!=o||d){if(o==vi||"/"==o||"?"==o||"#"==o||"\\"==o&&$i(e)){if($i(e)&&""==f)return"Invalid host";if(n&&""==f&&(Ki(e)||null!==e.port))return;if(s=Ni(e,f))return s;if(f="",l=mo,n)return;continue}"["==o?d=!0:"]"==o&&(d=!1),f+=o}else{if(""==f)return"Invalid host";if(s=Ni(e,f))return s;if(f="",l=fo,n==uo)return}break;case fo:if(!Ai.test(o)){if(o==vi||"/"==o||"?"==o||"#"==o||"\\"==o&&$i(e)||n){if(""!=f){var y=parseInt(f,10);if(y>65535)return"Invalid port";e.port=$i(e)&&y===Wi[e.scheme]?null:y,f=""}if(n)return;l=mo;continue}return"Invalid port"}f+=o;break;case ho:if(e.scheme="file","/"==o||"\\"==o)l=po;else{if(!r||"file"!=r.scheme){l=vo;continue}if(o==vi)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="",l=bo;else{if("#"!=o){Xi(i.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),Ji(e)),l=vo;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=wo}}break;case po:if("/"==o||"\\"==o){l=go;break}r&&"file"==r.scheme&&!Xi(i.slice(u).join(""))&&(Gi(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),l=vo;continue;case go:if(o==vi||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&Gi(f))l=vo;else if(""==f){if(e.host="",n)return;l=mo}else{if(s=Ni(e,f))return s;if("localhost"==e.host&&(e.host=""),n)return;f="",l=mo}continue}f+=o;break;case mo:if($i(e)){if(l=vo,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=vi&&(l=vo,"/"!=o))continue}else e.fragment="",l=wo;else e.query="",l=bo;break;case vo:if(o==vi||"/"==o||"\\"==o&&$i(e)||!n&&("?"==o||"#"==o)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Ji(e),"/"==o||"\\"==o&&$i(e)||e.path.push("")):Qi(f)?"/"==o||"\\"==o&&$i(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Gi(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(o==vi||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",l=bo):"#"==o&&(e.fragment="",l=wo)}else f+=zi(o,Hi);break;case yo:"?"==o?(e.query="",l=bo):"#"==o?(e.fragment="",l=wo):o!=vi&&(e.path[0]+=zi(o,Bi));break;case bo:n||"#"!=o?o!=vi&&("'"==o&&$i(e)?e.query+="%27":e.query+="#"==o?"%23":zi(o,Bi)):(e.fragment="",l=wo);break;case wo:o!=vi&&(e.fragment+=zi(o,qi))}u++}},Eo=function(e){var t,n,r=Dr(this,Eo,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),a=Ei(r,{type:"URL"});if(void 0!==i)if(i instanceof Eo)t=Si(i);else if(n=ko(t={},String(i)))throw TypeError(n);if(n=ko(a,o,null,t))throw TypeError(n);var s=a.searchParams=new wi,c=ki(s);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(s)||null},l||(r.href=_o.call(r),r.origin=To.call(r),r.protocol=xo.call(r),r.username=Ao.call(r),r.password=Oo.call(r),r.host=Po.call(r),r.hostname=Co.call(r),r.port=Lo.call(r),r.pathname=Io.call(r),r.search=jo.call(r),r.searchParams=Ro.call(r),r.hash=Mo.call(r))},So=Eo.prototype,_o=function(){var e=Si(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",Ki(e)&&(l+=n+(r?":"+r:"")+"@"),l+=Di(i),null!==o&&(l+=":"+o)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},To=function(){var e=Si(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&&$i(e)?t+"://"+Di(e.host)+(null!==n?":"+n:""):"null"},xo=function(){return Si(this).scheme+":"},Ao=function(){return Si(this).username},Oo=function(){return Si(this).password},Po=function(){var e=Si(this),t=e.host,n=e.port;return null===t?"":null===n?Di(t):Di(t)+":"+n},Co=function(){var e=Si(this).host;return null===e?"":Di(e)},Lo=function(){var e=Si(this).port;return null===e?"":String(e)},Io=function(){var e=Si(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},jo=function(){var e=Si(this).query;return e?"?"+e:""},Ro=function(){return Si(this).searchParams},Mo=function(){var e=Si(this).fragment;return e?"#"+e:""},No=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(l&&Je(So,{href:No(_o,function(e){var t=Si(this),n=String(e),r=ko(t,n);if(r)throw TypeError(r);ki(t.searchParams).updateSearchParams(t.query)}),origin:No(To),protocol:No(xo,function(e){var t=Si(this);ko(t,String(e)+":",Zi)}),username:No(Ao,function(e){var t=Si(this),n=ze(String(e));if(!Yi(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=zi(n[r],Vi)}}),password:No(Oo,function(e){var t=Si(this),n=ze(String(e));if(!Yi(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=zi(n[r],Vi)}}),host:No(Po,function(e){var t=Si(this);t.cannotBeABaseURL||ko(t,String(e),lo)}),hostname:No(Co,function(e){var t=Si(this);t.cannotBeABaseURL||ko(t,String(e),uo)}),port:No(Lo,function(e){var t=Si(this);Yi(t)||(""==(e=String(e))?t.port=null:ko(t,e,fo))}),pathname:No(Io,function(e){var t=Si(this);t.cannotBeABaseURL||(t.path=[],ko(t,e+"",mo))}),search:No(jo,function(e){var t=Si(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",ko(t,e,bo)),ki(t.searchParams).updateSearchParams(t.query)}),searchParams:No(Ro),hash:No(Mo,function(e){var t=Si(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",ko(t,e,wo)):t.fragment=null})}),Q(So,"toJSON",function(){return _o.call(this)},{enumerable:!0}),Q(So,"toString",function(){return _o.call(this)},{enumerable:!0}),bi){var Uo=bi.createObjectURL,Fo=bi.revokeObjectURL;Uo&&Q(Eo,"createObjectURL",function(e){return Uo.apply(bi,arguments)}),Fo&&Q(Eo,"revokeObjectURL",function(e){return Fo.apply(bi,arguments)})}function Do(e){return(Do="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 Bo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ho(e,t,n){return t&&qo(e.prototype,t),n&&qo(e,n),e}function Vo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Wo(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")}()}Tt(Eo,"URL"),Te({global:!0,forced:!Fr,sham:!l},{URL:Eo}),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},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},i=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};"URLSearchParams"in e&&"a=1"===new e.URLSearchParams("?a=1").toString()||function(){var i=function e(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var n=Do(t);if("undefined"===n);else if("string"===n)""!==t&&this._fromString(t);else if(t instanceof e){var r=this;t.forEach(function(e,t){r.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 i=0;i<t.length;i++){var o=t[i];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+i+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var a in t)t.hasOwnProperty(a)&&this.append(a,t[a])}},o=i.prototype;o.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},o.delete=function(e){delete this._entries[e]},o.get=function(e){return e in this._entries?this._entries[e][0]:null},o.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},o.has=function(e){return e in this._entries},o.set=function(e,t){this._entries[e]=[String(t)]},o.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)e.call(t,n[i],r,this)}},o.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),n(e)},o.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),n(e)},o.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),n(e)},t&&(o[Symbol.iterator]=o.entries),o.toString=function(){var e=[];return this.forEach(function(t,n){e.push(r(n)+"="+r(t))}),e.join("&")},e.URLSearchParams=i}();var o=e.URLSearchParams.prototype;"function"!=typeof o.sort&&(o.sort=function(){var e=this,t=[];this.forEach(function(n,r){t.push([r,n]),e._entries||e.delete(r)}),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 o._fromString&&Object.defineProperty(o,"_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 r,o=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<o.length;n++)r=o[n].split("="),this.append(i(r[0]),r.length>1?i(r[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e),function(e){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}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,i=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");if(o.href=t,r&&(i.body.appendChild(o),o.href=o.href),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var a=new e.URLSearchParams(this.search),s=!0,c=!0,l=this;["append","delete","set"].forEach(function(e){var t=a[e];a[e]=function(){t.apply(a,arguments),s&&(c=!1,l.search=a.toString(),c=!0)}}),Object.defineProperty(this,"searchParams",{value:a,enumerable:!0});var u=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==u&&(u=this.search,c&&(s=!1,this.searchParams._fromString(this.search),s=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach(function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)}),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{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 t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval(function(){e.location.origin=t()},100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e);var $o=je("isConcatSpreadable"),Ko=!c(function(){var e=[];return e[$o]=!1,e.concat()[0]!==e}),Yo=Yn("concat"),Go=function(e){if(!w(e))return!1;var t=e[$o];return void 0!==t?!!t:Ft(e)};Te({target:"Array",proto:!0,forced:!Ko||!Yo},{concat:function(e){var t,n,r,i,o,a=Oe(this),s=Bt(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],Go(o)){if(c+(i=re(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&Fe(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Fe(s,c++,o)}return s.length=c,s}});var Xo=function(e){for(var t=Oe(this),n=re(t.length),r=arguments.length,i=ae(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:ae(o,n);a>i;)t[i++]=e;return t};Te({target:"Array",proto:!0},{fill:Xo}),at("fill");var Jo=I.f,Qo=Function.prototype,Zo=Qo.toString,ea=/^\s*function ([^ (]*)/;!l||"name"in Qo||Jo(Qo,"name",{configurable:!0,get:function(){try{return Zo.call(this).match(ea)[1]}catch(e){return""}}});var ta,na,ra,ia=function(e){return"function"==typeof e?e:void 0},oa=je("species"),aa=function(e){var t=function(e,t){return arguments.length<2?ia(Xt[e])||ia(s[e]):Xt[e]&&Xt[e][t]||s[e]&&s[e][t]}(e),n=I.f;l&&t&&!t[oa]&&n(t,oa,{configurable:!0,get:function(){return this}})},sa=t(function(e){var t={};(e.exports=function(e,n,r,i,o){var a,s,c,l,u,f=Ae(n,r,i?2:1);if(o)a=e;else{if("function"!=typeof(s=Ve(e)))throw TypeError("Target is not iterable");if(Ue(s)){for(c=0,l=re(e.length);l>c;c++)if((i?f(C(u=e[c])[0],u[1]):f(e[c]))===t)return t;return}a=s.call(e)}for(;!(u=a.next()).done;)if(Pe(a,f,u.value,i)===t)return t}).BREAK=t}),ca=s.location,la=s.setImmediate,ua=s.clearImmediate,fa=s.process,ha=s.MessageChannel,da=s.Dispatch,pa=0,ga={},ma=function(e){if(ga.hasOwnProperty(e)){var t=ga[e];delete ga[e],t()}},va=function(e){return function(){ma(e)}},ya=function(e){ma(e.data)},ba=function(e){s.postMessage(e+"",ca.protocol+"//"+ca.host)};la&&ua||(la=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return ga[++pa]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},ta(pa),pa},ua=function(e){delete ga[e]},"process"==g(fa)?ta=function(e){fa.nextTick(va(e))}:da&&da.now?ta=function(e){da.now(va(e))}:ha?(ra=(na=new ha).port2,na.port1.onmessage=ya,ta=Ae(ra.postMessage,ra,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||c(ba)?ta="onreadystatechange"in x("script")?function(e){Ze.appendChild(x("script")).onreadystatechange=function(){Ze.removeChild(this),ma(e)}}:function(e){setTimeout(va(e),0)}:(ta=ba,s.addEventListener("message",ya,!1)));var wa,ka,Ea,Sa,_a,Ta,xa,Aa={set:la,clear:ua},Oa=s.navigator,Pa=Oa&&Oa.userAgent||"",Ca=P.f,La=Aa.set,Ia=s.MutationObserver||s.WebKitMutationObserver,ja=s.process,Ra=s.Promise,Ma="process"==g(ja),Na=Ca(s,"queueMicrotask"),Ua=Na&&Na.value;Ua||(wa=function(){var e,t;for(Ma&&(e=ja.domain)&&e.exit();ka;){t=ka.fn,ka=ka.next;try{t()}catch(e){throw ka?Sa():Ea=void 0,e}}Ea=void 0,e&&e.enter()},Ma?Sa=function(){ja.nextTick(wa)}:Ia&&!/(iphone|ipod|ipad).*applewebkit/i.test(Pa)?(_a=!0,Ta=document.createTextNode(""),new Ia(wa).observe(Ta,{characterData:!0}),Sa=function(){Ta.data=_a=!_a}):Ra&&Ra.resolve?(xa=Ra.resolve(void 0),Sa=function(){xa.then(wa)}):Sa=function(){La.call(s,wa)});var Fa,Da,Ba,qa=Ua||function(e){var t={fn:e,next:void 0};Ea&&(Ea.next=t),ka||(ka=t,Sa()),Ea=t},Ha=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=xe(t),this.reject=xe(n)},Va={f:function(e){return new Ha(e)}},za=function(e,t){if(C(e),w(t)&&t.constructor===e)return t;var n=Va.f(e);return(0,n.resolve)(t),n.promise},Wa=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},$a=Aa.set,Ka=je("species"),Ya="Promise",Ga=J.get,Xa=J.set,Ja=J.getterFor(Ya),Qa=s.Promise,Za=s.TypeError,es=s.document,ts=s.process,ns=s.fetch,rs=ts&&ts.versions,is=rs&&rs.v8||"",os=Va.f,as=os,ss="process"==g(ts),cs=!!(es&&es.createEvent&&s.dispatchEvent),ls=Se(Ya,function(){var e=Qa.resolve(1),t=function(){},n=(e.constructor={})[Ka]=function(e){e(t,t)};return!((ss||"function"==typeof PromiseRejectionEvent)&&e.then(t)instanceof n&&0!==is.indexOf("6.6")&&-1===Pa.indexOf("Chrome/66"))}),us=ls||!Ye(function(e){Qa.all(e).catch(function(){})}),fs=function(e){var t;return!(!w(e)||"function"!=typeof(t=e.then))&&t},hs=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;qa(function(){for(var i=t.value,o=1==t.state,a=0,s=function(n){var r,a,s,c=o?n.ok:n.fail,l=n.resolve,u=n.reject,f=n.domain;try{c?(o||(2===t.rejection&&ms(e,t),t.rejection=1),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),s=!0)),r===n.promise?u(Za("Promise-chain cycle")):(a=fs(r))?a.call(r,l,u):l(r)):u(i)}catch(e){f&&!s&&f.exit(),u(e)}};r.length>a;)s(r[a++]);t.reactions=[],t.notified=!1,n&&!t.rejection&&ps(e,t)})}},ds=function(e,t,n){var r,i;cs?((r=es.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),s.dispatchEvent(r)):r={promise:t,reason:n},(i=s["on"+e])?i(r):"unhandledrejection"===e&&function(e,t){var n=s.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},ps=function(e,t){$a.call(s,function(){var n,r=t.value;if(gs(t)&&(n=Wa(function(){ss?ts.emit("unhandledRejection",r,e):ds("unhandledrejection",e,r)}),t.rejection=ss||gs(t)?2:1,n.error))throw n.value})},gs=function(e){return 1!==e.rejection&&!e.parent},ms=function(e,t){$a.call(s,function(){ss?ts.emit("rejectionHandled",e):ds("rejectionhandled",e,t.value)})},vs=function(e,t,n,r){return function(i){e(t,n,i,r)}},ys=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,hs(e,t,!0))},bs=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Za("Promise can't be resolved itself");var i=fs(n);i?qa(function(){var r={done:!1};try{i.call(n,vs(bs,e,r,t),vs(ys,e,r,t))}catch(n){ys(e,r,n,t)}}):(t.value=n,t.state=1,hs(e,t,!1))}catch(n){ys(e,{done:!1},n,t)}}};ls&&(Qa=function(e){Dr(this,Qa,Ya),xe(e),Fa.call(this);var t=Ga(this);try{e(vs(bs,this,t),vs(ys,this,t))}catch(e){ys(this,t,e)}},(Fa=function(e){Xa(this,{type:Ya,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Xr(Qa.prototype,{then:function(e,t){var n=Ja(this),r=os(xr(this,Qa));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=ss?ts.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&hs(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Da=function(){var e=new Fa,t=Ga(e);this.promise=e,this.resolve=vs(bs,e,t),this.reject=vs(ys,e,t)},Va.f=os=function(e){return e===Qa||e===Ba?new Da(e):as(e)},"function"==typeof ns&&Te({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return za(Qa,ns.apply(s,arguments))}})),Te({global:!0,wrap:!0,forced:ls},{Promise:Qa}),Tt(Qa,Ya,!1),aa(Ya),Ba=Xt.Promise,Te({target:Ya,stat:!0,forced:ls},{reject:function(e){var t=os(this);return t.reject.call(void 0,e),t.promise}}),Te({target:Ya,stat:!0,forced:ls},{resolve:function(e){return za(this,e)}}),Te({target:Ya,stat:!0,forced:us},{all:function(e){var t=this,n=os(t),r=n.resolve,i=n.reject,o=Wa(function(){var n=xe(t.resolve),o=[],a=0,s=1;sa(e,function(e){var c=a++,l=!1;o.push(void 0),s++,n.call(t,e).then(function(e){l||(l=!0,o[c]=e,--s||r(o))},i)}),--s||r(o)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=os(t),r=n.reject,i=Wa(function(){var i=xe(t.resolve);sa(e,function(e){i.call(t,e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var ws=Math.max,ks=Math.min,Es=Yn("splice");Te({target:"Array",proto:!0,forced:!Es},{splice:function(e,t){var n,r,i,o,a,s,c=Oe(this),l=re(c.length),u=ae(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-u):(n=f-2,r=ks(ws(te(t),0),l-u)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=Bt(c,r),o=0;o<r;o++)(a=u+o)in c&&Fe(i,o,c[a]);if(i.length=r,n<r){for(o=u;o<l-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-r+n;o--)delete c[o-1]}else if(n>r)for(o=l-r;o>u;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-r+n,i}}),mr("match",1,function(e,t,n){return[function(t){var n=y(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=C(e),o=String(this);if(!i.global)return yr(i,o);var a=i.unicode;i.lastIndex=0;for(var s,c=[],l=0;null!==(s=yr(i,o));){var u=String(s[0]);c[l]=u,""===u&&(i.lastIndex=vr(o,re(i.lastIndex),a)),l++}return 0===l?null:c}]});var Ss=qt(2),_s=Yn("filter");Te({target:"Array",proto:!0,forced:!_s},{filter:function(e){return Ss(this,e,arguments[1])}});var Ts=qt(1),xs=Yn("map");Te({target:"Array",proto:!0,forced:!xs},{map:function(e){return Ts(this,e,arguments[1])}});var As,Os=I.f,Ps=s.DataView,Cs=Ps&&Ps.prototype,Ls=s.Int8Array,Is=Ls&&Ls.prototype,js=s.Uint8ClampedArray,Rs=js&&js.prototype,Ms=Ls&&bt(Ls),Ns=Is&&bt(Is),Us=Object.prototype,Fs=Us.isPrototypeOf,Ds=je("toStringTag"),Bs=q("TYPED_ARRAY_TAG"),qs=!(!s.ArrayBuffer||!s.DataView),Hs=qs&&!!Pt,Vs=!1,zs={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ws=function(e){return w(e)&&S(zs,qe(e))};for(As in zs)s[As]||(Hs=!1);if((!Hs||"function"!=typeof Ms||Ms===Function.prototype)&&(Ms=function(){throw TypeError("Incorrect invocation")},Hs))for(As in zs)s[As]&&Pt(s[As],Ms);if((!Hs||!Ns||Ns===Us)&&(Ns=Ms.prototype,Hs))for(As in zs)s[As]&&Pt(s[As].prototype,Ns);if(Hs&&bt(Rs)!==Ns&&Pt(Rs,Ns),l&&!S(Ns,Ds))for(As in Vs=!0,Os(Ns,Ds,{get:function(){return w(this)?this[Bs]:void 0}}),zs)s[As]&&j(s[As],Bs,As);qs&&Pt&&bt(Cs)!==Us&&Pt(Cs,Us);var $s={NATIVE_ARRAY_BUFFER:qs,NATIVE_ARRAY_BUFFER_VIEWS:Hs,TYPED_ARRAY_TAG:Vs&&Bs,aTypedArray:function(e){if(Ws(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(Pt){if(Fs.call(Ms,e))return e}else for(var t in zs)if(S(zs,As)){var n=s[t];if(n&&(e===n||Fs.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportProto:function(e,t,n){if(l){if(n)for(var r in zs){var i=s[r];i&&S(i.prototype,e)&&delete i.prototype[e]}Ns[e]&&!n||Q(Ns,e,n?t:Hs&&Is[e]||t)}},exportStatic:function(e,t,n){var r,i;if(l){if(Pt){if(n)for(r in zs)(i=s[r])&&S(i,e)&&delete i[e];if(Ms[e]&&!n)return;try{return Q(Ms,e,n?t:Hs&&Ls[e]||t)}catch(e){}}for(r in zs)!(i=s[r])||i[e]&&!n||Q(i,e,t)}},isView:function(e){var t=qe(e);return"DataView"===t||S(zs,t)},isTypedArray:Ws,TypedArray:Ms,TypedArrayPrototype:Ns},Ks=function(e){if(void 0===e)return 0;var t=te(e),n=re(t);if(t!==n)throw RangeError("Wrong length or index");return n},Ys=t(function(e,t){var n=$s.NATIVE_ARRAY_BUFFER,r=he.f,i=I.f,o=J.get,a=J.set,u=s.ArrayBuffer,f=u,h=s.DataView,d=s.Math,p=s.RangeError,g=d.abs,m=d.pow,v=d.floor,y=d.log,b=d.LN2,w=function(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,c=(1<<s)-1,l=c>>1,u=23===t?m(2,-24)-m(2,-77):0,f=e<0||0===e&&1/e<0?1:0,h=0;for((e=g(e))!=e||e===1/0?(i=e!=e?1:0,r=c):(r=v(y(e)/b),e*(o=m(2,-r))<1&&(r--,o*=2),(e+=r+l>=1?u/o:u*m(2,1-l))*o>=2&&(r++,o/=2),r+l>=c?(i=0,r=c):r+l>=1?(i=(e*o-1)*m(2,t),r+=l):(i=e*m(2,l-1)*m(2,t),r=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[h++]=255&r,r/=256,s-=8);return a[--h]|=128*f,a},k=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,a=o>>1,s=i-7,c=r-1,l=e[c--],u=127&l;for(l>>=7;s>0;u=256*u+e[c],c--,s-=8);for(n=u&(1<<-s)-1,u>>=-s,s+=t;s>0;n=256*n+e[c],c--,s-=8);if(0===u)u=1-a;else{if(u===o)return n?NaN:l?-1/0:1/0;n+=m(2,t),u-=a}return(l?-1:1)*n*m(2,u-t)},E=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},S=function(e){return[255&e]},_=function(e){return[255&e,e>>8&255]},T=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},x=function(e){return w(e,23,4)},A=function(e){return w(e,52,8)},O=function(e,t){i(e.prototype,t,{get:function(){return o(this)[t]}})},P=function(e,t,n,r){var i=Ks(+n),a=o(e);if(i+t>a.byteLength)throw p("Wrong index");var s=o(a.buffer).bytes,c=i+a.byteOffset,l=s.slice(c,c+t);return r?l:l.reverse()},C=function(e,t,n,r,i,a){var s=Ks(+n),c=o(e);if(s+t>c.byteLength)throw p("Wrong index");for(var l=o(c.buffer).bytes,u=s+c.byteOffset,f=r(+i),h=0;h<t;h++)l[u+h]=f[a?h:t-h-1]};if(n){if(!c(function(){u(1)})||!c(function(){new u(-1)})||c(function(){return new u,new u(1.5),new u(NaN),"ArrayBuffer"!=u.name})){for(var L,R=(f=function(e){return Dr(this,f),new u(Ks(e))}).prototype=u.prototype,M=r(u),N=0;M.length>N;)(L=M[N++])in f||j(f,L,u[L]);R.constructor=f}var U=new h(new f(2)),F=h.prototype.setInt8;U.setInt8(0,2147483648),U.setInt8(1,2147483649),!U.getInt8(0)&&U.getInt8(1)||Xr(h.prototype,{setInt8:function(e,t){F.call(this,e,t<<24>>24)},setUint8:function(e,t){F.call(this,e,t<<24>>24)}},{unsafe:!0})}else f=function(e){Dr(this,f,"ArrayBuffer");var t=Ks(e);a(this,{bytes:Xo.call(new Array(t),0),byteLength:t}),l||(this.byteLength=t)},h=function(e,t,n){Dr(this,h,"DataView"),Dr(e,f,"DataView");var r=o(e).byteLength,i=te(t);if(i<0||i>r)throw p("Wrong offset");if(i+(n=void 0===n?r-i:re(n))>r)throw p("Wrong length");a(this,{buffer:e,byteLength:n,byteOffset:i}),l||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},l&&(O(f,"byteLength"),O(h,"buffer"),O(h,"byteLength"),O(h,"byteOffset")),Xr(h.prototype,{getInt8:function(e){return P(this,1,e)[0]<<24>>24},getUint8:function(e){return P(this,1,e)[0]},getInt16:function(e){var t=P(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=P(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return E(P(this,4,e,arguments[1]))},getUint32:function(e){return E(P(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return k(P(this,4,e,arguments[1]),23)},getFloat64:function(e){return k(P(this,8,e,arguments[1]),52)},setInt8:function(e,t){C(this,1,e,S,t)},setUint8:function(e,t){C(this,1,e,S,t)},setInt16:function(e,t){C(this,2,e,_,t,arguments[2])},setUint16:function(e,t){C(this,2,e,_,t,arguments[2])},setInt32:function(e,t){C(this,4,e,T,t,arguments[2])},setUint32:function(e,t){C(this,4,e,T,t,arguments[2])},setFloat32:function(e,t){C(this,4,e,x,t,arguments[2])},setFloat64:function(e,t){C(this,8,e,A,t,arguments[2])}});Tt(f,"ArrayBuffer"),Tt(h,"DataView"),t.ArrayBuffer=f,t.DataView=h}),Gs=Ys.ArrayBuffer,Xs=Ys.DataView,Js=Gs.prototype.slice,Qs=c(function(){return!new Gs(2).slice(1,void 0).byteLength});Te({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Qs},{slice:function(e,t){if(void 0!==Js&&void 0===t)return Js.call(C(this),e);for(var n=C(this).byteLength,r=ae(e,n),i=ae(void 0===t?n:t,n),o=new(xr(this,Gs))(re(i-r)),a=new Xs(this),s=new Xs(o),c=0;r<i;)s.setUint8(c++,a.getUint8(r++));return o}});var Zs=Object.isFrozen,ec=c(function(){});Te({target:"Object",stat:!0,forced:ec},{isFrozen:function(e){return!w(e)||!!Zs&&Zs(e)}});var tc=function(e,t,n){var r,i=t.constructor;return i!==n&&"function"==typeof i&&(r=i.prototype)!==n.prototype&&w(r)&&Pt&&Pt(e,r),e},nc=I.f,rc=he.f,ic=je("match"),oc=s.RegExp,ac=oc.prototype,sc=/a/g,cc=/a/g,lc=new oc(sc)!==sc;if(Se("RegExp",l&&(!lc||c(function(){return cc[ic]=!1,oc(sc)!=sc||oc(cc)==cc||"/a/i"!=oc(sc,"i")})))){for(var uc=function(e,t){var n=this instanceof uc,r=ut(e),i=void 0===t;return!n&&r&&e.constructor===uc&&i?e:tc(lc?new oc(r&&!i?e.source:e,t):oc((r=e instanceof uc)?e.source:e,r&&i?nr.call(e):t),n?this:ac,uc)},fc=function(e){e in uc||nc(uc,e,{configurable:!0,get:function(){return oc[e]},set:function(t){oc[e]=t}})},hc=rc(oc),dc=0;dc<hc.length;)fc(hc[dc++]);ac.constructor=uc,uc.prototype=ac,Q(s,"RegExp",uc)}aa("RegExp");var pc=$s.NATIVE_ARRAY_BUFFER_VIEWS,gc=s.ArrayBuffer,mc=s.Int8Array,vc=!pc||!c(function(){mc(1)})||!c(function(){new mc(-1)})||!Ye(function(e){new mc,new mc(null),new mc(1.5),new mc(e)},!0)||c(function(){return 1!==new mc(new gc(2),1,void 0).length}),yc=function(e,t){var n=te(e);if(n<0||n%t)throw RangeError("Wrong offset");return n},bc=$s.aTypedArrayConstructor,wc=function(e){var t,n,r,i,o,a=Oe(e),s=arguments.length,c=s>1?arguments[1]:void 0,l=void 0!==c,u=Ve(a);if(null!=u&&!Ue(u))for(o=u.call(a),a=[];!(i=o.next()).done;)a.push(i.value);for(l&&s>2&&(c=Ae(c,arguments[2],2)),n=re(a.length),r=new(bc(this))(n),t=0;n>t;t++)r[t]=l?c(a[t],t):a[t];return r};t(function(e){var t=he.f,n=J.get,r=J.set,i=I.f,o=P.f,a=qt(0),c=s.RangeError,u=Ys.ArrayBuffer,f=Ys.DataView,h=$s.NATIVE_ARRAY_BUFFER_VIEWS,p=$s.TYPED_ARRAY_TAG,g=$s.TypedArray,m=$s.TypedArrayPrototype,v=$s.aTypedArrayConstructor,y=$s.isTypedArray,b=function(e,t){for(var n=0,r=t.length,i=new(v(e))(r);r>n;)i[n]=t[n++];return i},E=function(e,t){i(e,t,{get:function(){return n(this)[t]}})},_=function(e){var t;return e instanceof u||"ArrayBuffer"==(t=qe(e))||"SharedArrayBuffer"==t},T=function(e,t){return y(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},x=function(e,t){return T(e,t=k(t,!0))?d(2,e[t]):o(e,t)},A=function(e,t,n){return!(T(e,t=k(t,!0))&&w(n)&&S(n,"value"))||S(n,"get")||S(n,"set")||n.configurable||S(n,"writable")&&!n.writable||S(n,"enumerable")&&!n.enumerable?i(e,t,n):(e[t]=n.value,e)};l?(h||(P.f=x,I.f=A,E(m,"buffer"),E(m,"byteOffset"),E(m,"byteLength"),E(m,"length")),Te({target:"Object",stat:!0,forced:!h},{getOwnPropertyDescriptor:x,defineProperty:A}),e.exports=function(e,o,l,d){var v=e+(d?"Clamped":"")+"Array",k="get"+e,E="set"+e,S=s[v],T=S,x=T&&T.prototype,A={},O=function(e,t){i(e,t,{get:function(){return function(e,t){var r=n(e);return r.view[k](t*o+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=n(e);d&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.view[E](t*o+i.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};h?vc&&(T=l(function(e,t,n,r){return Dr(e,T,v),w(t)?_(t)?void 0!==r?new S(t,yc(n,o),r):void 0!==n?new S(t,yc(n,o)):new S(t):y(t)?b(T,t):wc.call(T,t):new S(Ks(t))}),Pt&&Pt(T,g),a(t(S),function(e){e in T||j(T,e,S[e])}),T.prototype=x):(T=l(function(e,t,n,i){Dr(e,T,v);var a,s,l,h=0,d=0;if(w(t)){if(!_(t))return y(t)?b(T,t):wc.call(T,t);a=t,d=yc(n,o);var p=t.byteLength;if(void 0===i){if(p%o)throw c("Wrong length");if((s=p-d)<0)throw c("Wrong length")}else if((s=re(i)*o)+d>p)throw c("Wrong length");l=s/o}else l=Ks(t),a=new u(s=l*o);for(r(e,{buffer:a,byteOffset:d,byteLength:s,length:l,view:new f(a)});h<l;)O(e,h++)}),Pt&&Pt(T,g),x=T.prototype=rt(m)),x.constructor!==T&&j(x,"constructor",T),p&&j(x,p,v),A[v]=T,Te({global:!0,forced:T!=S,sham:!h},A),"BYTES_PER_ELEMENT"in T||j(T,"BYTES_PER_ELEMENT",o),"BYTES_PER_ELEMENT"in x||j(x,"BYTES_PER_ELEMENT",o),aa(v)}):e.exports=function(){}})("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}});var kc=[].copyWithin||function(e,t){var n=Oe(this),r=re(n.length),i=ae(e,r),o=ae(t,r),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?r:ae(a,r))-o,r-i),c=1;for(o<i&&i<o+s&&(c=-1,o+=s-1,i+=s-1);s-- >0;)o in n?n[i]=n[o]:delete n[i],i+=c,o+=c;return n},Ec=$s.aTypedArray;$s.exportProto("copyWithin",function(e,t){return kc.call(Ec(this),e,t,arguments.length>2?arguments[2]:void 0)});var Sc=qt(4),_c=$s.aTypedArray;$s.exportProto("every",function(e){return Sc(_c(this),e,arguments.length>1?arguments[1]:void 0)});var Tc=$s.aTypedArray;$s.exportProto("fill",function(e){return Xo.apply(Tc(this),arguments)});var xc=qt(2),Ac=$s.aTypedArray,Oc=$s.aTypedArrayConstructor;$s.exportProto("filter",function(e){for(var t=xc(Ac(this),e,arguments.length>1?arguments[1]:void 0),n=xr(this,this.constructor),r=0,i=t.length,o=new(Oc(n))(i);i>r;)o[r]=t[r++];return o});var Pc=qt(5),Cc=$s.aTypedArray;$s.exportProto("find",function(e){return Pc(Cc(this),e,arguments.length>1?arguments[1]:void 0)});var Lc=qt(6),Ic=$s.aTypedArray;$s.exportProto("findIndex",function(e){return Lc(Ic(this),e,arguments.length>1?arguments[1]:void 0)});var jc=qt(0),Rc=$s.aTypedArray;$s.exportProto("forEach",function(e){jc(Rc(this),e,arguments.length>1?arguments[1]:void 0)});var Mc=$s.aTypedArray,Nc=se(!0);$s.exportProto("includes",function(e){return Nc(Mc(this),e,arguments.length>1?arguments[1]:void 0)});var Uc=$s.aTypedArray,Fc=se(!1);$s.exportProto("indexOf",function(e){return Fc(Uc(this),e,arguments.length>1?arguments[1]:void 0)});var Dc=je("iterator"),Bc=s.Uint8Array,qc=Vn.values,Hc=Vn.keys,Vc=Vn.entries,zc=$s.aTypedArray,Wc=$s.exportProto,$c=Bc&&Bc.prototype[Dc],Kc=!!$c&&("values"==$c.name||null==$c.name),Yc=function(){return qc.call(zc(this))};Wc("entries",function(){return Vc.call(zc(this))}),Wc("keys",function(){return Hc.call(zc(this))}),Wc("values",Yc,!Kc),Wc(Dc,Yc,!Kc);var Gc=$s.aTypedArray,Xc=[].join;$s.exportProto("join",function(e){return Xc.apply(Gc(this),arguments)});var Jc=[].lastIndexOf,Qc=!!Jc&&1/[1].lastIndexOf(1,-0)<0,Zc=Ht("lastIndexOf"),el=Qc||Zc?function(e){if(Qc)return Jc.apply(this,arguments)||0;var t=b(this),n=re(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,te(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:Jc,tl=$s.aTypedArray;$s.exportProto("lastIndexOf",function(e){return el.apply(tl(this),arguments)});var nl=$s.aTypedArray,rl=$s.aTypedArrayConstructor,il=qt(1,function(e,t){return new(rl(xr(e,e.constructor)))(t)});$s.exportProto("map",function(e){return il(nl(this),e,arguments.length>1?arguments[1]:void 0)});var ol=function(e,t,n,r,i){xe(t);var o=Oe(e),a=v(o),s=re(o.length),c=i?s-1:0,l=i?-1:1;if(n<2)for(;;){if(c in a){r=a[c],c+=l;break}if(c+=l,i?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;i?c>=0:s>c;c+=l)c in a&&(r=t(r,a[c],c,o));return r},al=$s.aTypedArray;$s.exportProto("reduce",function(e){return ol(al(this),e,arguments.length,arguments[1],!1)});var sl=$s.aTypedArray;$s.exportProto("reduceRight",function(e){return ol(sl(this),e,arguments.length,arguments[1],!0)});var cl=$s.aTypedArray;$s.exportProto("reverse",function(){for(var e,t=cl(this).length,n=Math.floor(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this});var ll=$s.aTypedArray,ul=c(function(){new Int8Array(1).set({})});$s.exportProto("set",function(e){ll(this);var t=yc(arguments[1],1),n=this.length,r=Oe(e),i=re(r.length),o=0;if(i+t>n)throw RangeError("Wrong length");for(;o<i;)this[t+o]=r[o++]},ul);var fl=$s.aTypedArray,hl=$s.aTypedArrayConstructor,dl=[].slice,pl=c(function(){new Int8Array(1).slice()});$s.exportProto("slice",function(e,t){for(var n=dl.call(fl(this),e,t),r=xr(this,this.constructor),i=0,o=n.length,a=new(hl(r))(o);o>i;)a[i]=n[i++];return a},pl);var gl=qt(3),ml=$s.aTypedArray;$s.exportProto("some",function(e){return gl(ml(this),e,arguments.length>1?arguments[1]:void 0)});var vl=$s.aTypedArray,yl=[].sort;$s.exportProto("sort",function(e){return yl.call(vl(this),e)});var bl=$s.aTypedArray;$s.exportProto("subarray",function(e,t){var n=bl(this),r=n.length,i=ae(e,r);return new(xr(n,n.constructor))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,re((void 0===t?r:ae(t,r))-i))});var wl=s.Int8Array,kl=$s.aTypedArray,El=[].toLocaleString,Sl=[].slice,_l=!!wl&&c(function(){El.call(new wl(1))}),Tl=c(function(){return[1,2].toLocaleString()!=new wl([1,2]).toLocaleString()})||!c(function(){wl.prototype.toLocaleString.call([1,2])});$s.exportProto("toLocaleString",function(){return El.apply(_l?Sl.call(kl(this)):kl(this),arguments)},Tl);var xl=s.Uint8Array,Al=xl&&xl.prototype,Ol=[].toString,Pl=[].join;c(function(){Ol.call({})})&&(Ol=function(){return Pl.call(this)}),$s.exportProto("toString",Ol,(Al||{}).toString!=Ol);var Cl=t(function(e,t){function n(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}function r(e,t){var r=[],i=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n(r,t)).join(".")+"]"}),function(o,a){if(r.length>0){var s=n(r,this);~s?r.splice(s+1):r.push(this),~s?i.splice(s,1/0,o):i.push(o),~n(r,a)&&(a=t.call(this,o,a))}else r.push(a);return null==e?a instanceof Error?function(e){var t={stack:e.stack,message:e.message,name:e.name};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(a):a:e.call(this,o,a)}}(e.exports=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)}).getSerialize=r}),Ll=(Cl.getSerialize,"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{});function Il(e){return void 0===e}function jl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Rl(e){return"[object String]"===Object.prototype.toString.call(e)}function Ml(e){return"[object Array]"===Object.prototype.toString.call(e)}function Nl(){if(!("fetch"in Ll))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Ul(e,t){var n,r;if(Il(e.length))for(n in e)Dl(e,n)&&t.call(null,n,e[n]);else if(r=e.length)for(n=0;n<r;n++)t.call(null,n,e[n])}function Fl(e,t){if("number"!=typeof t)throw new Error("2nd argument to `truncate` function should be a number");return"string"!=typeof e||0===t?e:e.length<=t?e:e.substr(0,t)+"…"}function Dl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bl(e){for(var t,n=[],r=0,i=e.length;r<i;r++)Rl(t=e[r])?n.push(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):t&&t.source&&n.push(t.source);return new RegExp(n.join("|"),"i")}function ql(e){var t,n,r,i,o,a=[];if(!e||!e.tagName)return"";if(a.push(e.tagName.toLowerCase()),e.id&&a.push("#"+e.id),(t=e.className)&&Rl(t))for(n=t.split(/\s+/),o=0;o<n.length;o++)a.push("."+n[o]);var s=["type","name","title","alt"];for(o=0;o<s.length;o++)r=s[o],(i=e.getAttribute(r))&&a.push("["+r+'="'+i+'"]');return a.join("")}function Hl(e,t){return!!(!!e^!!t)}function Vl(e,t){if(Hl(e,t))return!1;var n,r,i=e.frames,o=t.frames;if(void 0===i||void 0===o)return!1;if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(n=i[a],r=o[a],n.filename!==r.filename||n.lineno!==r.lineno||n.colno!==r.colno||n.function!==r.function)return!1;return!0}var zl=3,Wl=51200,$l=40;function Kl(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function Yl(e){if("string"==typeof e){return Fl(e,40)}if("number"==typeof e||"boolean"==typeof e||void 0===e)return e;var t=Object.prototype.toString.call(e);return"[object Object]"===t?"[Object]":"[object Array]"===t?"[Array]":"[object Function]"===t?e.name?"[Function: "+e.name+"]":"[Function]":e}var Gl={isObject:function(e){return"object"===Do(e)&&null!==e},isError:function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},isErrorEvent:function(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)},isDOMError:function(e){return"[object DOMError]"===Object.prototype.toString.call(e)},isDOMException:function(e){return"[object DOMException]"===Object.prototype.toString.call(e)},isUndefined:Il,isFunction:function(e){return"function"==typeof e},isPlainObject:jl,isString:Rl,isArray:Ml,isEmptyObject:function(e){if(!jl(e))return!1;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},supportsErrorEvent:function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},supportsDOMError:function(){try{return new DOMError(""),!0}catch(e){return!1}},supportsDOMException:function(){try{return new DOMException(""),!0}catch(e){return!1}},supportsFetch:Nl,supportsReferrerPolicy:function(){if(!Nl())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(e){return!1}},supportsPromiseRejectionEvent:function(){return"function"==typeof PromiseRejectionEvent},wrappedCallback:function(e){return function(t,n){var r=e(t)||t;return n&&n(r)||r}},each:Ul,objectMerge:function(e,t){return t?(Ul(t,function(t,n){e[t]=n}),e):e},truncate:Fl,objectFrozen:function(e){return!!Object.isFrozen&&Object.isFrozen(e)},hasKey:Dl,joinRegExp:Bl,urlencode:function(e){var t=[];return Ul(e,function(e,n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}),t.join("&")},uuid4:function(){var e=Ll.crypto||Ll.msCrypto;if(!Il(e)&&e.getRandomValues){var t=new Uint16Array(8);e.getRandomValues(t),t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;var n=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return n(t[0])+n(t[1])+n(t[2])+n(t[3])+n(t[4])+n(t[5])+n(t[6])+n(t[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},htmlTreeAsString:function(e){for(var t,n=[],r=0,i=0,o=" > ".length;e&&r++<5&&!("html"===(t=ql(e))||r>1&&i+n.length*o+t.length>=80);)n.push(t),i+=t.length,e=e.parentNode;return n.reverse().join(" > ")},htmlElementAsString:ql,isSameException:function(e,t){return!Hl(e,t)&&(e=e.values[0],t=t.values[0],e.type===t.type&&e.value===t.value&&(n=e.stacktrace,r=t.stacktrace,(!Il(n)||!Il(r))&&Vl(e.stacktrace,t.stacktrace)));var n,r},isSameStacktrace:Vl,parseUrl:function(e){if("string"!=typeof e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/),n=t[6]||"",r=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+n+r}},fill:function(e,t,n,r){if(null!=e){var i=e[t];e[t]=n(i),e[t].__raven__=!0,e[t].__orig__=i,r&&r.push([e,t,i])}},safeJoin:function(e,t){if(!Ml(e))return"";for(var n=[],r=0;r<e.length;r++)try{n.push(String(e[r]))}catch(e){n.push("[value cannot be serialized]")}return n.join(t)},serializeException:function e(t,n,r){if(!jl(t))return t;r="number"!=typeof(n="number"!=typeof n?zl:n)?Wl:r;var i=function e(t,n){return 0===n?Yl(t):jl(t)?Object.keys(t).reduce(function(r,i){return r[i]=e(t[i],n-1),r},{}):Array.isArray(t)?t.map(function(t){return e(t,n-1)}):Yl(t)}(t,n);return Kl(Cl(i))>r?e(t,n-1):i},serializeKeysForMessage:function(e,t){if("number"==typeof e||"string"==typeof e)return e.toString();if(!Array.isArray(e))return"";if(0===(e=e.filter(function(e){return"string"==typeof e})).length)return"[object has no keys]";if(t="number"!=typeof t?$l:t,e[0].length>=t)return e[0];for(var n=e.length;n>0;n--){var r=e.slice(0,n).join(", ");if(!(r.length>t))return n===e.length?r:r+"…"}return""},sanitize:function(e,t){if(!Ml(t)||Ml(t)&&0===t.length)return e;var n,r=Bl(t),i="********";try{n=JSON.parse(Cl(e))}catch(t){return e}return function e(t){return Ml(t)?t.map(function(t){return e(t)}):jl(t)?Object.keys(t).reduce(function(n,o){return r.test(o)?n[o]=i:n[o]=e(t[o]),n},{}):t}(n)}},Xl={collectWindowErrors:!0,debug:!1},Jl="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},Ql=[].slice,Zl="?",eu=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function tu(){return"undefined"==typeof document||null==document.location?"":document.location.href}Xl.report=function(){var e,t,n=[],r=null,i=null,o=null;function a(e,t){var r=null;if(!t||Xl.collectWindowErrors){for(var i in n)if(n.hasOwnProperty(i))try{n[i].apply(null,[e].concat(Ql.call(arguments,2)))}catch(e){r=e}if(r)throw r}}function s(t,n,r,i,s){var l=Gl.isErrorEvent(s)?s.error:s,u=Gl.isErrorEvent(t)?t.message:t;if(o)Xl.computeStackTrace.augmentStackTraceWithInitialElement(o,n,r,u),c();else if(l&&Gl.isError(l))a(Xl.computeStackTrace(l),!0);else{var f,h={url:n,line:r,column:i},d=void 0;if("[object String]"==={}.toString.call(u))(f=u.match(eu))&&(d=f[1],u=f[2]);h.func=Zl,a({name:d,message:u,url:tu(),stack:[h]},!0)}return!!e&&e.apply(this,arguments)}function c(){var e=o,t=r;r=null,o=null,i=null,a.apply(null,[e,!1].concat(t))}function l(e,t){var n=Ql.call(arguments,1);if(o){if(i===e)return;c()}var a=Xl.computeStackTrace(e);if(o=a,i=e,r=n,setTimeout(function(){i===e&&c()},a.incomplete?2e3:0),!1!==t)throw e}return l.subscribe=function(r){t||(e=Jl.onerror,Jl.onerror=s,t=!0),n.push(r)},l.unsubscribe=function(e){for(var t=n.length-1;t>=0;--t)n[t]===e&&n.splice(t,1)},l.uninstall=function(){t&&(Jl.onerror=e,t=!1,e=void 0),n=[]},l}(),Xl.computeStackTrace=function(){function e(e){if(void 0!==e.stack&&e.stack){for(var t,n,r,i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx(?:-web)|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,s=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,l=e.stack.split("\n"),u=[],f=(/^(.*) is undefined$/.exec(e.message),0),h=l.length;f<h;++f){if(n=i.exec(l[f])){var d=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=c.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:d?null:n[2],func:n[1]||Zl,args:d?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=o.exec(l[f]))r={url:n[2],func:n[1]||Zl,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=a.exec(l[f])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=s.exec(n[3]))?(n[3]=t[1],n[4]=t[2],n[5]=null):0!==f||n[5]||void 0===e.columnNumber||(u[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||Zl,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!r.func&&r.line&&(r.func=Zl),r.url&&"blob:"===r.url.substr(0,5)){var p=new XMLHttpRequest;if(p.open("GET",r.url,!1),p.send(null),200===p.status){var g=p.responseText||"",m=(g=g.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(m){var v=m[1];"~"===v.charAt(0)&&(v=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+v.slice(1)),r.url=v.slice(0,-4)}}}u.push(r)}return u.length?{name:e.name,message:e.message,url:tu(),stack:u}:null}}function t(e,t,n,r){var i={url:t,line:n};if(i.url&&i.line){if(e.incomplete=!1,i.func||(i.func=Zl),e.stack.length>0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function n(e,i){for(var o,a,s=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,c=[],l={},u=!1,f=n.caller;f&&!u;f=f.caller)if(f!==r&&f!==Xl.report){if(a={url:null,func:Zl,line:null,column:null},f.name?a.func=f.name:(o=s.exec(f.toString()))&&(a.func=o[1]),void 0===a.func)try{a.func=o.input.substring(0,o.input.indexOf("{"))}catch(e){}l[""+f]?u=!0:l[""+f]=!0,c.push(a)}i&&c.splice(0,i);var h={name:e.name,message:e.message,url:tu(),stack:c};return t(h,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),h}function r(t,r){var i=null;r=null==r?0:+r;try{if(i=e(t))return i}catch(e){if(Xl.debug)throw e}try{if(i=n(t,r+1))return i}catch(e){if(Xl.debug)throw e}return{name:t.name,message:t.message,url:tu()}}return r.augmentStackTraceWithInitialElement=t,r.computeStackTraceFromStackProp=e,r}();var nu=Xl;function ru(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function iu(e,t,n,r,i,o){return ru((a=ru(ru(t,e),ru(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function ou(e,t,n,r,i,o,a){return iu(t&n|~t&r,e,t,i,o,a)}function au(e,t,n,r,i,o,a){return iu(t&r|n&~r,e,t,i,o,a)}function su(e,t,n,r,i,o,a){return iu(t^n^r,e,t,i,o,a)}function cu(e,t,n,r,i,o,a){return iu(n^(t|~r),e,t,i,o,a)}function lu(e,t){var n,r,i,o,a;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var s=1732584193,c=-271733879,l=-1732584194,u=271733878;for(n=0;n<e.length;n+=16)r=s,i=c,o=l,a=u,s=ou(s,c,l,u,e[n],7,-680876936),u=ou(u,s,c,l,e[n+1],12,-389564586),l=ou(l,u,s,c,e[n+2],17,606105819),c=ou(c,l,u,s,e[n+3],22,-1044525330),s=ou(s,c,l,u,e[n+4],7,-176418897),u=ou(u,s,c,l,e[n+5],12,1200080426),l=ou(l,u,s,c,e[n+6],17,-1473231341),c=ou(c,l,u,s,e[n+7],22,-45705983),s=ou(s,c,l,u,e[n+8],7,1770035416),u=ou(u,s,c,l,e[n+9],12,-1958414417),l=ou(l,u,s,c,e[n+10],17,-42063),c=ou(c,l,u,s,e[n+11],22,-1990404162),s=ou(s,c,l,u,e[n+12],7,1804603682),u=ou(u,s,c,l,e[n+13],12,-40341101),l=ou(l,u,s,c,e[n+14],17,-1502002290),s=au(s,c=ou(c,l,u,s,e[n+15],22,1236535329),l,u,e[n+1],5,-165796510),u=au(u,s,c,l,e[n+6],9,-1069501632),l=au(l,u,s,c,e[n+11],14,643717713),c=au(c,l,u,s,e[n],20,-373897302),s=au(s,c,l,u,e[n+5],5,-701558691),u=au(u,s,c,l,e[n+10],9,38016083),l=au(l,u,s,c,e[n+15],14,-660478335),c=au(c,l,u,s,e[n+4],20,-405537848),s=au(s,c,l,u,e[n+9],5,568446438),u=au(u,s,c,l,e[n+14],9,-1019803690),l=au(l,u,s,c,e[n+3],14,-187363961),c=au(c,l,u,s,e[n+8],20,1163531501),s=au(s,c,l,u,e[n+13],5,-1444681467),u=au(u,s,c,l,e[n+2],9,-51403784),l=au(l,u,s,c,e[n+7],14,1735328473),s=su(s,c=au(c,l,u,s,e[n+12],20,-1926607734),l,u,e[n+5],4,-378558),u=su(u,s,c,l,e[n+8],11,-2022574463),l=su(l,u,s,c,e[n+11],16,1839030562),c=su(c,l,u,s,e[n+14],23,-35309556),s=su(s,c,l,u,e[n+1],4,-1530992060),u=su(u,s,c,l,e[n+4],11,1272893353),l=su(l,u,s,c,e[n+7],16,-155497632),c=su(c,l,u,s,e[n+10],23,-1094730640),s=su(s,c,l,u,e[n+13],4,681279174),u=su(u,s,c,l,e[n],11,-358537222),l=su(l,u,s,c,e[n+3],16,-722521979),c=su(c,l,u,s,e[n+6],23,76029189),s=su(s,c,l,u,e[n+9],4,-640364487),u=su(u,s,c,l,e[n+12],11,-421815835),l=su(l,u,s,c,e[n+15],16,530742520),s=cu(s,c=su(c,l,u,s,e[n+2],23,-995338651),l,u,e[n],6,-198630844),u=cu(u,s,c,l,e[n+7],10,1126891415),l=cu(l,u,s,c,e[n+14],15,-1416354905),c=cu(c,l,u,s,e[n+5],21,-57434055),s=cu(s,c,l,u,e[n+12],6,1700485571),u=cu(u,s,c,l,e[n+3],10,-1894986606),l=cu(l,u,s,c,e[n+10],15,-1051523),c=cu(c,l,u,s,e[n+1],21,-2054922799),s=cu(s,c,l,u,e[n+8],6,1873313359),u=cu(u,s,c,l,e[n+15],10,-30611744),l=cu(l,u,s,c,e[n+6],15,-1560198380),c=cu(c,l,u,s,e[n+13],21,1309151649),s=cu(s,c,l,u,e[n+4],6,-145523070),u=cu(u,s,c,l,e[n+11],10,-1120210379),l=cu(l,u,s,c,e[n+2],15,718787259),c=cu(c,l,u,s,e[n+9],21,-343485551),s=ru(s,r),c=ru(c,i),l=ru(l,o),u=ru(u,a);return[s,c,l,u]}function uu(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function fu(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function hu(e){var t,n,r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return r}function du(e){return unescape(encodeURIComponent(e))}function pu(e){return function(e){return uu(lu(fu(e),8*e.length))}(du(e))}function gu(e,t){return function(e,t){var n,r,i=fu(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=lu(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=lu(o.concat(fu(t)),512+8*t.length),uu(lu(a.concat(r),640))}(du(e),du(t))}var mu=function(e,t,n){return t?n?gu(t,e):function(e,t){return hu(gu(e,t))}(t,e):n?pu(e):hu(pu(e))};function vu(e){this.name="RavenConfigError",this.message=e}vu.prototype=new Error,vu.prototype.constructor=vu;var yu=vu,bu=function(e,t,n){var r=e[t],i=e;if(t in e){var o="warn"===t?"warning":t;e[t]=function(){var e=[].slice.call(arguments),a=Gl.safeJoin(e," "),s={level:o,logger:"console",extra:{arguments:e}};"assert"===t?!1===e[0]&&(a="Assertion failed: "+(Gl.safeJoin(e.slice(1)," ")||"console.assert"),s.extra.arguments=e.slice(1),n&&n(a,s)):n&&n(a,s),r&&Function.prototype.apply.call(r,i,e)}}},wu=Gl.isErrorEvent,ku=Gl.isDOMError,Eu=Gl.isDOMException,Su=Gl.isError,_u=Gl.isObject,Tu=Gl.isPlainObject,xu=Gl.isUndefined,Au=Gl.isFunction,Ou=Gl.isString,Pu=Gl.isArray,Cu=Gl.isEmptyObject,Lu=Gl.each,Iu=Gl.objectMerge,ju=Gl.truncate,Ru=Gl.objectFrozen,Mu=Gl.hasKey,Nu=Gl.joinRegExp,Uu=Gl.urlencode,Fu=Gl.uuid4,Du=Gl.htmlTreeAsString,Bu=Gl.isSameException,qu=Gl.isSameStacktrace,Hu=Gl.parseUrl,Vu=Gl.fill,zu=Gl.supportsFetch,Wu=Gl.supportsReferrerPolicy,$u=Gl.serializeKeysForMessage,Ku=Gl.serializeException,Yu=Gl.sanitize,Gu=bu,Xu="source protocol user pass host port path".split(" "),Ju=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function Qu(){return+new Date}var Zu="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},ef=Zu.document,tf=Zu.navigator;function nf(e,t){return Au(t)?function(n){return t(n,e)}:t}function rf(){for(var e in this._hasJSON=!("object"!==("undefined"==typeof JSON?"undefined":Do(JSON))||!JSON.stringify),this._hasDocument=!xu(ef),this._hasNavigator=!xu(tf),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:Zu.SENTRY_RELEASE&&Zu.SENTRY_RELEASE.id,logger:"javascript",ignoreErrors:[],ignoreUrls:[],whitelistUrls:[],includePaths:[],headers:null,collectWindowErrors:!0,captureUnhandledRejections:!0,maxMessageLength:0,maxUrlLength:250,stackTraceLimit:50,autoBreadcrumbs:!0,instrument:!0,sampleRate:1,sanitizeKeys:[]},this._fetchDefaults={method:"POST",referrerPolicy:Wu()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=Zu.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=Qu(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=Zu.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[e]=this._originalConsole[e]}rf.prototype={VERSION:"3.27.1",debug:!1,TraceKit:nu,config:function(e,t){var n=this;if(n._globalServer)return this._logDebug("error","Error: Raven has already been configured"),n;if(!e)return n;var r=n._globalOptions;t&&Lu(t,function(e,t){"tags"===e||"extra"===e||"user"===e?n._globalContext[e]=t:r[e]=t}),n.setDSN(e),r.ignoreErrors.push(/^Script error\.?$/),r.ignoreErrors.push(/^Javascript error: Script error\.? on line 0$/),r.ignoreErrors=Nu(r.ignoreErrors),r.ignoreUrls=!!r.ignoreUrls.length&&Nu(r.ignoreUrls),r.whitelistUrls=!!r.whitelistUrls.length&&Nu(r.whitelistUrls),r.includePaths=Nu(r.includePaths),r.maxBreadcrumbs=Math.max(0,Math.min(r.maxBreadcrumbs||100,100));var i={xhr:!0,console:!0,dom:!0,location:!0,sentry:!0},o=r.autoBreadcrumbs;"[object Object]"==={}.toString.call(o)?o=Iu(i,o):!1!==o&&(o=i),r.autoBreadcrumbs=o;var a={tryCatch:!0},s=r.instrument;return"[object Object]"==={}.toString.call(s)?s=Iu(a,s):!1!==s&&(s=a),r.instrument=s,nu.collectWindowErrors=!!r.collectWindowErrors,n},install:function(){var e=this;return e.isSetup()&&!e._isRavenInstalled&&(nu.report.subscribe(function(){e._handleOnErrorStackInfo.apply(e,arguments)}),e._globalOptions.captureUnhandledRejections&&e._attachPromiseRejectionHandler(),e._patchFunctionToString(),e._globalOptions.instrument&&e._globalOptions.instrument.tryCatch&&e._instrumentTryCatch(),e._globalOptions.autoBreadcrumbs&&e._instrumentBreadcrumbs(),e._drainPlugins(),e._isRavenInstalled=!0),Error.stackTraceLimit=e._globalOptions.stackTraceLimit,this},setDSN:function(e){var t=this._parseDSN(e),n=t.path.lastIndexOf("/"),r=t.path.substr(1,n);this._dsn=e,this._globalKey=t.user,this._globalSecret=t.pass&&t.pass.substr(1),this._globalProject=t.path.substr(n+1),this._globalServer=this._getGlobalServer(t),this._globalEndpoint=this._globalServer+"/"+r+"api/"+this._globalProject+"/store/",this._resetBackoff()},context:function(e,t,n){return Au(e)&&(n=t||[],t=e,e={}),this.wrap(e,t).apply(this,n)},wrap:function(e,t,n){var r=this;if(xu(t)&&!Au(e))return e;if(Au(e)&&(t=e,e=void 0),!Au(t))return t;try{if(t.__raven__)return t;if(t.__raven_wrapper__)return t.__raven_wrapper__}catch(e){return t}function i(){var i=[],o=arguments.length,a=!e||e&&!1!==e.deep;for(n&&Au(n)&&n.apply(this,arguments);o--;)i[o]=a?r.wrap(e,arguments[o]):arguments[o];try{return t.apply(this,i)}catch(t){throw r._ignoreNextOnError(),r.captureException(t,e),t}}for(var o in t)Mu(t,o)&&(i[o]=t[o]);return i.prototype=t.prototype,t.__raven_wrapper__=i,i.__raven__=!0,i.__orig__=t,i},uninstall:function(){return nu.report.uninstall(),this._detachPromiseRejectionHandler(),this._unpatchFunctionToString(),this._restoreBuiltIns(),this._restoreConsole(),Error.stackTraceLimit=this._originalErrorStackTraceLimit,this._isRavenInstalled=!1,this},_promiseRejectionHandler:function(e){this._logDebug("debug","Raven caught unhandled promise rejection:",e),this.captureException(e.reason,{mechanism:{type:"onunhandledrejection",handled:!1}})},_attachPromiseRejectionHandler:function(){return this._promiseRejectionHandler=this._promiseRejectionHandler.bind(this),Zu.addEventListener&&Zu.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return Zu.removeEventListener&&Zu.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(e,t){if(t=Iu({trimHeadFrames:0},t||{}),wu(e)&&e.error)e=e.error;else{if(ku(e)||Eu(e)){var n=e.name||(ku(e)?"DOMError":"DOMException"),r=e.message?n+": "+e.message:n;return this.captureMessage(r,Iu(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}))}if(Su(e))e=e;else{if(!Tu(e))return this.captureMessage(e,Iu(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}));t=this._getCaptureExceptionOptionsFromPlainObject(t,e),e=new Error(t.message)}}this._lastCapturedException=e;try{var i=nu.computeStackTrace(e);this._handleStackInfo(i,t)}catch(t){if(e!==t)throw t}return this},_getCaptureExceptionOptionsFromPlainObject:function(e,t){var n=Object.keys(t).sort(),r=Iu(e,{message:"Non-Error exception captured with keys: "+$u(n),fingerprint:[mu(n)],extra:e.extra||{}});return r.extra.__serialized__=Ku(t),r},captureMessage:function(e,t){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)){var n,r=Iu({message:e+=""},t=t||{});try{throw new Error(e)}catch(e){n=e}n.name=null;var i=nu.computeStackTrace(n),o=Pu(i.stack)&&i.stack[1];o&&"Raven.captureException"===o.func&&(o=i.stack[2]);var a=o&&o.url||"";if((!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(a))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(a))){if(this._globalOptions.stacktrace||t.stacktrace||""===r.message){r.fingerprint=null==r.fingerprint?e:r.fingerprint,(t=Iu({trimHeadFrames:0},t)).trimHeadFrames+=1;var s=this._prepareFrames(i,t);r.stacktrace={frames:s.reverse()}}return r.fingerprint&&(r.fingerprint=Pu(r.fingerprint)?r.fingerprint:[r.fingerprint]),this._send(r),this}}},captureBreadcrumb:function(e){var t=Iu({timestamp:Qu()/1e3},e);if(Au(this._globalOptions.breadcrumbCallback)){var n=this._globalOptions.breadcrumbCallback(t);if(_u(n)&&!Cu(n))t=n;else if(!1===n)return this}return this._breadcrumbs.push(t),this._breadcrumbs.length>this._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(e){var t=[].slice.call(arguments,1);return this._plugins.push([e,t]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(e){return this._globalContext.user=e,this},setExtraContext:function(e){return this._mergeContext("extra",e),this},setTagsContext:function(e){return this._mergeContext("tags",e),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(Cl(this._globalContext))},setEnvironment:function(e){return this._globalOptions.environment=e,this},setRelease:function(e){return this._globalOptions.release=e,this},setDataCallback:function(e){var t=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=nf(t,e),this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=nf(t,e),this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=nf(t,e),this},setTransport:function(e){return this._globalOptions.transport=e,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var e=Zu.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(ef){if(!(e=Iu({eventId:this.lastEventId(),dsn:this._dsn,user:this._globalContext.user||{}},e)).eventId)throw new yu("Missing eventId");if(!e.dsn)throw new yu("Missing DSN");var t=encodeURIComponent,n=[];for(var r in e)if("user"===r){var i=e.user;i.name&&n.push("name="+t(i.name)),i.email&&n.push("email="+t(i.email))}else n.push(t(r)+"="+t(e[r]));var o=this._getGlobalServer(this._parseDSN(e.dsn)),a=ef.createElement("script");a.async=!0,a.src=o+"/api/embed/error-page/?"+n.join("&"),(ef.head||ef.body).appendChild(a)}},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1,setTimeout(function(){e._ignoreOnError-=1})},_triggerEvent:function(e,t){var n,r;if(this._hasDocument){for(r in t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),ef.createEvent?(n=ef.createEvent("HTMLEvents")).initEvent(e,!0,!0):(n=ef.createEventObject()).eventType=e,t)Mu(t,r)&&(n[r]=t[r]);if(ef.createEvent)ef.dispatchEvent(n);else try{ef.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(e){}}},_breadcrumbEventHandler:function(e){var t=this;return function(n){if(t._keypressTimeout=null,t._lastCapturedEvent!==n){var r;t._lastCapturedEvent=n;try{r=Du(n.target)}catch(e){r="<unknown>"}t.captureBreadcrumb({category:"ui."+e,message:r})}}},_keypressEventHandler:function(){var e=this;return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;if(r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)){var i=e._keypressTimeout;i||e._breadcrumbEventHandler("input")(t),clearTimeout(i),e._keypressTimeout=setTimeout(function(){e._keypressTimeout=null},1e3)}}},_captureUrlChange:function(e,t){var n=Hu(this._location.href),r=Hu(t),i=Hu(e);this._lastHref=t,n.protocol===r.protocol&&n.host===r.host&&(t=r.relative),n.protocol===i.protocol&&n.host===i.host&&(e=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_patchFunctionToString:function(){var e=this;e._originalFunctionToString=Function.prototype.toString,Function.prototype.toString=function(){return"function"==typeof this&&this.__raven__?e._originalFunctionToString.apply(this.__orig__,arguments):e._originalFunctionToString.apply(this,arguments)}},_unpatchFunctionToString:function(){this._originalFunctionToString&&(Function.prototype.toString=this._originalFunctionToString)},_instrumentTryCatch:function(){var e=this,t=e._wrappedBuiltIns;function n(t){return function(n,r){for(var i=new Array(arguments.length),o=0;o<i.length;++o)i[o]=arguments[o];var a=i[0];return Au(a)&&(i[0]=e.wrap({mechanism:{type:"instrument",data:{function:t.name||"<anonymous>"}}},a)),t.apply?t.apply(this,i):t(i[0],i[1])}}var r=this._globalOptions.autoBreadcrumbs;function i(n){var i=Zu[n]&&Zu[n].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(Vu(i,"addEventListener",function(t){return function(i,o,a,s){try{o&&o.handleEvent&&(o.handleEvent=e.wrap({mechanism:{type:"instrument",data:{target:n,function:"handleEvent",handler:o&&o.name||"<anonymous>"}}},o.handleEvent))}catch(e){}var c,l,u;return r&&r.dom&&("EventTarget"===n||"Node"===n)&&(l=e._breadcrumbEventHandler("click"),u=e._keypressEventHandler(),c=function(e){if(e){var t;try{t=e.type}catch(e){return}return"click"===t?l(e):"keypress"===t?u(e):void 0}}),t.call(this,i,e.wrap({mechanism:{type:"instrument",data:{target:n,function:"addEventListener",handler:o&&o.name||"<anonymous>"}}},o,c),a,s)}},t),Vu(i,"removeEventListener",function(e){return function(t,n,r,i){try{n=n&&(n.__raven_wrapper__?n.__raven_wrapper__:n)}catch(e){}return e.call(this,t,n,r,i)}},t))}Vu(Zu,"setTimeout",n,t),Vu(Zu,"setInterval",n,t),Zu.requestAnimationFrame&&Vu(Zu,"requestAnimationFrame",function(t){return function(n){return t(e.wrap({mechanism:{type:"instrument",data:{function:"requestAnimationFrame",handler:t&&t.name||"<anonymous>"}}},n))}},t);for(var o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],a=0;a<o.length;a++)i(o[a])},_instrumentBreadcrumbs:function(){var e=this,t=this._globalOptions.autoBreadcrumbs,n=e._wrappedBuiltIns;function r(t,n){t in n&&Au(n[t])&&Vu(n,t,function(n){return e.wrap({mechanism:{type:"instrument",data:{function:t,handler:n&&n.name||"<anonymous>"}}},n)})}if(t.xhr&&"XMLHttpRequest"in Zu){var i=Zu.XMLHttpRequest&&Zu.XMLHttpRequest.prototype;Vu(i,"open",function(t){return function(n,r){return Ou(r)&&-1===r.indexOf(e._globalKey)&&(this.__raven_xhr={method:n,url:r,status_code:null}),t.apply(this,arguments)}},n),Vu(i,"send",function(t){return function(){var n=this;function i(){if(n.__raven_xhr&&4===n.readyState){try{n.__raven_xhr.status_code=n.status}catch(e){}e.captureBreadcrumb({type:"http",category:"xhr",data:n.__raven_xhr})}}for(var o=["onload","onerror","onprogress"],a=0;a<o.length;a++)r(o[a],n);return"onreadystatechange"in n&&Au(n.onreadystatechange)?Vu(n,"onreadystatechange",function(t){return e.wrap({mechanism:{type:"instrument",data:{function:"onreadystatechange",handler:t&&t.name||"<anonymous>"}}},t,i)}):n.onreadystatechange=i,t.apply(this,arguments)}},n)}t.xhr&&zu()&&Vu(Zu,"fetch",function(t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;++r)n[r]=arguments[r];var i,o=n[0],a="GET";if("string"==typeof o?i=o:"Request"in Zu&&o instanceof Zu.Request?(i=o.url,o.method&&(a=o.method)):i=""+o,-1!==i.indexOf(e._globalKey))return t.apply(this,n);n[1]&&n[1].method&&(a=n[1].method);var s={method:a,url:i,status_code:null};return t.apply(this,n).then(function(t){return s.status_code=t.status,e.captureBreadcrumb({type:"http",category:"fetch",data:s}),t}).catch(function(t){throw e.captureBreadcrumb({type:"http",category:"fetch",data:s,level:"error"}),t})}},n),t.dom&&this._hasDocument&&(ef.addEventListener?(ef.addEventListener("click",e._breadcrumbEventHandler("click"),!1),ef.addEventListener("keypress",e._keypressEventHandler(),!1)):ef.attachEvent&&(ef.attachEvent("onclick",e._breadcrumbEventHandler("click")),ef.attachEvent("onkeypress",e._keypressEventHandler())));var o=Zu.chrome,a=!(o&&o.app&&o.app.runtime)&&Zu.history&&Zu.history.pushState&&Zu.history.replaceState;if(t.location&&a){var s=Zu.onpopstate;Zu.onpopstate=function(){var t=e._location.href;if(e._captureUrlChange(e._lastHref,t),s)return s.apply(this,arguments)};var c=function(t){return function(){var n=arguments.length>2?arguments[2]:void 0;return n&&e._captureUrlChange(e._lastHref,n+""),t.apply(this,arguments)}};Vu(Zu.history,"pushState",c,n),Vu(Zu.history,"replaceState",c,n)}if(t.console&&"console"in Zu&&console.log){var l=function(t,n){e.captureBreadcrumb({message:t,level:n.level,category:"console"})};Lu(["debug","info","warn","error","log"],function(e,t){Gu(console,t,l)})}},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){var t=(e=this._wrappedBuiltIns.shift())[0],n=e[1],r=e[2];t[n]=r}},_restoreConsole:function(){for(var e in this._originalConsoleMethods)this._originalConsole[e]=this._originalConsoleMethods[e]},_drainPlugins:function(){var e=this;Lu(this._plugins,function(t,n){var r=n[0],i=n[1];r.apply(e,[e].concat(i))})},_parseDSN:function(e){var t=Ju.exec(e),n={},r=7;try{for(;r--;)n[Xu[r]]=t[r]||""}catch(t){throw new yu("Invalid DSN: "+e)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new yu("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},_handleOnErrorStackInfo:function(e,t){(t=t||{}).mechanism=t.mechanism||{type:"onerror",handled:!1},this._ignoreOnError||this._handleStackInfo(e,t)},_handleStackInfo:function(e,t){var n=this._prepareFrames(e,t);this._triggerEvent("handle",{stackInfo:e,options:t}),this._processException(e.name,e.message,e.url,e.lineno,n,t)},_prepareFrames:function(e,t){var n=this,r=[];if(e.stack&&e.stack.length&&(Lu(e.stack,function(t,i){var o=n._normalizeFrame(i,e.url);o&&r.push(o)}),t&&t.trimHeadFrames))for(var i=0;i<t.trimHeadFrames&&i<r.length;i++)r[i].in_app=!1;return r=r.slice(0,this._globalOptions.stackTraceLimit)},_normalizeFrame:function(e,t){var n={filename:e.url,lineno:e.line,colno:e.column,function:e.func||"?"};return e.url||(n.filename=t),n.in_app=!(this._globalOptions.includePaths.test&&!this._globalOptions.includePaths.test(n.filename)||/(Raven|TraceKit)\./.test(n.function)||/raven\.(min\.)?js$/.test(n.filename)),n},_processException:function(e,t,n,r,i,o){var a,s=(e?e+": ":"")+(t||"");if((!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(t)&&!this._globalOptions.ignoreErrors.test(s))&&(i&&i.length?(n=i[0].filename||n,i.reverse(),a={frames:i}):n&&(a={frames:[{filename:n,lineno:r,in_app:!0}]}),(!this._globalOptions.ignoreUrls.test||!this._globalOptions.ignoreUrls.test(n))&&(!this._globalOptions.whitelistUrls.test||this._globalOptions.whitelistUrls.test(n)))){var c=Iu({exception:{values:[{type:e,value:t,stacktrace:a}]},transaction:n},o),l=c.exception.values[0];null==l.type&&""===l.value&&(l.value="Unrecoverable error caught"),!c.exception.mechanism&&c.mechanism&&(c.exception.mechanism=c.mechanism,delete c.mechanism),c.exception.mechanism=Iu({type:"generic",handled:!0},c.exception.mechanism||{}),this._send(c)}},_trimPacket:function(e){var t=this._globalOptions.maxMessageLength;if(e.message&&(e.message=ju(e.message,t)),e.exception){var n=e.exception.values[0];n.value=ju(n.value,t)}var r=e.request;return r&&(r.url&&(r.url=ju(r.url,this._globalOptions.maxUrlLength)),r.Referer&&(r.Referer=ju(r.Referer,this._globalOptions.maxUrlLength))),e.breadcrumbs&&e.breadcrumbs.values&&this._trimBreadcrumbs(e.breadcrumbs),e},_trimBreadcrumbs:function(e){for(var t,n,r,i=["to","from","url"],o=0;o<e.values.length;++o)if((n=e.values[o]).hasOwnProperty("data")&&_u(n.data)&&!Ru(n.data)){r=Iu({},n.data);for(var a=0;a<i.length;++a)t=i[a],r.hasOwnProperty(t)&&r[t]&&(r[t]=ju(r[t],this._globalOptions.maxUrlLength));e.values[o].data=r}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var e={};return this._hasNavigator&&tf.userAgent&&(e.headers={"User-Agent":tf.userAgent}),Zu.location&&Zu.location.href&&(e.url=Zu.location.href),this._hasDocument&&ef.referrer&&(e.headers||(e.headers={}),e.headers.Referer=ef.referrer),e}},_resetBackoff:function(){this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&&Qu()-this._backoffStart<this._backoffDuration},_isRepeatData:function(e){var t=this._lastData;return!(!t||e.message!==t.message||e.transaction!==t.transaction)&&(e.stacktrace||t.stacktrace?qu(e.stacktrace,t.stacktrace):e.exception||t.exception?Bu(e.exception,t.exception):!e.fingerprint&&!t.fingerprint||Boolean(e.fingerprint&&t.fingerprint)&&JSON.stringify(e.fingerprint)===JSON.stringify(t.fingerprint))},_setBackoffState:function(e){if(!this._shouldBackoff()){var t=e.status;if(400===t||401===t||429===t){var n;try{n=zu()?e.headers.get("Retry-After"):e.getResponseHeader("Retry-After"),n=1e3*parseInt(n,10)}catch(e){}this._backoffDuration=n||(2*this._backoffDuration||1e3),this._backoffStart=Qu()}}},_send:function(e){var t=this._globalOptions,n={project:this._globalProject,logger:t.logger,platform:"javascript"},r=this._getHttpData();r&&(n.request=r),e.trimHeadFrames&&delete e.trimHeadFrames,(e=Iu(n,e)).tags=Iu(Iu({},this._globalContext.tags),e.tags),e.extra=Iu(Iu({},this._globalContext.extra),e.extra),e.extra["session:duration"]=Qu()-this._startTime,this._breadcrumbs&&this._breadcrumbs.length>0&&(e.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),this._globalContext.user&&(e.user=this._globalContext.user),t.environment&&(e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.server_name=t.serverName),e=this._sanitizeData(e),Object.keys(e).forEach(function(t){(null==e[t]||""===e[t]||Cu(e[t]))&&delete e[t]}),Au(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!Cu(e)&&(Au(t.shouldSendCallback)&&!t.shouldSendCallback(e)||(this._shouldBackoff()?this._logDebug("warn","Raven dropped error due to backoff: ",e):"number"==typeof t.sampleRate?Math.random()<t.sampleRate&&this._sendProcessedPayload(e):this._sendProcessedPayload(e)))},_sanitizeData:function(e){return Yu(e,this._globalOptions.sanitizeKeys)},_getUuid:function(){return Fu()},_sendProcessedPayload:function(e,t){var n=this,r=this._globalOptions;if(this.isSetup())if(e=this._trimPacket(e),this._globalOptions.allowDuplicates||!this._isRepeatData(e)){this._lastEventId=e.event_id||(e.event_id=this._getUuid()),this._lastData=e,this._logDebug("debug","Raven about to send:",e);var i={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(i.sentry_secret=this._globalSecret);var o=e.exception&&e.exception.values[0];this._globalOptions.autoBreadcrumbs&&this._globalOptions.autoBreadcrumbs.sentry&&this.captureBreadcrumb({category:"sentry",message:o?(o.type?o.type+": ":"")+o.value:e.message,event_id:e.event_id,level:e.level||"error"});var a=this._globalEndpoint;(r.transport||this._makeRequest).call(this,{url:a,auth:i,data:e,options:r,onSuccess:function(){n._resetBackoff(),n._triggerEvent("success",{data:e,src:a}),t&&t()},onError:function(r){n._logDebug("error","Raven transport failed to send: ",r),r.request&&n._setBackoffState(r.request),n._triggerEvent("failure",{data:e,src:a}),r=r||new Error("Raven send failed (no additional details provided)"),t&&t(r)}})}else this._logDebug("warn","Raven dropped repeat event: ",e)},_makeRequest:function(e){var t=e.url+"?"+Uu(e.auth),n=null,r={};if(e.options.headers&&(n=this._evaluateHash(e.options.headers)),e.options.fetchParameters&&(r=this._evaluateHash(e.options.fetchParameters)),zu()){r.body=Cl(e.data);var i=Iu({},this._fetchDefaults),o=Iu(i,r);return n&&(o.headers=n),Zu.fetch(t,o).then(function(t){if(t.ok)e.onSuccess&&e.onSuccess();else{var n=new Error("Sentry error code: "+t.status);n.request=t,e.onError&&e.onError(n)}}).catch(function(){e.onError&&e.onError(new Error("Sentry error code: network unavailable"))})}var a=Zu.XMLHttpRequest&&new Zu.XMLHttpRequest;a&&(("withCredentials"in a||"undefined"!=typeof XDomainRequest)&&("withCredentials"in a?a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)e.onSuccess&&e.onSuccess();else if(e.onError){var t=new Error("Sentry error code: "+a.status);t.request=a,e.onError(t)}}:(a=new XDomainRequest,t=t.replace(/^https?:/,""),e.onSuccess&&(a.onload=e.onSuccess),e.onError&&(a.onerror=function(){var t=new Error("Sentry error code: XDomainRequest");t.request=a,e.onError(t)})),a.open("POST",t),n&&Lu(n,function(e,t){a.setRequestHeader(e,t)}),a.send(Cl(e.data))))},_evaluateHash:function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]="function"==typeof r?r():r}return t},_logDebug:function(e){this._originalConsoleMethods[e]&&(this.debug||this._globalOptions.debug)&&Function.prototype.apply.call(this._originalConsoleMethods[e],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(e,t){xu(t)?delete this._globalContext[e]:this._globalContext[e]=Iu(this._globalContext[e]||{},t)}},rf.prototype.setUser=rf.prototype.setUserContext,rf.prototype.setReleaseContext=rf.prototype.setRelease;var of=rf,af="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},sf=af.Raven,cf=new of;cf.noConflict=function(){return af.Raven=sf,cf},cf.afterLoad();var lf=cf,uf=of;lf.Client=uf;var ff=qt(5),hf=!0;"find"in[]&&Array(1).find(function(){hf=!1}),Te({target:"Array",proto:!0,forced:hf},{find:function(e){return ff(this,e,arguments.length>1?arguments[1]:void 0)}}),at("find");var df="[\t\n\v\f\r \u2028\u2029\ufeff]",pf=RegExp("^"+df+df+"*"),gf=RegExp(df+df+"*$"),mf=he.f,vf=P.f,yf=I.f,bf=s.Number,wf=bf.prototype,kf="Number"==g(rt(wf)),Ef="trim"in String.prototype,Sf=function(e){var t,n,r,i,o,a,s,c,l,u,f=k(e,!1);if("string"==typeof f&&f.length>2)if(43===(t=(f=Ef?f.trim():(l=f,u=3,l=String(y(l)),1&u&&(l=l.replace(pf,"")),2&u&&(l=l.replace(gf,"")),l)).charCodeAt(0))||45===t){if(88===(n=f.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(f.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+f}for(a=(o=f.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+f};if(Se("Number",!bf(" 0o1")||!bf("0b1")||bf("+0x1"))){for(var _f,Tf=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof Tf&&(kf?c(function(){wf.valueOf.call(n)}):"Number"!=g(n))?tc(new bf(Sf(t)),n,Tf):Sf(t)},xf=l?mf(bf):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Af=0;xf.length>Af;Af++)S(bf,_f=xf[Af])&&!S(Tf,_f)&&yf(Tf,_f,vf(bf,_f));Tf.prototype=wf,wf.constructor=Tf,Q(s,"Number",Tf)}Te({target:"Number",stat:!0},{isNaN:function(e){return e!=e}}),Te({target:"Object",stat:!0,forced:Object.assign!==qr},{assign:qr});var Of=h.f;function Pf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lf(e,t,n){return t&&Cf(e.prototype,t),n&&Cf(e,n),e}function If(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Te({target:"Object",stat:!0},{entries:function(e){return function(e,t){for(var n,r=b(e),i=Xe(r),o=i.length,a=0,s=[];o>a;)n=i[a++],l&&!Of.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s}(e,!0)}});var Rf=function(e){return null!=e?e.constructor:null},Mf=function(e,t){return!!(e&&t&&e instanceof t)},Nf=function(e){return null==e},Uf=function(e){return Rf(e)===Object},Ff=function(e){return Rf(e)===String},Df=function(e){return Array.isArray(e)},Bf=function(e){return Mf(e,NodeList)},qf={nullOrUndefined:Nf,object:Uf,number:function(e){return Rf(e)===Number&&!Number.isNaN(e)},string:Ff,boolean:function(e){return Rf(e)===Boolean},function:function(e){return Rf(e)===Function},array:Df,nodeList:Bf,element:function(e){return Mf(e,Element)},event:function(e){return Mf(e,Event)},empty:function(e){return Nf(e)||(Ff(e)||Df(e)||Bf(e))&&!e.length||Uf(e)&&!Object.keys(e).length}},Hf={facebook:{domain:"facebook.com",url:function(e){return"https://graph.facebook.com/?id=".concat(e,"&fields=og_object{engagement}")},shareCount:function(e){return e.og_object.engagement.count},popup:{width:640,height:360}},twitter:{domain:"twitter.com",url:function(){return null},shareCount:function(){return null},popup:{width:640,height:240}},pinterest:{domain:"pinterest.com",url:function(e){return"https://widgets.pinterest.com/v1/urls/count.json?url=".concat(e)},shareCount:function(e){return e.count},popup:{width:830,height:700}},github:{domain:"github.com",url:function(e,t){return"https://api.github.com/repos/".concat(e).concat(qf.string(t)?"?access_token=".concat(t):"")},shareCount:function(e){return e.data.stargazers_count}},youtube:{domain:"youtube.com",url:function(e,t){return"https://www.googleapis.com/youtube/v3/channels?part=statistics&id=".concat(e,"&key=").concat(t)},shareCount:function(e){if(!qf.empty(e.error))return null;var t=jf(e.items,1)[0];return qf.empty(t)?null:t.statistics.subscriberCount}}},Vf={debug:!1,wrapper:{className:"shr"},count:{className:"shr__count",displayZero:!1,format:!0,position:"after",increment:!0},tokens:{github:"",youtube:""},storage:{enabled:!0,key:"shr",ttl:3e5}};var zf=function(){},Wf=function(){function e(){var t=!!(0<arguments.length&&void 0!==arguments[0])&&arguments[0];Pf(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return Lf(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):zf}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):zf}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):zf}}]),e}();function $f(e,t,n){var r=document.createElement(e);return qf.object(t)&&function(e,t){!qf.element(e)||qf.empty(t)||Object.entries(t).filter(function(e){var t=jf(e,2)[1];return!qf.nullOrUndefined(t)}).forEach(function(t){var n=jf(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)})}(r,t),qf.string(n)&&(r.innerText=n),r}function Kf(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var i=n.shift();return qf.object(i)?(Object.keys(i).forEach(function(t){qf.object(i[t])?(!Object.keys(e).includes(t)&&Object.assign(e,If({},t,{})),Kf(e[t],i[t])):Object.assign(e,If({},t,i[t]))}),Kf.apply(void 0,[e].concat(n))):e}var Yf=function(){function e(t,n){var r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];Pf(this,e),this.enabled=r&&e.supported,this.key=t,this.ttl=n}return Lf(e,[{key:"get",value:function(t){if(!e.supported||!this.enabled)return null;var n=window.localStorage.getItem(this.key);if(qf.empty(n))return null;var r=window.localStorage.getItem("".concat(this.key,"_ttl"));if(qf.empty(r)||r<Date.now())return null;var i=JSON.parse(n);return qf.string(t)&&t.length?i[t]:i}},{key:"set",value:function(t){if(e.supported&&this.enabled&&qf.object(t)){var n=this.get();qf.empty(n)&&(n={}),Kf(n,t),window.localStorage.setItem(this.key,JSON.stringify(n)),window.localStorage.setItem("".concat(this.key,"_ttl"),Date.now()+this.ttl)}}}],[{key:"supported",get:function(){try{return"localStorage"in window&&(window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0)}catch(e){return!1}}}]),e}();var Gf,Xf,Jf,Qf=function(){function e(t,n){var r=this;Pf(this,e),this.elements={count:null,trigger:null,popup:null},qf.element(t)?this.elements.trigger=t:qf.string(t)&&(this.elements.trigger=document.querySelector(t)),qf.element(this.elements.trigger)&&qf.empty(this.elements.trigger.shr)&&(this.config=Kf({},Vf,n,{networks:Hf}),this.console=new Wf(this.config.debug),this.storage=new Yf(this.config.storage.key,this.config.storage.ttl,this.config.storage.enabled),this.getCount().then(function(e){return r.updateDisplay(e)}).catch(function(){}),this.listeners(!0),this.elements.trigger.shr=this)}return Lf(e,[{key:"destroy",value:function(){this.listeners(!1)}},{key:"listeners",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0]?"addEventListener":"removeEventListener";this.elements.trigger[t]("click",function(t){return e.share(t)},!1)}},{key:"share",value:function(e){var t=this;this.openPopup(e);var n=this.config.count.increment;this.getCount().then(function(e){return t.updateDisplay(e,n)}).catch(function(){})}},{key:"openPopup",value:function(e){if(!qf.empty(this.network)&&this.networkConfig.popup){qf.event(e)&&e.preventDefault();var t=this.networkConfig.popup,n=t.width,r=t.height,i="shr-popup--".concat(this.network);if(this.popup&&!this.popup.closed)this.popup.focus(),this.console.log("Popup re-focused.");else{var o=void 0===window.screenLeft?window.screen.left:window.screenLeft,a=void 0===window.screenTop?window.screen.top:window.screenTop,s=window.screen.width/2-n/2+o,c=window.screen.height/2-r/2+a;this.popup=window.open(this.href,i,"top=".concat(c,",left=").concat(s,",width=").concat(n,",height=").concat(r)),this.popup&&!this.popup.closed&&qf.boolean(this.popup.closed)?(this.popup.focus(),this.console.log("Popup opened.")):this.console.error("Popup blocked.")}}}},{key:"getCount",value:function(){var e=this,t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];return new Promise(function(n,r){var i=e.apiUrl;if(qf.empty(i))r(new Error("No URL available for ".concat(e.network,".")));else{if(t){var o=e.storage.get(e.target);if(!qf.empty(o)&&Object.keys(o).includes(e.network)){var a=o[e.network];return n(qf.number(a)?a:0),void e.console.log("getCount for '".concat(e.target,"' for '").concat(e.network,"' resolved from cache."))}}(function(e){return new Promise(function(t,n){var r="jsonp_callback_".concat(Math.round(1e5*Math.random())),i=document.createElement("script");i.addEventListener("error",function(e){return n(e)}),window[r]=function(e){delete window[r],document.body.removeChild(i),t(e)};var o=new URL(e);o.searchParams.set("callback",r),i.setAttribute("src",o.toString()),document.body.appendChild(i)})})(i).then(function(t){var r=0,i=e.elements.trigger.getAttribute("data-shr-display");r=qf.empty(i)?e.networkConfig.shareCount(t):t[i],qf.empty(r)?r=0:(r=parseInt(r,10),!qf.number(r)&&(r=0)),e.storage.set(If({},e.target,If({},e.network,r))),n(r)}).catch(r)}})}},{key:"updateDisplay",value:function(e){var t=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1],n=this.config,r=n.count,i=n.wrapper,o=t?e+1:e,a=r.position.toLowerCase();if(0<o||r.displayZero){var s=function(e){return Math.round(o/e*10)/10},c=function(e){var t=/\./.test(1.1.toLocaleString())?".":",",n=new RegExp("\\".concat(t,"\\d+$"));return Math.round(e).toLocaleString().replace(n,"")}(o);r.format&&(1e6<o?c="".concat(s(1e6),"M"):1e3<o&&(c="".concat(s(1e3),"K"))),qf.element(this.elements.count)?this.elements.count.textContent=c:(function(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach(function(e,n){var r=0<n?t.cloneNode(!0):t,i=e.parentNode,o=e.nextSibling;r.appendChild(e),o?i.insertBefore(r,o):i.appendChild(r)})}(this.elements.trigger,$f("span",{class:i.className})),this.elements.count=$f("span",{class:"".concat(r.className," ").concat(r.className,"--").concat(a)},c),this.elements.trigger.insertAdjacentElement("after"===a?"afterend":"beforebegin",this.elements.count))}}},{key:"href",get:function(){return qf.element(this.elements.trigger)?this.elements.trigger.href:null}},{key:"network",get:function(){var e=this;if(!qf.element(this.elements.trigger))return null;var t=this.config.networks;return Object.keys(t).find(function(n){return function(e){var t=new URL(e).hostname,n=t.split("."),r=n.length;return 2<r&&(t="".concat(n[r-2],".").concat(n[r-1]),2===n[r-2].length&&2===n[r-1].length&&(t="".concat(n[r-3],".").concat(t))),t}(e.href)===t[n].domain})}},{key:"networkConfig",get:function(){return qf.empty(this.network)?null:this.config.networks[this.network]}},{key:"target",get:function(){if(qf.empty(this.network))return null;var e=new URL(this.href);switch(this.network){case"facebook":return e.searchParams.get("u");case"github":return e.pathname.substring(1);case"youtube":return e.pathname.split("/").pop();default:return e.searchParams.get("url")}}},{key:"apiUrl",get:function(){if(qf.empty(this.network))return null;var e=this.config.tokens;switch(this.network){case"github":return this.networkConfig.url(this.target,e.github);case"youtube":return this.networkConfig.url(this.target,e.youtube);default:return this.networkConfig.url(encodeURIComponent(this.target))}}}],[{key:"setup",value:function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=null;if(qf.string(t)?r=Array.from(document.querySelectorAll(t)):qf.element(t)?r=[t]:qf.nodeList(t)?r=Array.from(t):qf.array(t)&&(r=t.filter(qf.element)),qf.empty(r))return null;var i=Object.assign({},Vf,n);return qf.string(t)&&i.watch&&new MutationObserver(function(n){Array.from(n).forEach(function(n){Array.from(n.addedNodes).forEach(function(n){qf.element(n)&&function(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}(n,t)&&new e(n,i)})})}).observe(document.body,{childList:!0,subtree:!0}),r.map(function(t){return new e(t,n)})}}]),e}(),Zf="object",eh=function(e){return e&&e.Math==Math&&e},th=eh(typeof globalThis==Zf&&globalThis)||eh(typeof window==Zf&&window)||eh(typeof self==Zf&&self)||eh(typeof e==Zf&&e)||Function("return this")(),nh=function(e){try{return!!e()}catch(e){return!0}},rh=!nh(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),ih={}.propertyIsEnumerable,oh=Object.getOwnPropertyDescriptor,ah={f:oh&&!ih.call({1:2},1)?function(e){var t=oh(this,e);return!!t&&t.enumerable}:ih},sh=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ch={}.toString,lh=function(e){return ch.call(e).slice(8,-1)},uh="".split,fh=nh(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==lh(e)?uh.call(e,""):Object(e)}:Object,hh=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},dh=function(e){return fh(hh(e))},ph=function(e){return"object"==typeof e?null!==e:"function"==typeof e},gh=function(e,t){if(!ph(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!ph(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!ph(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!ph(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},mh={}.hasOwnProperty,vh=function(e,t){return mh.call(e,t)},yh=th.document,bh=ph(yh)&&ph(yh.createElement),wh=function(e){return bh?yh.createElement(e):{}},kh=!rh&&!nh(function(){return 7!=Object.defineProperty(wh("div"),"a",{get:function(){return 7}}).a}),Eh=Object.getOwnPropertyDescriptor,Sh={f:rh?Eh:function(e,t){if(e=dh(e),t=gh(t,!0),kh)try{return Eh(e,t)}catch(e){}if(vh(e,t))return sh(!ah.f.call(e,t),e[t])}},_h=function(e){if(!ph(e))throw TypeError(String(e)+" is not an object");return e},Th=Object.defineProperty,xh={f:rh?Th:function(e,t,n){if(_h(e),t=gh(t,!0),_h(n),kh)try{return Th(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}},Ah=rh?function(e,t,n){return xh.f(e,t,sh(1,n))}:function(e,t,n){return e[t]=n,e},Oh=function(e,t){try{Ah(th,e,t)}catch(n){th[e]=t}return t},Ph=t(function(e){var t=th["__core-js_shared__"]||Oh("__core-js_shared__",{});(e.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.1.3",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),Ch=Ph("native-function-to-string",Function.toString),Lh=th.WeakMap,Ih="function"==typeof Lh&&/native code/.test(Ch.call(Lh)),jh=0,Rh=Math.random(),Mh=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++jh+Rh).toString(36))},Nh=Ph("keys"),Uh=function(e){return Nh[e]||(Nh[e]=Mh(e))},Fh={},Dh=th.WeakMap;if(Ih){var Bh=new Dh,qh=Bh.get,Hh=Bh.has,Vh=Bh.set;Gf=function(e,t){return Vh.call(Bh,e,t),t},Xf=function(e){return qh.call(Bh,e)||{}},Jf=function(e){return Hh.call(Bh,e)}}else{var zh=Uh("state");Fh[zh]=!0,Gf=function(e,t){return Ah(e,zh,t),t},Xf=function(e){return vh(e,zh)?e[zh]:{}},Jf=function(e){return vh(e,zh)}}var Wh={set:Gf,get:Xf,has:Jf,enforce:function(e){return Jf(e)?Xf(e):Gf(e,{})},getterFor:function(e){return function(t){var n;if(!ph(t)||(n=Xf(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},$h=t(function(e){var t=Wh.get,n=Wh.enforce,r=String(Ch).split("toString");Ph("inspectSource",function(e){return Ch.call(e)}),(e.exports=function(e,t,i,o){var a=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||vh(i,"name")||Ah(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==th?(a?!c&&e[t]&&(s=!0):delete e[t],s?e[t]=i:Ah(e,t,i)):s?e[t]=i:Oh(t,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&t(this).source||Ch.call(this)})}),Kh=Math.ceil,Yh=Math.floor,Gh=function(e){return isNaN(e=+e)?0:(e>0?Yh:Kh)(e)},Xh=Math.min,Jh=function(e){return e>0?Xh(Gh(e),9007199254740991):0},Qh=Math.max,Zh=Math.min,ed=function(e,t){var n=Gh(e);return n<0?Qh(n+t,0):Zh(n,t)},td=function(e){return function(t,n,r){var i,o=dh(t),a=Jh(o.length),s=ed(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},nd=td(!1),rd=function(e,t){var n,r=dh(e),i=0,o=[];for(n in r)!vh(Fh,n)&&vh(r,n)&&o.push(n);for(;t.length>i;)vh(r,n=t[i++])&&(~nd(o,n)||o.push(n));return o},id=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],od=id.concat("length","prototype"),ad={f:Object.getOwnPropertyNames||function(e){return rd(e,od)}},sd={f:Object.getOwnPropertySymbols},cd=th.Reflect,ld=cd&&cd.ownKeys||function(e){var t=ad.f(_h(e)),n=sd.f;return n?t.concat(n(e)):t},ud=function(e,t){for(var n=ld(t),r=xh.f,i=Sh.f,o=0;o<n.length;o++){var a=n[o];vh(e,a)||r(e,a,i(t,a))}},fd=/#|\.prototype\./,hd=function(e,t){var n=pd[dd(e)];return n==md||n!=gd&&("function"==typeof t?nh(t):!!t)},dd=hd.normalize=function(e){return String(e).replace(fd,".").toLowerCase()},pd=hd.data={},gd=hd.NATIVE="N",md=hd.POLYFILL="P",vd=hd,yd=Sh.f,bd=function(e,t){var n,r,i,o,a,s=e.target,c=e.global,l=e.stat;if(n=c?th:l?th[s]||Oh(s,{}):(th[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=yd(n,r))&&a.value:n[r],!vd(c?r:s+(l?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;ud(o,i)}(e.sham||i&&i.sham)&&Ah(o,"sham",!0),$h(n,r,o,e)}},wd=Array.isArray||function(e){return"Array"==lh(e)},kd=function(e){return Object(hh(e))},Ed=function(e,t,n){var r=gh(t);r in e?xh.f(e,r,sh(0,n)):e[r]=n},Sd=!!Object.getOwnPropertySymbols&&!nh(function(){return!String(Symbol())}),_d=th.Symbol,Td=Ph("wks"),xd=function(e){return Td[e]||(Td[e]=Sd&&_d[e]||(Sd?_d:Mh)("Symbol."+e))},Ad=xd("species"),Od=function(e,t){var n;return wd(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!wd(n.prototype)?ph(n)&&null===(n=n[Ad])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Pd=xd("species"),Cd=function(e){return!nh(function(){var t=[];return(t.constructor={})[Pd]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Ld=xd("isConcatSpreadable"),Id=!nh(function(){var e=[];return e[Ld]=!1,e.concat()[0]!==e}),jd=Cd("concat"),Rd=function(e){if(!ph(e))return!1;var t=e[Ld];return void 0!==t?!!t:wd(e)};bd({target:"Array",proto:!0,forced:!Id||!jd},{concat:function(e){var t,n,r,i,o,a=kd(this),s=Od(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],Rd(o)){if(c+(i=Jh(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&Ed(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ed(s,c++,o)}return s.length=c,s}});var Md=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Nd=function(e,t,n){if(Md(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,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Ud=function(e,t){var n=1==e,r=2==e,i=3==e,o=4==e,a=6==e,s=5==e||a,c=t||Od;return function(t,l,u){for(var f,h,d=kd(t),p=fh(d),g=Nd(l,u,3),m=Jh(p.length),v=0,y=n?c(t,m):r?c(t,0):void 0;m>v;v++)if((s||v in p)&&(h=g(f=p[v],v,d),e))if(n)y[v]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:y.push(f)}else if(o)return!1;return a?-1:i||o?o:y}},Fd=Ud(2),Dd=Cd("filter");bd({target:"Array",proto:!0,forced:!Dd},{filter:function(e){return Fd(this,e,arguments[1])}});var Bd=Object.keys||function(e){return rd(e,id)},qd=rh?Object.defineProperties:function(e,t){_h(e);for(var n,r=Bd(t),i=r.length,o=0;i>o;)xh.f(e,n=r[o++],t[n]);return e},Hd=th.document,Vd=Hd&&Hd.documentElement,zd=Uh("IE_PROTO"),Wd=function(){},$d=function(){var e,t=wh("iframe"),n=id.length;for(t.style.display="none",Vd.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),$d=e.F;n--;)delete $d.prototype[id[n]];return $d()},Kd=Object.create||function(e,t){var n;return null!==e?(Wd.prototype=_h(e),n=new Wd,Wd.prototype=null,n[zd]=e):n=$d(),void 0===t?n:qd(n,t)};Fh[zd]=!0;var Yd=xd("unscopables"),Gd=Array.prototype;null==Gd[Yd]&&Ah(Gd,Yd,Kd(null));var Xd=function(e){Gd[Yd][e]=!0},Jd=Ud(5),Qd=!0;"find"in[]&&Array(1).find(function(){Qd=!1}),bd({target:"Array",proto:!0,forced:Qd},{find:function(e){return Jd(this,e,arguments.length>1?arguments[1]:void 0)}}),Xd("find");var Zd=function(e,t,n,r){try{return r?t(_h(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&_h(i.call(e)),t}},ep={},tp=xd("iterator"),np=Array.prototype,rp=function(e){return void 0!==e&&(ep.Array===e||np[tp]===e)},ip=xd("toStringTag"),op="Arguments"==lh(function(){return arguments}()),ap=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),ip))?n:op?lh(t):"Object"==(r=lh(t))&&"function"==typeof t.callee?"Arguments":r},sp=xd("iterator"),cp=function(e){if(null!=e)return e[sp]||e["@@iterator"]||ep[ap(e)]},lp=function(e){var t,n,r,i,o=kd(e),a="function"==typeof this?this:Array,s=arguments.length,c=s>1?arguments[1]:void 0,l=void 0!==c,u=0,f=cp(o);if(l&&(c=Nd(c,s>2?arguments[2]:void 0,2)),null==f||a==Array&&rp(f))for(n=new a(t=Jh(o.length));t>u;u++)Ed(n,u,l?c(o[u],u):o[u]);else for(i=f.call(o),n=new a;!(r=i.next()).done;u++)Ed(n,u,l?Zd(i,c,[r.value,u],!0):r.value);return n.length=u,n},up=xd("iterator"),fp=!1;try{var hp=0;({next:function(){return{done:!!hp++}},return:function(){fp=!0}})[up]=function(){return this}}catch(e){}var dp=function(e,t){if(!t&&!fp)return!1;var n=!1;try{var r={};r[up]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},pp=!dp(function(e){});bd({target:"Array",stat:!0,forced:pp},{from:lp});var gp=td(!0);bd({target:"Array",proto:!0},{includes:function(e){return gp(this,e,arguments.length>1?arguments[1]:void 0)}}),Xd("includes");var mp,vp,yp,bp=!nh(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),wp=Uh("IE_PROTO"),kp=Object.prototype,Ep=bp?Object.getPrototypeOf:function(e){return e=kd(e),vh(e,wp)?e[wp]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?kp:null},Sp=xd("iterator"),_p=!1;[].keys&&("next"in(yp=[].keys())?(vp=Ep(Ep(yp)))!==Object.prototype&&(mp=vp):_p=!0),null==mp&&(mp={}),vh(mp,Sp)||Ah(mp,Sp,function(){return this});var Tp={IteratorPrototype:mp,BUGGY_SAFARI_ITERATORS:_p},xp=xh.f,Ap=xd("toStringTag"),Op=function(e,t,n){e&&!vh(e=n?e:e.prototype,Ap)&&xp(e,Ap,{configurable:!0,value:t})},Pp=Tp.IteratorPrototype,Cp=function(){return this},Lp=function(e,t,n){var r=t+" Iterator";return e.prototype=Kd(Pp,{next:sh(1,n)}),Op(e,r,!1),ep[r]=Cp,e},Ip=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,r){return function(e,t){if(_h(e),!ph(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n,r),t?e.call(n,r):n.__proto__=r,n}}():void 0),jp=Tp.IteratorPrototype,Rp=Tp.BUGGY_SAFARI_ITERATORS,Mp=xd("iterator"),Np=function(){return this},Up=function(e,t,n,r,i,o,a){Lp(n,t,r);var s,c,l,u=function(e){if(e===i&&g)return g;if(!Rp&&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)}},f=t+" Iterator",h=!1,d=e.prototype,p=d[Mp]||d["@@iterator"]||i&&d[i],g=!Rp&&p||u(i),m="Array"==t&&d.entries||p;if(m&&(s=Ep(m.call(new e)),jp!==Object.prototype&&s.next&&(Ep(s)!==jp&&(Ip?Ip(s,jp):"function"!=typeof s[Mp]&&Ah(s,Mp,Np)),Op(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),d[Mp]!==g&&Ah(d,Mp,g),ep[t]=g,i)if(c={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(l in c)!Rp&&!h&&l in d||$h(d,l,c[l]);else bd({target:t,proto:!0,forced:Rp||h},c);return c},Fp=Wh.set,Dp=Wh.getterFor("Array Iterator"),Bp=Up(Array,"Array",function(e,t){Fp(this,{type:"Array Iterator",target:dh(e),index:0,kind:t})},function(){var e=Dp(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");ep.Arguments=ep.Array,Xd("keys"),Xd("values"),Xd("entries");var qp=function(e,t){var n=[][e];return!n||!nh(function(){n.call(null,t||function(){throw 1},1)})},Hp=[].join,Vp=fh!=Object,zp=qp("join",",");bd({target:"Array",proto:!0,forced:Vp||zp},{join:function(e){return Hp.call(dh(this),void 0===e?",":e)}});var Wp=Ud(1),$p=Cd("map");bd({target:"Array",proto:!0,forced:!$p},{map:function(e){return Wp(this,e,arguments[1])}});var Kp=function(e,t,n){var r,i=t.constructor;return i!==n&&"function"==typeof i&&(r=i.prototype)!==n.prototype&&ph(r)&&Ip&&Ip(e,r),e},Yp="\t\n\v\f\r \u2028\u2029\ufeff",Gp="["+Yp+"]",Xp=RegExp("^"+Gp+Gp+"*"),Jp=RegExp(Gp+Gp+"*$"),Qp=function(e,t){return e=String(hh(e)),1&t&&(e=e.replace(Xp,"")),2&t&&(e=e.replace(Jp,"")),e},Zp=ad.f,eg=Sh.f,tg=xh.f,ng=th.Number,rg=ng.prototype,ig="Number"==lh(Kd(rg)),og="trim"in String.prototype,ag=function(e){var t,n,r,i,o,a,s,c,l=gh(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=og?l.trim():Qp(l,3)).charCodeAt(0))||45===t){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(l.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(a=(o=l.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+l};if(vd("Number",!ng(" 0o1")||!ng("0b1")||ng("+0x1"))){for(var sg,cg=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof cg&&(ig?nh(function(){rg.valueOf.call(n)}):"Number"!=lh(n))?Kp(new ng(ag(t)),n,cg):ag(t)},lg=rh?Zp(ng):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),ug=0;lg.length>ug;ug++)vh(ng,sg=lg[ug])&&!vh(cg,sg)&&tg(cg,sg,eg(ng,sg));cg.prototype=rg,rg.constructor=cg,$h(th,"Number",cg)}var fg=nh(function(){Bd(1)});bd({target:"Object",stat:!0,forced:fg},{keys:function(e){return Bd(kd(e))}});var hg={};hg[xd("toStringTag")]="z";var dg="[object z]"!==String(hg)?function(){return"[object "+ap(this)+"]"}:hg.toString,pg=Object.prototype;dg!==pg.toString&&$h(pg,"toString",dg,{unsafe:!0});var gg=function(){var e=_h(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},mg=/./.toString,vg=RegExp.prototype,yg=nh(function(){return"/a/b"!=mg.call({source:"a",flags:"b"})}),bg="toString"!=mg.name;(yg||bg)&&$h(RegExp.prototype,"toString",function(){var e=_h(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in vg)?gg.call(e):n)},{unsafe:!0});var wg=xd("match"),kg=function(e){var t;return ph(e)&&(void 0!==(t=e[wg])?!!t:"RegExp"==lh(e))},Eg=function(e,t,n){if(kg(t))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(hh(e))},Sg=xd("match"),_g=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Sg]=!1,"/./"[e](t)}catch(e){}}return!1};bd({target:"String",proto:!0,forced:!_g("includes")},{includes:function(e){return!!~Eg(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}});var Tg=function(e,t,n){var r,i,o=String(hh(e)),a=Gh(t),s=o.length;return a<0||a>=s?n?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?n?o.charAt(a):r:n?o.slice(a,a+2):i-56320+(r-55296<<10)+65536},xg=Wh.set,Ag=Wh.getterFor("String Iterator");Up(String,"String",function(e){xg(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=Ag(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Tg(n,r,!0),t.index+=e.length,{value:e,done:!1})});var Og=RegExp.prototype.exec,Pg=String.prototype.replace,Cg=Og,Lg=function(){var e=/a/,t=/b*/g;return Og.call(e,"a"),Og.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Ig=void 0!==/()??/.exec("")[1];(Lg||Ig)&&(Cg=function(e){var t,n,r,i,o=this;return Ig&&(n=new RegExp("^"+o.source+"$(?!\\s)",gg.call(o))),Lg&&(t=o.lastIndex),r=Og.call(o,e),Lg&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),Ig&&r&&r.length>1&&Pg.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r});var jg=Cg,Rg=xd("species"),Mg=!nh(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),Ng=!nh(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]}),Ug=function(e,t,n,r){var i=xd(e),o=!nh(function(){var t={};return t[i]=function(){return 7},7!=""[e](t)}),a=o&&!nh(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[Rg]=function(){return n}),n[i](""),!t});if(!o||!a||"replace"===e&&!Mg||"split"===e&&!Ng){var s=/./[i],c=n(i,""[e],function(e,t,n,r,i){return t.exec===jg?o&&!i?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),l=c[0],u=c[1];$h(String.prototype,e,l),$h(RegExp.prototype,i,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}),r&&Ah(RegExp.prototype[i],"sham",!0)}},Fg=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},Dg=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==lh(e))throw TypeError("RegExp#exec called on incompatible receiver");return jg.call(e,t)};Ug("search",1,function(e,t,n){return[function(t){var n=hh(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=_h(e),o=String(this),a=i.lastIndex;Fg(a,0)||(i.lastIndex=0);var s=Dg(i,o);return Fg(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]});var Bg=function(e,t,n){for(var r in t)$h(e,r,t[r],n);return e},qg=!nh(function(){return Object.isExtensible(Object.preventExtensions({}))}),Hg=t(function(e){var t=xh.f,n=Mh("meta"),r=0,i=Object.isExtensible||function(){return!0},o=function(e){t(e,n,{value:{objectID:"O"+ ++r,weakData:{}}})},a=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!ph(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!vh(e,n)){if(!i(e))return"F";if(!t)return"E";o(e)}return e[n].objectID},getWeakData:function(e,t){if(!vh(e,n)){if(!i(e))return!0;if(!t)return!1;o(e)}return e[n].weakData},onFreeze:function(e){return qg&&a.REQUIRED&&i(e)&&!vh(e,n)&&o(e),e}};Fh[n]=!0}),Vg=(Hg.REQUIRED,Hg.fastKey,Hg.getWeakData,Hg.onFreeze,t(function(e){var t={};(e.exports=function(e,n,r,i,o){var a,s,c,l,u,f=Nd(n,r,i?2:1);if(o)a=e;else{if("function"!=typeof(s=cp(e)))throw TypeError("Target is not iterable");if(rp(s)){for(c=0,l=Jh(e.length);l>c;c++)if((i?f(_h(u=e[c])[0],u[1]):f(e[c]))===t)return t;return}a=s.call(e)}for(;!(u=a.next()).done;)if(Zd(a,f,u.value,i)===t)return t}).BREAK=t})),zg=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Wg=Hg.getWeakData,$g=Wh.set,Kg=Wh.getterFor,Yg=Ud(5),Gg=Ud(6),Xg=0,Jg=function(e){return e.frozen||(e.frozen=new Qg)},Qg=function(){this.entries=[]},Zg=function(e,t){return Yg(e.entries,function(e){return e[0]===t})};Qg.prototype={get:function(e){var t=Zg(this,e);if(t)return t[1]},has:function(e){return!!Zg(this,e)},set:function(e,t){var n=Zg(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Gg(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}};var em={getConstructor:function(e,t,n,r){var i=e(function(e,o){zg(e,i,t),$g(e,{type:t,id:Xg++,frozen:void 0}),null!=o&&Vg(o,e[r],e,n)}),o=Kg(t),a=function(e,t,n){var r=o(e),i=Wg(_h(t),!0);return!0===i?Jg(r).set(t,n):i[r.id]=n,e};return Bg(i.prototype,{delete:function(e){var t=o(this);if(!ph(e))return!1;var n=Wg(e);return!0===n?Jg(t).delete(e):n&&vh(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!ph(e))return!1;var n=Wg(e);return!0===n?Jg(t).has(e):n&&vh(n,t.id)}}),Bg(i.prototype,n?{get:function(e){var t=o(this);if(ph(e)){var n=Wg(e);return!0===n?Jg(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return a(this,e,t)}}:{add:function(e){return a(this,e,!0)}}),i}},tm=(t(function(e){var t,n=Wh.enforce,r=!th.ActiveXObject&&"ActiveXObject"in th,i=Object.isExtensible,o=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},a=e.exports=function(e,t,n,r,i){var o=th[e],a=o&&o.prototype,s=o,c=r?"set":"add",l={},u=function(e){var t=a[e];$h(a,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!ph(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return i&&!ph(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!ph(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(vd(e,"function"!=typeof o||!(i||a.forEach&&!nh(function(){(new o).entries().next()}))))s=n.getConstructor(t,e,r,c),Hg.REQUIRED=!0;else if(vd(e,!0)){var f=new s,h=f[c](i?{}:-0,1)!=f,d=nh(function(){f.has(1)}),p=dp(function(e){new o(e)}),g=!i&&nh(function(){for(var e=new o,t=5;t--;)e[c](t,t);return!e.has(-0)});p||((s=t(function(t,n){zg(t,s,e);var i=Kp(new o,t,s);return null!=n&&Vg(n,i[c],i,r),i})).prototype=a,a.constructor=s),(d||g)&&(u("delete"),u("has"),r&&u("get")),(g||h)&&u(c),i&&a.clear&&delete a.clear}return l[e]=s,bd({global:!0,forced:s!=o},l),Op(s,e),i||n.setStrong(s,e,r),s}("WeakMap",o,em,!0,!0);if(Ih&&r){t=em.getConstructor(o,"WeakMap",!0),Hg.REQUIRED=!0;var s=a.prototype,c=s.delete,l=s.has,u=s.get,f=s.set;Bg(s,{delete:function(e){if(ph(e)&&!i(e)){var r=n(this);return r.frozen||(r.frozen=new t),c.call(this,e)||r.frozen.delete(e)}return c.call(this,e)},has:function(e){if(ph(e)&&!i(e)){var r=n(this);return r.frozen||(r.frozen=new t),l.call(this,e)||r.frozen.has(e)}return l.call(this,e)},get:function(e){if(ph(e)&&!i(e)){var r=n(this);return r.frozen||(r.frozen=new t),l.call(this,e)?u.call(this,e):r.frozen.get(e)}return u.call(this,e)},set:function(e,r){if(ph(e)&&!i(e)){var o=n(this);o.frozen||(o.frozen=new t),l.call(this,e)?f.call(this,e,r):o.frozen.set(e,r)}else f.call(this,e,r);return this}})}}),{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}),nm=xd("iterator"),rm=xd("toStringTag"),im=Bp.values;for(var om in tm){var am=th[om],sm=am&&am.prototype;if(sm){if(sm[nm]!==im)try{Ah(sm,nm,im)}catch(e){sm[nm]=im}if(sm[rm]||Ah(sm,rm,om),tm[om])for(var cm in Bp)if(sm[cm]!==Bp[cm])try{Ah(sm,cm,Bp[cm])}catch(e){sm[cm]=Bp[cm]}}}var lm=Object.assign,um=!lm||nh(function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=lm({},e)[n]||"abcdefghijklmnopqrst"!=Bd(lm({},t)).join("")})?function(e,t){for(var n=kd(e),r=arguments.length,i=1,o=sd.f,a=ah.f;r>i;)for(var s,c=fh(arguments[i++]),l=o?Bd(c).concat(o(c)):Bd(c),u=l.length,f=0;u>f;)s=l[f++],rh&&!a.call(c,s)||(n[s]=c[s]);return n}:lm;bd({target:"Object",stat:!0,forced:Object.assign!==um},{assign:um});var fm=xd("species"),hm=function(e,t){var n,r=_h(e).constructor;return void 0===r||null==(n=_h(r)[fm])?t:Md(n)},dm=function(e,t,n){return t+(n?Tg(e,t,!0).length:1)},pm=[].push,gm=Math.min,mm=!nh(function(){return!RegExp(4294967295,"y")});Ug("split",2,function(e,t,n){var r;return r="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 r=String(hh(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!kg(e))return t.call(r,e,i);for(var o,a,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f=new RegExp(e.source,l+"g");(o=jg.call(f,r))&&!((a=f.lastIndex)>u&&(c.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&pm.apply(c,o.slice(1)),s=o[0].length,u=a,c.length>=i));)f.lastIndex===o.index&&f.lastIndex++;return u===r.length?!s&&f.test("")||c.push(""):c.push(r.slice(u)),c.length>i?c.slice(0,i):c}:"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 i=hh(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var a=_h(e),s=String(this),c=hm(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(mm?"y":"g"),f=new c(mm?a:"^(?:"+a.source+")",u),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===Dg(f,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){f.lastIndex=mm?p:0;var m,v=Dg(f,mm?s:s.slice(p));if(null===v||(m=gm(Jh(f.lastIndex+(mm?0:p)),s.length))===d)p=dm(s,p,l);else{if(g.push(s.slice(d,p)),g.length===h)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===h)return g;p=d=m}}return g.push(s.slice(d)),g}]},!mm);var vm=function(e){return nh(function(){return!!Yp[e]()||"
"!="
"[e]()||Yp[e].name!==e})}("trim");bd({target:"String",proto:!0,forced:vm},{trim:function(){return Qp(this,3)}});var ym=Ud(0),bm=qp("forEach")?function(e){return ym(this,e,arguments[1])}:[].forEach;for(var wm in tm){var km=th[wm],Em=km&&km.prototype;if(Em&&Em.forEach!==bm)try{Ah(Em,"forEach",bm)}catch(e){Em.forEach=bm}}var Sm=xd("iterator"),_m=!nh(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[Sm]||"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}),Tm=/[^\0-\u007E]/,xm=/[.\u3002\uFF0E\uFF61]/g,Am=Math.floor,Om=String.fromCharCode,Pm=function(e){return e+22+75*(e<26)},Cm=function(e,t,n){var r=0;for(e=n?Am(e/700):e>>1,e+=Am(e/t);e>455;r+=36)e=Am(e/35);return Am(r+36*e/(e+38))},Lm=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,o=128,a=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(Om(n));var c=r.length,l=c;for(c&&r.push("-");l<i;){var u=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<u&&(u=n);var f=l+1;if(u-o>Am((2147483647-a)/f))throw RangeError("Overflow: input needs wider integers to process");for(a+=(u-o)*f,o=u,t=0;t<e.length;t++){if((n=e[t])<o&&++a>2147483647)throw RangeError("Overflow: input needs wider integers to process");if(n==o){for(var h=a,d=36;;d+=36){var p=d<=s?1:d>=s+26?26:d-s;if(h<p)break;var g=h-p,m=36-p;r.push(Om(Pm(p+g%m))),h=Am(g/m)}r.push(Om(Pm(h))),s=Cm(a,f,l==c),a=0,++l}}++a,++o}return r.join("")},Im=function(e){var t=cp(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return _h(t.call(e))},jm=xd("iterator"),Rm=Wh.set,Mm=Wh.getterFor("URLSearchParams"),Nm=Wh.getterFor("URLSearchParamsIterator"),Um=/\+/g,Fm=Array(4),Dm=function(e){return Fm[e-1]||(Fm[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},Bm=function(e){try{return decodeURIComponent(e)}catch(t){return e}},qm=function(e){var t=e.replace(Um," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(Dm(n--),Bm);return t}},Hm=/[!'()~]|%20/g,Vm={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},zm=function(e){return Vm[e]},Wm=function(e){return encodeURIComponent(e).replace(Hm,zm)},$m=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:qm(r.shift()),value:qm(r.join("="))}));return e},Km=function(e){this.entries.length=0,$m(this.entries,e)},Ym=function(e,t){if(e<t)throw TypeError("Not enough arguments")},Gm=Lp(function(e,t){Rm(this,{type:"URLSearchParamsIterator",iterator:Im(Mm(e).entries),kind:t})},"Iterator",function(){var e=Nm(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),Xm=function(){zg(this,Xm,"URLSearchParams");var e,t,n,r,i,o,a,s=arguments.length>0?arguments[0]:void 0,c=[];if(Rm(this,{type:"URLSearchParams",entries:c,updateURL:null,updateSearchParams:Km}),void 0!==s)if(ph(s))if("function"==typeof(e=cp(s)))for(t=e.call(s);!(n=t.next()).done;){if((i=(r=Im(_h(n.value))).next()).done||(o=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");c.push({key:i.value+"",value:o.value+""})}else for(a in s)vh(s,a)&&c.push({key:a,value:s[a]+""});else $m(c,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},Jm=Xm.prototype;Bg(Jm,{append:function(e,t){Ym(arguments.length,2);var n=Mm(this);n.entries.push({key:e+"",value:t+""}),n.updateURL&&n.updateURL()},delete:function(e){Ym(arguments.length,1);for(var t=Mm(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL&&t.updateURL()},get:function(e){Ym(arguments.length,1);for(var t=Mm(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){Ym(arguments.length,1);for(var t=Mm(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){Ym(arguments.length,1);for(var t=Mm(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){Ym(arguments.length,1);for(var n,r=Mm(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL&&r.updateURL()},sort:function(){var e,t,n,r=Mm(this),i=r.entries,o=i.slice();for(i.length=0,t=0;t<o.length;t++){for(e=o[t],n=0;n<t;n++)if(i[n].key>e.key){i.splice(n,0,e);break}n===t&&i.push(e)}r.updateURL&&r.updateURL()},forEach:function(e){for(var t,n=Mm(this).entries,r=Nd(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new Gm(this,"keys")},values:function(){return new Gm(this,"values")},entries:function(){return new Gm(this,"entries")}},{enumerable:!0}),$h(Jm,jm,Jm.entries),$h(Jm,"toString",function(){for(var e,t=Mm(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(Wm(e.key)+"="+Wm(e.value));return n.join("&")},{enumerable:!0}),Op(Xm,"URLSearchParams"),bd({global:!0,forced:!_m},{URLSearchParams:Xm});var Qm={URLSearchParams:Xm,getState:Mm},Zm=th.URL,ev=Qm.URLSearchParams,tv=Qm.getState,nv=Wh.set,rv=Wh.getterFor("URL"),iv=Math.pow,ov=/[A-Za-z]/,av=/[\d+\-.A-Za-z]/,sv=/\d/,cv=/^(0x|0X)/,lv=/^[0-7]+$/,uv=/^\d+$/,fv=/^[\dA-Fa-f]+$/,hv=/[\u0000\u0009\u000A\u000D #%\/:?@[\\]]/,dv=/[\u0000\u0009\u000A\u000D #\/:?@[\\]]/,pv=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,gv=/[\u0009\u000A\u000D]/g,mv=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=yv(t.slice(1,-1))))return"Invalid host";e.host=n}else if(xv(e)){if(t=function(e){var t,n,r=[],i=e.toLowerCase().replace(xm,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(Tm.test(n)?"xn--"+Lm(n):n);return r.join(".")}(t),hv.test(t))return"Invalid host";if(null===(n=vv(t)))return"Invalid host";e.host=n}else{if(dv.test(t))return"Invalid host";for(n="",r=lp(t),i=0;i<r.length;i++)n+=_v(r[i],wv);e.host=n}},vv=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(""==c[c.length-1]&&c.length&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=cv.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?uv:8==o?lv:fv).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=iv(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*iv(256,3-r);return s},yv=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],l=0,u=null,f=0,h=function(){return e.charAt(f)};if(":"==h()){if(":"!=e.charAt(1))return;f+=2,u=++l}for(;h();){if(8==l)return;if(":"!=h()){for(t=n=0;n<4&&fv.test(h());)t=16*t+parseInt(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,l>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!sv.test(h()))return;for(;sv.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}c[l]=256*c[l]+i,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;c[l++]=t}else{if(null!==u)return;f++,u=++l}}if(null!==u)for(a=l-u,l=7;0!=l&&a>0;)s=c[l],c[l--]=c[u+a-1],c[u+--a]=s;else if(8!=l)return;return c},bv=function(e){var t,n,r,i;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="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},wv={},kv=um({},wv,{" ":1,'"':1,"<":1,">":1,"`":1}),Ev=um({},kv,{"#":1,"?":1,"{":1,"}":1}),Sv=um({},Ev,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),_v=function(e,t){var n=Tg(e,0);return n>32&&n<127&&!vh(t,e)?e:encodeURIComponent(e)},Tv={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},xv=function(e){return vh(Tv,e.scheme)},Av=function(e){return""!=e.username||""!=e.password},Ov=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Pv=function(e,t){var n;return 2==e.length&&ov.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},Cv=function(e){var t;return e.length>1&&Pv(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Lv=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Pv(t[0],!0)||t.pop()},Iv=function(e){return"."===e||"%2e"===e.toLowerCase()},jv={},Rv={},Mv={},Nv={},Uv={},Fv={},Dv={},Bv={},qv={},Hv={},Vv={},zv={},Wv={},$v={},Kv={},Yv={},Gv={},Xv={},Jv={},Qv={},Zv={},ey=function(e,t,n,r){var i,o,a,s,c,l=n||jv,u=0,f="",h=!1,d=!1,p=!1;for(n||(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(pv,"")),t=t.replace(gv,""),i=lp(t);u<=i.length;){switch(o=i[u],l){case jv:if(!o||!ov.test(o)){if(n)return"Invalid scheme";l=Mv;continue}f+=o.toLowerCase(),l=Rv;break;case Rv:if(o&&(av.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";f="",l=Mv,u=0;continue}if(n&&(xv(e)!=vh(Tv,f)||"file"==f&&(Av(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(xv(e)&&Tv[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?l=$v:xv(e)&&r&&r.scheme==e.scheme?l=Nv:xv(e)?l=Bv:"/"==i[u+1]?(l=Uv,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=Jv)}break;case Mv: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,l=Zv;break}l="file"==r.scheme?$v:Fv;continue;case Nv:if("/"!=o||"/"!=i[u+1]){l=Fv;continue}l=qv,u++;break;case Uv:if("/"==o){l=Hv;break}l=Xv;continue;case Fv:if(e.scheme=r.scheme,null==o)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&&xv(e))l=Dv;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="",l=Qv;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(),l=Xv;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="",l=Zv}break;case Dv:if(!xv(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,l=Xv;continue}l=Hv}else l=qv;break;case Bv:if(l=qv,"/"!=o||"/"!=f.charAt(u+1))continue;u++;break;case qv:if("/"!=o&&"\\"!=o){l=Hv;continue}break;case Hv:if("@"==o){h&&(f="%40"+f),h=!0,a=lp(f);for(var g=0;g<a.length;g++){var m=a[g];if(":"!=m||p){var v=_v(m,Sv);p?e.password+=v:e.username+=v}else p=!0}f=""}else if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&xv(e)){if(h&&""==f)return"Invalid authority";u-=lp(f).length+1,f="",l=Vv}else f+=o;break;case Vv:case zv:if(n&&"file"==e.scheme){l=Yv;continue}if(":"!=o||d){if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&xv(e)){if(xv(e)&&""==f)return"Invalid host";if(n&&""==f&&(Av(e)||null!==e.port))return;if(s=mv(e,f))return s;if(f="",l=Gv,n)return;continue}"["==o?d=!0:"]"==o&&(d=!1),f+=o}else{if(""==f)return"Invalid host";if(s=mv(e,f))return s;if(f="",l=Wv,n==zv)return}break;case Wv:if(!sv.test(o)){if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&xv(e)||n){if(""!=f){var y=parseInt(f,10);if(y>65535)return"Invalid port";e.port=xv(e)&&y===Tv[e.scheme]?null:y,f=""}if(n)return;l=Gv;continue}return"Invalid port"}f+=o;break;case $v:if(e.scheme="file","/"==o||"\\"==o)l=Kv;else{if(!r||"file"!=r.scheme){l=Xv;continue}if(null==o)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="",l=Qv;else{if("#"!=o){Cv(i.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),Lv(e)),l=Xv;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=Zv}}break;case Kv:if("/"==o||"\\"==o){l=Yv;break}r&&"file"==r.scheme&&!Cv(i.slice(u).join(""))&&(Pv(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),l=Xv;continue;case Yv:if(null==o||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&Pv(f))l=Xv;else if(""==f){if(e.host="",n)return;l=Gv}else{if(s=mv(e,f))return s;if("localhost"==e.host&&(e.host=""),n)return;f="",l=Gv}continue}f+=o;break;case Gv:if(xv(e)){if(l=Xv,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(null!=o&&(l=Xv,"/"!=o))continue}else e.fragment="",l=Zv;else e.query="",l=Qv;break;case Xv:if(null==o||"/"==o||"\\"==o&&xv(e)||!n&&("?"==o||"#"==o)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Lv(e),"/"==o||"\\"==o&&xv(e)||e.path.push("")):Iv(f)?"/"==o||"\\"==o&&xv(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Pv(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(null==o||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",l=Qv):"#"==o&&(e.fragment="",l=Zv)}else f+=_v(o,Ev);break;case Jv:"?"==o?(e.query="",l=Qv):"#"==o?(e.fragment="",l=Zv):null!=o&&(e.path[0]+=_v(o,wv));break;case Qv:n||"#"!=o?null!=o&&("'"==o&&xv(e)?e.query+="%27":e.query+="#"==o?"%23":_v(o,wv)):(e.fragment="",l=Zv);break;case Zv:null!=o&&(e.fragment+=_v(o,kv))}u++}},ty=function(e){var t,n,r=zg(this,ty,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),a=nv(r,{type:"URL"});if(void 0!==i)if(i instanceof ty)t=rv(i);else if(n=ey(t={},String(i)))throw TypeError(n);if(n=ey(a,o,null,t))throw TypeError(n);var s=a.searchParams=new ev,c=tv(s);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(s)||null},rh||(r.href=ry.call(r),r.origin=iy.call(r),r.protocol=oy.call(r),r.username=ay.call(r),r.password=sy.call(r),r.host=cy.call(r),r.hostname=ly.call(r),r.port=uy.call(r),r.pathname=fy.call(r),r.search=hy.call(r),r.searchParams=dy.call(r),r.hash=py.call(r))},ny=ty.prototype,ry=function(){var e=rv(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",Av(e)&&(l+=n+(r?":"+r:"")+"@"),l+=bv(i),null!==o&&(l+=":"+o)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==c&&(l+="#"+c),l},iy=function(){var e=rv(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&&xv(e)?t+"://"+bv(e.host)+(null!==n?":"+n:""):"null"},oy=function(){return rv(this).scheme+":"},ay=function(){return rv(this).username},sy=function(){return rv(this).password},cy=function(){var e=rv(this),t=e.host,n=e.port;return null===t?"":null===n?bv(t):bv(t)+":"+n},ly=function(){var e=rv(this).host;return null===e?"":bv(e)},uy=function(){var e=rv(this).port;return null===e?"":String(e)},fy=function(){var e=rv(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},hy=function(){var e=rv(this).query;return e?"?"+e:""},dy=function(){return rv(this).searchParams},py=function(){var e=rv(this).fragment;return e?"#"+e:""},gy=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(rh&&qd(ny,{href:gy(ry,function(e){var t=rv(this),n=String(e),r=ey(t,n);if(r)throw TypeError(r);tv(t.searchParams).updateSearchParams(t.query)}),origin:gy(iy),protocol:gy(oy,function(e){var t=rv(this);ey(t,String(e)+":",jv)}),username:gy(ay,function(e){var t=rv(this),n=lp(String(e));if(!Ov(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=_v(n[r],Sv)}}),password:gy(sy,function(e){var t=rv(this),n=lp(String(e));if(!Ov(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=_v(n[r],Sv)}}),host:gy(cy,function(e){var t=rv(this);t.cannotBeABaseURL||ey(t,String(e),Vv)}),hostname:gy(ly,function(e){var t=rv(this);t.cannotBeABaseURL||ey(t,String(e),zv)}),port:gy(uy,function(e){var t=rv(this);Ov(t)||(""==(e=String(e))?t.port=null:ey(t,e,Wv))}),pathname:gy(fy,function(e){var t=rv(this);t.cannotBeABaseURL||(t.path=[],ey(t,e+"",Gv))}),search:gy(hy,function(e){var t=rv(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",ey(t,e,Qv)),tv(t.searchParams).updateSearchParams(t.query)}),searchParams:gy(dy),hash:gy(py,function(e){var t=rv(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",ey(t,e,Zv)):t.fragment=null})}),$h(ny,"toJSON",function(){return ry.call(this)},{enumerable:!0}),$h(ny,"toString",function(){return ry.call(this)},{enumerable:!0}),Zm){var my=Zm.createObjectURL,vy=Zm.revokeObjectURL;my&&$h(ty,"createObjectURL",function(e){return my.apply(Zm,arguments)}),vy&&$h(ty,"revokeObjectURL",function(e){return vy.apply(Zm,arguments)})}Op(ty,"URL"),bd({global:!0,forced:!_m,sham:!rh},{URL:ty});var yy="".repeat||function(e){var t=String(hh(this)),n="",r=Gh(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},by=1..toFixed,wy=Math.floor,ky=[0,0,0,0,0,0],Ey=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*ky[n],ky[n]=r%1e7,r=wy(r/1e7)},Sy=function(e){for(var t=6,n=0;--t>=0;)n+=ky[t],ky[t]=wy(n/e),n=n%e*1e7},_y=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==ky[e]){var n=String(ky[e]);t=""===t?n:t+yy.call("0",7-n.length)+n}return t},Ty=function(e,t,n){return 0===t?n:t%2==1?Ty(e,t-1,n*e):Ty(e*e,t/2,n)},xy=by&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!nh(function(){by.call({})});bd({target:"Number",proto:!0,forced:xy},{toFixed:function(e){var t,n,r,i,o=function(e){if("number"!=typeof e&&"Number"!=lh(e))throw TypeError("Incorrect invocation");return+e}(this),a=Gh(e),s="",c="0";if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(s="-",o=-o),o>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(o*Ty(2,69,1))-69)<0?o*Ty(2,-t,1):o/Ty(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Ey(0,n),r=a;r>=7;)Ey(1e7,0),r-=7;for(Ey(Ty(10,r,1),0),r=t-1;r>=23;)Sy(1<<23),r-=23;Sy(1<<r),Ey(1,1),Sy(2),c=_y()}else Ey(0,n),Ey(1<<-t,0),c=_y()+yy.call("0",a);return c=a>0?s+((i=c.length)<=a?"0."+yy.call("0",a-i)+c:c.slice(0,i-a)+"."+c.slice(i-a)):s+c}});var Ay=ah.f,Oy=function(e,t){for(var n,r=dh(e),i=Bd(r),o=i.length,a=0,s=[];o>a;)n=i[a++],rh&&!Ay.call(r,n)||s.push(t?[n,r[n]]:r[n]);return s};bd({target:"Object",stat:!0},{entries:function(e){return Oy(e,!0)}}),bd({target:"Object",stat:!0},{values:function(e){return Oy(e)}});var Py=Math.max,Cy=Math.min,Ly=Math.floor,Iy=/\$([$&'`]|\d\d?|<[^>]*>)/g,jy=/\$([$&'`]|\d\d?)/g;Ug("replace",2,function(e,t,n){return[function(n,r){var i=hh(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,i){var o=n(t,e,this,i);if(o.done)return o.value;var a=_h(e),s=String(this),c="function"==typeof i;c||(i=String(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var f=[];;){var h=Dg(a,s);if(null===h)break;if(f.push(h),!l)break;""===String(h[0])&&(a.lastIndex=dm(s,Jh(a.lastIndex),u))}for(var d,p="",g=0,m=0;m<f.length;m++){h=f[m];for(var v=String(h[0]),y=Py(Cy(Gh(h.index),s.length),0),b=[],w=1;w<h.length;w++)b.push(void 0===(d=h[w])?d:String(d));var k=h.groups;if(c){var E=[v].concat(b,y,s);void 0!==k&&E.push(k);var S=String(i.apply(void 0,E))}else S=r(v,s,y,b,k,i);y>=g&&(p+=s.slice(g,y)+S,g=y+v.length)}return p+s.slice(g)}];function r(e,n,r,i,o,a){var s=r+e.length,c=i.length,l=jy;return void 0!==o&&(o=kd(o),l=Iy),t.call(a,l,function(t,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return t;if(u>c){var f=Ly(u/10);return 0===f?t:f<=c?void 0===i[f-1]?a.charAt(1):i[f-1]+a.charAt(1):t}l=i[u-1]}return void 0===l?"":l})}});var Ry={addCSS:!0,thumbWidth:15,watch:!0};bd({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var My=function(e){return null!=e?e.constructor:null},Ny=function(e,t){return Boolean(e&&t&&e instanceof t)},Uy=function(e){return null==e},Fy=function(e){return My(e)===Object},Dy=function(e){return My(e)===String},By=function(e){return Array.isArray(e)},qy=function(e){return Ny(e,NodeList)},Hy={nullOrUndefined:Uy,object:Fy,number:function(e){return My(e)===Number&&!Number.isNaN(e)},string:Dy,boolean:function(e){return My(e)===Boolean},function:function(e){return My(e)===Function},array:By,nodeList:qy,element:function(e){return Ny(e,Element)},event:function(e){return Ny(e,Event)},empty:function(e){return Uy(e)||(Dy(e)||By(e)||qy(e))&&!e.length||Fy(e)&&!Object.keys(e).length}};function Vy(e,t){if(t<1){var n=(r="".concat(t).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/))?Math.max(0,(r[1]?r[1].length:0)-(r[2]?+r[2]:0)):0;return parseFloat(e.toFixed(n))}var r;return Math.round(e/t)*t}Ug("match",1,function(e,t,n){return[function(t){var n=hh(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=_h(e),o=String(this);if(!i.global)return Dg(i,o);var a=i.unicode;i.lastIndex=0;for(var s,c=[],l=0;null!==(s=Dg(i,o));){var u=String(s[0]);c[l]=u,""===u&&(i.lastIndex=dm(o,Jh(i.lastIndex),a)),l++}return 0===l?null:c}]});var zy,Wy,$y,Ky=function(){function e(t,n){Bo(this,e),Hy.element(t)?this.element=t:Hy.string(t)&&(this.element=document.querySelector(t)),Hy.element(this.element)&&Hy.empty(this.element.rangeTouch)&&(this.config=Object.assign({},Ry,n),this.init())}return Ho(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,n=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(e){t.element[n](e,function(e){return t.set(e)},!1)})}},{key:"get",value:function(t){if(!e.enabled||!Hy.event(t))return null;var n,r=t.target,i=t.changedTouches[0],o=parseFloat(r.getAttribute("min"))||0,a=parseFloat(r.getAttribute("max"))||100,s=parseFloat(r.getAttribute("step"))||1,c=a-o,l=r.getBoundingClientRect(),u=100/l.width*(this.config.thumbWidth/2)/100;return(n=100/l.width*(i.clientX-l.left))<0?n=0:n>100&&(n=100),n<50?n-=(100-2*n)*u:n>50&&(n+=2*(n-50)*u),o+Vy(c*(n/100),s)}},{key:"set",value:function(t){e.enabled&&Hy.event(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var n=new Event(t);e.dispatchEvent(n)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;if(Hy.empty(t)||Hy.string(t)?r=Array.from(document.querySelectorAll(Hy.string(t)?t:'input[type="range"]')):Hy.element(t)?r=[t]:Hy.nodeList(t)?r=Array.from(t):Hy.array(t)&&(r=t.filter(Hy.element)),Hy.empty(r))return null;var i=Object.assign({},Ry,n);Hy.string(t)&&i.watch&&new MutationObserver(function(n){Array.from(n).forEach(function(n){Array.from(n.addedNodes).forEach(function(n){if(Hy.element(n)&&function(){return Array.from(document.querySelectorAll(r)).includes(this)}.call(n,r=t)){var r;new e(n,i)}})})}).observe(document.body,{childList:!0,subtree:!0});return r.map(function(t){return new e(t,n)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}(),Yy=th,Gy=function(e){return"function"==typeof e?e:void 0},Xy=xd("species"),Jy=function(e){var t=function(e,t){return arguments.length<2?Gy(Yy[e])||Gy(th[e]):Yy[e]&&Yy[e][t]||th[e]&&th[e][t]}(e),n=xh.f;rh&&t&&!t[Xy]&&n(t,Xy,{configurable:!0,get:function(){return this}})},Qy=th.location,Zy=th.setImmediate,eb=th.clearImmediate,tb=th.process,nb=th.MessageChannel,rb=th.Dispatch,ib=0,ob={},ab=function(e){if(ob.hasOwnProperty(e)){var t=ob[e];delete ob[e],t()}},sb=function(e){return function(){ab(e)}},cb=function(e){ab(e.data)},lb=function(e){th.postMessage(e+"",Qy.protocol+"//"+Qy.host)};Zy&&eb||(Zy=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return ob[++ib]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},zy(ib),ib},eb=function(e){delete ob[e]},"process"==lh(tb)?zy=function(e){tb.nextTick(sb(e))}:rb&&rb.now?zy=function(e){rb.now(sb(e))}:nb?($y=(Wy=new nb).port2,Wy.port1.onmessage=cb,zy=Nd($y.postMessage,$y,1)):!th.addEventListener||"function"!=typeof postMessage||th.importScripts||nh(lb)?zy="onreadystatechange"in wh("script")?function(e){Vd.appendChild(wh("script")).onreadystatechange=function(){Vd.removeChild(this),ab(e)}}:function(e){setTimeout(sb(e),0)}:(zy=lb,th.addEventListener("message",cb,!1)));var ub,fb,hb,db,pb,gb,mb,vb={set:Zy,clear:eb},yb=th.navigator,bb=yb&&yb.userAgent||"",wb=Sh.f,kb=vb.set,Eb=th.MutationObserver||th.WebKitMutationObserver,Sb=th.process,_b=th.Promise,Tb="process"==lh(Sb),xb=wb(th,"queueMicrotask"),Ab=xb&&xb.value;Ab||(ub=function(){var e,t;for(Tb&&(e=Sb.domain)&&e.exit();fb;){t=fb.fn,fb=fb.next;try{t()}catch(e){throw fb?db():hb=void 0,e}}hb=void 0,e&&e.enter()},Tb?db=function(){Sb.nextTick(ub)}:Eb&&!/(iphone|ipod|ipad).*applewebkit/i.test(bb)?(pb=!0,gb=document.createTextNode(""),new Eb(ub).observe(gb,{characterData:!0}),db=function(){gb.data=pb=!pb}):_b&&_b.resolve?(mb=_b.resolve(void 0),db=function(){mb.then(ub)}):db=function(){kb.call(th,ub)});var Ob,Pb,Cb,Lb=Ab||function(e){var t={fn:e,next:void 0};hb&&(hb.next=t),fb||(fb=t,db()),hb=t},Ib=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=Md(t),this.reject=Md(n)},jb={f:function(e){return new Ib(e)}},Rb=function(e,t){if(_h(e),ph(t)&&t.constructor===e)return t;var n=jb.f(e);return(0,n.resolve)(t),n.promise},Mb=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Nb=vb.set,Ub=xd("species"),Fb=Wh.get,Db=Wh.set,Bb=Wh.getterFor("Promise"),qb=th.Promise,Hb=th.TypeError,Vb=th.document,zb=th.process,Wb=th.fetch,$b=zb&&zb.versions,Kb=$b&&$b.v8||"",Yb=jb.f,Gb=Yb,Xb="process"==lh(zb),Jb=!!(Vb&&Vb.createEvent&&th.dispatchEvent),Qb=vd("Promise",function(){var e=qb.resolve(1),t=function(){},n=(e.constructor={})[Ub]=function(e){e(t,t)};return!((Xb||"function"==typeof PromiseRejectionEvent)&&e.then(t)instanceof n&&0!==Kb.indexOf("6.6")&&-1===bb.indexOf("Chrome/66"))}),Zb=Qb||!dp(function(e){qb.all(e).catch(function(){})}),ew=function(e){var t;return!(!ph(e)||"function"!=typeof(t=e.then))&&t},tw=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;Lb(function(){for(var i=t.value,o=1==t.state,a=0,s=function(n){var r,a,s,c=o?n.ok:n.fail,l=n.resolve,u=n.reject,f=n.domain;try{c?(o||(2===t.rejection&&ow(e,t),t.rejection=1),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),s=!0)),r===n.promise?u(Hb("Promise-chain cycle")):(a=ew(r))?a.call(r,l,u):l(r)):u(i)}catch(e){f&&!s&&f.exit(),u(e)}};r.length>a;)s(r[a++]);t.reactions=[],t.notified=!1,n&&!t.rejection&&rw(e,t)})}},nw=function(e,t,n){var r,i;Jb?((r=Vb.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),th.dispatchEvent(r)):r={promise:t,reason:n},(i=th["on"+e])?i(r):"unhandledrejection"===e&&function(e,t){var n=th.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},rw=function(e,t){Nb.call(th,function(){var n,r=t.value;if(iw(t)&&(n=Mb(function(){Xb?zb.emit("unhandledRejection",r,e):nw("unhandledrejection",e,r)}),t.rejection=Xb||iw(t)?2:1,n.error))throw n.value})},iw=function(e){return 1!==e.rejection&&!e.parent},ow=function(e,t){Nb.call(th,function(){Xb?zb.emit("rejectionHandled",e):nw("rejectionhandled",e,t.value)})},aw=function(e,t,n,r){return function(i){e(t,n,i,r)}},sw=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,tw(e,t,!0))},cw=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Hb("Promise can't be resolved itself");var i=ew(n);i?Lb(function(){var r={done:!1};try{i.call(n,aw(cw,e,r,t),aw(sw,e,r,t))}catch(n){sw(e,r,n,t)}}):(t.value=n,t.state=1,tw(e,t,!1))}catch(n){sw(e,{done:!1},n,t)}}};Qb&&(qb=function(e){zg(this,qb,"Promise"),Md(e),Ob.call(this);var t=Fb(this);try{e(aw(cw,this,t),aw(sw,this,t))}catch(e){sw(this,t,e)}},(Ob=function(e){Db(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Bg(qb.prototype,{then:function(e,t){var n=Bb(this),r=Yb(hm(this,qb));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Xb?zb.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&tw(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Pb=function(){var e=new Ob,t=Fb(e);this.promise=e,this.resolve=aw(cw,e,t),this.reject=aw(sw,e,t)},jb.f=Yb=function(e){return e===qb||e===Cb?new Pb(e):Gb(e)},"function"==typeof Wb&&bd({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return Rb(qb,Wb.apply(th,arguments))}})),bd({global:!0,wrap:!0,forced:Qb},{Promise:qb}),Op(qb,"Promise",!1),Jy("Promise"),Cb=Yy.Promise,bd({target:"Promise",stat:!0,forced:Qb},{reject:function(e){var t=Yb(this);return t.reject.call(void 0,e),t.promise}}),bd({target:"Promise",stat:!0,forced:Qb},{resolve:function(e){return Rb(this,e)}}),bd({target:"Promise",stat:!0,forced:Zb},{all:function(e){var t=this,n=Yb(t),r=n.resolve,i=n.reject,o=Mb(function(){var n=Md(t.resolve),o=[],a=0,s=1;Vg(e,function(e){var c=a++,l=!1;o.push(void 0),s++,n.call(t,e).then(function(e){l||(l=!0,o[c]=e,--s||r(o))},i)}),--s||r(o)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=Yb(t),r=n.reject,i=Mb(function(){var i=Md(t.resolve);Vg(e,function(e){i.call(t,e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}});var lw="".startsWith;bd({target:"String",proto:!0,forced:!_g("startsWith")},{startsWith:function(e){var t=Eg(this,e,"startsWith"),n=Jh(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return lw?lw.call(t,r,n):t.slice(n,n+r.length)===r}});var uw,fw,hw,dw=function(e){return null!=e?e.constructor:null},pw=function(e,t){return Boolean(e&&t&&e instanceof t)},gw=function(e){return null==e},mw=function(e){return dw(e)===Object},vw=function(e){return dw(e)===String},yw=function(e){return Array.isArray(e)},bw=function(e){return pw(e,NodeList)},ww=function(e){return gw(e)||(vw(e)||yw(e)||bw(e))&&!e.length||mw(e)&&!Object.keys(e).length},kw={nullOrUndefined:gw,object:mw,number:function(e){return dw(e)===Number&&!Number.isNaN(e)},string:vw,boolean:function(e){return dw(e)===Boolean},function:function(e){return dw(e)===Function},array:yw,weakMap:function(e){return pw(e,WeakMap)},nodeList:bw,element:function(e){return pw(e,Element)},textNode:function(e){return dw(e)===Text},event:function(e){return pw(e,Event)},keyboardEvent:function(e){return pw(e,KeyboardEvent)},cue:function(e){return pw(e,window.TextTrackCue)||pw(e,window.VTTCue)},track:function(e){return pw(e,TextTrack)||!gw(e)&&vw(e.kind)},promise:function(e){return pw(e,Promise)},url:function(e){if(pw(e,window.URL))return!0;if(!vw(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!ww(new URL(t).hostname)}catch(e){return!1}},empty:ww},Ew=(uw=document.createElement("span"),fw={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},hw=Object.keys(fw).find(function(e){return void 0!==uw.style[e]}),!!kw.string(hw)&&fw[hw]);function Sw(e,t){setTimeout(function(){try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}},t)}var _w={isIE:!!document.documentMode,isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)},Tw=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function xw(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&"addEventListener"in e&&!kw.empty(t)&&kw.function(n)){var s=t.split(" "),c=a;Tw&&(c={passive:o,capture:a}),s.forEach(function(t){r&&r.eventListeners&&i&&r.eventListeners.push({element:e,type:t,callback:n,options:c}),e[i?"addEventListener":"removeEventListener"](t,n,c)})}}function Aw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];xw.call(this,e,t,n,!0,r,i)}function Ow(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];xw.call(this,e,t,n,!1,r,i)}function Pw(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];xw.call(this,e,n,function a(){Ow(e,n,a,i,o);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];r.apply(t,c)},!0,i,o)}function Cw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(kw.element(e)&&!kw.empty(t)){var i=new CustomEvent(t,{bubbles:n,detail:Object.assign({},r,{plyr:this})});e.dispatchEvent(i)}}function Lw(e,t){return t.split(".").reduce(function(e,t){return e&&e[t]},e)}function Iw(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var i=n.shift();return kw.object(i)?(Object.keys(i).forEach(function(t){kw.object(i[t])?(Object.keys(e).includes(t)||Object.assign(e,Vo({},t,{})),Iw(e[t],i[t])):Object.assign(e,Vo({},t,i[t]))}),Iw.apply(void 0,[e].concat(n))):e}function jw(e,t){var n=e.length?e:[e];Array.from(n).reverse().forEach(function(e,n){var r=n>0?t.cloneNode(!0):t,i=e.parentNode,o=e.nextSibling;r.appendChild(e),o?i.insertBefore(r,o):i.appendChild(r)})}function Rw(e,t){kw.element(e)&&!kw.empty(t)&&Object.entries(t).filter(function(e){var t=zo(e,2)[1];return!kw.nullOrUndefined(t)}).forEach(function(t){var n=zo(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)})}function Mw(e,t,n){var r=document.createElement(e);return kw.object(t)&&Rw(r,t),kw.string(n)&&(r.innerText=n),r}function Nw(e,t,n,r){kw.element(t)&&t.appendChild(Mw(e,n,r))}function Uw(e){kw.nodeList(e)||kw.array(e)?Array.from(e).forEach(Uw):kw.element(e)&&kw.element(e.parentNode)&&e.parentNode.removeChild(e)}function Fw(e){if(kw.element(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function Dw(e,t){return kw.element(t)&&kw.element(t.parentNode)&&kw.element(e)?(t.parentNode.replaceChild(e,t),e):null}function Bw(e,t){if(!kw.string(e)||kw.empty(e))return{};var n={},r=Iw({},t);return e.split(",").forEach(function(e){var t=e.trim(),i=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),a=zo(o,1)[0],s=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":kw.string(r.class)?n.class="".concat(r.class," ").concat(i):n.class=i;break;case"#":n.id=t.replace("#","");break;case"[":n[a]=s}}),Iw(r,n)}function qw(e,t){if(kw.element(e)){var n=t;kw.boolean(n)||(n=!e.hidden),e.hidden=n}}function Hw(e,t,n){if(kw.nodeList(e))return Array.from(e).map(function(e){return Hw(e,t,n)});if(kw.element(e)){var r="toggle";return void 0!==n&&(r=n?"add":"remove"),e.classList[r](t),e.classList.contains(t)}return!1}function Vw(e,t){return kw.element(e)&&e.classList.contains(t)}function zw(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function Ww(e){return this.elements.container.querySelectorAll(e)}function $w(e){return this.elements.container.querySelector(e)}function Kw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];kw.element(e)&&(e.focus({preventScroll:!0}),t&&Hw(e,this.config.classNames.tabFocus))}var Yw,Gw={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},Xw={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,n){var r=_w.isIPhone&&n&&Xw.playsinline,i=Xw[e]||"html5"!==t;return{api:i,ui:i&&Xw.rangeInput&&("video"!==e||!_w.isIPhone||r)}},pip:!(_w.isIPhone||!kw.function(Mw("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||Mw("video").disablePictureInPicture)),airplay:kw.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(kw.empty(e))return!1;var t=zo(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(Gw).includes(n)&&(n+='; codecs="'.concat(Gw[e],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(Yw=document.createElement("input"),Yw.type="range","range"===Yw.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==Ew,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches};function Jw(e){return!!(kw.array(e)||kw.string(e)&&e.includes(":"))&&(kw.array(e)?e:e.split(":")).map(Number).every(kw.number)}function Qw(e){if(!kw.array(e)||!e.every(kw.number))return null;var t=zo(e,2),n=t[0],r=t[1],i=function e(t,n){return 0===n?t:e(n,t%n)}(n,r);return[n/i,r/i]}function Zw(e){var t=function(e){return Jw(e)?e.split(":").map(Number):null},n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!kw.empty(this.embed)&&kw.array(this.embed.ratio)&&(n=this.embed.ratio),null===n&&this.isHTML5){var r=this.media;n=Qw([r.videoWidth,r.videoHeight])}return n}function ek(e){if(!this.isVideo)return{};var t=Zw.call(this,e),n=zo(kw.array(t)?t:[0,0],2),r=100/n[0]*n[1];if(this.elements.wrapper.style.paddingBottom="".concat(r,"%"),this.isVimeo&&this.supported.ui){var i=(240-r)/4.8;this.media.style.transform="translateY(-".concat(i,"%)")}else this.isHTML5&&this.elements.wrapper.classList.toggle(this.config.classNames.videoFixedRatio,null!==t);return{padding:r,ratio:t}}var tk={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(function(t){var n=t.getAttribute("type");return!!kw.empty(n)||Xw.mime.call(e,n)}):[]},getQualityOptions:function(){return tk.getSources.call(this).map(function(e){return Number(e.getAttribute("size"))}).filter(Boolean)},extend:function(){if(this.isHTML5){var e=this;kw.empty(this.config.ratio)?e.once("loadedmetadata",function(){ek.call(e)}):ek.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=tk.getSources.call(e).find(function(t){return t.getAttribute("src")===e.source});return t&&Number(t.getAttribute("size"))},set:function(t){var n=tk.getSources.call(e).find(function(e){return Number(e.getAttribute("size"))===t});if(n){var r=e.media,i=r.currentTime,o=r.paused,a=r.preload,s=r.readyState;e.media.src=n.getAttribute("src"),("none"!==a||s)&&(e.once("loadedmetadata",function(){e.currentTime=i,o||e.play()}),e.media.load()),Cw.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(Uw(tk.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function nk(e){return kw.array(e)?e.filter(function(t,n){return e.indexOf(t)===n}):e}var rk=xd("species"),ik=[].slice,ok=Math.max,ak=Cd("slice");bd({target:"Array",proto:!0,forced:!ak},{slice:function(e,t){var n,r,i,o=dh(this),a=Jh(o.length),s=ed(e,a),c=ed(void 0===t?a:t,a);if(wd(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!wd(n.prototype)?ph(n)&&null===(n=n[rk])&&(n=void 0):n=void 0,n===Array||void 0===n))return ik.call(o,s,c);for(r=new(void 0===n?Array:n)(ok(c-s,0)),i=0;s<c;s++,i++)s in o&&Ed(r,i,o[s]);return r.length=i,r}});var sk=xh.f,ck=ad.f,lk=xd("match"),uk=th.RegExp,fk=uk.prototype,hk=/a/g,dk=/a/g,pk=new uk(hk)!==hk;if(vd("RegExp",rh&&(!pk||nh(function(){return dk[lk]=!1,uk(hk)!=hk||uk(dk)==dk||"/a/i"!=uk(hk,"i")})))){for(var gk=function(e,t){var n=this instanceof gk,r=kg(e),i=void 0===t;return!n&&r&&e.constructor===gk&&i?e:Kp(pk?new uk(r&&!i?e.source:e,t):uk((r=e instanceof gk)?e.source:e,r&&i?gg.call(e):t),n?this:fk,gk)},mk=function(e){e in gk||sk(gk,e,{configurable:!0,get:function(){return uk[e]},set:function(t){uk[e]=t}})},vk=ck(uk),yk=0;yk<vk.length;)mk(vk[yk++]);fk.constructor=gk,gk.prototype=fk,$h(th,"RegExp",gk)}function bk(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return kw.empty(e)?e:e.toString().replace(/{(\d+)}/g,function(e,t){return n[t].toString()})}function wk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"),"g"),n.toString())}function kk(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})}function Ek(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(e=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return e=wk(e,"-"," "),e=wk(e,"_"," "),wk(e=kk(e)," ","")}(e)).charAt(0).toLowerCase()+e.slice(1)}function Sk(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}Jy("RegExp");var _k={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Tk=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(kw.empty(e)||kw.empty(t))return"";var n=Lw(t.i18n,e);if(kw.empty(n))return Object.keys(_k).includes(e)?_k[e]:"";var r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach(function(e){var t=zo(e,2),r=t[0],i=t[1];n=wk(n,r,i)}),n},xk=function(){function e(t){Bo(this,e),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return Ho(e,[{key:"get",value:function(t){if(!e.supported||!this.enabled)return null;var n=window.localStorage.getItem(this.key);if(kw.empty(n))return null;var r=JSON.parse(n);return kw.string(t)&&t.length?r[t]:r}},{key:"set",value:function(t){if(e.supported&&this.enabled&&kw.object(t)){var n=this.get();kw.empty(n)&&(n={}),Iw(n,t),window.localStorage.setItem(this.key,JSON.stringify(n))}}}],[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;return window.localStorage.setItem("___test","___test"),window.localStorage.removeItem("___test"),!0}catch(e){return!1}}}]),e}();function Ak(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise(function(n,r){try{var i=new XMLHttpRequest;if(!("withCredentials"in i))return;i.addEventListener("load",function(){if("text"===t)try{n(JSON.parse(i.responseText))}catch(e){n(i.responseText)}else n(i.response)}),i.addEventListener("error",function(){throw new Error(i.status)}),i.open("GET",e,!0),i.responseType=t,i.send()}catch(e){r(e)}})}function Ok(e,t){if(kw.string(e)){var n=kw.string(t),r=function(){return null!==document.getElementById(t)},i=function(e,t){e.innerHTML=t,n&&r()||document.body.insertAdjacentElement("afterbegin",e)};if(!n||!r()){var o=xk.supported,a=document.createElement("div");if(a.setAttribute("hidden",""),n&&a.setAttribute("id",t),o){var s=window.localStorage.getItem("".concat("cache","-").concat(t));if(null!==s){var c=JSON.parse(s);i(a,c.content)}}Ak(e).then(function(e){kw.empty(e)||(o&&window.localStorage.setItem("".concat("cache","-").concat(t),JSON.stringify({content:e})),i(a,e))}).catch(function(){})}}}var Pk=Math.ceil,Ck=Math.floor;bd({target:"Math",stat:!0},{trunc:function(e){return(e>0?Ck:Pk)(e)}});var Lk=function(e){return Math.trunc(e/60/60%60,10)},Ik=function(e){return Math.trunc(e/60%60,10)},jk=function(e){return Math.trunc(e%60,10)};function Rk(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!kw.number(e))return Rk(null,t,n);var r=function(e){return"0".concat(e).slice(-2)},i=Lk(e),o=Ik(e),a=jk(e);return i=t||i>0?"".concat(i,":"):"","".concat(n&&e>0?"-":"").concat(i).concat(r(o),":").concat(r(a))}var Mk={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||_w.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=$w.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Ww.call(this,this.config.selectors.buttons.play),pause:$w.call(this,this.config.selectors.buttons.pause),restart:$w.call(this,this.config.selectors.buttons.restart),rewind:$w.call(this,this.config.selectors.buttons.rewind),fastForward:$w.call(this,this.config.selectors.buttons.fastForward),mute:$w.call(this,this.config.selectors.buttons.mute),pip:$w.call(this,this.config.selectors.buttons.pip),airplay:$w.call(this,this.config.selectors.buttons.airplay),settings:$w.call(this,this.config.selectors.buttons.settings),captions:$w.call(this,this.config.selectors.buttons.captions),fullscreen:$w.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=$w.call(this,this.config.selectors.progress),this.elements.inputs={seek:$w.call(this,this.config.selectors.inputs.seek),volume:$w.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:$w.call(this,this.config.selectors.display.buffer),currentTime:$w.call(this,this.config.selectors.display.currentTime),duration:$w.call(this,this.config.selectors.display.duration)},kw.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var n=Mk.getIconUrl.call(this),r="".concat(n.cors?"":n.url,"#").concat(this.config.iconPrefix),i=document.createElementNS("http://www.w3.org/2000/svg","svg");Rw(i,Iw(t,{role:"presentation",focusable:"false"}));var o=document.createElementNS("http://www.w3.org/2000/svg","use"),a="".concat(r,"-").concat(e);return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",a),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),i.appendChild(o),i},createLabel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Tk(e,this.config);return Mw("span",Object.assign({},t,{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),n)},createBadge:function(e){if(kw.empty(e))return null;var t=Mw("span",{class:this.config.classNames.menu.value});return t.appendChild(Mw("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var n=this,r=Iw({},t),i=Ek(e),o={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(function(e){Object.keys(r).includes(e)&&(o[e]=r[e],delete r[e])}),"button"!==o.element||Object.keys(r).includes("type")||(r.type="button"),Object.keys(r).includes("class")?r.class.split(" ").some(function(e){return e===n.config.classNames.control})||Iw(r,{class:"".concat(r.class," ").concat(this.config.classNames.control)}):r.class=this.config.classNames.control,e){case"play":o.toggle=!0,o.label="play",o.labelPressed="pause",o.icon="play",o.iconPressed="pause";break;case"mute":o.toggle=!0,o.label="mute",o.labelPressed="unmute",o.icon="volume",o.iconPressed="muted";break;case"captions":o.toggle=!0,o.label="enableCaptions",o.labelPressed="disableCaptions",o.icon="captions-off",o.iconPressed="captions-on";break;case"fullscreen":o.toggle=!0,o.label="enterFullscreen",o.labelPressed="exitFullscreen",o.icon="enter-fullscreen",o.iconPressed="exit-fullscreen";break;case"play-large":r.class+=" ".concat(this.config.classNames.control,"--overlaid"),i="play",o.label="play",o.icon="play";break;default:kw.empty(o.label)&&(o.label=i),kw.empty(o.icon)&&(o.icon=e)}var a=Mw(o.element);return o.toggle?(a.appendChild(Mk.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),a.appendChild(Mk.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),a.appendChild(Mk.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),a.appendChild(Mk.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(a.appendChild(Mk.createIcon.call(this,o.icon)),a.appendChild(Mk.createLabel.call(this,o.label))),Iw(r,Bw(this.config.selectors.buttons[i],r)),Rw(a,r),"play"===i?(kw.array(this.elements.buttons[i])||(this.elements.buttons[i]=[]),this.elements.buttons[i].push(a)):this.elements.buttons[i]=a,a},createRange:function(e,t){var n=Mw("input",Iw(Bw(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Tk(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,Mk.updateRangeFill.call(this,n),Ky.setup(n),n},createProgress:function(e,t){var n=Mw("progress",Iw(Bw(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(Mw("span",null,"0"));var r={played:"played",buffer:"buffered"}[e],i=r?Tk(r,this.config):"";n.innerText="% ".concat(i.toLowerCase())}return this.elements.display[e]=n,n},createTime:function(e,t){var n=Bw(this.config.selectors.display[e],t),r=Mw("div",Iw(n,{class:"".concat(n.class?n.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":Tk(e,this.config)}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts:function(e,t){var n=this;Aw(e,"keydown keyup",function(r){if([32,38,39,40].includes(r.which)&&(r.preventDefault(),r.stopPropagation(),"keydown"!==r.type)){var i,o=zw(e,'[role="menuitemradio"]');if(!o&&[32,39].includes(r.which))Mk.showMenuPanel.call(n,t,!0);else 32!==r.which&&(40===r.which||o&&39===r.which?(i=e.nextElementSibling,kw.element(i)||(i=e.parentNode.firstElementChild)):(i=e.previousElementSibling,kw.element(i)||(i=e.parentNode.lastElementChild)),Kw.call(n,i,!0))}},!1),Aw(e,"keyup",function(e){13===e.which&&Mk.focusFirstMenuItem.call(n,null,!0)})},createMenuItem:function(e){var t=this,n=e.value,r=e.list,i=e.type,o=e.title,a=e.badge,s=void 0===a?null:a,c=e.checked,l=void 0!==c&&c,u=Bw(this.config.selectors.inputs[i]),f=Mw("button",Iw(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":l,value:n})),h=Mw("span");h.innerHTML=o,kw.element(s)&&h.appendChild(s),f.appendChild(h),Object.defineProperty(f,"checked",{enumerable:!0,get:function(){return"true"===f.getAttribute("aria-checked")},set:function(e){e&&Array.from(f.parentNode.children).filter(function(e){return zw(e,'[role="menuitemradio"]')}).forEach(function(e){return e.setAttribute("aria-checked","false")}),f.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(f,"click keyup",function(e){if(!kw.keyboardEvent(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),f.checked=!0,i){case"language":t.currentTrack=Number(n);break;case"quality":t.quality=n;break;case"speed":t.speed=parseFloat(n)}Mk.showMenuPanel.call(t,"home",kw.keyboardEvent(e))}},i,!1),Mk.bindMenuItemShortcuts.call(this,f,i),r.appendChild(f)},formatTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return kw.number(e)?Rk(e,Lk(this.duration)>0,t):e},updateTimeDisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];kw.element(e)&&kw.number(t)&&(e.innerText=Mk.formatTime(t,n))},updateVolume:function(){this.supported.ui&&(kw.element(this.elements.inputs.volume)&&Mk.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),kw.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;kw.element(e)&&(e.value=t,Mk.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&kw.event(e)){var n=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":n=function(e,t){return 0===e||0===t||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===e.type&&Mk.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(e,n){var r=kw.number(n)?n:0,i=kw.element(e)?e:t.elements.display.buffer;if(kw.element(i)){i.value=r;var o=i.getElementsByTagName("span")[0];kw.element(o)&&(o.childNodes[0].nodeValue=r)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=kw.event(e)?e.target:e;if(kw.element(t)&&"range"===t.getAttribute("type")){if(zw(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var n=Mk.formatTime(this.currentTime),r=Mk.formatTime(this.duration),i=Tk("seekLabel",this.config);t.setAttribute("aria-valuetext",i.replace("{currentTime}",n).replace("{duration}",r))}else if(zw(t,this.config.selectors.inputs.volume)){var o=100*t.value;t.setAttribute("aria-valuenow",o),t.setAttribute("aria-valuetext","".concat(o.toFixed(1),"%"))}else t.setAttribute("aria-valuenow",t.value);_w.isWebkit&&t.style.setProperty("--value","".concat(t.value/t.max*100,"%"))}},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&kw.element(this.elements.inputs.seek)&&kw.element(this.elements.display.seekTooltip)&&0!==this.duration){var n="".concat(this.config.classNames.tooltip,"--visible"),r=function(e){return Hw(t.elements.display.seekTooltip,n,e)};if(this.touch)r(!1);else{var i=0,o=this.elements.progress.getBoundingClientRect();if(kw.event(e))i=100/o.width*(e.pageX-o.left);else{if(!Vw(this.elements.display.seekTooltip,n))return;i=parseFloat(this.elements.display.seekTooltip.style.left,10)}i<0?i=0:i>100&&(i=100),Mk.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*i),this.elements.display.seekTooltip.style.left="".concat(i,"%"),kw.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&r("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!kw.element(this.elements.display.duration)&&this.config.invertTime;Mk.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||Mk.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return qw(this.elements.display.currentTime,!0),void qw(this.elements.progress,!0);kw.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=kw.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&Mk.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&Mk.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Mk.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){qw(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,n){var r=this.elements.settings.panels[e],i=null,o=t;if("captions"===e)i=this.currentTrack;else{if(i=kw.empty(n)?this[e]:n,kw.empty(i)&&(i=this.config[e].default),!kw.empty(this.options[e])&&!this.options[e].includes(i))return void this.debug.warn("Unsupported value of '".concat(i,"' for ").concat(e));if(!this.config[e].options.includes(i))return void this.debug.warn("Disabled value of '".concat(i,"' for ").concat(e))}if(kw.element(o)||(o=r&&r.querySelector('[role="menu"]')),kw.element(o)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=Mk.getLabel.call(this,e,i);var a=o&&o.querySelector('[value="'.concat(i,'"]'));kw.element(a)&&(a.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?Tk("normal",this.config):"".concat(t,"×");case"quality":if(kw.number(t)){var n=Tk("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return kk(t);case"captions":return Fk.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(kw.element(this.elements.settings.panels.quality)){var n=this.elements.settings.panels.quality.querySelector('[role="menu"]');kw.array(e)&&(this.options.quality=nk(e).filter(function(e){return t.config.quality.options.includes(e)}));var r=!kw.empty(this.options.quality)&&this.options.quality.length>1;if(Mk.toggleMenuButton.call(this,"quality",r),Fw(n),Mk.checkMenu.call(this),r){var i=function(e){var n=Tk("qualityBadge.".concat(e),t.config);return n.length?Mk.createBadge.call(t,n):null};this.options.quality.sort(function(e,n){var r=t.config.quality.options;return r.indexOf(e)>r.indexOf(n)?1:-1}).forEach(function(e){Mk.createMenuItem.call(t,{value:e,list:n,type:"quality",title:Mk.getLabel.call(t,"quality",e),badge:i(e)})}),Mk.updateSetting.call(this,"quality",n)}}},setCaptionsMenu:function(){var e=this;if(kw.element(this.elements.settings.panels.captions)){var t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=Fk.getTracks.call(this),r=Boolean(n.length);if(Mk.toggleMenuButton.call(this,"captions",r),Fw(t),Mk.checkMenu.call(this),r){var i=n.map(function(n,r){return{value:r,checked:e.captions.toggled&&e.currentTrack===r,title:Fk.getLabel.call(e,n),badge:n.language&&Mk.createBadge.call(e,n.language.toUpperCase()),list:t,type:"language"}});i.unshift({value:-1,checked:!this.captions.toggled,title:Tk("disabled",this.config),list:t,type:"language"}),i.forEach(Mk.createMenuItem.bind(this)),Mk.updateSetting.call(this,"captions",t)}}},setSpeedMenu:function(e){var t=this;if(kw.element(this.elements.settings.panels.speed)){var n=this.elements.settings.panels.speed.querySelector('[role="menu"]');kw.array(e)?this.options.speed=e:(this.isHTML5||this.isVimeo)&&(this.options.speed=[.5,.75,1,1.25,1.5,1.75,2]),this.options.speed=this.options.speed.filter(function(e){return t.config.speed.options.includes(e)});var r=!kw.empty(this.options.speed)&&this.options.speed.length>1;Mk.toggleMenuButton.call(this,"speed",r),Fw(n),Mk.checkMenu.call(this),r&&(this.options.speed.forEach(function(e){Mk.createMenuItem.call(t,{value:e,list:n,type:"speed",title:Mk.getLabel.call(t,"speed",e)})}),Mk.updateSetting.call(this,"speed",n))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!kw.empty(e)&&Object.values(e).some(function(e){return!e.hidden});qw(this.elements.settings.menu,!t)},focusFirstMenuItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var n=e;kw.element(n)||(n=Object.values(this.elements.settings.panels).find(function(e){return!e.hidden}));var r=n.querySelector('[role^="menuitem"]');Kw.call(this,r,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,n=this.elements.buttons.settings;if(kw.element(t)&&kw.element(n)){var r=t.hidden,i=r;if(kw.boolean(e))i=e;else if(kw.keyboardEvent(e)&&27===e.which)i=!1;else if(kw.event(e)){var o=kw.function(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(o);if(a||!a&&e.target!==n&&i)return}n.setAttribute("aria-expanded",i),qw(t,!i),Hw(this.elements.container,this.config.classNames.menu.open,i),i&&kw.keyboardEvent(e)?Mk.focusFirstMenuItem.call(this,null,!0):i||r||Kw.call(this,n,kw.keyboardEvent(e))}},getMenuSize:function(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);var n=t.scrollWidth,r=t.scrollHeight;return Uw(t),{width:n,height:r}},showMenuPanel:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(kw.element(r)){var i=r.parentNode,o=Array.from(i.children).find(function(e){return!e.hidden});if(Xw.transitions&&!Xw.reducedMotion){i.style.width="".concat(o.scrollWidth,"px"),i.style.height="".concat(o.scrollHeight,"px");var a=Mk.getMenuSize.call(this,r);Aw.call(this,i,Ew,function t(n){n.target===i&&["width","height"].includes(n.propertyName)&&(i.style.width="",i.style.height="",Ow.call(e,i,Ew,t))}),i.style.width="".concat(a.width,"px"),i.style.height="".concat(a.height,"px")}qw(o,!0),qw(r,!1),Mk.focusFirstMenuItem.call(this,r,n)}},setDownloadUrl:function(){var e=this.elements.buttons.download;kw.element(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,n=Mk.bindMenuItemShortcuts,r=Mk.createButton,i=Mk.createProgress,o=Mk.createRange,a=Mk.createTime,s=Mk.setQualityMenu,c=Mk.setSpeedMenu,l=Mk.showMenuPanel;this.elements.controls=null,this.config.controls.includes("play-large")&&this.elements.container.appendChild(r.call(this,"play-large"));var u=Mw("div",Bw(this.config.selectors.controls.wrapper));this.elements.controls=u;var f={class:"plyr__controls__item"};return nk(this.config.controls).forEach(function(s){if("restart"===s&&u.appendChild(r.call(t,"restart",f)),"rewind"===s&&u.appendChild(r.call(t,"rewind",f)),"play"===s&&u.appendChild(r.call(t,"play",f)),"fast-forward"===s&&u.appendChild(r.call(t,"fast-forward",f)),"progress"===s){var c=Mw("div",{class:"".concat(f.class," plyr__progress__container")}),h=Mw("div",Bw(t.config.selectors.progress));if(h.appendChild(o.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),h.appendChild(i.call(t,"buffer")),t.config.tooltips.seek){var d=Mw("span",{class:t.config.classNames.tooltip},"00:00");h.appendChild(d),t.elements.display.seekTooltip=d}t.elements.progress=h,c.appendChild(t.elements.progress),u.appendChild(c)}if("current-time"===s&&u.appendChild(a.call(t,"currentTime",f)),"duration"===s&&u.appendChild(a.call(t,"duration",f)),"mute"===s||"volume"===s){var p=t.elements.volume;if(kw.element(p)&&u.contains(p)||(p=Mw("div",Iw({},f,{class:"".concat(f.class," plyr__volume").trim()})),t.elements.volume=p,u.appendChild(p)),"mute"===s&&p.appendChild(r.call(t,"mute")),"volume"===s){var g={max:1,step:.05,value:t.config.volume};p.appendChild(o.call(t,"volume",Iw(g,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===s&&u.appendChild(r.call(t,"captions",f)),"settings"===s&&!kw.empty(t.config.settings)){var m=Mw("div",Iw({},f,{class:"".concat(f.class," plyr__menu").trim(),hidden:""}));m.appendChild(r.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var v=Mw("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=Mw("div"),b=Mw("div",{id:"plyr-settings-".concat(e.id,"-home")}),w=Mw("div",{role:"menu"});b.appendChild(w),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach(function(r){var i=Mw("button",Iw(Bw(t.config.selectors.buttons.settings),{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));n.call(t,i,r),Aw(i,"click",function(){l.call(t,r,!1)});var o=Mw("span",null,Tk(r,t.config)),a=Mw("span",{class:t.config.classNames.menu.value});a.innerHTML=e[r],o.appendChild(a),i.appendChild(o),w.appendChild(i);var s=Mw("div",{id:"plyr-settings-".concat(e.id,"-").concat(r),hidden:""}),c=Mw("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});c.appendChild(Mw("span",{"aria-hidden":!0},Tk(r,t.config))),c.appendChild(Mw("span",{class:t.config.classNames.hidden},Tk("menuBack",t.config))),Aw(s,"keydown",function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),l.call(t,"home",!0))},!1),Aw(c,"click",function(){l.call(t,"home",!1)}),s.appendChild(c),s.appendChild(Mw("div",{role:"menu"})),y.appendChild(s),t.elements.settings.buttons[r]=i,t.elements.settings.panels[r]=s}),v.appendChild(y),m.appendChild(v),u.appendChild(m),t.elements.settings.popup=v,t.elements.settings.menu=m}if("pip"===s&&Xw.pip&&u.appendChild(r.call(t,"pip",f)),"airplay"===s&&Xw.airplay&&u.appendChild(r.call(t,"airplay",f)),"download"===s){var k=Iw({},f,{element:"a",href:t.download,target:"_blank"}),E=t.config.urls.download;!kw.url(E)&&t.isEmbed&&Iw(k,{icon:"logo-".concat(t.provider),label:t.provider}),u.appendChild(r.call(t,"download",k))}"fullscreen"===s&&u.appendChild(r.call(t,"fullscreen",f))}),this.isHTML5&&s.call(this,tk.getQualityOptions.call(this)),c.call(this),u},inject:function(){var e=this;if(this.config.loadSprite){var t=Mk.getIconUrl.call(this);t.cors&&Ok(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var n=null;this.elements.controls=null;var r={id:this.id,seektime:this.config.seekTime,title:this.config.title},i=!0;kw.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,r)),this.config.controls||(this.config.controls=[]),kw.element(this.config.controls)||kw.string(this.config.controls)?n=this.config.controls:(n=Mk.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Fk.getLabel.call(this)}),i=!1);var o,a=function(e){var t=e;return Object.entries(r).forEach(function(e){var n=zo(e,2),r=n[0],i=n[1];t=wk(t,"{".concat(r,"}"),i)}),t};if(i&&(kw.string(this.config.controls)?n=a(n):kw.element(n)&&(n.innerHTML=a(n.innerHTML))),kw.string(this.config.selectors.controls.container)&&(o=document.querySelector(this.config.selectors.controls.container)),kw.element(o)||(o=this.elements.container),o[kw.element(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),kw.element(this.elements.controls)||Mk.findElements.call(this),!kw.empty(this.elements.buttons)){var s=function(t){var n=e.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return Vw(t,n)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Hw(t,n,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(function(e){kw.array(e)||kw.nodeList(e)?Array.from(e).filter(Boolean).forEach(s):s(e)})}if(_w.isEdge&&Sw(o),this.config.tooltips.controls){var c=this.config,l=c.classNames,u=c.selectors,f="".concat(u.controls.wrapper," ").concat(u.labels," .").concat(l.hidden),h=Ww.call(this,f);Array.from(h).forEach(function(t){Hw(t,e.config.classNames.hidden,!1),Hw(t,e.config.classNames.tooltip,!0)})}}};function Nk(e){var t=e;if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){var n=document.createElement("a");n.href=t,t=n.href}try{return new URL(t)}catch(e){return null}}function Uk(e){var t=new URLSearchParams;return kw.object(e)&&Object.entries(e).forEach(function(e){var n=zo(e,2),r=n[0],i=n[1];t.set(r,i)}),t}var Fk={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!Xw.textTracks)kw.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Mk.setCaptionsMenu.call(this);else{if(kw.element(this.elements.captions)||(this.elements.captions=Mw("div",Bw(this.config.selectors.captions)),function(e,t){kw.element(e)&&kw.element(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),_w.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach(function(e){var t=e.getAttribute("src"),n=Nk(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&Ak(t,"blob").then(function(t){e.setAttribute("src",window.URL.createObjectURL(t))}).catch(function(){Uw(e)})})}var t=nk((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(function(e){return e.split("-")[0]})),n=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();if("auto"===n)n=zo(t,1)[0];var r=this.storage.get("captions");if(kw.boolean(r)||(r=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:r,language:n,languages:t}),this.isHTML5){var i=this.config.captions.update?"addtrack removetrack":"removetrack";Aw.call(this,this.media.textTracks,i,Fk.update.bind(this))}setTimeout(Fk.update.bind(this),0)}},update:function(){var e=this,t=Fk.getTracks.call(this,!0),n=this.captions,r=n.active,i=n.language,o=n.meta,a=n.currentTrackNode,s=Boolean(t.find(function(e){return e.language===i}));this.isHTML5&&this.isVideo&&t.filter(function(e){return!o.get(e)}).forEach(function(t){e.debug.log("Track added",t),o.set(t,{default:"showing"===t.mode}),Object.assign(t,{mode:"hidden"}),Aw.call(e,t,"cuechange",function(){return Fk.updateCues.call(e)})}),(s&&this.language!==i||!t.includes(a))&&(Fk.setLanguage.call(this,i),Fk.toggle.call(this,r&&s)),Hw(this.elements.container,this.config.classNames.captions.enabled,!kw.empty(t)),(this.config.controls||[]).includes("settings")&&this.config.settings.includes("captions")&&Mk.setCaptionsMenu.call(this)},toggle:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var n=this.captions.toggled,r=this.config.classNames.captions.active,i=kw.nullOrUndefined(e)?!n:e;if(i!==n){if(t||(this.captions.active=i,this.storage.set({captions:i})),!this.language&&i&&!t){var o=Fk.getTracks.call(this),a=Fk.findTrack.call(this,[this.captions.language].concat(Wo(this.captions.languages)),!0);return this.captions.language=a.language,void Fk.set.call(this,o.indexOf(a))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=i),Hw(this.elements.container,r,i),this.captions.toggled=i,Mk.updateSetting.call(this,"captions"),Cw.call(this,this.media,i?"captionsenabled":"captionsdisabled")}}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Fk.getTracks.call(this);if(-1!==e)if(kw.number(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var r=n[e],i=(r||{}).language;this.captions.currentTrackNode=r,Mk.updateSetting.call(this,"captions"),t||(this.captions.language=i,this.storage.set({language:i})),this.isVimeo&&this.embed.enableTextTrack(i),Cw.call(this,this.media,"languagechange")}Fk.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&Fk.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else Fk.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(kw.string(e)){var n=e.toLowerCase();this.captions.language=n;var r=Fk.getTracks.call(this),i=Fk.findTrack.call(this,[n]);Fk.set.call(this,r.indexOf(i),t)}else this.debug.warn("Invalid language argument",e)},getTracks:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter(function(n){return!e.isHTML5||t||e.captions.meta.has(n)}).filter(function(e){return["captions","subtitles"].includes(e.kind)})},findTrack:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=Fk.getTracks.call(this),o=function(e){return Number((n.captions.meta.get(e)||{}).default)},a=Array.from(i).sort(function(e,t){return o(t)-o(e)});return e.every(function(e){return!(t=a.find(function(t){return t.language===e}))}),t||(r?a[0]:void 0)},getCurrentTrack:function(){return Fk.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!kw.track(t)&&Xw.textTracks&&this.captions.toggled&&(t=Fk.getCurrentTrack.call(this)),kw.track(t)?kw.empty(t.label)?kw.empty(t.language)?Tk("enabled",this.config):e.language.toUpperCase():t.label:Tk("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(kw.element(this.elements.captions))if(kw.nullOrUndefined(e)||Array.isArray(e)){var t=e;if(!t){var n=Fk.getCurrentTrack.call(this);t=Array.from((n||{}).activeCues||[]).map(function(e){return e.getCueAsHTML()}).map(Sk)}var r=t.map(function(e){return e.trim()}).join("\n");if(r!==this.elements.captions.innerHTML){Fw(this.elements.captions);var i=Mw("span",Bw(this.config.selectors.caption));i.innerHTML=r,this.elements.captions.appendChild(i),Cw.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},Dk={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.5.2/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240]},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/v2/video/{0}.json"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1},youtube:{noCookie:!1,rel:0,showinfo:0,iv_load_policy:3,modestbranding:1}},Bk="picture-in-picture",qk="inline",Hk={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Vk={audio:"audio",video:"video"};var zk=function(){},Wk=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Bo(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return Ho(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):zk}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):zk}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):zk}}]),e}();function $k(){if(this.enabled){var e=this.player.elements.buttons.fullscreen;kw.element(e)&&(e.pressed=this.active),Cw.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0),_w.isIos||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(kw.element(e)){var n=Ww.call(this,"button:not(:disabled), input:not(:disabled), [tabindex]"),r=n[0],i=n[n.length-1];xw.call(this,this.elements.container,"keydown",function(e){if("Tab"===e.key&&9===e.keyCode){var t=document.activeElement;t!==i||e.shiftKey?t===r&&e.shiftKey&&(i.focus(),e.preventDefault()):(r.focus(),e.preventDefault())}},t,!1)}}.call(this.player,this.target,this.active)}}function Kk(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=e?"hidden":"",Hw(this.target,this.player.config.classNames.fullscreen.fallback,e),_w.isIos){var t=document.head.querySelector('meta[name="viewport"]'),n="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var r=kw.string(t.content)&&t.content.includes(n);e?(this.cleanupViewport=!r,r||(t.content+=",".concat(n))):this.cleanupViewport&&(t.content=t.content.split(",").filter(function(e){return e.trim()!==n}).join(","))}$k.call(this)}var Yk=function(){function e(t){var n=this;Bo(this,e),this.player=t,this.prefix=e.prefix,this.property=e.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,Aw.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),function(){$k.call(n)}),Aw.call(this.player,this.player.elements.container,"dblclick",function(e){kw.element(n.player.elements.controls)&&n.player.elements.controls.contains(e.target)||n.toggle()}),this.update()}return Ho(e,[{key:"update",value:function(){var t;this.enabled?(t=this.forceFallback?"Fallback (forced)":e.native?"Native":"Fallback",this.player.debug.log("".concat(t," fullscreen enabled"))):this.player.debug.log("Fullscreen not supported and fallback disabled");Hw(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(_w.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():!e.native||this.forceFallback?Kk.call(this,!0):this.prefix?kw.empty(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen())}},{key:"exit",value:function(){if(this.enabled)if(_w.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),this.player.play();else if(!e.native||this.forceFallback)Kk.call(this,!1);else if(this.prefix){if(!kw.empty(this.prefix)){var t="moz"===this.prefix?"Cancel":"Exit";document["".concat(this.prefix).concat(t).concat(this.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}},{key:"toggle",value:function(){this.active?this.exit():this.enter()}},{key:"usingNative",get:function(){return e.native&&!this.forceFallback}},{key:"enabled",get:function(){return(e.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){return!!this.enabled&&(!e.native||this.forceFallback?Vw(this.target,this.player.config.classNames.fullscreen.fallback):(this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement)===this.target)}},{key:"target",get:function(){return _w.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(kw.function(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some(function(t){return!(!kw.function(document["".concat(t,"ExitFullscreen")])&&!kw.function(document["".concat(t,"CancelFullScreen")]))&&(e=t,!0)}),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}(),Gk=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1};function Xk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise(function(n,r){var i=new Image,o=function(){delete i.onload,delete i.onerror,(i.naturalWidth>=t?n:r)(i)};Object.assign(i,{onload:o,onerror:o,src:e})})}bd({target:"Math",stat:!0},{sign:Gk});var Jk={addStyleHook:function(){Hw(this.elements.container,this.config.selectors.container.replace(".",""),!0),Hw(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var e=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void Jk.toggleNativeControls.call(this,!0);kw.element(this.elements.controls)||(Mk.inject.call(this),this.listeners.controls()),Jk.toggleNativeControls.call(this),this.isHTML5&&Fk.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Mk.updateVolume.call(this),Mk.timeUpdate.call(this),Jk.checkPlaying.call(this),Hw(this.elements.container,this.config.classNames.pip.supported,Xw.pip&&this.isHTML5&&this.isVideo),Hw(this.elements.container,this.config.classNames.airplay.supported,Xw.airplay&&this.isHTML5),Hw(this.elements.container,this.config.classNames.isIos,_w.isIos),Hw(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(function(){Cw.call(e,e.media,"ready")},0),Jk.setTitle.call(this),this.poster&&Jk.setPoster.call(this,this.poster,!1).catch(function(){}),this.config.duration&&Mk.durationUpdate.call(this)},setTitle:function(){var e=Tk("play",this.config);if(kw.string(this.config.title)&&!kw.empty(this.config.title)&&(e+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach(function(t){t.setAttribute("aria-label",e)}),this.isEmbed){var t=$w.call(this,"iframe");if(!kw.element(t))return;var n=kw.empty(this.config.title)?"video":this.config.title,r=Tk("frameTitle",this.config);t.setAttribute("title",r.replace("{title}",n))}},togglePoster:function(e){Hw(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(e){var t=this;return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]||!this.poster?(this.media.setAttribute("poster",e),function(){var e=this;return new Promise(function(t){return e.ready?setTimeout(t,0):Aw.call(e,e.elements.container,"ready",t)}).then(function(){})}.call(this).then(function(){return Xk(e)}).catch(function(n){throw e===t.poster&&Jk.togglePoster.call(t,!1),n}).then(function(){if(e!==t.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(function(){return Object.assign(t.elements.poster.style,{backgroundImage:"url('".concat(e,"')"),backgroundSize:""}),Jk.togglePoster.call(t,!0),e})):Promise.reject(new Error("Poster already set"))},checkPlaying:function(e){var t=this;Hw(this.elements.container,this.config.classNames.playing,this.playing),Hw(this.elements.container,this.config.classNames.paused,this.paused),Hw(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(function(e){Object.assign(e,{pressed:t.playing})}),kw.event(e)&&"timeupdate"===e.type||Jk.toggleControls.call(this)},checkLoading:function(e){var t=this;this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(function(){Hw(t.elements.container,t.config.classNames.loading,t.loading),Jk.toggleControls.call(t)},this.loading?250:0)},toggleControls:function(e){var t=this.elements.controls;if(t&&this.config.hideControls){var n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||n))}}},Qk=function(){function e(t){Bo(this,e),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return Ho(e,[{key:"handleKey",value:function(e){var t=this.player,n=t.elements,r=e.keyCode?e.keyCode:e.which,i="keydown"===e.type,o=i&&r===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&kw.number(r)){if(i){var a=document.activeElement;if(kw.element(a)){var s=t.config.selectors.editable;if(a!==n.inputs.seek&&zw(a,s))return;if(32===e.which&&zw(a,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(r)&&(e.preventDefault(),e.stopPropagation()),r){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:o||(t.currentTime=t.duration/10*(r-48));break;case 32:case 75:o||t.togglePlay();break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:o||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:o||t.toggleCaptions();break;case 76:t.loop=!t.loop}27===r&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=r}else this.lastKey=null}}},{key:"toggleMenu",value:function(e){Mk.toggleMenu.call(this.player,e)}},{key:"firstTouch",value:function(){var e=this.player,t=e.elements;e.touch=!0,Hw(t.container,e.config.classNames.isTouch,!0)}},{key:"setTabFocus",value:function(e){var t=this.player,n=t.elements;if(clearTimeout(this.focusTimer),"keydown"!==e.type||9===e.which){"keydown"===e.type&&(this.lastKeyDown=e.timeStamp);var r,i=e.timeStamp-this.lastKeyDown<=20;if("focus"!==e.type||i)r=t.config.classNames.tabFocus,Hw(Ww.call(t,".".concat(r)),r,!1),this.focusTimer=setTimeout(function(){var e=document.activeElement;n.container.contains(e)&&Hw(document.activeElement,t.config.classNames.tabFocus,!0)},10)}}},{key:"global",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.player;t.config.keyboard.global&&xw.call(t,window,"keydown keyup",this.handleKey,e,!1),xw.call(t,document.body,"click",this.toggleMenu,e),Pw.call(t,document.body,"touchstart",this.firstTouch),xw.call(t,document.body,"keydown focus blur",this.setTabFocus,e,!1,!0)}},{key:"container",value:function(){var e=this.player,t=e.config,n=e.elements,r=e.timers;!t.keyboard.global&&t.keyboard.focused&&Aw.call(e,n.container,"keydown keyup",this.handleKey,!1),Aw.call(e,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",function(t){var i=n.controls;i&&"enterfullscreen"===t.type&&(i.pressed=!1,i.hover=!1);var o=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(Jk.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout(function(){return Jk.toggleControls.call(e,!1)},o)});var i=function(t){if(!t)return ek.call(e);var r=n.container.getBoundingClientRect(),i=r.width,o=r.height;return ek.call(e,"".concat(i,":").concat(o))},o=function(){clearTimeout(r.resized),r.resized=setTimeout(i,50)};Aw.call(e,n.container,"enterfullscreen exitfullscreen",function(t){var r=e.fullscreen,a=r.target,s=r.usingNative;if(a===n.container){var c="enterfullscreen"===t.type,l=i(c);l.padding;!function(t,n,r){if(e.isVimeo){var i=e.elements.wrapper.firstChild,o=zo(t,2)[1],a=zo(Zw.call(e),2),s=a[0],c=a[1];i.style.maxWidth=r?"".concat(o/c*s,"px"):null,i.style.margin=r?"0 auto":null}}(l.ratio,0,c),s||(c?Aw.call(e,window,"resize",o):Ow.call(e,window,"resize",o))}})}},{key:"media",value:function(){var e=this,t=this.player,n=t.elements;if(Aw.call(t,t.media,"timeupdate seeking seeked",function(e){return Mk.timeUpdate.call(t,e)}),Aw.call(t,t.media,"durationchange loadeddata loadedmetadata",function(e){return Mk.durationUpdate.call(t,e)}),Aw.call(t,t.media,"canplay loadeddata",function(){qw(n.volume,!t.hasAudio),qw(n.buttons.mute,!t.hasAudio)}),Aw.call(t,t.media,"ended",function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&t.restart()}),Aw.call(t,t.media,"progress playing seeking seeked",function(e){return Mk.updateProgress.call(t,e)}),Aw.call(t,t.media,"volumechange",function(e){return Mk.updateVolume.call(t,e)}),Aw.call(t,t.media,"playing play pause ended emptied timeupdate",function(e){return Jk.checkPlaying.call(t,e)}),Aw.call(t,t.media,"waiting canplay seeked playing",function(e){return Jk.checkLoading.call(t,e)}),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var r=$w.call(t,".".concat(t.config.classNames.video));if(!kw.element(r))return;Aw.call(t,n.container,"click",function(i){([n.container,r].includes(i.target)||r.contains(i.target))&&(t.touch&&t.config.hideControls||(t.ended?(e.proxy(i,t.restart,"restart"),e.proxy(i,t.play,"play")):e.proxy(i,t.togglePlay,"play")))})}t.supported.ui&&t.config.disableContextMenu&&Aw.call(t,n.wrapper,"contextmenu",function(e){e.preventDefault()},!1),Aw.call(t,t.media,"volumechange",function(){t.storage.set({volume:t.volume,muted:t.muted})}),Aw.call(t,t.media,"ratechange",function(){Mk.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),Aw.call(t,t.media,"qualitychange",function(e){Mk.updateSetting.call(t,"quality",null,e.detail.quality)}),Aw.call(t,t.media,"ready qualitychange",function(){Mk.setDownloadUrl.call(t)});var i=t.config.events.concat(["keyup","keydown"]).join(" ");Aw.call(t,t.media,i,function(e){var r=e.detail,i=void 0===r?{}:r;"error"===e.type&&(i=t.media.error),Cw.call(t,n.container,e.type,!0,i)})}},{key:"proxy",value:function(e,t,n){var r=this.player,i=r.config.listeners[n],o=!0;kw.function(i)&&(o=i.call(r,e)),o&&kw.function(t)&&t.call(r,e)}},{key:"bind",value:function(e,t,n,r){var i=this,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.player,s=a.config.listeners[r],c=kw.function(s);Aw.call(a,e,t,function(e){return i.proxy(e,n,r)},o&&!c)}},{key:"controls",value:function(){var e=this,t=this.player,n=t.elements,r=_w.isIE?"change":"input";if(n.buttons.play&&Array.from(n.buttons.play).forEach(function(n){e.bind(n,"click",t.togglePlay,"play")}),this.bind(n.buttons.restart,"click",t.restart,"restart"),this.bind(n.buttons.rewind,"click",t.rewind,"rewind"),this.bind(n.buttons.fastForward,"click",t.forward,"fastForward"),this.bind(n.buttons.mute,"click",function(){t.muted=!t.muted},"mute"),this.bind(n.buttons.captions,"click",function(){return t.toggleCaptions()}),this.bind(n.buttons.download,"click",function(){Cw.call(t,t.media,"download")},"download"),this.bind(n.buttons.fullscreen,"click",function(){t.fullscreen.toggle()},"fullscreen"),this.bind(n.buttons.pip,"click",function(){t.pip="toggle"},"pip"),this.bind(n.buttons.airplay,"click",t.airplay,"airplay"),this.bind(n.buttons.settings,"click",function(e){e.stopPropagation(),Mk.toggleMenu.call(t,e)}),this.bind(n.buttons.settings,"keyup",function(e){var n=e.which;[13,32].includes(n)&&(13!==n?(e.preventDefault(),e.stopPropagation(),Mk.toggleMenu.call(t,e)):Mk.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(n.settings.menu,"keydown",function(e){27===e.which&&Mk.toggleMenu.call(t,e)}),this.bind(n.inputs.seek,"mousedown mousemove",function(e){var t=n.progress.getBoundingClientRect(),r=100/t.width*(e.pageX-t.left);e.currentTarget.setAttribute("seek-value",r)}),this.bind(n.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",function(e){var n=e.currentTarget,r=e.keyCode?e.keyCode:e.which;if(!kw.keyboardEvent(e)||39===r||37===r){t.lastSeekTime=Date.now();var i=n.hasAttribute("play-on-seeked"),o=["mouseup","touchend","keyup"].includes(e.type);i&&o?(n.removeAttribute("play-on-seeked"),t.play()):!o&&t.playing&&(n.setAttribute("play-on-seeked",""),t.pause())}}),_w.isIos){var i=Ww.call(t,'input[type="range"]');Array.from(i).forEach(function(t){return e.bind(t,r,function(e){return Sw(e.target)})})}this.bind(n.inputs.seek,r,function(e){var n=e.currentTarget,r=n.getAttribute("seek-value");kw.empty(r)&&(r=n.value),n.removeAttribute("seek-value"),t.currentTime=r/n.max*t.duration},"seek"),this.bind(n.progress,"mouseenter mouseleave mousemove",function(e){return Mk.updateSeekTooltip.call(t,e)}),this.bind(n.progress,"mousemove touchmove",function(e){var n=t.previewThumbnails;n&&n.loaded&&n.startMove(e)}),this.bind(n.progress,"mouseleave click",function(){var e=t.previewThumbnails;e&&e.loaded&&e.endMove(!1,!0)}),this.bind(n.progress,"mousedown touchstart",function(e){var n=t.previewThumbnails;n&&n.loaded&&n.startScrubbing(e)}),this.bind(n.progress,"mouseup touchend",function(e){var n=t.previewThumbnails;n&&n.loaded&&n.endScrubbing(e)}),_w.isWebkit&&Array.from(Ww.call(t,'input[type="range"]')).forEach(function(n){e.bind(n,"input",function(e){return Mk.updateRangeFill.call(t,e.target)})}),t.config.toggleInvert&&!kw.element(n.display.duration)&&this.bind(n.display.currentTime,"click",function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,Mk.timeUpdate.call(t))}),this.bind(n.inputs.volume,r,function(e){t.volume=e.target.value},"volume"),this.bind(n.controls,"mouseenter mouseleave",function(e){n.controls.hover=!t.touch&&"mouseenter"===e.type}),this.bind(n.controls,"mousedown mouseup touchstart touchend touchcancel",function(e){n.controls.pressed=["mousedown","touchstart"].includes(e.type)}),this.bind(n.controls,"focusin",function(){var r=t.config,i=t.timers;Hw(n.controls,r.classNames.noTransition,!0),Jk.toggleControls.call(t,!0),setTimeout(function(){Hw(n.controls,r.classNames.noTransition,!1)},0);var o=e.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout(function(){return Jk.toggleControls.call(t,!1)},o)}),this.bind(n.inputs.volume,"wheel",function(e){var n=e.webkitDirectionInvertedFromDevice,r=zo([e.deltaX,-e.deltaY].map(function(e){return n?-e:e}),2),i=r[0],o=r[1],a=Math.sign(Math.abs(i)>Math.abs(o)?i:o);t.increaseVolume(a/50);var s=t.media.volume;(1===a&&s<1||-1===a&&s>0)&&e.preventDefault()},"volume",!1)}}]),e}(),Zk=xh.f,eE=Function.prototype,tE=eE.toString,nE=/^\s*function ([^ (]*)/;!rh||"name"in eE||Zk(eE,"name",{configurable:!0,get:function(){try{return tE.call(this).match(nE)[1]}catch(e){return""}}});var rE=Math.max,iE=Math.min,oE=Cd("splice");bd({target:"Array",proto:!0,forced:!oE},{splice:function(e,t){var n,r,i,o,a,s,c=kd(this),l=Jh(c.length),u=ed(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-u):(n=f-2,r=iE(rE(Gh(t),0),l-u)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=Od(c,r),o=0;o<r;o++)(a=u+o)in c&&Ed(i,o,c[a]);if(i.length=r,n<r){for(o=u;o<l-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:delete c[s];for(o=l;o>l-r+n;o--)delete c[o-1]}else if(n>r)for(o=l-r;o>u;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+u]=arguments[o+2];return c.length=l-r+n,i}});var aE=t(function(e,t){e.exports=function(){var e=function(){},t={},n={},r={};function i(e,t){if(e){var i=r[e];if(n[e]=t,i)for(;i.length;)i[0](e,t),i.splice(0,1)}}function o(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function a(t,n,r,i){var o,s,c=document,l=r.async,u=(r.numRetries||0)+1,f=r.before||e,h=t.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(t)?((s=c.createElement("link")).rel="stylesheet",s.href=h,(o="hideFocus"in s)&&s.relList&&(o=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg)$)/.test(t)?(s=c.createElement("img")).src=h:((s=c.createElement("script")).src=t,s.async=void 0===l||l),s.onload=s.onerror=s.onbeforeload=function(e){var c=e.type[0];if(o)try{s.sheet.cssText.length||(c="e")}catch(e){18!=e.code&&(c="e")}if("e"==c){if((i+=1)<u)return a(t,n,r,i)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";n(t,c,e.defaultPrevented)},!1!==f(t,s)&&c.head.appendChild(s)}function s(e,n,r){var s,c;if(n&&n.trim&&(s=n),c=(s?r:n)||{},s){if(s in t)throw"LoadJS";t[s]=!0}function l(t,n){!function(e,t,n){var r,i,o=(e=e.push?e:[e]).length,s=o,c=[];for(r=function(e,n,r){if("e"==n&&c.push(e),"b"==n){if(!r)return;c.push(e)}--o||t(c)},i=0;i<s;i++)a(e[i],r,n)}(e,function(e){o(c,e),t&&o({success:t,error:n},e),i(s,e)},c)}if(c.returnPromise)return new Promise(l);l()}return s.ready=function(e,t){return function(e,t){e=e.push?e:[e];var i,o,a,s=[],c=e.length,l=c;for(i=function(e,n){n.length&&s.push(e),--l||t(s)};c--;)o=e[c],(a=n[o])?i(o,a):(r[o]=r[o]||[]).push(i)}(e,function(e){o(t,e)}),s},s.done=function(e){i(e,[])},s.reset=function(){t={},n={},r={}},s.isDefined=function(e){return e in t},s}()});function sE(e){return new Promise(function(t,n){aE(e,{success:t,error:n})})}function cE(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Cw.call(this,this.media,e?"play":"pause"))}var lE={setup:function(){var e=this;Hw(this.elements.wrapper,this.config.classNames.embed,!0),ek.call(this),kw.object(window.Vimeo)?lE.ready.call(this):sE(this.config.urls.vimeo.sdk).then(function(){lE.ready.call(e)}).catch(function(t){e.debug.warn("Vimeo SDK (player.js) failed to load",t)})},ready:function(){var e=this,t=this,n=t.config.vimeo,r=Uk(Iw({},{loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},n)),i=t.media.getAttribute("src");kw.empty(i)&&(i=t.media.getAttribute(t.config.attributes.embed.id));var o,a=(o=i,kw.empty(o)?null:kw.number(Number(o))?o:o.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:o),s=Mw("iframe"),c=bk(t.config.urls.vimeo.iframe,a,r);s.setAttribute("src",c),s.setAttribute("allowfullscreen",""),s.setAttribute("allowtransparency",""),s.setAttribute("allow","autoplay");var l=Mw("div",{poster:t.poster,class:t.config.classNames.embedContainer});l.appendChild(s),t.media=Dw(l,t.media),Ak(bk(t.config.urls.vimeo.api,a),"json").then(function(e){if(!kw.empty(e)){var n=new URL(e[0].thumbnail_large);n.pathname="".concat(n.pathname.split("_")[0],".jpg"),Jk.setPoster.call(t,n.href).catch(function(){})}}),t.embed=new window.Vimeo.Player(s,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=function(){return cE.call(t,!0),t.embed.play()},t.media.pause=function(){return cE.call(t,!1),t.embed.pause()},t.media.stop=function(){t.pause(),t.currentTime=0};var u=t.media.currentTime;Object.defineProperty(t.media,"currentTime",{get:function(){return u},set:function(e){var n=t.embed,r=t.media,i=t.paused,o=t.volume,a=i&&!n.hasPlayed;r.seeking=!0,Cw.call(t,r,"seeking"),Promise.resolve(a&&n.setVolume(0)).then(function(){return n.setCurrentTime(e)}).then(function(){return a&&n.pause()}).then(function(){return a&&n.setVolume(o)}).catch(function(){})}});var f=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return f},set:function(e){t.embed.setPlaybackRate(e).then(function(){f=e,Cw.call(t,t.media,"ratechange")}).catch(function(e){"Error"===e.name&&Mk.setSpeedMenu.call(t,[])})}});var h=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return h},set:function(e){t.embed.setVolume(e).then(function(){h=e,Cw.call(t,t.media,"volumechange")})}});var d=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return d},set:function(e){var n=!!kw.boolean(e)&&e;t.embed.setVolume(n?0:t.config.volume).then(function(){d=n,Cw.call(t,t.media,"volumechange")})}});var p,g=t.config.loop;Object.defineProperty(t.media,"loop",{get:function(){return g},set:function(e){var n=kw.boolean(e)?e:t.config.loop.active;t.embed.setLoop(n).then(function(){g=n})}}),t.embed.getVideoUrl().then(function(e){p=e,Mk.setDownloadUrl.call(t)}).catch(function(t){e.debug.warn(t)}),Object.defineProperty(t.media,"currentSrc",{get:function(){return p}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then(function(n){var r=zo(n,2),i=r[0],o=r[1];t.embed.ratio=[i,o],ek.call(e)}),t.embed.setAutopause(t.config.autopause).then(function(e){t.config.autopause=e}),t.embed.getVideoTitle().then(function(n){t.config.title=n,Jk.setTitle.call(e)}),t.embed.getCurrentTime().then(function(e){u=e,Cw.call(t,t.media,"timeupdate")}),t.embed.getDuration().then(function(e){t.media.duration=e,Cw.call(t,t.media,"durationchange")}),t.embed.getTextTracks().then(function(e){t.media.textTracks=e,Fk.setup.call(t)}),t.embed.on("cuechange",function(e){var n=e.cues,r=(void 0===n?[]:n).map(function(e){return function(e){var t=document.createDocumentFragment(),n=document.createElement("div");return t.appendChild(n),n.innerHTML=e,t.firstChild.innerText}(e.text)});Fk.updateCues.call(t,r)}),t.embed.on("loaded",function(){(t.embed.getPaused().then(function(e){cE.call(t,!e),e||Cw.call(t,t.media,"playing")}),kw.element(t.embed.element)&&t.supported.ui)&&t.embed.element.setAttribute("tabindex",-1)}),t.embed.on("play",function(){cE.call(t,!0),Cw.call(t,t.media,"playing")}),t.embed.on("pause",function(){cE.call(t,!1)}),t.embed.on("timeupdate",function(e){t.media.seeking=!1,u=e.seconds,Cw.call(t,t.media,"timeupdate")}),t.embed.on("progress",function(e){t.media.buffered=e.percent,Cw.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&Cw.call(t,t.media,"canplaythrough"),t.embed.getDuration().then(function(e){e!==t.media.duration&&(t.media.duration=e,Cw.call(t,t.media,"durationchange"))})}),t.embed.on("seeked",function(){t.media.seeking=!1,Cw.call(t,t.media,"seeked")}),t.embed.on("ended",function(){t.media.paused=!0,Cw.call(t,t.media,"ended")}),t.embed.on("error",function(e){t.media.error=e,Cw.call(t,t.media,"error")}),setTimeout(function(){return Jk.build.call(t)},0)}};function uE(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,Cw.call(this,this.media,e?"play":"pause"))}function fE(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var hE={setup:function(){var e=this;if(Hw(this.elements.wrapper,this.config.classNames.embed,!0),kw.object(window.YT)&&kw.function(window.YT.Player))hE.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){kw.function(t)&&t(),hE.ready.call(e)},sE(this.config.urls.youtube.sdk).catch(function(t){e.debug.warn("YouTube API failed to load",t)})}},getTitle:function(e){var t=this;Ak(bk(this.config.urls.youtube.api,e)).then(function(e){if(kw.object(e)){var n=e.title,r=e.height,i=e.width;t.config.title=n,Jk.setTitle.call(t),t.embed.ratio=[i,r]}ek.call(t)}).catch(function(){ek.call(t)})},ready:function(){var e=this,t=e.media&&e.media.getAttribute("id");if(kw.empty(t)||!t.startsWith("youtube-")){var n=e.media.getAttribute("src");kw.empty(n)&&(n=e.media.getAttribute(this.config.attributes.embed.id));var r,i,o=(r=n,kw.empty(r)?null:r.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:r),a=(i=e.provider,"".concat(i,"-").concat(Math.floor(1e4*Math.random()))),s=Mw("div",{id:a,poster:e.poster});e.media=Dw(s,e.media);var c=function(e){return"https://i.ytimg.com/vi/".concat(o,"/").concat(e,"default.jpg")};Xk(c("maxres"),121).catch(function(){return Xk(c("sd"),121)}).catch(function(){return Xk(c("hq"))}).then(function(t){return Jk.setPoster.call(e,t.src)}).then(function(t){t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(function(){});var l=e.config.youtube;e.embed=new window.YT.Player(a,{videoId:o,host:fE(l),playerVars:Iw({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},l),events:{onError:function(t){if(!e.media.error){var n=t.data,r={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[n]||"An unknown error occured";e.media.error={code:n,message:r},Cw.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var n=t.target;e.media.playbackRate=n.getPlaybackRate(),Cw.call(e,e.media,"ratechange")},onReady:function(t){if(!kw.function(e.media.play)){var n=t.target;hE.getTitle.call(e,o),e.media.play=function(){uE.call(e,!0),n.playVideo()},e.media.pause=function(){uE.call(e,!1),n.pauseVideo()},e.media.stop=function(){n.stopVideo()},e.media.duration=n.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(n.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,Cw.call(e,e.media,"seeking"),n.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return n.getPlaybackRate()},set:function(e){n.setPlaybackRate(e)}});var r=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return r},set:function(t){r=t,n.setVolume(100*r),Cw.call(e,e.media,"volumechange")}});var i=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return i},set:function(t){var r=kw.boolean(t)?t:i;i=r,n[r?"mute":"unMute"](),Cw.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return n.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}}),e.options.speed=n.getAvailablePlaybackRates(),e.supported.ui&&e.media.setAttribute("tabindex",-1),Cw.call(e,e.media,"timeupdate"),Cw.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(function(){e.media.buffered=n.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&Cw.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),Cw.call(e,e.media,"canplaythrough"))},200),setTimeout(function(){return Jk.build.call(e)},50)}},onStateChange:function(t){var n=t.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(t.data)&&(e.media.seeking=!1,Cw.call(e,e.media,"seeked")),t.data){case-1:Cw.call(e,e.media,"timeupdate"),e.media.buffered=n.getVideoLoadedFraction(),Cw.call(e,e.media,"progress");break;case 0:uE.call(e,!1),e.media.loop?(n.stopVideo(),n.playVideo()):Cw.call(e,e.media,"ended");break;case 1:e.config.autoplay||!e.media.paused||e.embed.hasPlayed?(uE.call(e,!0),Cw.call(e,e.media,"playing"),e.timers.playing=setInterval(function(){Cw.call(e,e.media,"timeupdate")},50),e.media.duration!==n.getDuration()&&(e.media.duration=n.getDuration(),Cw.call(e,e.media,"durationchange"))):e.media.pause();break;case 2:e.muted||e.embed.unMute(),uE.call(e,!1)}Cw.call(e,e.elements.container,"statechange",!1,{code:t.data})}}})}}},dE={setup:function(){this.media?(Hw(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Hw(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Hw(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=Mw("div",{class:this.config.classNames.video}),jw(this.media,this.elements.wrapper),this.elements.poster=Mw("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?tk.extend.call(this):this.isYouTube?hE.setup.call(this):this.isVimeo&&lE.setup.call(this)):this.debug.warn("No media element found!")}},pE=function(){function e(t){var n=this;Bo(this,e),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise(function(e,t){n.on("loaded",e),n.on("error",t)}),this.load()}return Ho(e,[{key:"load",value:function(){var e=this;this.enabled&&(kw.object(window.google)&&kw.object(window.google.ima)?this.ready():sE(this.player.config.urls.googleIMA.sdk).then(function(){e.ready()}).catch(function(){e.trigger("error",new Error("Google IMA SDK failed to load"))}))}},{key:"ready",value:function(){var e,t=this;this.enabled||((e=this).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(function(){t.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}},{key:"setupIMA",value:function(){this.elements.container=Mw("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.requestAds()}},{key:"requestAds",value:function(){var e=this,t=this.player.elements.container;try{this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(t){return e.onAdsManagerLoaded(t)},!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(t){return e.onAdError(t)},!1);var n=new google.ima.AdsRequest;n.adTagUrl=this.tagUrl,n.linearAdSlotWidth=t.offsetWidth,n.linearAdSlotHeight=t.offsetHeight,n.nonLinearAdSlotWidth=t.offsetWidth,n.nonLinearAdSlotHeight=t.offsetHeight,n.forceNonLinearFullSlot=!1,n.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(n)}catch(e){this.onAdError(e)}}},{key:"pollCountdown",value:function(){var e=this;if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0]))return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(function(){var t=Rk(Math.max(e.manager.getRemainingTime(),0)),n="".concat(Tk("advertisement",e.player.config)," - ").concat(t);e.elements.container.setAttribute("data-badge-text",n)},100)}},{key:"onAdsManagerLoaded",value:function(e){var t=this;if(this.enabled){var n=new google.ima.AdsRenderingSettings;n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.enablePreloading=!0,this.manager=e.getAdsManager(this.player,n),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,function(e){return t.onAdError(e)}),Object.keys(google.ima.AdEvent.Type).forEach(function(e){t.manager.addEventListener(google.ima.AdEvent.Type[e],function(e){return t.onAdEvent(e)})}),this.trigger("loaded")}}},{key:"addCuePoints",value:function(){var e=this;kw.empty(this.cuePoints)||this.cuePoints.forEach(function(t){if(0!==t&&-1!==t&&t<e.player.duration){var n=e.player.elements.progress;if(kw.element(n)){var r=100/e.player.duration*t,i=Mw("span",{class:e.player.config.classNames.cues});i.style.left="".concat(r.toString(),"%"),n.appendChild(i)}}})}},{key:"onAdEvent",value:function(e){var t=this,n=this.player.elements.container,r=e.getAd(),i=e.getAdData();switch(function(e){Cw.call(t.player,t.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),r.isLinear()||(r.width=n.offsetWidth,r.height=n.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.loadAds();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:i.adError&&this.player.debug.warn("Non-fatal ad error: ".concat(i.adError.getMessage()))}}},{key:"onAdError",value:function(e){this.cancel(),this.player.debug.warn("Ads error",e)}},{key:"listeners",value:function(){var e,t=this,n=this.player.elements.container;this.player.on("canplay",function(){t.addCuePoints()}),this.player.on("ended",function(){t.loader.contentComplete()}),this.player.on("timeupdate",function(){e=t.player.currentTime}),this.player.on("seeked",function(){var n=t.player.currentTime;kw.empty(t.cuePoints)||t.cuePoints.forEach(function(r,i){e<r&&r<n&&(t.manager.discardAdBreak(),t.cuePoints.splice(i,1))})}),window.addEventListener("resize",function(){t.manager&&t.manager.resize(n.offsetWidth,n.offsetHeight,google.ima.ViewMode.NORMAL)})}},{key:"play",value:function(){var e=this,t=this.player.elements.container;this.managerPromise||this.resumeContent(),this.managerPromise.then(function(){e.manager.setVolume(e.player.volume),e.elements.displayContainer.initialize();try{e.initialized||(e.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),e.manager.start()),e.initialized=!0}catch(t){e.onAdError(t)}}).catch(function(){})}},{key:"resumeContent",value:function(){this.elements.container.style.zIndex="",this.playing=!1,this.player.media.play()}},{key:"pauseContent",value:function(){this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}},{key:"cancel",value:function(){this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}},{key:"loadAds",value:function(){var e=this;this.managerPromise.then(function(){e.manager&&e.manager.destroy(),e.managerPromise=new Promise(function(t){e.on("loaded",t),e.player.debug.log(e.manager)}),e.requestAds()}).catch(function(){})}},{key:"trigger",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=this.events[e];kw.array(o)&&o.forEach(function(e){kw.function(e)&&e.apply(t,r)})}},{key:"on",value:function(e,t){return kw.array(this.events[e])||(this.events[e]=[]),this.events[e].push(t),this}},{key:"startSafetyTimer",value:function(e,t){var n=this;this.player.debug.log("Safety timer invoked from: ".concat(t)),this.safetyTimer=setTimeout(function(){n.cancel(),n.clearSafetyTimer("startSafetyTimer()")},e)}},{key:"clearSafetyTimer",value:function(e){kw.nullOrUndefined(this.safetyTimer)||(this.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(this.safetyTimer),this.safetyTimer=null)}},{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!kw.empty(e.publisherId)||kw.url(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;if(kw.url(e.tagUrl))return e.tagUrl;var t={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:this.publisherId};return"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(Uk(t))}}]),e}(),gE=Ud(6),mE=!0;"findIndex"in[]&&Array(1).findIndex(function(){mE=!1}),bd({target:"Array",proto:!0,forced:mE},{findIndex:function(e){return gE(this,e,arguments.length>1?arguments[1]:void 0)}}),Xd("findIndex");var vE=function(){function e(t){Bo(this,e),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return Ho(e,[{key:"load",value:function(){var e=this;this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(function(){e.enabled&&(e.render(),e.determineContainerAutoSizing(),e.loaded=!0)})}},{key:"getThumbnails",value:function(){var e=this;return new Promise(function(t){var n=e.player.config.previewThumbnails.src;if(kw.empty(n))throw new Error("Missing previewThumbnails.src config attribute");var r=(kw.string(n)?[n]:n).map(function(t){return e.getThumbnail(t)});Promise.all(r).then(function(){e.thumbnails.sort(function(e,t){return e.height-t.height}),e.player.debug.log("Preview thumbnails",e.thumbnails),t()})})}},{key:"getThumbnail",value:function(e){var t=this;return new Promise(function(n){Ak(e).then(function(r){var i,o,a={frames:(i=r,o=[],i.split(/\r\n\r\n|\n\n|\r\r/).forEach(function(e){var t={};e.split(/\r\n|\n|\r/).forEach(function(e){if(kw.number(t.startTime)){if(!kw.empty(e.trim())&&kw.empty(t.text)){var n=e.trim().split("#xywh="),r=zo(n,1);if(t.text=r[0],n[1]){var i=zo(n[1].split(","),4);t.x=i[0],t.y=i[1],t.w=i[2],t.h=i[3]}}}else{var o=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);o&&(t.startTime=60*Number(o[1]||0)*60+60*Number(o[2])+Number(o[3])+Number("0.".concat(o[4])),t.endTime=60*Number(o[6]||0)*60+60*Number(o[7])+Number(o[8])+Number("0.".concat(o[9])))}}),t.text&&o.push(t)}),o),height:null,urlPrefix:""};a.frames[0].text.startsWith("/")||a.frames[0].text.startsWith("http://")||a.frames[0].text.startsWith("https://")||(a.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var s=new Image;s.onload=function(){a.height=s.naturalHeight,a.width=s.naturalWidth,t.thumbnails.push(a),n()},s.src=a.urlPrefix+a.frames[0].text})})}},{key:"startMove",value:function(e){if(this.loaded&&kw.event(e)&&["touchmove","mousemove"].includes(e.type)&&this.player.media.duration){if("touchmove"===e.type)this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var t=this.player.elements.progress.getBoundingClientRect(),n=100/t.width*(e.pageX-t.left);this.seekTime=this.player.media.duration*(n/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=e.pageX,this.elements.thumb.time.innerText=Rk(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(e){!1!==e.button&&0!==e.button||(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}},{key:"endScrubbing",value:function(){var e=this;this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):Pw.call(this.player,this.player.media,"timeupdate",function(){e.mouseDown||e.toggleScrubbingContainer(!1)})}},{key:"listeners",value:function(){var e=this;this.player.on("play",function(){e.toggleThumbContainer(!1,!0)}),this.player.on("seeked",function(){e.toggleThumbContainer(!1)}),this.player.on("timeupdate",function(){e.lastTime=e.player.media.currentTime})}},{key:"render",value:function(){this.elements.thumb.container=Mw("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=Mw("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var e=Mw("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=Mw("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(e),kw.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=Mw("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}},{key:"showImageAtCurrentTime",value:function(){var e=this;this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();var t=this.thumbnails[0].frames.findIndex(function(t){return e.seekTime>=t.startTime&&e.seekTime<=t.endTime}),n=t>=0,r=0;this.mouseDown||this.toggleThumbContainer(n),n&&(this.thumbnails.forEach(function(n,i){e.loadedImages.includes(n.frames[t].text)&&(r=i)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(r)))}},{key:"loadImage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.showingThumb,r=this.thumbnails[t],i=r.urlPrefix,o=r.frames[n],a=r.frames[n].text,s=i+a;if(this.currentImageElement&&this.currentImageElement.dataset.filename===a)this.showImage(this.currentImageElement,o,t,n,a,!1),this.currentImageElement.dataset.index=n,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);var c=new Image;c.src=s,c.dataset.index=n,c.dataset.filename=a,this.showingThumbFilename=a,this.player.debug.log("Loading image: ".concat(s)),c.onload=function(){return e.showImage(c,o,t,n,a,!0)},this.loadingImage=c,this.removeOldImages(c)}}},{key:"showImage",value:function(e,t,n,r,i){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];this.player.debug.log("Showing thumb: ".concat(i,". num: ").concat(r,". qual: ").concat(n,". newimg: ").concat(o)),this.setImageSizeAndOffset(e,t),o&&(this.currentImageContainer.appendChild(e),this.currentImageElement=e,this.loadedImages.includes(i)||this.loadedImages.push(i)),this.preloadNearby(r,!0).then(this.preloadNearby(r,!1)).then(this.getHigherQuality(n,e,t,i))}},{key:"removeOldImages",value:function(e){var t=this;Array.from(this.currentImageContainer.children).forEach(function(n){if("img"===n.tagName.toLowerCase()){var r=t.usingSprites?500:1e3;if(n.dataset.index!==e.dataset.index&&!n.dataset.deleting){n.dataset.deleting=!0;var i=t.currentImageContainer;setTimeout(function(){i.removeChild(n),t.player.debug.log("Removing thumb: ".concat(n.dataset.filename))},r)}}})}},{key:"preloadNearby",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise(function(r){setTimeout(function(){var i=t.thumbnails[0].frames[e].text;if(t.showingThumbFilename===i){var o;o=n?t.thumbnails[0].frames.slice(e):t.thumbnails[0].frames.slice(0,e).reverse();var a=!1;o.forEach(function(e){var n=e.text;if(n!==i&&!t.loadedImages.includes(n)){a=!0,t.player.debug.log("Preloading thumb filename: ".concat(n));var o=t.thumbnails[0].urlPrefix+n,s=new Image;s.src=o,s.onload=function(){t.player.debug.log("Preloaded thumb filename: ".concat(n)),t.loadedImages.includes(n)||t.loadedImages.push(n),r()}}}),a||r()}},300)})}},{key:"getHigherQuality",value:function(e,t,n,r){var i=this;if(e<this.thumbnails.length-1){var o=t.naturalHeight;this.usingSprites&&(o=n.h),o<this.thumbContainerHeight&&setTimeout(function(){i.showingThumbFilename===r&&(i.player.debug.log("Showing higher quality thumb for: ".concat(r)),i.loadImage(e+1))},300)}}},{key:"toggleThumbContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,e),!e&&t&&(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"toggleScrubbingContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(t,e),e||(this.showingThumb=null,this.showingThumbFilename=null)}},{key:"determineContainerAutoSizing",value:function(){this.elements.thumb.imageContainer.clientHeight>20&&(this.sizeSpecifiedInCSS=!0)}},{key:"setThumbContainerSizeAndPos",value:function(){if(!this.sizeSpecifiedInCSS){var e=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height="".concat(this.thumbContainerHeight,"px"),this.elements.thumb.imageContainer.style.width="".concat(e,"px")}this.setThumbContainerPos()}},{key:"setThumbContainerPos",value:function(){var e=this.player.elements.progress.getBoundingClientRect(),t=this.player.elements.container.getBoundingClientRect(),n=this.elements.thumb.container,r=t.left-e.left+10,i=t.right-e.left-n.clientWidth-10,o=this.mousePosX-e.left-n.clientWidth/2;o<r&&(o=r),o>i&&(o=i),n.style.left="".concat(o,"px")}},{key:"setScrubbingContainerSize",value:function(){this.elements.scrubbing.container.style.width="".concat(this.player.media.clientWidth,"px"),this.elements.scrubbing.container.style.height="".concat(this.player.media.clientWidth/this.thumbAspectRatio,"px")}},{key:"setImageSizeAndOffset",value:function(e,t){if(this.usingSprites){var n=this.thumbContainerHeight/t.h;e.style.height="".concat(Math.floor(e.naturalHeight*n),"px"),e.style.width="".concat(Math.floor(e.naturalWidth*n),"px"),e.style.left="-".concat(t.x*n,"px"),e.style.top="-".concat(t.y*n,"px")}}},{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?Math.floor(this.player.media.clientWidth/this.thumbAspectRatio):Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}]),e}(),yE={insertElements:function(e,t){var n=this;kw.string(t)?Nw(e,this.media,{src:t}):kw.array(t)&&t.forEach(function(t){Nw(e,n.media,t)})},change:function(e){var t=this;Lw(e,"sources.length")?(tk.cancelRequests.call(this),this.destroy.call(this,function(){t.options.quality=[],Uw(t.media),t.media=null,kw.element(t.elements.container)&&t.elements.container.removeAttribute("class");var n=e.sources,r=e.type,i=zo(n,1)[0],o=i.provider,a=void 0===o?Hk.html5:o,s=i.src,c="html5"===a?r:"div",l="html5"===a?{}:{src:s};Object.assign(t,{provider:a,type:r,supported:Xw.check(r,a,t.config.playsinline),media:Mw(c,l)}),t.elements.container.appendChild(t.media),kw.boolean(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),kw.empty(e.poster)||(t.poster=e.poster),t.config.loop.active&&t.media.setAttribute("loop",""),t.config.muted&&t.media.setAttribute("muted",""),t.config.playsinline&&t.media.setAttribute("playsinline","")),Jk.addStyleHook.call(t),t.isHTML5&&yE.insertElements.call(t,"source",n),t.config.title=e.title,dE.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&yE.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&Jk.build.call(t),t.isHTML5&&t.media.load(),t.previewThumbnails&&t.previewThumbnails.load(),t.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};var bE,wE=function(){function e(t,n){var r=this;if(Bo(this,e),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=Xw.touch,this.media=t,kw.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||kw.nodeList(this.media)||kw.array(this.media))&&(this.media=this.media[0]),this.config=Iw({},Dk,e.defaults,n||{},function(){try{return JSON.parse(r.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new Wk(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",Xw),!kw.nullOrUndefined(this.media)&&kw.element(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(Xw.check().api){var i=this.media.cloneNode(!0);i.autoplay=!1,this.elements.original=i;var o=this.media.tagName.toLowerCase(),a=null,s=null;switch(o){case"div":if(a=this.media.querySelector("iframe"),kw.element(a)){if(s=Nk(a.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?Hk.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?Hk.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",s.search.length){var c=["1","true"];c.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),c.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=c.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(kw.empty(this.provider)||!Object.keys(Hk).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Vk.video;break;case"video":case"audio":this.type=o,this.provider=Hk.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=Xw.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new Qk(this),this.storage=new xk(this),this.media.plyr=this,kw.element(this.elements.container)||(this.elements.container=Mw("div",{tabindex:0}),jw(this.media,this.elements.container)),Jk.addStyleHook.call(this),dE.setup.call(this),this.config.debug&&Aw.call(this,this.elements.container,this.config.events.join(" "),function(e){r.debug.log("event: ".concat(e.type))}),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Jk.build.call(this),this.listeners.container(),this.listeners.global(),this.fullscreen=new Yk(this),this.config.ads.enabled&&(this.ads=new pE(this)),this.isHTML5&&this.config.autoplay&&setTimeout(function(){return r.play()},10),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new vE(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return Ho(e,[{key:"play",value:function(){var e=this;return kw.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(function(){return e.ads.play()}).catch(function(){return e.media.play()}),this.media.play()):null}},{key:"pause",value:function(){this.playing&&kw.function(this.media.pause)&&this.media.pause()}},{key:"togglePlay",value:function(e){(kw.boolean(e)?e:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):kw.function(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(e){this.currentTime=this.currentTime-(kw.number(e)?e:this.config.seekTime)}},{key:"forward",value:function(e){this.currentTime=this.currentTime+(kw.number(e)?e:this.config.seekTime)}},{key:"increaseVolume",value:function(e){var t=this.media.muted?0:this.volume;this.volume=t+(kw.number(e)?e:0)}},{key:"decreaseVolume",value:function(e){this.increaseVolume(-e)}},{key:"toggleCaptions",value:function(e){Fk.toggle.call(this,e,!1)}},{key:"airplay",value:function(){Xw.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(e){if(this.supported.ui&&!this.isAudio){var t=Vw(this.elements.container,this.config.classNames.hideControls),n=void 0===e?void 0:!e,r=Hw(this.elements.container,this.config.classNames.hideControls,n);if(r&&this.config.controls.includes("settings")&&!kw.empty(this.config.settings)&&Mk.toggleMenu.call(this,!1),r!==t){var i=r?"controlshidden":"controlsshown";Cw.call(this,this.media,i)}return!r}return!1}},{key:"on",value:function(e,t){Aw.call(this,this.elements.container,e,t)}},{key:"once",value:function(e,t){Pw.call(this,this.elements.container,e,t)}},{key:"off",value:function(e,t){Ow(this.elements.container,e,t)}},{key:"destroy",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ready){var r=function(){document.body.style.overflow="",t.embed=null,n?(Object.keys(t.elements).length&&(Uw(t.elements.buttons.play),Uw(t.elements.captions),Uw(t.elements.controls),Uw(t.elements.wrapper),t.elements.buttons.play=null,t.elements.captions=null,t.elements.controls=null,t.elements.wrapper=null),kw.function(e)&&e()):(function(){this&&this.eventListeners&&(this.eventListeners.forEach(function(e){var t=e.element,n=e.type,r=e.callback,i=e.options;t.removeEventListener(n,r,i)}),this.eventListeners=[])}.call(t),Dw(t.elements.original,t.elements.container),Cw.call(t,t.elements.original,"destroyed",!0),kw.function(e)&&e.call(t.elements.original),t.ready=!1,setTimeout(function(){t.elements=null,t.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(Jk.toggleNativeControls.call(this,!0),r()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&kw.function(this.embed.destroy)&&this.embed.destroy(),r()):this.isVimeo&&(null!==this.embed&&this.embed.unload().then(r),setTimeout(r,200))}}},{key:"supports",value:function(e){return Xw.mime.call(this,e)}},{key:"isHTML5",get:function(){return this.provider===Hk.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===Hk.youtube}},{key:"isVimeo",get:function(){return this.provider===Hk.vimeo}},{key:"isVideo",get:function(){return this.type===Vk.video}},{key:"isAudio",get:function(){return this.type===Vk.audio}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",set:function(e){if(this.duration){var t=kw.number(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}},get:function(){return Number(this.media.currentTime)}},{key:"buffered",get:function(){var e=this.media.buffered;return kw.number(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var e=parseFloat(this.config.duration),t=(this.media||{}).duration,n=kw.number(t)&&t!==1/0?t:0;return e||n}},{key:"volume",set:function(e){var t=e;kw.string(t)&&(t=Number(t)),kw.number(t)||(t=this.storage.get("volume")),kw.number(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!kw.empty(e)&&this.muted&&t>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(e){var t=e;kw.boolean(t)||(t=this.storage.get("muted")),kw.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t},get:function(){return Boolean(this.media.muted)}},{key:"hasAudio",get:function(){return!this.isHTML5||(!!this.isAudio||(Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)))}},{key:"speed",set:function(e){var t=this,n=null;kw.number(e)&&(n=e),kw.number(n)||(n=this.storage.get("speed")),kw.number(n)||(n=this.config.speed.selected);var r=this.minimumSpeed,i=this.maximumSpeed;n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(e,t),n)}(n,r,i),this.config.speed.selected=n,setTimeout(function(){t.media.playbackRate=n},0)},get:function(){return Number(this.media.playbackRate)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,Wo(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,Wo(this.options.speed)):this.isVimeo?2:16}},{key:"quality",set:function(e){var t=this.config.quality,n=this.options.quality;if(n.length){var r=[!kw.empty(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(kw.number),i=!0;if(!n.includes(r)){var o=function(e,t){return kw.array(e)&&e.length?e.reduce(function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}):null}(n,r);this.debug.warn("Unsupported quality option: ".concat(r,", using ").concat(o," instead")),r=o,i=!1}t.selected=r,this.media.quality=r,i&&this.storage.set({quality:r})}},get:function(){return this.media.quality}},{key:"loop",set:function(e){var t=kw.boolean(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t},get:function(){return Boolean(this.media.loop)}},{key:"source",set:function(e){yE.change.call(this,e)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var e=this.config.urls.download;return kw.url(e)?e:this.source},set:function(e){kw.url(e)&&(this.config.urls.download=e,Mk.setDownloadUrl.call(this))}},{key:"poster",set:function(e){this.isVideo?Jk.setPoster.call(this,e,!1).catch(function(){}):this.debug.warn("Poster can only be set for video")},get:function(){return this.isVideo?this.media.getAttribute("poster"):null}},{key:"ratio",get:function(){if(!this.isVideo)return null;var e=Qw(Zw.call(this));return kw.array(e)?e.join(":"):e},set:function(e){this.isVideo?kw.string(e)&&Jw(e)?(this.config.ratio=e,ek.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(e,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",set:function(e){var t=kw.boolean(e)?e:this.config.autoplay;this.config.autoplay=t},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(e){Fk.set.call(this,e,!1)},get:function(){var e=this.captions,t=e.toggled,n=e.currentTrack;return t?n:-1}},{key:"language",set:function(e){Fk.setLanguage.call(this,e,!1)},get:function(){return(Fk.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(e){if(Xw.pip){var t=kw.boolean(e)?e:!this.pip;kw.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Bk:qk),kw.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}},get:function(){return Xw.pip?kw.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Bk:null}}],[{key:"supported",value:function(e,t,n){return Xw.check(e,t,n)}},{key:"loadSprite",value:function(e,t){return Ok(e,t)}},{key:"setup",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;return kw.string(t)?r=Array.from(document.querySelectorAll(t)):kw.nodeList(t)?r=Array.from(t):kw.array(t)&&(r=t.filter(kw.element)),kw.empty(r)?null:r.map(function(t){return new e(t,n)})}}]),e}();wE.defaults=(bE=Dk,JSON.parse(JSON.stringify(bE)));var kE,EE,SE={video:{type:"video",title:"View From A Blue Moon",sources:[{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4",type:"video/mp4",size:576},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-720p.mp4",type:"video/mp4",size:720},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1080p.mp4",type:"video/mp4",size:1080},{src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-1440p.mp4",type:"video/mp4",size:1440}],poster:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg",tracks:[{kind:"captions",label:"English",srclang:"en",src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.en.vtt",default:!0},{kind:"captions",label:"French",srclang:"fr",src:"https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.fr.vtt"}]},audio:{type:"audio",title:"Kishi Bashi – “It All Began With A Burst”",sources:[{src:"https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.mp3",type:"audio/mp3"},{src:"https://cdn.plyr.io/static/demo/Kishi_Bashi_-_It_All_Began_With_a_Burst.ogg",type:"audio/ogg"}]},youtube:{type:"video",sources:[{src:"https://youtube.com/watch?v=bTqVqk7FSmY",provider:"youtube"}]},vimeo:{type:"video",sources:[{src:"https://vimeo.com/76979871",provider:"vimeo"}]}},_E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.classList[n?"add":"remove"](t)};kE=window.location.host,EE={prod:"plyr.io"===kE,dev:"dev.plyr.io"===kE},document.addEventListener("DOMContentLoaded",function(){lf.context(function(){Qf.setup(".js-shr",{count:{className:"button__count"},wrapper:{className:"button--with-count"}});var e=new wE("#player",{debug:!0,title:"View From A Blue Moon",iconUrl:"dist/demo.svg",keyboard:{global:!0},tooltips:{controls:!0},captions:{active:!0},keys:{google:"AIzaSyDrNwtN3nLH_8rjCmu5Wq3ZCm4MNAVdc0c"},ads:{enabled:EE.prod||EE.dev,publisherId:"918848828995742"},previewThumbnails:{enabled:!0,src:["https://cdn.plyr.io/static/demo/thumbs/100p.vtt","https://cdn.plyr.io/static/demo/thumbs/240p.vtt"]}});window.player=e;var t=document.querySelectorAll("[data-source]"),n=Object.keys(SE),r=Boolean(window.history&&window.history.pushState),i=window.location.hash.substring(1),o=!i.length;function a(e){Array.from(t).forEach(function(e){return _E(e.parentElement,"active",!1)}),_E(document.querySelector('[data-source="'.concat(e,'"]')),"active",!0),Array.from(document.querySelectorAll(".plyr__cite")).forEach(function(e){e.hidden=!0}),document.querySelector(".plyr__cite--".concat(e)).hidden=!1}function s(t,r){!n.includes(t)||!r&&t===i||!i.length&&"video"===t||(e.source=SE[t],i=t,a(t))}Array.from(t).forEach(function(e){e.addEventListener("click",function(){var t=e.getAttribute("data-source");s(t),r&&window.history.pushState({type:t},"","#".concat(t))})}),window.addEventListener("popstate",function(e){e.state&&Object.keys(e.state).includes("type")&&s(e.state.type)}),o&&(i="video"),r&&n.includes(i)&&window.history.replaceState({type:i},"",o?"":"#".concat(i)),"video"!==i&&s(i,!0),a(i)})}),EE.prod&&lf.config("https://d4ad9866ad834437a4754e23937071e4@sentry.io/305555").install()}();
|
||
//# sourceMappingURL=demo.min.js.map
|