(("undefined"!=typeof self?self:global).webpackChunkclient_web=("undefined"!=typeof self?self:global).webpackChunkclient_web||[]).push([[342],{84310:()=>{"use strict";Math.abs,String.fromCharCode,Object.assign},68315:t=>{"use strict";t.exports=function(t,e){var n=new Array(arguments.length-1),r=0,o=2,i=!0;for(;o{"use strict";var n=e;n.length=function(t){var e=t.length;if(!e)return 0;for(var n=0;--e%4>1&&"="===t.charAt(e);)++n;return Math.ceil(3*t.length)/4-n};for(var r=new Array(64),o=new Array(123),i=0;i<64;)o[r[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;n.encode=function(t,e,n){for(var o,i=null,a=[],s=0,u=0;e>2],o=(3&c)<<4,u=1;break;case 1:a[s++]=r[o|c>>4],o=(15&c)<<2,u=2;break;case 2:a[s++]=r[o|c>>6],a[s++]=r[63&c],u=0}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),s=0)}return u&&(a[s++]=r[o],a[s++]=61,1===u&&(a[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,a.slice(0,s))),i.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var a="invalid encoding";n.decode=function(t,e,n){for(var r,i=n,s=0,u=0;u1)break;if(void 0===(c=o[c]))throw Error(a);switch(s){case 0:r=c,s=1;break;case 1:e[n++]=r<<2|(48&c)>>4,r=c,s=2;break;case 2:e[n++]=(15&r)<<4|(60&c)>>2,r=c,s=3;break;case 3:e[n++]=(3&r)<<6|c,s=0}}if(1===s)throw Error(a);return n-i},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},25985:t=>{"use strict";function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var n=this._listeners[t],r=0;r{"use strict";function e(t){return"undefined"!=typeof Float32Array?function(){var e=new Float32Array([-0]),n=new Uint8Array(e.buffer),r=128===n[3];function o(t,r,o){e[0]=t,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3]}function i(t,r,o){e[0]=t,r[o]=n[3],r[o+1]=n[2],r[o+2]=n[1],r[o+3]=n[0]}function a(t,r){return n[0]=t[r],n[1]=t[r+1],n[2]=t[r+2],n[3]=t[r+3],e[0]}function s(t,r){return n[3]=t[r],n[2]=t[r+1],n[1]=t[r+2],n[0]=t[r+3],e[0]}t.writeFloatLE=r?o:i,t.writeFloatBE=r?i:o,t.readFloatLE=r?a:s,t.readFloatBE=r?s:a}():function(){function e(t,e,n,r){var o=e<0?1:0;if(o&&(e=-e),0===e)t(1/e>0?0:2147483648,n,r);else if(isNaN(e))t(2143289344,n,r);else if(e>34028234663852886e22)t((o<<31|2139095040)>>>0,n,r);else if(e<11754943508222875e-54)t((o<<31|Math.round(e/1401298464324817e-60))>>>0,n,r);else{var i=Math.floor(Math.log(e)/Math.LN2);t((o<<31|i+127<<23|8388607&Math.round(e*Math.pow(2,-i)*8388608))>>>0,n,r)}}function a(t,e,n){var r=t(e,n),o=2*(r>>31)+1,i=r>>>23&255,a=8388607&r;return 255===i?a?NaN:o*(1/0):0===i?1401298464324817e-60*o*a:o*Math.pow(2,i-150)*(a+8388608)}t.writeFloatLE=e.bind(null,n),t.writeFloatBE=e.bind(null,r),t.readFloatLE=a.bind(null,o),t.readFloatBE=a.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),r=128===n[7];function o(t,r,o){e[0]=t,r[o]=n[0],r[o+1]=n[1],r[o+2]=n[2],r[o+3]=n[3],r[o+4]=n[4],r[o+5]=n[5],r[o+6]=n[6],r[o+7]=n[7]}function i(t,r,o){e[0]=t,r[o]=n[7],r[o+1]=n[6],r[o+2]=n[5],r[o+3]=n[4],r[o+4]=n[3],r[o+5]=n[2],r[o+6]=n[1],r[o+7]=n[0]}function a(t,r){return n[0]=t[r],n[1]=t[r+1],n[2]=t[r+2],n[3]=t[r+3],n[4]=t[r+4],n[5]=t[r+5],n[6]=t[r+6],n[7]=t[r+7],e[0]}function s(t,r){return n[7]=t[r],n[6]=t[r+1],n[5]=t[r+2],n[4]=t[r+3],n[3]=t[r+4],n[2]=t[r+5],n[1]=t[r+6],n[0]=t[r+7],e[0]}t.writeDoubleLE=r?o:i,t.writeDoubleBE=r?i:o,t.readDoubleLE=r?a:s,t.readDoubleBE=r?s:a}():function(){function e(t,e,n,r,o,i){var a=r<0?1:0;if(a&&(r=-r),0===r)t(0,o,i+e),t(1/r>0?0:2147483648,o,i+n);else if(isNaN(r))t(0,o,i+e),t(2146959360,o,i+n);else if(r>17976931348623157e292)t(0,o,i+e),t((a<<31|2146435072)>>>0,o,i+n);else{var s;if(r<22250738585072014e-324)t((s=r/5e-324)>>>0,o,i+e),t((a<<31|s/4294967296)>>>0,o,i+n);else{var u=Math.floor(Math.log(r)/Math.LN2);1024===u&&(u=1023),t(4503599627370496*(s=r*Math.pow(2,-u))>>>0,o,i+e),t((a<<31|u+1023<<20|1048576*s&1048575)>>>0,o,i+n)}}}function a(t,e,n,r,o){var i=t(r,o+e),a=t(r,o+n),s=2*(a>>31)+1,u=a>>>20&2047,c=4294967296*(1048575&a)+i;return 2047===u?c?NaN:s*(1/0):0===u?5e-324*s*c:s*Math.pow(2,u-1075)*(c+4503599627370496)}t.writeDoubleLE=e.bind(null,n,0,4),t.writeDoubleBE=e.bind(null,r,4,0),t.readDoubleLE=a.bind(null,o,0,4),t.readDoubleBE=a.bind(null,i,4,0)}(),t}function n(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function r(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function i(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},47789:module=>{"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(t){}return null}module.exports=inquire},35057:t=>{"use strict";t.exports=function(t,e,n){var r=n||8192,o=r>>>1,i=null,a=r;return function(n){if(n<1||n>o)return t(n);a+n>r&&(i=t(r),a=0);var s=e.call(i,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},32025:(t,e)=>{"use strict";var n=e;n.length=function(t){for(var e=0,n=0,r=0;r191&&r<224?i[a++]=(31&r)<<6|63&t[e++]:r>239&&r<365?(r=((7&r)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,i[a++]=55296+(r>>10),i[a++]=56320+(1023&r)):i[a++]=(15&r)<<12|(63&t[e++])<<6|63&t[e++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))},n.write=function(t,e,n){for(var r,o,i=n,a=0;a>6|192,e[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(o=t.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&o),++a,e[n++]=r>>18|240,e[n++]=r>>12&63|128,e[n++]=r>>6&63|128,e[n++]=63&r|128):(e[n++]=r>>12|224,e[n++]=r>>6&63|128,e[n++]=63&r|128);return n-i}},70283:(t,e,n)=>{"use strict";function r(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r3?e.i-4:e.i:Array.isArray(t)?1:h(t)?2:p(t)?3:0}function u(t,e){return 2===s(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function c(t,e){return 2===s(t)?t.get(e):t[e]}function l(t,e,n){var r=s(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function f(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t){return z&&t instanceof Map}function p(t){return H&&t instanceof Set}function d(t){return t.o||t.t}function v(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Y(t);delete e[$];for(var n=K(e),r=0;r1&&(t.set=t.add=t.clear=t.delete=g),Object.freeze(t),e&&a(t,(function(t,e){return m(e,!0)}),!0)),t}function g(){r(2)}function y(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function b(t){var e=Q[t];return e||r(18,t),e}function _(t,e){Q[t]||(Q[t]=e)}function A(){return j}function w(t,e){e&&(b("Patches"),t.u=[],t.s=[],t.v=e)}function E(t){S(t),t.p.forEach(T),t.p=null}function S(t){t===j&&(j=t.l)}function C(t){return j={p:[],l:j,h:t,m:!0,_:0}}function T(t){var e=t[$];0===e.i||1===e.i?e.j():e.g=!0}function k(t,e){e._=e.p.length;var n=e.p[0],o=void 0!==t&&t!==n;return e.h.O||b("ES5").S(e,t,o),o?(n[$].P&&(E(e),r(4)),i(t)&&(t=O(e,t),e.l||x(e,t)),e.u&&b("Patches").M(n[$].t,t,e.u,e.s)):t=O(e,n,[]),E(e),e.u&&e.v(e.u,e.s),t!==W?t:void 0}function O(t,e,n){if(y(e))return e;var r=e[$];if(!r)return a(e,(function(o,i){return L(t,r,e,o,i,n)}),!0),e;if(r.A!==t)return e;if(!r.P)return x(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=v(r.k):r.o,i=o,s=!1;3===r.i&&(i=new Set(o),o.clear(),s=!0),a(i,(function(e,i){return L(t,r,o,e,i,n,s)})),x(t,o,!1),n&&t.u&&b("Patches").N(r,n,t.u,t.s)}return r.o}function L(t,e,n,r,a,s,c){if(o(a)){var f=O(t,a,s&&e&&3!==e.i&&!u(e.R,r)?s.concat(r):void 0);if(l(n,r,f),!o(f))return;t.m=!1}else c&&n.add(a);if(i(a)&&!y(a)){if(!t.h.D&&t._<1)return;O(t,a),e&&e.A.l||x(t,a)}}function x(t,e,n){void 0===n&&(n=!1),!t.l&&t.h.D&&t.m&&m(e,n)}function P(t,e){var n=t[$];return(n?d(n):t)[e]}function I(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function N(t){t.P||(t.P=!0,t.l&&N(t.l))}function R(t){t.o||(t.o=v(t.t))}function M(t,e,n){var r=h(e)?b("MapSet").F(e,n):p(e)?b("MapSet").T(e,n):t.O?function(t,e){var n=Array.isArray(t),r={i:n?1:0,A:e?e.A:A(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=r,i=X;n&&(o=[r],i=J);var a=Proxy.revocable(o,i),s=a.revoke,u=a.proxy;return r.k=u,r.j=s,u}(e,n):b("ES5").J(e,n);return(n?n.A:A()).p.push(r),r}function D(t){return o(t)||r(22,t),function t(e){if(!i(e))return e;var n,r=e[$],o=s(e);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=F(e,o),r.I=!1}else n=F(e,o);return a(n,(function(e,o){r&&c(r.t,e)===o||l(n,e,t(o))})),3===o?new Set(n):n}(t)}function F(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return v(t)}function V(){function t(t,e){var n=i[t];return n?n.enumerable=e:i[t]=n={configurable:!0,enumerable:e,get:function(){var e=this[$];return X.get(e,t)},set:function(e){var n=this[$];X.set(n,t,e)}},n}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][$];if(!o.P)switch(o.i){case 5:r(o)&&N(o);break;case 4:n(o)&&N(o)}}}function n(t){for(var e=t.t,n=t.k,r=K(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==$){var a=e[i];if(void 0===a&&!u(e,i))return!0;var s=n[i],c=s&&s[$];if(c?c.t!==a:!f(s,a))return!0}}var l=!!e[$];return r.length!==K(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);if(n&&!n.get)return!0;for(var r=0;rEt});var B,j,U="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),z="undefined"!=typeof Map,H="undefined"!=typeof Set,q="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,W=U?Symbol.for("immer-nothing"):((B={})["immer-nothing"]=!0,B),Z=U?Symbol.for("immer-draftable"):"__$immer_draftable",$=U?Symbol.for("immer-state"):"__$immer_state",G=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),K="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Y=Object.getOwnPropertyDescriptors||function(t){var e={};return K(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},Q={},X={get:function(t,e){if(e===$)return t;var n=d(t);if(!u(n,e))return function(t,e,n){var r,o=I(e,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(t.k):void 0}(t,n,e);var r=n[e];return t.I||!i(r)?r:r===P(t.t,e)?(R(t),t.o[e]=M(t.A.h,r,t)):r},has:function(t,e){return e in d(t)},ownKeys:function(t){return Reflect.ownKeys(d(t))},set:function(t,e,n){var r=I(d(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=P(d(t),e),i=null==o?void 0:o[$];if(i&&i.t===n)return t.o[e]=n,t.R[e]=!1,!0;if(f(n,o)&&(void 0!==n||u(t.t,e)))return!0;R(t),N(t)}return t.o[e]===n&&(void 0!==n||e in t.o)||Number.isNaN(n)&&Number.isNaN(t.o[e])||(t.o[e]=n,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==P(t.t,e)||e in t.t?(t.R[e]=!1,R(t),N(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=d(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){r(12)}},J={};a(X,(function(t,e){J[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),J.deleteProperty=function(t,e){return J.set.call(this,t,e,void 0)},J.set=function(t,e,n){return X.set.call(this,t[0],e,n,t[0])};var tt=function(){function t(t){var e=this;this.O=q,this.D=!0,this.produce=function(t,n,o){if("function"==typeof t&&"function"!=typeof n){var a=n;n=t;var s=e;return function(t){var e=this;void 0===t&&(t=a);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i=0;n--){var r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var i=b("Patches").$;return o(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),et=new tt,nt=et.produce;et.produceWithPatches.bind(et),et.setAutoFreeze.bind(et),et.setUseProxies.bind(et),et.applyPatches.bind(et),et.createDraft.bind(et),et.finishDraft.bind(et);const rt=nt;"function"==typeof Symbol&&Symbol.observable;var ot=function(){return Math.random().toString(36).substring(7).split("").join(".")};ot(),ot();function it(){for(var t=arguments.length,e=new Array(t),n=0;n0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;ea,Gh:()=>p,HS:()=>d,Oi:()=>i,pb:()=>c,tH:()=>g,yD:()=>h}),function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(o||(o={}));function i(t,e){if(!1===t||null==t)throw new Error(e)}function a(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function s(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}var u;!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(u||(u={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function c(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&"/"!==r?null:t.slice(n)||"/"}function l(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function f(t){return t.filter(((t,e)=>0===e||t.route.path&&t.route.path.length>0))}function h(t,e){let n=f(t);return e?n.map(((t,e)=>e===n.length-1?t.pathname:t.pathnameBase)):n.map((t=>t.pathnameBase))}function p(t,e,n,o){let a;void 0===o&&(o=!1),"string"==typeof t?a=s(t):(a=r({},t),i(!a.pathname||!a.pathname.includes("?"),l("?","pathname","search",a)),i(!a.pathname||!a.pathname.includes("#"),l("#","pathname","hash",a)),i(!a.search||!a.search.includes("#"),l("#","search","hash",a)));let u,c=""===t||""===a.pathname,f=c?"/":a.pathname;if(null==f)u=n;else{let t=e.length-1;if(!o&&f.startsWith("..")){let e=f.split("/");for(;".."===e[0];)e.shift(),t-=1;a.pathname=e.join("/")}u=t>=0?e[t]:"/"}let h=function(t,e){void 0===e&&(e="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof t?s(t):t,i=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach((t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)})),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:i,search:v(r),hash:m(o)}}(a,u),p=f&&"/"!==f&&f.endsWith("/"),d=(c||"."===f)&&n.endsWith("/");return h.pathname.endsWith("/")||!p&&!d||(h.pathname+="/"),h}const d=t=>t.join("/").replace(/\/\/+/g,"/"),v=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",m=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";class g extends Error{}const y=["post","put","patch","delete"],b=(new Set(y),["get",...y]);new Set(b),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},27377:(t,e,n)=>{"use strict";function r(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}function o(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function i(t){var e=o(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function a(t){return t instanceof o(t).Element||t instanceof Element}function s(t){return t instanceof o(t).HTMLElement||t instanceof HTMLElement}function u(t){return"undefined"!=typeof ShadowRoot&&(t instanceof o(t).ShadowRoot||t instanceof ShadowRoot)}function c(t){return t?(t.nodeName||"").toLowerCase():null}function l(t){return((a(t)?t.ownerDocument:t.document)||window.document).documentElement}function f(t){return r(l(t)).left+i(t).scrollLeft}function h(t){return o(t).getComputedStyle(t)}function p(t){var e=h(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function d(t,e,n){void 0===n&&(n=!1);var a,u,h=s(e),d=s(e)&&function(t){var e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return 1!==n||1!==r}(e),v=l(e),m=r(t,d),g={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(h||!h&&!n)&&(("body"!==c(e)||p(v))&&(g=(a=e)!==o(a)&&s(a)?{scrollLeft:(u=a).scrollLeft,scrollTop:u.scrollTop}:i(a)),s(e)?((y=r(e,!0)).x+=e.clientLeft,y.y+=e.clientTop):v&&(y.x=f(v))),{x:m.left+g.scrollLeft-y.x,y:m.top+g.scrollTop-y.y,width:m.width,height:m.height}}function v(t){var e=r(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function m(t){return"html"===c(t)?t:t.assignedSlot||t.parentNode||(u(t)?t.host:null)||l(t)}function g(t){return["html","body","#document"].indexOf(c(t))>=0?t.ownerDocument.body:s(t)&&p(t)?t:g(m(t))}function y(t,e){var n;void 0===e&&(e=[]);var r=g(t),i=r===(null==(n=t.ownerDocument)?void 0:n.body),a=o(r),s=i?[a].concat(a.visualViewport||[],p(r)?r:[]):r,u=e.concat(s);return i?u:u.concat(y(m(s)))}function b(t){return["table","td","th"].indexOf(c(t))>=0}function _(t){return s(t)&&"fixed"!==h(t).position?t.offsetParent:null}function A(t){for(var e=o(t),n=_(t);n&&b(n)&&"static"===h(n).position;)n=_(n);return n&&("html"===c(n)||"body"===c(n)&&"static"===h(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&s(t)&&"fixed"===h(t).position)return null;for(var n=m(t);s(n)&&["html","body"].indexOf(c(n))<0;){var r=h(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||e&&"filter"===r.willChange||e&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(t)||e}n.d(e,{Ay:()=>we});var w="top",E="bottom",S="right",C="left",T="auto",k=[w,E,S,C],O="start",L="end",x="clippingParents",P="viewport",I="popper",N="reference",R=k.reduce((function(t,e){return t.concat([e+"-"+O,e+"-"+L])}),[]),M=[].concat(k,[T]).reduce((function(t,e){return t.concat([e,e+"-"+O,e+"-"+L])}),[]),D=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function F(t){var e=new Map,n=new Set,r=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var r=e.get(t);r&&o(r)}})),r.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||o(t)})),r}var V={placement:"bottom",modifiers:[],strategy:"absolute"};function B(){for(var t=arguments.length,e=new Array(t),n=0;n=0?"x":"y"}function Z(t){var e,n=t.reference,r=t.element,o=t.placement,i=o?H(o):null,a=o?q(o):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case w:e={x:s,y:n.y-r.height};break;case E:e={x:s,y:n.y+n.height};break;case S:e={x:n.x+n.width,y:u};break;case C:e={x:n.x-r.width,y:u};break;default:e={x:n.x,y:n.y}}var c=i?W(i):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case O:e[c]=e[c]-(n[l]/2-r[l]/2);break;case L:e[c]=e[c]+(n[l]/2-r[l]/2)}}return e}const $={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=Z({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var G=Math.max,K=Math.min,Y=Math.round,Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(t){var e,n=t.popper,r=t.popperRect,i=t.placement,a=t.variation,s=t.offsets,u=t.position,c=t.gpuAcceleration,f=t.adaptive,p=t.roundOffsets,d=!0===p?function(t){var e=t.x,n=t.y,r=window.devicePixelRatio||1;return{x:Y(Y(e*r)/r)||0,y:Y(Y(n*r)/r)||0}}(s):"function"==typeof p?p(s):s,v=d.x,m=void 0===v?0:v,g=d.y,y=void 0===g?0:g,b=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),T=C,k=w,O=window;if(f){var x=A(n),P="clientHeight",I="clientWidth";x===o(n)&&"static"!==h(x=l(n)).position&&"absolute"===u&&(P="scrollHeight",I="scrollWidth"),i!==w&&(i!==C&&i!==S||a!==L)||(k=E,y-=x[P]-r.height,y*=c?1:-1),i!==C&&(i!==w&&i!==E||a!==L)||(T=S,m-=x[I]-r.width,m*=c?1:-1)}var N,R=Object.assign({position:u},f&&Q);return c?Object.assign({},R,((N={})[k]=_?"0":"",N[T]=b?"0":"",N.transform=(O.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",N)):Object.assign({},R,((e={})[k]=_?y+"px":"",e[T]=b?m+"px":"",e.transform="",e))}const J={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];s(o)&&c(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(t){var e=r[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var r=e.elements[t],o=e.attributes[t]||{},i=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});s(r)&&c(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]};const tt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=void 0===o?[0,0]:o,a=M.reduce((function(t,n){return t[n]=function(t,e,n){var r=H(t),o=[C,w].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[C,S].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,i),t}),{}),s=a[e.placement],u=s.x,c=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a}};var et={left:"right",right:"left",bottom:"top",top:"bottom"};function nt(t){return t.replace(/left|right|bottom|top/g,(function(t){return et[t]}))}var rt={start:"end",end:"start"};function ot(t){return t.replace(/start|end/g,(function(t){return rt[t]}))}function it(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&u(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function at(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function st(t,e){return e===P?at(function(t){var e=o(t),n=l(t),r=e.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,u=r.offsetTop)),{width:i,height:a,x:s+f(t),y:u}}(t)):s(e)?function(t){var e=r(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):at(function(t){var e,n=l(t),r=i(t),o=null==(e=t.ownerDocument)?void 0:e.body,a=G(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=G(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+f(t),c=-r.scrollTop;return"rtl"===h(o||n).direction&&(u+=G(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:s,x:u,y:c}}(l(t)))}function ut(t,e,n){var r="clippingParents"===e?function(t){var e=y(m(t)),n=["absolute","fixed"].indexOf(h(t).position)>=0&&s(t)?A(t):t;return a(n)?e.filter((function(t){return a(t)&&it(t,n)&&"body"!==c(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),i=o[0],u=o.reduce((function(e,n){var r=st(t,n);return e.top=G(r.top,e.top),e.right=K(r.right,e.right),e.bottom=K(r.bottom,e.bottom),e.left=G(r.left,e.left),e}),st(t,i));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function ct(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function lt(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function ft(t,e){void 0===e&&(e={});var n=e,o=n.placement,i=void 0===o?t.placement:o,s=n.boundary,u=void 0===s?x:s,c=n.rootBoundary,f=void 0===c?P:c,h=n.elementContext,p=void 0===h?I:h,d=n.altBoundary,v=void 0!==d&&d,m=n.padding,g=void 0===m?0:m,y=ct("number"!=typeof g?g:lt(g,k)),b=p===I?N:I,_=t.rects.popper,A=t.elements[v?b:p],C=ut(a(A)?A:A.contextElement||l(t.elements.popper),u,f),T=r(t.elements.reference),O=Z({reference:T,element:_,strategy:"absolute",placement:i}),L=at(Object.assign({},_,O)),R=p===I?L:T,M={top:C.top-R.top+y.top,bottom:R.bottom-C.bottom+y.bottom,left:C.left-R.left+y.left,right:R.right-C.right+y.right},D=t.modifiersData.offset;if(p===I&&D){var F=D[i];Object.keys(M).forEach((function(t){var e=[S,E].indexOf(t)>=0?1:-1,n=[w,E].indexOf(t)>=0?"y":"x";M[t]+=F[n]*e}))}return M}function ht(t,e,n){return G(t,K(e,n))}const pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,f=n.padding,h=n.tether,p=void 0===h||h,d=n.tetherOffset,m=void 0===d?0:d,g=ft(e,{boundary:u,rootBoundary:c,padding:f,altBoundary:l}),y=H(e.placement),b=q(e.placement),_=!b,T=W(y),k="x"===T?"y":"x",L=e.modifiersData.popperOffsets,x=e.rects.reference,P=e.rects.popper,I="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,N={x:0,y:0};if(L){if(i||s){var R="y"===T?w:C,M="y"===T?E:S,D="y"===T?"height":"width",F=L[T],V=L[T]+g[R],B=L[T]-g[M],j=p?-P[D]/2:0,U=b===O?x[D]:P[D],z=b===O?-P[D]:-x[D],Z=e.elements.arrow,$=p&&Z?v(Z):{width:0,height:0},Y=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=Y[R],X=Y[M],J=ht(0,x[D],$[D]),tt=_?x[D]/2-j-J-Q-I:U-J-Q-I,et=_?-x[D]/2+j+J+X+I:z+J+X+I,nt=e.elements.arrow&&A(e.elements.arrow),rt=nt?"y"===T?nt.clientTop||0:nt.clientLeft||0:0,ot=e.modifiersData.offset?e.modifiersData.offset[e.placement][T]:0,it=L[T]+tt-ot-rt,at=L[T]+et-ot;if(i){var st=ht(p?K(V,it):V,F,p?G(B,at):B);L[T]=st,N[T]=st-F}if(s){var ut="x"===T?w:C,ct="x"===T?E:S,lt=L[k],pt=lt+g[ut],dt=lt-g[ct],vt=ht(p?K(pt,it):pt,lt,p?G(dt,at):dt);L[k]=vt,N[k]=vt-lt}}e.modifiersData[r]=N}},requiresIfExists:["offset"]};const dt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=H(n.placement),u=W(s),c=[C,S].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(t,e){return ct("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:lt(t,k))}(o.padding,n),f=v(i),h="y"===u?w:C,p="y"===u?E:S,d=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],m=a[u]-n.rects.reference[u],g=A(i),y=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,b=d/2-m/2,_=l[h],T=y-f[c]-l[p],O=y/2-f[c]/2+b,L=ht(_,O,T),x=u;n.modifiersData[r]=((e={})[x]=L,e.centerOffset=L-O,e)}},effect:function(t){var e=t.state,n=t.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r)))&&it(e.elements.popper,r)&&(e.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function mt(t){return[w,S,E,C].some((function(e){return t[e]>=0}))}var gt=j({defaultModifiers:[z,$,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s,c={placement:H(e.placement),variation:q(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,X(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,X(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},J,tt,{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,d=void 0===p||p,v=n.allowedAutoPlacements,m=e.options.placement,g=H(m),y=u||(g===m||!d?[nt(m)]:function(t){if(H(t)===T)return[];var e=nt(t);return[ot(t),e,ot(e)]}(m)),b=[m].concat(y).reduce((function(t,n){return t.concat(H(n)===T?function(t,e){void 0===e&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?M:u,l=q(r),f=l?s?R:R.filter((function(t){return q(t)===l})):k,h=f.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=f);var p=h.reduce((function(e,n){return e[n]=ft(t,{placement:n,boundary:o,rootBoundary:i,padding:a})[H(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:n,boundary:l,rootBoundary:f,padding:c,flipVariations:d,allowedAutoPlacements:v}):n)}),[]),_=e.rects.reference,A=e.rects.popper,L=new Map,x=!0,P=b[0],I=0;I=0,B=V?"width":"height",j=ft(e,{placement:N,boundary:l,rootBoundary:f,altBoundary:h,padding:c}),U=V?F?S:C:F?E:w;_[B]>A[B]&&(U=nt(U));var z=nt(U),W=[];if(i&&W.push(j[D]<=0),s&&W.push(j[U]<=0,j[z]<=0),W.every((function(t){return t}))){P=N,x=!1;break}L.set(N,W)}if(x)for(var Z=function(t){var e=b.find((function(e){var n=L.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return P=e,"break"},$=d?3:1;$>0;$--){if("break"===Z($))break}e.placement!==P&&(e.modifiersData[r]._skip=!0,e.placement=P,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},pt,dt,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=ft(e,{elementContext:"reference"}),s=ft(e,{altBoundary:!0}),u=vt(a,r),c=vt(s,o,i),l=mt(u),f=mt(c);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),yt="tippy-content",bt="tippy-backdrop",_t="tippy-arrow",At="tippy-svg-arrow",wt={passive:!0,capture:!0},Et=function(){return document.body};function St(t,e,n){if(Array.isArray(t)){var r=t[e];return null==r?Array.isArray(n)?n[e]:n:r}return t}function Ct(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function Tt(t,e){return"function"==typeof t?t.apply(void 0,e):t}function kt(t,e){return 0===e?t:function(r){clearTimeout(n),n=setTimeout((function(){t(r)}),e)};var n}function Ot(t){return[].concat(t)}function Lt(t,e){-1===t.indexOf(e)&&t.push(e)}function xt(t){return t.split("-")[0]}function Pt(t){return[].slice.call(t)}function It(t){return Object.keys(t).reduce((function(e,n){return void 0!==t[n]&&(e[n]=t[n]),e}),{})}function Nt(){return document.createElement("div")}function Rt(t){return["Element","Fragment"].some((function(e){return Ct(t,e)}))}function Mt(t){return Ct(t,"MouseEvent")}function Dt(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function Ft(t){return Rt(t)?[t]:function(t){return Ct(t,"NodeList")}(t)?Pt(t):Array.isArray(t)?t:Pt(document.querySelectorAll(t))}function Vt(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function Bt(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function jt(t){var e,n=Ot(t)[0];return null!=n&&null!=(e=n.ownerDocument)&&e.body?n.ownerDocument:document}function Ut(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[r](e,n)}))}function zt(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Ht={isTouch:!1},qt=0;function Wt(){Ht.isTouch||(Ht.isTouch=!0,window.performance&&document.addEventListener("mousemove",Zt))}function Zt(){var t=performance.now();t-qt<20&&(Ht.isTouch=!1,document.removeEventListener("mousemove",Zt)),qt=t}function $t(){var t=document.activeElement;if(Dt(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var Gt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Kt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Yt=Object.assign({appendTo:Et,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Kt,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Qt=Object.keys(Yt);function Xt(t){var e=(t.plugins||[]).reduce((function(e,n){var r,o=n.name,i=n.defaultValue;o&&(e[o]=void 0!==t[o]?t[o]:null!=(r=Yt[o])?r:i);return e}),{});return Object.assign({},t,e)}function Jt(t,e){var n=Object.assign({},e,{content:Tt(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(Xt(Object.assign({},Yt,{plugins:e}))):Qt).reduce((function(e,n){var r=(t.getAttribute("data-tippy-"+n)||"").trim();if(!r)return e;if("content"===n)e[n]=r;else try{e[n]=JSON.parse(r)}catch(t){e[n]=r}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},Yt.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function te(t){var e=t.firstElementChild,n=Pt(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(yt)})),arrow:n.find((function(t){return t.classList.contains(_t)||t.classList.contains(At)})),backdrop:n.find((function(t){return t.classList.contains(bt)}))}}var ee=1,ne=[],re=[];function oe(t,e){var n,r,o,i,a,s,u,c,l=Jt(t,Object.assign({},Yt,Xt(It(e)))),f=!1,h=!1,p=!1,d=!1,v=[],m=kt($,l.interactiveDebounce),g=ee++,y=(c=l.plugins).filter((function(t,e){return c.indexOf(t)===e})),b={id:g,reference:t,popper:Nt(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(e){0;if(b.state.isDestroyed)return;N("onBeforeUpdate",[b,e]),W();var n=b.props,r=Jt(t,Object.assign({},n,It(e),{ignoreAttributes:!0}));b.props=r,q(),n.interactiveDebounce!==r.interactiveDebounce&&(D(),m=kt($,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?Ot(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):r.triggerTarget&&t.removeAttribute("aria-expanded");M(),I(),w&&w(n,r);b.popperInstance&&(Q(),J().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));N("onAfterUpdate",[b,e])},setContent:function(t){b.setProps({content:t})},show:function(){0;var t=b.state.isVisible,e=b.state.isDestroyed,n=!b.state.isEnabled,r=Ht.isTouch&&!b.props.touch,o=St(b.props.duration,0,Yt.duration);if(t||e||n||r)return;if(O().hasAttribute("disabled"))return;if(N("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,k()&&(A.style.visibility="visible");I(),j(),b.state.isMounted||(A.style.transition="none");if(k()){var i=x();Vt([i.box,i.content],0)}s=function(){var t;if(b.state.isVisible&&!d){if(d=!0,A.offsetHeight,A.style.transition=b.props.moveTransition,k()&&b.props.animation){var e=x(),n=e.box,r=e.content;Vt([n,r],o),Bt([n,r],"visible")}R(),M(),Lt(re,b),null==(t=b.popperInstance)||t.forceUpdate(),N("onMount",[b]),b.props.animation&&k()&&function(t,e){z(t,e)}(o,(function(){b.state.isShown=!0,N("onShown",[b])}))}},function(){var t,e=b.props.appendTo,n=O();t=b.props.interactive&&e===Et||"parent"===e?n.parentNode:Tt(e,[n]);t.contains(A)||t.appendChild(A);b.state.isMounted=!0,Q(),!1}()},hide:function(){0;var t=!b.state.isVisible,e=b.state.isDestroyed,n=!b.state.isEnabled,r=St(b.props.duration,1,Yt.duration);if(t||e||n)return;if(N("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,d=!1,f=!1,k()&&(A.style.visibility="hidden");if(D(),U(),I(!0),k()){var o=x(),i=o.box,a=o.content;b.props.animation&&(Vt([i,a],r),Bt([i,a],"hidden"))}R(),M(),b.props.animation?k()&&function(t,e){z(t,(function(){!b.state.isVisible&&A.parentNode&&A.parentNode.contains(A)&&e()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(t){0;L().addEventListener("mousemove",m),Lt(ne,m),m(t)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;X(),J().forEach((function(t){t._tippy.unmount()})),A.parentNode&&A.parentNode.removeChild(A);re=re.filter((function(t){return t!==b})),b.state.isMounted=!1,N("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),W(),delete t._tippy,b.state.isDestroyed=!0,N("onDestroy",[b])}};if(!l.render)return b;var _=l.render(b),A=_.popper,w=_.onUpdate;A.setAttribute("data-tippy-root",""),A.id="tippy-"+b.id,b.popper=A,t._tippy=b,A._tippy=b;var E=y.map((function(t){return t.fn(b)})),S=t.hasAttribute("aria-expanded");return q(),M(),I(),N("onCreate",[b]),l.showOnCreate&&tt(),A.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),A.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&L().addEventListener("mousemove",m)})),b;function C(){var t=b.props.touch;return Array.isArray(t)?t:[t,0]}function T(){return"hold"===C()[0]}function k(){var t;return!(null==(t=b.props.render)||!t.$$tippy)}function O(){return u||t}function L(){var t=O().parentNode;return t?jt(t):document}function x(){return te(A)}function P(t){return b.state.isMounted&&!b.state.isVisible||Ht.isTouch||i&&"focus"===i.type?0:St(b.props.delay,t?0:1,Yt.delay)}function I(t){void 0===t&&(t=!1),A.style.pointerEvents=b.props.interactive&&!t?"":"none",A.style.zIndex=""+b.props.zIndex}function N(t,e,n){var r;(void 0===n&&(n=!0),E.forEach((function(n){n[t]&&n[t].apply(n,e)})),n)&&(r=b.props)[t].apply(r,e)}function R(){var e=b.props.aria;if(e.content){var n="aria-"+e.content,r=A.id;Ot(b.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(b.state.isVisible)t.setAttribute(n,e?e+" "+r:r);else{var o=e&&e.replace(r,"").trim();o?t.setAttribute(n,o):t.removeAttribute(n)}}))}}function M(){!S&&b.props.aria.expanded&&Ot(b.props.triggerTarget||t).forEach((function(t){b.props.interactive?t.setAttribute("aria-expanded",b.state.isVisible&&t===O()?"true":"false"):t.removeAttribute("aria-expanded")}))}function D(){L().removeEventListener("mousemove",m),ne=ne.filter((function(t){return t!==m}))}function F(e){if(!Ht.isTouch||!p&&"mousedown"!==e.type){var n=e.composedPath&&e.composedPath()[0]||e.target;if(!b.props.interactive||!zt(A,n)){if(Ot(b.props.triggerTarget||t).some((function(t){return zt(t,n)}))){if(Ht.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[b,e]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),h=!0,setTimeout((function(){h=!1})),b.state.isMounted||U())}}}function V(){p=!0}function B(){p=!1}function j(){var t=L();t.addEventListener("mousedown",F,!0),t.addEventListener("touchend",F,wt),t.addEventListener("touchstart",B,wt),t.addEventListener("touchmove",V,wt)}function U(){var t=L();t.removeEventListener("mousedown",F,!0),t.removeEventListener("touchend",F,wt),t.removeEventListener("touchstart",B,wt),t.removeEventListener("touchmove",V,wt)}function z(t,e){var n=x().box;function r(t){t.target===n&&(Ut(n,"remove",r),e())}if(0===t)return e();Ut(n,"remove",a),Ut(n,"add",r),a=r}function H(e,n,r){void 0===r&&(r=!1),Ot(b.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,r),v.push({node:t,eventType:e,handler:n,options:r})}))}function q(){var t;T()&&(H("touchstart",Z,{passive:!0}),H("touchend",G,{passive:!0})),(t=b.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(H(t,Z),t){case"mouseenter":H("mouseleave",G);break;case"focus":H(Gt?"focusout":"blur",K);break;case"focusin":H("focusout",K)}}))}function W(){v.forEach((function(t){var e=t.node,n=t.eventType,r=t.handler,o=t.options;e.removeEventListener(n,r,o)})),v=[]}function Z(t){var e,n=!1;if(b.state.isEnabled&&!Y(t)&&!h){var r="focus"===(null==(e=i)?void 0:e.type);i=t,u=t.currentTarget,M(),!b.state.isVisible&&Mt(t)&&ne.forEach((function(e){return e(t)})),"click"===t.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:tt(t),"click"===t.type&&(f=!n),n&&!r&&et(t)}}function $(t){var e=t.target,n=O().contains(e)||A.contains(e);if("mousemove"!==t.type||!n){var r=J().concat(A).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:l}:null})).filter(Boolean);(function(t,e){var n=e.clientX,r=e.clientY;return t.every((function(t){var e=t.popperRect,o=t.popperState,i=t.props.interactiveBorder,a=xt(o.placement),s=o.modifiersData.offset;if(!s)return!0;var u="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,l="right"===a?s.left.x:0,f="left"===a?s.right.x:0,h=e.top-r+u>i,p=r-e.bottom-c>i,d=e.left-n+l>i,v=n-e.right-f>i;return h||p||d||v}))})(r,t)&&(D(),et(t))}}function G(t){Y(t)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(t):et(t))}function K(t){b.props.trigger.indexOf("focusin")<0&&t.target!==O()||b.props.interactive&&t.relatedTarget&&A.contains(t.relatedTarget)||et(t)}function Y(t){return!!Ht.isTouch&&T()!==t.type.indexOf("touch")>=0}function Q(){X();var e=b.props,n=e.popperOptions,r=e.placement,o=e.offset,i=e.getReferenceClientRect,a=e.moveTransition,u=k()?te(A).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||O()}:t,l={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(k()){var n=x().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},f=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},l];k()&&u&&f.push({name:"arrow",options:{element:u,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),b.popperInstance=gt(c,A,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:f}))}function X(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function J(){return Pt(A.querySelectorAll("[data-tippy-root]"))}function tt(t){b.clearDelayTimeouts(),t&&N("onTrigger",[b,t]),j();var e=P(!0),r=C(),o=r[0],i=r[1];Ht.isTouch&&"hold"===o&&i&&(e=i),e?n=setTimeout((function(){b.show()}),e):b.show()}function et(t){if(b.clearDelayTimeouts(),N("onUntrigger",[b,t]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&f)){var e=P(!1);e?r=setTimeout((function(){b.state.isVisible&&b.hide()}),e):o=requestAnimationFrame((function(){b.hide()}))}}else U()}}function ie(t,e){void 0===e&&(e={});var n=Yt.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",Wt,wt),window.addEventListener("blur",$t);var r=Object.assign({},e,{plugins:n}),o=Ft(t).reduce((function(t,e){var n=e&&oe(e,r);return n&&t.push(n),t}),[]);return Rt(t)?o[0]:o}ie.defaultProps=Yt,ie.setDefaultProps=function(t){Object.keys(t).forEach((function(e){Yt[e]=t[e]}))},ie.currentInput=Ht;Object.assign({},J,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}});ie.setDefaultProps({animation:!1});const ae=ie;var se=n(30758),ue=n(8143);function ce(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}var le="undefined"!=typeof window&&"undefined"!=typeof document;function fe(t,e){t&&("function"==typeof t&&t(e),{}.hasOwnProperty.call(t,"current")&&(t.current=e))}function he(){return le&&document.createElement("div")}function pe(t,e){if(t===e)return!0;if("object"==typeof t&&null!=t&&"object"==typeof e&&null!=e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t){if(!e.hasOwnProperty(n))return!1;if(!pe(t[n],e[n]))return!1}return!0}return!1}function de(t){var e=[];return t.forEach((function(t){e.find((function(e){return pe(t,e)}))||e.push(t)})),e}function ve(t,e){var n,r;return Object.assign({},e,{popperOptions:Object.assign({},t.popperOptions,e.popperOptions,{modifiers:de([].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],(null==(r=e.popperOptions)?void 0:r.modifiers)||[]))})})}var me=le?se.useLayoutEffect:se.useEffect;function ge(t){var e=(0,se.useRef)();return e.current||(e.current="function"==typeof t?t():t),e.current}function ye(t,e,n){n.split(/\s+/).forEach((function(n){n&&t.classList[e](n)}))}var be={name:"className",defaultValue:"",fn:function(t){var e=t.popper.firstElementChild,n=function(){var e;return!!(null==(e=t.props.render)?void 0:e.$$tippy)};function r(){t.props.className&&!n()||ye(e,"add",t.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&ye(e,"remove",t.props.className)},onAfterUpdate:r}}};function _e(t){return function(e){var n=e.children,r=e.content,o=e.visible,i=e.singleton,a=e.render,s=e.reference,u=e.disabled,c=void 0!==u&&u,l=e.ignoreAttributes,f=void 0===l||l,h=(e.__source,e.__self,ce(e,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),p=void 0!==o,d=void 0!==i,v=(0,se.useState)(!1),m=v[0],g=v[1],y=(0,se.useState)({}),b=y[0],_=y[1],A=(0,se.useState)(),w=A[0],E=A[1],S=ge((function(){return{container:he(),renders:1}})),C=Object.assign({ignoreAttributes:f},h,{content:S.container});p&&(C.trigger="manual",C.hideOnClick=!1),d&&(c=!0);var T=C,k=C.plugins||[];a&&(T=Object.assign({},C,{plugins:d&&null!=i.data?[].concat(k,[{fn:function(){return{onTrigger:function(t,e){var n=i.data.children.find((function(t){return t.instance.reference===e.currentTarget}));t.state.$$activeSingletonInstance=n.instance,E(n.content)}}}}]):k,render:function(){return{popper:S.container}}}));var O=[s].concat(n?[n.type]:[]);return me((function(){var e=s;s&&s.hasOwnProperty("current")&&(e=s.current);var n=t(e||S.ref||he(),Object.assign({},T,{plugins:[be].concat(C.plugins||[])}));return S.instance=n,c&&n.disable(),o&&n.show(),d&&i.hook({instance:n,content:r,props:T,setSingletonContent:E}),g(!0),function(){n.destroy(),null==i||i.cleanup(n)}}),O),me((function(){var t;if(1!==S.renders){var e=S.instance;e.setProps(ve(e.props,T)),null==(t=e.popperInstance)||t.forceUpdate(),c?e.disable():e.enable(),p&&(o?e.show():e.hide()),d&&i.hook({instance:e,content:r,props:T,setSingletonContent:E})}else S.renders++})),me((function(){var t;if(a){var e=S.instance;e.setProps({popperOptions:Object.assign({},e.props.popperOptions,{modifiers:[].concat(((null==(t=e.props.popperOptions)?void 0:t.modifiers)||[]).filter((function(t){return"$$tippyReact"!==t.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e,n=t.state,r=null==(e=n.modifiersData)?void 0:e.hide;b.placement===n.placement&&b.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&b.escaped===(null==r?void 0:r.hasPopperEscaped)||_({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[b.placement,b.referenceHidden,b.escaped].concat(O)),se.createElement(se.Fragment,null,n?(0,se.cloneElement)(n,{ref:function(t){S.ref=t,fe(n.ref,t)}}):null,m&&(0,ue.createPortal)(a?a(function(t){var e={"data-placement":t.placement};return t.referenceHidden&&(e["data-reference-hidden"]=""),t.escaped&&(e["data-escaped"]=""),e}(b),w,S.instance):r,S.container))}}var Ae=function(t,e){return(0,se.forwardRef)((function(n,r){var o=n.children,i=ce(n,["children"]);return se.createElement(t,Object.assign({},e,i),o?(0,se.cloneElement)(o,{ref:function(t){fe(r,t),fe(o.ref,t)}}):null)}))};const we=Ae(_e(ae),{render:function(){return""}})},59208:t=>{"use strict";const{AbortController:e,AbortSignal:n}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;t.exports=e,t.exports.AbortSignal=n,t.exports.default=e},83706:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Base62:()=>r,Base64:()=>o});var r={};n.r(r),n.d(r,{fromBytes:()=>v,fromHex:()=>y,toBytes:()=>m,toHex:()=>g});var o={};n.r(o),n.d(o,{decode:()=>S,encode:()=>E});n(7651),n(14551),n(9267),n(184),n(42486),n(86746),n(45434),n(79024),n(34518),n(96794),n(70750),n(68216),n(47994),n(43379),n(2823),n(65594),n(78397),n(97460),n(93577);function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:0;t.length>2),_.charAt((3&i)<<4),"==");break}var a=e.charCodeAt(o++);if(o===r){n.push(_.charAt(i>>2),_.charAt((3&i)<<4|(240&a)>>4),_.charAt((15&a)<<2),"=");break}var s=e.charCodeAt(o++);n.push(_.charAt(i>>2),_.charAt((3&i)<<4|(240&a)>>4),_.charAt((15&a)<<2|(192&s)>>6),_.charAt(63&s))}return n.join("")},S=function(t){for(var e,n,r=String(t),o=[],i=r.length,a=0;;){do{e=w.charCodeAt(255&r.charCodeAt(a++))}while(255===e&&a>4));do{e=w.charCodeAt(255&r.charCodeAt(a++))}while(255===e&&a>2));do{n=w.charCodeAt(255&r.charCodeAt(a++))}while(255===n&&a{"use strict";n.d(e,{bk:()=>m});var r,o=n(56068),i=n(2970),a=(n(184),n(42486),n(7651),n(14551),n(9267),n(86746),n(45434),n(79024),n(70750),n(68216),n(47994),n(43379),n(2823),n(65594),n(78397),n(97460),n(93577),n(40122),function(){return(0,i.A)((function t(e,n){(0,o.A)(this,t),this.defaultPrevented=!1,this.immediateStopped=!1,this.stopped=!1,this.type=e,this.data=n}),[{key:"preventDefault",value:function(){this.defaultPrevented=!0}},{key:"stopPropagation",value:function(){this.stopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediateStopped=!0}}])}()),s=(n(83234),n(65050),n(11737),n(27016),n(52346),"undefined"!=typeof window),u=[];function c(){var t,e=u.splice(0);if(e.length)for(var n=0,r=e.length;n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n3&&void 0!==arguments[3]?arguments[3]:{};if(!n)return!1;var o=t[e];return!o||!o.length||-1===p(o,n,r)}function v(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e&&n){var o=t[e],i={listener:n,options:r};o?o.push(i):t[e]=[i]}}s&&("function"==typeof window.__modDefFn?l=window.__modDefFn:"function"==typeof Object.defineProperty?Object.defineProperty(window,"__modDefFn",{value:l}):window.__modDefFn=l);var m=function(){return(0,i.A)((function t(){(0,o.A)(this,t),this._listeners={},this._metaListeners={add:{},remove:{}}}),[{key:"_dispatchFromStore",value:function(t,e){var n=e.type,r=t[n];if(r){var o,i=f(r=r.slice(0));try{for(i.s();!(o=i.n()).done;){var a=o.value;if(a.listener.call(this,e),a.options.once&&this.removeListener(n,a.listener,a.options),e.immediateStopped)break}}catch(t){i.e(t)}finally{i.f()}}}},{key:"createEvent",value:function(t,e){return new a(t,e)}},{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)throw new TypeError("Argument `eventType` is required.");if(!e)return this;var r=this._listeners;if(d(r,t,e,n)){var o=this._metaListeners.add,i=o[t];if(i&&i.length){var s=new a(t,{listener:e,options:n});if(this._dispatchFromStore(o,s),s.defaultPrevented)return this}v(r,t,e,n)}return this}},{key:"addListener",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.on(t,e,n)}},{key:"addListeners",value:function(t){for(var e in t)t.hasOwnProperty(e)&&this.on(e,t[e]);return this}},{key:"once",value:function(t,e){return this.on(t,e,{once:!0})}},{key:"removeListener",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)throw new TypeError("Argument `eventType` is required.");if(!e)return this;var r=this._listeners[t];if(!r)return this;var o=p(r,e,n);if(-1===o)return this;var i=this._metaListeners.remove[t];if(i&&i.length){var s=new a(t,{listener:e,options:n});if(this._dispatchFromStore(this._metaListeners.remove,s),s.defaultPrevented)return this}return r.splice(o,1),this}},{key:"removeListeners",value:function(t){for(var e in t)t.hasOwnProperty(e)&&this.removeListener(e,t[e]);return this}},{key:"removeAllListeners",value:function(t){return t?this._listeners[t]=[]:this._listeners={},this}},{key:"emit",value:function(t,e){var n=this;if(!t)throw new TypeError("Argument `eventType` is required.");var r=this.createEvent(t,e);return l((function(){return n._dispatchFromStore(n._listeners,r)})),r}},{key:"emitSync",value:function(t,e){if(!t)throw new TypeError("Argument `eventType` is required.");var n=this.createEvent(t,e);return this._dispatchFromStore(this._listeners,n),n}},{key:"emitEvent",value:function(t){var e=this;return l((function(){return e._dispatchFromStore(e._listeners,t)})),t}},{key:"emitEventSync",value:function(t){return this._dispatchFromStore(this._listeners,t),t}},{key:"emitAndWait",value:function(t,e,n){var r=this;if(!t)throw new TypeError("Argument `eventType` is required.");var o=this.createEvent(t,e);return l((function(){r._dispatchFromStore(r._listeners,o),n.call(r,o)})),o}},{key:"emitEventAndWait",value:function(t,e){var n=this;return l((function(){n._dispatchFromStore(n._listeners,t),e.call(n,t)})),t}},{key:"proxyEmit",value:function(t,e,n){var r=this;if(!t||"function"!=typeof t.on)throw new TypeError("Proxy source must be an EventEmitter");if(t===this)throw new ReferenceError("Cannot create recursive proxy.");if(!e||!n)throw new TypeError("Parameter sourceType and targetType are required.");var o=function(t){t.stopped||r.emitAndWait(n,t.data,(function(e){e.defaultPrevented&&t.preventDefault()}))};return t.on(e,o),o}},{key:"proxyEmitSync",value:function(t,e,n){var r=this;if(!t||"function"!=typeof t.on)throw new TypeError("Proxy source must be an EventEmitter");if(t===this)throw new ReferenceError("Cannot create recursive proxy.");if(!e||!n)throw new TypeError("Parameter sourceType and targetType are required.");var o=function(t){if(!t.stopped){var e=r.createEvent(n,t.data);r.emitEventSync(e),e.defaultPrevented&&t.preventDefault()}};return t.on(e,o),o}},{key:"proxyEmitAll",value:function(t,e){for(var n in e)e.hasOwnProperty(n)&&this.proxyEmit(t,n,e[n])}},{key:"proxyEmitAllSync",value:function(t,e){for(var n in e)e.hasOwnProperty(n)&&this.proxyEmitSync(t,n,e[n])}},{key:"onAddListener",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._metaListeners.add;return d(r,t,e,n)&&v(r,t,e,n),this}},{key:"onRemoveListener",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._metaListeners.remove;return d(r,t,e,n)&&v(r,t,e,n),this}}])}()},44506:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createSemanticMetricClient=void 0,e.createSemanticMetricClient=function(t){return{name:"SemanticMetricClient",environments:["browser","device"],data:t}}},33937:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createSemanticMetricClientNonAuth=void 0,e.createSemanticMetricClientNonAuth=function(t){return{name:"SemanticMetricClientNonAuth",environments:["browsernonauth","devicenonauth"],data:t}}},46508:(t,e,n)=>{"use strict";n(11737),e.I=void 0,e.I=function(t){return{name:"EventSenderStats2NonAuth",environments:["devicenonauth","browsernonauth","desktopnonauth"],data:t}}},8171:(t,e,n)=>{"use strict";n(11737),e.R=void 0,e.R=function(t){return{name:"RejectedClientEventNonAuth",environments:["browsernonauth","desktopnonauth","devicenonauth"],data:t}}},24419:(t,e,n)=>{"use strict";n(184),n(42486),n(25550),n(38408),n(11737),n(43379),n(72636),n(34192),n(15342),n(80456),Object.defineProperty(e,"__esModule",{value:!0}),e.hexToBase64=void 0;var r=n(83706);e.hexToBase64=function(t){if(!t||t.length%2!=0)throw new TypeError("Invalid hexString value.");var e=t.split("").reduce((function(t,e,n){return n%2==0?(t.push(e),t):(t[t.length-1]=""+t[t.length-1]+e,t)}),[]),n=String.fromCharCode.apply(null,e.map((function(t){var e=parseInt(t,16);if(isNaN(e))throw new TypeError("Invalid hexString value.");return e})));return r.Base64.encode(n)}},13130:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createApplicationContext=void 0,e.createApplicationContext=function(t){return function(){return{name:"context_application",data:t}}}},30108:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createApplicationDesktopContext=void 0,e.createApplicationDesktopContext=function(t){return function(){return{name:"context_application_desktop",data:t}}}},90883:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createCacheIdContext=void 0;var r=n(24419);e.createCacheIdContext=function(t){var e=r.hexToBase64(t);return function(){return{name:"context_cache_id",data:{value:e}}}}},13372:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createClientIdContext=void 0;var r=n(24419);e.createClientIdContext=function(t){var e=r.hexToBase64(t);return function(){return{name:"context_client_id",data:{value:e}}}}},40416:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createClientIpContext=void 0,e.createClientIpContext=function(t){return function(){return{name:"context_client_ip",data:{value:t}}}}},82393:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createCorrelationIdContext=void 0,e.createCorrelationIdContext=function(t){return function(){return{name:"context_correlation_id",data:{value:t}}}}},10076:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createDeviceContext=void 0,e.createDeviceContext=function(t){return function(){return{name:"context_device",data:t}}}},17694:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createDeviceDesktopContext=void 0,e.createDeviceDesktopContext=function(t){return function(){return{name:"context_device_desktop",data:t}}}},93540:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0});var r=n(83422);r.__exportStar(n(13130),e),r.__exportStar(n(30108),e),r.__exportStar(n(90883),e),r.__exportStar(n(13372),e),r.__exportStar(n(40416),e),r.__exportStar(n(82393),e),r.__exportStar(n(10076),e),r.__exportStar(n(17694),e),r.__exportStar(n(18603),e),r.__exportStar(n(34824),e),r.__exportStar(n(17992),e)},18603:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createInstallationIdContext=void 0;var r=n(24419);e.createInstallationIdContext=function(t){var e=r.hexToBase64(t);return function(){return{name:"context_installation_id",data:{value:e}}}}},34824:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createOsContext=void 0,e.createOsContext=function(t){return function(){return{name:"context_os",data:t}}}},17992:(t,e,n)=>{"use strict";n(184),n(42486),n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createUserAgentContext=void 0,e.createUserAgentContext=function(t){if(!t&&"undefined"==typeof navigator)throw new Error("userAgent is not provided and navigator.UserAgent is not available");return function(){return{name:"context_user_agent",data:{value:t||navigator.userAgent}}}}},42381:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Environment:()=>r,EventSenderEvent:()=>A,createEventSender:()=>J});var r;n(16765);!function(t){t.BACKEND="BACKEND",t.BROWSER="BROWSER",t.BROWSER_NON_AUTH="BROWSER_NON_AUTH",t.DESKTOP="DESKTOP",t.DESKTOP_NON_AUTH="DESKTOP_NON_AUTH",t.DEVICE="DEVICE",t.DEVICE_NON_AUTH="DEVICE_NON_AUTH"}(r||(r={}));var o,i=n(10231),a=n(56068),s=n(2970),u=n(98853),c=n(93311),l=n(39564),f=(n(83234),n(25550),n(40122),n(26851),n(65050),n(9750),n(43379),n(51234),n(90489),n(15342),n(83422)),h=n(62680);n(7651),n(14551),n(184),n(42486),n(30456),n(53276),n(45434),n(38408),n(47710),n(11737),n(5672),n(34192),n(88856),n(80456);!function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.DEBUG=2]="DEBUG",t[t.INFO=4]="INFO",t[t.WARN=8]="WARN",t[t.ERROR=16]="ERROR"}(o||(o={}));var p=function(){return(0,s.A)((function t(){(0,a.A)(this,t),this.tag="",this.description=""}),[{key:"matchesTag",value:function(){return!1}},{key:"setLevel",value:function(){}},{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"log",value:function(){}},{key:"debug",value:function(){}},{key:"info",value:function(){}},{key:"warn",value:function(){}},{key:"error",value:function(){}}])}(),d="__dbgLoggerRegistry",v=n.g[d];v||(v={map:{},list:[],loggingPredicate:function(){}},Object.defineProperty?Object.defineProperty(n.g,d,{value:v}):n.g[d]=v);var m=v.map,g=v.list;function y(t){return!(!v.loggingPredicate||!v.loggingPredicate(t))}var b="log";function _(t,e){var n,r;if("string"==typeof t?(n=t.toLowerCase(),r=e):(n=t.tag,r=t.description),m.hasOwnProperty(n)&&m[n])return m[n];var o=new p(n,r,y);return o.setLevel(b),m[n]=o,g.push(o),o}var A,w=n(51275);function E(t,e,n){return e=(0,c.A)(e),(0,u.A)(t,S()?Reflect.construct(e,n||[],(0,c.A)(t).constructor):e.apply(t,n))}function S(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(S=function(){return!!t})()}!function(t){t.UPLOAD_SUCCEEDED="upload_succeeded",t.UPLOAD_FAILED="upload_failed",t.UPLOAD_REQUEST_FAILED="upload_request_failed"}(A||(A={}));var C=_("Uploader");function T(t,e){var n=t.event_name,r=t.fragments,o=r.message;return{reason:e,contexts:(0,f.__rest)(r,["message"]),event_data:{name:n,data:o}}}var k=function(t){function e(t){var n,r;return(0,a.A)(this,e),(n=E(this,e))._suppressPersist=!1,n._backoff=!1,n._authorize=null===(r=t.authorize)||void 0===r||r,n._transport=t.transport,n._suppressPersist=!!t.suppressPersist,n._endpoint=n._authorize?"":"",n}return(0,l.A)(e,t),(0,s.A)(e,[{key:"_uploadBatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._transport,r=e&&this._authorize?n.appendLastTokenQuery(this._endpoint):this._endpoint;return this._transport.request(r,{method:h.Method.POST,metadata:{eventSenderEventNames:t.map((function(t){return t.event_name}))},headers:{"content-type":"application/json"},responseType:"json",parseResponseHeaders:!0,payload:JSON.stringify({suppress_persist:this._suppressPersist,events:t}),forget:e,authorize:!e&&this._authorize}).then(this._parseUploadResponse.bind(this,t,e))}},{key:"_parseUploadResponse",value:function(t,e,n){if(e)return Promise.resolve([]);var r=n.body,o=n.headers,i=n.status,a=this._authorize;if(200!==i||!r)return C.warn("Upload request failed",n),this.emit(A.UPLOAD_REQUEST_FAILED,{authorize:a,status:i}),this._backoff=!0,Promise.resolve(t);var s=[],u=[],c=[];if(r.error&&r.error.length){C.info("response errors",t,r.error);for(var l=0,f=r.error.length;l0&&this.emit(A.UPLOAD_FAILED,{authorize:a,rejected:c,will_retry:u}),y>0&&this.emit(A.UPLOAD_SUCCEEDED,{authorize:this._authorize,num_events:y}),Promise.resolve(s)}},{key:"upload",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return Promise.resolve({nack:n,backoff:this._backoff});var r=(0,i.A)(t);return this._uploadBatch(r.splice(0,20)).then((function(t){if(n=[].concat((0,i.A)(n),(0,i.A)(t)),e._backoff)n=[].concat((0,i.A)(n),(0,i.A)(r));else if(r.length)return e.upload(r,n);return{nack:n,backoff:e._backoff}}))}},{key:"lastUpload",value:function(t){return t.length?this._uploadBatch(t.splice(0,100),!0).then((function(t){return 0===t.length}),(function(){return!1})):Promise.resolve(!0)}},{key:"shouldBackoff",value:function(){return this._backoff}}])}(w.bk);function O(t){return new k(t)}var L=n(87529),x=n(52542);n(9267),n(42703),n(86746),n(79024),n(70750),n(77905),n(68216),n(47994),n(72431),n(2823),n(65594),n(78397),n(9657),n(97460),n(463),n(93577),n(60287);var P=200,I=0,N="linear",R=!0,M=function(){return(0,s.A)((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.A)(this,t),this._curve=e.curve||N,this._baseTime=e.baseTime||P,this._ceiling=e.ceiling||I,this._jitter="jitter"in e?!!e.jitter:R}),[{key:"getTime",value:function(t){var e;switch(this._curve){case"static":e=1;break;case"logarithmic":e=Math.log(t);break;case"exponential":e=Math.pow(Math.E,t);break;default:e=t+1}var n,r,o=Math.min(4294967296,Math.floor(e*this._baseTime));return this._ceiling&&(o=Math.min(o,this._ceiling)),this._jitter?(r=(n=o)/5,Math.floor(n-r/2+Math.random()*r)):o}}])}();var D,F={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",jitter:!0,maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:function(){return!0}},V=function(){function t(e,n){var r,o;(0,a.A)(this,t),this._resolver={promise:new Promise((function(t,e){r=t,o=e})),resolve:r,reject:o},this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1,this._isDestroyed=!1;var i=Object.assign(Object.assign({},F),n),s=i.backoffInitial,u=i.maxDuration,c=i.maxRetries,l=i.maxTime,h=i.retryPredicate,p=(0,f.__rest)(i,["backoffInitial","maxDuration","maxRetries","maxTime","retryPredicate"]);this._fn=e,this._backoffInitial=s,this._maxDuration=u,this._maxRetries=c,this._maxTime=l,this._retryPredicate=h,this._backoffInitial=s,this._counter=new M(p),this._backoffInitial&&(this._maxRetries+=1)}return(0,s.A)(t,[{key:"_destroy",value:function(){this._isRunning=!1,this._isDestroyed=!0}},{key:"_failure",value:function(t){var e=this;if(!this._isDestroyed)if(t&&"retryAfter"in t)this._retryAfter(t);else{var n=this._counter.getTime(this._callCount);this._shouldRetry(n,t)?(this._callCount++,this._tickInterval=setTimeout((function(){return e._tick()}),n)):(this._resolver.reject(t),this._destroy())}}},{key:"_retryAfter",value:function(t){var e=this;this._callCount++,this._tickInterval=setTimeout((function(){return e._tick()}),t.retryAfter)}},{key:"_success",value:function(){var t;this._isDestroyed||((t=this._resolver).resolve.apply(t,arguments),this._destroy())}},{key:"_shouldRetry",value:function(t,e){var n=Date.now()-this._ts+t;return this._callCount1&&void 0!==arguments[1]?arguments[1]:{}).start()}}])}(),B=n(8171);!function(t){t.INVALID_PAYLOAD="INVALID_PAYLOAD",t.INVALID_NAME="INVALID_NAME",t.UNKNOWN_OWNER="UNKNOWN_OWNER",t.PAYLOAD_SIZE_LIMIT_EXCEEDED="PAYLOAD_SIZE_LIMIT_EXCEEDED"}(D||(D={}));const j="4.0.3";n(78551),n(8674),n(82467);var U=n(46508),z=function(){return(0,s.A)((function t(){(0,a.A)(this,t)}),null,[{key:"pushToArrIfMissing",value:function(t,e){-1===t.indexOf(e)&&t.push(e)}},{key:"isMissingFromArray",value:function(t,e){return-1===t.indexOf(e)}}])}(),H=function(){return(0,s.A)((function t(){(0,a.A)(this,t)}),[{key:"_addEventsToEventSenderStatsData",value:function(t,e){Object.keys(e).map((function(n){for(var r=0;r=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function G(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n3e5){var i=[this.makeEvent(this._statsSender.createESSEvent(this._events,this._sequenceIdGenerator.getAllSequenceNumberCounters(),this._sequenceIdGenerator.getSequenceId()))];this._uploaders.unauthorized.upload(i).finally((function(){n._essLastSent=new Date}))}var a=this.initFlush(r).then((function(t){return n._ongoingUploads[r]=!1,t})).catch((function(){return n._ongoingUploads[r]=!1,n._transport.isOnline()?(e.consoleLogger.warn("The events in the queue could not be uploaded. Throwing away ".concat(n._events[r].length," ").concat(r," events.")),n._events[r]=[],{nack:n._events[r],backoff:n._uploaders[r].shouldBackoff()}):n.sendToGabito(t)}));return this._ongoingUploads[r]=a,a}},{key:"storeEvent",value:function(t,e){var n=this.makeEvent(e);this._events[t?"authorized":"unauthorized"].push(n)}},{key:"makeEvent",value:function(t){var e=this._sequenceIdGenerator;return{sequence_id:e.getSequenceId(),sequence_number:e.nextSequenceNumber(t.name),event_name:t.name,fragments:Object.assign(Object.assign({context_sdk:{version_name:this._sdkVersion,type:"javascript"},context_time:{timestamp:Date.now()}},this._instanceContexts),{message:t.data})}}},{key:"validateEventData",value:function(t,e,n){return t.name?function(t){for(var e=t.length,n=e;n--;){var r=t.charCodeAt(n);r>127&&r<=2047?e++:r>2047&&r<=65535&&(e+=2),r>=56320&&r<=57343&&n--}return e}(JSON.stringify(t.data))>5e3?D.PAYLOAD_SIZE_LIMIT_EXCEEDED:e&&n&&!n()?D.UNKNOWN_OWNER:null:D.INVALID_NAME}},{key:"checkIsEventAuthorized",value:function(t){return!t.endsWith("NonAuth")}},{key:"flush",value:function(){return;var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.sendToGabito(t).then((function(){})).catch((function(){}))}},{key:"flushAll",value:function(){return Promise.all([this.sendToGabito(!0),this.sendToGabito(!1)]).then((function(){})).catch((function(){}))}},{key:"finalFlush",value:function(){return this.uploadFlush()}},{key:"log",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.send(t,e)}},{key:"send",value:function(t){return;}},{key:"hasContext",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r{"use strict";n(83234),n(65050),n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.silly=e.verbose=e.debug=e.info=e.warn=e.error=e.log=e.logger=void 0,e.logger={log:function(){var t;return(t=console).log.apply(t,arguments)},error:function(){var t;return(t=console).error.apply(t,arguments)},warn:function(){var t;return(t=console).warn.apply(t,arguments)},info:function(){var t;return(t=console).info.apply(t,arguments)},debug:function(){var t;return(t=console).debug.apply(t,arguments)},verbose:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r{"use strict";n.d(e,{tZ:()=>A,O_:()=>s});var r=n(37005),o=(n(42486),n(7651),n(14551),n(9267),n(184),n(83234),n(30456),n(86746),n(45434),n(79024),n(70750),n(47710),n(26851),n(68216),n(47994),n(5672),n(43379),n(2823),n(65594),n(78397),n(97460),n(34192),n(88856),n(93577),n(86857));function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n{"use strict";n(90489);var r=n(56068),o=n(2970),i=n(98853),a=n(93311),s=n(39564),u=(n(184),n(42486),n(16765),n(5672),n(43379),n(51234),n(30758)),c=n(29583);new c.Vk.Delegate((function(){throw new Error("Please wrap your component in RemoteConfig Provider")})),n(16740);function l(t,e,n){return e=(0,a.A)(e),(0,i.A)(t,f()?Reflect.construct(e,n||[],(0,a.A)(t).constructor):e.apply(t,n))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}c.Vk.Delegate;n(7651),n(14551),n(9267),n(86746),n(45434),n(79024),n(25550),n(70750),n(68216),n(47994),n(8674),n(2823),n(65594),n(78397),n(97460),n(15342),n(93577)},29583:(t,e,n)=>{"use strict";n.d(e,{Vk:()=>I,m9:()=>y,BL:()=>_,HW:()=>b});var r,o=n(52542),i=(n(7651),n(184),n(42486),n(83234),n(86746),n(53276),n(79024),n(34518),n(38408),n(47710),n(47994),n(55997),n(16765),n(43379),n(2823),n(59255),n(85130),n(55636),n(28509),n(97332),n(46555),n(13296),n(24594),n(97460),n(91281),n(34192),n(80456),n(93577),n(16740)),a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);ot.upper)throw new TypeError("Expected value in range [".concat(t.lower,",").concat(t.upper,"]"));break;case"internal":break;default:throw new TypeError('Unknown property type "'.concat(t.type,'"'))}}t.match=function(t){return function(e){var n=e.type,r=a(e,["type"]);return t[n](r)}},t.assertValue=e,t.validateValue=function(t,n){try{return e(t,n),!0}catch(t){return!1}},t.getPropertySetId=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=[t,Array.from(e).reduce((function(t,e){var n=e.name,r=a(e,["name"]);return Object.assign(Object.assign({},t),(0,o.A)({},n,r))}),{})],u=new Set(n);return u.size&&r.push(Array.from(u).sort()),s.debug.apply(s,["property-set-id sources"].concat(r)),(0,i.O_)(r)}}(r||(r={}));var u=n(87529),c=(n(93091),n(14551),n(9267),n(45434),n(70750),n(68216),n(71425),n(60482),n(65594),n(78397),n(93212)),l=n.n(c);function f(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return h(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;(0,C.A)(this,t),this.values=new Map(e),this.accessListeners=n}),[{key:"getValue",value:function(t){var e=m(t);if("#"!==t[0]){var n,r=L(this.accessListeners);try{for(r.s();!(n=r.n()).done;){var o=n.value;try{o(t,this)}catch(t){N.warn("Error invoking access listener.",t)}}}catch(t){r.e(t)}finally{r.f()}}return this.values.has(t)?this.values.get(t):e.default}},{key:"toJSON",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};t.omitInternal||(e["#v"]="1");var n,r=L(this.values);try{for(r.s();!(n=r.n()).done;){var o=(0,u.A)(n.value,2),i=o[0],a=o[1],s=m(i);t.omitDefaults&&a===s.default||(t.omitInternal&&"internal"===s.type||(e[s.name]=a))}}catch(t){r.e(t)}finally{r.f()}return e}},{key:"toBuilder",value:function(){return new r(this.values,this.accessListeners)}}])}();function n(t){if("string"==typeof t&&(t=JSON.parse(t)),"object"!==(0,S.A)(t)||null===t)throw new TypeError("Expected object");!function(t){if(void 0===t["#v"]){if(t["#v"]="1","configurationAssignmentId"in t&&(t["#configurationAssignmentId"]=t.configurationAssignmentId,delete t.configurationAssignmentId),"rcsFetchTime"in t&&(t["#fetchTimeMillis"]=Number(t.rcsFetchTime),delete t.rcsFetchTime),"object"===(0,S.A)(t.properties)){var e={};t["#groupIds"]=e;for(var n=0,r=Object.entries(t.properties);n{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.WEBAPI_URL=e.INTERNAL_WEBGATE_URL=void 0,e.INTERNAL_WEBGATE_URL="https://wgint.spotify.net",e.WEBAPI_URL="https://api.spotify.com"},36654:function(t,e,n){"use strict";n(87456),n(11737);var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o(n(60177),e),o(n(53916),e),o(n(42137),e);var a=n(50733);Object.defineProperty(e,"default",{enumerable:!0,get:function(){return i(a).default}})},60177:function(t,e,n){"use strict";n(87456),n(11737);var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.Time=e.Timer=void 0,o(n(50733),e),o(n(5508),e),o(n(43184),e),o(n(73976),e);var i=n(25743);Object.defineProperty(e,"Timer",{enumerable:!0,get:function(){return i.Timer}});var a=n(80221);Object.defineProperty(e,"Time",{enumerable:!0,get:function(){return a.Time}})},42137:(t,e,n)=>{"use strict";var r=n(4668);n(40065),n(47994),n(16765),n(11737),n(43379),n(51234),n(34192),n(4865),n(60287),Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserMetrics=void 0;var o=n(50733),i=n(80221);function a(){var t=window.performance.getEntriesByType("navigation");return r(t,1)[0]}function s(t){return new Promise((function(e,n){return window.performance&&"function"==typeof performance.getEntriesByType?window.addEventListener("load",(function(){var r=performance.getEntriesByType("paint"),o=r.find((function(e){return e.name===t}));return void 0!==r&&o?e(o.startTime):n("Time to paint api is not supported on this browser")})):n("window.performance api is not supported in this browser")}))}function u(t,e){var n,r=t.name,o=t.label,a=t.value;return n="cls"===r.toLowerCase()?{metric_type:"gauge",value:a}:{metric_type:"timer",value:i.Time.fromMillis(Math.round(a)).asNanos()},Object.assign(Object.assign({what:"web_vitals_".concat(r.toLowerCase())},n),{tags:Object.assign({name:r,label:o},e)})}var c={getPageLoadTime:function(){return new Promise((function(t,e){if(!window.performance||"function"!=typeof performance.getEntriesByType)return e("window.performance api is not supported in this browser");if(void 0===a())return e("navigationTiming api is not supported in this browser");var n=a().loadEventEnd;return n>0?t(n):window.addEventListener("load",(function(){setTimeout((function(){var e=a().loadEventEnd;return t(e)}),0)}))}))},getResourceTiming:function(){return window.performance.getEntriesByType("resource")},getTimeToFirstPaint:function(){return s("first-paint")},getTimeToFirstContentfulPaint:function(){return s("first-contentful-paint")},sendWebVitalsMetric:function(t,e){return o.sendMetric(u(t,e))},getWebVitalsMetric:u};e.BrowserMetrics=c},73976:function(t,e,n){"use strict";var r=n(93091),o=n(47254),i=n(720);n(26851),n(9750),n(11737),n(43379),n(51234);var a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleReporter=void 0;var u=s(n(65223)),c=function(){return i((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";o(this,t),this.spacingLevel=e,this.logLevel=n}),[{key:"send",value:function(t){return a(this,void 0,void 0,r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u.default.log(this.logLevel,"[semantic-metrics] ".concat(JSON.stringify(t,null,this.spacingLevel)));case 1:case"end":return e.stop()}}),e,this)})))}}])}();e.ConsoleReporter=c},43184:function(t,e,n){"use strict";var r=n(17367),o=n(93091),i=n(47254),a=n(720);function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return u(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n2&&void 0!==arguments[2]?arguments[2]:"browser",o=arguments.length>3?arguments[3]:void 0;i(this,t),this.eventSender=e,this.createEvent=n,this.environment=r,this.transport=o}return a(t,[{key:"send",value:function(t){return c(this,void 0,void 0,o.mark((function e(){var n,r,i,a,u;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=s(t);try{for(n.s();!(r=n.n()).done;)i=r.value,(a=Object.assign({},i)).tags=Object.assign({},a.tags),a.tags.environment&&d.default.error("`tags.environment` must not be set. It is a reserved tag and will be overwritten."),a.tags.environment=this.environment,u=this.createEvent(Object.assign({},a)),this.eventSender.send(u,{flush:!1})}catch(t){n.e(t)}finally{n.f()}return e.abrupt("return",this.eventSender.flush(this.transport.isAuthenticated()));case 3:case"end":return e.stop()}}),e,this)})))}}],[{key:"create",value:function(e){var n,i=this,a="getToken"in e?e.getToken:null,s="ownerProvider"in e?e.ownerProvider:null,u=e.context?r(e.context):void 0,l=e.environment,h=v.createBaseTransport({providers:{endpoints:(n=v.createXResolveProvider(),function(t){return c(i,void 0,void 0,o.mark((function r(){var i;return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n(t);case 2:return i=r.sent,r.abrupt("return",Object.assign(Object.assign({},i),e.internal&&{webgate:m.INTERNAL_WEBGATE_URL}));case 4:case"end":return r.stop()}}),r)})))}),token:function(){return new Promise((function(t){a?a((function(e,n){t(void 0===n?e:[e,n])})):t("")}))}}});return a&&(h.on(v.TransportEvent.CONNECTED,(function(){h.authenticate().catch((function(t){var e,n;d.default.debug("authentication fail.",null!==(n=null!==(e=null==t?void 0:t.message)&&void 0!==e?e:null==t?void 0:t.code)&&void 0!==n?n:"")}))})),h.on(v.TransportEvent.AUTHENTICATED,(function(){d.default.debug("created authenticated browser transport")})),h.on(v.TransportEvent.TOKEN_PROVIDER_ERROR,(function(){d.default.debug("the token provided isn't working.")}))),h.connect(),new t(f.createEventSender(Object.assign({transport:h,context:u},s&&{ownerProvider:s})),g(h),l,h)}},{key:"createWithCustomTransport",value:function(e){var n="ownerProvider"in e?e.ownerProvider:null,o=e.context?r(e.context):void 0;return new t(f.createEventSender(Object.assign({transport:e.transport,context:o},n&&{ownerProvider:n})),g(e.transport),e.environment,e.transport)}}])}();e.EventSenderReporter=y},18489:function(t,e,n){"use strict";var r=n(93091),o=n(47254),i=n(720);n(11737),n(43379),n(51234);var a=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.NoopReporter=void 0;var s=function(){return i((function t(){o(this,t)}),[{key:"send",value:function(t){return a(this,void 0,void 0,r.mark((function t(){return r.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",void 0);case 1:case"end":return t.stop()}}),t)})))}}])}();e.NoopReporter=s},5508:(t,e,n)=>{"use strict";n(11737),Object.defineProperty(e,"__esModule",{value:!0})},80221:(t,e,n)=>{"use strict";var r=n(47254),o=n(720);n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.Time=void 0;var i=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;r(this,t),this.nanos=e}return o(t,[{key:"asSeconds",value:function(){return this.nanos/1e9}},{key:"asMillis",value:function(){return this.nanos/1e6}},{key:"asMicros",value:function(){return this.nanos/1e3}},{key:"asNanos",value:function(){return Math.round(this.nanos)}}],[{key:"fromNanos",value:function(e){return new t(e)}},{key:"fromMicros",value:function(e){return new t(1e3*e)}},{key:"fromMillis",value:function(e){return new t(1e6*e)}},{key:"fromSeconds",value:function(e){return new t(1e9*e)}},{key:"from",value:function(e){return new t(e.asNanos())}}])}();e.Time=i,i.ZERO=new i(0)},25743:(t,e,n)=>{"use strict";var r=n(47254),o=n(720),i=n(4668);n(77905),n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=e.getHighResolutionTime=e.getLowResolutionTime=e.getTime=e.getBrowserTime=e.supportsHighResolutionTime=void 0;var a=n(80221),s=n(50733);e.supportsHighResolutionTime=function(){return"undefined"==typeof window&&"function"==typeof process.hrtime};e.getBrowserTime=function(){return"undefined"!=typeof performance?performance.now():Date.now()};e.getTime=function(){return e.supportsHighResolutionTime()?process.hrtime():e.getBrowserTime()};e.getLowResolutionTime=function(t){var n=e.getTime()-t,r=a.Time.fromMillis(n);return{nanoseconds:s.asNanoseconds(r.asNanos()),milliseconds:r.asMillis(),seconds:r.asSeconds()}};e.getHighResolutionTime=function(t){var e=process.hrtime(t),n=i(e,2),r=1e9*n[0]+n[1],o=r/1e6,a=r/1e9;return{nanoseconds:s.asNanoseconds(r),milliseconds:o,seconds:a}};var u=function(){function t(e){r(this,t),this.startTime=e}return o(t,[{key:"end",value:function(){return e.supportsHighResolutionTime()?e.getHighResolutionTime(this.startTime):e.getLowResolutionTime(this.startTime)}}],[{key:"start",value:function(){return new t(e.getTime())}}])}();e.Timer=u},53916:(t,e,n)=>{"use strict";var r=n(17367);n(83234),n(16765),n(11737),Object.defineProperty(e,"__esModule",{value:!0}),e.createUniversalReporter=void 0;var o=n(43184),i=n(93540);e.createUniversalReporter=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.context?[i.createUserAgentContext()].concat(r(t.context)):[i.createUserAgentContext()];return o.EventSenderReporter.create(Object.assign(Object.assign({environment:"browser"},t),{context:e}))}},62680:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ConnectionObserver:()=>y,DEALER_PLUGIN_NAME:()=>ot,DealerErrors:()=>H,DisconnectionReason:()=>c,Method:()=>s,PluginEvent:()=>u,REQUEST_TRANSFORMER_PLUGIN_NAME:()=>ke,TransportErrors:()=>i,TransportEvent:()=>a,createAbortControllerLike:()=>j,createAbortSignalWithTimeout:()=>U,createBaseTransport:()=>xe,createSpotifyComEndpointsProvider:()=>Se,createSpotifyComProviders:()=>Te,createSpotifyComTokenProvider:()=>Ce,createTransport:()=>Pe,createXResolveProvider:()=>Ee,dealerCreator:()=>at,requestTransformerCreator:()=>Le});var r={};n.r(r),n.d(r,{isSupported:()=>St,request:()=>Ct});var o={};n.r(o),n.d(o,{request:()=>de});var i,a,s,u,c;n(16765);!function(t){t.HTTP_REQUEST_ABORTED="HTTP_REQUEST_ABORTED",t.HTTP_REQUEST_FAILED="HTTP_REQUEST_FAILED",t.HTTP_REQUEST_TIMEOUT="HTTP_REQUEST_TIMEOUT",t.LOGGING_REQUEST_FAILED="LOGGING_REQUEST_FAILED",t.TRANSPORT_ENDPOINTS_PROVIDER_ERROR="TRANSPORT_ENDPOINTS_PROVIDER_ERROR",t.TRANSPORT_INVALID_STATE="TRANSPORT_INVALID_STATE",t.TRANSPORT_INVALID_TOKEN="TRANSPORT_INVALID_TOKEN",t.TRANSPORT_STALE_TOKEN="TRANSPORT_STALE_TOKEN ",t.TRANSPORT_TOKEN_PROVIDER_ERROR="TRANSPORT_TOKEN_PROVIDER_ERROR",t.TRANSPORT_LIFECYCLE_DISABLED="TRANSPORT_LIFECYCLE_DISABLED",t.TRANSPORT_UNSUPPORTED_OPTION="TRANSPORT_UNSUPPORTED_OPTION",t.XRESOLVE_INCOMPLETE_RESPONSE="XRESOLVE_INCOMPLETE_RESPONSE",t.XRESOLVE_INVALID_RESPONSE="XRESOLVE_INVALID_RESPONSE",t.XRESOLVE_REQUEST_FAILED_WITH_STATUS="XRESOLVE_REQUEST_FAILED_WITH_STATUS"}(i||(i={})),function(t){t.CONNECTION_ONLINE="online",t.CONNECTION_OFFLINE="offline",t.PRODUCT_STATE_CHANGED="product_state_changed",t.ACCESS_TOKEN="access_token",t.AUTHENTICATED="authenticated",t.AUTHENTICATION_FAILED="authentication_failed",t.BEFORE_OFFLINE_DISCONNECT="before_offline_disconnect",t.BEFORE_ONLINE_DISCONNECT="before_online_disconnect",t.CONNECTED="connected",t.CONNECTION_FAILED="connection_failed",t.CONNECTION_ID="connection_id",t.DISCONNECTED="disconnected",t.ENDPOINTS_RESOLVED="endpoints_resolved",t.LOGGED_OUT="logged_out",t.SHORT_SESSION_DISCONNECTED="short_session_disconnected",t.TOKEN_PROVIDER_ERROR="token_provider_error",t.RECONNECTED="reconnected",t.RECONNECTING="reconnecting",t.WINDOW_BEFORE_UNLOAD="beforeunload"}(a||(a={})),function(t){t.DELETE="DELETE",t.GET="GET",t.OPTIONS="OPTIONS",t.PATCH="PATCH",t.POST="POST",t.PUT="PUT",t.TRACE="TRACE"}(s||(s={})),function(t){t.TRANSPORT_AUTHENTICATE="transport_authenticate",t.TRANSPORT_AUTHENTICATE_FAILED="transport_authenticate_failed",t.TRANSPORT_CONNECT="transport_connect",t.TRANSPORT_DISCONNECT="transport_disconnect",t.TRANSPORT_ENDPOINTS_RESOLVED="transport_endpoints_resolved",t.TRANSPORT_BEFORE_PROCESS_REQUEST="transport_before_process_request",t.TRANSPORT_BEFORE_SEND_REQUEST="transport_before_send_request",t.TRANSPORT_BEFORE_RETURN_RESPONSE="transport_before_return_response",t.TRANSPORT_REQUEST="transport_request",t.PLUGIN_CONNECTION_INFO="plugin_connection_info",t.PLUGIN_DISCONNECTED="plugin_disconnected",t.PLUGIN_MESSAGE="plugin_message",t.PLUGIN_REQUEST="plugin_request",t.PLUGIN_ERROR="plugin_error"}(u||(u={})),function(t){t.RECONNECTION_FAILED="reconnection_failed",t.EXPLICIT="explicit",t.LOG_OUT="log_out",t.WINDOW_BEFORE_UNLOAD="window_before_unload"}(c||(c={}));n(90489);var l=n(2970),f=n(56068),h=n(98853),p=n(93311),d=n(39564),v=(n(65050),n(51275));function m(t,e,n){return e=(0,p.A)(e),(0,h.A)(t,g()?Reflect.construct(e,n||[],(0,p.A)(t).constructor):e.apply(t,n))}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}var y=function(t){function e(){return(0,f.A)(this,e),m(this,e,arguments)}return(0,d.A)(e,t),(0,l.A)(e)}(v.bk),b=function(t){function e(t){var n;(0,f.A)(this,e),n=m(this,e);var r="undefined"!=typeof window,o=t&&t.notifyBeforeUnload;return n._navigator=r&&window.navigator||null,r&&"function"==typeof window.addEventListener&&(window.addEventListener("online",n.emitSync.bind(n,a.CONNECTION_ONLINE,null)),window.addEventListener("offline",n.emitSync.bind(n,a.CONNECTION_OFFLINE,null)),o&&window.addEventListener(a.WINDOW_BEFORE_UNLOAD,n.emitSync.bind(n,a.WINDOW_BEFORE_UNLOAD,null))),n}return(0,d.A)(e,t),(0,l.A)(e,[{key:"isOnline",value:function(){var t=this._navigator;return!t||!("onLine"in t)||t.onLine}}],[{key:"create",value:function(t){return new e(t)}}])}(y),_=n(10231),A=(n(184),n(7651),n(14551),n(9267),n(42486),n(86746),n(45434),n(79024),n(70750),n(68216),n(47994),n(43379),n(2823),n(65594),n(78397),n(97460),n(93577),n(60287),n(48587));function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function E(t){var e="function"==typeof Map?new Map:void 0;return E=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(w())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var o=new(t.bind.apply(t,r));return n&&(0,A.A)(o,n.prototype),o}(t,arguments,(0,p.A)(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,A.A)(n,t)},E(t)}function S(t,e,n){return e=(0,p.A)(e),(0,h.A)(t,C()?Reflect.construct(e,n||[],(0,p.A)(t).constructor):e.apply(t,n))}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(C=function(){return!!t})()}var T,k,O=function(t){function e(t,n,r,o){var i;return(0,f.A)(this,e),(i=S(this,e,[t])).name="RequestError",i.message=t,i.code=n,i.status=r||0,i.url=o,i}return(0,d.A)(e,t),(0,l.A)(e)}(E(Error)),L=function(t){function e(t,n){var r;return(0,f.A)(this,e),(r=S(this,e,["Request aborted by signal.",i.HTTP_REQUEST_ABORTED,0,t])).name="RequestAbortedError",r.reason=n,r}return(0,d.A)(e,t),(0,l.A)(e)}(O),x=function(t){function e(t,n){var r;return(0,f.A)(this,e),(r=S(this,e,["Request aborted by timeout.",i.HTTP_REQUEST_TIMEOUT,0,t])).name="RequestTimeoutError",r.reason=n,r}return(0,d.A)(e,t),(0,l.A)(e)}(O);function P(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return I(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&void 0!==arguments[0]?arguments[0]:H.DEALER_ERROR,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,f.A)(this,e),(t=W(this,e,[r])).name="DealerError",t.message=r,t.code=n,t.raw=o,t.wsCode=o.code||null,t.wsReason=o.reason||null,t}return(0,d.A)(e,t),(0,l.A)(e)}(E(Error));!function(t){t.AUTHENTICATED="authenticated",t.AUTHENTICATION_FAILED="authentication_failed",t.CONNECTED="connected",t.CONNECTION_ID="connection_id",t.ERROR="error",t.DISCONNECTED="disconnected",t.MESSAGE="message",t.REQUEST="request"}($||($={}));var K,Y=n(87529);n(83234),n(5015),n(66209),n(10885),n(39261),n(83700),n(83632),n(26851),n(9750),n(5672),n(91281),n(77329),n(13740),n(96542),n(85738),n(12900),n(82051),n(53198),n(74211),n(19791),n(75294),n(41526),n(66032),n(73659),n(38551),n(28553),n(67612),n(28579),n(77719),n(97576),n(62891),n(82605),n(14863),n(59637),n(2709),n(73974),n(58941),n(51579),n(26236),n(57716),n(81913),n(20031);function Q(){var t,e;return{promise:new Promise((function(n,r){t=n,e=r})),resolve:t,reject:e}}function X(t,e,n){return e=(0,p.A)(e),(0,h.A)(t,J()?Reflect.construct(e,n||[],(0,p.A)(t).constructor):e.apply(t,n))}function J(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(J=function(){return!!t})()}!function(t){t[t.CLOSE=4e3]="CLOSE",t[t.TIMEOUT=4001]="TIMEOUT"}(K||(K={}));var tt=function(){},et=/hm:\/\/pusher\/(?:[^]+)?\/connections\/([^]+)/,nt="undefined"!=typeof window,rt=function(t){function e(t){var n;return(0,f.A)(this,e),(n=X(this,e))._socket=null,n._lastPingDeferred=null,n._waitingForConnectionId=!0,n._connectionId=null,n._connectionURI=null,n._heartbeatToken=0,n._heartbeatTimeoutToken=0,n._connected=!1,n._endpoint=null,n._closeBeforeEventsRejector=null,n._WebSocket=t.WebSocket||WebSocket,n._heartbeatTimeout=t.heartbeatTimeout||1e4,n}return(0,d.A)(e,t),(0,l.A)(e,[{key:"_startHeartbeat",value:function(t){var e=this,n=function(){e.ping().then((function(){return e._onHeartbeatSuccess()}),(function(){return e._onHeartbeatError()})),e._heartbeatTimeoutToken=setTimeout((function(){return e._onHeartbeatError()}),e._heartbeatTimeout)};t?n():this._heartbeatToken=setTimeout((function(){return n()}),3e4)}},{key:"_onHeartbeatError",value:function(){this._stopHeartbeat(),this._socket&&this._socket.close(K.TIMEOUT,"internal-timeout")}},{key:"_onHeartbeatSuccess",value:function(){this._stopHeartbeat(),this._startHeartbeat()}},{key:"_stopHeartbeat",value:function(){null!==this._heartbeatToken&&clearTimeout(this._heartbeatToken),null!==this._heartbeatTimeoutToken&&clearTimeout(this._heartbeatTimeoutToken)}},{key:"_prepareConnectionId",value:function(t){var e;if(!t.uri)return!1;var n,r=null!==(e=t.uri.match(et))&&void 0!==e?e:[],o=(0,Y.A)(r,2)[1];return!!o&&(n=t.headers&&t.headers["Spotify-Connection-Id"]?t.headers["Spotify-Connection-Id"]:decodeURIComponent(o),this._connectionId=n,this._connectionURI=t.uri,this.emit($.CONNECTION_ID,{id:n,uri:t.uri}),!0)}},{key:"_reply",value:function(t,e){if(!t)throw new TypeError("Invalid key.");var n=this._socket;if(n&&1===n.readyState){var r={type:"reply",key:t,payload:e};n.send(JSON.stringify(r))}}},{key:"_parseMessage",value:function(t){var e;try{e=JSON.parse(t)}catch(t){return}if("message"===e.type)this._waitingForConnectionId&&this._prepareConnectionId(e)?(this._waitingForConnectionId=!1,this._startHeartbeat(!0)):this.emit($.MESSAGE,{message:e});else if("pong"===e.type&&this._lastPingDeferred)this._lastPingDeferred.resolve(!0),this._lastPingDeferred=null;else if("request"===e.type){var n=e.key;n&&this.emit($.REQUEST,{request:e,reply:this._reply.bind(this,n)})}}},{key:"_handleOpen",value:function(t){t.resolve(!0),this._connected=!0,this.emit($.AUTHENTICATED,null)}},{key:"_handleMessage",value:function(t){var e=this,n=t.data;if(nt&&window.Blob&&n instanceof window.Blob){var r=new FileReader;r.onloadend=function(){if(this.result){var t;if(this.result instanceof ArrayBuffer){t="";for(var n=new Uint8Array(this.result),r=0;r1&&void 0!==arguments[1]?arguments[1]:gt();return Math.round(Math.abs(e-t))},bt={POST:!0,PUT:!0,PATCH:!0,DELETE:!0};!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.OK=200]="OK",t[t.CREATED=201]="CREATED",t[t.ACCEPTED=202]="ACCEPTED",t[t.NO_CONTENT=204]="NO_CONTENT",t[t.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",t[t.BAD_REQUEST=400]="BAD_REQUEST",t[t.UNAUTHORIZED=401]="UNAUTHORIZED",t[t.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",t[t.FORBIDDEN=403]="FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",t[t.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",t[t.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",t[t.TIMED_OUT=408]="TIMED_OUT",t[t.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",t[t.CONFLICT=409]="CONFLICT",t[t.GONE=410]="GONE",t[t.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",t[t.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",t[t.REQUEST_ENTITY_TOO_LARGE=413]="REQUEST_ENTITY_TOO_LARGE",t[t.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",t[t.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",t[t.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",t[t.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",t[t.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",t[t.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",t[t.BAD_GATEWAY=502]="BAD_GATEWAY",t[t.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",t[t.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",t[t.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED"}(mt||(mt={}));var _t=function(){return(0,l.A)((function t(e){(0,f.A)(this,t),this.get=e.get.bind(e),this.has=e.has.bind(e)}),[{key:"get",value:function(t){return null}},{key:"has",value:function(t){return!1}}])}(),At=function(){return(0,l.A)((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,f.A)(this,t),this.url="",this.status=0,this.headers=null,this.body=null,this.offline=!1,this.timing=null,this.metadata=null,this.retries={count:0},this.url=e,this.status=n,this.ok=n>=200&&n<=299}),[{key:"getStatusFamily",value:function(){return 0|this.status/100}}])}(),wt=vt("transport.http.fetch"),Et={json:!0,text:!0,arraybuffer:!0,blob:!0};function St(){return"function"==typeof fetch}function Ct(t){if(!St())return Promise.reject(new TypeError("Fetch is not supported"));var e=t.options.signal;if(null==e?void 0:e.aborted)return Promise.reject(z(t.url,e));if(!t.url)return Promise.reject(new TypeError("Request URL cannot be blank."));var n=t.method||"GET",r=t.url,o=null;if(n in bt&&!0===bt[n]&&t.payload?o=t.payload:t.payload&&(r+="?".concat(t.payload)),t.options.responseType&&!(t.options.responseType in Et))return Promise.reject(new TypeError("Cannot set responseType: not supported in browser."));var i={mode:t.options.mode||"cors",credentials:t.options.credentials||"same-origin",redirect:t.options.redirect||"follow",signal:e,method:n};t.headers.count()&&(i.headers=t.headers.toJSON()),o&&(i.body=o);var a=gt();return fetch(r,i).then((function(e){var n;n=t.options.ignoreResponseBody||e.status===mt.NO_CONTENT?null:"json"===t.options.responseType?e.json().catch((function(t){return wt.warn("Could not parse response as JSON:",t),null})):"arraybuffer"===t.options.responseType?e.arrayBuffer():"blob"===t.options.responseType?e.blob():e.text();var r=t.options.parseResponseHeaders||e.status>299?new _t(e.headers):null;return Promise.all([e.url,e.status,r,n])})).then((function(e){var n=(0,Y.A)(e,4),r=n[0],o=n[1],i=n[2],s=n[3],u=gt(),c=new At(r,o);return c.body=s,c.headers=i,t.options.timing&&(c.timing={completed:yt(a,u)}),c})).catch((function(e){var n=gt();if("AbortError"===(null==e?void 0:e.name))throw new L(r);if("TimeoutError"===(null==e?void 0:e.name))throw new x(r);var o=new At(r);return t.options.timing&&(o.timing={completed:yt(a,n)}),o})).then((function(e){return t.options.connectionObserver&&(e.offline=!t.options.connectionObserver.isOnline()),e}))}n(72636),n(4672);var Tt=n(83422);var kt=200,Ot=0,Lt="linear",xt=!0,Pt=function(){return(0,l.A)((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,f.A)(this,t),this._curve=e.curve||Lt,this._baseTime=e.baseTime||kt,this._ceiling=e.ceiling||Ot,this._jitter="jitter"in e?!!e.jitter:xt}),[{key:"getTime",value:function(t){var e;switch(this._curve){case"static":e=1;break;case"logarithmic":e=Math.log(t);break;case"exponential":e=Math.pow(Math.E,t);break;default:e=t+1}var n,r,o=Math.min(4294967296,Math.floor(e*this._baseTime));return this._ceiling&&(o=Math.min(o,this._ceiling)),this._jitter?(r=(n=o)/5,Math.floor(n-r/2+Math.random()*r)):o}}])}();var It,Nt={backoffInitial:!1,baseTime:200,ceiling:0,curve:"linear",jitter:!0,maxDuration:1/0,maxRetries:1/0,maxTime:1/0,retryPredicate:function(){return!0}},Rt=function(){function t(e,n){(0,f.A)(this,t),this._resolver=Q(),this._ts=0,this._callCount=0,this._tickInterval=0,this._isRunning=!1,this._isDestroyed=!1;var r=Object.assign(Object.assign({},Nt),n),o=r.backoffInitial,i=r.maxDuration,a=r.maxRetries,s=r.maxTime,u=r.retryPredicate,c=(0,Tt.__rest)(r,["backoffInitial","maxDuration","maxRetries","maxTime","retryPredicate"]);this._fn=e,this._backoffInitial=o,this._maxDuration=i,this._maxRetries=a,this._maxTime=s,this._retryPredicate=u,this._backoffInitial=o,this._counter=new Pt(c),this._backoffInitial&&(this._maxRetries+=1)}return(0,l.A)(t,[{key:"_destroy",value:function(){this._isRunning=!1,this._isDestroyed=!0}},{key:"_failure",value:function(t){var e=this;if(!this._isDestroyed)if(t&&"retryAfter"in t)this._retryAfter(t);else{var n=this._counter.getTime(this._callCount);this._shouldRetry(n,t)?(this._callCount++,this._tickInterval=setTimeout((function(){return e._tick()}),n)):(this._resolver.reject(t),this._destroy())}}},{key:"_retryAfter",value:function(t){var e=this;this._callCount++,this._tickInterval=setTimeout((function(){return e._tick()}),t.retryAfter)}},{key:"_success",value:function(){var t;this._isDestroyed||((t=this._resolver).resolve.apply(t,arguments),this._destroy())}},{key:"_shouldRetry",value:function(t,e){var n=Date.now()-this._ts+t;return this._callCount1&&void 0!==arguments[1]?arguments[1]:{}).start()}}])}();function Mt(t,e,n){return e=(0,p.A)(e),(0,h.A)(t,Dt()?Reflect.construct(e,n||[],(0,p.A)(t).constructor):e.apply(t,n))}function Dt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Dt=function(){return!!t})()}!function(t){t[t.CONNECTION_ERROR=0]="CONNECTION_ERROR",t[t.INFORMATIONAL=1]="INFORMATIONAL",t[t.SUCCESS=2]="SUCCESS",t[t.REDIRECTION=3]="REDIRECTION",t[t.CLIENT_ERROR=4]="CLIENT_ERROR",t[t.SERVER_ERROR=5]="SERVER_ERROR"}(It||(It={}));var Ft,Vt=function(t){function e(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,f.A)(this,e),(r=Mt(this,e,[n])).name="TransportError",r.message=n,r.code=t,r.origin=o,r}return(0,d.A)(e,t),(0,l.A)(e)}(E(Error)),Bt=function(){return(0,l.A)((function t(e){(0,f.A)(this,t),this._headers={},this._count=0,this._setAll(e)}),[{key:"_setAll",value:function(t){var e=0;for(var n in t)t.hasOwnProperty(n)&&t[n]&&(this._headers[n.toLowerCase()]=t[n],e++);this._count=e}},{key:"get",value:function(t){return this._headers[t.toLowerCase()]||null}},{key:"has",value:function(t){return!!this._headers[t.toLowerCase()]}},{key:"set",value:function(t,e){this._headers[t.toLowerCase()]=e,this._count++}},{key:"delete",value:function(t){var e=t.toLowerCase();this._headers[e]&&this._count--,delete this._headers[t.toLowerCase()]}},{key:"count",value:function(){return this._count}},{key:"toJSON",value:function(){return Object.assign({},this._headers)}}])}(),jt=function(){function t(e,n){(0,f.A)(this,t),this.url=e,this.method=(null==n?void 0:n.method)||"GET",this.headers=new Bt(null==n?void 0:n.headers),this.options=(null==n?void 0:n.options)||{},this.payload=null==n?void 0:n.payload,this.urlExpanded=(null==n?void 0:n.urlExpanded)||!1,this.retryOptions=(null==n?void 0:n.retryOptions)||{}}return(0,l.A)(t,[{key:"clone",value:function(){var e=new t(this.url);return e.method=this.method,e.headers=new Bt(this.headers.toJSON()),e.options=this.options,e.payload=this.payload,e.urlExpanded=this.urlExpanded,e.retryOptions=this.retryOptions,e}}],[{key:"create",value:function(e,n){return new t(e,n)}}])}();function Ut(t,e,n){return e=(0,p.A)(e),(0,h.A)(t,zt()?Reflect.construct(e,n||[],(0,p.A)(t).constructor):e.apply(t,n))}function zt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(zt=function(){return!!t})()}!function(t){t.EVENT_ACCESS_TOKEN="access_token",t.EVENT_CONNECTION_ID="connection_id",t.EVENT_CONNECTION_OFFLINE="connection_offline",t.EVENT_CONNECTION_ONLINE="connection_online",t.EVENT_ENDPOINTS_RESOLVED="endpoints_resolved"}(Ft||(Ft={}));var Ht=function(t){function e(t,n){var r;(0,f.A)(this,e),(r=Ut(this,e)).EVENT_ACCESS_TOKEN=Ft.EVENT_ACCESS_TOKEN,r.EVENT_CONNECTION_ID=Ft.EVENT_CONNECTION_ID,r.EVENT_CONNECTION_OFFLINE=Ft.EVENT_CONNECTION_OFFLINE,r.EVENT_CONNECTION_ONLINE=Ft.EVENT_CONNECTION_ONLINE,r.EVENT_ENDPOINTS_RESOLVED=Ft.EVENT_ENDPOINTS_RESOLVED,r.StatusCode=mt,r.StatusFamily=It,r.getConnectionId=t.getConnectionId.bind(t),r.getEndpoints=t.getEndpoints.bind(t),r.getInitTime=t.getInitTime.bind(t),r.getLastToken=t.getLastToken.bind(t),r.matchMessages=t.matchMessages.bind(t),r.unmatchMessages=t.unmatchMessages.bind(t),r.handlePushRequests=t.handlePushRequests.bind(t),r.unhandlePushRequests=t.unhandlePushRequests.bind(t),r.hasPlugin=t.hasPlugin.bind(t),r.getPluginAPI=t.getPluginAPI.bind(t);var o=t.request.bind(t);return(null==n?void 0:n.requestOptions)?r.request=function(t,e){return o(t,e?Object.assign(Object.assign(Object.assign({},null==n?void 0:n.requestOptions),e),{metadata:Object.assign(Object.assign({},n.requestOptions.metadata),null==e?void 0:e.metadata),retry:Object.assign(Object.assign({},n.requestOptions.retry),null==e?void 0:e.retry)}):n.requestOptions)}:r.request=o,r.proxyEmit(t,a.ACCESS_TOKEN,Ft.EVENT_ACCESS_TOKEN),r.proxyEmit(t,a.CONNECTION_OFFLINE,Ft.EVENT_CONNECTION_OFFLINE),r.proxyEmit(t,a.CONNECTION_ONLINE,Ft.EVENT_CONNECTION_ONLINE),r.proxyEmit(t,a.ENDPOINTS_RESOLVED,Ft.EVENT_ENDPOINTS_RESOLVED),r.onAddListener(Ft.EVENT_CONNECTION_ID,r._onAddConnectionIdListener.bind(r,t.on.bind(t))),r.onRemoveListener(Ft.EVENT_CONNECTION_ID,r._onRemoveConnectionIdListener.bind(r,t.removeListener.bind(t))),r}return(0,d.A)(e,t),(0,l.A)(e,[{key:"_onAddConnectionIdListener",value:function(t,e){var n=this;e.preventDefault();var r=e.data.listener,o=function(t){var e=n.createEvent(Ft.EVENT_CONNECTION_ID,t.data);r.call(n,e)};r.$proxy_wrapper=o,t(a.CONNECTION_ID,o,e.data.options)}},{key:"_onRemoveConnectionIdListener",value:function(t,e){e.preventDefault();var n=e.data.listener;n.$proxy_wrapper&&t(a.CONNECTION_ID,n.$proxy_wrapper,e.data.options)}},{key:"removeAllListeners",value:function(){return this}}])}(v.bk),qt=function(){function t(){(0,f.A)(this,t),this._startTime=null,this._endTime=null}return(0,l.A)(t,[{key:"start",value:function(){if(null!==this._startTime)throw new Error("Measurement is already in progress.");this._startTime=Date.now()}},{key:"end",value:function(){if(null===this._startTime||null!==this._endTime)throw new Error("Measurement is not in progress.");this._endTime=Date.now()}},{key:"getMetrics",value:function(){if(null===this._startTime||null===this._endTime)throw new Error("Measurement is not done.");return{start_time:this._startTime,end_time:this._endTime}}}],[{key:"create",value:function(){return new t}}])}();function Wt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Zt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0?t.reconnectionRetries:3,n._requestMode=t.requestMode in Jt?t.requestMode:"xhr",n._forcePolyfillTypes=t.forcePolyfillTypes||{},n._disableAutoLogout="disableAutoLogout"in t&&!!t.disableAutoLogout,n._disconnectBeforeUnload=t.disconnectBeforeUnload||!1;var r=t.createConnectionObserver||b.create;return n._connectionObserver=r({notifyBeforeUnload:n._disconnectBeforeUnload}),n.authenticate=n.authenticate.bind(n),n._authenticateWithToken=n._authenticateWithToken.bind(n),n._connectToEndpoints=n._connectToEndpoints.bind(n),n._parseProvidedToken=n._parseProvidedToken.bind(n),n._onConnected=n._onConnected.bind(n),n._onAuthenticated=n._onAuthenticated.bind(n),n._onAuthenticationFailed=n._onAuthenticationFailed.bind(n),n._init(),n}return(0,d.A)(e,t),(0,l.A)(e,[{key:"_init",value:function(){var t=this;this.onAddListener(a.CONNECTED,this._onAddListener.bind(this,"connected")),this.onAddListener(a.AUTHENTICATED,this._onAddListener.bind(this,"authenticated")),this.onAddListener(a.CONNECTION_ID,this._onAddListener.bind(this,"connection_id")),this.onRemoveListener(a.CONNECTED,this._onRemoveListener.bind(this,"connected")),this.onRemoveListener(a.AUTHENTICATED,this._onRemoveListener.bind(this,"authenticated")),this.onRemoveListener(a.CONNECTION_ID,this._onRemoveListener.bind(this,"connection_id")),this._pluginMediator.onAddListener(u.TRANSPORT_CONNECT,this._onAddListener.bind(this,"transport_connect")),this._pluginMediator.onAddListener(u.TRANSPORT_AUTHENTICATE,this._onAddListener.bind(this,"transport_authenticate")),this._pluginMediator.onRemoveListener(u.TRANSPORT_CONNECT,this._onRemoveListener.bind(this,"transport_connect")),this._pluginMediator.onRemoveListener(u.TRANSPORT_AUTHENTICATE,this._onRemoveListener.bind(this,"transport_authenticate")),"fetch"!==this._requestMode||this._Fetch&&this._Fetch.isSupported()||(Kt.warn('Default "fetch" request mode unavailable; Fallback to "xhr"'),this._requestMode="xhr");var e=this._pluginMediator;e.addListeners((0,q.A)({},u.PLUGIN_DISCONNECTED,this._onPluginDisconnected.bind(this))),this.proxyEmit(e,u.PLUGIN_CONNECTION_INFO,a.CONNECTION_ID),this._disableAutoLogout||this.matchMessages("client:logout",(function(){return t._onLogout()})),this._connectionObserver.on(a.CONNECTION_ONLINE,(function(){return t._onOnline()})),this._connectionObserver.on(a.CONNECTION_OFFLINE,(function(){return t._onOffline()})),this._connectionObserver.on(a.WINDOW_BEFORE_UNLOAD,(function(){return t._disconnect(c.WINDOW_BEFORE_UNLOAD)}))}},{key:"_runStateAwareQueues",value:function(t,e){var n=this._stateAwareListeners[t].splice(0);try{var r,o=Wt(n);try{for(o.s();!(r=o.n()).done;){r.value.call(this,e)}}catch(t){o.e(t)}finally{o.f()}}finally{this._stateAwareRunners[t]=null}}},{key:"_connect",value:function(){var t=this;return this._stateMask&te?Promise.resolve(!1):this._connectionObserver.isOnline()?this._performConnect():new Promise((function(e,n){Kt.info("Waiting to go online before connecting"),t._connectionObserver.once(a.CONNECTION_ONLINE,(function(){t._performConnect().then(e,n)}))}))}},{key:"_performConnect",value:function(){var t=this;return new Promise((function(e){Kt.info("Resolving endpoints"),e(t._endpointsProvider(t.toPublic()))})).catch((function(t){var e=(null==t?void 0:t.code)?t:new Vt(i.TRANSPORT_ENDPOINTS_PROVIDER_ERROR,(null==t?void 0:t.message)||"Endpoints provider error",null!=t?t:null);return Kt.error("Endpoints resolution failed",e),Promise.reject(e)})).then(this._connectToEndpoints).then(this._onConnected).catch((function(e){var n=e&&e.error?e.error:e;return t.emit(a.CONNECTION_FAILED,{error:n}),Kt.error("Connection failed",n),Promise.reject(n)}))}},{key:"_connectToEndpoints",value:function(t){var e=this,n={webgate:"",webapi:""};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];o&&(Qt.test(o)&&(o+="/"),n[r]=o)}this._endpoints=n,this.emit(a.ENDPOINTS_RESOLVED,{endpoints:Object.assign({},n)}),Kt.info("Endpoints resolved");var i=[],s=function(t){i.push(t)};return Kt.info("Waiting for plugins to connect"),new Promise((function(t,r){e._pluginMediator.emitAndWait(u.TRANSPORT_CONNECT,{endpoints:Object.assign({},n),awaitPromise:s},(function(){Promise.all(i).then((function(){return t(!0)}),r)}))}))}},{key:"_refreshToken",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._refreshTokenPromise)return this._refreshTokenPromise;if(!e&&this._lastToken&&this._lastTokenExpiry>Date.now())return Promise.resolve(this._lastToken);this._refreshTokenPromise=new Promise((function(e){Kt.info("Requesting token from provider"),e(t._tokenProvider())})).then(this._parseProvidedToken);var n=function(){t._refreshTokenPromise=null};return this._refreshTokenPromise.then(n,n),this._refreshTokenPromise.catch((function(e){var n=(null==e?void 0:e.code)?e:new Vt(i.TRANSPORT_TOKEN_PROVIDER_ERROR,(null==e?void 0:e.message)||"Token provider error",e);return t.emit(a.TOKEN_PROVIDER_ERROR,{error:n}),Kt.error("Token provider error",n),Promise.reject(n)}))}},{key:"_parseProvidedToken",value:function(t){var e,n=3540;if(Array.isArray(t)?(e=t[0],"number"==typeof(n="string"==typeof t[1]?parseInt(t[1],10):t[1])&&isFinite(n)||(n=3540)):e=t,!e)throw this._lastToken=null,this._lastTokenExpiry=0,Kt.error("No token was provided"),new Vt(i.TRANSPORT_INVALID_TOKEN,'Token provider returned an invalid token, "'.concat(e,'"'));if(this._lastToken===e){Kt.error("TokenProvider returned same token twice.");var r=new Vt(i.TRANSPORT_STALE_TOKEN,"Token provider returned the same token twice.");throw this._lastToken=null,this._lastTokenExpiry=0,r}return this._lastToken=e,this._lastTokenExpiry=Date.now()+1e3*n,this.emit(a.ACCESS_TOKEN,{token:e}),Kt.info("Access token set"),e}},{key:"_authenticateWithToken",value:function(t){var e=this;if(!this._endpoints)return Promise.resolve(!0);var n=[],r=function(t){n.push(t)};return Kt.info("Waiting for plugins to authenticate"),new Promise((function(o,i){e._pluginMediator.emitAndWait(u.TRANSPORT_AUTHENTICATE,{token:t,awaitPromise:r},(function(){Promise.all(n).then((function(){return o(!0)}),i)}))}))}},{key:"_authenticate",value:function(t){var e=this;if(!(this._stateMask&te))return Promise.reject(new Vt(i.TRANSPORT_INVALID_STATE,"Cannot authenticate disconnected transport."));if(this._authenticationPromise)return this._authenticationPromise;var n=qt.create();return n.start(),this._authenticationPromise=Rt.init((function(){return Kt.info("Authenticating"),e._refreshToken(t).then(e._authenticateWithToken)}),{curve:"exponential",maxRetries:2,baseTime:500,retryPredicate:function(t){return Kt.warn("Retrying authentication due to failure",t),!0}}).then((function(){return e._onAuthenticated(n)})).catch((function(t){return e._onAuthenticationFailed(t,n)})),this._authenticationPromise}},{key:"_performDisconnect",value:function(t){this._stateMask=0;var e=!t;return t&&(this.emit(a.DISCONNECTED,{reason:t}),Kt.info("Disconnected")),Kt.info("Waiting for plugins to disconnect."),this._pluginMediator.emitSync(u.TRANSPORT_DISCONNECT,{supressed:e}),!0}},{key:"_createReconnector",value:function(){var t=this,e=!1;return function(){return t._isReconnecting=!0,t.emit(a.RECONNECTING,null),Kt.info("Reconnecting"),t._performDisconnect(),t._connect().then((function(){return!!t._authenticateCalled&&t._authenticate(e).then((function(t){return e=!1,t}),(function(t){return e=!0,Promise.reject(t)}))})).then((function(){return t._isReconnecting=!1,t.emit(a.RECONNECTED,null),Kt.info("Reconnected"),!0}))}}},{key:"_tryToReconnect",value:function(){var t=this;this._isReconnecting?Kt.warn("Reconnection triggered while already reconnecting"):(this._stateMask=0,Rt.init(this._createReconnector(),{baseTime:1e3,maxTime:15e3,maxRetries:this._reconnectionRetries,retryPredicate:function(t){return Kt.warn("Retrying reconnection due to failure",t),!0}}).catch((function(){t._stateMask=0,t._isReconnecting=!1,t.emit(a.DISCONNECTED,{reason:c.RECONNECTION_FAILED}),Kt.info("Disconnected: reconnection failed")})))}},{key:"_sendRequest",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.signal;return(null==o?void 0:o.aborted)?Promise.reject(z(t,o)):this._processRequestArgs(t,n).then((function(n){return(null==o?void 0:o.aborted)?Promise.reject(z(t,o)):n.options.forget?e._sendFireAndForgetRequest(n):e._sendRetriedRequest(n,r)}))}},{key:"_processRequestArgs",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===(e=r.signal)||void 0===e?void 0:e.aborted)return Promise.reject(z(t,r.signal));var o=t,i=!1,a=Object.assign(Object.assign({},r),{forcePolyfill:!(!r.responseType||!(r.responseType in this._forcePolyfillTypes)),requestMode:null!==(n=null==r?void 0:r.requestMode)&&void 0!==n?n:this._requestMode,connectionObserver:this._connectionObserver,metadata:(null==r?void 0:r.metadata)||null});if((null==r?void 0:r.signal)&&!B()&&("fetch"===r.requestMode?Kt.warn("Request with `{requestMode: fetch}` but no native AbortController."):a.requestMode="xhr"),Yt.test(o)){i=!0;try{o=this._tryExpandSpecialURL(o)}catch(t){return Promise.reject(t)}"authorize"in a||(a.authorize=!0,a.autoAuthorized=!0)}var s=Object.assign(Object.assign({maxRetries:2,curve:"exponential"},r.retry),{retryPredicate:function(t){return!(t instanceof L)}});return Promise.resolve(jt.create(o,{method:r.method,headers:r.headers,payload:r.payload,options:a,urlExpanded:i,retryOptions:s}))}},{key:"_tryExpandSpecialURL",value:function(t){var e=this._endpoints;return t.replace(Yt,(function(t,n){if(!e.hasOwnProperty(n))throw new TypeError("Cannot replace endpoint @".concat(n,": endpoint not defined."));return e[n]}))}},{key:"_sendFireAndForgetRequest",value:function(t){var e,n=t.url,r=t.method,o=t.options;if(null===(e=o.signal)||void 0===e?void 0:e.aborted)return Promise.reject(z(n,o.signal));if("GET"!==r&&"POST"!==r)return Promise.reject(new Vt(i.TRANSPORT_UNSUPPORTED_OPTION,"Option 'forget' cannot be used for ".concat(r," request.")));if(!o.autoAuthorized&&o.authorize)return Promise.reject(new Vt(i.TRANSPORT_UNSUPPORTED_OPTION,"Option 'forget' cannot be used for authorized request."));if(o.requestMode="xhr",o.authorize=!1,o.ignoreResponseBody=!0,"GET"===r)if("function"==typeof fetch){var a={mode:"no-cors"};o.signal&&B()&&(a.signal=o.signal),fetch(n,a).catch((function(){}))}else"function"==typeof Image?(new Image).src=n:this._sendRetriedRequest(t,{}).catch((function(){}));else if("POST"===r)if("undefined"!=typeof navigator&&(null===navigator||void 0===navigator?void 0:navigator.sendBeacon)){var s=t.headers.get("content-type");navigator.sendBeacon(t.url,"string"==typeof t.payload&&s?new Blob([t.payload],{type:s}):t.payload)}else if("function"==typeof fetch){var u=t.headers.get("content-type"),c={method:"POST",body:t.payload,headers:u?{"content-type":u}:void 0};o.signal&&B()&&(c.signal=o.signal),fetch(n,c).catch((function(){}))}else this._sendRetriedRequest(t,{}).catch((function(){}));return Promise.resolve(new At(n,0))}},{key:"_sendRetriedRequest",value:function(t,e){var n=this,r=t.retryOptions,o=t.options.signal,i=!1,s=function(){return(null==o?void 0:o.aborted)?Promise.reject(z(t.url,o)):n._setAuthHeader(t,i)},c=this._connectionObserver,l=new Rt((function(){return(c.isOnline()||t.options.allowOffline?s():new Promise((function(t,e){c.once(a.CONNECTION_ONLINE,(function(){s().then(t,e)}))}))).then((function(){if(null==o?void 0:o.aborted)return Promise.reject(z(t.url,o));var r;if(n._pluginMediator.emitSync(u.TRANSPORT_BEFORE_SEND_REQUEST,{request:t,context:e}),"fetch"===t.options.requestMode&&n._Fetch&&n._Fetch.isSupported())r=n._Fetch.request(t);else{if(!n._XHR)throw new Error("No available request mechanisms.");r=n._XHR.request(t)}return r})).then((function(e){if(null==o?void 0:o.aborted)return Promise.reject(z(t.url,o));var n=null;if(e.headers&&(n=e.headers.get("Retry-After")),e.status===mt.UNAUTHORIZED&&!t.options.ignoreUnauthorized)return i=!0,Promise.reject(e);if("function"==typeof(null==r?void 0:r.condition)&&(r.condition(e,It)||n)){if(null!==n)if(Xt.test(n))e.retryAfter=new Date(n).getTime()-Date.now();else{var a=parseInt(n,10);a>0&&(e.retryAfter=1e3*a)}return Promise.reject(e)}return Promise.resolve(e)}))}),r);return l.start().catch(this._handleRetriedRequestError).then((function(r){return(null==o?void 0:o.aborted)?Promise.reject(z(t.url,o)):(r.metadata=t.options.metadata,r.retries=r.retries||{count:0},r.retries.count=l.getRetryCount(),n._pluginMediator.emitSync(u.TRANSPORT_BEFORE_RETURN_RESPONSE,{context:e,response:r}),t.options.rejectNotOk&&!r.ok?Promise.reject(r):r)}))}},{key:"_setAuthHeader",value:function(t,e){var n=this;if(!t.options.authorize)return Promise.resolve(t);var r=function(){return n._refreshToken(e).then((function(e){return t.headers.set("Authorization","Bearer ".concat(e)),t}))};return this._stateMask&ee?r():new Promise((function(t,e){Kt.info("Auth header setting awaiting authentication."),n.once(a.AUTHENTICATED,(function(){Kt.info("Auth header set after authentication."),r().then(t,e)}))}))}},{key:"_handleRetriedRequestError",value:function(t){return t instanceof At?Promise.resolve(t):Promise.reject(t)}},{key:"_onAddListener",value:function(t,e){var n=this,r=e.data.options;if(!r.ignoreCurrentState){var o;switch(t){case"connected":if(!this.isConnected())return;o=Promise.resolve(this.createEvent(a.CONNECTED,null));break;case"authenticated":if(!this.isAuthenticated())return;var i=this._stateAwareOperationMetrics.authenticated;o=Promise.resolve(this.createEvent(a.AUTHENTICATED,{timing:i}));break;case"connection_id":var s=this.getPluginAPI("dealer");if(!s||!s.hasConnectionInfo())return;o=s.getConnectionInfo().then((function(t){return n.createEvent(a.CONNECTION_ID,t)}));break;case"transport_connect":if(!this.isConnected()||!this._endpoints)return;o=Promise.resolve(this._pluginMediator.createEvent(u.TRANSPORT_CONNECT,{endpoints:Object.assign({},this._endpoints),awaitPromise:function(t){}}));break;case"transport_authenticate":if(!this.isAuthenticated())return;o=this._refreshToken().then((function(t){return n._pluginMediator.createEvent(u.TRANSPORT_AUTHENTICATE,{token:t,awaitPromise:function(t){}})}));break;default:return}var c=e.data.listener;this._stateAwareListeners[t].push(c);var l=this._stateAwareRunners;l[t]||(l[t]=o.then(this._runStateAwareQueues.bind(this,t)),r.once&&e.preventDefault())}}},{key:"_onRemoveListener",value:function(t,e){var n=e.data.options;if(!n.ignoreCurrentState&&!n.once){var r=e.data.listener,o=this._stateAwareListeners[t].indexOf(r);-1!==o&&this._stateAwareListeners[t].splice(o,1)}}},{key:"_getQuickDisconnectTimeout",value:function(){return this._counter.getTime(this._quickDisconnectCount)}},{key:"_onPluginDisconnected",value:function(t){var e=Date.now(),n=e-this._lastDisconnect;if(this._performDisconnect(),t.data.code===K.CLOSE)return Kt.info('Plugin "'.concat(t.data.plugin,'" explicitly disconnected')),void(this._quickDisconnectCount=0);this._connectionObserver.isOnline()&&(Kt.info('Plugin "'.concat(t.data.plugin,'" unexpectedly disconnect; trying to reconnect')),n<5e3?(this._reconnectTimeout&&clearTimeout(this._reconnectTimeout),this._quickDisconnectCount++,this.emit(a.SHORT_SESSION_DISCONNECTED,{disconnectCount:this._quickDisconnectCount,sessionLength:n}),this._reconnectTimeout=setTimeout(this._tryToReconnect.bind(this),this._getQuickDisconnectTimeout())):(this._quickDisconnectCount=0,this._lastDisconnect=e,this._tryToReconnect()))}},{key:"_onOnline",value:function(){this.emit(a.CONNECTION_ONLINE,null),Kt.info("ConnectionObserver online"),this._connectCalled&&this._tryToReconnect()}},{key:"_onOffline",value:function(){this.emit(a.CONNECTION_OFFLINE,null),Kt.info("ConnectioObserver offline"),this._performDisconnect()}},{key:"_onConnected",value:function(){return this._stateMask|=te,this.emit(a.CONNECTED,null),Kt.info("Connected"),Promise.resolve(!0)}},{key:"_onAuthenticated",value:function(t){t.end(),clearTimeout(this._reconnectTimeout),this._authenticationPromise=null,this._stateMask|=ee,this._initTime=Date.now();var e=t.getMetrics();return this.emit(a.AUTHENTICATED,{timing:e}),this._stateAwareOperationMetrics.authenticated=e,Kt.info("Authenticated"),Promise.resolve(!0)}},{key:"_onAuthenticationFailed",value:function(t,e){e.end();var n=t&&t.error?t.error:t;this._authenticationPromise=null,this._stateMask&=~ee;var r={error:n,timing:e.getMetrics()};return this.emit(a.AUTHENTICATION_FAILED,r),this._pluginMediator.emit(u.TRANSPORT_AUTHENTICATE_FAILED,r),Kt.info("Authentication failed",n),Promise.reject(n)}},{key:"_onLogout",value:function(){var t=this,e=function(){t._lastToken=null,t._lastTokenExpiry=0,t.emit(a.LOGGED_OUT,null)};this._disconnect(c.LOG_OUT).then(e,e)}},{key:"_disconnect",value:function(t){var e=this;if(!this._connectCalled)return Promise.resolve(!1);this._connectCalled=!1,this._authenticateCalled=!1;var n=this.isConnected()?a.BEFORE_ONLINE_DISCONNECT:a.BEFORE_OFFLINE_DISCONNECT,r=[];return this.emitSync(n,{awaitPromise:function(t){r.push(t.catch((function(){})))}}),Promise.all(r).then((function(){return e._performDisconnect(t)}))}},{key:"isConnected",value:function(){return!!(this._stateMask&te)}},{key:"isAuthenticated",value:function(){return!!(this._stateMask&ee)}},{key:"isReconnecting",value:function(){return this._isReconnecting}},{key:"isOnline",value:function(){return this._connectionObserver.isOnline()}},{key:"connect",value:function(){return this._connectCalled=!0,this._connect()}},{key:"authenticate",value:function(){return this._authenticateCalled=!0,this._authenticate(!0)}},{key:"disconnect",value:function(){return this._disconnect(c.EXPLICIT)}},{key:"forceDisconnect",value:function(){return this._connectCalled?(this._connectCalled=!1,this._authenticateCalled=!1,this._performDisconnect(c.EXPLICIT),Promise.resolve(!0)):Promise.resolve(!1)}},{key:"forceTokenRefresh",value:function(){return this._refreshToken(!0).then((function(){return!0}))}},{key:"getInitTime",value:function(){return this._initTime}},{key:"getEndpoints",value:function(){return this._endpoints?Object.assign({},this._endpoints):null}},{key:"getLastToken",value:function(){return this._lastToken}},{key:"toPublic",value:function(t){return new Ht(this,t)}},{key:"hasOwnerRef",value:function(t){return this._ownerRef===t}},{key:"appendTokenQuery",value:function(t){return this._refreshToken().then((function(e){return ne(t,e)}))}},{key:"appendLastTokenQuery",value:function(t){return this._lastToken?ne(t,this._lastToken):t}},{key:"matchMessages",value:function(t,e,n){if(!t)throw new TypeError('Message "matcher" cannot be null.');if("function"!=typeof e)throw new TypeError("Message callback cannot be null.");var r=function(r){var o=r.data.message;!o.uri||!o.uri.match(t)||n&&n!==r.data.plugin||e(o)};r.__matchMessagesExp=t,r.__matchMessagesPlugin=n,e.__matchMessagesWrapper=r,this._pluginMediator.on(u.PLUGIN_MESSAGE,r)}},{key:"unmatchMessages",value:function(t,e,n){if("function"!=typeof e)throw new TypeError("Message callback cannot be null.");var r=e.__matchMessagesWrapper;return!(!r||r.__matchMessagesExp!==t||r.__matchMessagesPlugin!==n)&&(this._pluginMediator.removeListener(u.PLUGIN_MESSAGE,r),!0)}},{key:"handlePushRequests",value:function(t,e,n){if(!t)throw new TypeError('Push request "matcher" cannot be null.');if("function"!=typeof e)throw new TypeError("Push request callback cannot be null.");var r=function(r){var o=r.data.request;!o.message_ident||!o.message_ident.match(t)||n&&n!==r.data.plugin||Promise.resolve(e(o)).then(r.data.reply)};r.__matchRequestExp=t,r.__matchRequestPlugin=n,e.__matchRequestWrapper=r,this._pluginMediator.on(u.PLUGIN_REQUEST,r)}},{key:"unhandlePushRequests",value:function(t,e,n){if("function"!=typeof e)throw new TypeError("Push request callback cannot be null.");var r=e.__matchRequestWrapper;return!(!r||r.__matchRequestExp!==t||r.__matchRequestPlugin!==n)&&(this._pluginMediator.removeListener(u.PLUGIN_REQUEST,r),!0)}},{key:"request",value:function(t,e){var n,r=this,o={uri:t,options:e,context:{}};this._pluginMediator.emitSync(u.TRANSPORT_BEFORE_PROCESS_REQUEST,o);var i=this._sendRequest.bind(this,o.uri,o.options,o.context);return!this._endpoints&&Yt.test(o.uri)?(Kt.info("Request queued until endpoints resolved",o.uri),new Promise((function(t,e){r.once(a.ENDPOINTS_RESOLVED,(function(){Kt.info("Sending endpoints-queued request",o.uri),i().then(t,e)}))}))):!this._connectionObserver.isOnline()&&!(null===(n=o.options)||void 0===n?void 0:n.allowOffline)?(Kt.info("Request queued until online",o.uri),new Promise((function(t,e){r.once(a.CONNECTION_ONLINE,(function(){Kt.info("Sending offline-queued request",o.uri),i().then(t,e)}))}))):i()}},{key:"addPlugin",value:function(t,e){var n=t(this,e),r=n.name;if(this._plugins[r])throw new TypeError("Plugin is already added.");return n.attach(this,this._pluginMediator),this._plugins[r]=n,r}},{key:"removePlugin",value:function(t){var e=this._plugins[t];return!!e&&(e.detach(this,this._pluginMediator),this._plugins[t]=void 0,!0)}},{key:"hasPlugin",value:function(t){return!!this._plugins[t]}},{key:"getPluginAPI",value:function(t){var e=this._plugins[t];return e&&e.api?e.api:null}},{key:"getConnectionId",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"dealer",e=this._plugins[t];return e?e.api&&function(t){return"getConnectionInfo"in t.api}(e)?e.api.getConnectionInfo().then((function(t){return t.id})):Promise.reject(new TypeError("Plugin ".concat(e," is not a socket plugin."))):Promise.reject(new TypeError("Cannot retrieve connection id for plugin ".concat(e,".")))}},{key:"removeAllListeners",value:function(){return this}}],[{key:"create",value:function(t){return new e(t)}}])}(v.bk);function oe(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ie(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ie(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0){var i=r.substring(0,o).toLowerCase(),a=r.substring(o+2);this._headers[i]=a}}}catch(t){n.e(t)}finally{n.f()}}}},{key:"get",value:function(t){return this._headers[t.toLowerCase()]||null}},{key:"has",value:function(t){return this._headers.hasOwnProperty(t.toLowerCase())}}])}();var se=vt("transport.http.xhr"),ue=function(){},ce={json:!0,text:!0,document:!0};function le(){this.onabort=ue,this.onerror=ue,this.onload=ue,this.onloadend=ue}function fe(t,e,n){var r,o;if(!(null===(r=t.options.signal)||void 0===r?void 0:r.aborted)){var i=gt(),a=this.status,s=new At(this.responseURL||t.url,a);s.body=null;var u=t.options;if(u.timing&&(s.timing={completed:yt(e,i)}),(null===(o=u.connectionObserver)||void 0===o?void 0:o.isOnline)&&(s.offline=!u.connectionObserver.isOnline()),(u.parseResponseHeaders||a>299)&&(s.headers=new ae(this.getAllResponseHeaders())),!u.ignoreResponseBody&&a!==mt.NO_CONTENT){var c=u.responseType||"";if(!u.forcePolyfill&&"response"in this&&c===this.responseType)s.body=this.response;else if("document"===c)s.body=this.responseXML;else if("json"===c)try{s.body=JSON.parse(this.responseText)}catch(t){se.warn("Could not parse response as JSON:",t),s.body=null}else"text"!==c&&""!==c||(s.body=this.responseText)}n(s)}}function he(t,e,n){4===this.readyState?e(new At(this.responseURL||t,this.status)):n(new O("Request cannot be completed.",i.HTTP_REQUEST_FAILED,this.status,t))}function pe(t){var e=t.options.signal;return new Promise((function(n,r){if(null==e?void 0:e.aborted)r(z(t.url,e));else{var o=new XMLHttpRequest,i=t.url;if(i){var a=null,s=t.method||"GET",u=t.payload||"";if((c=u)&&"[object ReadableStream]"===Object.prototype.toString.call(c))r(new TypeError("payload is a ReadableStream, which is not supported"));else{var c;s in bt&&!0===bt[s]&&u?a=u:u&&(i+="?".concat(u)),o.open(s,i,!0),o.onerror=he.bind(o,i,n,r),o.onabort=le,o.onloadend=le,o.onprogress=ue;var l=t.options;"include"===l.credentials&&(o.withCredentials=!0);var f=l.responseType;if(f)if(l.forcePolyfill){if(!(f in ce))return void r(new TypeError('Cannot polyfill responseType "'.concat(f,'"')))}else{if(!("responseType"in o)&&!(f in ce))return void r(new TypeError("Cannot set responseType: not supported in browser."));try{o.responseType=f}catch(t){return void r(new TypeError('Unknown responseType "'.concat(f,'".')))}if(o&&f!==o.responseType&&!(f in ce))return void r(new TypeError('Unknown responseType "'.concat(f,'".')))}var h=t.headers.count()?t.headers.toJSON():null;if(h)for(var p in h)if(h.hasOwnProperty(p)&&h[p])try{o.setRequestHeader(p,h[p])}catch(t){return void r(t)}e&&e.addEventListener("abort",(function t(){e.removeEventListener("abort",t),o.abort(),r(z(i,e))})),o.onload=fe.bind(o,t,gt(),n);try{o.send(a)}catch(t){return void r(t)}}}else r(new TypeError("Request URL cannot be blank."))}}))}function de(t){return pe(t)}function ve(t,e,n){return e=(0,p.A)(e),(0,h.A)(t,me()?Reflect.construct(e,n||[],(0,p.A)(t).constructor):e.apply(t,n))}function me(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(me=function(){return!!t})()}var ge=function(t){function e(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return(0,f.A)(this,e),(r=ve(this,e,[n])).name="XResolveError",r.message=n,r.code=t,r.status=o,r}return(0,d.A)(e,t),(0,l.A)(e)}(E(Error)),ye="https://apresolve.spotify.com/",be={DEALER:"dealer",WEBGATE:"spclient"},_e="dealer.spotify.com",Ae="https://api.spotify.com/",we={spclient:"spclient.wg.spotify.com",exp:"exp.wg.spotify.com",partners:"partners.wg.spotify.com"};function Ee(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={dealer:t.dealer||be.DEALER,webgate:t.webgate||be.WEBGATE},n="".concat(ye,"?type=").concat(e.dealer,"&type=").concat(e.webgate);return function(t){return t.request(n,{forcePolyfill:!0,responseType:"json",retry:{maxRetries:3,curve:"exponential",condition:function(t,e){return t.getStatusFamily()!==e.SUCCESS}},metadata:{noRequestTransform:!0}}).then((function(t){var n,r,o,a,s,u=t.body,c={dealer:null!==(r=null===(n=null==u?void 0:u[e.dealer])||void 0===n?void 0:n[0])&&void 0!==r?r:_e,webgate:null!==(s=null!==(a=null===(o=null==u?void 0:u[e.webgate])||void 0===o?void 0:o[0])&&void 0!==a?a:we[e.webgate])&&void 0!==s?s:we.spclient,webapi:Ae};if(!c.dealer||!c.webgate)throw new ge(i.XRESOLVE_INCOMPLETE_RESPONSE,"X-Resolve responded with incomplete results.",t.status);return c})).then((function(t){return t.dealer="wss://".concat(t.dealer.replace(/:443$/,"")),t.webgate="https://".concat(t.webgate.replace(/:443$/,"")),t}))}}function Se(){return function(){return Promise.resolve({webgate:"https://www.spotify.com/api/",webapi:"https://api.spotify.com"})}}function Ce(){return function(){return Promise.resolve("NOT_A_TOKEN")}}function Te(){return{endpoints:Se(),token:Ce()}}var ke="request-transformer",Oe=function(){return(0,l.A)((function t(e){(0,f.A)(this,t),this.name=ke,this._uriTransformer=e.uriTransformer,this._optionsOverrides=e.optionsOverrides,this._include=e.include,this._processRequest=this._processRequest.bind(this)}),[{key:"_processRequest",value:function(t){var e,n,r=t.data;if(!((null===(n=null===(e=r.options)||void 0===e?void 0:e.metadata)||void 0===n?void 0:n.noRequestTransform)||this._include&&!this._include(r.uri,r.options))){this._uriTransformer&&(r.uri=this._uriTransformer(r.uri));var o=this._optionsOverrides;if(o)if(r.options){var i=Object.assign(Object.assign(Object.assign({},r.options),o),{metadata:Object.assign(Object.assign({},r.options.metadata),o.metadata),retry:Object.assign(Object.assign({},r.options.retry),o.retry),headers:Object.assign(Object.assign({},r.options.headers),o.headers)});r.options=i}else r.options=o}}},{key:"attach",value:function(t,e){e.on(u.TRANSPORT_BEFORE_PROCESS_REQUEST,this._processRequest)}},{key:"detach",value:function(t,e){e.removeListener(u.TRANSPORT_BEFORE_PROCESS_REQUEST,this._processRequest)}}])}();function Le(t,e){return new Oe(e)}function xe(t){var e=Object.assign({},t);return e.XHR||(e.XHR=o),e.Fetch=r,re.create(e)}function Pe(t){var e=xe(t);return e.addPlugin(at,{WebSocket}),e}},16855:(t,e,n)=>{"use strict";n(26701),n(79024),n(71425),n(43379),n(97460),n(34192),n(51565),n(18316),n(93577)},80366:(t,e,n)=>{"use strict";n.d(e,{NQ:()=>o,o_:()=>nt,cA:()=>et});var r,o={AD:"ad",ALBUM:"album",APPLICATION:"application",ARTIST:"artist",ARTIST_TOPLIST:"artist-toplist",ARTIST_CONCERTS:"artist-concerts",AUDIO_FILE:"audiofile",CACHED_FILES:"cached-files",CANVAS:"canvas",COLLECTION:"collection",COLLECTION_ALBUM:"collection-album",COLLECTION_ARTIST:"collection-artist",COLLECTION_MISSING_ALBUM:"collection-missing-album",COLLECTION_TRACK_LIST:"collectiontracklist",COMMENT:"comment",CONCEPT:"concept",CONCERT:"concert",CONTEXT_GROUP:"context-group",CONTRIBUTOR:"contributor",COURSE:"course",CULTURAL_MOMENT:"cultural-moment",DAILY_MIX:"dailymix",EMPTY:"empty",EPISODE:"episode",EXPRESSION:"expression",FACEBOOK:"facebook",FESTIVAL:"festival",FOLDER:"folder",FOLLOWERS:"followers",FOLLOWING:"following",GENRE:"genre",IMAGE:"image",INBOX:"inbox",INTERRUPTION:"interruption",JAM:"jam",LESSON:"lesson",LIBRARY:"library",LIVE:"live",LOCAL_ALBUM:"local-album",LOCAL_ARTIST:"local-artist",LOCAL:"local",LOCAL_TRACK:"local",MEDIA:"media",MERCHHUB:"merchhub",MERCH:"merch",MOSAIC:"mosaic",PLAYLIST:"playlist",PLAYLIST_V2:"playlist-v2",POLL:"poll",PRERELEASE:"prerelease",PRESENTS:"presents",PROFILE:"profile",PROMOTER:"promoter",PROMOTION:"promotion",PUBLISHED_ROOTLIST:"published-rootlist",RADIO:"radio",RESPONSE:"response",ROOM:"room",ROOTLIST:"rootlist",SEARCH:"search",SHOW:"show",SITE:"site",SOCIAL_SESSION:"socialsession",SPECIAL:"special",STARRED:"starred",STATION:"station",TEMP_PLAYLIST:"temp-playlist",TOPLIST:"toplist",TOUR:"tour",TRACK:"track",TRACKSET:"trackset",UNKNOWN:"unknown",USER_TOPLIST:"user-toplist",USER_TOP_TRACKS:"user-top-tracks",QUEUE:"queue",QUESTION:"question",VENUE:"venue",VIDEO:"video"},i=n(56068),a=n(2970),s=(n(184),n(42486),n(83234),n(53276),n(45434),n(34518),n(68216),n(16765),n(43379),n(2823),n(78397),n(4672),n(83422));!function(t){t[t.URI=0]="URI",t[t.URL=1]="URL"}(r||(r={}));var u="spotify:",c="http://play.spotify.com/",l="https://play.spotify.com/",f="http://open.spotify.com/",h="https://open.spotify.com/",p="/",d={APP:"app",FACEBOOK:"facebook",GLOBAL:"global",TOP:"top",USER:"user",CONCERTS:"concerts",HUB:"hub"},v=n(87529);n(38408),n(70750),n(65594),n(34192),n(80456),n(72636);function m(t,e){return tt(o.COLLECTION,{username:t,category:e})}function g(t,e,n){return tt(o.JAM,{id:t,contextType:e,hasBase62Id:Boolean(t),play:Boolean(n)})}function y(t,e,n,r){return tt(o.LOCAL_TRACK,{artist:t,album:e,track:n,duration:r})}function b(t,e,n){return tt(o.TOPLIST,{toplist:t,country:e,global:Boolean(n)})}function _(t,e,n,r){return tt(o.TRACK,{id:t,anchor:e,context:n?et(n):null,play:r,hasBase62Id:!0})}n(44872);function A(t,e){if(!t)return"";var n=encodeURIComponent(t);return e===r.URI&&(n=n.replace(/%20/g,"+")),n=(n=n.replace(/[!'()]/g,escape)).replace(/\*/g,"%2A")}function w(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0,o=t.length;r1&&(e+="&");var r=t[n];void 0!==r&&(e+="".concat(n,"=").concat(encodeURIComponent(r)))}return e}var C=/^intl-[A-Za-z]{2,3}(-[A-Za-z]{4})?(-([A-Za-z]{2}|[0-9]{3}))?$/;var T=function(){var t={};return[function(e,n){t[e]||(t[e]=n)},t]},k=T(),O=(0,v.A)(k,2),L=O[0],x=O[1];L(o.PLAYLIST,(function(t,e,n){return function(t,e){return tt(o.PLAYLIST,{id:e,username:t,hasBase62Id:!0})}(n.username,t.getBase62IdComponent())})),L(o.FOLDER,(function(t,e,n){return function(t,e){return tt(o.FOLDER,{id:e,username:t,hasBase62Id:!0})}(n.username,t.getIdComponent())})),L(o.COLLECTION_TRACK_LIST,(function(t,e,n){return function(t,e){return tt(o.COLLECTION_TRACK_LIST,{id:e,username:t,hasBase62Id:!0})}(n.username,t.getIdComponent())})),L(o.COLLECTION,(function(t,e,n){var r=n.username,i=t.getNextComponent();if(i===o.ALBUM){var a=t.getIdComponent();return"missing"===t.getNextComponent()?function(t,e){return tt(o.COLLECTION_MISSING_ALBUM,{id:e,username:t,hasBase62Id:!0})}(r,a):function(t,e){return tt(o.COLLECTION_ALBUM,{id:e,username:t,hasBase62Id:!0})}(r,a)}return i===o.ARTIST?function(t,e){return tt(o.COLLECTION_ARTIST,{id:e,username:t,hasBase62Id:!0})}(r,t.getIdComponent()):m(r,i)})),L(o.STARRED,(function(t,e,n){return function(t){return tt(o.STARRED,{username:t})}(n.username)})),L(o.FOLLOWERS,(function(t,e,n){return function(t){return tt(o.FOLLOWERS,{username:t})}(n.username)})),L(o.FOLLOWING,(function(t,e,n){return function(t){return tt(o.FOLLOWING,{username:t})}(n.username)})),L(d.TOP,(function(t,e,n){return function(t,e){return tt(o.USER_TOPLIST,{username:t,toplist:e})}(n.username,t.getNextRequiredComponent())})),L(o.INBOX,(function(t,e,n){return function(t){return tt(o.INBOX,{username:t})}(n.username)})),L(o.ROOTLIST,(function(t,e,n){return function(t){return tt(o.ROOTLIST,{username:t})}(n.username)})),L(o.PUBLISHED_ROOTLIST,(function(t,e,n){return function(t){return tt(o.PUBLISHED_ROOTLIST,{username:t})}(n.username)})),L(o.TOPLIST,(function(t,e,n){return function(t){return tt(o.USER_TOP_TRACKS,{username:t})}(n.username)})),L(o.LIBRARY,(function(t,e,n){return function(t,e){return tt(o.LIBRARY,{username:t,category:e})}(n.username,t.getNextComponent())}));var P=T(),I=(0,v.A)(P,2),N=I[0],R=I[1];function M(t){var e,n,o,i,a=t,s=a.split("?"),d=(0,v.A)(s,2),m=d[0],g=d[1];if(m&&g){a=m;var y=g.split("#"),b=(0,v.A)(y,2),_=b[0],A=b[1];_&&(o=function(t){return t.split("&").reduce((function(t,e){var n=e.split("="),r=(0,v.A)(n,2),o=r[0],i=r[1];return o&&i&&(t[o]=decodeURIComponent(i)),t}),{})}(_),i=A)}var w=a.split("#");if(w.length>1&&(a=w.shift(),i=w.pop()),0===a.indexOf(u))e=a.slice(u.length).split(":"),n=r.URI;else{var E=a.split("?"),S=(0,v.A)(E,1)[0];if(0===(null==S?void 0:S.indexOf(c)))e=S.slice(c.length).split("/");else if(0===(null==S?void 0:S.indexOf(l)))e=S.slice(l.length).split("/");else if(0===(null==S?void 0:S.indexOf(f)))e=S.slice(f.length).split("/");else if(0===(null==S?void 0:S.indexOf(h)))e=S.slice(h.length).split("/");else{if(0!==(null==S?void 0:S.indexOf(p)))throw new TypeError("Invalid Spotify URI!");e=S.slice(p.length).split("/")}n=r.URL}return i&&e.push(i),{format:n,components:e,query:o}}function D(t,e,n,i){var a=0,s=function(){var e=t[a++];if(e&&/\s/.test(e))throw new TypeError("Invalid Spotify URI!");return e},u=function(){var t=s();if(!t)throw new TypeError("Invalid Spotify URI!");return t},c={getAllComponents:function(){return t},getQueryParams:function(){return n},getNextComponent:s,getNextRequiredComponent:u,getIdComponent:function(){var t=u();if(t.length>22)throw new TypeError("Invalid Spotify URI!");return t},getHexIdComponent:function(t){var e=u();if(e.length!==t)throw new TypeError("Invalid Spotify URI!");if(!/^[a-fA-F0-9]+$/.test(e))throw new Error("Invalid Hex ID");return e},getBase62IdComponent:function(){var t=u();if(22!==t.length)throw new TypeError("Invalid Spotify URI!");if(!/^[a-zA-Z0-9]+$/.test(t))throw new Error("Invalid ID");return t},getRemainingComponents:function(){return t.slice(a)},getRemainingString:function(){var n=e===r.URI?":":"/";return t.slice(a).join(n)}},l=u(),f=R[l];if(!f){var h=function(t){return C.test(t)}(l);h&&(l=u(),f=R[l])}if(f)return f(c,e,{});if(i)return R[o.UNKNOWN](c,e,{});throw new TypeError("Invalid or unknown Spotify URI!")}N(o.ALBUM,(function(t){var e=t.getBase62IdComponent(),n=t.getNextComponent();return function(t,e){return tt(o.ALBUM,{id:t,disc:e,hasBase62Id:!0})}(e,n?parseInt(n,10):void 0)})),N(d.APP,(function(t,e){var n=t.getNextRequiredComponent();if(A(E(n,e),e)!==n)throw new TypeError("Invalid or unknown Spotify URI!");for(var r=t.getRemainingComponents(),i=0,a=r.length;i0?[d.USER,A(t.username,e)].concat(t.args):[d.USER,A(t.username,e)]})),j(o.LOCAL_ARTIST,(function(t,e){return[o.LOCAL_TRACK,A(t.artist,e)]})),j(o.LOCAL_ALBUM,(function(t,e){return[o.LOCAL_TRACK,A(t.artist,e),A(t.album,e)]})),j(o.LOCAL_TRACK,(function(t,e){return[o.LOCAL_TRACK,A(t.artist,e),A(t.album,e),A(t.track,e),t.duration]})),j(o.LIBRARY,(function(t,e){return[d.USER,A(t.username,e),o.LIBRARY].concat(t.category?[t.category]:[])})),j(o.IMAGE,(function(t){return[o.IMAGE,t.id]})),j(o.MOSAIC,(function(t){var e=[];return t.ids&&(e=t.ids.slice(0)),e.unshift(o.MOSAIC),e})),j(o.RADIO,(function(t,e){return w(t.args,e,[o.RADIO])})),j(o.SPECIAL,(function(t,e){return w(t.args,e,[o.SPECIAL])})),j(o.STATION,(function(t,e){return w(t.args,e,[o.STATION])})),j(o.APPLICATION,(function(t,e){return w(t.args,e,[d.APP,t.id])})),j(o.COLLECTION_ALBUM,(function(t,e){return[d.USER,A(t.username,e),o.COLLECTION,o.ALBUM,t.id]})),j(o.COLLECTION_MISSING_ALBUM,(function(t,e){return[d.USER,A(t.username,e),o.COLLECTION,o.ALBUM,t.id,"missing"]})),j(o.COLLECTION_ARTIST,(function(t,e){return[d.USER,A(t.username,e),o.COLLECTION,o.ARTIST,t.id]})),j(o.COLLECTION,(function(t,e){var n=[o.COLLECTION].concat(t.category?[t.category]:[]);return t.username?[d.USER,A(t.username,e)].concat(n):n})),j(o.COMMENT,(function(t){return[o.COMMENT,t.id]})),j(o.EPISODE,(function(t){var e=t.id;return(t.context||t.play)&&(e+=S({context:t.context,play:t.play})),[o.EPISODE,e]})),j(o.SHOW,(function(t){return[o.SHOW,t.id]})),j(o.LIVE,(function(t){return[o.LIVE,t.id]})),j(o.ROOM,(function(t){return[o.ROOM,t.id]})),j(o.EXPRESSION,(function(t){return[o.EXPRESSION,t.id]})),j(o.CONCEPT,(function(t){return[o.CONCEPT,t.id]})),j(o.CONCERT,(function(t){return[o.CONCERT,t.id]})),j(o.SOCIAL_SESSION,(function(t){return[o.SOCIAL_SESSION,t.id]})),j(o.JAM,(function(t){var e=[o.JAM];return t.contextType&&t.id&&e.push(t.contextType,t.id),t.play&&e.push("play"),e})),j(o.INTERRUPTION,(function(t){return[o.INTERRUPTION,t.id]})),j(o.MERCH,(function(t){return[o.MERCH,t.id]})),j(o.MERCHHUB,(function(){return[o.MERCHHUB]})),j(o.PRERELEASE,(function(t){return[o.PRERELEASE,t.id]})),j(o.UNKNOWN,(function(t,e){return w(t.args,e)})),j(o.MEDIA,(function(t){return[o.MEDIA,t.id]})),j(o.POLL,(function(t){return[o.POLL,t.id]})),j(o.QUESTION,(function(t){return[o.QUESTION,t.id]})),j(o.RESPONSE,(function(t){return[o.RESPONSE,t.id]})),j(o.FESTIVAL,(function(t){return[o.FESTIVAL,t.id]})),j(o.TOUR,(function(t){return[o.TOUR,t.id]})),j(o.CONTRIBUTOR,(function(t){return[o.CONTRIBUTOR,t.id]})),j(o.CULTURAL_MOMENT,(function(t){return[o.CULTURAL_MOMENT,d.HUB,t.id]})),j(o.VENUE,(function(t){return[o.VENUE,t.id]})),j(o.VIDEO,(function(t){return[o.VIDEO,t.id]})),j(o.CACHED_FILES,(function(){return[o.CACHED_FILES]})),j(o.CANVAS,(function(t){return[o.CANVAS,t.id]})),j(o.COURSE,(function(t){return[o.COURSE,t.id]})),j(o.LESSON,(function(t){return[o.LESSON,t.id]})),j(o.PROMOTER,(function(t){return[o.PROMOTER,t.id]})),j(o.PROMOTION,(function(t){return[o.PROMOTION,t.id]})),j(o.SITE,(function(t){return[o.SITE,t.id]})),j(o.PRESENTS,(function(t){return[o.PRESENTS,t.id]}));var H="0123456789abcdef",q="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",W=[];W.length=256;for(var Z=0;Z<256;Z++)W[Z]=H[Z>>4]+H[15&Z];var $=[];$.length=128;for(var G=0;G<62;++G)$[q.charCodeAt(G)]=G;for(var K=[],Y=0;Y<16;Y++)K[H.charCodeAt(Y)]=Y;for(var Q=0;Q<6;Q++)K["ABCDEF".charCodeAt(Q)]=10+Q;var X="function"==typeof Object.assign?function(t,e){Object.assign(t,e)}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},J=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.A)(this,t),this.type=e,this.hasBase62Id=!!n.hasBase62Id,X(this,n)}return(0,a.A)(t,[{key:"toURI",value:function(){var t=z(this,r.URI);return"spotify:".concat(t.join(":"))}},{key:"toString",value:function(){return this.toURI()}},{key:"toURLPath",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=z(this,r.URL);e[0]===d.APP&&e.shift();var n=e[0]===o.TRACKSET,i=e[0]===o.LOCAL_TRACK;if(!n&&!i){for(var a=[],s=0,u=e.length;s{"use strict";var r={AD:"ad",ALBUM:"album",APPLICATION:"application",ARTIST:"artist",ARTIST_TOPLIST:"artist-toplist",ARTIST_CONCERTS:"artist-concerts",AUDIO_FILE:"audiofile",CACHED_FILES:"cached-files",CANVAS:"canvas",COLLECTION:"collection",COLLECTION_ALBUM:"collection-album",COLLECTION_ARTIST:"collection-artist",COLLECTION_MISSING_ALBUM:"collection-missing-album",COLLECTION_TRACK_LIST:"collectiontracklist",COMMENT:"comment",CONCEPT:"concept",CONCERT:"concert",CONTEXT_GROUP:"context-group",CONTRIBUTOR:"contributor",COURSE:"course",CULTURAL_MOMENT:"cultural-moment",DAILY_MIX:"dailymix",EMPTY:"empty",EPISODE:"episode",EXPRESSION:"expression",FACEBOOK:"facebook",FESTIVAL:"festival",FOLDER:"folder",FOLLOWERS:"followers",FOLLOWING:"following",GENRE:"genre",IMAGE:"image",INBOX:"inbox",INTERRUPTION:"interruption",JAM:"jam",LESSON:"lesson",LIBRARY:"library",LIVE:"live",LOCAL_ALBUM:"local-album",LOCAL_ARTIST:"local-artist",LOCAL:"local",LOCAL_TRACK:"local",MEDIA:"media",MERCHHUB:"merchhub",MERCH:"merch",MOSAIC:"mosaic",PLAYLIST:"playlist",PLAYLIST_V2:"playlist-v2",POLL:"poll",PRERELEASE:"prerelease",PRESENTS:"presents",PROFILE:"profile",PROMOTER:"promoter",PROMOTION:"promotion",PUBLISHED_ROOTLIST:"published-rootlist",RADIO:"radio",RESPONSE:"response",ROOM:"room",ROOTLIST:"rootlist",SEARCH:"search",SHOW:"show",SITE:"site",SOCIAL_SESSION:"socialsession",SPECIAL:"special",STARRED:"starred",STATION:"station",TEMP_PLAYLIST:"temp-playlist",TOPLIST:"toplist",TOUR:"tour",TRACK:"track",TRACKSET:"trackset",UNKNOWN:"unknown",USER_TOPLIST:"user-toplist",USER_TOP_TRACKS:"user-top-tracks",QUEUE:"queue",QUESTION:"question",VENUE:"venue",VIDEO:"video"},o=n(56068),i=n(2970),a=(n(184),n(42486),n(83234),n(53276),n(45434),n(34518),n(68216),n(16765),n(43379),n(2823),n(78397),n(4672),function(t){return t[t.URI=0]="URI",t[t.URL=1]="URL",t}({})),s="spotify:",u="http://play.spotify.com/",c="https://play.spotify.com/",l="http://open.spotify.com/",f="https://open.spotify.com/",h="/",p={APP:"app",FACEBOOK:"facebook",GLOBAL:"global",TOP:"top",USER:"user",CONCERTS:"concerts",HUB:"hub"},d=n(87529);n(38408),n(70750),n(65594),n(34192),n(80456),n(72636);function v(t,e){return J(r.COLLECTION,{username:t,category:e})}function m(t,e,n){return J(r.JAM,{id:t,contextType:e,hasBase62Id:Boolean(t),play:Boolean(n)})}function g(t,e,n,o){return J(r.LOCAL_TRACK,{artist:t,album:e,track:n,duration:o})}function y(t,e,n){return J(r.TOPLIST,{toplist:t,country:e,global:Boolean(n)})}function b(t,e,n,o){return J(r.TRACK,{id:t,anchor:e,context:n?tt(n):null,play:o,hasBase62Id:!0})}n(44872);function _(t,e){if(!t)return"";var n=encodeURIComponent(t);return e===a.URI&&(n=n.replace(/%20/g,"+")),n=(n=n.replace(/[!'()]/g,escape)).replace(/\*/g,"%2A")}function A(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0,o=t.length;r1&&(e+="&");var r=t[n];void 0!==r&&(e+="".concat(n,"=").concat(encodeURIComponent(r)))}return e}var S=/^intl-[A-Za-z]{2,3}(-[A-Za-z]{4})?(-([A-Za-z]{2}|[0-9]{3}))?$/;var C=function(){var t={};return[function(e,n){t[e]||(t[e]=n)},t]},T=C(),k=(0,d.A)(T,2),O=k[0],L=k[1];O(r.PLAYLIST,(function(t,e,n){return function(t,e){return J(r.PLAYLIST,{id:e,username:t,hasBase62Id:!0})}(n.username,t.getBase62IdComponent())})),O(r.FOLDER,(function(t,e,n){return function(t,e){return J(r.FOLDER,{id:e,username:t,hasBase62Id:!0})}(n.username,t.getIdComponent())})),O(r.COLLECTION_TRACK_LIST,(function(t,e,n){return function(t,e){return J(r.COLLECTION_TRACK_LIST,{id:e,username:t,hasBase62Id:!0})}(n.username,t.getIdComponent())})),O(r.COLLECTION,(function(t,e,n){var o=n.username,i=t.getNextComponent();if(i===r.ALBUM){var a=t.getIdComponent();return"missing"===t.getNextComponent()?function(t,e){return J(r.COLLECTION_MISSING_ALBUM,{id:e,username:t,hasBase62Id:!0})}(o,a):function(t,e){return J(r.COLLECTION_ALBUM,{id:e,username:t,hasBase62Id:!0})}(o,a)}return i===r.ARTIST?function(t,e){return J(r.COLLECTION_ARTIST,{id:e,username:t,hasBase62Id:!0})}(o,t.getIdComponent()):v(o,i)})),O(r.STARRED,(function(t,e,n){return function(t){return J(r.STARRED,{username:t})}(n.username)})),O(r.FOLLOWERS,(function(t,e,n){return function(t){return J(r.FOLLOWERS,{username:t})}(n.username)})),O(r.FOLLOWING,(function(t,e,n){return function(t){return J(r.FOLLOWING,{username:t})}(n.username)})),O(p.TOP,(function(t,e,n){return function(t,e){return J(r.USER_TOPLIST,{username:t,toplist:e})}(n.username,t.getNextRequiredComponent())})),O(r.INBOX,(function(t,e,n){return function(t){return J(r.INBOX,{username:t})}(n.username)})),O(r.ROOTLIST,(function(t,e,n){return function(t){return J(r.ROOTLIST,{username:t})}(n.username)})),O(r.PUBLISHED_ROOTLIST,(function(t,e,n){return function(t){return J(r.PUBLISHED_ROOTLIST,{username:t})}(n.username)})),O(r.TOPLIST,(function(t,e,n){return function(t){return J(r.USER_TOP_TRACKS,{username:t})}(n.username)})),O(r.LIBRARY,(function(t,e,n){return function(t,e){return J(r.LIBRARY,{username:t,category:e})}(n.username,t.getNextComponent())}));var x=C(),P=(0,d.A)(x,2),I=P[0],N=P[1];function R(t){var e,n,r,o,i=t,p=i.split("?"),v=(0,d.A)(p,2),m=v[0],g=v[1];if(m&&g){i=m;var y=g.split("#"),b=(0,d.A)(y,2),_=b[0],A=b[1];_&&(r=function(t){return t.split("&").reduce((function(t,e){var n=e.split("="),r=(0,d.A)(n,2),o=r[0],i=r[1];return o&&i&&(t[o]=decodeURIComponent(i)),t}),{})}(_),o=A)}var w=i.split("#");if(w.length>1&&(i=w.shift(),o=w.pop()),0===i.indexOf(s))e=i.slice(s.length).split(":"),n=a.URI;else{var E=i.split("?"),S=(0,d.A)(E,1)[0];if(0===(null==S?void 0:S.indexOf(u)))e=S.slice(u.length).split("/");else if(0===(null==S?void 0:S.indexOf(c)))e=S.slice(c.length).split("/");else if(0===(null==S?void 0:S.indexOf(l)))e=S.slice(l.length).split("/");else if(0===(null==S?void 0:S.indexOf(f)))e=S.slice(f.length).split("/");else{if(0!==(null==S?void 0:S.indexOf(h)))throw new TypeError("Invalid Spotify URI!");e=S.slice(h.length).split("/")}n=a.URL}return o&&e.push(o),{format:n,components:e,query:r}}function M(t,e,n,o){var i=0,s=function(){var e=t[i++];if(e&&/\s/.test(e))throw new TypeError("Invalid Spotify URI!");return e},u=function(){var t=s();if(!t)throw new TypeError("Invalid Spotify URI!");return t},c={getAllComponents:function(){return t},getQueryParams:function(){return n},getNextComponent:s,getNextRequiredComponent:u,getIdComponent:function(){var t=u();if(t.length>22)throw new TypeError("Invalid Spotify URI!");return t},getHexIdComponent:function(t){var e=u();if(e.length!==t)throw new TypeError("Invalid Spotify URI!");if(!/^[a-fA-F0-9]+$/.test(e))throw new Error("Invalid Hex ID");return e},getBase62IdComponent:function(){var t=u();if(22!==t.length)throw new TypeError("Invalid Spotify URI!");if(!/^[a-zA-Z0-9]+$/.test(t))throw new Error("Invalid ID");return t},getRemainingComponents:function(){return t.slice(i)},getRemainingString:function(){var n=e===a.URI?":":"/";return t.slice(i).join(n)}},l=u(),f=N[l];if(!f){var h=function(t){return S.test(t)}(l);h&&(l=u(),f=N[l])}if(f)return f(c,e,{});if(o)return N[r.UNKNOWN](c,e,{});throw new TypeError("Invalid or unknown Spotify URI!")}I(r.ALBUM,(function(t){var e=t.getBase62IdComponent(),n=t.getNextComponent();return function(t,e){return J(r.ALBUM,{id:t,disc:e,hasBase62Id:!0})}(e,n?parseInt(n,10):void 0)})),I(p.APP,(function(t,e){var n=t.getNextRequiredComponent();if(_(w(n,e),e)!==n)throw new TypeError("Invalid or unknown Spotify URI!");for(var o=t.getRemainingComponents(),i=0,a=o.length;i0?[p.USER,_(t.username,e)].concat(t.args):[p.USER,_(t.username,e)]})),B(r.LOCAL_ARTIST,(function(t,e){return[r.LOCAL_TRACK,_(t.artist,e)]})),B(r.LOCAL_ALBUM,(function(t,e){return[r.LOCAL_TRACK,_(t.artist,e),_(t.album,e)]})),B(r.LOCAL_TRACK,(function(t,e){return[r.LOCAL_TRACK,_(t.artist,e),_(t.album,e),_(t.track,e),t.duration]})),B(r.LIBRARY,(function(t,e){return[p.USER,_(t.username,e),r.LIBRARY].concat(t.category?[t.category]:[])})),B(r.IMAGE,(function(t){return[r.IMAGE,t.id]})),B(r.MOSAIC,(function(t){var e=[];return t.ids&&(e=t.ids.slice(0)),e.unshift(r.MOSAIC),e})),B(r.RADIO,(function(t,e){return A(t.args,e,[r.RADIO])})),B(r.SPECIAL,(function(t,e){return A(t.args,e,[r.SPECIAL])})),B(r.STATION,(function(t,e){return A(t.args,e,[r.STATION])})),B(r.APPLICATION,(function(t,e){return A(t.args,e,[p.APP,t.id])})),B(r.COLLECTION_ALBUM,(function(t,e){return[p.USER,_(t.username,e),r.COLLECTION,r.ALBUM,t.id]})),B(r.COLLECTION_MISSING_ALBUM,(function(t,e){return[p.USER,_(t.username,e),r.COLLECTION,r.ALBUM,t.id,"missing"]})),B(r.COLLECTION_ARTIST,(function(t,e){return[p.USER,_(t.username,e),r.COLLECTION,r.ARTIST,t.id]})),B(r.COLLECTION,(function(t,e){var n=[r.COLLECTION].concat(t.category?[t.category]:[]);return t.username?[p.USER,_(t.username,e)].concat(n):n})),B(r.COMMENT,(function(t){return[r.COMMENT,t.id]})),B(r.EPISODE,(function(t){var e=t.id;return(t.context||t.play)&&(e+=E({context:t.context,play:t.play})),[r.EPISODE,e]})),B(r.SHOW,(function(t){return[r.SHOW,t.id]})),B(r.LIVE,(function(t){return[r.LIVE,t.id]})),B(r.ROOM,(function(t){return[r.ROOM,t.id]})),B(r.EXPRESSION,(function(t){return[r.EXPRESSION,t.id]})),B(r.CONCEPT,(function(t){return[r.CONCEPT,t.id]})),B(r.CONCERT,(function(t){return[r.CONCERT,t.id]})),B(r.SOCIAL_SESSION,(function(t){return[r.SOCIAL_SESSION,t.id]})),B(r.JAM,(function(t){var e=[r.JAM];return t.contextType&&t.id&&e.push(t.contextType,t.id),t.play&&e.push("play"),e})),B(r.INTERRUPTION,(function(t){return[r.INTERRUPTION,t.id]})),B(r.MERCH,(function(t){return[r.MERCH,t.id]})),B(r.MERCHHUB,(function(){return[r.MERCHHUB]})),B(r.PRERELEASE,(function(t){return[r.PRERELEASE,t.id]})),B(r.UNKNOWN,(function(t,e){return A(t.args,e)})),B(r.MEDIA,(function(t){return[r.MEDIA,t.id]})),B(r.POLL,(function(t){return[r.POLL,t.id]})),B(r.QUESTION,(function(t){return[r.QUESTION,t.id]})),B(r.RESPONSE,(function(t){return[r.RESPONSE,t.id]})),B(r.FESTIVAL,(function(t){return[r.FESTIVAL,t.id]})),B(r.TOUR,(function(t){return[r.TOUR,t.id]})),B(r.CONTRIBUTOR,(function(t){return[r.CONTRIBUTOR,t.id]})),B(r.CULTURAL_MOMENT,(function(t){return[r.CULTURAL_MOMENT,p.HUB,t.id]})),B(r.VENUE,(function(t){return[r.VENUE,t.id]})),B(r.VIDEO,(function(t){return[r.VIDEO,t.id]})),B(r.CACHED_FILES,(function(){return[r.CACHED_FILES]})),B(r.CANVAS,(function(t){return[r.CANVAS,t.id]})),B(r.COURSE,(function(t){return[r.COURSE,t.id]})),B(r.LESSON,(function(t){return[r.LESSON,t.id]})),B(r.PROMOTER,(function(t){return[r.PROMOTER,t.id]})),B(r.PROMOTION,(function(t){return[r.PROMOTION,t.id]})),B(r.SITE,(function(t){return[r.SITE,t.id]})),B(r.PRESENTS,(function(t){return[r.PRESENTS,t.id]}));var z="0123456789abcdef",H="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",q=[];q.length=256;for(var W=0;W<256;W++)q[W]=z[W>>4]+z[15&W];var Z=[];Z.length=128;for(var $=0;$<62;++$)Z[H.charCodeAt($)]=$;for(var G=[],K=0;K<16;K++)G[z.charCodeAt(K)]=K;for(var Y=0;Y<6;Y++)G["ABCDEF".charCodeAt(Y)]=10+Y;var Q="function"==typeof Object.assign?function(t,e){Object.assign(t,e)}:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},X=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.A)(this,t),this.type=e,this.hasBase62Id=!!n.hasBase62Id,Q(this,n)}return(0,i.A)(t,[{key:"toURI",value:function(){var t=U(this,a.URI);return"spotify:".concat(t.join(":"))}},{key:"toString",value:function(){return this.toURI()}},{key:"toURLPath",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=U(this,a.URL);e[0]===p.APP&&e.shift();var n=e[0]===r.TRACKSET,o=e[0]===r.LOCAL_TRACK;if(!n&&!o){for(var i=[],s=0,u=e.length;s0&&n[1]||""},t.getSecondMatch=function(t,e){var n=e.match(t);return n&&n.length>1&&n[2]||""},t.matchAndReturnConst=function(t,e,n){if(t.test(e))return n},t.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},t.getMacOSVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),10===e[0])switch(e[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},t.getAndroidVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&e[1]>=6?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&e[1]>2?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&e[1]>=4?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":9===e[0]?"Pie":void 0},t.getVersionPrecision=function(t){return t.split(".").length},t.compareVersions=function(e,n,r){void 0===r&&(r=!1);var o=t.getVersionPrecision(e),i=t.getVersionPrecision(n),a=Math.max(o,i),s=0,u=t.map([e,n],(function(e){var n=a-t.getVersionPrecision(e),r=e+new Array(n+1).join(".0");return t.map(r.split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));for(r&&(s=a-Math.min(o,i)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]1?o-1:0),a=1;a0){var a=Object.keys(n),u=s.default.find(a,(function(t){return e.isOS(t)}));if(u){var c=this.satisfies(n[u]);if(void 0!==c)return c}var l=s.default.find(a,(function(t){return e.isPlatform(t)}));if(l){var f=this.satisfies(n[l]);if(void 0!==f)return f}}if(i>0){var h=Object.keys(o),p=s.default.find(h,(function(t){return e.isBrowser(t,!0)}));if(void 0!==p)return this.compareVersion(o[p])}},e.isBrowser=function(t,e){void 0===e&&(e=!1);var n=this.getBrowserName().toLowerCase(),r=t.toLowerCase(),o=s.default.getBrowserTypeByAlias(r);return e&&o&&(r=o.toLowerCase()),r===n},e.compareVersion=function(t){var e=[0],n=t,r=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===t[0]||"<"===t[0]?(n=t.substr(1),"="===t[1]?(r=!0,n=t.substr(2)):e=[],">"===t[0]?e.push(1):e.push(-1)):"="===t[0]?n=t.substr(1):"~"===t[0]&&(r=!0,n=t.substr(1)),e.indexOf(s.default.compareVersions(o,n,r))>-1},e.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},e.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},e.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},e.is=function(t,e){return void 0===e&&(e=!1),this.isBrowser(t,e)||this.isOS(t)||this.isPlatform(t)},e.some=function(t){var e=this;return void 0===t&&(t=[]),t.some((function(t){return e.is(t)}))},t}();e.default=c,t.exports=e.default},92:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(t){var e={name:"Googlebot"},n=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/opera/i],describe:function(t){var e={name:"Opera"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opr\/|opios/i],describe:function(t){var e={name:"Opera"},n=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/SamsungBrowser/i],describe:function(t){var e={name:"Samsung Internet for Android"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Whale/i],describe:function(t){var e={name:"NAVER Whale Browser"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MZBrowser/i],describe:function(t){var e={name:"MZ Browser"},n=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/focus/i],describe:function(t){var e={name:"Focus"},n=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/swing/i],describe:function(t){var e={name:"Swing"},n=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/coast/i],describe:function(t){var e={name:"Opera Coast"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var e={name:"Opera Touch"},n=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/yabrowser/i],describe:function(t){var e={name:"Yandex Browser"},n=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/ucbrowser/i],describe:function(t){var e={name:"UC Browser"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Maxthon|mxios/i],describe:function(t){var e={name:"Maxthon"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/epiphany/i],describe:function(t){var e={name:"Epiphany"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/puffin/i],describe:function(t){var e={name:"Puffin"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sleipnir/i],describe:function(t){var e={name:"Sleipnir"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/k-meleon/i],describe:function(t){var e={name:"K-Meleon"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/micromessenger/i],describe:function(t){var e={name:"WeChat"},n=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/qqbrowser/i],describe:function(t){var e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},n=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/msie|trident/i],describe:function(t){var e={name:"Internet Explorer"},n=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/\sedg\//i],describe:function(t){var e={name:"Microsoft Edge"},n=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/edg([ea]|ios)/i],describe:function(t){var e={name:"Microsoft Edge"},n=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/vivaldi/i],describe:function(t){var e={name:"Vivaldi"},n=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/seamonkey/i],describe:function(t){var e={name:"SeaMonkey"},n=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sailfish/i],describe:function(t){var e={name:"Sailfish"},n=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return n&&(e.version=n),e}},{test:[/silk/i],describe:function(t){var e={name:"Amazon Silk"},n=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/phantom/i],describe:function(t){var e={name:"PhantomJS"},n=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/slimerjs/i],describe:function(t){var e={name:"SlimerJS"},n=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e={name:"BlackBerry"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e={name:"WebOS Browser"},n=o.default.getFirstMatch(i,t)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/bada/i],describe:function(t){var e={name:"Bada"},n=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/tizen/i],describe:function(t){var e={name:"Tizen"},n=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/qupzilla/i],describe:function(t){var e={name:"QupZilla"},n=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var e={name:"Firefox"},n=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/electron/i],describe:function(t){var e={name:"Electron"},n=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MiuiBrowser/i],describe:function(t){var e={name:"Miui"},n=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/chromium/i],describe:function(t){var e={name:"Chromium"},n=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/chrome|crios|crmo/i],describe:function(t){var e={name:"Chrome"},n=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/GSA/i],describe:function(t){var e={name:"Google Search"},n=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e={name:"Android Browser"},n=o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/playstation 4/i],describe:function(t){var e={name:"PlayStation 4"},n=o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/safari|applewebkit/i],describe:function(t){var e={name:"Safari"},n=o.default.getFirstMatch(i,t);return n&&(e.version=n),e}},{test:[/.*/i],describe:function(t){var e=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(e,t),version:o.default.getSecondMatch(e,t)}}}];e.default=a,t.exports=e.default},93:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/Roku\/DVP/],describe:function(t){var e=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:i.OS_MAP.Roku,version:e}}},{test:[/windows phone/i],describe:function(t){var e=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:i.OS_MAP.WindowsPhone,version:e}}},{test:[/windows /i],describe:function(t){var e=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),n=o.default.getWindowsVersionName(e);return{name:i.OS_MAP.Windows,version:e,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var e={name:i.OS_MAP.iOS},n=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return n&&(e.version=n),e}},{test:[/macintosh/i],describe:function(t){var e=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),n=o.default.getMacOSVersionName(e),r={name:i.OS_MAP.MacOS,version:e};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var e=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:e}}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),n=o.default.getAndroidVersionName(e),r={name:i.OS_MAP.Android,version:e};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),n={name:i.OS_MAP.WebOS};return e&&e.length&&(n.version=e),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||o.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:i.OS_MAP.BlackBerry,version:e}}},{test:[/bada/i],describe:function(t){var e=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:i.OS_MAP.Bada,version:e}}},{test:[/tizen/i],describe:function(t){var e=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:i.OS_MAP.Tizen,version:e}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var e=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:i.OS_MAP.PlayStation4,version:e}}}];e.default=a,t.exports=e.default},94:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var e=o.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",n={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return e&&(n.model=e),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(t){var e=t.test(/ipod|iphone/i),n=t.test(/like (ipod|iphone)/i);return e&&!n},describe:function(t){var e=o.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var e=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&e>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];e.default=a,t.exports=e.default},95:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:i.ENGINE_MAP.Blink};var e=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:i.ENGINE_MAP.EdgeHTML,version:e}}},{test:[/trident/i],describe:function(t){var e={name:i.ENGINE_MAP.Trident},n=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){return t.test(/presto/i)},describe:function(t){var e={name:i.ENGINE_MAP.Presto},n=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=t.test(/gecko/i),n=t.test(/like gecko/i);return e&&!n},describe:function(t){var e={name:i.ENGINE_MAP.Gecko},n=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var e={name:i.ENGINE_MAP.WebKit},n=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}}];e.default=a,t.exports=e.default}})},56324:(t,e,n)=>{var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g,o=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();!function(t){!function(e){var n=void 0!==t&&t||"undefined"!=typeof self&&self||void 0!==n&&n,r="URLSearchParams"in n,o="Symbol"in n&&"iterator"in Symbol,i="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),a="FormData"in n,s="ArrayBuffer"in n;if(s)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&u.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function f(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function d(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function v(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function m(t){var e=new FileReader,n=v(e);return e.readAsArrayBuffer(t),n}function g(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:a&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:r&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():s&&i&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=g(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=g(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=d(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(m)}),this.text=function(){var t,e,n,r=d(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=v(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function A(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function w(t,e){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new p(e.headers),this.url=e.url||"",this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},y.call(_.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var E=[301,302,303,307,308];w.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function S(t,r){return new Promise((function(o,a){var u=new _(t,r);if(u.signal&&u.signal.aborted)return a(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function l(){c.abort()}c.onload=function(){var t,e,n={status:c.status,statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new p,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var r="response"in c?c.response:c.responseText;setTimeout((function(){o(new w(r,n))}),0)},c.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.onabort=function(){setTimeout((function(){a(new e.DOMException("Aborted","AbortError"))}),0)},c.open(u.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(u.url),!0),"include"===u.credentials?c.withCredentials=!0:"omit"===u.credentials&&(c.withCredentials=!1),"responseType"in c&&(i?c.responseType="blob":s&&u.headers.get("Content-Type")&&-1!==u.headers.get("Content-Type").indexOf("application/octet-stream")&&(c.responseType="arraybuffer")),!r||"object"!=typeof r.headers||r.headers instanceof p?u.headers.forEach((function(t,e){c.setRequestHeader(e,t)})):Object.getOwnPropertyNames(r.headers).forEach((function(t){c.setRequestHeader(t,f(r.headers[t]))})),u.signal&&(u.signal.addEventListener("abort",l),c.onreadystatechange=function(){4===c.readyState&&u.signal.removeEventListener("abort",l)}),c.send(void 0===u._bodyInit?null:u._bodyInit)}))}S.polyfill=!0,n.fetch||(n.fetch=S,n.Headers=p,n.Request=_,n.Response=w),e.Headers=p,e.Request=_,e.Response=w,e.fetch=S}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=r.fetch?r:o;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e},42067:(t,e,n)=>{e.UINT32=n(44402),e.UINT64=n(49117)},44402:function(t,e){var n;!function(r){o(Math.pow(36,5)),o(Math.pow(16,7)),o(Math.pow(10,9)),o(Math.pow(2,30)),o(36),o(16),o(10),o(2);function o(t,e){return this instanceof o?(this._low=0,this._high=0,this.remainder=null,void 0===e?a.call(this,t):"string"==typeof t?s.call(this,t,e):void i.call(this,t,e)):new o(t,e)}function i(t,e){return this._low=0|t,this._high=0|e,this}function a(t){return this._low=65535&t,this._high=t>>>16,this}function s(t,e){var n=parseInt(t,e||10);return this._low=65535&n,this._high=n>>>16,this}o.prototype.fromBits=i,o.prototype.fromNumber=a,o.prototype.fromString=s,o.prototype.toNumber=function(){return 65536*this._high+this._low},o.prototype.toString=function(t){return this.toNumber().toString(t||10)},o.prototype.add=function(t){var e=this._low+t._low,n=e>>>16;return n+=this._high+t._high,this._low=65535&e,this._high=65535&n,this},o.prototype.subtract=function(t){return this.add(t.clone().negate())},o.prototype.multiply=function(t){var e,n,r=this._high,o=this._low,i=t._high,a=t._low;return e=(n=o*a)>>>16,e+=r*a,e&=65535,e+=o*i,this._low=65535&n,this._high=65535&e,this},o.prototype.div=function(t){if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new o(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new o(0),this._low=1,this._high=0,this;for(var e=t.clone(),n=-1;!this.lt(e);)e.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._low=0,this._high=0;n>=0;n--)e.shiftRight(1),this.remainder.lt(e)||(this.remainder.subtract(e),n>=16?this._high|=1<>>16)&65535,this},o.prototype.equals=o.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},o.prototype.greaterThan=o.prototype.gt=function(t){return this._high>t._high||!(this._hight._low},o.prototype.lessThan=o.prototype.lt=function(t){return this._hight._high)&&this._low16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},o.prototype.shiftLeft=o.prototype.shiftl=function(t,e){return t>16?(this._high=this._low<>16-t,this._low=this._low<>>32-t,this._low=65535&e,this._high=e>>>16,this},o.prototype.rotateRight=o.prototype.rotr=function(t){var e=this._high<<16|this._low;return e=e>>>t|e<<32-t,this._low=65535&e,this._high=e>>>16,this},o.prototype.clone=function(){return new o(this._low,this._high)},void 0===(n=function(){return o}.apply(e,[]))||(t.exports=n)}()},49117:function(t,e){var n;!function(r){var o={16:a(Math.pow(16,5)),10:a(Math.pow(10,5)),2:a(Math.pow(2,5))},i={16:a(16),10:a(10),2:a(2)};function a(t,e,n,r){return this instanceof a?(this.remainder=null,"string"==typeof t?c.call(this,t,e):void 0===e?u.call(this,t):void s.apply(this,arguments)):new a(t,e,n,r)}function s(t,e,n,r){return void 0===n?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&e,this._a48=e>>>16,this):(this._a00=0|t,this._a16=0|e,this._a32=0|n,this._a48=0|r,this)}function u(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function c(t,e){e=e||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var n=o[e]||new a(Math.pow(e,5)),r=0,i=t.length;r=0&&(n.div(e),r[o]=n.remainder.toNumber().toString(t),n.gt(e));o--);return r[o-1]=n.toNumber().toString(t),r.join("")},a.prototype.add=function(t){var e=this._a00+t._a00,n=e>>>16,r=(n+=this._a16+t._a16)>>>16,o=(r+=this._a32+t._a32)>>>16;return o+=this._a48+t._a48,this._a00=65535&e,this._a16=65535&n,this._a32=65535&r,this._a48=65535&o,this},a.prototype.subtract=function(t){return this.add(t.clone().negate())},a.prototype.multiply=function(t){var e=this._a00,n=this._a16,r=this._a32,o=this._a48,i=t._a00,a=t._a16,s=t._a32,u=e*i,c=u>>>16,l=(c+=e*a)>>>16;c&=65535,l+=(c+=n*i)>>>16;var f=(l+=e*s)>>>16;return l&=65535,f+=(l+=n*a)>>>16,l&=65535,f+=(l+=r*i)>>>16,f+=e*t._a48,f&=65535,f+=n*s,f&=65535,f+=r*a,f&=65535,f+=o*i,this._a00=65535&u,this._a16=65535&c,this._a32=65535&l,this._a48=65535&f,this},a.prototype.div=function(t){if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new a(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new a(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var e=t.clone(),n=-1;!this.lt(e);)e.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;n>=0;n--)e.shiftRight(1),this.remainder.lt(e)||(this.remainder.subtract(e),n>=48?this._a48|=1<=32?this._a32|=1<=16?this._a16|=1<>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},a.prototype.equals=a.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},a.prototype.greaterThan=a.prototype.gt=function(t){return this._a48>t._a48||!(this._a48t._a32||!(this._a32t._a16||!(this._a16t._a00))},a.prototype.lessThan=a.prototype.lt=function(t){return this._a48t._a48)&&(this._a32t._a32)&&(this._a16t._a16)&&this._a00=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},a.prototype.shiftLeft=a.prototype.shiftl=function(t,e){return(t%=64)>=48?(this._a48=this._a00<=32?(t-=32,this._a48=this._a16<>16-t,this._a32=this._a00<=16?(t-=16,this._a48=this._a32<>16-t,this._a32=65535&(this._a16<>16-t),this._a16=this._a00<>16-t,this._a32=65535&(this._a32<>16-t),this._a16=65535&(this._a16<>16-t),this._a00=this._a00<=32){var e=this._a00;if(this._a00=this._a32,this._a32=e,e=this._a48,this._a48=this._a16,this._a16=e,32==t)return this;t-=32}var n=this._a48<<16|this._a32,r=this._a16<<16|this._a00,o=n<>>32-t,i=r<>>32-t;return this._a00=65535&i,this._a16=i>>>16,this._a32=65535&o,this._a48=o>>>16,this},a.prototype.rotateRight=a.prototype.rotr=function(t){if(0==(t%=64))return this;if(t>=32){var e=this._a00;if(this._a00=this._a32,this._a32=e,e=this._a48,this._a48=this._a16,this._a16=e,32==t)return this;t-=32}var n=this._a48<<16|this._a32,r=this._a16<<16|this._a00,o=n>>>t|r<<32-t,i=r>>>t|n<<32-t;return this._a00=65535&i,this._a16=i>>>16,this._a32=65535&o,this._a48=o>>>16,this},a.prototype.clone=function(){return new a(this._a00,this._a16,this._a32,this._a48)},void 0===(n=function(){return a}.apply(e,[]))||(t.exports=n)}()},33092:(t,e,n)=>{var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)}()},93212:t=>{"use strict";t.exports=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(o=r;0!=o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(i=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!t(e[a],n[a]))return!1}return!0}return e!=e&&n!=n}},72817:function(t){t.exports=function(){"use strict";function t(t){return Number.isInteger(t)&&t>=0}function e(t){this.name="ArgumentError",this.message=t}return function(n,r){if(r=r||{},"function"!=typeof n)throw new e("fetch must be a function");if("object"!=typeof r)throw new e("defaults must be an object");if(void 0!==r.retries&&!t(r.retries))throw new e("retries must be a positive integer");if(void 0!==r.retryDelay&&!t(r.retryDelay)&&"function"!=typeof r.retryDelay)throw new e("retryDelay must be a positive integer or a function returning a positive integer");if(void 0!==r.retryOn&&!Array.isArray(r.retryOn)&&"function"!=typeof r.retryOn)throw new e("retryOn property expects an array or function");var o={retries:3,retryDelay:1e3,retryOn:[]};return r=Object.assign(o,r),function(o,i){var a=r.retries,s=r.retryDelay,u=r.retryOn;if(i&&void 0!==i.retries){if(!t(i.retries))throw new e("retries must be a positive integer");a=i.retries}if(i&&void 0!==i.retryDelay){if(!t(i.retryDelay)&&"function"!=typeof i.retryDelay)throw new e("retryDelay must be a positive integer or a function returning a positive integer");s=i.retryDelay}if(i&&i.retryOn){if(!Array.isArray(i.retryOn)&&"function"!=typeof i.retryOn)throw new e("retryOn property expects an array or function");u=i.retryOn}return new Promise((function(t,e){var r=function(r){var s="undefined"!=typeof Request&&o instanceof Request?o.clone():o;n(s,i).then((function(n){if(Array.isArray(u)&&-1===u.indexOf(n.status))t(n);else if("function"==typeof u)try{return Promise.resolve(u(r,null,n)).then((function(e){e?c(r,null,n):t(n)})).catch(e)}catch(t){e(t)}else r{"use strict";var r=n(35959),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(t){return r.isMemo(t)?a:s[t.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(d){var o=p(n);o&&o!==d&&t(e,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(e),v=u(n),m=0;m{t.exports=n;var e=null;try{e=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(t){}function n(t,e,n){this.low=0|t,this.high=0|e,this.unsigned=!!n}function r(t){return!0===(t&&t.__isLong__)}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=r;var o={},i={};function a(t,e){var n,r,a;return e?(a=0<=(t>>>=0)&&t<256)&&(r=i[t])?r:(n=u(t,(0|t)<0?-1:0,!0),a&&(i[t]=n),n):(a=-128<=(t|=0)&&t<128)&&(r=o[t])?r:(n=u(t,t<0?-1:0,!1),a&&(o[t]=n),n)}function s(t,e){if(isNaN(t))return e?g:m;if(e){if(t<0)return g;if(t>=p)return w}else{if(t<=-d)return E;if(t+1>=d)return A}return t<0?s(-t,e).neg():u(t%h|0,t/h|0,e)}function u(t,e,r){return new n(t,e,r)}n.fromInt=a,n.fromNumber=s,n.fromBits=u;var c=Math.pow;function l(t,e,n){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return m;if("number"==typeof e?(n=e,e=!1):e=!!e,(n=n||10)<2||360)throw Error("interior hyphen");if(0===r)return l(t.substring(1),e,n).neg();for(var o=s(c(n,8)),i=m,a=0;a>>0:this.low},S.toNumber=function(){return this.unsigned?(this.high>>>0)*h+(this.low>>>0):this.high*h+(this.low>>>0)},S.toString=function(t){if((t=t||10)<2||36>>0).toString(t);if((i=u).isZero())return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}},S.getHighBits=function(){return this.high},S.getHighBitsUnsigned=function(){return this.high>>>0},S.getLowBits=function(){return this.low},S.getLowBitsUnsigned=function(){return this.low>>>0},S.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&0==(t&1<=0},S.isOdd=function(){return 1==(1&this.low)},S.isEven=function(){return 0==(1&this.low)},S.equals=function(t){return r(t)||(t=f(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},S.eq=S.equals,S.notEquals=function(t){return!this.eq(t)},S.neq=S.notEquals,S.ne=S.notEquals,S.lessThan=function(t){return this.comp(t)<0},S.lt=S.lessThan,S.lessThanOrEqual=function(t){return this.comp(t)<=0},S.lte=S.lessThanOrEqual,S.le=S.lessThanOrEqual,S.greaterThan=function(t){return this.comp(t)>0},S.gt=S.greaterThan,S.greaterThanOrEqual=function(t){return this.comp(t)>=0},S.gte=S.greaterThanOrEqual,S.ge=S.greaterThanOrEqual,S.compare=function(t){if(r(t)||(t=f(t)),this.eq(t))return 0;var e=this.isNegative(),n=t.isNegative();return e&&!n?-1:!e&&n?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},S.comp=S.compare,S.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(y)},S.neg=S.negate,S.add=function(t){r(t)||(t=f(t));var e=this.high>>>16,n=65535&this.high,o=this.low>>>16,i=65535&this.low,a=t.high>>>16,s=65535&t.high,c=t.low>>>16,l=0,h=0,p=0,d=0;return p+=(d+=i+(65535&t.low))>>>16,h+=(p+=o+c)>>>16,l+=(h+=n+s)>>>16,l+=e+a,u((p&=65535)<<16|(d&=65535),(l&=65535)<<16|(h&=65535),this.unsigned)},S.subtract=function(t){return r(t)||(t=f(t)),this.add(t.neg())},S.sub=S.subtract,S.multiply=function(t){if(this.isZero())return m;if(r(t)||(t=f(t)),e)return u(e.mul(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned);if(t.isZero())return m;if(this.eq(E))return t.isOdd()?E:m;if(t.eq(E))return this.isOdd()?E:m;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(v)&&t.lt(v))return s(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,o=65535&this.high,i=this.low>>>16,a=65535&this.low,c=t.high>>>16,l=65535&t.high,h=t.low>>>16,p=65535&t.low,d=0,g=0,y=0,b=0;return y+=(b+=a*p)>>>16,g+=(y+=i*p)>>>16,y&=65535,g+=(y+=a*h)>>>16,d+=(g+=o*p)>>>16,g&=65535,d+=(g+=i*h)>>>16,g&=65535,d+=(g+=a*l)>>>16,d+=n*p+o*h+i*l+a*c,u((y&=65535)<<16|(b&=65535),(d&=65535)<<16|(g&=65535),this.unsigned)},S.mul=S.multiply,S.divide=function(t){if(r(t)||(t=f(t)),t.isZero())throw Error("division by zero");var n,o,i;if(e)return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?u((this.unsigned?e.div_u:e.div_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?g:m;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return g;if(t.gt(this.shru(1)))return b;i=g}else{if(this.eq(E))return t.eq(y)||t.eq(_)?E:t.eq(E)?y:(n=this.shr(1).div(t).shl(1)).eq(m)?t.isNegative()?y:_:(o=this.sub(t.mul(n)),i=n.add(o.div(t)));if(t.eq(E))return this.unsigned?g:m;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=m}for(o=this;o.gte(t);){n=Math.max(1,Math.floor(o.toNumber()/t.toNumber()));for(var a=Math.ceil(Math.log(n)/Math.LN2),l=a<=48?1:c(2,a-48),h=s(n),p=h.mul(t);p.isNegative()||p.gt(o);)p=(h=s(n-=l,this.unsigned)).mul(t);h.isZero()&&(h=y),i=i.add(h),o=o.sub(p)}return i},S.div=S.divide,S.modulo=function(t){return r(t)||(t=f(t)),e?u((this.unsigned?e.rem_u:e.rem_s)(this.low,this.high,t.low,t.high),e.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},S.mod=S.modulo,S.rem=S.modulo,S.not=function(){return u(~this.low,~this.high,this.unsigned)},S.and=function(t){return r(t)||(t=f(t)),u(this.low&t.low,this.high&t.high,this.unsigned)},S.or=function(t){return r(t)||(t=f(t)),u(this.low|t.low,this.high|t.high,this.unsigned)},S.xor=function(t){return r(t)||(t=f(t)),u(this.low^t.low,this.high^t.high,this.unsigned)},S.shiftLeft=function(t){return r(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?u(this.low<>>32-t,this.unsigned):u(0,this.low<>>t|this.high<<32-t,this.high>>t,this.unsigned):u(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},S.shr=S.shiftRight,S.shiftRightUnsigned=function(t){if(r(t)&&(t=t.toInt()),0===(t&=63))return this;var e=this.high;return t<32?u(this.low>>>t|e<<32-t,e>>>t,this.unsigned):u(32===t?e:e>>>t-32,0,this.unsigned)},S.shru=S.shiftRightUnsigned,S.shr_u=S.shiftRightUnsigned,S.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},S.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},S.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},S.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},S.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,e>>>24,e>>>16&255,e>>>8&255,255&e]},n.fromBytes=function(t,e,r){return r?n.fromBytesLE(t,e):n.fromBytesBE(t,e)},n.fromBytesLE=function(t,e){return new n(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,e)},n.fromBytesBE=function(t,e){return new n(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],e)}},63638:function(t,e,n){"undefined"!=typeof navigator&&(t.exports=function(){"use strict";var t="http://www.w3.org/2000/svg",r="",o=!1,i=-999999,a=function(t){o=!!t},s=function(){return o},u=function(t){r=t},c=function(){return r};function l(t){return document.createElement(t)}function f(t,e){var n,r,o=t.length;for(n=0;n1?n[1]=1:n[1]<=0&&(n[1]=0),j(n[0],n[1],n[2])}function H(t,e){var n=U(255*t[0],255*t[1],255*t[2]);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),j(n[0],n[1],n[2])}function q(t,e){var n=U(255*t[0],255*t[1],255*t[2]);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),j(n[0],n[1],n[2])}!function(){var t,e,n=[];for(t=0;t<256;t+=1)e=t.toString(16),n[t]=1===e.length?"0"+e:e}();var W=function(t){g=!!t},Z=function(){return g},$=function(t){y=t},G=function(){return y},K=function(){return b},Y=function(t){k=t},Q=function(){return k},X=function(t){_=t};function J(e){return document.createElementNS(t,e)}function tt(t){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt(t)}var et=function(){var t,e,n=1,r=[],o={onmessage:function(){},postMessage:function(e){t({data:e})}},i={postMessage:function(t){o.onmessage({data:t})}};function a(e){if(window.Worker&&window.Blob&&s()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return t=e,o}function u(){e||(e=a((function(t){function e(){function t(e,n){var a,s,u,c,l,f,h=e.length;for(s=0;s=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)i(t[e].ks.k);else for(r=t[e].ks.k.length,n=0;nn[0]||!(n[0]>t[0])&&(t[1]>n[1]||!(n[1]>t[1])&&(t[2]>n[2]||!(n[2]>t[2])&&null))}var s,u=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function n(t){var n,r=t.length;for(n=0;n=0;n-=1)if("sh"===t[n].ty)if(t[n].ks.k.i)t[n].ks.k.c=t[n].closed;else for(o=t[n].ks.k.length,r=0;r500)&&(this._imageLoaded(),clearInterval(n)),e+=1}.bind(this),50)}function i(e){var n=r(e,this.assetsPath,this.path),o=J("image");A?this.testImageLoaded(o):o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",function(){i.img=t,this._imageLoaded()}.bind(this),!1),o.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(o):this._elementHelper.appendChild(o);var i={img:o,assetData:e};return i}function a(e){var n=r(e,this.assetsPath,this.path),o=l("img");o.crossOrigin="anonymous",o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",function(){i.img=t,this._imageLoaded()}.bind(this),!1),o.src=n;var i={img:o,assetData:e};return i}function s(t){var e={assetData:t},n=r(t,this.assetsPath,this.path);return et.loadData(n,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function u(t,e){var n;this.imagesLoadedCb=e;var r=t.length;for(n=0;nthis.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,n,r=this.animationData.layers,o=r.length,i=t.layers,a=i.length;for(n=0;nthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},ft.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},ft.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},ft.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},ft.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},ft.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},ft.prototype.getMarkerData=function(t){for(var e,n=0;n=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(n=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),n&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},ft.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},ft.prototype.setSegment=function(t,e){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFramee&&(n=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},ft.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===lt(t[0])){var n,r=t.length;for(n=0;n=0;n-=1)e[n].animation.destroy(t)}function C(t,e,n){var r,o=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),i=o.length;for(r=0;r0?n=u:e=u}while(Math.abs(s)>i&&++c=o?m(t,l,e,n):0===f?l:v(t,i,i+u,e,n)}},t}(),dt=function(){function t(t){return t.concat(v(t.length))}return{double:t}}(),vt=function(t,e,n){var r=0,o=t,i=v(o);function a(){return r?i[r-=1]:e()}function s(t){r===o&&(i=dt.double(i),o*=2),n&&n(t),i[r]=t,r+=1}return{newElement:a,release:s}},mt=function(){function t(){return{addedLength:0,percents:d("float32",Q()),lengths:d("float32",Q())}}return vt(8,t)}(),gt=function(){function t(){return{lengths:[],totalLength:0}}function e(t){var e,n=t.lengths.length;for(e=0;e-.001&&a<.001}function n(n,r,o,i,a,s,u,c,l){if(0===o&&0===s&&0===l)return e(n,r,i,a,u,c);var f,h=t.sqrt(t.pow(i-n,2)+t.pow(a-r,2)+t.pow(s-o,2)),p=t.sqrt(t.pow(u-n,2)+t.pow(c-r,2)+t.pow(l-o,2)),d=t.sqrt(t.pow(u-i,2)+t.pow(c-a,2)+t.pow(l-s,2));return(f=h>p?h>d?h-p-d:d-p-h:d>p?d-p-h:p-h-d)>-1e-4&&f<1e-4}var r=function(t,e,n,r){var o,i,a,s,u,c,l=Q(),f=0,h=[],p=[],d=mt.newElement();for(a=n.length,o=0;oa?-1:1,c=!0;c;)if(r[i]<=a&&r[i+1]>a?(s=(a-r[i])/(r[i+1]-r[i]),c=!1):i+=u,i<0||i>=o-1){if(i===o-1)return n[i];c=!1}return n[i]+(n[i+1]-n[i])*s}function l(e,n,r,o,i,a){var s=c(i,a),u=1-s;return[t.round(1e3*(u*u*u*e[0]+(s*u*u+u*s*u+u*u*s)*r[0]+(s*s*u+u*s*s+s*u*s)*o[0]+s*s*s*n[0]))/1e3,t.round(1e3*(u*u*u*e[1]+(s*u*u+u*s*u+u*u*s)*r[1]+(s*s*u+u*s*s+s*u*s)*o[1]+s*s*s*n[1]))/1e3]}var f=d("float32",8);function h(e,n,r,o,i,a,s){i<0?i=0:i>1&&(i=1);var u,l=c(i,s),h=c(a=a>1?1:a,s),p=e.length,d=1-l,v=1-h,m=d*d*d,g=l*d*d*3,y=l*l*d*3,b=l*l*l,_=d*d*v,A=l*d*v+d*l*v+d*d*h,w=l*l*v+d*l*h+l*d*h,E=l*l*h,S=d*v*v,C=l*v*v+d*h*v+d*v*h,T=l*h*v+d*h*h+l*v*h,k=l*h*h,O=v*v*v,L=h*v*v+v*h*v+v*v*h,x=h*h*v+v*h*h+h*v*h,P=h*h*h;for(u=0;u=i.t-r){o.h&&(o=i),p=0;break}if(i.t-r>t){p=v;break}v=b||t<_){var w=t>=b?A.points.length-1:0;for(u=A.points[w].point.length,s=0;s=C&&S=b?(n[0]=y[0],n[1]=y[1],n[2]=y[2]):t<=_?(n[0]=o.s[0],n[1]=o.s[1],n[2]=o.s[2]):St(n,Et(Ct(o.s),Ct(y),(t-_)/(b-_)));else for(v=0;v=b?c=1:t<_?c=0:(o.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[v]?h=a.__fnct[v]:(T=void 0===o.o.x[v]?o.o.x[0]:o.o.x[v],k=void 0===o.o.y[v]?o.o.y[0]:o.o.y[v],O=void 0===o.i.x[v]?o.i.x[0]:o.i.x[v],L=void 0===o.i.y[v]?o.i.y[0]:o.i.y[v],h=pt.getBezierEasing(T,k,O,L).get,a.__fnct[v]=h)):a.__fnct?h=a.__fnct:(T=o.o.x,k=o.o.y,O=o.i.x,L=o.i.y,h=pt.getBezierEasing(T,k,O,L).get,o.keyframeMetadata=h),c=h((t-_)/(b-_)))),y=i.s||o.e,x=1===o.h?o.s[v]:o.s[v]+(y[v]-o.s[v])*c,"multidimensional"===this.propType?n[v]=x:n=x}return e.lastIndex=p,n}function Et(t,e,n){var r,o,i,a,s,u=[],c=t[0],l=t[1],f=t[2],h=t[3],p=e[0],d=e[1],v=e[2],m=e[3];return(o=c*p+l*d+f*v+h*m)<0&&(o=-o,p=-p,d=-d,v=-v,m=-m),1-o>1e-6?(r=Math.acos(o),i=Math.sin(r),a=Math.sin((1-n)*r)/i,s=Math.sin(n*r)/i):(a=1-n,s=n),u[0]=a*c+s*p,u[1]=a*l+s*d,u[2]=a*f+s*v,u[3]=a*h+s*m,u}function St(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=Math.atan2(2*r*i-2*n*o,1-2*r*r-2*o*o),s=Math.asin(2*n*r+2*o*i),u=Math.atan2(2*n*i-2*r*o,1-2*n*n-2*o*o);t[0]=a/O,t[1]=s/O,t[2]=u/O}function Ct(t){var e=t[0]*O,n=t[1]*O,r=t[2]*O,o=Math.cos(e/2),i=Math.cos(n/2),a=Math.cos(r/2),s=Math.sin(e/2),u=Math.sin(n/2),c=Math.sin(r/2);return[s*u*a+o*i*c,s*i*a+o*u*c,o*u*a-s*i*c,o*i*a-s*u*c]}function Tt(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==_t&&(this._caching.lastFrame>=n&&t>=n||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r}return this._caching.lastFrame=t,this.pv}function kt(t){var e;if("unidimensional"===this.propType)e=t*this.mult,At(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var n=0,r=this.v.length;n1e-5&&(this.v[n]=e,this._mdf=!0),n+=1}function Ot(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(t=0;t=this._maxLength&&this.doubleArrayLength(),n){case"v":i=this.v;break;case"i":i=this.i;break;case"o":i=this.o;break;default:i=[]}(!i[r]||i[r]&&!o)&&(i[r]=Dt.newElement()),i[r][0]=t,i[r][1]=e},Ft.prototype.setTripleAt=function(t,e,n,r,o,i,a,s){this.setXYAt(t,e,"v",a,s),this.setXYAt(n,r,"o",a,s),this.setXYAt(o,i,"i",a,s)},Ft.prototype.reverse=function(){var t=new Ft;t.setPathData(this.c,this._length);var e=this.v,n=this.o,r=this.i,o=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),o=1);var i,a=this._length-1,s=this._length;for(i=o;i=p[p.length-1].t-this.offsetTime)r=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],i=!0;else{for(var d,v,m,g=h,y=p.length-1,b=!0;b&&(d=p[g],!((v=p[g+1]).t-this.offsetTime>t));)g=v.t-this.offsetTime)l=1;else if(tr&&e>r)||(this._caching.lastIndex=o0||t>-1e-6&&t<0?r(t*e)/e:t}function R(){var t=this.props;return"matrix("+N(t[0])+","+N(t[1])+","+N(t[4])+","+N(t[5])+","+N(t[12])+","+N(t[13])+")"}return function(){this.reset=o,this.rotate=i,this.rotateX=a,this.rotateY=s,this.rotateZ=u,this.skew=l,this.skewFromAxis=f,this.shear=c,this.scale=h,this.setTransform=p,this.translate=v,this.transform=m,this.multiply=g,this.applyToPoint=w,this.applyToX=E,this.applyToY=S,this.applyToZ=C,this.applyToPointArray=x,this.applyToTriplePoints=L,this.applyToPointStringified=P,this.toCSS=I,this.to2dCSS=R,this.clone=_,this.cloneFromProps=A,this.equals=b,this.inversePoints=O,this.inversePoint=k,this.getInverseMatrix=T,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=d("float32",16),this.reset()}}();function Ht(t){return Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(t)}var qt={},Wt="__[STANDALONE]__",Zt="__[ANIMATIONDATA]__",$t="";function Gt(t){u(t)}function Kt(){!0===Wt?ht.searchAnimations(Zt,Wt,$t):ht.searchAnimations()}function Yt(t){W(t)}function Qt(t){X(t)}function Xt(t){return!0===Wt&&(t.animationData=JSON.parse(Zt)),ht.loadAnimation(t)}function Jt(t){if("string"==typeof t)switch(t){case"high":Y(200);break;default:case"medium":Y(50);break;case"low":Y(10)}else!isNaN(t)&&t>1&&Y(t);Q()>=50?x(!1):x(!0)}function te(){return"undefined"!=typeof navigator}function ee(t,e){"expressions"===t&&$(e)}function ne(t){switch(t){case"propertyFactory":return Rt;case"shapePropertyFactory":return Ut;case"matrix":return zt;default:return null}}function re(){"complete"===document.readyState&&(clearInterval(ue),Kt())}function oe(t){for(var e=ie.split("&"),n=0;n=1?i.push({s:t-1,e:e-1}):(i.push({s:t,e:1}),i.push({s:0,e:e-1}));var a,s,u=[],c=i.length;for(a=0;ar+n||(l=s.s*o<=r?0:(s.s*o-r)/n,f=s.e*o>=r+n?1:(s.e*o-r)/n,u.push([l,f]))}return u.length||u.push([0,0]),u},fe.prototype.releasePathsData=function(t){var e,n=t.length;for(e=0;e1?1+i:this.s.v<0?0+i:this.s.v+i)>(n=this.e.v>1?1+i:this.e.v<0?0+i:this.e.v+i)){var a=e;e=n,n=a}e=1e-4*Math.round(1e4*e),n=1e-4*Math.round(1e4*n),this.sValue=e,this.eValue=n}else e=this.sValue,n=this.eValue;var s,u,c,l,f,h=this.shapes.length,p=0;if(n===e)for(o=0;o=0;o-=1)if((d=this.shapes[o]).shape._mdf){for((v=d.localShapeCollection).releaseShapes(),2===this.m&&h>1?(g=this.calculateShapeEdges(e,n,d.totalShapeLength,_,p),_+=d.totalShapeLength):g=[[y,b]],u=g.length,s=0;s=1?m.push({s:d.totalShapeLength*(y-1),e:d.totalShapeLength*(b-1)}):(m.push({s:d.totalShapeLength*y,e:d.totalShapeLength}),m.push({s:0,e:d.totalShapeLength*(b-1)}));var A=this.addShapes(d,m[0]);if(m[0].s!==m[0].e){if(m.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var w=A.pop();this.addPaths(A,v),A=this.addShapes(d,m[1],w)}else this.addPaths(A,v),A=this.addShapes(d,m[1]);this.addPaths(A,v)}}d.shape.paths=v}}},fe.prototype.addPaths=function(t,e){var n,r=t.length;for(n=0;ne.e){n.c=!1;break}e.s<=d&&e.e>=d+a.addedLength?(this.addSegment(h[r].v[o-1],h[r].o[o-1],h[r].i[o],h[r].v[o],n,s,m),m=!1):(c=bt.getNewSegment(h[r].v[o-1],h[r].v[o],h[r].o[o-1],h[r].i[o],(e.s-d)/a.addedLength,(e.e-d)/a.addedLength,u[o-1]),this.addSegmentFromArray(c,n,s,m),m=!1,n.c=!1),d+=a.addedLength,s+=1}if(h[r].c&&u.length){if(a=u[o-1],d<=e.e){var g=u[o-1].addedLength;e.s<=d&&e.e>=d+g?(this.addSegment(h[r].v[o-1],h[r].o[o-1],h[r].i[0],h[r].v[0],n,s,m),m=!1):(c=bt.getNewSegment(h[r].v[o-1],h[r].v[0],h[r].o[o-1],h[r].i[0],(e.s-d)/g,(e.e-d)/g,u[o-1]),this.addSegmentFromArray(c,n,s,m),m=!1,n.c=!1)}else n.c=!1;d+=a.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[l][0],n.v[l][1],"i",l),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),d>e.e)break;r=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),o=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,o=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],o=[];var i=this.px,a=this.py;i._caching.lastFrame+i.offsetTime<=i.keyframes[0].t?(r[0]=i.getValueAtTime((i.keyframes[0].t+.01)/n,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),o[0]=i.getValueAtTime(i.keyframes[0].t/n,0),o[1]=a.getValueAtTime(a.keyframes[0].t/n,0)):i._caching.lastFrame+i.offsetTime>=i.keyframes[i.keyframes.length-1].t?(r[0]=i.getValueAtTime(i.keyframes[i.keyframes.length-1].t/n,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),o[0]=i.getValueAtTime((i.keyframes[i.keyframes.length-1].t-.01)/n,0),o[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0)):(r=[i.pv,a.pv],o[0]=i.getValueAtTime((i._caching.lastFrame+i.offsetTime-.01)/n,i.offsetTime),o[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime))}else r=o=t;this.v.rotate(-Math.atan2(r[1]-o[1],r[0]-o[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function r(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function o(){}function i(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function a(t,e,n){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new zt,this.pre=new zt,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||t),e.p&&e.p.s?(this.px=Rt.getProp(t,e.p.x,0,0,this),this.py=Rt.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=Rt.getProp(t,e.p.z,0,0,this))):this.p=Rt.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=Rt.getProp(t,e.rx,0,O,this),this.ry=Rt.getProp(t,e.ry,0,O,this),this.rz=Rt.getProp(t,e.rz,0,O,this),e.or.k[0].ti){var r,o=e.or.k.length;for(r=0;rr){var o=r;r=n,n=o}for(var i=_e(3*t.a[e],2*t.b[e],t.c[e]),a=0;a0&&i[a]<1){var s=t.point(i[a])[e];sr&&(r=s)}return{min:n,max:r}}function Ce(t,e,n){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+n)/2,t1:e,t2:n}}function Te(t){var e=t.bez.split(.5);return[Ce(e[0],t.t1,t.t),Ce(e[1],t.t,t.t2)]}function ke(t,e){return 2*Math.abs(t.cx-e.cx)=i||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r)o.push([t.t,e.t]);else{var a=Te(t),s=Te(e);Oe(a[0],s[0],n+1,r,o,i),Oe(a[0],s[1],n+1,r,o,i),Oe(a[1],s[0],n+1,r,o,i),Oe(a[1],s[1],n+1,r,o,i)}}function Le(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function xe(t,e,n,r){var o=[t[0],t[1],1],i=[e[0],e[1],1],a=[n[0],n[1],1],s=[r[0],r[1],1],u=Le(Le(o,i),Le(a,s));return ge(u[2])?null:[u[0]/u[2],u[1]/u[2]]}function Pe(t,e,n){return[t[0]+Math.cos(e)*n,t[1]-Math.sin(e)*n]}function Ie(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function Ne(t,e){return me(t[0],e[0])&&me(t[1],e[1])}function Re(){}function Me(t,e,n,r,o,i,a){var s=n-Math.PI/2,u=n+Math.PI/2,c=e[0]+Math.cos(n)*r*o,l=e[1]-Math.sin(n)*r*o;t.setTripleAt(c,l,c+Math.cos(s)*i,l-Math.sin(s)*i,c+Math.cos(u)*a,l-Math.sin(u)*a,t.length())}function De(t,e){var n=[e[0]-t[0],e[1]-t[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function Fe(t,e){var n=0===e?t.length()-1:e-1,r=(e+1)%t.length(),o=De(t.v[n],t.v[r]);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function Ve(t,e,n,r,o,i,a){var s=Fe(e,n),u=e.v[n%e._length],c=e.v[0===n?e._length-1:n-1],l=e.v[(n+1)%e._length],f=2===i?Math.sqrt(Math.pow(u[0]-c[0],2)+Math.pow(u[1]-c[1],2)):0,h=2===i?Math.sqrt(Math.pow(u[0]-l[0],2)+Math.pow(u[1]-l[1],2)):0;Me(t,e.v[n%e._length],s,a,r,h/(2*(o+1)),f/(2*(o+1)),i)}function Be(t,e,n,r,o,i){for(var a=0;a1&&e.length>1&&(o=He(t[0],e[e.length-1]))?[[t[0].split(o[0])[0]],[e[e.length-1].split(o[1])[1]]]:[n,r]}function We(t){for(var e,n=1;n1&&(e=qe(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function Ze(t,e){var n,r,o,i,a=t.inflectionPoints();if(0===a.length)return[Ue(t,e)];if(1===a.length||me(a[1],1))return n=(o=t.split(a[0]))[0],r=o[1],[Ue(n,e),Ue(r,e)];n=(o=t.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return i=(o=o[1].split(s))[0],r=o[1],[Ue(n,e),Ue(i,e),Ue(r,e)]}function $e(){}function Ge(t){for(var e=t.fStyle?t.fStyle.split(" "):[],n="normal",r="normal",o=e.length,i=0;i0;)n-=1,this._elements.unshift(e[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},de.prototype.resetElements=function(t){var e,n=t.length;for(e=0;e0?Math.floor(h):Math.ceil(h),v=this.pMatrix.props,m=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,_=0;if(h>0){for(;_d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),_-=p)}for(r=1===this.data.m?0:this._currentCopies-1,o=1===this.data.m?1:-1,i=this._currentCopies;i;){if(b=(n=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==_){for((0!==r&&1===o||r!==this._currentCopies-1&&-1===o)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),y=0;y0&&r<1?[e]:[]:[e-r,e+r].filter((function(t){return t>0&&t<1}))},Ee.prototype.split=function(t){if(t<=0)return[we(this.points[0]),this];if(t>=1)return[this,we(this.points[this.points.length-1])];var e=be(this.points[0],this.points[1],t),n=be(this.points[1],this.points[2],t),r=be(this.points[2],this.points[3],t),o=be(e,n,t),i=be(n,r,t),a=be(o,i,t);return[new Ee(this.points[0],e,o,a,!0),new Ee(a,i,r,this.points[3],!0)]},Ee.prototype.bounds=function(){return{x:Se(this,0),y:Se(this,1)}},Ee.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},Ee.prototype.intersections=function(t,e,n){void 0===e&&(e=2),void 0===n&&(n=7);var r=[];return Oe(Ce(this,0,1),Ce(t,0,1),0,e,r,n),r},Ee.shapeSegment=function(t,e){var n=(e+1)%t.length();return new Ee(t.v[e],t.o[e],t.i[n],t.v[n],!0)},Ee.shapeSegmentInverted=function(t,e){var n=(e+1)%t.length();return new Ee(t.v[n],t.i[n],t.o[e],t.v[e],!0)},f([le],Re),Re.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=Rt.getProp(t,e.s,0,null,this),this.frequency=Rt.getProp(t,e.r,0,null,this),this.pointsType=Rt.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},Re.prototype.processPath=function(t,e,n,r){var o=t._length,i=Vt.newElement();if(i.c=t.c,t.c||(o-=1),0===o)return i;var a=-1,s=Ee.shapeSegment(t,0);Ve(i,t,0,e,n,r,a);for(var u=0;u=0;i-=1)s=Ee.shapeSegmentInverted(t,i),c.push(Ze(s,e));c=We(c);var l=null,f=null;for(i=0;i0&&(u=!1),u){var c=l("style");c.setAttribute("f-forigin",r[n].fOrigin),c.setAttribute("f-origin",r[n].origin),c.setAttribute("f-family",r[n].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",e.appendChild(c)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),s=0;s=55296&&n<=56319){var r=t.charCodeAt(1);r>=56320&&r<=57343&&(e=1024*(n-55296)+r-56320+65536)}return e}function E(t,e){var n=t.toString(16)+e.toString(16);return-1!==h.indexOf(n)}function S(t){return t===u}function C(t){return t===s}function T(t){var e=w(t);return e>=c&&e<=f}function k(t){return T(t.substr(0,2))&&T(t.substr(2,2))}function O(t){return-1!==n.indexOf(t)}function L(t,e){var n=w(t.substr(e,2));if(n!==r)return!1;var s=0;for(e+=2;s<5;){if((n=w(t.substr(e,2)))a)return!1;s+=1,e+=2}return w(t.substr(e,2))===o}function x(){this.isLoaded=!0}var P=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};P.isModifier=E,P.isZeroWidthJoiner=S,P.isFlagEmoji=k,P.isRegionalCode=T,P.isCombinedCharacter=O,P.isRegionalFlag=L,P.isVariationSelector=C,P.BLACK_FLAG_CODE_POINT=r;var I={addChars:y,addFonts:g,getCharData:b,getFontByName:A,measureText:_,checkLoadedFonts:v,setIsLoaded:x};return P.prototype=I,P}();function Ye(t){this.animationData=t}function Qe(t){return new Ye(t)}function Xe(){}Ye.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},Xe.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},vn.prototype.show=function(){},vn.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},vn.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},vn.prototype.resume=function(){this._canPlay=!0},vn.prototype.setRate=function(t){this.audio.rate(t)},vn.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},vn.prototype.getBaseElement=function(){return null},vn.prototype.destroy=function(){},vn.prototype.sourceRectAtTime=function(){},vn.prototype.initExpressions=function(){},mn.prototype.checkLayers=function(t){var e,n,r=this.layers.length;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(n=this.layers[e]).ip-n.st<=t-this.layers[e].st&&n.op-n.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},mn.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},mn.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},mn.prototype.createAudio=function(t){return new vn(t,this.globalData,this)},mn.prototype.createFootage=function(t){return new dn(t,this.globalData,this)},mn.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(_,"url("+c()+"#"+y+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}yn.prototype={initTransform:function(){var t=new zt;this.finalTransform={mProp:this.data.ks?pe.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n1&&(i+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),n.lastPath!==i){var a="";n.elem&&(e.c&&(a=t.inv?this.solidPath+i:i),n.elem.setAttribute("d",a)),n.lastPath=i}},bn.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var _n,An=function(){var t={};function e(t,e){var n=J("filter");return n.setAttribute("id",t),!0!==e&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function n(){var t=J("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}return t.createFilter=e,t.createAlphaToLuminanceFilter=n,t}(),wn=(_n={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(_n.maskType=!1),/firefox/i.test(navigator.userAgent)&&(_n.svgLumaHidden=!1),_n),En={},Sn="filter_result_";function Cn(t){var e,n,r="SourceGraphic",o=t.data.ef?t.data.ef.length:0,i=B(),a=An.createFilter(i,!0),s=0;for(this.filters=[],e=0;e=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,n=0,r=e.length;n.01)return!1;n+=1}return!0},jn.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t0;)u=r.transformers[d].mProps._mdf||u,p-=1,d-=1;if(u)for(p=m-r.styles[l].lvl,d=r.transformers.length-1;p>0;)h.multiply(r.transformers[d].mProps.v),p-=1,d-=1}else h=t;if(a=(f=r.sh.paths)._length,u){for(s="",i=0;i=1?y=.99:y<=-1&&(y=-.99);var b=s*y,_=Math.cos(g+e.a.v)*b+l[0],A=Math.sin(g+e.a.v)*b+l[1];u.setAttribute("fx",_),u.setAttribute("fy",A),c&&!e.g._collapsable&&(e.of.setAttribute("fx",_),e.of.setAttribute("fy",A))}}function c(t,e,n){var r=e.style,o=e.d;o&&(o._mdf||n)&&o.dashStr&&(r.pElem.setAttribute("stroke-dasharray",o.dashStr),r.pElem.setAttribute("stroke-dashoffset",o.dashoffset[0])),e.c&&(e.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+S(e.c.v[0])+","+S(e.c.v[1])+","+S(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:n}}();function $n(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,n),this.prevViewData=[]}function Gn(t,e,n,r,o,i){this.o=t,this.sw=e,this.sc=n,this.fc=r,this.m=o,this.p=i,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!r,m:!0,p:!0}}function Kn(t,e){this._frameId=i,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}f([hn,yn,Tn,Pn,kn,pn,On],$n),$n.prototype.initSecondaryElement=function(){},$n.prototype.identityMatrix=new zt,$n.prototype.buildExpressionInterface=function(){},$n.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},$n.prototype.filterUniqueShapes=function(){var t,e,n,r,o=this.shapes.length,i=this.stylesList.length,a=[],s=!1;for(n=0;n1&&s&&this.setShapesAsAnimated(a)}},$n.prototype.setShapesAsAnimated=function(t){var e,n=t.length;for(e=0;e=0;s-=1){if((h=this.searchProcessedElement(t[s]))?e[s]=n[h-1]:t[s]._render=a,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty||"no"===t[s].ty)h?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],o),t[s]._render&&e[s].style.pElem.parentNode!==r&&r.appendChild(e[s].style.pElem),v.push(e[s].style);else if("gr"===t[s].ty){if(h)for(c=e[s].it.length,u=0;u1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Kn.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},Kn.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var o=this.effectsSequence.length,i=t||this.data.d.k[this.keysIndex].s;for(r=0;re);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Kn.prototype.buildFinalText=function(t){for(var e,n,r=[],o=0,i=t.length,a=!1,s=!1,u="";o=55296&&e<=56319?Ke.isRegionalFlag(t,o)?u=t.substr(o,14):(n=t.charCodeAt(o+1))>=56320&&n<=57343&&(Ke.isModifier(e,n)?(u=t.substr(o,2),a=!0):u=Ke.isFlagEmoji(t.substr(o,4))?t.substr(o,4):t.substr(o,2)):e>56319?(n=t.charCodeAt(o+1),Ke.isVariationSelector(e)&&(a=!0)):Ke.isZeroWidthJoiner(e)&&(a=!0,s=!0),a?(r[r.length-1]+=u,a=!1):r.push(u),o+=u.length;return r},Kn.prototype.completeTextData=function(t){t.__complete=!0;var e,n,r,o,i,a,s,u=this.elem.globalData.fontManager,c=this.data,l=[],f=0,h=c.m.g,p=0,d=0,v=0,m=[],g=0,y=0,b=u.getFontByName(t.f),_=0,A=Ge(b);t.fWeight=A.weight,t.fStyle=A.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),n=t.finalText.length,t.finalLineHeight=t.lh;var w,E=t.tr/1e3*t.finalSize;if(t.sz)for(var S,C,T=!0,k=t.sz[0],O=t.sz[1];T;){S=0,g=0,n=(C=this.buildFinalText(t.t)).length,E=t.tr/1e3*t.finalSize;var L=-1;for(e=0;ek&&" "!==C[e]?(-1===L?n+=1:e=L,S+=t.finalLineHeight||1.2*t.finalSize,C.splice(e,L===e?1:0,"\r"),L=-1,g=0):(g+=_,g+=E);S+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&Oy?g:y,g=-2*E,o="",r=!0,v+=1):o=x,u.chars?(s=u.getCharData(x,b.fStyle,u.getFontByName(t.f).fFamily),_=r?0:s.w*t.finalSize/100):_=u.measureText(o,t.f,t.finalSize)," "===x?P+=_+E:(g+=_+E+P,P=0),l.push({l:_,an:_,add:p,n:r,anIndexes:[],val:o,line:v,animatorJustifyOffset:0}),2==h){if(p+=_,""===o||" "===o||e===n-1){for(""!==o&&" "!==o||(p-=_);d<=e;)l[d].an=p,l[d].ind=f,l[d].extra=_,d+=1;f+=1,p=0}}else if(3==h){if(p+=_,""===o||e===n-1){for(""===o&&(p-=_);d<=e;)l[d].an=p,l[d].ind=f,l[d].extra=_,d+=1;p=0,f+=1}}else l[f].ind=f,l[f].extra=0,f+=1;if(t.l=l,y=g>y?g:y,m.push(g),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=m;var I,N,R,M,D=c.a;a=D.length;var F=[];for(i=0;i0?o=this.ne.v/100:i=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var u=pt.getBezierEasing(o,i,a,s).get,c=0,l=this.finalS,f=this.finalE,h=this.data.sh;if(2===h)c=u(c=f===l?r>=f?1:0:t(0,e(.5/(f-l)+(r-l)/(f-l),1)));else if(3===h)c=u(c=f===l?r>=f?0:1:1-t(0,e(.5/(f-l)+(r-l)/(f-l),1)));else if(4===h)f===l?c=0:(c=t(0,e(.5/(f-l)+(r-l)/(f-l),1)))<.5?c*=2:c=1-2*(c-.5),c=u(c);else if(5===h){if(f===l)c=0;else{var p=f-l,d=-p/2+(r=e(t(0,r+.5-l),f-l)),v=p/2;c=Math.sqrt(1-d*d/(v*v))}c=u(c)}else 6===h?(f===l?c=0:(r=e(t(0,r+.5-l),f-l),c=(1+Math.cos(Math.PI+2*Math.PI*r/(f-l)))/2),c=u(c)):(r>=n(l)&&(c=t(0,e(r-l<0?e(f,1)-(l-r):f-r,1))),c=u(c));if(100!==this.sm.v){var m=.01*this.sm.v;0===m&&(m=1e-8);var g=.5-.5*m;c1&&(c=1)}return c*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/e,r=this.s.v/e+n,o=this.e.v/e+n;if(r>o){var i=r;r=o,o=i}this.finalS=r,this.finalE=o}},f([Mt],r),{getTextSelectorProp:o}}();function Qn(t,e,n){var r={propType:!1},o=Rt.getProp,i=e.a;this.a={r:i.r?o(t,i.r,0,O,n):r,rx:i.rx?o(t,i.rx,0,O,n):r,ry:i.ry?o(t,i.ry,0,O,n):r,sk:i.sk?o(t,i.sk,0,O,n):r,sa:i.sa?o(t,i.sa,0,O,n):r,s:i.s?o(t,i.s,1,.01,n):r,a:i.a?o(t,i.a,1,0,n):r,o:i.o?o(t,i.o,0,.01,n):r,p:i.p?o(t,i.p,1,0,n):r,sw:i.sw?o(t,i.sw,0,0,n):r,sc:i.sc?o(t,i.sc,1,0,n):r,fc:i.fc?o(t,i.fc,1,0,n):r,fh:i.fh?o(t,i.fh,0,0,n):r,fs:i.fs?o(t,i.fs,0,.01,n):r,fb:i.fb?o(t,i.fb,0,.01,n):r,t:i.t?o(t,i.t,0,0,n):r},this.s=Yn.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function Xn(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=v(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function Jn(){}Xn.prototype.searchProperties=function(){var t,e,n=this._textData.a.length,r=Rt.getProp;for(t=0;t=s+lt||!d?(y=(s+lt-c)/u.partialLength,V=p.point[0]+(u.point[0]-p.point[0])*y,B=p.point[1]+(u.point[1]-p.point[1])*y,S.translate(-A[0]*k[o].an*.005,-A[1]*M*.01),l=!1):d&&(c+=u.partialLength,(f+=1)>=d.length&&(f=0,v[h+=1]?d=v[h].points:_.v.c?(f=0,d=v[h=0].points):(c-=u.partialLength,d=null)),d&&(p=u,m=(u=d[f]).partialLength));F=k[o].an/2-k[o].add,S.translate(-F,0,0)}else F=k[o].an/2-k[o].add,S.translate(-F,0,0),S.translate(-A[0]*k[o].an*.005,-A[1]*M*.01,0);for(P=0;Pt?this.textSpans[t].span:J(u?"g":"text"),y<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,u){var b=J("g");a.appendChild(b),this.textSpans[t].childSpan=b}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),f&&(s[t].n&&(h=-m,p+=n.yOffset,p+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(n,c,s[t].line,h,p),h+=s[t].l||0,h+=m),u){var _;if(1===(g=this.globalData.fontManager.getCharData(n.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)_=new ar(g.data,this.globalData,this);else{var A=tr;g.data&&g.data.shapes&&(A=this.buildShapeData(g.data,n.finalSize)),_=new $n(A,this.globalData,this)}if(this.textSpans[t].glyph){var w=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(w.layerElement),w.destroy()}this.textSpans[t].glyph=_,_._debug=!0,_.prepareFrame(0),_.renderFrame(),this.textSpans[t].childSpan.appendChild(_.layerElement),1===g.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else f&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}f&&a&&a.setAttribute("d",l)}else{var E=this.textContainer,S="start";switch(n.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}E.setAttribute("text-anchor",S),E.setAttribute("letter-spacing",m);var C=this.buildTextContents(n.finalText);for(e=C.length,p=n.ps?n.ps[1]+n.ascent:0,t=0;t=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ir.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t{"use strict";var r=n(30758);n(8143);function o(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||a,u=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,c=/\/\*[^]*?\*\/| +/g,l=/\n+/g,f=(t,e)=>{let n="",r="",o="";for(let i in t){let a=t[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?f(a,i):i+"{"+f(a,"k"==i[1]?"":e)+"}":"object"==typeof a?r+=f(a,e?e.replace(/([^,])+/g,(t=>i.replace(/(^:.*)|([^,])+/g,(e=>/&/.test(e)?e.replace(/&/g,t):t?t+" "+e:e)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=f.p?f.p(i,a):i+":"+a+";")}return n+(e&&o?e+"{"+o+"}":o)+r},h={},p=t=>{if("object"==typeof t){let e="";for(let n in t)e+=n+p(t[n]);return e}return t},d=(t,e,n,r,o)=>{let i=p(t),a=h[i]||(h[i]=(t=>{let e=0,n=11;for(;e>>0;return"go"+n})(i));if(!h[a]){let e=i!==t?t:(t=>{let e,n,r=[{}];for(;e=u.exec(t.replace(c,""));)e[4]?r.shift():e[3]?(n=e[3].replace(l," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][e[1]]=e[2].replace(l," ").trim();return r[0]})(t);h[a]=f(o?{["@keyframes "+a]:e}:e,n?"":"."+a)}let s=n&&h.g?h.g:null;return n&&(h.g=h[a]),((t,e,n,r)=>{r?e.data=e.data.replace(r,t):-1===e.data.indexOf(t)&&(e.data=n?t+e.data:e.data+t)})(h[a],e,r,s),a},v=(t,e,n)=>t.reduce(((t,r,o)=>{let i=e[o];if(i&&i.call){let t=i(n),e=t&&t.props&&t.props.className||/^go/.test(t)&&t;i=e?"."+e:t&&"object"==typeof t?t.props?"":f(t,""):!1===t?"":t}return t+r+(null==i?"":i)}),"");function m(t){let e=this||{},n=t.call?t(e.p):t;return d(n.unshift?n.raw?v(n,[].slice.call(arguments,1),e.p):n.reduce(((t,n)=>Object.assign(t,n&&n.call?n(e.p):n)),{}):n,s(e.target),e.g,e.o,e.k)}m.bind({g:1}),m.bind({k:1});function g(t,e){for(var n=0;n=0||(o[n]=t[n]);return o}var w="@media (max-width:599.95px)",E="@media (min-width:600px)",S="unmounted",C="exited",T="entering",k="entered",O="exiting",L=function(t){function e(e){var n;n=t.call(this,e)||this;var r,o=e.appear;return n.appearStatus=null,e.in?o?(r=C,n.appearStatus=T):r=k:r=e.unmountOnExit||e.mountOnEnter?S:C,n.state={status:r},n.nextCallback=null,n}_(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===S?{status:C}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==T&&n!==k&&(e=T):n!==T&&n!==k||(e=O)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t=this.props.timeout,e=t,n=t;return null!=t&&"number"!=typeof t&&"string"!=typeof t&&(n=t.exit,e=t.enter),{exit:n,enter:e}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),e===T?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===C&&this.setState({status:S})},n.performEnter=function(t){var e=this,n=this.props.enter,r=t,o=this.getTimeouts();t||n?(this.props.onEnter&&this.props.onEnter(this.node,r),this.safeSetState({status:T},(function(){e.props.onEntering&&e.props.onEntering(e.node,r),e.onTransitionEnd(o.enter,(function(){e.safeSetState({status:k},(function(){e.props.onEntered&&e.props.onEntered(e.node,r)}))}))}))):this.safeSetState({status:k},(function(){e.props.onEntered&&e.props.onEntered(e.node,r)}))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts();e?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:O},(function(){t.props.onExiting&&t.props.onExiting(t.node),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:C},(function(){t.props.onExited&&t.props.onExited(t.node)}))}))}))):this.safeSetState({status:C},(function(){t.props.onExited&&t.props.onExited(t.node)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(){n&&(n=!1,e.nextCallback=null,t())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=null==t&&!this.props.addEndListener;this.node&&!n?(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if(t===S)return null;var e=this.props;return(0,e.children)(t,A(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},y(e,[{key:"node",get:function(){var t,e=null===(t=this.props.nodeRef)||void 0===t?void 0:t.current;if(!e)throw new Error("notistack - Custom snackbar is not refForwarding");return e}}]),e}(r.Component);function x(){}function P(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function I(t,e){return(0,r.useMemo)((function(){return null==t&&null==e?null:function(n){P(t,n),P(e,n)}}),[t,e])}function N(t){var e=t.timeout,n=t.style,r=void 0===n?{}:n,o=t.mode;return{duration:"object"==typeof e?e[o]||0:e,easing:r.transitionTimingFunction,delay:r.transitionDelay}}L.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x,onEntering:x,onEntered:x,onExit:x,onExiting:x,onExited:x};var R="cubic-bezier(0.4, 0, 0.2, 1)",M="cubic-bezier(0.0, 0, 0.2, 1)",D="cubic-bezier(0.4, 0, 0.6, 1)",F=function(t){t.scrollTop=t.scrollTop},V=function(t){return Math.round(t)+"ms"};function B(t,e){void 0===t&&(t=["all"]);var n=e||{},r=n.duration,o=void 0===r?300:r,i=n.easing,a=void 0===i?R:i,s=n.delay,u=void 0===s?0:s;return(Array.isArray(t)?t:[t]).map((function(t){var e="string"==typeof o?o:V(o),n="string"==typeof u?u:V(u);return t+" "+e+" "+a+" "+n})).join(",")}function j(t){var e=function(t){return t&&t.ownerDocument||document}(t);return e.defaultView||window}function U(t,e){if(e){var n=function(t,e){var n,r=e.getBoundingClientRect(),o=j(e);if(e.fakeTransform)n=e.fakeTransform;else{var i=o.getComputedStyle(e);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,s=0;if(n&&"none"!==n&&"string"==typeof n){var u=n.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),s=parseInt(u[5],10)}switch(t){case"left":return"translateX("+(o.innerWidth+a-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-a)+"px)";case"up":return"translateY("+(o.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}(t,e);n&&(e.style.webkitTransform=n,e.style.transform=n)}}var z=(0,r.forwardRef)((function(t,e){var n=t.children,o=t.direction,i=void 0===o?"down":o,a=t.in,s=t.style,u=t.timeout,c=void 0===u?0:u,l=t.onEnter,f=t.onEntered,h=t.onExit,p=t.onExited,d=A(t,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),v=(0,r.useRef)(null),m=I(n.ref,v),g=I(m,e),y=(0,r.useCallback)((function(){v.current&&U(i,v.current)}),[i]);return(0,r.useEffect)((function(){if(!a&&"down"!==i&&"right"!==i){var t=function(t,e){var n;function r(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a{"use strict";var r=n(62985);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2736:(t,e,n)=>{t.exports=n(16186)()},62985:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},69443:(t,e,n)=>{"use strict";t.exports=n(41487)},41487:(t,e,n)=>{"use strict";var r=e;function o(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(65394),r.BufferWriter=n(56531),r.Reader=n(69042),r.BufferReader=n(44563),r.util=n(54061),r.rpc=n(10166),r.roots=n(672),r.configure=o,o()},69042:(t,e,n)=>{"use strict";t.exports=u;var r,o=n(54061),i=o.LongBits,a=o.utf8;function s(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function u(t){this.buf=t,this.pos=0,this.len=t.length}var c,l="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new u(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new u(t);throw Error("illegal buffer")},f=function(){return o.Buffer?function(t){return(u.create=function(t){return o.Buffer.isBuffer(t)?new r(t):l(t)})(t)}:l};function h(){var t=new i(0,0),e=0;if(!(this.len-this.pos>4)){for(;e<3;++e){if(this.pos>=this.len)throw s(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;if(e=0,this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw s(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function p(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw s(this,8);return new i(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return p(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|p(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},u.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},u.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw s(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var r=o.Buffer;return r?r.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)},u.prototype.string=function(){var t=this.bytes();return a.read(t,0,t.length)},u.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw s(this,t);this.pos+=t}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},u._configure=function(t){r=t,u.create=f(),r._configure();var e=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return h.call(this)[e](!1)},uint64:function(){return h.call(this)[e](!0)},sint64:function(){return h.call(this).zzDecode()[e](!1)},fixed64:function(){return d.call(this)[e](!0)},sfixed64:function(){return d.call(this)[e](!1)}})}},44563:(t,e,n)=>{"use strict";t.exports=i;var r=n(69042);(i.prototype=Object.create(r.prototype)).constructor=i;var o=n(54061);function i(t){r.call(this,t)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},i._configure()},672:t=>{"use strict";t.exports={}},10166:(t,e,n)=>{"use strict";e.Service=n(22182)},22182:(t,e,n)=>{"use strict";t.exports=o;var r=n(54061);function o(t,e,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(n)}(o.prototype=Object.create(r.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function t(e,n,o,i,a){if(!i)throw TypeError("request must be specified");var s=this;if(!a)return r.asPromise(t,s,e,n,o,i);if(s.rpcImpl)try{return s.rpcImpl(e,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(t,n){if(t)return s.emit("error",t,e),a(t);if(null!==n){if(!(n instanceof o))try{n=o[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(t){return s.emit("error",t,e),a(t)}return s.emit("data",n,e),a(null,n)}s.end(!0)}))}catch(t){return s.emit("error",t,e),void setTimeout((function(){a(t)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},o.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},79318:(t,e,n)=>{"use strict";t.exports=o;var r=n(54061);function o(t,e){this.lo=t>>>0,this.hi=e>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var a=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(t){if(0===t)return i;var e=t<0;e&&(t=-t);var n=t>>>0,r=(t-n)/4294967296>>>0;return e&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new o(n,r)},o.from=function(t){if("number"==typeof t)return o.fromNumber(t);if(r.isString(t)){if(!r.Long)return o.fromNumber(parseInt(t,10));t=r.Long.fromString(t)}return t.low||t.high?new o(t.low>>>0,t.high>>>0):i},o.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=1+~this.lo>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+4294967296*n)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(t){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var s=String.prototype.charCodeAt;o.fromHash=function(t){return t===a?i:new o((s.call(t,0)|s.call(t,1)<<8|s.call(t,2)<<16|s.call(t,3)<<24)>>>0,(s.call(t,4)|s.call(t,5)<<8|s.call(t,6)<<16|s.call(t,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},o.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},o.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},54061:function(t,e,n){"use strict";var r=e;function o(t,e,n){for(var r=Object.keys(e),o=0;o0)},r.Buffer=function(){try{var t=r.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(t){return"number"==typeof t?r.Buffer?r._Buffer_allocUnsafe(t):new r.Array(t):r.Buffer?r._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(t){return t?r.LongBits.from(t).toHash():r.LongBits.zeroHash},r.longFromHash=function(t,e){var n=r.LongBits.fromHash(t);return r.Long?r.Long.fromBits(n.lo,n.hi,e):n.toNumber(Boolean(e))},r.merge=o,r.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(t){for(var e={},n=0;n-1;--n)if(1===e[t[n]]&&void 0!==this[t[n]]&&null!==this[t[n]])return t[n]}},r.oneOfSetter=function(t){return function(e){for(var n=0;n{"use strict";t.exports=f;var r,o=n(54061),i=o.LongBits,a=o.base64,s=o.utf8;function u(t,e,n){this.fn=t,this.len=e,this.next=void 0,this.val=n}function c(){}function l(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function f(){this.len=0,this.head=new u(c,0,0),this.tail=this.head,this.states=null}var h=function(){return o.Buffer?function(){return(f.create=function(){return new r})()}:function(){return new f}};function p(t,e,n){e[n]=255&t}function d(t,e){this.len=t,this.next=void 0,this.val=e}function v(t,e,n){for(;t.hi;)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function m(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}f.create=h(),f.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(t,e,n){return this.tail=this.tail.next=new u(t,e,n),this.len+=e,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(t,e,n){for(;t>127;)e[n++]=127&t|128,t>>>=7;e[n]=t},f.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new d((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<268435456?4:5,t)).len,this},f.prototype.int32=function(t){return t<0?this._push(v,10,i.fromNumber(t)):this.uint32(t)},f.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},f.prototype.uint64=function(t){var e=i.from(t);return this._push(v,e.length(),e)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(t){var e=i.from(t).zzEncode();return this._push(v,e.length(),e)},f.prototype.bool=function(t){return this._push(p,1,t?1:0)},f.prototype.fixed32=function(t){return this._push(m,4,t>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(t){var e=i.from(t);return this._push(m,4,e.lo)._push(m,4,e.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},f.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var g=o.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var r=0;r>>0;if(!e)return this._push(p,1,0);if(o.isString(t)){var n=f.alloc(e=a.length(t));a.decode(t,n,0),t=n}return this.uint32(e)._push(g,e,t)},f.prototype.string=function(t){var e=s.length(t);return e?this.uint32(e)._push(s.write,e,t):this._push(p,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},f.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},f._configure=function(t){r=t,f.create=h(),r._configure()}},56531:(t,e,n)=>{"use strict";t.exports=i;var r=n(65394);(i.prototype=Object.create(r.prototype)).constructor=i;var o=n(54061);function i(){r.call(this)}function a(t,e,n){t.length<40?o.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var r=0;r>>0;return this.uint32(e),e&&this._push(i.writeBytesBuffer,e,t),this},i.prototype.string=function(t){var e=o.Buffer.byteLength(t);return this.uint32(e),e&&this._push(a,e,t),this},i._configure()},67495:(t,e,n)=>{"use strict";var r=n(30758);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n