5 lines
298 KiB
JavaScript
5 lines
298 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},I=Object.defineProperty,R={f:l?I:function(e,t,n){if(C(e),t=k(t,!0),C(n),A)try{return I(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 R.f(e,t,d(1,n))}:function(e,t,n){return e[t]=n,e},L=function(e,t){try{j(s,e,t)}catch(n){s[e]=t}return t},N=t((function(e){var t=s["__core-js_shared__"]||L("__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)"})})),M=N("native-function-to-string",Function.toString),U=s.WeakMap,F="function"==typeof U&&/native code/.test(M.call(U)),D=0,B=Math.random(),q=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++D+B).toString(36)},H=N("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(M).split("toString");N("inspectSource",(function(e){return M.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:L(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||M.call(this)}))})),Z=s,ee=function(e){return"function"==typeof e?e:void 0},te=function(e,t){return arguments.length<2?ee(Z[e])||ee(s[e]):Z[e]&&Z[e][t]||s[e]&&s[e][t]},ne=Math.ceil,re=Math.floor,ie=function(e){return isNaN(e=+e)?0:(e>0?re:ne)(e)},oe=Math.min,ae=function(e){return e>0?oe(ie(e),9007199254740991):0},se=Math.max,ce=Math.min,le=function(e,t){var n=ie(e);return n<0?se(n+t,0):ce(n,t)},ue=function(e){return function(t,n,r){var i,o=b(t),a=ae(o.length),s=le(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}},fe={includes:ue(!0),indexOf:ue(!1)},he=fe.indexOf,de=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++])&&(~he(o,n)||o.push(n));return o},pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ge=pe.concat("length","prototype"),me={f:Object.getOwnPropertyNames||function(e){return de(e,ge)}},ve={f:Object.getOwnPropertySymbols},ye=te("Reflect","ownKeys")||function(e){var t=me.f(C(e)),n=ve.f;return n?t.concat(n(e)):t},be=function(e,t){for(var n=ye(t),r=R.f,i=P.f,o=0;o<n.length;o++){var a=n[o];S(e,a)||r(e,a,i(t,a))}},we=/#|\.prototype\./,ke=function(e,t){var n=Se[Ee(e)];return n==Te||n!=_e&&("function"==typeof t?c(t):!!t)},Ee=ke.normalize=function(e){return String(e).replace(we,".").toLowerCase()},Se=ke.data={},_e=ke.NATIVE="N",Te=ke.POLYFILL="P",xe=ke,Ae=P.f,Oe=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]||L(c,{}):(s[c]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Ae(n,r))&&a.value:n[r],!xe(l?r:c+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;be(o,i)}(e.sham||i&&i.sham)&&j(o,"sham",!0),Q(n,r,o,e)}},Pe=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Ce=function(e,t,n){if(Pe(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)}},Ie=function(e){return Object(y(e))},Re=Array.isArray||function(e){return"Array"==g(e)},je=!!Object.getOwnPropertySymbols&&!c((function(){return!String(Symbol())})),Le=s.Symbol,Ne=N("wks"),Me=function(e){return Ne[e]||(Ne[e]=je&&Le[e]||(je?Le:q)("Symbol."+e))},Ue=Me("species"),Fe=function(e,t){var n;return Re(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Re(n.prototype)?w(n)&&null===(n=n[Ue])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},De=[].push,Be=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=5==e||o;return function(s,c,l,u){for(var f,h,d=Ie(s),p=v(d),g=Ce(c,l,3),m=ae(p.length),y=0,b=u||Fe,w=t?b(s,m):n?b(s,0):void 0;m>y;y++)if((a||y in p)&&(h=g(f=p[y],y,d),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:De.call(w,f)}else if(i)return!1;return o?-1:r||i?i:w}},qe={forEach:Be(0),map:Be(1),filter:Be(2),some:Be(3),every:Be(4),find:Be(5),findIndex:Be(6)},He=function(e,t){var n=[][e];return!n||!c((function(){n.call(null,t||function(){throw 1},1)}))},Ve=qe.forEach,ze=He("forEach")?function(e){return Ve(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach;Oe({target:"Array",proto:!0,forced:[].forEach!=ze},{forEach:ze});var We=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}},$e={},Ke=Me("iterator"),Ye=Array.prototype,Ge=function(e){return void 0!==e&&($e.Array===e||Ye[Ke]===e)},Xe=function(e,t,n){var r=k(t);r in e?R.f(e,r,d(0,n)):e[r]=n},Je=Me("toStringTag"),Qe="Arguments"==g(function(){return arguments}()),Ze=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),Je))?n:Qe?g(t):"Object"==(r=g(t))&&"function"==typeof t.callee?"Arguments":r},et=Me("iterator"),tt=function(e){if(null!=e)return e[et]||e["@@iterator"]||$e[Ze(e)]},nt=function(e){var t,n,r,i,o=Ie(e),a="function"==typeof this?this:Array,s=arguments.length,c=s>1?arguments[1]:void 0,l=void 0!==c,u=0,f=tt(o);if(l&&(c=Ce(c,s>2?arguments[2]:void 0,2)),null==f||a==Array&&Ge(f))for(n=new a(t=ae(o.length));t>u;u++)Xe(n,u,l?c(o[u],u):o[u]);else for(i=f.call(o),n=new a;!(r=i.next()).done;u++)Xe(n,u,l?We(i,c,[r.value,u],!0):r.value);return n.length=u,n},rt=Me("iterator"),it=!1;try{var ot=0,at={next:function(){return{done:!!ot++}},return:function(){it=!0}};at[rt]=function(){return this},Array.from(at,(function(){throw 2}))}catch(e){}var st=function(e,t){if(!t&&!it)return!1;var n=!1;try{var r={};r[rt]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},ct=!st((function(e){Array.from(e)}));Oe({target:"Array",stat:!0,forced:ct},{from:nt});var lt=Object.keys||function(e){return de(e,pe)},ut=l?Object.defineProperties:function(e,t){C(e);for(var n,r=lt(t),i=r.length,o=0;i>o;)R.f(e,n=r[o++],t[n]);return e},ft=te("document","documentElement"),ht=V("IE_PROTO"),dt=function(){},pt=function(){var e,t=x("iframe"),n=pe.length;for(t.style.display="none",ft.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),pt=e.F;n--;)delete pt.prototype[pe[n]];return pt()},gt=Object.create||function(e,t){var n;return null!==e?(dt.prototype=C(e),n=new dt,dt.prototype=null,n[ht]=e):n=pt(),void 0===t?n:ut(n,t)};z[ht]=!0;var mt=Me("unscopables"),vt=Array.prototype;null==vt[mt]&&j(vt,mt,gt(null));var yt=function(e){vt[mt][e]=!0},bt=fe.includes;Oe({target:"Array",proto:!0},{includes:function(e){return bt(this,e,arguments.length>1?arguments[1]:void 0)}}),yt("includes");var wt=c((function(){lt(1)}));Oe({target:"Object",stat:!0,forced:wt},{keys:function(e){return lt(Ie(e))}});var kt=Me("match"),Et=function(e){var t;return w(e)&&(void 0!==(t=e[kt])?!!t:"RegExp"==g(e))},St=function(e){if(Et(e))throw TypeError("The method doesn't accept regular expressions");return e},_t=Me("match");Oe({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[_t]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~String(y(this)).indexOf(St(e),arguments.length>1?arguments[1]:void 0)}});var Tt,xt,At,Ot=function(e){return function(t,n){var r,i,o=String(y(t)),a=ie(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?e?o.charAt(a):r:e?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},Pt={codeAt:Ot(!1),charAt:Ot(!0)},Ct=!c((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),It=V("IE_PROTO"),Rt=Object.prototype,jt=Ct?Object.getPrototypeOf:function(e){return e=Ie(e),S(e,It)?e[It]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Rt:null},Lt=Me("iterator"),Nt=!1;[].keys&&("next"in(At=[].keys())?(xt=jt(jt(At)))!==Object.prototype&&(Tt=xt):Nt=!0),null==Tt&&(Tt={}),S(Tt,Lt)||j(Tt,Lt,(function(){return this}));var Mt={IteratorPrototype:Tt,BUGGY_SAFARI_ITERATORS:Nt},Ut=R.f,Ft=Me("toStringTag"),Dt=function(e,t,n){e&&!S(e=n?e:e.prototype,Ft)&&Ut(e,Ft,{configurable:!0,value:t})},Bt=Mt.IteratorPrototype,qt=function(){return this},Ht=function(e,t,n){var r=t+" Iterator";return e.prototype=gt(Bt,{next:d(1,n)}),Dt(e,r,!1),$e[r]=qt,e},Vt=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 C(n),function(e){if(!w(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),zt=Mt.IteratorPrototype,Wt=Mt.BUGGY_SAFARI_ITERATORS,$t=Me("iterator"),Kt=function(){return this},Yt=function(e,t,n,r,i,o,a){Ht(n,t,r);var s,c,l,u=function(e){if(e===i&&g)return g;if(!Wt&&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[$t]||d["@@iterator"]||i&&d[i],g=!Wt&&p||u(i),m="Array"==t&&d.entries||p;if(m&&(s=jt(m.call(new e)),zt!==Object.prototype&&s.next&&(jt(s)!==zt&&(Vt?Vt(s,zt):"function"!=typeof s[$t]&&j(s,$t,Kt)),Dt(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),d[$t]!==g&&j(d,$t,g),$e[t]=g,i)if(c={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(l in c)!Wt&&!h&&l in d||Q(d,l,c[l]);else Oe({target:t,proto:!0,forced:Wt||h},c);return c},Gt=Pt.charAt,Xt=J.set,Jt=J.getterFor("String Iterator");Yt(String,"String",(function(e){Xt(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=Jt(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Gt(n,r),t.index+=e.length,{value:e,done:!1})}));var Qt={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};for(var Zt in Qt){var en=s[Zt],tn=en&&en.prototype;if(tn&&tn.forEach!==ze)try{j(tn,"forEach",ze)}catch(e){tn.forEach=ze}}var nn=document.getElementById("container");document.addEventListener("focusout",(function(e){e.target.classList&&!nn.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&&!nn.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 rn=me.f,on={}.toString,an="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],sn={f:function(e){return an&&"[object Window]"==on.call(e)?function(e){try{return rn(e)}catch(e){return an.slice()}}(e):rn(b(e))}},cn={f:Me},ln=R.f,un=function(e){var t=Z.Symbol||(Z.Symbol={});S(t,e)||ln(t,e,{value:cn.f(e)})},fn=qe.forEach,hn=V("hidden"),dn=Me("toPrimitive"),pn=J.set,gn=J.getterFor("Symbol"),mn=Object.prototype,vn=s.Symbol,yn=s.JSON,bn=yn&&yn.stringify,wn=P.f,kn=R.f,En=sn.f,Sn=h.f,_n=N("symbols"),Tn=N("op-symbols"),xn=N("string-to-symbol-registry"),An=N("symbol-to-string-registry"),On=N("wks"),Pn=s.QObject,Cn=!Pn||!Pn.prototype||!Pn.prototype.findChild,In=l&&c((function(){return 7!=gt(kn({},"a",{get:function(){return kn(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=wn(mn,t);r&&delete mn[t],kn(e,t,n),r&&e!==mn&&kn(mn,t,r)}:kn,Rn=function(e,t){var n=_n[e]=gt(vn.prototype);return pn(n,{type:"Symbol",tag:e,description:t}),l||(n.description=t),n},jn=je&&"symbol"==typeof vn.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof vn},Ln=function(e,t,n){e===mn&&Ln(Tn,t,n),C(e);var r=k(t,!0);return C(n),S(_n,r)?(n.enumerable?(S(e,hn)&&e[hn][r]&&(e[hn][r]=!1),n=gt(n,{enumerable:d(0,!1)})):(S(e,hn)||kn(e,hn,d(1,{})),e[hn][r]=!0),In(e,r,n)):kn(e,r,n)},Nn=function(e,t){C(e);var n=b(t),r=lt(n).concat(Dn(n));return fn(r,(function(t){l&&!Mn.call(n,t)||Ln(e,t,n[t])})),e},Mn=function(e){var t=k(e,!0),n=Sn.call(this,t);return!(this===mn&&S(_n,t)&&!S(Tn,t))&&(!(n||!S(this,t)||!S(_n,t)||S(this,hn)&&this[hn][t])||n)},Un=function(e,t){var n=b(e),r=k(t,!0);if(n!==mn||!S(_n,r)||S(Tn,r)){var i=wn(n,r);return!i||!S(_n,r)||S(n,hn)&&n[hn][r]||(i.enumerable=!0),i}},Fn=function(e){var t=En(b(e)),n=[];return fn(t,(function(e){S(_n,e)||S(z,e)||n.push(e)})),n},Dn=function(e){var t=e===mn,n=En(t?Tn:b(e)),r=[];return fn(n,(function(e){!S(_n,e)||t&&!S(mn,e)||r.push(_n[e])})),r};je||(Q((vn=function(){if(this instanceof vn)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=q(e),n=function(e){this===mn&&n.call(Tn,e),S(this,hn)&&S(this[hn],t)&&(this[hn][t]=!1),In(this,t,d(1,e))};return l&&Cn&&In(mn,t,{configurable:!0,set:n}),Rn(t,e)}).prototype,"toString",(function(){return gn(this).tag})),h.f=Mn,R.f=Ln,P.f=Un,me.f=sn.f=Fn,ve.f=Dn,l&&(kn(vn.prototype,"description",{configurable:!0,get:function(){return gn(this).description}}),Q(mn,"propertyIsEnumerable",Mn,{unsafe:!0})),cn.f=function(e){return Rn(Me(e),e)}),Oe({global:!0,wrap:!0,forced:!je,sham:!je},{Symbol:vn}),fn(lt(On),(function(e){un(e)})),Oe({target:"Symbol",stat:!0,forced:!je},{for:function(e){var t=String(e);if(S(xn,t))return xn[t];var n=vn(t);return xn[t]=n,An[n]=t,n},keyFor:function(e){if(!jn(e))throw TypeError(e+" is not a symbol");if(S(An,e))return An[e]},useSetter:function(){Cn=!0},useSimple:function(){Cn=!1}}),Oe({target:"Object",stat:!0,forced:!je,sham:!l},{create:function(e,t){return void 0===t?gt(e):Nn(gt(e),t)},defineProperty:Ln,defineProperties:Nn,getOwnPropertyDescriptor:Un}),Oe({target:"Object",stat:!0,forced:!je},{getOwnPropertyNames:Fn,getOwnPropertySymbols:Dn}),Oe({target:"Object",stat:!0,forced:c((function(){ve.f(1)}))},{getOwnPropertySymbols:function(e){return ve.f(Ie(e))}}),yn&&Oe({target:"JSON",stat:!0,forced:!je||c((function(){var e=vn();return"[null]"!=bn([e])||"{}"!=bn({a:e})||"{}"!=bn(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)&&!jn(e))return Re(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!jn(t))return t}),r[1]=t,bn.apply(yn,r)}}),vn.prototype[dn]||j(vn.prototype,dn,vn.prototype.valueOf),Dt(vn,"Symbol"),z[hn]=!0;var Bn=R.f,qn=s.Symbol;if(l&&"function"==typeof qn&&(!("description"in qn.prototype)||void 0!==qn().description)){var Hn={},Vn=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Vn?new qn(e):void 0===e?qn():qn(e);return""===e&&(Hn[t]=!0),t};be(Vn,qn);var zn=Vn.prototype=qn.prototype;zn.constructor=Vn;var Wn=zn.toString,$n="Symbol(test)"==String(qn("test")),Kn=/^Symbol\((.*)\)[^)]+$/;Bn(zn,"description",{configurable:!0,get:function(){var e=w(this)?this.valueOf():this,t=Wn.call(e);if(S(Hn,e))return"";var n=$n?t.slice(7,-1):t.replace(Kn,"$1");return""===n?void 0:n}}),Oe({global:!0,forced:!0},{Symbol:Vn})}un("iterator");var Yn=fe.indexOf,Gn=[].indexOf,Xn=!!Gn&&1/[1].indexOf(1,-0)<0,Jn=He("indexOf");Oe({target:"Array",proto:!0,forced:Xn||Jn},{indexOf:function(e){return Xn?Gn.apply(this,arguments)||0:Yn(this,e,arguments.length>1?arguments[1]:void 0)}});var Qn=J.set,Zn=J.getterFor("Array Iterator"),er=Yt(Array,"Array",(function(e,t){Qn(this,{type:"Array Iterator",target:b(e),index:0,kind:t})}),(function(){var e=Zn(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");$e.Arguments=$e.Array,yt("keys"),yt("values"),yt("entries");var tr=[].join,nr=v!=Object,rr=He("join",",");Oe({target:"Array",proto:!0,forced:nr||rr},{join:function(e){return tr.call(b(this),void 0===e?",":e)}});var ir=Me("species"),or=function(e){return!c((function(){var t=[];return(t.constructor={})[ir]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},ar=Me("species"),sr=[].slice,cr=Math.max;Oe({target:"Array",proto:!0,forced:!or("slice")},{slice:function(e,t){var n,r,i,o=b(this),a=ae(o.length),s=le(e,a),c=le(void 0===t?a:t,a);if(Re(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Re(n.prototype)?w(n)&&null===(n=n[ar])&&(n=void 0):n=void 0,n===Array||void 0===n))return sr.call(o,s,c);for(r=new(void 0===n?Array:n)(cr(c-s,0)),i=0;s<c;s++,i++)s in o&&Xe(r,i,o[s]);return r.length=i,r}});var lr={};lr[Me("toStringTag")]="z";var ur="[object z]"!==String(lr)?function(){return"[object "+Ze(this)+"]"}:lr.toString,fr=Object.prototype;ur!==fr.toString&&Q(fr,"toString",ur,{unsafe:!0});var hr=function(){var e=C(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},dr=RegExp.prototype.exec,pr=String.prototype.replace,gr=dr,mr=function(){var e=/a/,t=/b*/g;return dr.call(e,"a"),dr.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),vr=void 0!==/()??/.exec("")[1];(mr||vr)&&(gr=function(e){var t,n,r,i,o=this;return vr&&(n=new RegExp("^"+o.source+"$(?!\\s)",hr.call(o))),mr&&(t=o.lastIndex),r=dr.call(o,e),mr&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),vr&&r&&r.length>1&&pr.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var yr=gr;Oe({target:"RegExp",proto:!0,forced:/./.exec!==yr},{exec:yr});var br=RegExp.prototype,wr=br.toString,kr=c((function(){return"/a/b"!=wr.call({source:"a",flags:"b"})})),Er="toString"!=wr.name;(kr||Er)&&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 br)?hr.call(e):n)}),{unsafe:!0});var Sr=Me("species"),_r=!c((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Tr=!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]})),xr=function(e,t,n,r){var i=Me(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[Sr]=function(){return n}),n[i](""),!t}));if(!o||!a||"replace"===e&&!_r||"split"===e&&!Tr){var s=/./[i],l=n(i,""[e],(function(e,t,n,r,i){return t.exec===yr?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)}},Ar=Pt.charAt,Or=function(e,t,n){return t+(n?Ar(e,t).length:1)},Pr=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 yr.call(e,t)},Cr=Math.max,Ir=Math.min,Rr=Math.floor,jr=/\$([$&'`]|\d\d?|<[^>]*>)/g,Lr=/\$([$&'`]|\d\d?)/g;xr("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=Pr(a,s);if(null===h)break;if(f.push(h),!l)break;""===String(h[0])&&(a.lastIndex=Or(s,ae(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=Cr(Ir(ie(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=Lr;return void 0!==o&&(o=Ie(o),l=jr),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=Rr(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 Nr=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};xr("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;Nr(a,0)||(i.lastIndex=0);var s=Pr(i,o);return Nr(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]}));var Mr=Me("species"),Ur=function(e,t){var n,r=C(e).constructor;return void 0===r||null==(n=C(r)[Mr])?t:Pe(n)},Fr=[].push,Dr=Math.min,Br=!c((function(){return!RegExp(4294967295,"y")}));xr("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(!Et(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=yr.call(f,r))&&!((a=f.lastIndex)>u&&(c.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&Fr.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=Ur(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Br?"y":"g"),f=new c(Br?a:"^(?:"+a.source+")",u),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===Pr(f,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){f.lastIndex=Br?p:0;var m,v=Pr(f,Br?s:s.slice(p));if(null===v||(m=Dr(ae(f.lastIndex+(Br?0:p)),s.length))===d)p=Or(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}]}),!Br);var qr=Me("iterator"),Hr=Me("toStringTag"),Vr=er.values;for(var zr in Qt){var Wr=s[zr],$r=Wr&&Wr.prototype;if($r){if($r[qr]!==Vr)try{j($r,qr,Vr)}catch(e){$r[qr]=Vr}if($r[Hr]||j($r,Hr,zr),Qt[zr])for(var Kr in er)if($r[Kr]!==er[Kr])try{j($r,Kr,er[Kr])}catch(e){$r[Kr]=er[Kr]}}}var Yr=Me("iterator"),Gr=!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[Yr]||"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})),Xr=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Jr=Object.assign,Qr=!Jr||c((function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=Jr({},e)[n]||"abcdefghijklmnopqrst"!=lt(Jr({},t)).join("")}))?function(e,t){for(var n=Ie(e),r=arguments.length,i=1,o=ve.f,a=h.f;r>i;)for(var s,c=v(arguments[i++]),u=o?lt(c).concat(o(c)):lt(c),f=u.length,d=0;f>d;)s=u[d++],l&&!a.call(c,s)||(n[s]=c[s]);return n}:Jr,Zr=/[^\0-\u007E]/,ei=/[.\u3002\uFF0E\uFF61]/g,ti="Overflow: input needs wider integers to process",ni=Math.floor,ri=String.fromCharCode,ii=function(e){return e+22+75*(e<26)},oi=function(e,t,n){var r=0;for(e=n?ni(e/700):e>>1,e+=ni(e/t);e>455;r+=36)e=ni(e/35);return ni(r+36*e/(e+38))},ai=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(ri(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>ni((2147483647-a)/f))throw RangeError(ti);for(a+=(u-o)*f,o=u,t=0;t<e.length;t++){if((n=e[t])<o&&++a>2147483647)throw RangeError(ti);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(ri(ii(p+g%m))),h=ni(g/m)}r.push(ri(ii(h))),s=oi(a,f,l==c),a=0,++l}}++a,++o}return r.join("")},si=function(e,t,n){for(var r in t)Q(e,r,t[r],n);return e},ci=function(e){var t=tt(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return C(t.call(e))},li=Me("iterator"),ui=J.set,fi=J.getterFor("URLSearchParams"),hi=J.getterFor("URLSearchParamsIterator"),di=/\+/g,pi=Array(4),gi=function(e){return pi[e-1]||(pi[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},mi=function(e){try{return decodeURIComponent(e)}catch(t){return e}},vi=function(e){var t=e.replace(di," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(gi(n--),mi);return t}},yi=/[!'()~]|%20/g,bi={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},wi=function(e){return bi[e]},ki=function(e){return encodeURIComponent(e).replace(yi,wi)},Ei=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:vi(r.shift()),value:vi(r.join("="))}))},Si=function(e){this.entries.length=0,Ei(this.entries,e)},_i=function(e,t){if(e<t)throw TypeError("Not enough arguments")},Ti=Ht((function(e,t){ui(this,{type:"URLSearchParamsIterator",iterator:ci(fi(e).entries),kind:t})}),"Iterator",(function(){var e=hi(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})),xi=function(){Xr(this,xi,"URLSearchParams");var e,t,n,r,i,o,a,s=arguments.length>0?arguments[0]:void 0,c=this,l=[];if(ui(c,{type:"URLSearchParams",entries:l,updateURL:function(){},updateSearchParams:Si}),void 0!==s)if(w(s))if("function"==typeof(e=tt(s)))for(t=e.call(s);!(n=t.next()).done;){if((i=(r=ci(C(n.value))).next()).done||(o=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");l.push({key:i.value+"",value:o.value+""})}else for(a in s)S(s,a)&&l.push({key:a,value:s[a]+""});else Ei(l,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},Ai=xi.prototype;si(Ai,{append:function(e,t){_i(arguments.length,2);var n=fi(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){_i(arguments.length,1);for(var t=fi(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){_i(arguments.length,1);for(var t=fi(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){_i(arguments.length,1);for(var t=fi(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){_i(arguments.length,1);for(var t=fi(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){_i(arguments.length,1);for(var n,r=fi(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()},sort:function(){var e,t,n,r=fi(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=fi(this).entries,r=Ce(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 Ti(this,"keys")},values:function(){return new Ti(this,"values")},entries:function(){return new Ti(this,"entries")}},{enumerable:!0}),Q(Ai,li,Ai.entries),Q(Ai,"toString",(function(){for(var e,t=fi(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(ki(e.key)+"="+ki(e.value));return n.join("&")}),{enumerable:!0}),Dt(xi,"URLSearchParams"),Oe({global:!0,forced:!Gr},{URLSearchParams:xi});var Oi,Pi={URLSearchParams:xi,getState:fi},Ci=Pt.codeAt,Ii=s.URL,Ri=Pi.URLSearchParams,ji=Pi.getState,Li=J.set,Ni=J.getterFor("URL"),Mi=Math.floor,Ui=Math.pow,Fi=/[A-Za-z]/,Di=/[\d+\-.A-Za-z]/,Bi=/\d/,qi=/^(0x|0X)/,Hi=/^[0-7]+$/,Vi=/^\d+$/,zi=/^[\dA-Fa-f]+$/,Wi=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,$i=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Ki=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Yi=/[\u0009\u000A\u000D]/g,Gi=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=Ji(t.slice(1,-1))))return"Invalid host";e.host=n}else if(oo(e)){if(t=function(e){var t,n,r=[],i=e.toLowerCase().replace(ei,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(Zr.test(n)?"xn--"+ai(n):n);return r.join(".")}(t),Wi.test(t))return"Invalid host";if(null===(n=Xi(t)))return"Invalid host";e.host=n}else{if($i.test(t))return"Invalid host";for(n="",r=nt(t),i=0;i<r.length;i++)n+=ro(r[i],Zi);e.host=n}},Xi=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&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=qi.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?Vi:8==o?Hi:zi).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>=Ui(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*Ui(256,3-r);return s},Ji=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&&zi.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(!Bi.test(h()))return;for(;Bi.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},Qi=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=Mi(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},Zi={},eo=Qr({},Zi,{" ":1,'"':1,"<":1,">":1,"`":1}),to=Qr({},eo,{"#":1,"?":1,"{":1,"}":1}),no=Qr({},to,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ro=function(e,t){var n=Ci(e,0);return n>32&&n<127&&!S(t,e)?e:encodeURIComponent(e)},io={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},oo=function(e){return S(io,e.scheme)},ao=function(e){return""!=e.username||""!=e.password},so=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},co=function(e,t){var n;return 2==e.length&&Fi.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},lo=function(e){var t;return e.length>1&&co(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},uo=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&co(t[0],!0)||t.pop()},fo=function(e){return"."===e||"%2e"===e.toLowerCase()},ho={},po={},go={},mo={},vo={},yo={},bo={},wo={},ko={},Eo={},So={},_o={},To={},xo={},Ao={},Oo={},Po={},Co={},Io={},Ro={},jo={},Lo=function(e,t,n,r){var i,o,a,s,c,l=n||ho,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(Ki,"")),t=t.replace(Yi,""),i=nt(t);u<=i.length;){switch(o=i[u],l){case ho:if(!o||!Fi.test(o)){if(n)return"Invalid scheme";l=go;continue}f+=o.toLowerCase(),l=po;break;case po:if(o&&(Di.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";f="",l=go,u=0;continue}if(n&&(oo(e)!=S(io,f)||"file"==f&&(ao(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(oo(e)&&io[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?l=xo:oo(e)&&r&&r.scheme==e.scheme?l=mo:oo(e)?l=wo:"/"==i[u+1]?(l=vo,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=Io)}break;case go: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=jo;break}l="file"==r.scheme?xo:yo;continue;case mo:if("/"!=o||"/"!=i[u+1]){l=yo;continue}l=ko,u++;break;case vo:if("/"==o){l=Eo;break}l=Co;continue;case yo:if(e.scheme=r.scheme,o==Oi)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&&oo(e))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.query="",l=Ro;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=Co;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=jo}break;case bo:if(!oo(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,l=Co;continue}l=Eo}else l=ko;break;case wo:if(l=ko,"/"!=o||"/"!=f.charAt(u+1))continue;u++;break;case ko:if("/"!=o&&"\\"!=o){l=Eo;continue}break;case Eo:if("@"==o){h&&(f="%40"+f),h=!0,a=nt(f);for(var g=0;g<a.length;g++){var m=a[g];if(":"!=m||p){var v=ro(m,no);p?e.password+=v:e.username+=v}else p=!0}f=""}else if(o==Oi||"/"==o||"?"==o||"#"==o||"\\"==o&&oo(e)){if(h&&""==f)return"Invalid authority";u-=nt(f).length+1,f="",l=So}else f+=o;break;case So:case _o:if(n&&"file"==e.scheme){l=Oo;continue}if(":"!=o||d){if(o==Oi||"/"==o||"?"==o||"#"==o||"\\"==o&&oo(e)){if(oo(e)&&""==f)return"Invalid host";if(n&&""==f&&(ao(e)||null!==e.port))return;if(s=Gi(e,f))return s;if(f="",l=Po,n)return;continue}"["==o?d=!0:"]"==o&&(d=!1),f+=o}else{if(""==f)return"Invalid host";if(s=Gi(e,f))return s;if(f="",l=To,n==_o)return}break;case To:if(!Bi.test(o)){if(o==Oi||"/"==o||"?"==o||"#"==o||"\\"==o&&oo(e)||n){if(""!=f){var y=parseInt(f,10);if(y>65535)return"Invalid port";e.port=oo(e)&&y===io[e.scheme]?null:y,f=""}if(n)return;l=Po;continue}return"Invalid port"}f+=o;break;case xo:if(e.scheme="file","/"==o||"\\"==o)l=Ao;else{if(!r||"file"!=r.scheme){l=Co;continue}if(o==Oi)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=Ro;else{if("#"!=o){lo(i.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),uo(e)),l=Co;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=jo}}break;case Ao:if("/"==o||"\\"==o){l=Oo;break}r&&"file"==r.scheme&&!lo(i.slice(u).join(""))&&(co(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),l=Co;continue;case Oo:if(o==Oi||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&co(f))l=Co;else if(""==f){if(e.host="",n)return;l=Po}else{if(s=Gi(e,f))return s;if("localhost"==e.host&&(e.host=""),n)return;f="",l=Po}continue}f+=o;break;case Po:if(oo(e)){if(l=Co,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=Oi&&(l=Co,"/"!=o))continue}else e.fragment="",l=jo;else e.query="",l=Ro;break;case Co:if(o==Oi||"/"==o||"\\"==o&&oo(e)||!n&&("?"==o||"#"==o)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(uo(e),"/"==o||"\\"==o&&oo(e)||e.path.push("")):fo(f)?"/"==o||"\\"==o&&oo(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&co(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(o==Oi||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",l=Ro):"#"==o&&(e.fragment="",l=jo)}else f+=ro(o,to);break;case Io:"?"==o?(e.query="",l=Ro):"#"==o?(e.fragment="",l=jo):o!=Oi&&(e.path[0]+=ro(o,Zi));break;case Ro:n||"#"!=o?o!=Oi&&("'"==o&&oo(e)?e.query+="%27":e.query+="#"==o?"%23":ro(o,Zi)):(e.fragment="",l=jo);break;case jo:o!=Oi&&(e.fragment+=ro(o,eo))}u++}},No=function(e){var t,n,r=Xr(this,No,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),a=Li(r,{type:"URL"});if(void 0!==i)if(i instanceof No)t=Ni(i);else if(n=Lo(t={},String(i)))throw TypeError(n);if(n=Lo(a,o,null,t))throw TypeError(n);var s=a.searchParams=new Ri,c=ji(s);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(s)||null},l||(r.href=Uo.call(r),r.origin=Fo.call(r),r.protocol=Do.call(r),r.username=Bo.call(r),r.password=qo.call(r),r.host=Ho.call(r),r.hostname=Vo.call(r),r.port=zo.call(r),r.pathname=Wo.call(r),r.search=$o.call(r),r.searchParams=Ko.call(r),r.hash=Yo.call(r))},Mo=No.prototype,Uo=function(){var e=Ni(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+="//",ao(e)&&(l+=n+(r?":"+r:"")+"@"),l+=Qi(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},Fo=function(){var e=Ni(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&&oo(e)?t+"://"+Qi(e.host)+(null!==n?":"+n:""):"null"},Do=function(){return Ni(this).scheme+":"},Bo=function(){return Ni(this).username},qo=function(){return Ni(this).password},Ho=function(){var e=Ni(this),t=e.host,n=e.port;return null===t?"":null===n?Qi(t):Qi(t)+":"+n},Vo=function(){var e=Ni(this).host;return null===e?"":Qi(e)},zo=function(){var e=Ni(this).port;return null===e?"":String(e)},Wo=function(){var e=Ni(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},$o=function(){var e=Ni(this).query;return e?"?"+e:""},Ko=function(){return Ni(this).searchParams},Yo=function(){var e=Ni(this).fragment;return e?"#"+e:""},Go=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(l&&ut(Mo,{href:Go(Uo,(function(e){var t=Ni(this),n=String(e),r=Lo(t,n);if(r)throw TypeError(r);ji(t.searchParams).updateSearchParams(t.query)})),origin:Go(Fo),protocol:Go(Do,(function(e){var t=Ni(this);Lo(t,String(e)+":",ho)})),username:Go(Bo,(function(e){var t=Ni(this),n=nt(String(e));if(!so(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=ro(n[r],no)}})),password:Go(qo,(function(e){var t=Ni(this),n=nt(String(e));if(!so(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=ro(n[r],no)}})),host:Go(Ho,(function(e){var t=Ni(this);t.cannotBeABaseURL||Lo(t,String(e),So)})),hostname:Go(Vo,(function(e){var t=Ni(this);t.cannotBeABaseURL||Lo(t,String(e),_o)})),port:Go(zo,(function(e){var t=Ni(this);so(t)||(""==(e=String(e))?t.port=null:Lo(t,e,To))})),pathname:Go(Wo,(function(e){var t=Ni(this);t.cannotBeABaseURL||(t.path=[],Lo(t,e+"",Po))})),search:Go($o,(function(e){var t=Ni(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Lo(t,e,Ro)),ji(t.searchParams).updateSearchParams(t.query)})),searchParams:Go(Ko),hash:Go(Yo,(function(e){var t=Ni(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Lo(t,e,jo)):t.fragment=null}))}),Q(Mo,"toJSON",(function(){return Uo.call(this)}),{enumerable:!0}),Q(Mo,"toString",(function(){return Uo.call(this)}),{enumerable:!0}),Ii){var Xo=Ii.createObjectURL,Jo=Ii.revokeObjectURL;Xo&&Q(No,"createObjectURL",(function(e){return Xo.apply(Ii,arguments)})),Jo&&Q(No,"revokeObjectURL",(function(e){return Jo.apply(Ii,arguments)}))}function Qo(e){return(Qo="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 Zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ea(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 ta(e,t,n){return t&&ea(e.prototype,t),n&&ea(e,n),e}function na(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ra(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ra(Object(n),!0).forEach((function(t){na(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ra(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;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 aa(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")}()}Dt(No,"URL"),Oe({global:!0,forced:!Gr,sham:!l},{URL:No}),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=Qo(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 sa=Me("isConcatSpreadable"),ca=!c((function(){var e=[];return e[sa]=!1,e.concat()[0]!==e})),la=or("concat"),ua=function(e){if(!w(e))return!1;var t=e[sa];return void 0!==t?!!t:Re(e)};Oe({target:"Array",proto:!0,forced:!ca||!la},{concat:function(e){var t,n,r,i,o,a=Ie(this),s=Fe(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],ua(o)){if(c+(i=ae(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&Xe(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Xe(s,c++,o)}return s.length=c,s}});var fa=function(e){for(var t=Ie(this),n=ae(t.length),r=arguments.length,i=le(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:le(o,n);a>i;)t[i++]=e;return t};Oe({target:"Array",proto:!0},{fill:fa}),yt("fill");var ha=Math.min,da=[].lastIndexOf,pa=!!da&&1/[1].lastIndexOf(1,-0)<0,ga=He("lastIndexOf"),ma=pa||ga?function(e){if(pa)return da.apply(this,arguments)||0;var t=b(this),n=ae(t.length),r=n-1;for(arguments.length>1&&(r=ha(r,ie(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:da;Oe({target:"Array",proto:!0,forced:ma!==[].lastIndexOf},{lastIndexOf:ma});var va=R.f,ya=Function.prototype,ba=ya.toString,wa=/^\s*function ([^ (]*)/;!l||"name"in ya||va(ya,"name",{configurable:!0,get:function(){try{return ba.call(this).match(wa)[1]}catch(e){return""}}});var ka,Ea,Sa,_a=Me("species"),Ta=function(e){var t=te(e),n=R.f;l&&t&&!t[_a]&&n(t,_a,{configurable:!0,get:function(){return this}})},xa=t((function(e){var t=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,n,r,i,o){var a,s,c,l,u,f,h=Ce(n,r,i?2:1);if(o)a=e;else{if("function"!=typeof(s=tt(e)))throw TypeError("Target is not iterable");if(Ge(s)){for(c=0,l=ae(e.length);l>c;c++)if((u=i?h(C(f=e[c])[0],f[1]):h(e[c]))&&u instanceof t)return u;return new t(!1)}a=s.call(e)}for(;!(f=a.next()).done;)if((u=We(a,h,f.value,i))&&u instanceof t)return u;return new t(!1)}).stop=function(e){return new t(!0,e)}})),Aa=s.location,Oa=s.setImmediate,Pa=s.clearImmediate,Ca=s.process,Ia=s.MessageChannel,Ra=s.Dispatch,ja=0,La={},Na=function(e){if(La.hasOwnProperty(e)){var t=La[e];delete La[e],t()}},Ma=function(e){return function(){Na(e)}},Ua=function(e){Na(e.data)},Fa=function(e){s.postMessage(e+"",Aa.protocol+"//"+Aa.host)};Oa&&Pa||(Oa=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return La[++ja]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},ka(ja),ja},Pa=function(e){delete La[e]},"process"==g(Ca)?ka=function(e){Ca.nextTick(Ma(e))}:Ra&&Ra.now?ka=function(e){Ra.now(Ma(e))}:Ia?(Sa=(Ea=new Ia).port2,Ea.port1.onmessage=Ua,ka=Ce(Sa.postMessage,Sa,1)):!s.addEventListener||"function"!=typeof postMessage||s.importScripts||c(Fa)?ka="onreadystatechange"in x("script")?function(e){ft.appendChild(x("script")).onreadystatechange=function(){ft.removeChild(this),Na(e)}}:function(e){setTimeout(Ma(e),0)}:(ka=Fa,s.addEventListener("message",Ua,!1)));var Da,Ba,qa,Ha,Va,za,Wa,$a={set:Oa,clear:Pa},Ka=te("navigator","userAgent")||"",Ya=P.f,Ga=$a.set,Xa=s.MutationObserver||s.WebKitMutationObserver,Ja=s.process,Qa=s.Promise,Za="process"==g(Ja),es=Ya(s,"queueMicrotask"),ts=es&&es.value;ts||(Da=function(){var e,t;for(Za&&(e=Ja.domain)&&e.exit();Ba;){t=Ba.fn,Ba=Ba.next;try{t()}catch(e){throw Ba?Ha():qa=void 0,e}}qa=void 0,e&&e.enter()},Za?Ha=function(){Ja.nextTick(Da)}:Xa&&!/(iphone|ipod|ipad).*applewebkit/i.test(Ka)?(Va=!0,za=document.createTextNode(""),new Xa(Da).observe(za,{characterData:!0}),Ha=function(){za.data=Va=!Va}):Qa&&Qa.resolve?(Wa=Qa.resolve(void 0),Ha=function(){Wa.then(Da)}):Ha=function(){Ga.call(s,Da)});var ns,rs,is,os=ts||function(e){var t={fn:e,next:void 0};qa&&(qa.next=t),Ba||(Ba=t,Ha()),qa=t},as=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=Pe(t),this.reject=Pe(n)},ss={f:function(e){return new as(e)}},cs=function(e,t){if(C(e),w(t)&&t.constructor===e)return t;var n=ss.f(e);return(0,n.resolve)(t),n.promise},ls=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},us=$a.set,fs=Me("species"),hs="Promise",ds=J.get,ps=J.set,gs=J.getterFor(hs),ms=s.Promise,vs=s.TypeError,ys=s.document,bs=s.process,ws=s.fetch,ks=bs&&bs.versions,Es=ks&&ks.v8||"",Ss=ss.f,_s=Ss,Ts="process"==g(bs),xs=!!(ys&&ys.createEvent&&s.dispatchEvent),As=xe(hs,(function(){var e=ms.resolve(1),t=function(){},n=(e.constructor={})[fs]=function(e){e(t,t)};return!((Ts||"function"==typeof PromiseRejectionEvent)&&e.then(t)instanceof n&&0!==Es.indexOf("6.6")&&-1===Ka.indexOf("Chrome/66"))})),Os=As||!st((function(e){ms.all(e).catch((function(){}))})),Ps=function(e){var t;return!(!w(e)||"function"!=typeof(t=e.then))&&t},Cs=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;os((function(){for(var i=t.value,o=1==t.state,a=0;r.length>a;){var s,c,l,u=r[a++],f=o?u.ok:u.fail,h=u.resolve,d=u.reject,p=u.domain;try{f?(o||(2===t.rejection&&Ls(e,t),t.rejection=1),!0===f?s=i:(p&&p.enter(),s=f(i),p&&(p.exit(),l=!0)),s===u.promise?d(vs("Promise-chain cycle")):(c=Ps(s))?c.call(s,h,d):h(s)):d(i)}catch(e){p&&!l&&p.exit(),d(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Rs(e,t)}))}},Is=function(e,t,n){var r,i;xs?((r=ys.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)},Rs=function(e,t){us.call(s,(function(){var n,r=t.value;if(js(t)&&(n=ls((function(){Ts?bs.emit("unhandledRejection",r,e):Is("unhandledrejection",e,r)})),t.rejection=Ts||js(t)?2:1,n.error))throw n.value}))},js=function(e){return 1!==e.rejection&&!e.parent},Ls=function(e,t){us.call(s,(function(){Ts?bs.emit("rejectionHandled",e):Is("rejectionhandled",e,t.value)}))},Ns=function(e,t,n,r){return function(i){e(t,n,i,r)}},Ms=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Cs(e,t,!0))},Us=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw vs("Promise can't be resolved itself");var i=Ps(n);i?os((function(){var r={done:!1};try{i.call(n,Ns(Us,e,r,t),Ns(Ms,e,r,t))}catch(n){Ms(e,r,n,t)}})):(t.value=n,t.state=1,Cs(e,t,!1))}catch(n){Ms(e,{done:!1},n,t)}}};As&&(ms=function(e){Xr(this,ms,hs),Pe(e),ns.call(this);var t=ds(this);try{e(Ns(Us,this,t),Ns(Ms,this,t))}catch(e){Ms(this,t,e)}},(ns=function(e){ps(this,{type:hs,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=si(ms.prototype,{then:function(e,t){var n=gs(this),r=Ss(Ur(this,ms));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Ts?bs.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Cs(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),rs=function(){var e=new ns,t=ds(e);this.promise=e,this.resolve=Ns(Us,e,t),this.reject=Ns(Ms,e,t)},ss.f=Ss=function(e){return e===ms||e===is?new rs(e):_s(e)},"function"==typeof ws&&Oe({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return cs(ms,ws.apply(s,arguments))}})),Oe({global:!0,wrap:!0,forced:As},{Promise:ms}),Dt(ms,hs,!1),Ta(hs),is=Z.Promise,Oe({target:hs,stat:!0,forced:As},{reject:function(e){var t=Ss(this);return t.reject.call(void 0,e),t.promise}}),Oe({target:hs,stat:!0,forced:As},{resolve:function(e){return cs(this,e)}}),Oe({target:hs,stat:!0,forced:Os},{all:function(e){var t=this,n=Ss(t),r=n.resolve,i=n.reject,o=ls((function(){var n=Pe(t.resolve),o=[],a=0,s=1;xa(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=Ss(t),r=n.reject,i=ls((function(){var i=Pe(t.resolve);xa(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Fs=Math.max,Ds=Math.min;Oe({target:"Array",proto:!0,forced:!or("splice")},{splice:function(e,t){var n,r,i,o,a,s,c=Ie(this),l=ae(c.length),u=le(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-u):(n=f-2,r=Ds(Fs(ie(t),0),l-u)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=Fe(c,r),o=0;o<r;o++)(a=u+o)in c&&Xe(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}}),xr("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 Pr(i,o);var a=i.unicode;i.lastIndex=0;for(var s,c=[],l=0;null!==(s=Pr(i,o));){var u=String(s[0]);c[l]=u,""===u&&(i.lastIndex=Or(o,ae(i.lastIndex),a)),l++}return 0===l?null:c}]}));var Bs=qe.filter;Oe({target:"Array",proto:!0,forced:!or("filter")},{filter:function(e){return Bs(this,e,arguments.length>1?arguments[1]:void 0)}});var qs=qe.map;Oe({target:"Array",proto:!0,forced:!or("map")},{map:function(e){return qs(this,e,arguments.length>1?arguments[1]:void 0)}});var Hs=function(e){return function(t,n,r,i){Pe(n);var o=Ie(t),a=v(o),s=ae(o.length),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in a){i=a[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in a&&(i=n(i,a[c],c,o));return i}},Vs={left:Hs(!1),right:Hs(!0)},zs=Vs.left;Oe({target:"Array",proto:!0,forced:He("reduce")},{reduce:function(e){return zs(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Ws=Object.isFrozen,$s=c((function(){Ws(1)}));Oe({target:"Object",stat:!0,forced:$s},{isFrozen:function(e){return!w(e)||!!Ws&&Ws(e)}});var Ks=function(e,t,n){var r,i;return Vt&&"function"==typeof(r=t.constructor)&&r!==n&&w(i=r.prototype)&&i!==n.prototype&&Vt(e,i),e},Ys=R.f,Gs=me.f,Xs=Me("match"),Js=s.RegExp,Qs=Js.prototype,Zs=/a/g,ec=/a/g,tc=new Js(Zs)!==Zs;if(l&&xe("RegExp",!tc||c((function(){return ec[Xs]=!1,Js(Zs)!=Zs||Js(ec)==ec||"/a/i"!=Js(Zs,"i")})))){for(var nc=function(e,t){var n=this instanceof nc,r=Et(e),i=void 0===t;return!n&&r&&e.constructor===nc&&i?e:Ks(tc?new Js(r&&!i?e.source:e,t):Js((r=e instanceof nc)?e.source:e,r&&i?hr.call(e):t),n?this:Qs,nc)},rc=function(e){e in nc||Ys(nc,e,{configurable:!0,get:function(){return Js[e]},set:function(t){Js[e]=t}})},ic=Gs(Js),oc=0;ic.length>oc;)rc(ic[oc++]);Qs.constructor=nc,nc.prototype=Qs,Q(s,"RegExp",nc)}Ta("RegExp");var ac,sc=R.f,cc=s.DataView,lc=cc&&cc.prototype,uc=s.Int8Array,fc=uc&&uc.prototype,hc=s.Uint8ClampedArray,dc=hc&&hc.prototype,pc=uc&&jt(uc),gc=fc&&jt(fc),mc=Object.prototype,vc=mc.isPrototypeOf,yc=Me("toStringTag"),bc=q("TYPED_ARRAY_TAG"),wc=!(!s.ArrayBuffer||!cc),kc=wc&&!!Vt,Ec=!1,Sc={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_c=function(e){return w(e)&&S(Sc,Ze(e))};for(ac in Sc)s[ac]||(kc=!1);if((!kc||"function"!=typeof pc||pc===Function.prototype)&&(pc=function(){throw TypeError("Incorrect invocation")},kc))for(ac in Sc)s[ac]&&Vt(s[ac],pc);if((!kc||!gc||gc===mc)&&(gc=pc.prototype,kc))for(ac in Sc)s[ac]&&Vt(s[ac].prototype,gc);if(kc&&jt(dc)!==gc&&Vt(dc,gc),l&&!S(gc,yc))for(ac in Ec=!0,sc(gc,yc,{get:function(){return w(this)?this[bc]:void 0}}),Sc)s[ac]&&j(s[ac],bc,ac);wc&&Vt&&jt(lc)!==mc&&Vt(lc,mc);var Tc={NATIVE_ARRAY_BUFFER:wc,NATIVE_ARRAY_BUFFER_VIEWS:kc,TYPED_ARRAY_TAG:Ec&&bc,aTypedArray:function(e){if(_c(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(Vt){if(vc.call(pc,e))return e}else for(var t in Sc)if(S(Sc,ac)){var n=s[t];if(n&&(e===n||vc.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 Sc){var i=s[r];i&&S(i.prototype,e)&&delete i.prototype[e]}gc[e]&&!n||Q(gc,e,n?t:kc&&fc[e]||t)}},exportStatic:function(e,t,n){var r,i;if(l){if(Vt){if(n)for(r in Sc)(i=s[r])&&S(i,e)&&delete i[e];if(pc[e]&&!n)return;try{return Q(pc,e,n?t:kc&&uc[e]||t)}catch(e){}}for(r in Sc)!(i=s[r])||i[e]&&!n||Q(i,e,t)}},isView:function(e){var t=Ze(e);return"DataView"===t||S(Sc,t)},isTypedArray:_c,TypedArray:pc,TypedArrayPrototype:gc},xc=Tc.NATIVE_ARRAY_BUFFER_VIEWS,Ac=s.ArrayBuffer,Oc=s.Int8Array,Pc=!xc||!c((function(){Oc(1)}))||!c((function(){new Oc(-1)}))||!st((function(e){new Oc,new Oc(null),new Oc(1.5),new Oc(e)}),!0)||c((function(){return 1!==new Oc(new Ac(2),1,void 0).length})),Cc=function(e){if(void 0===e)return 0;var t=ie(e),n=ae(t);if(t!==n)throw RangeError("Wrong length or index");return n},Ic=t((function(e,t){var n=Tc.NATIVE_ARRAY_BUFFER,r=me.f,i=R.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=Cc(+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=Cc(+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 I,L=(f=function(e){return Xr(this,f),new u(Cc(e))}).prototype=u.prototype,N=r(u),M=0;N.length>M;)(I=N[M++])in f||j(f,I,u[I]);L.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)||si(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){Xr(this,f,"ArrayBuffer");var t=Cc(e);a(this,{bytes:fa.call(new Array(t),0),byteLength:t}),l||(this.byteLength=t)},h=function(e,t,n){Xr(this,h,"DataView"),Xr(e,f,"DataView");var r=o(e).byteLength,i=ie(t);if(i<0||i>r)throw p("Wrong offset");if(i+(n=void 0===n?r-i:ae(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")),si(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.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=P(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return E(P(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return E(P(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return k(P(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return k(P(this,8,e,arguments.length>1?arguments[1]:void 0),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.length>2?arguments[2]:void 0)},setUint16:function(e,t){C(this,2,e,_,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){C(this,4,e,T,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){C(this,4,e,T,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){C(this,4,e,x,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){C(this,8,e,A,t,arguments.length>2?arguments[2]:void 0)}});Dt(f,"ArrayBuffer"),Dt(h,"DataView"),t.ArrayBuffer=f,t.DataView=h})),Rc=function(e,t){var n=ie(e);if(n<0||n%t)throw RangeError("Wrong offset");return n},jc=Tc.aTypedArrayConstructor,Lc=function(e){var t,n,r,i,o,a=Ie(e),s=arguments.length,c=s>1?arguments[1]:void 0,l=void 0!==c,u=tt(a);if(null!=u&&!Ge(u))for(o=u.call(a),a=[];!(i=o.next()).done;)a.push(i.value);for(l&&s>2&&(c=Ce(c,arguments[2],2)),n=ae(a.length),r=new(jc(this))(n),t=0;n>t;t++)r[t]=l?c(a[t],t):a[t];return r};t((function(e){var t=me.f,n=qe.forEach,r=J.get,i=J.set,o=R.f,a=P.f,c=Math.round,u=s.RangeError,f=Ic.ArrayBuffer,h=Ic.DataView,p=Tc.NATIVE_ARRAY_BUFFER_VIEWS,g=Tc.TYPED_ARRAY_TAG,m=Tc.TypedArray,v=Tc.TypedArrayPrototype,y=Tc.aTypedArrayConstructor,b=Tc.isTypedArray,E=function(e,t){for(var n=0,r=t.length,i=new(y(e))(r);r>n;)i[n]=t[n++];return i},_=function(e,t){o(e,t,{get:function(){return r(this)[t]}})},T=function(e){var t;return e instanceof f||"ArrayBuffer"==(t=Ze(e))||"SharedArrayBuffer"==t},x=function(e,t){return b(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},A=function(e,t){return x(e,t=k(t,!0))?d(2,e[t]):a(e,t)},O=function(e,t,n){return!(x(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?o(e,t,n):(e[t]=n.value,e)};l?(p||(P.f=A,R.f=O,_(v,"buffer"),_(v,"byteOffset"),_(v,"byteLength"),_(v,"length")),Oe({target:"Object",stat:!0,forced:!p},{getOwnPropertyDescriptor:A,defineProperty:O}),e.exports=function(e,a,l,d){var y=e+(d?"Clamped":"")+"Array",k="get"+e,S="set"+e,_=s[y],x=_,A=x&&x.prototype,O={},P=function(e,t){o(e,t,{get:function(){return function(e,t){var n=r(e);return n.view[k](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var i=r(e);d&&(n=(n=c(n))<0?0:n>255?255:255&n),i.view[S](t*a+i.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};p?Pc&&(x=l((function(e,t,n,r){return Xr(e,x,y),w(t)?T(t)?void 0!==r?new _(t,Rc(n,a),r):void 0!==n?new _(t,Rc(n,a)):new _(t):b(t)?E(x,t):Lc.call(x,t):new _(Cc(t))})),Vt&&Vt(x,m),n(t(_),(function(e){e in x||j(x,e,_[e])})),x.prototype=A):(x=l((function(e,t,n,r){Xr(e,x,y);var o,s,c,l=0,d=0;if(w(t)){if(!T(t))return b(t)?E(x,t):Lc.call(x,t);o=t,d=Rc(n,a);var p=t.byteLength;if(void 0===r){if(p%a)throw u("Wrong length");if((s=p-d)<0)throw u("Wrong length")}else if((s=ae(r)*a)+d>p)throw u("Wrong length");c=s/a}else c=Cc(t),o=new f(s=c*a);for(i(e,{buffer:o,byteOffset:d,byteLength:s,length:c,view:new h(o)});l<c;)P(e,l++)})),Vt&&Vt(x,m),A=x.prototype=gt(v)),A.constructor!==x&&j(A,"constructor",x),g&&j(A,g,y),O[y]=x,Oe({global:!0,forced:x!=_,sham:!p},O),"BYTES_PER_ELEMENT"in x||j(x,"BYTES_PER_ELEMENT",a),"BYTES_PER_ELEMENT"in A||j(A,"BYTES_PER_ELEMENT",a),Ta(y)}):e.exports=function(){}}))("Uint16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}));var Nc=Math.min,Mc=[].copyWithin||function(e,t){var n=Ie(this),r=ae(n.length),i=le(e,r),o=le(t,r),a=arguments.length>2?arguments[2]:void 0,s=Nc((void 0===a?r:le(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},Uc=Tc.aTypedArray;Tc.exportProto("copyWithin",(function(e,t){return Mc.call(Uc(this),e,t,arguments.length>2?arguments[2]:void 0)}));var Fc=qe.every,Dc=Tc.aTypedArray;Tc.exportProto("every",(function(e){return Fc(Dc(this),e,arguments.length>1?arguments[1]:void 0)}));var Bc=Tc.aTypedArray;Tc.exportProto("fill",(function(e){return fa.apply(Bc(this),arguments)}));var qc=qe.filter,Hc=Tc.aTypedArray,Vc=Tc.aTypedArrayConstructor;Tc.exportProto("filter",(function(e){for(var t=qc(Hc(this),e,arguments.length>1?arguments[1]:void 0),n=Ur(this,this.constructor),r=0,i=t.length,o=new(Vc(n))(i);i>r;)o[r]=t[r++];return o}));var zc=qe.find,Wc=Tc.aTypedArray;Tc.exportProto("find",(function(e){return zc(Wc(this),e,arguments.length>1?arguments[1]:void 0)}));var $c=qe.findIndex,Kc=Tc.aTypedArray;Tc.exportProto("findIndex",(function(e){return $c(Kc(this),e,arguments.length>1?arguments[1]:void 0)}));var Yc=qe.forEach,Gc=Tc.aTypedArray;Tc.exportProto("forEach",(function(e){Yc(Gc(this),e,arguments.length>1?arguments[1]:void 0)}));var Xc=fe.includes,Jc=Tc.aTypedArray;Tc.exportProto("includes",(function(e){return Xc(Jc(this),e,arguments.length>1?arguments[1]:void 0)}));var Qc=fe.indexOf,Zc=Tc.aTypedArray;Tc.exportProto("indexOf",(function(e){return Qc(Zc(this),e,arguments.length>1?arguments[1]:void 0)}));var el=Me("iterator"),tl=s.Uint8Array,nl=er.values,rl=er.keys,il=er.entries,ol=Tc.aTypedArray,al=Tc.exportProto,sl=tl&&tl.prototype[el],cl=!!sl&&("values"==sl.name||null==sl.name),ll=function(){return nl.call(ol(this))};al("entries",(function(){return il.call(ol(this))})),al("keys",(function(){return rl.call(ol(this))})),al("values",ll,!cl),al(el,ll,!cl);var ul=Tc.aTypedArray,fl=[].join;Tc.exportProto("join",(function(e){return fl.apply(ul(this),arguments)}));var hl=Tc.aTypedArray;Tc.exportProto("lastIndexOf",(function(e){return ma.apply(hl(this),arguments)}));var dl=qe.map,pl=Tc.aTypedArray,gl=Tc.aTypedArrayConstructor;Tc.exportProto("map",(function(e){return dl(pl(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(gl(Ur(e,e.constructor)))(t)}))}));var ml=Vs.left,vl=Tc.aTypedArray;Tc.exportProto("reduce",(function(e){return ml(vl(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var yl=Vs.right,bl=Tc.aTypedArray;Tc.exportProto("reduceRight",(function(e){return yl(bl(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var wl=Tc.aTypedArray,kl=Math.floor;Tc.exportProto("reverse",(function(){for(var e,t=wl(this).length,n=kl(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}));var El=Tc.aTypedArray,Sl=c((function(){new Int8Array(1).set({})}));Tc.exportProto("set",(function(e){El(this);var t=Rc(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=Ie(e),i=ae(r.length),o=0;if(i+t>n)throw RangeError("Wrong length");for(;o<i;)this[t+o]=r[o++]}),Sl);var _l=Tc.aTypedArray,Tl=Tc.aTypedArrayConstructor,xl=[].slice,Al=c((function(){new Int8Array(1).slice()}));Tc.exportProto("slice",(function(e,t){for(var n=xl.call(_l(this),e,t),r=Ur(this,this.constructor),i=0,o=n.length,a=new(Tl(r))(o);o>i;)a[i]=n[i++];return a}),Al);var Ol=qe.some,Pl=Tc.aTypedArray;Tc.exportProto("some",(function(e){return Ol(Pl(this),e,arguments.length>1?arguments[1]:void 0)}));var Cl=Tc.aTypedArray,Il=[].sort;Tc.exportProto("sort",(function(e){return Il.call(Cl(this),e)}));var Rl=Tc.aTypedArray;Tc.exportProto("subarray",(function(e,t){var n=Rl(this),r=n.length,i=le(e,r);return new(Ur(n,n.constructor))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,ae((void 0===t?r:le(t,r))-i))}));var jl=s.Int8Array,Ll=Tc.aTypedArray,Nl=[].toLocaleString,Ml=[].slice,Ul=!!jl&&c((function(){Nl.call(new jl(1))})),Fl=c((function(){return[1,2].toLocaleString()!=new jl([1,2]).toLocaleString()}))||!c((function(){jl.prototype.toLocaleString.call([1,2])}));Tc.exportProto("toLocaleString",(function(){return Nl.apply(Ul?Ml.call(Ll(this)):Ll(this),arguments)}),Fl);var Dl=s.Uint8Array,Bl=Dl&&Dl.prototype,ql=[].toString,Hl=[].join;c((function(){ql.call({})}))&&(ql=function(){return Hl.call(this)}),Tc.exportProto("toString",ql,(Bl||{}).toString!=ql);var Vl=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})),zl=(Vl.getSerialize,"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{});function Wl(e){return void 0===e}function $l(e){return"[object Object]"===Object.prototype.toString.call(e)}function Kl(e){return"[object String]"===Object.prototype.toString.call(e)}function Yl(e){return"[object Array]"===Object.prototype.toString.call(e)}function Gl(){if(!("fetch"in zl))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function Xl(e,t){var n,r;if(Wl(e.length))for(n in e)Ql(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 Jl(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 Ql(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Zl(e){for(var t,n=[],r=0,i=e.length;r<i;r++)Kl(t=e[r])?n.push(t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):t&&t.source&&n.push(t.source);return new RegExp(n.join("|"),"i")}function eu(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)&&Kl(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 tu(e,t){return!!(!!e^!!t)}function nu(e,t){if(tu(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}function ru(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function iu(e){if("string"==typeof e){return Jl(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 ou={isObject:function(e){return"object"===Qo(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:Wl,isFunction:function(e){return"function"==typeof e},isPlainObject:$l,isString:Kl,isArray:Yl,isEmptyObject:function(e){if(!$l(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:Gl,supportsReferrerPolicy:function(){if(!Gl())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:Xl,objectMerge:function(e,t){return t?(Xl(t,(function(t,n){e[t]=n})),e):e},truncate:Jl,objectFrozen:function(e){return!!Object.isFrozen&&Object.isFrozen(e)},hasKey:Ql,joinRegExp:Zl,urlencode:function(e){var t=[];return Xl(e,(function(e,n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})),t.join("&")},uuid4:function(){var e=zl.crypto||zl.msCrypto;if(!Wl(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=eu(e))||r>1&&i+n.length*o+t.length>=80);)n.push(t),i+=t.length,e=e.parentNode;return n.reverse().join(" > ")},htmlElementAsString:eu,isSameException:function(e,t){return!tu(e,t)&&(e=e.values[0],t=t.values[0],e.type===t.type&&e.value===t.value&&(n=e.stacktrace,r=t.stacktrace,(!Wl(n)||!Wl(r))&&nu(e.stacktrace,t.stacktrace)));var n,r},isSameStacktrace:nu,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(!Yl(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(!$l(t))return t;r="number"!=typeof(n="number"!=typeof n?3:n)?51200:r;var i=function e(t,n){return 0===n?iu(t):$l(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)})):iu(t)}(t,n);return ru(Vl(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?40: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(!Yl(t)||Yl(t)&&0===t.length)return e;var n,r=Zl(t);try{n=JSON.parse(Vl(e))}catch(t){return e}return function e(t){return Yl(t)?t.map((function(t){return e(t)})):$l(t)?Object.keys(t).reduce((function(n,i){return r.test(i)?n[i]="********":n[i]=e(t[i]),n}),{}):t}(n)}},au={collectWindowErrors:!0,debug:!1},su="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},cu=[].slice,lu=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function uu(){return"undefined"==typeof document||null==document.location?"":document.location.href}au.report=function(){var e,t,n=[],r=null,i=null,o=null;function a(e,t){var r=null;if(!t||au.collectWindowErrors){for(var i in n)if(n.hasOwnProperty(i))try{n[i].apply(null,[e].concat(cu.call(arguments,2)))}catch(e){r=e}if(r)throw r}}function s(t,n,r,i,s){var l=ou.isErrorEvent(s)?s.error:s,u=ou.isErrorEvent(t)?t.message:t;if(o)au.computeStackTrace.augmentStackTraceWithInitialElement(o,n,r,u),c();else if(l&&ou.isError(l))a(au.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(lu))&&(d=f[1],u=f[2]);h.func="?",a({name:d,message:u,url:uu(),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=cu.call(arguments,1);if(o){if(i===e)return;c()}var a=au.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){!function(){if(t)return;e=su.onerror,su.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(){!function(){if(!t)return;su.onerror=e,t=!1,e=void 0}(),n=[]},l}(),au.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]||"?",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]||"?",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]||"?",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="?"),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:uu(),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="?"),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!==au.report){if(a={url:null,func:"?",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:uu(),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(au.debug)throw e}try{if(i=n(t,r+1))return i}catch(e){if(au.debug)throw e}return{name:t.name,message:t.message,url:uu()}}return r.augmentStackTraceWithInitialElement=t,r.computeStackTraceFromStackProp=e,r}();var fu=au;function hu(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function du(e,t,n,r,i,o){return hu((a=hu(hu(t,e),hu(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function pu(e,t,n,r,i,o,a){return du(t&n|~t&r,e,t,i,o,a)}function gu(e,t,n,r,i,o,a){return du(t&r|n&~r,e,t,i,o,a)}function mu(e,t,n,r,i,o,a){return du(t^n^r,e,t,i,o,a)}function vu(e,t,n,r,i,o,a){return du(n^(t|~r),e,t,i,o,a)}function yu(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=pu(s,c,l,u,e[n],7,-680876936),u=pu(u,s,c,l,e[n+1],12,-389564586),l=pu(l,u,s,c,e[n+2],17,606105819),c=pu(c,l,u,s,e[n+3],22,-1044525330),s=pu(s,c,l,u,e[n+4],7,-176418897),u=pu(u,s,c,l,e[n+5],12,1200080426),l=pu(l,u,s,c,e[n+6],17,-1473231341),c=pu(c,l,u,s,e[n+7],22,-45705983),s=pu(s,c,l,u,e[n+8],7,1770035416),u=pu(u,s,c,l,e[n+9],12,-1958414417),l=pu(l,u,s,c,e[n+10],17,-42063),c=pu(c,l,u,s,e[n+11],22,-1990404162),s=pu(s,c,l,u,e[n+12],7,1804603682),u=pu(u,s,c,l,e[n+13],12,-40341101),l=pu(l,u,s,c,e[n+14],17,-1502002290),s=gu(s,c=pu(c,l,u,s,e[n+15],22,1236535329),l,u,e[n+1],5,-165796510),u=gu(u,s,c,l,e[n+6],9,-1069501632),l=gu(l,u,s,c,e[n+11],14,643717713),c=gu(c,l,u,s,e[n],20,-373897302),s=gu(s,c,l,u,e[n+5],5,-701558691),u=gu(u,s,c,l,e[n+10],9,38016083),l=gu(l,u,s,c,e[n+15],14,-660478335),c=gu(c,l,u,s,e[n+4],20,-405537848),s=gu(s,c,l,u,e[n+9],5,568446438),u=gu(u,s,c,l,e[n+14],9,-1019803690),l=gu(l,u,s,c,e[n+3],14,-187363961),c=gu(c,l,u,s,e[n+8],20,1163531501),s=gu(s,c,l,u,e[n+13],5,-1444681467),u=gu(u,s,c,l,e[n+2],9,-51403784),l=gu(l,u,s,c,e[n+7],14,1735328473),s=mu(s,c=gu(c,l,u,s,e[n+12],20,-1926607734),l,u,e[n+5],4,-378558),u=mu(u,s,c,l,e[n+8],11,-2022574463),l=mu(l,u,s,c,e[n+11],16,1839030562),c=mu(c,l,u,s,e[n+14],23,-35309556),s=mu(s,c,l,u,e[n+1],4,-1530992060),u=mu(u,s,c,l,e[n+4],11,1272893353),l=mu(l,u,s,c,e[n+7],16,-155497632),c=mu(c,l,u,s,e[n+10],23,-1094730640),s=mu(s,c,l,u,e[n+13],4,681279174),u=mu(u,s,c,l,e[n],11,-358537222),l=mu(l,u,s,c,e[n+3],16,-722521979),c=mu(c,l,u,s,e[n+6],23,76029189),s=mu(s,c,l,u,e[n+9],4,-640364487),u=mu(u,s,c,l,e[n+12],11,-421815835),l=mu(l,u,s,c,e[n+15],16,530742520),s=vu(s,c=mu(c,l,u,s,e[n+2],23,-995338651),l,u,e[n],6,-198630844),u=vu(u,s,c,l,e[n+7],10,1126891415),l=vu(l,u,s,c,e[n+14],15,-1416354905),c=vu(c,l,u,s,e[n+5],21,-57434055),s=vu(s,c,l,u,e[n+12],6,1700485571),u=vu(u,s,c,l,e[n+3],10,-1894986606),l=vu(l,u,s,c,e[n+10],15,-1051523),c=vu(c,l,u,s,e[n+1],21,-2054922799),s=vu(s,c,l,u,e[n+8],6,1873313359),u=vu(u,s,c,l,e[n+15],10,-30611744),l=vu(l,u,s,c,e[n+6],15,-1560198380),c=vu(c,l,u,s,e[n+13],21,1309151649),s=vu(s,c,l,u,e[n+4],6,-145523070),u=vu(u,s,c,l,e[n+11],10,-1120210379),l=vu(l,u,s,c,e[n+2],15,718787259),c=vu(c,l,u,s,e[n+9],21,-343485551),s=hu(s,r),c=hu(c,i),l=hu(l,o),u=hu(u,a);return[s,c,l,u]}function bu(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 wu(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 ku(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 Eu(e){return unescape(encodeURIComponent(e))}function Su(e){return function(e){return bu(yu(wu(e),8*e.length))}(Eu(e))}function _u(e,t){return function(e,t){var n,r,i=wu(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=yu(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=yu(o.concat(wu(t)),512+8*t.length),bu(yu(a.concat(r),640))}(Eu(e),Eu(t))}var Tu=function(e,t,n){return t?n?_u(t,e):ku(_u(t,e)):n?Su(e):ku(Su(e))};function xu(e){this.name="RavenConfigError",this.message=e}xu.prototype=new Error,xu.prototype.constructor=xu;var Au=xu,Ou=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=ou.safeJoin(e," "),s={level:o,logger:"console",extra:{arguments:e}};"assert"===t?!1===e[0]&&(a="Assertion failed: "+(ou.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)}}},Pu=ou.isErrorEvent,Cu=ou.isDOMError,Iu=ou.isDOMException,Ru=ou.isError,ju=ou.isObject,Lu=ou.isPlainObject,Nu=ou.isUndefined,Mu=ou.isFunction,Uu=ou.isString,Fu=ou.isArray,Du=ou.isEmptyObject,Bu=ou.each,qu=ou.objectMerge,Hu=ou.truncate,Vu=ou.objectFrozen,zu=ou.hasKey,Wu=ou.joinRegExp,$u=ou.urlencode,Ku=ou.uuid4,Yu=ou.htmlTreeAsString,Gu=ou.isSameException,Xu=ou.isSameStacktrace,Ju=ou.parseUrl,Qu=ou.fill,Zu=ou.supportsFetch,ef=ou.supportsReferrerPolicy,tf=ou.serializeKeysForMessage,nf=ou.serializeException,rf=ou.sanitize,of=Ou,af="source protocol user pass host port path".split(" "),sf=/^(?:(\w+):)?\/\/(?:(\w+)(:\w+)?@)?([\w\.-]+)(?::(\d+))?(\/.*)/;function cf(){return+new Date}var lf="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},uf=lf.document,ff=lf.navigator;function hf(e,t){return Mu(t)?function(n){return t(n,e)}:t}function df(){for(var e in this._hasJSON=!("object"!==("undefined"==typeof JSON?"undefined":Qo(JSON))||!JSON.stringify),this._hasDocument=!Nu(uf),this._hasNavigator=!Nu(ff),this._lastCapturedException=null,this._lastData=null,this._lastEventId=null,this._globalServer=null,this._globalKey=null,this._globalProject=null,this._globalContext={},this._globalOptions={release:lf.SENTRY_RELEASE&&lf.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:ef()?"origin":""},this._ignoreOnError=0,this._isRavenInstalled=!1,this._originalErrorStackTraceLimit=Error.stackTraceLimit,this._originalConsole=lf.console||{},this._originalConsoleMethods={},this._plugins=[],this._startTime=cf(),this._wrappedBuiltIns=[],this._breadcrumbs=[],this._lastCapturedEvent=null,this._keypressTimeout,this._location=lf.location,this._lastHref=this._location&&this._location.href,this._resetBackoff(),this._originalConsole)this._originalConsoleMethods[e]=this._originalConsole[e]}df.prototype={VERSION:"3.27.2",debug:!1,TraceKit:fu,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&&Bu(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=Wu(r.ignoreErrors),r.ignoreUrls=!!r.ignoreUrls.length&&Wu(r.ignoreUrls),r.whitelistUrls=!!r.whitelistUrls.length&&Wu(r.whitelistUrls),r.includePaths=Wu(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=qu(i,o):!1!==o&&(o=i),r.autoBreadcrumbs=o;var a={tryCatch:!0},s=r.instrument;return"[object Object]"==={}.toString.call(s)?s=qu(a,s):!1!==s&&(s=a),r.instrument=s,fu.collectWindowErrors=!!r.collectWindowErrors,n},install:function(){var e=this;return e.isSetup()&&!e._isRavenInstalled&&(fu.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 Mu(e)&&(n=t||[],t=e,e={}),this.wrap(e,t).apply(this,n)},wrap:function(e,t,n){var r=this;if(Nu(t)&&!Mu(e))return e;if(Mu(e)&&(t=e,e=void 0),!Mu(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&&Mu(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)zu(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 fu.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),lf.addEventListener&&lf.addEventListener("unhandledrejection",this._promiseRejectionHandler),this},_detachPromiseRejectionHandler:function(){return lf.removeEventListener&&lf.removeEventListener("unhandledrejection",this._promiseRejectionHandler),this},captureException:function(e,t){if(t=qu({trimHeadFrames:0},t||{}),Pu(e)&&e.error)e=e.error;else{if(Cu(e)||Iu(e)){var n=e.name||(Cu(e)?"DOMError":"DOMException"),r=e.message?n+": "+e.message:n;return this.captureMessage(r,qu(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}))}if(Ru(e))e=e;else{if(!Lu(e))return this.captureMessage(e,qu(t,{stacktrace:!0,trimHeadFrames:t.trimHeadFrames+1}));t=this._getCaptureExceptionOptionsFromPlainObject(t,e),e=new Error(t.message)}}this._lastCapturedException=e;try{var i=fu.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=qu(e,{message:"Non-Error exception captured with keys: "+tf(n),fingerprint:[Tu(n)],extra:e.extra||{}});return r.extra.__serialized__=nf(t),r},captureMessage:function(e,t){if(!this._globalOptions.ignoreErrors.test||!this._globalOptions.ignoreErrors.test(e)){var n,r=qu({message:e+=""},t=t||{});try{throw new Error(e)}catch(e){n=e}n.name=null;var i=fu.computeStackTrace(n),o=Fu(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=qu({trimHeadFrames:0},t)).trimHeadFrames+=1;var s=this._prepareFrames(i,t);r.stacktrace={frames:s.reverse()}}return r.fingerprint&&(r.fingerprint=Fu(r.fingerprint)?r.fingerprint:[r.fingerprint]),this._send(r),this}}},captureBreadcrumb:function(e){var t=qu({timestamp:cf()/1e3},e);if(Mu(this._globalOptions.breadcrumbCallback)){var n=this._globalOptions.breadcrumbCallback(t);if(ju(n)&&!Du(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(Vl(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=hf(t,e),this},setBreadcrumbCallback:function(e){var t=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=hf(t,e),this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=hf(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=lf.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(uf){if(!(e=qu({eventId:this.lastEventId(),dsn:this._dsn,user:this._globalContext.user||{}},e)).eventId)throw new Au("Missing eventId");if(!e.dsn)throw new Au("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=uf.createElement("script");a.async=!0,a.src=o+"/api/embed/error-page/?"+n.join("&"),(uf.head||uf.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),uf.createEvent?(n=uf.createEvent("HTMLEvents")).initEvent(e,!0,!0):(n=uf.createEventObject()).eventType=e,t)zu(t,r)&&(n[r]=t[r]);if(uf.createEvent)uf.dispatchEvent(n);else try{uf.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=Yu(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=Ju(this._location.href),r=Ju(t),i=Ju(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 Mu(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=lf[n]&&lf[n].prototype;i&&i.hasOwnProperty&&i.hasOwnProperty("addEventListener")&&(Qu(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),Qu(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))}Qu(lf,"setTimeout",n,t),Qu(lf,"setInterval",n,t),lf.requestAnimationFrame&&Qu(lf,"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&&Mu(n[t])&&Qu(n,t,(function(n){return e.wrap({mechanism:{type:"instrument",data:{function:t,handler:n&&n.name||"<anonymous>"}}},n)}))}if(t.xhr&&"XMLHttpRequest"in lf){var i=lf.XMLHttpRequest&&lf.XMLHttpRequest.prototype;Qu(i,"open",(function(t){return function(n,r){return Uu(r)&&-1===r.indexOf(e._globalKey)&&(this.__raven_xhr={method:n,url:r,status_code:null}),t.apply(this,arguments)}}),n),Qu(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&&Mu(n.onreadystatechange)?Qu(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()&&Qu(lf,"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 lf&&o instanceof lf.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&&(uf.addEventListener?(uf.addEventListener("click",e._breadcrumbEventHandler("click"),!1),uf.addEventListener("keypress",e._keypressEventHandler(),!1)):uf.attachEvent&&(uf.attachEvent("onclick",e._breadcrumbEventHandler("click")),uf.attachEvent("onkeypress",e._keypressEventHandler())));var o=lf.chrome,a=!(o&&o.app&&o.app.runtime)&&lf.history&&lf.history.pushState&&lf.history.replaceState;if(t.location&&a){var s=lf.onpopstate;lf.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)}};Qu(lf.history,"pushState",c,n),Qu(lf.history,"replaceState",c,n)}if(t.console&&"console"in lf&&console.log){var l=function(t,n){e.captureBreadcrumb({message:t,level:n.level,category:"console"})};Bu(["debug","info","warn","error","log"],(function(e,t){of(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;Bu(this._plugins,(function(t,n){var r=n[0],i=n[1];r.apply(e,[e].concat(i))}))},_parseDSN:function(e){var t=sf.exec(e),n={},r=7;try{for(;r--;)n[af[r]]=t[r]||""}catch(t){throw new Au("Invalid DSN: "+e)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new Au("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&&(Bu(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=qu({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=qu({type:"generic",handled:!0},c.exception.mechanism||{}),this._send(c)}},_trimPacket:function(e){var t=this._globalOptions.maxMessageLength;if(e.message&&(e.message=Hu(e.message,t)),e.exception){var n=e.exception.values[0];n.value=Hu(n.value,t)}var r=e.request;return r&&(r.url&&(r.url=Hu(r.url,this._globalOptions.maxUrlLength)),r.Referer&&(r.Referer=Hu(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")&&ju(n.data)&&!Vu(n.data)){r=qu({},n.data);for(var a=0;a<i.length;++a)t=i[a],r.hasOwnProperty(t)&&r[t]&&(r[t]=Hu(r[t],this._globalOptions.maxUrlLength));e.values[o].data=r}},_getHttpData:function(){if(this._hasNavigator||this._hasDocument){var e={};return this._hasNavigator&&ff.userAgent&&(e.headers={"User-Agent":ff.userAgent}),lf.location&&lf.location.href&&(e.url=lf.location.href),this._hasDocument&&uf.referrer&&(e.headers||(e.headers={}),e.headers.Referer=uf.referrer),e}},_resetBackoff:function(){this._backoffDuration=0,this._backoffStart=null},_shouldBackoff:function(){return this._backoffDuration&&cf()-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?Xu(e.stacktrace,t.stacktrace):e.exception||t.exception?Gu(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=cf()}}},_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=qu(n,e)).tags=qu(qu({},this._globalContext.tags),e.tags),e.extra=qu(qu({},this._globalContext.extra),e.extra),e.extra["session:duration"]=cf()-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]||Du(e[t]))&&delete e[t]})),Mu(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!Du(e)&&(Mu(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 rf(e,this._globalOptions.sanitizeKeys)},_getUuid:function(){return Ku()},_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+"?"+$u(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=Vl(e.data);var i=qu({},this._fetchDefaults),o=qu(i,r);return n&&(o.headers=n),lf.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=lf.XMLHttpRequest&&new lf.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&&Bu(n,(function(e,t){a.setRequestHeader(e,t)})),a.send(Vl(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){Nu(t)?delete this._globalContext[e]:this._globalContext[e]=qu(this._globalContext[e]||{},t)}},df.prototype.setUser=df.prototype.setUserContext,df.prototype.setReleaseContext=df.prototype.setRelease;var pf=df,gf="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},mf=gf.Raven,vf=new pf;vf.noConflict=function(){return gf.Raven=mf,vf},vf.afterLoad();var yf=vf,bf=pf;yf.Client=bf;var wf=qe.find,kf=!0;"find"in[]&&Array(1).find((function(){kf=!1})),Oe({target:"Array",proto:!0,forced:kf},{find:function(e){return wf(this,e,arguments.length>1?arguments[1]:void 0)}}),yt("find");var Ef="[\t\n\v\f\r \u2028\u2029\ufeff]",Sf=RegExp("^"+Ef+Ef+"*"),_f=RegExp(Ef+Ef+"*$"),Tf=function(e){return function(t){var n=String(y(t));return 1&e&&(n=n.replace(Sf,"")),2&e&&(n=n.replace(_f,"")),n}},xf={start:Tf(1),end:Tf(2),trim:Tf(3)},Af=me.f,Of=P.f,Pf=R.f,Cf=xf.trim,If=s.Number,Rf=If.prototype,jf="Number"==g(gt(Rf)),Lf=function(e){var t,n,r,i,o,a,s,c,l=k(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=Cf(l)).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(xe("Number",!If(" 0o1")||!If("0b1")||If("+0x1"))){for(var Nf,Mf=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof Mf&&(jf?c((function(){Rf.valueOf.call(n)})):"Number"!=g(n))?Ks(new If(Lf(t)),n,Mf):Lf(t)},Uf=l?Af(If):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Ff=0;Uf.length>Ff;Ff++)S(If,Nf=Uf[Ff])&&!S(Mf,Nf)&&Pf(Mf,Nf,Of(If,Nf));Mf.prototype=Rf,Rf.constructor=Mf,Q(s,"Number",Mf)}Oe({target:"Number",stat:!0},{isNaN:function(e){return e!=e}}),Oe({target:"Object",stat:!0,forced:Object.assign!==Qr},{assign:Qr});var Df=h.f,Bf=function(e){return function(t){for(var n,r=b(t),i=lt(r),o=i.length,a=0,s=[];o>a;)n=i[a++],l&&!Df.call(r,n)||s.push(e?[n,r[n]]:r[n]);return s}},qf={entries:Bf(!0),values:Bf(!1)}.entries;function Hf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vf(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 zf(e,t,n){return t&&Vf(e.prototype,t),n&&Vf(e,n),e}function Wf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $f(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")}()}Oe({target:"Object",stat:!0},{entries:function(e){return qf(e)}});var Kf=function(e){return null!=e?e.constructor:null},Yf=function(e,t){return!!(e&&t&&e instanceof t)},Gf=function(e){return null==e},Xf=function(e){return Kf(e)===Object},Jf=function(e){return Kf(e)===String},Qf=function(e){return Array.isArray(e)},Zf=function(e){return Yf(e,NodeList)},eh=Gf,th=Xf,nh=function(e){return Kf(e)===Number&&!Number.isNaN(e)},rh=Jf,ih=function(e){return Kf(e)===Boolean},oh=Qf,ah=Zf,sh=function(e){return Yf(e,Element)},ch=function(e){return Yf(e,Event)},lh=function(e){return Gf(e)||(Jf(e)||Qf(e)||Zf(e))&&!e.length||Xf(e)&&!Object.keys(e).length},uh={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(rh(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(!lh(e.error))return null;var t=$f(e.items,1)[0];return lh(t)?null:t.statistics.subscriberCount}}},fh={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}};function hh(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)}))}var dh=function(){},ph=function(){function e(){var t=!!(0<arguments.length&&void 0!==arguments[0])&&arguments[0];Hf(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return zf(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):dh}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):dh}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):dh}}]),e}();function gh(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function mh(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)}))}function vh(e,t,n){var r=document.createElement(e);return th(t)&&function(e,t){!sh(e)||lh(t)||Object.entries(t).filter((function(e){var t=$f(e,2)[1];return!eh(t)})).forEach((function(t){var n=$f(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)}))}(r,t),rh(n)&&(r.innerText=n),r}function yh(e){var t=/\./.test(1.1.toLocaleString())?".":",",n=new RegExp("\\".concat(t,"\\d+$"));return Math.round(e).toLocaleString().replace(n,"")}function bh(){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 th(i)?(Object.keys(i).forEach((function(t){th(i[t])?(!Object.keys(e).includes(t)&&Object.assign(e,Wf({},t,{})),bh(e[t],i[t])):Object.assign(e,Wf({},t,i[t]))})),bh.apply(void 0,[e].concat(n))):e}var wh=function(){function e(t,n){var r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];Hf(this,e),this.enabled=r&&e.supported,this.key=t,this.ttl=n}return zf(e,[{key:"get",value:function(t){if(!e.supported||!this.enabled)return null;var n=window.localStorage.getItem(this.key);if(lh(n))return null;var r=window.localStorage.getItem("".concat(this.key,"_ttl"));if(lh(r)||r<Date.now())return null;var i=JSON.parse(n);return rh(t)&&t.length?i[t]:i}},{key:"set",value:function(t){if(e.supported&&this.enabled&&th(t)){var n=this.get();lh(n)&&(n={}),bh(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 kh=function(){function e(t,n){var r=this;Hf(this,e),this.elements={count:null,trigger:null,popup:null},sh(t)?this.elements.trigger=t:rh(t)&&(this.elements.trigger=document.querySelector(t)),sh(this.elements.trigger)&&lh(this.elements.trigger.shr)&&(this.config=bh({},fh,n,{networks:uh}),this.console=new ph(this.config.debug),this.storage=new wh(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 zf(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(!lh(this.network)&&this.networkConfig.popup){ch(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&&ih(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(lh(i))r(new Error("No URL available for ".concat(e.network,".")));else{if(t){var o=e.storage.get(e.target);if(!lh(o)&&Object.keys(o).includes(e.network)){var a=o[e.network];return n(nh(a)?a:0),void e.console.log("getCount for '".concat(e.target,"' for '").concat(e.network,"' resolved from cache."))}}hh(i).then((function(t){var r=0,i=e.elements.trigger.getAttribute("data-shr-display");r=lh(i)?e.networkConfig.shareCount(t):t[i],lh(r)?r=0:(r=parseInt(r,10),!nh(r)&&(r=0)),e.storage.set(Wf({},e.target,Wf({},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=yh(o);r.format&&(1e6<o?c="".concat(s(1e6),"M"):1e3<o&&(c="".concat(s(1e3),"K"))),sh(this.elements.count)?this.elements.count.textContent=c:(mh(this.elements.trigger,vh("span",{class:i.className})),this.elements.count=vh("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 sh(this.elements.trigger)?this.elements.trigger.href:null}},{key:"network",get:function(){var e=this;if(!sh(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 lh(this.network)?null:this.config.networks[this.network]}},{key:"target",get:function(){if(lh(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(lh(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(rh(t)?r=Array.from(document.querySelectorAll(t)):sh(t)?r=[t]:ah(t)?r=Array.from(t):oh(t)&&(r=t.filter(sh)),lh(r))return null;var i=Object.assign({},fh,n);return rh(t)&&i.watch&&new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){sh(n)&&gh(n,t)&&new e(n,i)}))}))})).observe(document.body,{childList:!0,subtree:!0}),r.map((function(t){return new e(t,n)}))}}]),e}(),Eh=function(e){return e&&e.Math==Math&&e},Sh=Eh("object"==typeof globalThis&&globalThis)||Eh("object"==typeof window&&window)||Eh("object"==typeof self&&self)||Eh("object"==typeof e&&e)||Function("return this")(),_h=function(e){try{return!!e()}catch(e){return!0}},Th=!_h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),xh={}.propertyIsEnumerable,Ah=Object.getOwnPropertyDescriptor,Oh={f:Ah&&!xh.call({1:2},1)?function(e){var t=Ah(this,e);return!!t&&t.enumerable}:xh},Ph=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ch={}.toString,Ih=function(e){return Ch.call(e).slice(8,-1)},Rh="".split,jh=_h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ih(e)?Rh.call(e,""):Object(e)}:Object,Lh=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Nh=function(e){return jh(Lh(e))},Mh=function(e){return"object"==typeof e?null!==e:"function"==typeof e},Uh=function(e,t){if(!Mh(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!Mh(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Mh(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!Mh(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Fh={}.hasOwnProperty,Dh=function(e,t){return Fh.call(e,t)},Bh=Sh.document,qh=Mh(Bh)&&Mh(Bh.createElement),Hh=function(e){return qh?Bh.createElement(e):{}},Vh=!Th&&!_h((function(){return 7!=Object.defineProperty(Hh("div"),"a",{get:function(){return 7}}).a})),zh=Object.getOwnPropertyDescriptor,Wh={f:Th?zh:function(e,t){if(e=Nh(e),t=Uh(t,!0),Vh)try{return zh(e,t)}catch(e){}if(Dh(e,t))return Ph(!Oh.f.call(e,t),e[t])}},$h=function(e){if(!Mh(e))throw TypeError(String(e)+" is not an object");return e},Kh=Object.defineProperty,Yh={f:Th?Kh:function(e,t,n){if($h(e),t=Uh(t,!0),$h(n),Vh)try{return Kh(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}},Gh=Th?function(e,t,n){return Yh.f(e,t,Ph(1,n))}:function(e,t,n){return e[t]=n,e},Xh=function(e,t){try{Gh(Sh,e,t)}catch(n){Sh[e]=t}return t},Jh=Sh["__core-js_shared__"]||Xh("__core-js_shared__",{}),Qh=Function.toString;"function"!=typeof Jh.inspectSource&&(Jh.inspectSource=function(e){return Qh.call(e)});var Zh,ed,td,nd=Jh.inspectSource,rd=Sh.WeakMap,id="function"==typeof rd&&/native code/.test(nd(rd)),od=t((function(e){(e.exports=function(e,t){return Jh[e]||(Jh[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),ad=0,sd=Math.random(),cd=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++ad+sd).toString(36)},ld=od("keys"),ud=function(e){return ld[e]||(ld[e]=cd(e))},fd={},hd=Sh.WeakMap;if(id){var dd=new hd,pd=dd.get,gd=dd.has,md=dd.set;Zh=function(e,t){return md.call(dd,e,t),t},ed=function(e){return pd.call(dd,e)||{}},td=function(e){return gd.call(dd,e)}}else{var vd=ud("state");fd[vd]=!0,Zh=function(e,t){return Gh(e,vd,t),t},ed=function(e){return Dh(e,vd)?e[vd]:{}},td=function(e){return Dh(e,vd)}}var yd,bd,wd={set:Zh,get:ed,has:td,enforce:function(e){return td(e)?ed(e):Zh(e,{})},getterFor:function(e){return function(t){var n;if(!Mh(t)||(n=ed(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},kd=t((function(e){var t=wd.get,n=wd.enforce,r=String(String).split("String");(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||Dh(i,"name")||Gh(i,"name",t),n(i).source=r.join("string"==typeof t?t:"")),e!==Sh?(a?!c&&e[t]&&(s=!0):delete e[t],s?e[t]=i:Gh(e,t,i)):s?e[t]=i:Xh(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||nd(this)}))})),Ed=Sh,Sd=function(e){return"function"==typeof e?e:void 0},_d=function(e,t){return arguments.length<2?Sd(Ed[e])||Sd(Sh[e]):Ed[e]&&Ed[e][t]||Sh[e]&&Sh[e][t]},Td=Math.ceil,xd=Math.floor,Ad=function(e){return isNaN(e=+e)?0:(e>0?xd:Td)(e)},Od=Math.min,Pd=function(e){return e>0?Od(Ad(e),9007199254740991):0},Cd=Math.max,Id=Math.min,Rd=function(e,t){var n=Ad(e);return n<0?Cd(n+t,0):Id(n,t)},jd=function(e){return function(t,n,r){var i,o=Nh(t),a=Pd(o.length),s=Rd(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}},Ld={includes:jd(!0),indexOf:jd(!1)},Nd=Ld.indexOf,Md=function(e,t){var n,r=Nh(e),i=0,o=[];for(n in r)!Dh(fd,n)&&Dh(r,n)&&o.push(n);for(;t.length>i;)Dh(r,n=t[i++])&&(~Nd(o,n)||o.push(n));return o},Ud=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fd=Ud.concat("length","prototype"),Dd={f:Object.getOwnPropertyNames||function(e){return Md(e,Fd)}},Bd={f:Object.getOwnPropertySymbols},qd=_d("Reflect","ownKeys")||function(e){var t=Dd.f($h(e)),n=Bd.f;return n?t.concat(n(e)):t},Hd=function(e,t){for(var n=qd(t),r=Yh.f,i=Wh.f,o=0;o<n.length;o++){var a=n[o];Dh(e,a)||r(e,a,i(t,a))}},Vd=/#|\.prototype\./,zd=function(e,t){var n=$d[Wd(e)];return n==Yd||n!=Kd&&("function"==typeof t?_h(t):!!t)},Wd=zd.normalize=function(e){return String(e).replace(Vd,".").toLowerCase()},$d=zd.data={},Kd=zd.NATIVE="N",Yd=zd.POLYFILL="P",Gd=zd,Xd=Wh.f,Jd=function(e,t){var n,r,i,o,a,s=e.target,c=e.global,l=e.stat;if(n=c?Sh:l?Sh[s]||Xh(s,{}):(Sh[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Xd(n,r))&&a.value:n[r],!Gd(c?r:s+(l?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Hd(o,i)}(e.sham||i&&i.sham)&&Gh(o,"sham",!0),kd(n,r,o,e)}},Qd=Array.isArray||function(e){return"Array"==Ih(e)},Zd=function(e){return Object(Lh(e))},ep=function(e,t,n){var r=Uh(t);r in e?Yh.f(e,r,Ph(0,n)):e[r]=n},tp=!!Object.getOwnPropertySymbols&&!_h((function(){return!String(Symbol())})),np=tp&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,rp=od("wks"),ip=Sh.Symbol,op=np?ip:ip&&ip.withoutSetter||cd,ap=function(e){return Dh(rp,e)||(tp&&Dh(ip,e)?rp[e]=ip[e]:rp[e]=op("Symbol."+e)),rp[e]},sp=ap("species"),cp=function(e,t){var n;return Qd(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Qd(n.prototype)?Mh(n)&&null===(n=n[sp])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},lp=_d("navigator","userAgent")||"",up=Sh.process,fp=up&&up.versions,hp=fp&&fp.v8;hp?bd=(yd=hp.split("."))[0]+yd[1]:lp&&(!(yd=lp.match(/Edge\/(\d+)/))||yd[1]>=74)&&(yd=lp.match(/Chrome\/(\d+)/))&&(bd=yd[1]);var dp=bd&&+bd,pp=ap("species"),gp=function(e){return dp>=51||!_h((function(){var t=[];return(t.constructor={})[pp]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},mp=ap("isConcatSpreadable"),vp=dp>=51||!_h((function(){var e=[];return e[mp]=!1,e.concat()[0]!==e})),yp=gp("concat"),bp=function(e){if(!Mh(e))return!1;var t=e[mp];return void 0!==t?!!t:Qd(e)};Jd({target:"Array",proto:!0,forced:!vp||!yp},{concat:function(e){var t,n,r,i,o,a=Zd(this),s=cp(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],bp(o)){if(c+(i=Pd(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&ep(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");ep(s,c++,o)}return s.length=c,s}});var wp=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},kp=function(e,t,n){if(wp(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)}},Ep=[].push,Sp=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=5==e||o;return function(s,c,l,u){for(var f,h,d=Zd(s),p=jh(d),g=kp(c,l,3),m=Pd(p.length),v=0,y=u||cp,b=t?y(s,m):n?y(s,0):void 0;m>v;v++)if((a||v in p)&&(h=g(f=p[v],v,d),e))if(t)b[v]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:Ep.call(b,f)}else if(i)return!1;return o?-1:r||i?i:b}},_p={forEach:Sp(0),map:Sp(1),filter:Sp(2),some:Sp(3),every:Sp(4),find:Sp(5),findIndex:Sp(6)},Tp=Object.defineProperty,xp={},Ap=function(e){throw e},Op=function(e,t){if(Dh(xp,e))return xp[e];t||(t={});var n=[][e],r=!!Dh(t,"ACCESSORS")&&t.ACCESSORS,i=Dh(t,0)?t[0]:Ap,o=Dh(t,1)?t[1]:void 0;return xp[e]=!!n&&!_h((function(){if(r&&!Th)return!0;var e={length:-1};r?Tp(e,1,{enumerable:!0,get:Ap}):e[1]=1,n.call(e,i,o)}))},Pp=_p.filter,Cp=gp("filter"),Ip=Op("filter");Jd({target:"Array",proto:!0,forced:!Cp||!Ip},{filter:function(e){return Pp(this,e,arguments.length>1?arguments[1]:void 0)}});var Rp,jp=Object.keys||function(e){return Md(e,Ud)},Lp=Th?Object.defineProperties:function(e,t){$h(e);for(var n,r=jp(t),i=r.length,o=0;i>o;)Yh.f(e,n=r[o++],t[n]);return e},Np=_d("document","documentElement"),Mp=ud("IE_PROTO"),Up=function(){},Fp=function(e){return"<script>"+e+"<\/script>"},Dp=function(){try{Rp=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Dp=Rp?function(e){e.write(Fp("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Rp):((t=Hh("iframe")).style.display="none",Np.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Fp("document.F=Object")),e.close(),e.F);for(var n=Ud.length;n--;)delete Dp.prototype[Ud[n]];return Dp()};fd[Mp]=!0;var Bp=Object.create||function(e,t){var n;return null!==e?(Up.prototype=$h(e),n=new Up,Up.prototype=null,n[Mp]=e):n=Dp(),void 0===t?n:Lp(n,t)},qp=ap("unscopables"),Hp=Array.prototype;null==Hp[qp]&&Yh.f(Hp,qp,{configurable:!0,value:Bp(null)});var Vp=function(e){Hp[qp][e]=!0},zp=_p.find,Wp=!0,$p=Op("find");"find"in[]&&Array(1).find((function(){Wp=!1})),Jd({target:"Array",proto:!0,forced:Wp||!$p},{find:function(e){return zp(this,e,arguments.length>1?arguments[1]:void 0)}}),Vp("find");var Kp=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}},Yp={},Gp=ap("iterator"),Xp=Array.prototype,Jp=function(e){return void 0!==e&&(Yp.Array===e||Xp[Gp]===e)},Qp={};Qp[ap("toStringTag")]="z";var Zp="[object z]"===String(Qp),eg=ap("toStringTag"),tg="Arguments"==Ih(function(){return arguments}()),ng=Zp?Ih: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),eg))?n:tg?Ih(t):"Object"==(r=Ih(t))&&"function"==typeof t.callee?"Arguments":r},rg=ap("iterator"),ig=function(e){if(null!=e)return e[rg]||e["@@iterator"]||Yp[ng(e)]},og=function(e){var t,n,r,i,o,a,s=Zd(e),c="function"==typeof this?this:Array,l=arguments.length,u=l>1?arguments[1]:void 0,f=void 0!==u,h=ig(s),d=0;if(f&&(u=kp(u,l>2?arguments[2]:void 0,2)),null==h||c==Array&&Jp(h))for(n=new c(t=Pd(s.length));t>d;d++)a=f?u(s[d],d):s[d],ep(n,d,a);else for(o=(i=h.call(s)).next,n=new c;!(r=o.call(i)).done;d++)a=f?Kp(i,u,[r.value,d],!0):r.value,ep(n,d,a);return n.length=d,n},ag=ap("iterator"),sg=!1;try{var cg=0,lg={next:function(){return{done:!!cg++}},return:function(){sg=!0}};lg[ag]=function(){return this},Array.from(lg,(function(){throw 2}))}catch(e){}var ug=function(e,t){if(!t&&!sg)return!1;var n=!1;try{var r={};r[ag]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},fg=!ug((function(e){Array.from(e)}));Jd({target:"Array",stat:!0,forced:fg},{from:og});var hg=Ld.includes,dg=Op("indexOf",{ACCESSORS:!0,1:0});Jd({target:"Array",proto:!0,forced:!dg},{includes:function(e){return hg(this,e,arguments.length>1?arguments[1]:void 0)}}),Vp("includes");var pg,gg,mg,vg=!_h((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),yg=ud("IE_PROTO"),bg=Object.prototype,wg=vg?Object.getPrototypeOf:function(e){return e=Zd(e),Dh(e,yg)?e[yg]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?bg:null},kg=ap("iterator"),Eg=!1;[].keys&&("next"in(mg=[].keys())?(gg=wg(wg(mg)))!==Object.prototype&&(pg=gg):Eg=!0),null==pg&&(pg={}),Dh(pg,kg)||Gh(pg,kg,(function(){return this}));var Sg={IteratorPrototype:pg,BUGGY_SAFARI_ITERATORS:Eg},_g=Yh.f,Tg=ap("toStringTag"),xg=function(e,t,n){e&&!Dh(e=n?e:e.prototype,Tg)&&_g(e,Tg,{configurable:!0,value:t})},Ag=Sg.IteratorPrototype,Og=function(){return this},Pg=function(e,t,n){var r=t+" Iterator";return e.prototype=Bp(Ag,{next:Ph(1,n)}),xg(e,r,!1),Yp[r]=Og,e},Cg=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 $h(n),function(e){if(!Mh(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Ig=Sg.IteratorPrototype,Rg=Sg.BUGGY_SAFARI_ITERATORS,jg=ap("iterator"),Lg=function(){return this},Ng=function(e,t,n,r,i,o,a){Pg(n,t,r);var s,c,l,u=function(e){if(e===i&&g)return g;if(!Rg&&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[jg]||d["@@iterator"]||i&&d[i],g=!Rg&&p||u(i),m="Array"==t&&d.entries||p;if(m&&(s=wg(m.call(new e)),Ig!==Object.prototype&&s.next&&(wg(s)!==Ig&&(Cg?Cg(s,Ig):"function"!=typeof s[jg]&&Gh(s,jg,Lg)),xg(s,f,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),d[jg]!==g&&Gh(d,jg,g),Yp[t]=g,i)if(c={values:u("values"),keys:o?g:u("keys"),entries:u("entries")},a)for(l in c)!Rg&&!h&&l in d||kd(d,l,c[l]);else Jd({target:t,proto:!0,forced:Rg||h},c);return c},Mg=wd.set,Ug=wd.getterFor("Array Iterator"),Fg=Ng(Array,"Array",(function(e,t){Mg(this,{type:"Array Iterator",target:Nh(e),index:0,kind:t})}),(function(){var e=Ug(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");Yp.Arguments=Yp.Array,Vp("keys"),Vp("values"),Vp("entries");var Dg=function(e,t){var n=[][e];return!!n&&_h((function(){n.call(null,t||function(){throw 1},1)}))},Bg=[].join,qg=jh!=Object,Hg=Dg("join",",");Jd({target:"Array",proto:!0,forced:qg||!Hg},{join:function(e){return Bg.call(Nh(this),void 0===e?",":e)}});var Vg=_p.map,zg=gp("map"),Wg=Op("map");Jd({target:"Array",proto:!0,forced:!zg||!Wg},{map:function(e){return Vg(this,e,arguments.length>1?arguments[1]:void 0)}});var $g=function(e,t,n){var r,i;return Cg&&"function"==typeof(r=t.constructor)&&r!==n&&Mh(i=r.prototype)&&i!==n.prototype&&Cg(e,i),e},Kg="\t\n\v\f\r \u2028\u2029\ufeff",Yg="["+Kg+"]",Gg=RegExp("^"+Yg+Yg+"*"),Xg=RegExp(Yg+Yg+"*$"),Jg=function(e){return function(t){var n=String(Lh(t));return 1&e&&(n=n.replace(Gg,"")),2&e&&(n=n.replace(Xg,"")),n}},Qg={start:Jg(1),end:Jg(2),trim:Jg(3)},Zg=Dd.f,em=Wh.f,tm=Yh.f,nm=Qg.trim,rm=Sh.Number,im=rm.prototype,om="Number"==Ih(Bp(im)),am=function(e){var t,n,r,i,o,a,s,c,l=Uh(e,!1);if("string"==typeof l&&l.length>2)if(43===(t=(l=nm(l)).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(Gd("Number",!rm(" 0o1")||!rm("0b1")||rm("+0x1"))){for(var sm,cm=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof cm&&(om?_h((function(){im.valueOf.call(n)})):"Number"!=Ih(n))?$g(new rm(am(t)),n,cm):am(t)},lm=Th?Zg(rm):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),um=0;lm.length>um;um++)Dh(rm,sm=lm[um])&&!Dh(cm,sm)&&tm(cm,sm,em(rm,sm));cm.prototype=im,im.constructor=cm,kd(Sh,"Number",cm)}var fm=_h((function(){jp(1)}));Jd({target:"Object",stat:!0,forced:fm},{keys:function(e){return jp(Zd(e))}});var hm=Zp?{}.toString:function(){return"[object "+ng(this)+"]"};Zp||kd(Object.prototype,"toString",hm,{unsafe:!0});var dm=function(){var e=$h(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function pm(e,t){return RegExp(e,t)}var gm={UNSUPPORTED_Y:_h((function(){var e=pm("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:_h((function(){var e=pm("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},mm=RegExp.prototype.exec,vm=String.prototype.replace,ym=mm,bm=function(){var e=/a/,t=/b*/g;return mm.call(e,"a"),mm.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),wm=gm.UNSUPPORTED_Y||gm.BROKEN_CARET,km=void 0!==/()??/.exec("")[1];(bm||km||wm)&&(ym=function(e){var t,n,r,i,o=this,a=wm&&o.sticky,s=dm.call(o),c=o.source,l=0,u=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),u=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(c="(?: "+c+")",u=" "+u,l++),n=new RegExp("^(?:"+c+")",s)),km&&(n=new RegExp("^"+c+"$(?!\\s)",s)),bm&&(t=o.lastIndex),r=mm.call(a?n:o,u),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:bm&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),km&&r&&r.length>1&&vm.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var Em=ym;Jd({target:"RegExp",proto:!0,forced:/./.exec!==Em},{exec:Em});var Sm=RegExp.prototype,_m=Sm.toString,Tm=_h((function(){return"/a/b"!=_m.call({source:"a",flags:"b"})})),xm="toString"!=_m.name;(Tm||xm)&&kd(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 Sm)?dm.call(e):n)}),{unsafe:!0});var Am=ap("match"),Om=function(e){var t;return Mh(e)&&(void 0!==(t=e[Am])?!!t:"RegExp"==Ih(e))},Pm=function(e){if(Om(e))throw TypeError("The method doesn't accept regular expressions");return e},Cm=ap("match"),Im=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Cm]=!1,"/./"[e](t)}catch(e){}}return!1};Jd({target:"String",proto:!0,forced:!Im("includes")},{includes:function(e){return!!~String(Lh(this)).indexOf(Pm(e),arguments.length>1?arguments[1]:void 0)}});var Rm=function(e){return function(t,n){var r,i,o=String(Lh(t)),a=Ad(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?e?o.charAt(a):r:e?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},jm={codeAt:Rm(!1),charAt:Rm(!0)},Lm=jm.charAt,Nm=wd.set,Mm=wd.getterFor("String Iterator");Ng(String,"String",(function(e){Nm(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=Mm(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Lm(n,r),t.index+=e.length,{value:e,done:!1})}));var Um=ap("species"),Fm=!_h((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Dm="$0"==="a".replace(/./,"$0"),Bm=ap("replace"),qm=!!/./[Bm]&&""===/./[Bm]("a","$0"),Hm=!_h((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]})),Vm=function(e,t,n,r){var i=ap(e),o=!_h((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!_h((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Um]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||"replace"===e&&(!Fm||!Dm||qm)||"split"===e&&!Hm){var s=/./[i],c=n(i,""[e],(function(e,t,n,r,i){return t.exec===Em?o&&!i?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Dm,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:qm}),l=c[0],u=c[1];kd(String.prototype,e,l),kd(RegExp.prototype,i,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)})}r&&Gh(RegExp.prototype[i],"sham",!0)},zm=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},Wm=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"!==Ih(e))throw TypeError("RegExp#exec called on incompatible receiver");return Em.call(e,t)};Vm("search",1,(function(e,t,n){return[function(t){var n=Lh(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;zm(a,0)||(i.lastIndex=0);var s=Wm(i,o);return zm(i.lastIndex,a)||(i.lastIndex=a),null===s?-1:s.index}]}));var $m=function(e,t,n){for(var r in t)kd(e,r,t[r],n);return e},Km=!_h((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ym=t((function(e){var t=Yh.f,n=cd("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(!Mh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Dh(e,n)){if(!i(e))return"F";if(!t)return"E";o(e)}return e[n].objectID},getWeakData:function(e,t){if(!Dh(e,n)){if(!i(e))return!0;if(!t)return!1;o(e)}return e[n].weakData},onFreeze:function(e){return Km&&a.REQUIRED&&i(e)&&!Dh(e,n)&&o(e),e}};fd[n]=!0})),Gm=(Ym.REQUIRED,Ym.fastKey,Ym.getWeakData,Ym.onFreeze,t((function(e){var t=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,n,r,i,o){var a,s,c,l,u,f,h,d=kp(n,r,i?2:1);if(o)a=e;else{if("function"!=typeof(s=ig(e)))throw TypeError("Target is not iterable");if(Jp(s)){for(c=0,l=Pd(e.length);l>c;c++)if((u=i?d($h(h=e[c])[0],h[1]):d(e[c]))&&u instanceof t)return u;return new t(!1)}a=s.call(e)}for(f=a.next;!(h=f.call(a)).done;)if("object"==typeof(u=Kp(a,d,h.value,i))&&u&&u instanceof t)return u;return new t(!1)}).stop=function(e){return new t(!0,e)}}))),Xm=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Jm=Ym.getWeakData,Qm=wd.set,Zm=wd.getterFor,ev=_p.find,tv=_p.findIndex,nv=0,rv=function(e){return e.frozen||(e.frozen=new iv)},iv=function(){this.entries=[]},ov=function(e,t){return ev(e.entries,(function(e){return e[0]===t}))};iv.prototype={get:function(e){var t=ov(this,e);if(t)return t[1]},has:function(e){return!!ov(this,e)},set:function(e,t){var n=ov(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=tv(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}};var av={getConstructor:function(e,t,n,r){var i=e((function(e,o){Xm(e,i,t),Qm(e,{type:t,id:nv++,frozen:void 0}),null!=o&&Gm(o,e[r],e,n)})),o=Zm(t),a=function(e,t,n){var r=o(e),i=Jm($h(t),!0);return!0===i?rv(r).set(t,n):i[r.id]=n,e};return $m(i.prototype,{delete:function(e){var t=o(this);if(!Mh(e))return!1;var n=Jm(e);return!0===n?rv(t).delete(e):n&&Dh(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!Mh(e))return!1;var n=Jm(e);return!0===n?rv(t).has(e):n&&Dh(n,t.id)}}),$m(i.prototype,n?{get:function(e){var t=o(this);if(Mh(e)){var n=Jm(e);return!0===n?rv(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}},sv=(t((function(e){var t,n=wd.enforce,r=!Sh.ActiveXObject&&"ActiveXObject"in Sh,i=Object.isExtensible,o=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},a=e.exports=function(e,t,n){var r=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=r?"set":"add",a=Sh[e],s=a&&a.prototype,c=a,l={},u=function(e){var t=s[e];kd(s,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!Mh(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return i&&!Mh(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!Mh(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(Gd(e,"function"!=typeof a||!(i||s.forEach&&!_h((function(){(new a).entries().next()})))))c=n.getConstructor(t,e,r,o),Ym.REQUIRED=!0;else if(Gd(e,!0)){var f=new c,h=f[o](i?{}:-0,1)!=f,d=_h((function(){f.has(1)})),p=ug((function(e){new a(e)})),g=!i&&_h((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));p||((c=t((function(t,n){Xm(t,c,e);var i=$g(new a,t,c);return null!=n&&Gm(n,i[o],i,r),i}))).prototype=s,s.constructor=c),(d||g)&&(u("delete"),u("has"),r&&u("get")),(g||h)&&u(o),i&&s.clear&&delete s.clear}return l[e]=c,Jd({global:!0,forced:c!=a},l),xg(c,e),i||n.setStrong(c,e,r),c}("WeakMap",o,av);if(id&&r){t=av.getConstructor(o,"WeakMap",!0),Ym.REQUIRED=!0;var s=a.prototype,c=s.delete,l=s.has,u=s.get,f=s.set;$m(s,{delete:function(e){if(Mh(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(Mh(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(Mh(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(Mh(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}),cv=ap("iterator"),lv=ap("toStringTag"),uv=Fg.values;for(var fv in sv){var hv=Sh[fv],dv=hv&&hv.prototype;if(dv){if(dv[cv]!==uv)try{Gh(dv,cv,uv)}catch(e){dv[cv]=uv}if(dv[lv]||Gh(dv,lv,fv),sv[fv])for(var pv in Fg)if(dv[pv]!==Fg[pv])try{Gh(dv,pv,Fg[pv])}catch(e){dv[pv]=Fg[pv]}}}var gv=_p.every,mv=Dg("every"),vv=Op("every");Jd({target:"Array",proto:!0,forced:!mv||!vv},{every:function(e){return gv(this,e,arguments.length>1?arguments[1]:void 0)}});var yv=_p.forEach,bv=Dg("forEach"),wv=Op("forEach"),kv=bv&&wv?[].forEach:function(e){return yv(this,e,arguments.length>1?arguments[1]:void 0)};Jd({target:"Array",proto:!0,forced:[].forEach!=kv},{forEach:kv});var Ev=Ld.indexOf,Sv=[].indexOf,_v=!!Sv&&1/[1].indexOf(1,-0)<0,Tv=Dg("indexOf"),xv=Op("indexOf",{ACCESSORS:!0,1:0});Jd({target:"Array",proto:!0,forced:_v||!Tv||!xv},{indexOf:function(e){return _v?Sv.apply(this,arguments)||0:Ev(this,e,arguments.length>1?arguments[1]:void 0)}});var Av=Object.assign,Ov=Object.defineProperty,Pv=!Av||_h((function(){if(Th&&1!==Av({b:1},Av(Ov({},"a",{enumerable:!0,get:function(){Ov(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=Av({},e)[n]||"abcdefghijklmnopqrst"!=jp(Av({},t)).join("")}))?function(e,t){for(var n=Zd(e),r=arguments.length,i=1,o=Bd.f,a=Oh.f;r>i;)for(var s,c=jh(arguments[i++]),l=o?jp(c).concat(o(c)):jp(c),u=l.length,f=0;u>f;)s=l[f++],Th&&!a.call(c,s)||(n[s]=c[s]);return n}:Av;Jd({target:"Object",stat:!0,forced:Object.assign!==Pv},{assign:Pv});var Cv=ap("species"),Iv=function(e,t){var n,r=$h(e).constructor;return void 0===r||null==(n=$h(r)[Cv])?t:wp(n)},Rv=jm.charAt,jv=function(e,t,n){return t+(n?Rv(e,t).length:1)},Lv=[].push,Nv=Math.min,Mv=!_h((function(){return!RegExp(4294967295,"y")}));Vm("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(Lh(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!Om(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=Em.call(f,r))&&!((a=f.lastIndex)>u&&(c.push(r.slice(u,o.index)),o.length>1&&o.index<r.length&&Lv.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=Lh(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=Iv(a,RegExp),l=a.unicode,u=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Mv?"y":"g"),f=new c(Mv?a:"^(?:"+a.source+")",u),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===Wm(f,s)?[s]:[];for(var d=0,p=0,g=[];p<s.length;){f.lastIndex=Mv?p:0;var m,v=Wm(f,Mv?s:s.slice(p));if(null===v||(m=Nv(Pd(f.lastIndex+(Mv?0:p)),s.length))===d)p=jv(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}]}),!Mv);var Uv=Qg.trim;for(var Fv in Jd({target:"String",proto:!0,forced:function(e){return _h((function(){return!!Kg[e]()||"
"!="
"[e]()||Kg[e].name!==e}))}("trim")},{trim:function(){return Uv(this)}}),sv){var Dv=Sh[Fv],Bv=Dv&&Dv.prototype;if(Bv&&Bv.forEach!==kv)try{Gh(Bv,"forEach",kv)}catch(e){Bv.forEach=kv}}var qv=ap("iterator"),Hv=!_h((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[qv]||"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||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),Vv=/[^\0-\u007E]/,zv=/[.\u3002\uFF0E\uFF61]/g,Wv=Math.floor,$v=String.fromCharCode,Kv=function(e){return e+22+75*(e<26)},Yv=function(e,t,n){var r=0;for(e=n?Wv(e/700):e>>1,e+=Wv(e/t);e>455;r+=36)e=Wv(e/35);return Wv(r+36*e/(e+38))},Gv=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($v(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>Wv((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($v(Kv(p+g%m))),h=Wv(g/m)}r.push($v(Kv(h))),s=Yv(a,f,l==c),a=0,++l}}++a,++o}return r.join("")},Xv=function(e){var t=ig(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return $h(t.call(e))},Jv=_d("fetch"),Qv=_d("Headers"),Zv=ap("iterator"),ey=wd.set,ty=wd.getterFor("URLSearchParams"),ny=wd.getterFor("URLSearchParamsIterator"),ry=/\+/g,iy=Array(4),oy=function(e){return iy[e-1]||(iy[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},ay=function(e){try{return decodeURIComponent(e)}catch(t){return e}},sy=function(e){var t=e.replace(ry," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(oy(n--),ay);return t}},cy=/[!'()~]|%20/g,ly={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},uy=function(e){return ly[e]},fy=function(e){return encodeURIComponent(e).replace(cy,uy)},hy=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:sy(r.shift()),value:sy(r.join("="))}))},dy=function(e){this.entries.length=0,hy(this.entries,e)},py=function(e,t){if(e<t)throw TypeError("Not enough arguments")},gy=Pg((function(e,t){ey(this,{type:"URLSearchParamsIterator",iterator:Xv(ty(e).entries),kind:t})}),"Iterator",(function(){var e=ny(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})),my=function(){Xm(this,my,"URLSearchParams");var e,t,n,r,i,o,a,s,c,l=arguments.length>0?arguments[0]:void 0,u=this,f=[];if(ey(u,{type:"URLSearchParams",entries:f,updateURL:function(){},updateSearchParams:dy}),void 0!==l)if(Mh(l))if("function"==typeof(e=ig(l)))for(n=(t=e.call(l)).next;!(r=n.call(t)).done;){if((a=(o=(i=Xv($h(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");f.push({key:a.value+"",value:s.value+""})}else for(c in l)Dh(l,c)&&f.push({key:c,value:l[c]+""});else hy(f,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},vy=my.prototype;$m(vy,{append:function(e,t){py(arguments.length,2);var n=ty(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){py(arguments.length,1);for(var t=ty(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){py(arguments.length,1);for(var t=ty(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){py(arguments.length,1);for(var t=ty(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){py(arguments.length,1);for(var t=ty(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){py(arguments.length,1);for(var n,r=ty(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()},sort:function(){var e,t,n,r=ty(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=ty(this).entries,r=kp(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 gy(this,"keys")},values:function(){return new gy(this,"values")},entries:function(){return new gy(this,"entries")}},{enumerable:!0}),kd(vy,Zv,vy.entries),kd(vy,"toString",(function(){for(var e,t=ty(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(fy(e.key)+"="+fy(e.value));return n.join("&")}),{enumerable:!0}),xg(my,"URLSearchParams"),Jd({global:!0,forced:!Hv},{URLSearchParams:my}),Hv||"function"!=typeof Jv||"function"!=typeof Qv||Jd({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],Mh(t)&&(n=t.body,"URLSearchParams"===ng(n)&&((r=t.headers?new Qv(t.headers):new Qv).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=Bp(t,{body:Ph(0,String(n)),headers:Ph(0,r)}))),i.push(t)),Jv.apply(this,i)}});var yy={URLSearchParams:my,getState:ty},by=jm.codeAt,wy=Sh.URL,ky=yy.URLSearchParams,Ey=yy.getState,Sy=wd.set,_y=wd.getterFor("URL"),Ty=Math.floor,xy=Math.pow,Ay=/[A-Za-z]/,Oy=/[\d+\-.A-Za-z]/,Py=/\d/,Cy=/^(0x|0X)/,Iy=/^[0-7]+$/,Ry=/^\d+$/,jy=/^[\dA-Fa-f]+$/,Ly=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Ny=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,My=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Uy=/[\u0009\u000A\u000D]/g,Fy=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=By(t.slice(1,-1))))return"Invalid host";e.host=n}else if(Yy(e)){if(t=function(e){var t,n,r=[],i=e.toLowerCase().replace(zv,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(Vv.test(n)?"xn--"+Gv(n):n);return r.join(".")}(t),Ly.test(t))return"Invalid host";if(null===(n=Dy(t)))return"Invalid host";e.host=n}else{if(Ny.test(t))return"Invalid host";for(n="",r=og(t),i=0;i<r.length;i++)n+=$y(r[i],Hy);e.host=n}},Dy=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&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=Cy.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?Ry:8==o?Iy:jy).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>=xy(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*xy(256,3-r);return s},By=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&&jy.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(!Py.test(h()))return;for(;Py.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},qy=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=Ty(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},Hy={},Vy=Pv({},Hy,{" ":1,'"':1,"<":1,">":1,"`":1}),zy=Pv({},Vy,{"#":1,"?":1,"{":1,"}":1}),Wy=Pv({},zy,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),$y=function(e,t){var n=by(e,0);return n>32&&n<127&&!Dh(t,e)?e:encodeURIComponent(e)},Ky={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Yy=function(e){return Dh(Ky,e.scheme)},Gy=function(e){return""!=e.username||""!=e.password},Xy=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Jy=function(e,t){var n;return 2==e.length&&Ay.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},Qy=function(e){var t;return e.length>1&&Jy(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},Zy=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Jy(t[0],!0)||t.pop()},eb=function(e){return"."===e||"%2e"===e.toLowerCase()},tb={},nb={},rb={},ib={},ob={},ab={},sb={},cb={},lb={},ub={},fb={},hb={},db={},pb={},gb={},mb={},vb={},yb={},bb={},wb={},kb={},Eb=function(e,t,n,r){var i,o,a,s,c,l=n||tb,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(My,"")),t=t.replace(Uy,""),i=og(t);u<=i.length;){switch(o=i[u],l){case tb:if(!o||!Ay.test(o)){if(n)return"Invalid scheme";l=rb;continue}f+=o.toLowerCase(),l=nb;break;case nb:if(o&&(Oy.test(o)||"+"==o||"-"==o||"."==o))f+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";f="",l=rb,u=0;continue}if(n&&(Yy(e)!=Dh(Ky,f)||"file"==f&&(Gy(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void(Yy(e)&&Ky[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?l=pb:Yy(e)&&r&&r.scheme==e.scheme?l=ib:Yy(e)?l=cb:"/"==i[u+1]?(l=ob,u++):(e.cannotBeABaseURL=!0,e.path.push(""),l=bb)}break;case rb: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=kb;break}l="file"==r.scheme?pb:ab;continue;case ib:if("/"!=o||"/"!=i[u+1]){l=ab;continue}l=lb,u++;break;case ob:if("/"==o){l=ub;break}l=yb;continue;case ab: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&&Yy(e))l=sb;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=wb;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=yb;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=kb}break;case sb:if(!Yy(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,l=yb;continue}l=ub}else l=lb;break;case cb:if(l=lb,"/"!=o||"/"!=f.charAt(u+1))continue;u++;break;case lb:if("/"!=o&&"\\"!=o){l=ub;continue}break;case ub:if("@"==o){h&&(f="%40"+f),h=!0,a=og(f);for(var g=0;g<a.length;g++){var m=a[g];if(":"!=m||p){var v=$y(m,Wy);p?e.password+=v:e.username+=v}else p=!0}f=""}else if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&Yy(e)){if(h&&""==f)return"Invalid authority";u-=og(f).length+1,f="",l=fb}else f+=o;break;case fb:case hb:if(n&&"file"==e.scheme){l=mb;continue}if(":"!=o||d){if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&Yy(e)){if(Yy(e)&&""==f)return"Invalid host";if(n&&""==f&&(Gy(e)||null!==e.port))return;if(s=Fy(e,f))return s;if(f="",l=vb,n)return;continue}"["==o?d=!0:"]"==o&&(d=!1),f+=o}else{if(""==f)return"Invalid host";if(s=Fy(e,f))return s;if(f="",l=db,n==hb)return}break;case db:if(!Py.test(o)){if(null==o||"/"==o||"?"==o||"#"==o||"\\"==o&&Yy(e)||n){if(""!=f){var y=parseInt(f,10);if(y>65535)return"Invalid port";e.port=Yy(e)&&y===Ky[e.scheme]?null:y,f=""}if(n)return;l=vb;continue}return"Invalid port"}f+=o;break;case pb:if(e.scheme="file","/"==o||"\\"==o)l=gb;else{if(!r||"file"!=r.scheme){l=yb;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=wb;else{if("#"!=o){Qy(i.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),Zy(e)),l=yb;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",l=kb}}break;case gb:if("/"==o||"\\"==o){l=mb;break}r&&"file"==r.scheme&&!Qy(i.slice(u).join(""))&&(Jy(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),l=yb;continue;case mb:if(null==o||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&Jy(f))l=yb;else if(""==f){if(e.host="",n)return;l=vb}else{if(s=Fy(e,f))return s;if("localhost"==e.host&&(e.host=""),n)return;f="",l=vb}continue}f+=o;break;case vb:if(Yy(e)){if(l=yb,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(null!=o&&(l=yb,"/"!=o))continue}else e.fragment="",l=kb;else e.query="",l=wb;break;case yb:if(null==o||"/"==o||"\\"==o&&Yy(e)||!n&&("?"==o||"#"==o)){if(".."===(c=(c=f).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(Zy(e),"/"==o||"\\"==o&&Yy(e)||e.path.push("")):eb(f)?"/"==o||"\\"==o&&Yy(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Jy(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=wb):"#"==o&&(e.fragment="",l=kb)}else f+=$y(o,zy);break;case bb:"?"==o?(e.query="",l=wb):"#"==o?(e.fragment="",l=kb):null!=o&&(e.path[0]+=$y(o,Hy));break;case wb:n||"#"!=o?null!=o&&("'"==o&&Yy(e)?e.query+="%27":e.query+="#"==o?"%23":$y(o,Hy)):(e.fragment="",l=kb);break;case kb:null!=o&&(e.fragment+=$y(o,Vy))}u++}},Sb=function(e){var t,n,r=Xm(this,Sb,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),a=Sy(r,{type:"URL"});if(void 0!==i)if(i instanceof Sb)t=_y(i);else if(n=Eb(t={},String(i)))throw TypeError(n);if(n=Eb(a,o,null,t))throw TypeError(n);var s=a.searchParams=new ky,c=Ey(s);c.updateSearchParams(a.query),c.updateURL=function(){a.query=String(s)||null},Th||(r.href=Tb.call(r),r.origin=xb.call(r),r.protocol=Ab.call(r),r.username=Ob.call(r),r.password=Pb.call(r),r.host=Cb.call(r),r.hostname=Ib.call(r),r.port=Rb.call(r),r.pathname=jb.call(r),r.search=Lb.call(r),r.searchParams=Nb.call(r),r.hash=Mb.call(r))},_b=Sb.prototype,Tb=function(){var e=_y(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+="//",Gy(e)&&(l+=n+(r?":"+r:"")+"@"),l+=qy(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},xb=function(){var e=_y(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&&Yy(e)?t+"://"+qy(e.host)+(null!==n?":"+n:""):"null"},Ab=function(){return _y(this).scheme+":"},Ob=function(){return _y(this).username},Pb=function(){return _y(this).password},Cb=function(){var e=_y(this),t=e.host,n=e.port;return null===t?"":null===n?qy(t):qy(t)+":"+n},Ib=function(){var e=_y(this).host;return null===e?"":qy(e)},Rb=function(){var e=_y(this).port;return null===e?"":String(e)},jb=function(){var e=_y(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Lb=function(){var e=_y(this).query;return e?"?"+e:""},Nb=function(){return _y(this).searchParams},Mb=function(){var e=_y(this).fragment;return e?"#"+e:""},Ub=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(Th&&Lp(_b,{href:Ub(Tb,(function(e){var t=_y(this),n=String(e),r=Eb(t,n);if(r)throw TypeError(r);Ey(t.searchParams).updateSearchParams(t.query)})),origin:Ub(xb),protocol:Ub(Ab,(function(e){var t=_y(this);Eb(t,String(e)+":",tb)})),username:Ub(Ob,(function(e){var t=_y(this),n=og(String(e));if(!Xy(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=$y(n[r],Wy)}})),password:Ub(Pb,(function(e){var t=_y(this),n=og(String(e));if(!Xy(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=$y(n[r],Wy)}})),host:Ub(Cb,(function(e){var t=_y(this);t.cannotBeABaseURL||Eb(t,String(e),fb)})),hostname:Ub(Ib,(function(e){var t=_y(this);t.cannotBeABaseURL||Eb(t,String(e),hb)})),port:Ub(Rb,(function(e){var t=_y(this);Xy(t)||(""==(e=String(e))?t.port=null:Eb(t,e,db))})),pathname:Ub(jb,(function(e){var t=_y(this);t.cannotBeABaseURL||(t.path=[],Eb(t,e+"",vb))})),search:Ub(Lb,(function(e){var t=_y(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Eb(t,e,wb)),Ey(t.searchParams).updateSearchParams(t.query)})),searchParams:Ub(Nb),hash:Ub(Mb,(function(e){var t=_y(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Eb(t,e,kb)):t.fragment=null}))}),kd(_b,"toJSON",(function(){return Tb.call(this)}),{enumerable:!0}),kd(_b,"toString",(function(){return Tb.call(this)}),{enumerable:!0}),wy){var Fb=wy.createObjectURL,Db=wy.revokeObjectURL;Fb&&kd(Sb,"createObjectURL",(function(e){return Fb.apply(wy,arguments)})),Db&&kd(Sb,"revokeObjectURL",(function(e){return Db.apply(wy,arguments)}))}xg(Sb,"URL"),Jd({global:!0,forced:!Hv,sham:!Th},{URL:Sb});var Bb=_p.some,qb=Dg("some"),Hb=Op("some");Jd({target:"Array",proto:!0,forced:!qb||!Hb},{some:function(e){return Bb(this,e,arguments.length>1?arguments[1]:void 0)}});var Vb="".repeat||function(e){var t=String(Lh(this)),n="",r=Ad(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},zb=1..toFixed,Wb=Math.floor,$b=function(e,t,n){return 0===t?n:t%2==1?$b(e,t-1,n*e):$b(e*e,t/2,n)},Kb=zb&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!_h((function(){zb.call({})}));Jd({target:"Number",proto:!0,forced:Kb},{toFixed:function(e){var t,n,r,i,o=function(e){if("number"!=typeof e&&"Number"!=Ih(e))throw TypeError("Incorrect invocation");return+e}(this),a=Ad(e),s=[0,0,0,0,0,0],c="",l="0",u=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*s[n],s[n]=r%1e7,r=Wb(r/1e7)},f=function(e){for(var t=6,n=0;--t>=0;)n+=s[t],s[t]=Wb(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==s[e]){var n=String(s[e]);t=""===t?n:t+Vb.call("0",7-n.length)+n}return t};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&&(c="-",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*$b(2,69,1))-69)<0?o*$b(2,-t,1):o/$b(2,t,1),n*=4503599627370496,(t=52-t)>0){for(u(0,n),r=a;r>=7;)u(1e7,0),r-=7;for(u($b(10,r,1),0),r=t-1;r>=23;)f(1<<23),r-=23;f(1<<r),u(1,1),f(2),l=h()}else u(0,n),u(1<<-t,0),l=h()+Vb.call("0",a);return l=a>0?c+((i=l.length)<=a?"0."+Vb.call("0",a-i)+l:l.slice(0,i-a)+"."+l.slice(i-a)):c+l}});var Yb=Oh.f,Gb=function(e){return function(t){for(var n,r=Nh(t),i=jp(r),o=i.length,a=0,s=[];o>a;)n=i[a++],Th&&!Yb.call(r,n)||s.push(e?[n,r[n]]:r[n]);return s}},Xb={entries:Gb(!0),values:Gb(!1)},Jb=Xb.entries;Jd({target:"Object",stat:!0},{entries:function(e){return Jb(e)}});var Qb=Xb.values;Jd({target:"Object",stat:!0},{values:function(e){return Qb(e)}});var Zb=Math.max,ew=Math.min,tw=Math.floor,nw=/\$([$&'`]|\d\d?|<[^>]*>)/g,rw=/\$([$&'`]|\d\d?)/g;Vm("replace",2,(function(e,t,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,a=i?"$":"$0";return[function(n,r){var i=Lh(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,r){if(!i&&o||"string"==typeof r&&-1===r.indexOf(a)){var c=n(t,e,this,r);if(c.done)return c.value}var l=$h(e),u=String(this),f="function"==typeof r;f||(r=String(r));var h=l.global;if(h){var d=l.unicode;l.lastIndex=0}for(var p=[];;){var g=Wm(l,u);if(null===g)break;if(p.push(g),!h)break;""===String(g[0])&&(l.lastIndex=jv(u,Pd(l.lastIndex),d))}for(var m,v="",y=0,b=0;b<p.length;b++){g=p[b];for(var w=String(g[0]),k=Zb(ew(Ad(g.index),u.length),0),E=[],S=1;S<g.length;S++)E.push(void 0===(m=g[S])?m:String(m));var _=g.groups;if(f){var T=[w].concat(E,k,u);void 0!==_&&T.push(_);var x=String(r.apply(void 0,T))}else x=s(w,u,k,E,_,r);k>=y&&(v+=u.slice(y,k)+x,y=k+w.length)}return v+u.slice(y)}];function s(e,n,r,i,o,a){var s=r+e.length,c=i.length,l=rw;return void 0!==o&&(o=Zd(o),l=nw),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=tw(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 iw={addCSS:!0,thumbWidth:15,watch:!0};function ow(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}Jd({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var aw=function(e){return null!=e?e.constructor:null},sw=function(e,t){return Boolean(e&&t&&e instanceof t)},cw=function(e){return null==e},lw=function(e){return aw(e)===Object},uw=function(e){return aw(e)===String},fw=function(e){return Array.isArray(e)},hw=function(e){return sw(e,NodeList)},dw=uw,pw=fw,gw=hw,mw=function(e){return sw(e,Element)},vw=function(e){return sw(e,Event)},yw=function(e){return cw(e)||(uw(e)||fw(e)||hw(e))&&!e.length||lw(e)&&!Object.keys(e).length};function bw(e,t){if(t<1){var n=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(n))}return Math.round(e/t)*t}Vm("match",1,(function(e,t,n){return[function(t){var n=Lh(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 Wm(i,o);var a=i.unicode;i.lastIndex=0;for(var s,c=[],l=0;null!==(s=Wm(i,o));){var u=String(s[0]);c[l]=u,""===u&&(i.lastIndex=jv(o,Pd(i.lastIndex),a)),l++}return 0===l?null:c}]}));var ww,kw,Ew,Sw=function(){function e(t,n){Zo(this,e),mw(t)?this.element=t:dw(t)&&(this.element=document.querySelector(t)),mw(this.element)&&yw(this.element.rangeTouch)&&(this.config=Object.assign({},iw,n),this.init())}return ta(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||!vw(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+bw(c*(n/100),s)}},{key:"set",value:function(t){e.enabled&&vw(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(yw(t)||dw(t)?r=Array.from(document.querySelectorAll(dw(t)?t:'input[type="range"]')):mw(t)?r=[t]:gw(t)?r=Array.from(t):pw(t)&&(r=t.filter(mw)),yw(r))return null;var i=Object.assign({},iw,n);if(dw(t)&&i.watch){var o=new MutationObserver((function(n){Array.from(n).forEach((function(n){Array.from(n.addedNodes).forEach((function(n){if(mw(n)&&ow(n,t))new e(n,i)}))}))}));o.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}(),_w=Sh.Promise,Tw=ap("species"),xw=function(e){var t=_d(e),n=Yh.f;Th&&t&&!t[Tw]&&n(t,Tw,{configurable:!0,get:function(){return this}})},Aw=/(iphone|ipod|ipad).*applewebkit/i.test(lp),Ow=Sh.location,Pw=Sh.setImmediate,Cw=Sh.clearImmediate,Iw=Sh.process,Rw=Sh.MessageChannel,jw=Sh.Dispatch,Lw=0,Nw={},Mw=function(e){if(Nw.hasOwnProperty(e)){var t=Nw[e];delete Nw[e],t()}},Uw=function(e){return function(){Mw(e)}},Fw=function(e){Mw(e.data)},Dw=function(e){Sh.postMessage(e+"",Ow.protocol+"//"+Ow.host)};Pw&&Cw||(Pw=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Nw[++Lw]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},ww(Lw),Lw},Cw=function(e){delete Nw[e]},"process"==Ih(Iw)?ww=function(e){Iw.nextTick(Uw(e))}:jw&&jw.now?ww=function(e){jw.now(Uw(e))}:Rw&&!Aw?(Ew=(kw=new Rw).port2,kw.port1.onmessage=Fw,ww=kp(Ew.postMessage,Ew,1)):!Sh.addEventListener||"function"!=typeof postMessage||Sh.importScripts||_h(Dw)?ww="onreadystatechange"in Hh("script")?function(e){Np.appendChild(Hh("script")).onreadystatechange=function(){Np.removeChild(this),Mw(e)}}:function(e){setTimeout(Uw(e),0)}:(ww=Dw,Sh.addEventListener("message",Fw,!1)));var Bw,qw,Hw,Vw,zw,Ww,$w,Kw,Yw={set:Pw,clear:Cw},Gw=Wh.f,Xw=Yw.set,Jw=Sh.MutationObserver||Sh.WebKitMutationObserver,Qw=Sh.process,Zw=Sh.Promise,ek="process"==Ih(Qw),tk=Gw(Sh,"queueMicrotask"),nk=tk&&tk.value;nk||(Bw=function(){var e,t;for(ek&&(e=Qw.domain)&&e.exit();qw;){t=qw.fn,qw=qw.next;try{t()}catch(e){throw qw?Vw():Hw=void 0,e}}Hw=void 0,e&&e.enter()},ek?Vw=function(){Qw.nextTick(Bw)}:Jw&&!Aw?(zw=!0,Ww=document.createTextNode(""),new Jw(Bw).observe(Ww,{characterData:!0}),Vw=function(){Ww.data=zw=!zw}):Zw&&Zw.resolve?($w=Zw.resolve(void 0),Kw=$w.then,Vw=function(){Kw.call($w,Bw)}):Vw=function(){Xw.call(Sh,Bw)});var rk,ik,ok,ak,sk=nk||function(e){var t={fn:e,next:void 0};Hw&&(Hw.next=t),qw||(qw=t,Vw()),Hw=t},ck=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=wp(t),this.reject=wp(n)},lk={f:function(e){return new ck(e)}},uk=function(e,t){if($h(e),Mh(t)&&t.constructor===e)return t;var n=lk.f(e);return(0,n.resolve)(t),n.promise},fk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},hk=Yw.set,dk=ap("species"),pk=wd.get,gk=wd.set,mk=wd.getterFor("Promise"),vk=_w,yk=Sh.TypeError,bk=Sh.document,wk=Sh.process,kk=_d("fetch"),Ek=lk.f,Sk=Ek,_k="process"==Ih(wk),Tk=!!(bk&&bk.createEvent&&Sh.dispatchEvent),xk=Gd("Promise",(function(){if(!(nd(vk)!==String(vk))){if(66===dp)return!0;if(!_k&&"function"!=typeof PromiseRejectionEvent)return!0}if(dp>=51&&/native code/.test(vk))return!1;var e=vk.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[dk]=t,!(e.then((function(){}))instanceof t)})),Ak=xk||!ug((function(e){vk.all(e).catch((function(){}))})),Ok=function(e){var t;return!(!Mh(e)||"function"!=typeof(t=e.then))&&t},Pk=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;sk((function(){for(var i=t.value,o=1==t.state,a=0;r.length>a;){var s,c,l,u=r[a++],f=o?u.ok:u.fail,h=u.resolve,d=u.reject,p=u.domain;try{f?(o||(2===t.rejection&&jk(e,t),t.rejection=1),!0===f?s=i:(p&&p.enter(),s=f(i),p&&(p.exit(),l=!0)),s===u.promise?d(yk("Promise-chain cycle")):(c=Ok(s))?c.call(s,h,d):h(s)):d(i)}catch(e){p&&!l&&p.exit(),d(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Ik(e,t)}))}},Ck=function(e,t,n){var r,i;Tk?((r=bk.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Sh.dispatchEvent(r)):r={promise:t,reason:n},(i=Sh["on"+e])?i(r):"unhandledrejection"===e&&function(e,t){var n=Sh.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Ik=function(e,t){hk.call(Sh,(function(){var n,r=t.value;if(Rk(t)&&(n=fk((function(){_k?wk.emit("unhandledRejection",r,e):Ck("unhandledrejection",e,r)})),t.rejection=_k||Rk(t)?2:1,n.error))throw n.value}))},Rk=function(e){return 1!==e.rejection&&!e.parent},jk=function(e,t){hk.call(Sh,(function(){_k?wk.emit("rejectionHandled",e):Ck("rejectionhandled",e,t.value)}))},Lk=function(e,t,n,r){return function(i){e(t,n,i,r)}},Nk=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Pk(e,t,!0))},Mk=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw yk("Promise can't be resolved itself");var i=Ok(n);i?sk((function(){var r={done:!1};try{i.call(n,Lk(Mk,e,r,t),Lk(Nk,e,r,t))}catch(n){Nk(e,r,n,t)}})):(t.value=n,t.state=1,Pk(e,t,!1))}catch(n){Nk(e,{done:!1},n,t)}}};xk&&(vk=function(e){Xm(this,vk,"Promise"),wp(e),rk.call(this);var t=pk(this);try{e(Lk(Mk,this,t),Lk(Nk,this,t))}catch(e){Nk(this,t,e)}},(rk=function(e){gk(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=$m(vk.prototype,{then:function(e,t){var n=mk(this),r=Ek(Iv(this,vk));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=_k?wk.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Pk(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),ik=function(){var e=new rk,t=pk(e);this.promise=e,this.resolve=Lk(Mk,e,t),this.reject=Lk(Nk,e,t)},lk.f=Ek=function(e){return e===vk||e===ok?new ik(e):Sk(e)},"function"==typeof _w&&(ak=_w.prototype.then,kd(_w.prototype,"then",(function(e,t){var n=this;return new vk((function(e,t){ak.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof kk&&Jd({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return uk(vk,kk.apply(Sh,arguments))}}))),Jd({global:!0,wrap:!0,forced:xk},{Promise:vk}),xg(vk,"Promise",!1),xw("Promise"),ok=_d("Promise"),Jd({target:"Promise",stat:!0,forced:xk},{reject:function(e){var t=Ek(this);return t.reject.call(void 0,e),t.promise}}),Jd({target:"Promise",stat:!0,forced:xk},{resolve:function(e){return uk(this,e)}}),Jd({target:"Promise",stat:!0,forced:Ak},{all:function(e){var t=this,n=Ek(t),r=n.resolve,i=n.reject,o=fk((function(){var n=wp(t.resolve),o=[],a=0,s=1;Gm(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=Ek(t),r=n.reject,i=fk((function(){var i=wp(t.resolve);Gm(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Uk,Fk=Wh.f,Dk="".startsWith,Bk=Math.min,qk=Im("startsWith"),Hk=!(qk||(Uk=Fk(String.prototype,"startsWith"),!Uk||Uk.writable));Jd({target:"String",proto:!0,forced:!Hk&&!qk},{startsWith:function(e){var t=String(Lh(this));Pm(e);var n=Pd(Bk(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return Dk?Dk.call(t,r,n):t.slice(n,n+r.length)===r}});var Vk,zk,Wk,$k=function(e){return null!=e?e.constructor:null},Kk=function(e,t){return Boolean(e&&t&&e instanceof t)},Yk=function(e){return null==e},Gk=function(e){return $k(e)===Object},Xk=function(e){return $k(e)===String},Jk=function(e){return Array.isArray(e)},Qk=function(e){return Kk(e,NodeList)},Zk=function(e){return Yk(e)||(Xk(e)||Jk(e)||Qk(e))&&!e.length||Gk(e)&&!Object.keys(e).length},eE=Yk,tE=Gk,nE=function(e){return $k(e)===Number&&!Number.isNaN(e)},rE=Xk,iE=function(e){return $k(e)===Boolean},oE=function(e){return $k(e)===Function},aE=Jk,sE=Qk,cE=function(e){return Kk(e,Element)},lE=function(e){return Kk(e,Event)},uE=function(e){return Kk(e,KeyboardEvent)},fE=function(e){return Kk(e,TextTrack)||!Yk(e)&&Xk(e.kind)},hE=function(e){if(Kk(e,window.URL))return!0;if(!Xk(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!Zk(new URL(t).hostname)}catch(e){return!1}},dE=Zk,pE=(Vk=document.createElement("span"),zk={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},Wk=Object.keys(zk).find((function(e){return void 0!==Vk.style[e]})),!!rE(Wk)&&zk[Wk]);function gE(e,t){setTimeout((function(){try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch(e){}}),t)}var mE={isIE:
|
||
/* @cc_on!@ */
|
||
!!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)},vE=function(e){return function(t,n,r,i){wp(n);var o=Zd(t),a=jh(o),s=Pd(o.length),c=e?s-1:0,l=e?-1:1;if(r<2)for(;;){if(c in a){i=a[c],c+=l;break}if(c+=l,e?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=l)c in a&&(i=n(i,a[c],c,o));return i}},yE={left:vE(!1),right:vE(!0)}.left,bE=Dg("reduce"),wE=Op("reduce",{1:0});function kE(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function EE(){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 tE(i)?(Object.keys(i).forEach((function(t){tE(i[t])?(Object.keys(e).includes(t)||Object.assign(e,na({},t,{})),EE(e[t],i[t])):Object.assign(e,na({},t,i[t]))})),EE.apply(void 0,[e].concat(n))):e}function SE(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 _E(e,t){cE(e)&&!dE(t)&&Object.entries(t).filter((function(e){var t=oa(e,2)[1];return!eE(t)})).forEach((function(t){var n=oa(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)}))}function TE(e,t,n){var r=document.createElement(e);return tE(t)&&_E(r,t),rE(n)&&(r.innerText=n),r}function xE(e,t,n,r){cE(t)&&t.appendChild(TE(e,n,r))}function AE(e){sE(e)||aE(e)?Array.from(e).forEach(AE):cE(e)&&cE(e.parentNode)&&e.parentNode.removeChild(e)}function OE(e){if(cE(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function PE(e,t){return cE(t)&&cE(t.parentNode)&&cE(e)?(t.parentNode.replaceChild(e,t),e):null}function CE(e,t){if(!rE(e)||dE(e))return{};var n={},r=EE({},t);return e.split(",").forEach((function(e){var t=e.trim(),i=t.replace(".",""),o=t.replace(/[[\]]/g,"").split("="),a=oa(o,1)[0],s=o.length>1?o[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":rE(r.class)?n.class="".concat(r.class," ").concat(i):n.class=i;break;case"#":n.id=t.replace("#","");break;case"[":n[a]=s}})),EE(r,n)}function IE(e,t){if(cE(e)){var n=t;iE(n)||(n=!e.hidden),e.hidden=n}}function RE(e,t,n){if(sE(e))return Array.from(e).map((function(e){return RE(e,t,n)}));if(cE(e)){var r="toggle";return void 0!==n&&(r=n?"add":"remove"),e.classList[r](t),e.classList.contains(t)}return!1}function jE(e,t){return cE(e)&&e.classList.contains(t)}function LE(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}function NE(e){return this.elements.container.querySelectorAll(e)}function ME(e){return this.elements.container.querySelector(e)}function UE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];cE(e)&&(e.focus({preventScroll:!0}),t&&RE(e,this.config.classNames.tabFocus))}Jd({target:"Array",proto:!0,forced:!bE||!wE},{reduce:function(e){return yE(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var FE,DE={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},BE={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,n){var r=mE.isIPhone&&n&&BE.playsinline,i=BE[e]||"html5"!==t;return{api:i,ui:i&&BE.rangeInput&&("video"!==e||!mE.isIPhone||r)}},pip:!(mE.isIPhone||!oE(TE("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||TE("video").disablePictureInPicture)),airplay:oE(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(dE(e))return!1;var t=oa(e.split("/"),1)[0],n=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(DE).includes(n)&&(n+='; codecs="'.concat(DE[e],'"'));try{return Boolean(n&&this.media.canPlayType(n).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(FE=document.createElement("input"),FE.type="range","range"===FE.type),touch:"ontouchstart"in document.documentElement,transitions:!1!==pE,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},qE=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 HE(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&&!dE(t)&&oE(n)){var s=t.split(" "),c=a;qE&&(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 VE(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];HE.call(this,e,t,n,!0,r,i)}function zE(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];HE.call(this,e,t,n,!1,r,i)}function WE(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],a=function a(){zE(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)};HE.call(this,e,n,a,!0,i,o)}function $E(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(cE(e)&&!dE(t)){var i=new CustomEvent(t,{bubbles:n,detail:ia({},r,{plyr:this})});e.dispatchEvent(i)}}function KE(){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=[])}function YE(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):VE.call(e,e.elements.container,"ready",t)})).then((function(){}))}function GE(e){return!!(aE(e)||rE(e)&&e.includes(":"))&&(aE(e)?e:e.split(":")).map(Number).every(nE)}function XE(e){if(!aE(e)||!e.every(nE))return null;var t=oa(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 JE(e){var t=function(e){return GE(e)?e.split(":").map(Number):null},n=t(e);if(null===n&&(n=t(this.config.ratio)),null===n&&!dE(this.embed)&&aE(this.embed.ratio)&&(n=this.embed.ratio),null===n&&this.isHTML5){var r=this.media;n=XE([r.videoWidth,r.videoHeight])}return n}function QE(e){if(!this.isVideo)return{};var t=this.elements.wrapper,n=JE.call(this,e),r=oa(aE(n)?n:[0,0],2),i=100/r[0]*r[1];if(t.style.paddingBottom="".concat(i,"%"),this.isVimeo&&this.supported.ui){var o=(240-i)/4.8;this.media.style.transform="translateY(-".concat(o,"%)")}else this.isHTML5&&t.classList.toggle(this.config.classNames.videoFixedRatio,null!==n);return{padding:i,ratio:n}}var ZE={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(t){var n=t.getAttribute("type");return!!dE(n)||BE.mime.call(e,n)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:ZE.getSources.call(this).map((function(e){return Number(e.getAttribute("size"))})).filter(Boolean)},extend:function(){if(this.isHTML5){var e=this;dE(this.config.ratio)||QE.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=ZE.getSources.call(e).find((function(t){return t.getAttribute("src")===e.source}));return t&&Number(t.getAttribute("size"))},set:function(t){if(e.quality!==t){if(e.config.quality.forced&&oE(e.config.quality.onChange))e.config.quality.onChange(t);else{var n=ZE.getSources.call(e).find((function(e){return Number(e.getAttribute("size"))===t}));if(!n)return;var r=e.media,i=r.currentTime,o=r.paused,a=r.preload,s=r.readyState,c=r.playbackRate;e.media.src=n.getAttribute("src"),("none"!==a||s)&&(e.once("loadedmetadata",(function(){e.speed=c,e.currentTime=i,o||e.play()})),e.media.load())}$E.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(AE(ZE.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function eS(e){return aE(e)?e.filter((function(t,n){return e.indexOf(t)===n})):e}Jd({target:"Array",proto:!0},{fill:function(e){for(var t=Zd(this),n=Pd(t.length),r=arguments.length,i=Rd(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:Rd(o,n);a>i;)t[i++]=e;return t}}),Vp("fill");var tS=gp("slice"),nS=Op("slice",{ACCESSORS:!0,0:0,1:2}),rS=ap("species"),iS=[].slice,oS=Math.max;Jd({target:"Array",proto:!0,forced:!tS||!nS},{slice:function(e,t){var n,r,i,o=Nh(this),a=Pd(o.length),s=Rd(e,a),c=Rd(void 0===t?a:t,a);if(Qd(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Qd(n.prototype)?Mh(n)&&null===(n=n[rS])&&(n=void 0):n=void 0,n===Array||void 0===n))return iS.call(o,s,c);for(r=new(void 0===n?Array:n)(oS(c-s,0)),i=0;s<c;s++,i++)s in o&&ep(r,i,o[s]);return r.length=i,r}});var aS=Yh.f,sS=Dd.f,cS=wd.set,lS=ap("match"),uS=Sh.RegExp,fS=uS.prototype,hS=/a/g,dS=/a/g,pS=new uS(hS)!==hS,gS=gm.UNSUPPORTED_Y;if(Th&&Gd("RegExp",!pS||gS||_h((function(){return dS[lS]=!1,uS(hS)!=hS||uS(dS)==dS||"/a/i"!=uS(hS,"i")})))){for(var mS=function(e,t){var n,r=this instanceof mS,i=Om(e),o=void 0===t;if(!r&&i&&e.constructor===mS&&o)return e;pS?i&&!o&&(e=e.source):e instanceof mS&&(o&&(t=dm.call(e)),e=e.source),gS&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var a=$g(pS?new uS(e,t):uS(e,t),r?this:fS,mS);return gS&&n&&cS(a,{sticky:n}),a},vS=function(e){e in mS||aS(mS,e,{configurable:!0,get:function(){return uS[e]},set:function(t){uS[e]=t}})},yS=sS(uS),bS=0;yS.length>bS;)vS(yS[bS++]);fS.constructor=mS,mS.prototype=fS,kd(Sh,"RegExp",mS)}function wS(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 dE(e)?e:e.toString().replace(/{(\d+)}/g,(function(e,t){return n[t].toString()}))}function kS(){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 ES(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toString().replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))}function SS(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return t=kS(t,"-"," "),t=kS(t,"_"," "),kS(t=ES(t)," ","")}function _S(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}xw("RegExp");var TS={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},xS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(dE(e)||dE(t))return"";var n=kE(t.i18n,e);if(dE(n))return Object.keys(TS).includes(e)?TS[e]:"";var r={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(r).forEach((function(e){var t=oa(e,2),r=t[0],i=t[1];n=kS(n,r,i)})),n},AS=function(){function e(t){Zo(this,e),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return ta(e,[{key:"get",value:function(t){if(!e.supported||!this.enabled)return null;var n=window.localStorage.getItem(this.key);if(dE(n))return null;var r=JSON.parse(n);return rE(t)&&t.length?r[t]:r}},{key:"set",value:function(t){if(e.supported&&this.enabled&&tE(t)){var n=this.get();dE(n)&&(n={}),EE(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 OS(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 PS(e,t){if(rE(e)){var n=rE(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=AS.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)}}OS(e).then((function(e){dE(e)||(o&&window.localStorage.setItem("".concat("cache","-").concat(t),JSON.stringify({content:e})),i(a,e))})).catch((function(){}))}}}var CS=Math.ceil,IS=Math.floor;Jd({target:"Math",stat:!0},{trunc:function(e){return(e>0?IS:CS)(e)}});var RS=function(e){return Math.trunc(e/60/60%60,10)},jS=function(e){return Math.trunc(e/60%60,10)},LS=function(e){return Math.trunc(e%60,10)};function NS(){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(!nE(e))return NS(void 0,t,n);var r=function(e){return"0".concat(e).slice(-2)},i=RS(e),o=jS(e),a=LS(e);return i=t||i>0?"".concat(i,":"):"","".concat(n&&e>0?"-":"").concat(i).concat(r(o),":").concat(r(a))}var MS={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||mE.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=ME.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:NE.call(this,this.config.selectors.buttons.play),pause:ME.call(this,this.config.selectors.buttons.pause),restart:ME.call(this,this.config.selectors.buttons.restart),rewind:ME.call(this,this.config.selectors.buttons.rewind),fastForward:ME.call(this,this.config.selectors.buttons.fastForward),mute:ME.call(this,this.config.selectors.buttons.mute),pip:ME.call(this,this.config.selectors.buttons.pip),airplay:ME.call(this,this.config.selectors.buttons.airplay),settings:ME.call(this,this.config.selectors.buttons.settings),captions:ME.call(this,this.config.selectors.buttons.captions),fullscreen:ME.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=ME.call(this,this.config.selectors.progress),this.elements.inputs={seek:ME.call(this,this.config.selectors.inputs.seek),volume:ME.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:ME.call(this,this.config.selectors.display.buffer),currentTime:ME.call(this,this.config.selectors.display.currentTime),duration:ME.call(this,this.config.selectors.display.duration)},cE(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=MS.getIconUrl.call(this),r="".concat(n.cors?"":n.url,"#").concat(this.config.iconPrefix),i=document.createElementNS("http://www.w3.org/2000/svg","svg");_E(i,EE(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=xS(e,this.config),r=ia({},t,{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")});return TE("span",r,n)},createBadge:function(e){if(dE(e))return null;var t=TE("span",{class:this.config.classNames.menu.value});return t.appendChild(TE("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var n=this,r=EE({},t),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return(t=SS(t)).charAt(0).toLowerCase()+t.slice(1)}(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}))||EE(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:dE(o.label)&&(o.label=i),dE(o.icon)&&(o.icon=e)}var a=TE(o.element);return o.toggle?(a.appendChild(MS.createIcon.call(this,o.iconPressed,{class:"icon--pressed"})),a.appendChild(MS.createIcon.call(this,o.icon,{class:"icon--not-pressed"})),a.appendChild(MS.createLabel.call(this,o.labelPressed,{class:"label--pressed"})),a.appendChild(MS.createLabel.call(this,o.label,{class:"label--not-pressed"}))):(a.appendChild(MS.createIcon.call(this,o.icon)),a.appendChild(MS.createLabel.call(this,o.label))),EE(r,CE(this.config.selectors.buttons[i],r)),_E(a,r),"play"===i?(aE(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=TE("input",EE(CE(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":xS(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=n,MS.updateRangeFill.call(this,n),Sw.setup(n),n},createProgress:function(e,t){var n=TE("progress",EE(CE(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){n.appendChild(TE("span",null,"0"));var r={played:"played",buffer:"buffered"}[e],i=r?xS(r,this.config):"";n.innerText="% ".concat(i.toLowerCase())}return this.elements.display[e]=n,n},createTime:function(e,t){var n=CE(this.config.selectors.display[e],t),r=TE("div",EE(n,{class:"".concat(n.class?n.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":xS(e,this.config)}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts:function(e,t){var n=this;VE.call(this,e,"keydown keyup",(function(r){if([32,38,39,40].includes(r.which)&&(r.preventDefault(),r.stopPropagation(),"keydown"!==r.type)){var i,o=LE(e,'[role="menuitemradio"]');if(!o&&[32,39].includes(r.which))MS.showMenuPanel.call(n,t,!0);else 32!==r.which&&(40===r.which||o&&39===r.which?(i=e.nextElementSibling,cE(i)||(i=e.parentNode.firstElementChild)):(i=e.previousElementSibling,cE(i)||(i=e.parentNode.lastElementChild)),UE.call(n,i,!0))}}),!1),VE.call(this,e,"keyup",(function(e){13===e.which&&MS.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=CE(this.config.selectors.inputs[i]),f=TE("button",EE(u,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(u.class?u.class:"").trim(),"aria-checked":l,value:n})),h=TE("span");h.innerHTML=o,cE(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 LE(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(!uE(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)}MS.showMenuPanel.call(t,"home",uE(e))}}),i,!1),MS.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];if(!nE(e))return e;var n=RS(this.duration)>0;return NS(e,n,t)},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];cE(e)&&nE(t)&&(e.innerText=MS.formatTime(t,n))},updateVolume:function(){this.supported.ui&&(cE(this.elements.inputs.volume)&&MS.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),cE(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;cE(e)&&(e.value=t,MS.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&lE(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&&MS.setRange.call(this,this.elements.inputs.seek,n);break;case"playing":case"progress":!function(e,n){var r=nE(n)?n:0,i=cE(e)?e:t.elements.display.buffer;if(cE(i)){i.value=r;var o=i.getElementsByTagName("span")[0];cE(o)&&(o.childNodes[0].nodeValue=r)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=lE(e)?e.target:e;if(cE(t)&&"range"===t.getAttribute("type")){if(LE(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var n=MS.formatTime(this.currentTime),r=MS.formatTime(this.duration),i=xS("seekLabel",this.config);t.setAttribute("aria-valuetext",i.replace("{currentTime}",n).replace("{duration}",r))}else if(LE(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);mE.isWebkit&&t.style.setProperty("--value","".concat(t.value/t.max*100,"%"))}},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&cE(this.elements.inputs.seek)&&cE(this.elements.display.seekTooltip)&&0!==this.duration){var n="".concat(this.config.classNames.tooltip,"--visible"),r=function(e){return RE(t.elements.display.seekTooltip,n,e)};if(this.touch)r(!1);else{var i=0,o=this.elements.progress.getBoundingClientRect();if(lE(e))i=100/o.width*(e.pageX-o.left);else{if(!jE(this.elements.display.seekTooltip,n))return;i=parseFloat(this.elements.display.seekTooltip.style.left,10)}i<0?i=0:i>100&&(i=100),MS.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*i),this.elements.display.seekTooltip.style.left="".concat(i,"%"),lE(e)&&["mouseenter","mouseleave"].includes(e.type)&&r("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!cE(this.elements.display.duration)&&this.config.invertTime;MS.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||MS.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return IE(this.elements.display.currentTime,!0),void IE(this.elements.progress,!0);cE(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=cE(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&MS.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&MS.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),MS.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){IE(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=dE(n)?this[e]:n,dE(i)&&(i=this.config[e].default),!dE(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(cE(o)||(o=r&&r.querySelector('[role="menu"]')),cE(o)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=MS.getLabel.call(this,e,i);var a=o&&o.querySelector('[value="'.concat(i,'"]'));cE(a)&&(a.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?xS("normal",this.config):"".concat(t,"×");case"quality":if(nE(t)){var n=xS("qualityLabel.".concat(t),this.config);return n.length?n:"".concat(t,"p")}return ES(t);case"captions":return DS.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(cE(this.elements.settings.panels.quality)){var n=this.elements.settings.panels.quality.querySelector('[role="menu"]');aE(e)&&(this.options.quality=eS(e).filter((function(e){return t.config.quality.options.includes(e)})));var r=!dE(this.options.quality)&&this.options.quality.length>1;if(MS.toggleMenuButton.call(this,"quality",r),OE(n),MS.checkMenu.call(this),r){var i=function(e){var n=xS("qualityBadge.".concat(e),t.config);return n.length?MS.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){MS.createMenuItem.call(t,{value:e,list:n,type:"quality",title:MS.getLabel.call(t,"quality",e),badge:i(e)})})),MS.updateSetting.call(this,"quality",n)}}},setCaptionsMenu:function(){var e=this;if(cE(this.elements.settings.panels.captions)){var t=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=DS.getTracks.call(this),r=Boolean(n.length);if(MS.toggleMenuButton.call(this,"captions",r),OE(t),MS.checkMenu.call(this),r){var i=n.map((function(n,r){return{value:r,checked:e.captions.toggled&&e.currentTrack===r,title:DS.getLabel.call(e,n),badge:n.language&&MS.createBadge.call(e,n.language.toUpperCase()),list:t,type:"language"}}));i.unshift({value:-1,checked:!this.captions.toggled,title:xS("disabled",this.config),list:t,type:"language"}),i.forEach(MS.createMenuItem.bind(this)),MS.updateSetting.call(this,"captions",t)}}},setSpeedMenu:function(){var e=this;if(cE(this.elements.settings.panels.speed)){var t=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.isVimeo||this.isYouTube?this.options.speed=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=Math.floor((t-e)/n)+1;return Array(r).fill().map((function(t,r){return e+r*n}))}(.5,2,.25).filter((function(t){return e.config.speed.options.includes(t)})):this.options.speed=this.config.speed.options;var n=!dE(this.options.speed)&&this.options.speed.length>1;MS.toggleMenuButton.call(this,"speed",n),OE(t),MS.checkMenu.call(this),n&&(this.options.speed.forEach((function(n){MS.createMenuItem.call(e,{value:n,list:t,type:"speed",title:MS.getLabel.call(e,"speed",n)})})),MS.updateSetting.call(this,"speed",t))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!dE(e)&&Object.values(e).some((function(e){return!e.hidden}));IE(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;cE(n)||(n=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var r=n.querySelector('[role^="menuitem"]');UE.call(this,r,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,n=this.elements.buttons.settings;if(cE(t)&&cE(n)){var r=t.hidden,i=r;if(iE(e))i=e;else if(uE(e)&&27===e.which)i=!1;else if(lE(e)){var o=oE(e.composedPath)?e.composedPath()[0]:e.target,a=t.contains(o);if(a||!a&&e.target!==n&&i)return}n.setAttribute("aria-expanded",i),IE(t,!i),RE(this.elements.container,this.config.classNames.menu.open,i),i&&uE(e)?MS.focusFirstMenuItem.call(this,null,!0):i||r||UE.call(this,n,uE(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 AE(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(cE(r)){var i=r.parentNode,o=Array.from(i.children).find((function(e){return!e.hidden}));if(BE.transitions&&!BE.reducedMotion){i.style.width="".concat(o.scrollWidth,"px"),i.style.height="".concat(o.scrollHeight,"px");var a=MS.getMenuSize.call(this,r),s=function t(n){n.target===i&&["width","height"].includes(n.propertyName)&&(i.style.width="",i.style.height="",zE.call(e,i,pE,t))};VE.call(this,i,pE,s),i.style.width="".concat(a.width,"px"),i.style.height="".concat(a.height,"px")}IE(o,!0),IE(r,!1),MS.focusFirstMenuItem.call(this,r,n)}},setDownloadUrl:function(){var e=this.elements.buttons.download;cE(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,n=MS.bindMenuItemShortcuts,r=MS.createButton,i=MS.createProgress,o=MS.createRange,a=MS.createTime,s=MS.setQualityMenu,c=MS.setSpeedMenu,l=MS.showMenuPanel;this.elements.controls=null,this.config.controls.includes("play-large")&&this.elements.container.appendChild(r.call(this,"play-large"));var u=TE("div",CE(this.config.selectors.controls.wrapper));this.elements.controls=u;var f={class:"plyr__controls__item"};return eS(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=TE("div",{class:"".concat(f.class," plyr__progress__container")}),h=TE("div",CE(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=TE("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(cE(p)&&u.contains(p)||(p=TE("div",EE({},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&&!mE.isIos){var g={max:1,step:.05,value:t.config.volume};p.appendChild(o.call(t,"volume",EE(g,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===s&&u.appendChild(r.call(t,"captions",f)),"settings"===s&&!dE(t.config.settings)){var m=TE("div",EE({},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=TE("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=TE("div"),b=TE("div",{id:"plyr-settings-".concat(e.id,"-home")}),w=TE("div",{role:"menu"});b.appendChild(w),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach((function(r){var i=TE("button",EE(CE(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),VE.call(t,i,"click",(function(){l.call(t,r,!1)}));var o=TE("span",null,xS(r,t.config)),a=TE("span",{class:t.config.classNames.menu.value});a.innerHTML=e[r],o.appendChild(a),i.appendChild(o),w.appendChild(i);var s=TE("div",{id:"plyr-settings-".concat(e.id,"-").concat(r),hidden:""}),c=TE("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});c.appendChild(TE("span",{"aria-hidden":!0},xS(r,t.config))),c.appendChild(TE("span",{class:t.config.classNames.hidden},xS("menuBack",t.config))),VE.call(t,s,"keydown",(function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),l.call(t,"home",!0))}),!1),VE.call(t,c,"click",(function(){l.call(t,"home",!1)})),s.appendChild(c),s.appendChild(TE("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&&BE.pip&&u.appendChild(r.call(t,"pip",f)),"airplay"===s&&BE.airplay&&u.appendChild(r.call(t,"airplay",f)),"download"===s){var k=EE({},f,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(k.download="");var E=t.config.urls.download;!hE(E)&&t.isEmbed&&EE(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,ZE.getQualityOptions.call(this)),c.call(this),u},inject:function(){var e=this;if(this.config.loadSprite){var t=MS.getIconUrl.call(this);t.cors&&PS(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;oE(this.config.controls)&&(this.config.controls=this.config.controls.call(this,r)),this.config.controls||(this.config.controls=[]),cE(this.config.controls)||rE(this.config.controls)?n=this.config.controls:(n=MS.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:DS.getLabel.call(this)}),i=!1);var o,a=function(e){var t=e;return Object.entries(r).forEach((function(e){var n=oa(e,2),r=n[0],i=n[1];t=kS(t,"{".concat(r,"}"),i)})),t};if(i&&(rE(this.config.controls)?n=a(n):cE(n)&&(n.innerHTML=a(n.innerHTML))),rE(this.config.selectors.controls.container)&&(o=document.querySelector(this.config.selectors.controls.container)),cE(o)||(o=this.elements.container),o[cE(n)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",n),cE(this.elements.controls)||MS.findElements.call(this),!dE(this.elements.buttons)){var s=function(t){var n=e.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return jE(t,n)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];RE(t,n,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){aE(e)||sE(e)?Array.from(e).filter(Boolean).forEach(s):s(e)}))}if(mE.isEdge&&gE(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=NE.call(this,f);Array.from(h).forEach((function(t){RE(t,e.config.classNames.hidden,!1),RE(t,e.config.classNames.tooltip,!0)}))}}};function US(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e;if(t){var r=document.createElement("a");r.href=n,n=r.href}try{return new URL(n)}catch(e){return null}}function FS(e){var t=new URLSearchParams;return tE(e)&&Object.entries(e).forEach((function(e){var n=oa(e,2),r=n[0],i=n[1];t.set(r,i)})),t}var DS={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!BE.textTracks)aE(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&MS.setCaptionsMenu.call(this);else{if(cE(this.elements.captions)||(this.elements.captions=TE("div",CE(this.config.selectors.captions)),function(e,t){cE(e)&&cE(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),mE.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach((function(e){var t=e.getAttribute("src"),n=US(t);null!==n&&n.hostname!==window.location.href.hostname&&["http:","https:"].includes(n.protocol)&&OS(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))})).catch((function(){AE(e)}))}))}var t=eS((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=oa(t,1)[0];var r=this.storage.get("captions");if(iE(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";VE.call(this,this.media.textTracks,i,DS.update.bind(this))}setTimeout(DS.update.bind(this),0)}},update:function(){var e=this,t=DS.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}),t.mode="hidden",VE.call(e,t,"cuechange",(function(){return DS.updateCues.call(e)}))})),(s&&this.language!==i||!t.includes(a))&&(DS.setLanguage.call(this,i),DS.toggle.call(this,r&&s)),RE(this.elements.container,this.config.classNames.captions.enabled,!dE(t)),(this.config.controls||[]).includes("settings")&&this.config.settings.includes("captions")&&MS.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=eE(e)?!n:e;if(i!==n){if(t||(this.captions.active=i,this.storage.set({captions:i})),!this.language&&i&&!t){var o=DS.getTracks.call(this),a=DS.findTrack.call(this,[this.captions.language].concat(aa(this.captions.languages)),!0);return this.captions.language=a.language,void DS.set.call(this,o.indexOf(a))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=i),RE(this.elements.container,r,i),this.captions.toggled=i,MS.updateSetting.call(this,"captions"),$E.call(this,this.media,i?"captionsenabled":"captionsdisabled")}}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=DS.getTracks.call(this);if(-1!==e)if(nE(e))if(e in n){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var r=n[e],i=r||{},o=i.language;this.captions.currentTrackNode=r,MS.updateSetting.call(this,"captions"),t||(this.captions.language=o,this.storage.set({language:o})),this.isVimeo&&this.embed.enableTextTrack(o),$E.call(this,this.media,"languagechange")}DS.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&DS.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else DS.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(rE(e)){var n=e.toLowerCase();this.captions.language=n;var r=DS.getTracks.call(this),i=DS.findTrack.call(this,[n]);DS.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],n=Array.from((this.media||{}).textTracks||[]);return n.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=DS.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 DS.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!fE(t)&&BE.textTracks&&this.captions.toggled&&(t=DS.getCurrentTrack.call(this)),fE(t)?dE(t.label)?dE(t.language)?xS("enabled",this.config):e.language.toUpperCase():t.label:xS("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(cE(this.elements.captions))if(eE(e)||Array.isArray(e)){var t=e;if(!t){var n=DS.getCurrentTrack.call(this);t=Array.from((n||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(_S)}var r=t.map((function(e){return e.trim()})).join("\n");if(r!==this.elements.captions.innerHTML){OE(this.elements.captions);var i=TE("span",CE(this.config.selectors.caption));i.innerHTML=r,this.elements.captions.appendChild(i),$E.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},BS={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.7/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},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",pip:"PIP",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}},qS="picture-in-picture",HS="inline",VS={html5:"html5",youtube:"youtube",vimeo:"vimeo"},zS="audio",WS="video";var $S=function(){},KS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Zo(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return ta(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):$S}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):$S}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):$S}}]),e}(),YS=function(){function e(t){var n=this;Zo(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,VE.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){n.onChange()})),VE.call(this.player,this.player.elements.container,"dblclick",(function(e){cE(n.player.elements.controls)&&n.player.elements.controls.contains(e.target)||n.toggle()})),VE.call(this,this.player.elements.container,"keydown",(function(e){return n.trapFocus(e)})),this.update()}return ta(e,[{key:"onChange",value:function(){if(this.enabled){var e=this.player.elements.buttons.fullscreen;cE(e)&&(e.pressed=this.active),$E.call(this.player,this.target,this.active?"enterfullscreen":"exitfullscreen",!0)}}},{key:"toggleFallback",value:function(){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":"",RE(this.target,this.player.config.classNames.fullscreen.fallback,e),mE.isIos){var t=document.head.querySelector('meta[name="viewport"]'),n="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var r=rE(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(","))}this.onChange()}},{key:"trapFocus",value:function(e){if(!mE.isIos&&this.active&&"Tab"===e.key&&9===e.keyCode){var t=document.activeElement,n=NE.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),r=oa(n,1)[0],i=n[n.length-1];t!==i||e.shiftKey?t===r&&e.shiftKey&&(i.focus(),e.preventDefault()):(r.focus(),e.preventDefault())}}},{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");RE(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}},{key:"enter",value:function(){this.enabled&&(mE.isIos&&this.player.config.fullscreen.iosNative?this.target.webkitEnterFullscreen():!e.native||this.forceFallback?this.toggleFallback(!0):this.prefix?dE(this.prefix)||this.target["".concat(this.prefix,"Request").concat(this.property)]():this.target.requestFullscreen({navigationUI:"hide"}))}},{key:"exit",value:function(){if(this.enabled)if(mE.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),this.player.play();else if(!e.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!dE(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?jE(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 mE.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(oE(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some((function(t){return!(!oE(document["".concat(t,"ExitFullscreen")])&&!oE(document["".concat(t,"CancelFullScreen")]))&&(e=t,!0)})),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}(),GS=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1};function XS(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})}))}Jd({target:"Math",stat:!0},{sign:GS});var JS={addStyleHook:function(){RE(this.elements.container,this.config.selectors.container.replace(".",""),!0),RE(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&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 JS.toggleNativeControls.call(this,!0);cE(this.elements.controls)||(MS.inject.call(this),this.listeners.controls()),JS.toggleNativeControls.call(this),this.isHTML5&&DS.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,MS.updateVolume.call(this),MS.timeUpdate.call(this),JS.checkPlaying.call(this),RE(this.elements.container,this.config.classNames.pip.supported,BE.pip&&this.isHTML5&&this.isVideo),RE(this.elements.container,this.config.classNames.airplay.supported,BE.airplay&&this.isHTML5),RE(this.elements.container,this.config.classNames.isIos,mE.isIos),RE(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){$E.call(e,e.media,"ready")}),0),JS.setTitle.call(this),this.poster&&JS.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&MS.durationUpdate.call(this)},setTitle:function(){var e=xS("play",this.config);if(rE(this.config.title)&&!dE(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=ME.call(this,"iframe");if(!cE(t))return;var n=dE(this.config.title)?"video":this.config.title,r=xS("frameTitle",this.config);t.setAttribute("title",r.replace("{title}",n))}},togglePoster:function(e){RE(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("poster",e),YE.call(this).then((function(){return XS(e)})).catch((function(n){throw e===t.poster&&JS.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:""}),JS.togglePoster.call(t,!0),e})))},checkPlaying:function(e){var t=this;RE(this.elements.container,this.config.classNames.playing,this.playing),RE(this.elements.container,this.config.classNames.paused,this.paused),RE(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(e){Object.assign(e,{pressed:t.playing}),e.setAttribute("aria-label",xS(t.playing?"pause":"play",t.config))})),lE(e)&&"timeupdate"===e.type||JS.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(){RE(t.elements.container,t.config.classNames.loading,t.loading),JS.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))}}},QS=function(){function e(t){Zo(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 ta(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)&&nE(r)){if(i){var a=document.activeElement;if(cE(a)){var s=t.config.selectors.editable;if(a!==n.inputs.seek&&LE(a,s))return;if(32===e.which&&LE(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){MS.toggleMenu.call(this.player,e)}},{key:"firstTouch",value:function(){var e=this.player,t=e.elements;e.touch=!0,RE(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,RE(NE.call(t,".".concat(r)),r,!1),this.focusTimer=setTimeout((function(){var e=document.activeElement;n.container.contains(e)&&RE(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&&HE.call(t,window,"keydown keyup",this.handleKey,e,!1),HE.call(t,document.body,"click",this.toggleMenu,e),WE.call(t,document.body,"touchstart",this.firstTouch),HE.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&&VE.call(e,n.container,"keydown keyup",this.handleKey,!1),VE.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)&&(JS.toggleControls.call(e,!0),o=e.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout((function(){return JS.toggleControls.call(e,!1)}),o)}));var i=function(t){if(!t)return QE.call(e);var r=n.container.getBoundingClientRect(),i=r.width,o=r.height;return QE.call(e,"".concat(i,":").concat(o))},o=function(){clearTimeout(r.resized),r.resized=setTimeout(i,50)};VE.call(e,n.container,"enterfullscreen exitfullscreen",(function(t){var r=e.fullscreen,a=r.target,s=r.usingNative;if(a===n.container&&(e.isEmbed||!dE(e.config.ratio))){var c="enterfullscreen"===t.type,l=i(c);l.padding;!function(t,n,r){if(e.isVimeo){var i=e.elements.wrapper.firstChild,o=oa(t,2)[1],a=oa(JE.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?VE.call(e,window,"resize",o):zE.call(e,window,"resize",o))}}))}},{key:"media",value:function(){var e=this,t=this.player,n=t.elements;if(VE.call(t,t.media,"timeupdate seeking seeked",(function(e){return MS.timeUpdate.call(t,e)})),VE.call(t,t.media,"durationchange loadeddata loadedmetadata",(function(e){return MS.durationUpdate.call(t,e)})),VE.call(t,t.media,"ended",(function(){t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())})),VE.call(t,t.media,"progress playing seeking seeked",(function(e){return MS.updateProgress.call(t,e)})),VE.call(t,t.media,"volumechange",(function(e){return MS.updateVolume.call(t,e)})),VE.call(t,t.media,"playing play pause ended emptied timeupdate",(function(e){return JS.checkPlaying.call(t,e)})),VE.call(t,t.media,"waiting canplay seeked playing",(function(e){return JS.checkLoading.call(t,e)})),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){var r=ME.call(t,".".concat(t.config.classNames.video));if(!cE(r))return;VE.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&&VE.call(t,n.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),VE.call(t,t.media,"volumechange",(function(){t.storage.set({volume:t.volume,muted:t.muted})})),VE.call(t,t.media,"ratechange",(function(){MS.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})})),VE.call(t,t.media,"qualitychange",(function(e){MS.updateSetting.call(t,"quality",null,e.detail.quality)})),VE.call(t,t.media,"ready qualitychange",(function(){MS.setDownloadUrl.call(t)}));var i=t.config.events.concat(["keyup","keydown"]).join(" ");VE.call(t,t.media,i,(function(e){var r=e.detail,i=void 0===r?{}:r;"error"===e.type&&(i=t.media.error),$E.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;oE(i)&&(o=i.call(r,e)),!1!==o&&oE(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=oE(s);VE.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=mE.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(){$E.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(),e.preventDefault(),MS.toggleMenu.call(t,e)}),null,!1),this.bind(n.buttons.settings,"keyup",(function(e){var n=e.which;[13,32].includes(n)&&(13!==n?(e.preventDefault(),e.stopPropagation(),MS.toggleMenu.call(t,e)):MS.focusFirstMenuItem.call(t,null,!0))}),null,!1),this.bind(n.settings.menu,"keydown",(function(e){27===e.which&&MS.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(!uE(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())}})),mE.isIos){var i=NE.call(t,'input[type="range"]');Array.from(i).forEach((function(t){return e.bind(t,r,(function(e){return gE(e.target)}))}))}this.bind(n.inputs.seek,r,(function(e){var n=e.currentTarget,r=n.getAttribute("seek-value");dE(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 MS.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 touchend 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)})),mE.isWebkit&&Array.from(NE.call(t,'input[type="range"]')).forEach((function(n){e.bind(n,"input",(function(e){return MS.updateRangeFill.call(t,e.target)}))})),t.config.toggleInvert&&!cE(n.display.duration)&&this.bind(n.display.currentTime,"click",(function(){0!==t.currentTime&&(t.config.invertTime=!t.config.invertTime,MS.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;RE(n.controls,r.classNames.noTransition,!0),JS.toggleControls.call(t,!0),setTimeout((function(){RE(n.controls,r.classNames.noTransition,!1)}),0);var o=e.touch?3e3:4e3;clearTimeout(i.controls),i.controls=setTimeout((function(){return JS.toggleControls.call(t,!1)}),o)})),this.bind(n.inputs.volume,"wheel",(function(e){var n=e.webkitDirectionInvertedFromDevice,r=oa([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}(),ZS=gp("splice"),e_=Op("splice",{ACCESSORS:!0,0:0,1:2}),t_=Math.max,n_=Math.min;Jd({target:"Array",proto:!0,forced:!ZS||!e_},{splice:function(e,t){var n,r,i,o,a,s,c=Zd(this),l=Pd(c.length),u=Rd(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-u):(n=f-2,r=n_(t_(Ad(t),0),l-u)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=cp(c,r),o=0;o<r;o++)(a=u+o)in c&&ep(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 r_=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(/[\?|#].*$/,""),d=t.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(h)?((s=c.createElement("link")).rel="stylesheet",s.href=d,(o="hideFocus"in s)&&s.relList&&(o=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(h)?(s=c.createElement("img")).src=d:((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 i_(e){return new Promise((function(t,n){r_(e,{success:t,error:n})}))}function o_(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,$E.call(this,this.media,e?"play":"pause"))}var a_={setup:function(){var e=this;RE(this.elements.wrapper,this.config.classNames.embed,!0),QE.call(this),tE(window.Vimeo)?a_.ready.call(this):i_(this.config.urls.vimeo.sdk).then((function(){a_.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=FS(EE({},{loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},n)),i=t.media.getAttribute("src");dE(i)&&(i=t.media.getAttribute(t.config.attributes.embed.id));var o,a=dE(o=i)?null:nE(Number(o))?o:o.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:o,s=TE("iframe"),c=wS(t.config.urls.vimeo.iframe,a,r);s.setAttribute("src",c),s.setAttribute("allowfullscreen",""),s.setAttribute("allowtransparency",""),s.setAttribute("allow","autoplay");var l=TE("div",{poster:t.poster,class:t.config.classNames.embedContainer});l.appendChild(s),t.media=PE(l,t.media),OS(wS(t.config.urls.vimeo.api,a),"json").then((function(e){if(!dE(e)){var n=new URL(e[0].thumbnail_large);n.pathname="".concat(n.pathname.split("_")[0],".jpg"),JS.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 o_.call(t,!0),t.embed.play()},t.media.pause=function(){return o_.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,$E.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,$E.call(t,t.media,"ratechange")}))}});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,$E.call(t,t.media,"volumechange")}))}});var d=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return d},set:function(e){var n=!!iE(e)&&e;t.embed.setVolume(n?0:t.config.volume).then((function(){d=n,$E.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=iE(e)?e:t.config.loop.active;t.embed.setLoop(n).then((function(){g=n}))}}),t.embed.getVideoUrl().then((function(e){p=e,MS.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=oa(n,2),i=r[0],o=r[1];t.embed.ratio=[i,o],QE.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,JS.setTitle.call(e)})),t.embed.getCurrentTime().then((function(e){u=e,$E.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((function(e){t.media.duration=e,$E.call(t,t.media,"durationchange")})),t.embed.getTextTracks().then((function(e){t.media.textTracks=e,DS.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)}));DS.updateCues.call(t,r)})),t.embed.on("loaded",(function(){(t.embed.getPaused().then((function(e){o_.call(t,!e),e||$E.call(t,t.media,"playing")})),cE(t.embed.element)&&t.supported.ui)&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(function(){$E.call(t,t.media,"waiting")})),t.embed.on("bufferend",(function(){$E.call(t,t.media,"playing")})),t.embed.on("play",(function(){o_.call(t,!0),$E.call(t,t.media,"playing")})),t.embed.on("pause",(function(){o_.call(t,!1)})),t.embed.on("timeupdate",(function(e){t.media.seeking=!1,u=e.seconds,$E.call(t,t.media,"timeupdate")})),t.embed.on("progress",(function(e){t.media.buffered=e.percent,$E.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&$E.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((function(e){e!==t.media.duration&&(t.media.duration=e,$E.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(function(){t.media.seeking=!1,$E.call(t,t.media,"seeked")})),t.embed.on("ended",(function(){t.media.paused=!0,$E.call(t,t.media,"ended")})),t.embed.on("error",(function(e){t.media.error=e,$E.call(t,t.media,"error")})),setTimeout((function(){return JS.build.call(t)}),0)}};function s_(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,$E.call(this,this.media,e?"play":"pause"))}function c_(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var l_={setup:function(){var e=this;if(RE(this.elements.wrapper,this.config.classNames.embed,!0),tE(window.YT)&&oE(window.YT.Player))l_.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){oE(t)&&t(),l_.ready.call(e)},i_(this.config.urls.youtube.sdk).catch((function(t){e.debug.warn("YouTube API failed to load",t)}))}},getTitle:function(e){var t=this;OS(wS(this.config.urls.youtube.api,e)).then((function(e){if(tE(e)){var n=e.title,r=e.height,i=e.width;t.config.title=n,JS.setTitle.call(t),t.embed.ratio=[i,r]}QE.call(t)})).catch((function(){QE.call(t)}))},ready:function(){var e=this,t=e.media&&e.media.getAttribute("id");if(dE(t)||!t.startsWith("youtube-")){var n=e.media.getAttribute("src");dE(n)&&(n=e.media.getAttribute(this.config.attributes.embed.id));var r,i,o=dE(r=n)?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=TE("div",{id:a,poster:e.poster});e.media=PE(s,e.media);var c=function(e){return"https://i.ytimg.com/vi/".concat(o,"/").concat(e,"default.jpg")};XS(c("maxres"),121).catch((function(){return XS(c("sd"),121)})).catch((function(){return XS(c("hq"))})).then((function(t){return JS.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:c_(l),playerVars:EE({},{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},$E.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var n=t.target;e.media.playbackRate=n.getPlaybackRate(),$E.call(e,e.media,"ratechange")},onReady:function(t){if(!oE(e.media.play)){var n=t.target;l_.getTitle.call(e,o),e.media.play=function(){s_.call(e,!0),n.playVideo()},e.media.pause=function(){s_.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,$E.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),$E.call(e,e.media,"volumechange")}});var i=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return i},set:function(t){var r=iE(t)?t:i;i=r,n[r?"mute":"unMute"](),$E.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),$E.call(e,e.media,"timeupdate"),$E.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)&&$E.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),$E.call(e,e.media,"canplaythrough"))}),200),setTimeout((function(){return JS.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,$E.call(e,e.media,"seeked")),t.data){case-1:$E.call(e,e.media,"timeupdate"),e.media.buffered=n.getVideoLoadedFraction(),$E.call(e,e.media,"progress");break;case 0:s_.call(e,!1),e.media.loop?(n.stopVideo(),n.playVideo()):$E.call(e,e.media,"ended");break;case 1:e.config.autoplay||!e.media.paused||e.embed.hasPlayed?(s_.call(e,!0),$E.call(e,e.media,"playing"),e.timers.playing=setInterval((function(){$E.call(e,e.media,"timeupdate")}),50),e.media.duration!==n.getDuration()&&(e.media.duration=n.getDuration(),$E.call(e,e.media,"durationchange"))):e.media.pause();break;case 2:e.muted||e.embed.unMute(),s_.call(e,!1);break;case 3:$E.call(e,e.media,"waiting")}$E.call(e,e.elements.container,"statechange",!1,{code:t.data})}}})}}},u_={setup:function(){this.media?(RE(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),RE(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&RE(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=TE("div",{class:this.config.classNames.video}),SE(this.media,this.elements.wrapper),this.isEmbed&&(this.elements.poster=TE("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster))),this.isHTML5?ZE.extend.call(this):this.isYouTube?l_.setup.call(this):this.isVimeo&&a_.setup.call(this)):this.debug.warn("No media element found!")}},f_=function(){function e(t){var n=this;Zo(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 ta(e,[{key:"load",value:function(){var e=this;this.enabled&&(tE(window.google)&&tE(window.google.ima)?this.ready():i_(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=TE("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,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");var n=function(){var t=NS(Math.max(e.manager.getRemainingTime(),0)),n="".concat(xS("advertisement",e.player.config)," - ").concat(t);e.elements.container.setAttribute("data-badge-text",n)};this.countdownTimer=setInterval(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;dE(this.cuePoints)||this.cuePoints.forEach((function(t){if(0!==t&&-1!==t&&t<e.player.duration){var n=e.player.elements.progress;if(cE(n)){var r=100/e.player.duration*t,i=TE("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){$E.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;dE(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];aE(o)&&o.forEach((function(e){oE(e)&&e.apply(t,r)}))}},{key:"on",value:function(e,t){return aE(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){eE(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&&(!dE(e.publisherId)||hE(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;if(hE(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:e.publisherId};return"".concat("https://go.aniview.com/api/adserver6/vast/","?").concat(FS(t))}}]),e}(),h_=_p.findIndex,d_=!0,p_=Op("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){d_=!1})),Jd({target:"Array",proto:!0,forced:d_||!p_},{findIndex:function(e){return h_(this,e,arguments.length>1?arguments[1]:void 0)}}),Vp("findIndex");var g_=Math.min,m_=[].lastIndexOf,v_=!!m_&&1/[1].lastIndexOf(1,-0)<0,y_=Dg("lastIndexOf"),b_=Op("indexOf",{ACCESSORS:!0,1:0}),w_=v_||!y_||!b_?function(e){if(v_)return m_.apply(this,arguments)||0;var t=Nh(this),n=Pd(t.length),r=n-1;for(arguments.length>1&&(r=g_(r,Ad(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:m_;Jd({target:"Array",proto:!0,forced:w_!==[].lastIndexOf},{lastIndexOf:w_});var k_=function(e,t){var n={};return e>t.width/t.height?(n.width=t.width,n.height=1/e*t.width):(n.height=t.height,n.width=e*t.height),n},E_=function(){function e(t){Zo(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 ta(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(dE(n))throw new Error("Missing previewThumbnails.src config attribute");var r=(rE(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){OS(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(nE(t.startTime)){if(!dE(e.trim())&&dE(t.text)){var n=e.trim().split("#xywh="),r=oa(n,1);if(t.text=r[0],n[1]){var i=oa(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&&lE(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=NS(this.seekTime)}this.showImageAtCurrentTime()}}},{key:"endMove",value:function(){this.toggleThumbContainer(!1,!0)}},{key:"startScrubbing",value:function(e){(eE(e.button)||!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):WE.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=TE("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=TE("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);var e=TE("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=TE("span",{},"00:00"),e.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(e),cE(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=TE("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(){var e=k_(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}),t=e.width,n=e.height;this.elements.scrubbing.container.style.width="".concat(t,"px"),this.elements.scrubbing.container.style.height="".concat(n,"px")}},{key:"setImageSizeAndOffset",value:function(e,t){if(this.usingSprites){var n=this.thumbContainerHeight/t.h;e.style.height="".concat(e.naturalHeight*n,"px"),e.style.width="".concat(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?k_(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height: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}(),S_={insertElements:function(e,t){var n=this;rE(t)?xE(e,this.media,{src:t}):aE(t)&&t.forEach((function(t){xE(e,n.media,t)}))},change:function(e){var t=this;kE(e,"sources.length")?(ZE.cancelRequests.call(this),this.destroy.call(this,(function(){t.options.quality=[],AE(t.media),t.media=null,cE(t.elements.container)&&t.elements.container.removeAttribute("class");var n=e.sources,r=e.type,i=oa(n,1)[0],o=i.provider,a=void 0===o?VS.html5:o,s=i.src,c="html5"===a?r:"div",l="html5"===a?{}:{src:s};Object.assign(t,{provider:a,type:r,supported:BE.check(r,a,t.config.playsinline),media:TE(c,l)}),t.elements.container.appendChild(t.media),iE(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),dE(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","")),JS.addStyleHook.call(t),t.isHTML5&&S_.insertElements.call(t,"source",n),t.config.title=e.title,u_.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&S_.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&JS.build.call(t),t.isHTML5&&t.media.load(),t.previewThumbnails&&t.previewThumbnails.load(),t.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};var __,T_=function(){function e(t,n){var r=this;if(Zo(this,e),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=BE.touch,this.media=t,rE(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||sE(this.media)||aE(this.media))&&(this.media=this.media[0]),this.config=EE({},BS,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 KS(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",BE),!eE(this.media)&&cE(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(BE.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"),cE(a)){if(s=US(a.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?VS.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?VS.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(dE(this.provider)||!Object.keys(VS).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=WS;break;case"video":case"audio":this.type=o,this.provider=VS.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=BE.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new QS(this),this.storage=new AS(this),this.media.plyr=this,cE(this.elements.container)||(this.elements.container=TE("div",{tabindex:0}),SE(this.media,this.elements.container)),JS.addStyleHook.call(this),u_.setup.call(this),this.config.debug&&VE.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)&&JS.build.call(this),this.listeners.container(),this.listeners.global(),this.fullscreen=new YS(this),this.config.ads.enabled&&(this.ads=new f_(this)),this.isHTML5&&this.config.autoplay&&setTimeout((function(){return r.play()}),10),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new E_(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 ta(e,[{key:"play",value:function(){var e=this;return oE(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(){return this.playing&&oE(this.media.pause)?this.media.pause():null}},{key:"togglePlay",value:function(e){return(iE(e)?e:!this.playing)?this.play():this.pause()}},{key:"stop",value:function(){this.isHTML5?(this.pause(),this.restart()):oE(this.media.stop)&&this.media.stop()}},{key:"restart",value:function(){this.currentTime=0}},{key:"rewind",value:function(e){this.currentTime-=nE(e)?e:this.config.seekTime}},{key:"forward",value:function(e){this.currentTime+=nE(e)?e:this.config.seekTime}},{key:"increaseVolume",value:function(e){var t=this.media.muted?0:this.volume;this.volume=t+(nE(e)?e:0)}},{key:"decreaseVolume",value:function(e){this.increaseVolume(-e)}},{key:"toggleCaptions",value:function(e){DS.toggle.call(this,e,!1)}},{key:"airplay",value:function(){BE.airplay&&this.media.webkitShowPlaybackTargetPicker()}},{key:"toggleControls",value:function(e){if(this.supported.ui&&!this.isAudio){var t=jE(this.elements.container,this.config.classNames.hideControls),n=void 0===e?void 0:!e,r=RE(this.elements.container,this.config.classNames.hideControls,n);if(r&&this.config.controls.includes("settings")&&!dE(this.config.settings)&&MS.toggleMenu.call(this,!1),r!==t){var i=r?"controlshidden":"controlsshown";$E.call(this,this.media,i)}return!r}return!1}},{key:"on",value:function(e,t){VE.call(this,this.elements.container,e,t)}},{key:"once",value:function(e,t){WE.call(this,this.elements.container,e,t)}},{key:"off",value:function(e,t){zE(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&&(AE(t.elements.buttons.play),AE(t.elements.captions),AE(t.elements.controls),AE(t.elements.wrapper),t.elements.buttons.play=null,t.elements.captions=null,t.elements.controls=null,t.elements.wrapper=null),oE(e)&&e()):(KE.call(t),PE(t.elements.original,t.elements.container),$E.call(t,t.elements.original,"destroyed",!0),oE(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?(JS.toggleNativeControls.call(this,!0),r()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),null!==this.embed&&oE(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 BE.mime.call(this,e)}},{key:"isHTML5",get:function(){return this.provider===VS.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===VS.youtube}},{key:"isVimeo",get:function(){return this.provider===VS.vimeo}},{key:"isVideo",get:function(){return this.type===WS}},{key:"isAudio",get:function(){return this.type===zS}},{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=nE(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 nE(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=nE(t)&&t!==1/0?t:0;return e||n}},{key:"volume",set:function(e){var t=e;rE(t)&&(t=Number(t)),nE(t)||(t=this.storage.get("volume")),nE(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!dE(e)&&this.muted&&t>0&&(this.muted=!1)},get:function(){return Number(this.media.volume)}},{key:"muted",set:function(e){var t=e;iE(t)||(t=this.storage.get("muted")),iE(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;nE(e)&&(n=e),nE(n)||(n=this.storage.get("speed")),nE(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,aa(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,aa(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=[!dE(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(nE),i=!0;if(!n.includes(r)){var o=function(e,t){return aE(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=iE(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){S_.change.call(this,e)},get:function(){return this.media.currentSrc}},{key:"download",get:function(){var e=this.config.urls.download;return hE(e)?e:this.source},set:function(e){hE(e)&&(this.config.urls.download=e,MS.setDownloadUrl.call(this))}},{key:"poster",set:function(e){this.isVideo?JS.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=XE(JE.call(this));return aE(e)?e.join(":"):e},set:function(e){this.isVideo?rE(e)&&GE(e)?(this.config.ratio=e,QE.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=iE(e)?e:this.config.autoplay;this.config.autoplay=t},get:function(){return Boolean(this.config.autoplay)}},{key:"currentTrack",set:function(e){DS.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){DS.setLanguage.call(this,e,!1)},get:function(){return(DS.getCurrentTrack.call(this)||{}).language}},{key:"pip",set:function(e){if(BE.pip){var t=iE(e)?e:!this.pip;oE(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?qS:HS),oE(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}},get:function(){return BE.pip?dE(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===qS:null}}],[{key:"supported",value:function(e,t,n){return BE.check(e,t,n)}},{key:"loadSprite",value:function(e,t){return PS(e,t)}},{key:"setup",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;return rE(t)?r=Array.from(document.querySelectorAll(t)):sE(t)?r=Array.from(t):aE(t)&&(r=t.filter(cE)),dE(r)?null:r.map((function(t){return new e(t,n)}))}}]),e}();T_.defaults=(__=BS,JSON.parse(JSON.stringify(__)));var x_,A_,O_={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/383514704",provider:"vimeo"}]}},P_=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)};x_=window.location.host,A_={prod:"plyr.io"===x_,dev:"dev.plyr.io"===x_},document.addEventListener("DOMContentLoaded",(function(){yf.context((function(){kh.setup(".js-shr",{count:{className:"button__count"},wrapper:{className:"button--with-count"}});var e=new T_("#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:A_.prod||A_.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(O_),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 P_(e.parentElement,"active",!1)})),P_(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=O_[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)}))})),A_.prod&&yf.config("https://d4ad9866ad834437a4754e23937071e4@sentry.io/305555").install()}();
|
||
//# sourceMappingURL=demo.min.js.map
|