const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Enter-DKUi0H3I.js","assets/vendor-Db4839v3.js","assets/Enter-TNClsJtj.css"])))=>i.map(i=>d[i]); var zh=Object.defineProperty,Uh=Object.defineProperties;var Hh=Object.getOwnPropertyDescriptors;var vr=Object.getOwnPropertySymbols;var Aa=Object.prototype.hasOwnProperty,ka=Object.prototype.propertyIsEnumerable;var Ia=e=>{throw TypeError(e)},Ni=Math.pow,Pi=(e,t,n)=>t in e?zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,z=(e,t)=>{for(var n in t||(t={}))Aa.call(t,n)&&Pi(e,n,t[n]);if(vr)for(var n of vr(t))ka.call(t,n)&&Pi(e,n,t[n]);return e},se=(e,t)=>Uh(e,Hh(t));var Fi=(e,t)=>{var n={};for(var r in e)Aa.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&vr)for(var r of vr(e))t.indexOf(r)<0&&ka.call(e,r)&&(n[r]=e[r]);return n};var ne=(e,t,n)=>Pi(e,typeof t!="symbol"?t+"":t,n),Mi=(e,t,n)=>t.has(e)||Ia("Cannot "+n);var q=(e,t,n)=>(Mi(e,t,"read from private field"),n?n.call(e):t.get(e)),Ie=(e,t,n)=>t.has(e)?Ia("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),xe=(e,t,n,r)=>(Mi(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ne=(e,t,n)=>(Mi(e,t,"access private method"),n);var Mn=(e,t,n,r)=>({set _(s){xe(e,t,s,n)},get _(){return q(e,t,r)}});var H=(e,t,n)=>new Promise((r,s)=>{var i=u=>{try{a(n.next(u))}catch(c){s(c)}},o=u=>{try{a(n.throw(u))}catch(c){s(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,o);a((n=n.apply(e,t)).next())});import{b1 as Jr,C as Re,G as ke,am as He,T as W,b as F,b2 as Wo,v as Ee,P as it,a3 as Ge,c as C,m as j,aR as Wh,aS as jh,aT as Xh,aU as Vh,h as K,d as ce,g as N,N as G,o as rn,a6 as Z,K as ci,a$ as Kh,aw as _n,H as Ae,b3 as cu,S as ee,a4 as Gh,b4 as lu,A as or,k as uu,an as Jh,i as L,e as ye,p as lt,t as P,x as re,aO as fu,b5 as Yh,U as Yn,b6 as jo,b7 as Zh,F as Oe,V as hu,W as ot,a as fe,s as ie,f as ar,Y as Dn,y as Be,j as It,r as sn,E as Xo,ab as dn,b8 as Qh,q as Da,b9 as Nt,z as Vo,ba as ed,ao as Rn,ar as cr,Z as du,a7 as td,bb as nd,bc as rd,bd as id,be as sd,bf as od,a1 as ad,bg as cd,a9 as ld}from"./vendor-Db4839v3.js";import{m as ud}from"./sentry-DQTNH014.js";(function(){try{var e=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};e.SENTRY_RELEASE={id:"d7533ca5808c861d848575c428b8d6b5bd4f2f68"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(t){for(var n=1;n{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var nt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ko(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fd(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var s=!1;try{s=this instanceof r}catch(i){}return s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var $i={},yr={},qi,Ra;function gu(){if(Ra)return qi;Ra=1,qi=e;function e(t,n){for(var r=new Array(arguments.length-1),s=0,i=2,o=!0;i1&&a.charAt(u)==="=";)++c;return Math.ceil(a.length*3)/4-c};for(var n=new Array(64),r=new Array(123),s=0;s<64;)r[n[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;t.encode=function(a,u,c){for(var f=null,l=[],h=0,d=0,g;u>2],g=(p&3)<<4,d=1;break;case 1:l[h++]=n[g|p>>4],g=(p&15)<<2,d=2;break;case 2:l[h++]=n[g|p>>6],l[h++]=n[p&63],d=0;break}h>8191&&((f||(f=[])).push(String.fromCharCode.apply(String,l)),h=0)}return d&&(l[h++]=n[g],l[h++]=61,d===1&&(l[h++]=61)),f?(h&&f.push(String.fromCharCode.apply(String,l.slice(0,h))),f.join("")):String.fromCharCode.apply(String,l.slice(0,h))};var i="invalid encoding";t.decode=function(a,u,c){for(var f=c,l=0,h,d=0;d1)break;if((g=r[g])===void 0)throw Error(i);switch(l){case 0:h=g,l=1;break;case 1:u[c++]=h<<2|(g&48)>>4,h=g,l=2;break;case 2:u[c++]=(h&15)<<4|(g&60)>>2,h=g,l=3;break;case 3:u[c++]=(h&3)<<6|g,l=0;break}}if(l===1)throw Error(i);return c-f},t.test=function(a){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a)}})(zi)),zi}var Ui,Oa;function mu(){if(Oa)return Ui;Oa=1,Ui=e;function e(){this._listeners={}}return e.prototype.on=function(n,r,s){return(this._listeners[n]||(this._listeners[n]=[])).push({fn:r,ctx:s||this}),this},e.prototype.off=function(n,r){if(n===void 0)this._listeners={};else if(r===void 0)this._listeners[n]=[];else for(var s=this._listeners[n],i=0;i0?0:2147483648,f,l);else if(isNaN(c))u(2143289344,f,l);else if(c>34028234663852886e22)u((h<<31|2139095040)>>>0,f,l);else if(c<11754943508222875e-54)u((h<<31|Math.round(c/1401298464324817e-60))>>>0,f,l);else{var d=Math.floor(Math.log(c)/Math.LN2),g=Math.round(c*Math.pow(2,-d)*8388608)&8388607;u((h<<31|d+127<<23|g)>>>0,f,l)}}i.writeFloatLE=o.bind(null,t),i.writeFloatBE=o.bind(null,n);function a(u,c,f){var l=u(c,f),h=(l>>31)*2+1,d=l>>>23&255,g=l&8388607;return d===255?g?NaN:h*(1/0):d===0?h*1401298464324817e-60*g:h*Math.pow(2,d-150)*(g+8388608)}i.readFloatLE=a.bind(null,r),i.readFloatBE=a.bind(null,s)})(),typeof Float64Array!="undefined"?(function(){var o=new Float64Array([-0]),a=new Uint8Array(o.buffer),u=a[7]===128;function c(d,g,p){o[0]=d,g[p]=a[0],g[p+1]=a[1],g[p+2]=a[2],g[p+3]=a[3],g[p+4]=a[4],g[p+5]=a[5],g[p+6]=a[6],g[p+7]=a[7]}function f(d,g,p){o[0]=d,g[p]=a[7],g[p+1]=a[6],g[p+2]=a[5],g[p+3]=a[4],g[p+4]=a[3],g[p+5]=a[2],g[p+6]=a[1],g[p+7]=a[0]}i.writeDoubleLE=u?c:f,i.writeDoubleBE=u?f:c;function l(d,g){return a[0]=d[g],a[1]=d[g+1],a[2]=d[g+2],a[3]=d[g+3],a[4]=d[g+4],a[5]=d[g+5],a[6]=d[g+6],a[7]=d[g+7],o[0]}function h(d,g){return a[7]=d[g],a[6]=d[g+1],a[5]=d[g+2],a[4]=d[g+3],a[3]=d[g+4],a[2]=d[g+5],a[1]=d[g+6],a[0]=d[g+7],o[0]}i.readDoubleLE=u?l:h,i.readDoubleBE=u?h:l})():(function(){function o(u,c,f,l,h,d){var g=l<0?1:0;if(g&&(l=-l),l===0)u(0,h,d+c),u(1/l>0?0:2147483648,h,d+f);else if(isNaN(l))u(0,h,d+c),u(2146959360,h,d+f);else if(l>17976931348623157e292)u(0,h,d+c),u((g<<31|2146435072)>>>0,h,d+f);else{var p;if(l<22250738585072014e-324)p=l/5e-324,u(p>>>0,h,d+c),u((g<<31|p/4294967296)>>>0,h,d+f);else{var v=Math.floor(Math.log(l)/Math.LN2);v===1024&&(v=1023),p=l*Math.pow(2,-v),u(p*4503599627370496>>>0,h,d+c),u((g<<31|v+1023<<20|p*1048576&1048575)>>>0,h,d+f)}}}i.writeDoubleLE=o.bind(null,t,0,4),i.writeDoubleBE=o.bind(null,n,4,0);function a(u,c,f,l,h){var d=u(l,h+c),g=u(l,h+f),p=(g>>31)*2+1,v=g>>>20&2047,m=4294967296*(g&1048575)+d;return v===2047?m?NaN:p*(1/0):v===0?p*5e-324*m:p*Math.pow(2,v-1075)*(m+4503599627370496)}i.readDoubleLE=a.bind(null,r,0,4),i.readDoubleBE=a.bind(null,s,4,0)})(),i}function t(i,o,a){o[a]=i&255,o[a+1]=i>>>8&255,o[a+2]=i>>>16&255,o[a+3]=i>>>24}function n(i,o,a){o[a]=i>>>24,o[a+1]=i>>>16&255,o[a+2]=i>>>8&255,o[a+3]=i&255}function r(i,o){return(i[o]|i[o+1]<<8|i[o+2]<<16|i[o+3]<<24)>>>0}function s(i,o){return(i[o]<<24|i[o+1]<<16|i[o+2]<<8|i[o+3])>>>0}return Hi}function La(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Wi,Pa;function yu(){if(Pa)return Wi;Pa=1,Wi=e;function e(t){try{if(typeof La!="function")return null;var n=La(t);return n&&(n.length||Object.keys(n).length)?n:null}catch(r){return null}}return Wi}var ji={},Na;function bu(){return Na||(Na=1,(function(e){var t=e,n="�";t.length=function(s){for(var i=0,o=0,a=0;a=192&&c<224){var f=(c&31)<<6|s[u++]&63;a+=f>=128?String.fromCharCode(f):n}else if(c>=224&&c<240){var l=(c&15)<<12|(s[u++]&63)<<6|s[u++]&63;a+=l>=2048?String.fromCharCode(l):n}else if(c>=240){var h=(c&7)<<18|(s[u++]&63)<<12|(s[u++]&63)<<6|s[u++]&63;h<65536||h>1114111?a+=n:(h-=65536,a+=String.fromCharCode(55296+(h>>10)),a+=String.fromCharCode(56320+(h&1023)))}}return a},t.write=function(s,i,o){for(var a=o,u,c,f=0;f>6|192,i[o++]=u&63|128):(u&64512)===55296&&((c=s.charCodeAt(f+1))&64512)===56320?(u=65536+((u&1023)<<10)+(c&1023),++f,i[o++]=u>>18|240,i[o++]=u>>12&63|128,i[o++]=u>>6&63|128,i[o++]=u&63|128):(i[o++]=u>>12|224,i[o++]=u>>6&63|128,i[o++]=u&63|128);return o-a}})(ji)),ji}var Xi,Fa;function wu(){if(Fa)return Xi;Fa=1,Xi=e;function e(t,n,r){var s=r||8192,i=s>>>1,o=null,a=s;return function(c){if(c<1||c>i)return t(c);a+c>s&&(o=t(s),a=0);var f=n.call(o,a,a+=c);return a&7&&(a=(a|7)+1),f}}return Xi}var Vi,Ma;function hd(){if(Ma)return Vi;Ma=1,Vi=t;var e=on();function t(i,o){this.lo=i>>>0,this.hi=o>>>0}var n=t.zero=new t(0,0);n.toNumber=function(){return 0},n.zzEncode=n.zzDecode=function(){return this},n.length=function(){return 1};var r=t.zeroHash="\0\0\0\0\0\0\0\0";t.fromNumber=function(o){if(o===0)return n;var a=o<0;a&&(o=-o);var u=o>>>0,c=(o-u)/4294967296>>>0;return a&&(c=~c>>>0,u=~u>>>0,++u>4294967295&&(u=0,++c>4294967295&&(c=0))),new t(u,c)},t.from=function(o){if(typeof o=="number")return t.fromNumber(o);if(e.isString(o))if(e.Long)o=e.Long.fromString(o);else return t.fromNumber(parseInt(o,10));return o.low||o.high?new t(o.low>>>0,o.high>>>0):n},t.prototype.toNumber=function(o){if(!o&&this.hi>>>31){var a=~this.lo+1>>>0,u=~this.hi>>>0;return a||(u=u+1>>>0),-(a+u*4294967296)}return this.lo+this.hi*4294967296},t.prototype.toLong=function(o){return e.Long?new e.Long(this.lo|0,this.hi|0,!!o):{low:this.lo|0,high:this.hi|0,unsigned:!!o}};var s=String.prototype.charCodeAt;return t.fromHash=function(o){return o===r?n:new t((s.call(o,0)|s.call(o,1)<<8|s.call(o,2)<<16|s.call(o,3)<<24)>>>0,(s.call(o,4)|s.call(o,5)<<8|s.call(o,6)<<16|s.call(o,7)<<24)>>>0)},t.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},t.prototype.zzEncode=function(){var o=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^o)>>>0,this.lo=(this.lo<<1^o)>>>0,this},t.prototype.zzDecode=function(){var o=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^o)>>>0,this.hi=(this.hi>>>1^o)>>>0,this},t.prototype.length=function(){var o=this.lo,a=(this.lo>>>28|this.hi<<4)>>>0,u=this.hi>>>24;return u===0?a===0?o<16384?o<128?1:2:o<2097152?3:4:a<16384?a<128?5:6:a<2097152?7:8:u<128?9:10},Vi}var $a;function on(){return $a||($a=1,(function(e){var t=e;t.asPromise=gu(),t.base64=pu(),t.EventEmitter=mu(),t.float=vu(),t.inquire=yu(),t.utf8=bu(),t.pool=wu(),t.LongBits=hd(),t.isNode=!!(typeof nt!="undefined"&&nt&&nt.process&&nt.process.versions&&nt.process.versions.node),t.global=t.isNode&&nt||typeof window!="undefined"&&window||typeof self!="undefined"&&self||yr,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(i){return typeof i=="number"&&isFinite(i)&&Math.floor(i)===i},t.isString=function(i){return typeof i=="string"||i instanceof String},t.isObject=function(i){return i&&typeof i=="object"},t.isset=t.isSet=function(i,o){var a=i[o];return a!=null&&i.hasOwnProperty(o)?typeof a!="object"||(Array.isArray(a)?a.length:Object.keys(a).length)>0:!1},t.Buffer=(function(){try{var s=t.inquire("buffer").Buffer;return s.prototype.utf8Write?s:null}catch(i){return null}})(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(i){return typeof i=="number"?t.Buffer?t._Buffer_allocUnsafe(i):new t.Array(i):t.Buffer?t._Buffer_from(i):typeof Uint8Array=="undefined"?i:new Uint8Array(i)},t.Array=typeof Uint8Array!="undefined"?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||t.inquire("long"),t.key2Re=/^true|false|0|1$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(i){return i?t.LongBits.from(i).toHash():t.LongBits.zeroHash},t.longFromHash=function(i,o){var a=t.LongBits.fromHash(i);return t.Long?t.Long.fromBits(a.lo,a.hi,o):a.toNumber(!!o)};function n(s,i,o){for(var a=Object.keys(i),u=0;u-1;--c)if(o[u[c]]===1&&this[u[c]]!==void 0&&this[u[c]]!==null)return u[c]}},t.oneOfSetter=function(i){return function(o){for(var a=0;a127;)m[y++]=v&127|128,v>>>=7;m[y]=v}function h(v,m){this.len=v,this.next=void 0,this.val=m}h.prototype=Object.create(i.prototype),h.prototype.fn=l,u.prototype.uint32=function(m){return this.len+=(this.tail=this.tail.next=new h((m=m>>>0)<128?1:m<16384?2:m<2097152?3:m<268435456?4:5,m)).len,this},u.prototype.int32=function(m){return m<0?this._push(d,10,n.fromNumber(m)):this.uint32(m)},u.prototype.sint32=function(m){return this.uint32((m<<1^m>>31)>>>0)};function d(v,m,y){for(;v.hi;)m[y++]=v.lo&127|128,v.lo=(v.lo>>>7|v.hi<<25)>>>0,v.hi>>>=7;for(;v.lo>127;)m[y++]=v.lo&127|128,v.lo=v.lo>>>7;m[y++]=v.lo}u.prototype.uint64=function(m){var y=n.from(m);return this._push(d,y.length(),y)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(m){var y=n.from(m).zzEncode();return this._push(d,y.length(),y)},u.prototype.bool=function(m){return this._push(f,1,m?1:0)};function g(v,m,y){m[y]=v&255,m[y+1]=v>>>8&255,m[y+2]=v>>>16&255,m[y+3]=v>>>24}u.prototype.fixed32=function(m){return this._push(g,4,m>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(m){var y=n.from(m);return this._push(g,4,y.lo)._push(g,4,y.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(m){return this._push(e.float.writeFloatLE,4,m)},u.prototype.double=function(m){return this._push(e.float.writeDoubleLE,8,m)};var p=e.Array.prototype.set?function(m,y,w){y.set(m,w)}:function(m,y,w){for(var b=0;b>>0;if(!y)return this._push(f,1,0);if(e.isString(m)){var w=u.alloc(y=r.length(m));r.decode(m,w,0),m=w}return this.uint32(y)._push(p,y,m)},u.prototype.string=function(m){var y=s.length(m);return y?this.uint32(y)._push(s.write,y,m):this._push(f,1,0)},u.prototype.fork=function(){return this.states=new a(this),this.head=this.tail=new i(o,0,0),this.len=0,this},u.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 i(o,0,0),this.len=0),this},u.prototype.ldelim=function(){var m=this.head,y=this.tail,w=this.len;return this.reset().uint32(w),w&&(this.tail.next=m.next,this.tail=y,this.len+=w),this},u.prototype.finish=function(){for(var m=this.head.next,y=this.constructor.alloc(this.len),w=0;m;)m.fn(m.val,y,w),w+=m.len,m=m.next;return y},u._configure=function(v){t=v,u.create=c(),t._configure()},Ki}var Gi,za;function dd(){if(za)return Gi;za=1,Gi=n;var e=Cu();(n.prototype=Object.create(e.prototype)).constructor=n;var t=on();function n(){e.call(this)}n._configure=function(){n.alloc=t._Buffer_allocUnsafe,n.writeBytesBuffer=t.Buffer&&t.Buffer.prototype instanceof Uint8Array&&t.Buffer.prototype.set.name==="set"?function(i,o,a){o.set(i,a)}:function(i,o,a){if(i.copy)i.copy(o,a,0,i.length);else for(var u=0;u>>0;return this.uint32(o),o&&this._push(n.writeBytesBuffer,o,i),this};function r(s,i,o){s.length<40?t.utf8.write(s,i,o):i.utf8Write?i.utf8Write(s,o):i.write(s,o)}return n.prototype.string=function(i){var o=t.Buffer.byteLength(i);return this.uint32(o),o&&this._push(r,o,i),this},n._configure(),Gi}var Ji,Ua;function _u(){if(Ua)return Ji;Ua=1,Ji=i;var e=on(),t,n=e.LongBits,r=e.utf8;function s(l,h){return RangeError("index out of range: "+l.pos+" + "+(h||1)+" > "+l.len)}function i(l){this.buf=l,this.pos=0,this.len=l.length}var o=typeof Uint8Array!="undefined"?function(h){if(h instanceof Uint8Array||Array.isArray(h))return new i(h);throw Error("illegal buffer")}:function(h){if(Array.isArray(h))return new i(h);throw Error("illegal buffer")},a=function(){return e.Buffer?function(d){return(i.create=function(p){return e.Buffer.isBuffer(p)?new t(p):o(p)})(d)}:o};i.create=a(),i.prototype._slice=e.Array.prototype.subarray||e.Array.prototype.slice,i.prototype.uint32=(function(){var h=4294967295;return function(){if(h=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(h=(h|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(h=(h|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(h=(h|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(h=(h|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return h;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return h}})(),i.prototype.int32=function(){return this.uint32()|0},i.prototype.sint32=function(){var h=this.uint32();return h>>>1^-(h&1)|0};function u(){var l=new n(0,0),h=0;if(this.len-this.pos>4){for(;h<4;++h)if(l.lo=(l.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return l;if(l.lo=(l.lo|(this.buf[this.pos]&127)<<28)>>>0,l.hi=(l.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return l;h=0}else{for(;h<3;++h){if(this.pos>=this.len)throw s(this);if(l.lo=(l.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return l}return l.lo=(l.lo|(this.buf[this.pos++]&127)<>>0,l}if(this.len-this.pos>4){for(;h<5;++h)if(l.hi=(l.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return l}else for(;h<5;++h){if(this.pos>=this.len)throw s(this);if(l.hi=(l.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return l}throw Error("invalid varint encoding")}i.prototype.bool=function(){return this.uint32()!==0};function c(l,h){return(l[h-4]|l[h-3]<<8|l[h-2]<<16|l[h-1]<<24)>>>0}i.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return c(this.buf,this.pos+=4)},i.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return c(this.buf,this.pos+=4)|0};function f(){if(this.pos+8>this.len)throw s(this,8);return new n(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}return i.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var h=e.float.readFloatLE(this.buf,this.pos);return this.pos+=4,h},i.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var h=e.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,h},i.prototype.bytes=function(){var h=this.uint32(),d=this.pos,g=this.pos+h;if(g>this.len)throw s(this,h);if(this.pos+=h,Array.isArray(this.buf))return this.buf.slice(d,g);if(d===g){var p=e.Buffer;return p?p.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,d,g)},i.prototype.string=function(){var h=this.bytes();return r.read(h,0,h.length)},i.prototype.skip=function(h){if(typeof h=="number"){if(this.pos+h>this.len)throw s(this,h);this.pos+=h}else do if(this.pos>=this.len)throw s(this);while(this.buf[this.pos++]&128);return this},i.prototype.skipType=function(l){switch(l){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(l=this.uint32()&7)!==4;)this.skipType(l);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+l+" at offset "+this.pos)}return this},i._configure=function(l){t=l,i.create=a(),t._configure();var h=e.Long?"toLong":"toNumber";e.merge(i.prototype,{int64:function(){return u.call(this)[h](!1)},uint64:function(){return u.call(this)[h](!0)},sint64:function(){return u.call(this).zzDecode()[h](!1)},fixed64:function(){return f.call(this)[h](!0)},sfixed64:function(){return f.call(this)[h](!1)}})},Ji}var Yi,Ha;function gd(){if(Ha)return Yi;Ha=1,Yi=n;var e=_u();(n.prototype=Object.create(e.prototype)).constructor=n;var t=on();function n(r){e.call(this,r)}return n._configure=function(){t.Buffer&&(n.prototype._slice=t.Buffer.prototype.slice)},n.prototype.string=function(){var s=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+s,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+s,this.len))},n._configure(),Yi}var Zi={},Qi,Wa;function pd(){if(Wa)return Qi;Wa=1,Qi=t;var e=on();(t.prototype=Object.create(e.EventEmitter.prototype)).constructor=t;function t(n,r,s){if(typeof n!="function")throw TypeError("rpcImpl must be a function");e.EventEmitter.call(this),this.rpcImpl=n,this.requestDelimited=!!r,this.responseDelimited=!!s}return t.prototype.rpcCall=function n(r,s,i,o,a){if(!o)throw TypeError("request must be specified");var u=this;if(!a)return e.asPromise(n,u,r,s,i,o);if(!u.rpcImpl){setTimeout(function(){a(Error("already ended"))},0);return}try{return u.rpcImpl(r,s[u.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(f,l){if(f)return u.emit("error",f,r),a(f);if(l===null){u.end(!0);return}if(!(l instanceof i))try{l=i[u.responseDelimited?"decodeDelimited":"decode"](l)}catch(h){return u.emit("error",h,r),a(h)}return u.emit("data",l,r),a(null,l)})}catch(c){u.emit("error",c,r),setTimeout(function(){a(c)},0);return}},t.prototype.end=function(r){return this.rpcImpl&&(r||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},Qi}var ja;function md(){return ja||(ja=1,(function(e){var t=e;t.Service=pd()})(Zi)),Zi}var es,Xa;function vd(){return Xa||(Xa=1,es={}),es}var Va;function yd(){return Va||(Va=1,(function(e){var t=e;t.build="minimal",t.Writer=Cu(),t.BufferWriter=dd(),t.Reader=_u(),t.BufferReader=gd(),t.util=on(),t.rpc=md(),t.roots=vd(),t.configure=n;function n(){t.util._configure(),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}n()})($i)),$i}var ts,Ka;function bd(){return Ka||(Ka=1,ts=yd()),ts}var xn=bd();const Go=Ko(xn);Go.util.Long=Jr;Go.configure();const ns=()=>{console.warn("ShallowRouteContext not initialized")},xu=Re({minimize:ns,close:ns,maximize:ns}),wd=xu.Provider,Su=()=>ke(xu),Eu=Re(),Cd=Eu.Provider,Au=()=>ke(Eu);var Tn=1e9,_d={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},$e,_e=!0,rt="[DecimalError] ",Yt=rt+"Invalid argument: ",Jo=rt+"Exponent out of range: ",On=Math.floor,Ht=Math.pow,xd=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ke,Te=1e7,we=7,ku=9007199254740991,Yr=On(ku/we),U={};U.absoluteValue=U.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};U.comparedTo=U.cmp=function(e){var t,n,r,s,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,s=e.d.length,t=0,n=re.d[t]^i.s<0?1:-1;return r===s?0:r>s^i.s<0?1:-1};U.decimalPlaces=U.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*we;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};U.dividedBy=U.div=function(e){return At(this,new this.constructor(e))};U.dividedToIntegerBy=U.idiv=function(e){var t=this,n=t.constructor;return ve(At(t,new n(e),0,1),n.precision)};U.equals=U.eq=function(e){return!this.cmp(e)};U.exponent=function(){return De(this)};U.greaterThan=U.gt=function(e){return this.cmp(e)>0};U.greaterThanOrEqualTo=U.gte=function(e){return this.cmp(e)>=0};U.isInteger=U.isint=function(){return this.e>this.d.length-2};U.isNegative=U.isneg=function(){return this.s<0};U.isPositive=U.ispos=function(){return this.s>0};U.isZero=function(){return this.s===0};U.lessThan=U.lt=function(e){return this.cmp(e)<0};U.lessThanOrEqualTo=U.lte=function(e){return this.cmp(e)<1};U.logarithm=U.log=function(e){var t,n=this,r=n.constructor,s=r.precision,i=s+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Ke))throw Error(rt+"NaN");if(n.s<1)throw Error(rt+(n.s?"NaN":"-Infinity"));return n.eq(Ke)?new r(0):(_e=!1,t=At(Zn(n,i),Zn(e,i),i),_e=!0,ve(t,s))};U.minus=U.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ru(t,e):Iu(t,(e.s=-e.s,e))};U.modulo=U.mod=function(e){var t,n=this,r=n.constructor,s=r.precision;if(e=new r(e),!e.s)throw Error(rt+"NaN");return n.s?(_e=!1,t=At(n,e,0,1).times(e),_e=!0,n.minus(t)):ve(new r(n),s)};U.naturalExponential=U.exp=function(){return Du(this)};U.naturalLogarithm=U.ln=function(){return Zn(this)};U.negated=U.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};U.plus=U.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Iu(t,e):Ru(t,(e.s=-e.s,e))};U.precision=U.sd=function(e){var t,n,r,s=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Yt+e);if(t=De(s)+1,r=s.d.length-1,n=r*we+1,r=s.d[r],r){for(;r%10==0;r/=10)n--;for(r=s.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};U.squareRoot=U.sqrt=function(){var e,t,n,r,s,i,o,a=this,u=a.constructor;if(a.s<1){if(!a.s)return new u(0);throw Error(rt+"NaN")}for(e=De(a),_e=!1,s=Math.sqrt(+a),s==0||s==1/0?(t=gt(a.d),(t.length+e)%2==0&&(t+="0"),s=Math.sqrt(t),e=On((e+1)/2)-(e<0||e%2),s==1/0?t="5e"+e:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new u(t)):r=new u(s.toString()),n=u.precision,s=o=n+3;;)if(i=r,r=i.plus(At(a,i,o+2)).times(.5),gt(i.d).slice(0,o)===(t=gt(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),s==o&&t=="4999"){if(ve(i,n+1,0),i.times(i).eq(a)){r=i;break}}else if(t!="9999")break;o+=4}return _e=!0,ve(r,n)};U.times=U.mul=function(e){var t,n,r,s,i,o,a,u,c,f=this,l=f.constructor,h=f.d,d=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,n=f.e+e.e,u=h.length,c=d.length,u=0;){for(t=0,s=u+r;s>r;)a=i[s]+d[r]*h[s-r-1]+t,i[s--]=a%Te|0,t=a/Te|0;i[s]=(i[s]+t)%Te|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,_e?ve(e,l.precision):e};U.toDecimalPlaces=U.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(mt(e,0,Tn),t===void 0?t=r.rounding:mt(t,0,8),ve(n,e+De(n)+1,t))};U.toExponential=function(e,t){var n,r=this,s=r.constructor;return e===void 0?n=Qt(r,!0):(mt(e,0,Tn),t===void 0?t=s.rounding:mt(t,0,8),r=ve(new s(r),e+1,t),n=Qt(r,!0,e+1)),n};U.toFixed=function(e,t){var n,r,s=this,i=s.constructor;return e===void 0?Qt(s):(mt(e,0,Tn),t===void 0?t=i.rounding:mt(t,0,8),r=ve(new i(s),e+De(s)+1,t),n=Qt(r.abs(),!1,e+De(r)+1),s.isneg()&&!s.isZero()?"-"+n:n)};U.toInteger=U.toint=function(){var e=this,t=e.constructor;return ve(new t(e),De(e)+1,t.rounding)};U.toNumber=function(){return+this};U.toPower=U.pow=function(e){var t,n,r,s,i,o,a=this,u=a.constructor,c=12,f=+(e=new u(e));if(!e.s)return new u(Ke);if(a=new u(a),!a.s){if(e.s<1)throw Error(rt+"Infinity");return a}if(a.eq(Ke))return a;if(r=u.precision,e.eq(Ke))return ve(a,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=a.s,o){if((n=f<0?-f:f)<=ku){for(s=new u(Ke),t=Math.ceil(r/we+4),_e=!1;n%2&&(s=s.times(a),Ja(s.d,t)),n=On(n/2),n!==0;)a=a.times(a),Ja(a.d,t);return _e=!0,e.s<0?new u(Ke).div(s):ve(s,r)}}else if(i<0)throw Error(rt+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,a.s=1,_e=!1,s=e.times(Zn(a,r+c)),_e=!0,s=Du(s),s.s=i,s};U.toPrecision=function(e,t){var n,r,s=this,i=s.constructor;return e===void 0?(n=De(s),r=Qt(s,n<=i.toExpNeg||n>=i.toExpPos)):(mt(e,1,Tn),t===void 0?t=i.rounding:mt(t,0,8),s=ve(new i(s),e,t),n=De(s),r=Qt(s,e<=n||n<=i.toExpNeg,e)),r};U.toSignificantDigits=U.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(mt(e,1,Tn),t===void 0?t=r.rounding:mt(t,0,8)),ve(new r(n),e,t)};U.toString=U.valueOf=U.val=U.toJSON=U[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=De(e),n=e.constructor;return Qt(e,t<=n.toExpNeg||t>=n.toExpPos)};function Iu(e,t){var n,r,s,i,o,a,u,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),_e?ve(t,l):t;if(u=e.d,c=t.d,o=e.e,s=t.e,u=u.slice(),i=o-s,i){for(i<0?(r=u,i=-i,a=c.length):(r=c,s=o,a=u.length),o=Math.ceil(l/we),a=o>a?o+1:a+1,i>a&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(a=u.length,i=c.length,a-i<0&&(i=a,r=c,c=u,u=r),n=0;i;)n=(u[--i]=u[i]+c[i]+n)/Te|0,u[i]%=Te;for(n&&(u.unshift(n),++s),a=u.length;u[--a]==0;)u.pop();return t.d=u,t.e=s,_e?ve(t,l):t}function mt(e,t,n){if(e!==~~e||en)throw Error(Yt+e)}function gt(e){var t,n,r,s=e.length-1,i="",o=e[0];if(s>0){for(i+=o,t=1;to?1:-1;else for(a=u=0;as[a]?1:-1;break}return u}function n(r,s,i){for(var o=0;i--;)r[i]-=o,o=r[i]1;)r.shift()}return function(r,s,i,o){var a,u,c,f,l,h,d,g,p,v,m,y,w,b,_,x,S,E,B=r.constructor,T=r.s==s.s?1:-1,A=r.d,D=s.d;if(!r.s)return new B(r);if(!s.s)throw Error(rt+"Division by zero");for(u=r.e-s.e,S=D.length,_=A.length,d=new B(T),g=d.d=[],c=0;D[c]==(A[c]||0);)++c;if(D[c]>(A[c]||0)&&--u,i==null?y=i=B.precision:o?y=i+(De(r)-De(s))+1:y=i,y<0)return new B(0);if(y=y/we+2|0,c=0,S==1)for(f=0,D=D[0],y++;(c<_||f)&&y--;c++)w=f*Te+(A[c]||0),g[c]=w/D|0,f=w%D|0;else{for(f=Te/(D[0]+1)|0,f>1&&(D=e(D,f),A=e(A,f),S=D.length,_=A.length),b=S,p=A.slice(0,S),v=p.length;v=Te/2&&++x;do f=0,a=t(D,p,S,v),a<0?(m=p[0],S!=v&&(m=m*Te+(p[1]||0)),f=m/x|0,f>1?(f>=Te&&(f=Te-1),l=e(D,f),h=l.length,v=p.length,a=t(l,p,h,v),a==1&&(f--,n(l,S16)throw Error(Jo+De(e));if(!e.s)return new f(Ke);for(_e=!1,a=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(r=Math.log(Ht(2,c))/Math.LN10*2+5|0,a+=r,n=s=i=new f(Ke),f.precision=a;;){if(s=ve(s.times(e),a),n=n.times(++u),o=i.plus(At(s,n,a)),gt(o.d).slice(0,a)===gt(i.d).slice(0,a)){for(;c--;)i=ve(i.times(i),a);return f.precision=l,t==null?(_e=!0,ve(i,l)):i}i=o}}function De(e){for(var t=e.e*we,n=e.d[0];n>=10;n/=10)t++;return t}function rs(e,t,n){if(t>e.LN10.sd())throw _e=!0,n&&(e.precision=n),Error(rt+"LN10 precision limit exceeded");return ve(new e(e.LN10),t)}function Pt(e){for(var t="";e--;)t+="0";return t}function Zn(e,t){var n,r,s,i,o,a,u,c,f,l=1,h=10,d=e,g=d.d,p=d.constructor,v=p.precision;if(d.s<1)throw Error(rt+(d.s?"NaN":"-Infinity"));if(d.eq(Ke))return new p(0);if(t==null?(_e=!1,c=v):c=t,d.eq(10))return t==null&&(_e=!0),rs(p,c);if(c+=h,p.precision=c,n=gt(g),r=n.charAt(0),i=De(d),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)d=d.times(e),n=gt(d.d),r=n.charAt(0),l++;i=De(d),r>1?(d=new p("0."+n),i++):d=new p(r+"."+n.slice(1))}else return u=rs(p,c+2,v).times(i+""),d=Zn(new p(r+"."+n.slice(1)),c-h).plus(u),p.precision=v,t==null?(_e=!0,ve(d,v)):d;for(a=o=d=At(d.minus(Ke),d.plus(Ke),c),f=ve(d.times(d),c),s=3;;){if(o=ve(o.times(f),c),u=a.plus(At(o,new p(s),c)),gt(u.d).slice(0,c)===gt(a.d).slice(0,c))return a=a.times(2),i!==0&&(a=a.plus(rs(p,c+2,v).times(i+""))),a=At(a,new p(l),c),p.precision=v,t==null?(_e=!0,ve(a,v)):a;a=u,s+=2}}function Ga(e,t){var n,r,s;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(s=t.length;t.charCodeAt(s-1)===48;)--s;if(t=t.slice(r,s),t){if(s-=r,n=n-r-1,e.e=On(n/we),e.d=[],r=(n+1)%we,n<0&&(r+=we),rYr||e.e<-Yr))throw Error(Jo+n)}else e.s=0,e.e=0,e.d=[0];return e}function ve(e,t,n){var r,s,i,o,a,u,c,f,l=e.d;for(o=1,i=l[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=we,s=t,c=l[f=0];else{if(f=Math.ceil((r+1)/we),i=l.length,f>=i)return e;for(c=i=l[f],o=1;i>=10;i/=10)o++;r%=we,s=r-we+o}if(n!==void 0&&(i=Ht(10,o-s-1),a=c/i%10|0,u=t<0||l[f+1]!==void 0||c%i,u=n<4?(a||u)&&(n==0||n==(e.s<0?3:2)):a>5||a==5&&(n==4||u||n==6&&(r>0?s>0?c/Ht(10,o-s):0:l[f-1])%10&1||n==(e.s<0?8:7))),t<1||!l[0])return u?(i=De(e),l.length=1,t=t-i-1,l[0]=Ht(10,(we-t%we)%we),e.e=On(-t/we)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(r==0?(l.length=f,i=1,f--):(l.length=f+1,i=Ht(10,we-r),l[f]=s>0?(c/Ht(10,o-s)%Ht(10,s)|0)*i:0),u)for(;;)if(f==0){(l[0]+=i)==Te&&(l[0]=1,++e.e);break}else{if(l[f]+=i,l[f]!=Te)break;l[f--]=0,i=1}for(r=l.length;l[--r]===0;)l.pop();if(_e&&(e.e>Yr||e.e<-Yr))throw Error(Jo+De(e));return e}function Ru(e,t){var n,r,s,i,o,a,u,c,f,l,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),_e?ve(t,d):t;if(u=e.d,l=t.d,r=t.e,c=e.e,u=u.slice(),o=c-r,o){for(f=o<0,f?(n=u,o=-o,a=l.length):(n=l,r=c,a=u.length),s=Math.max(Math.ceil(d/we),a)+2,o>s&&(o=s,n.length=1),n.reverse(),s=o;s--;)n.push(0);n.reverse()}else{for(s=u.length,a=l.length,f=s0;--s)u[a++]=0;for(s=l.length;s>o;){if(u[--s]0?i=i.charAt(0)+"."+i.slice(1)+Pt(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(s<0?"e":"e+")+s):s<0?(i="0."+Pt(-s-1)+i,n&&(r=n-o)>0&&(i+=Pt(r))):s>=o?(i+=Pt(s+1-o),n&&(r=n-s-1)>0&&(i=i+"."+Pt(r))):((r=s+1)0&&(s+1===o&&(i+="."),i+=Pt(r))),e.s<0?"-"+i:i}function Ja(e,t){if(e.length>t)return e.length=t,!0}function Tu(e){var t,n,r;function s(i){var o=this;if(!(o instanceof s))return new s(i);if(o.constructor=s,i instanceof s){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Yt+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return Ga(o,i.toString())}else if(typeof i!="string")throw Error(Yt+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,xd.test(i))Ga(o,i);else throw Error(Yt+i)}if(s.prototype=U,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.clone=Tu,s.config=s.set=Sd,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=s[t+1]&&r<=s[t+2])this[n]=r;else throw Error(Yt+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Yt+n+": "+r);return this}var $e=Tu(_d);Ke=new $e(1);const ge=$e;function V(...e){return e.filter(Boolean).join(" ")}const Yo=(e,t)=>{let n;const r=()=>clearTimeout(n);return He()&&W(r),Object.assign((...i)=>{n!==void 0&&r(),n=setTimeout(()=>e(...i),t)},{clear:r})},li=(e,t)=>{let n=!1,r,s;const i=(...a)=>{s=a,!n&&(n=!0,r=setTimeout(()=>{e(...s),n=!1},t))},o=()=>{clearTimeout(r),n=!1};return He()&&W(o),Object.assign(i,{clear:o})};function Ou(e,t,n){let r=!1;const s=e(()=>r=!1,n),i=(...a)=>{r||t(...a),r=!0,s()},o=()=>{r=!1,s.clear()};return He()&&W(o),Object.assign(i,{clear:o})}function Ed(e,t,n){let r;(function(u){u[u.Ready=0]="Ready",u[u.Leading=1]="Leading",u[u.Trailing=2]="Trailing"})(r||(r={}));let s=r.Ready;const i=e(u=>{s===r.Trailing&&t(...u),s=r.Ready},n),o=(...u)=>{s!==r.Trailing&&(s===r.Ready&&t(...u),s+=1),i(u)},a=()=>{s=r.Ready,i.clear()};return He()&&W(a),Object.assign(o,{clear:a})}function Zo(e){let t=0,n=!1;const[r,s]=F(void 0,{equals:!1}),i=e(()=>{n=!0,s()});return()=>(n||(i(),r()),n?(n=!!t,!0):(Wo()&&(t++,W(()=>t--)),!1))}const Ya=430,Ad=640,is=700,[J,Qo]=Ee(()=>{function e(){const s=document.documentElement.clientWidth,i=s{const[s,i]=[document.documentElement.clientWidth,document.documentElement.clientHeight];return s<=1e3&&i<=1e3&&(s<=is||i<=is)||s{Ge(()=>{r(e()),r({mobile:t()})})},100)),[n,r]});function kd(e,t){return J.mobile?e:t}const ea=Math.ceil(innerWidth*.07),ta=navigator.webdriver,Id=()=>J.isLowEndDevice,ui=Object.prototype.hasOwnProperty.call(window,"ontouchstart");function Dd(e,t){return{x:e.xt.x,y:e.yt.y}}const fi=[.36,.66,.04,1];function Bu(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function Lu(){return/android/i.test(navigator.userAgent)}const Pu=(e=0)=>new Promise(t=>setTimeout(t,e)),lr=Dt((e,t,n)=>new Promise((r,s)=>{const i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");o.async=!0,o.src=e,n&&(o.id=n),o.charset="utf8",i.appendChild(o),o.onload=()=>{const a=t?window[t]:null;i.removeChild(o),r(a)},o.onerror=()=>{i.removeChild(o),lr.cache.delete(`${e}:${t}`),s(new Error(`Load Script Error: ${e}`))}})),Nu=(e,t)=>!e||!t?void 0:(r=>Array.isArray(r)&&r.length===2)(e)?e[0](e[1],t):e==null?void 0:e(t);function Fu(e){return t=>{for(const n of e)Nu(n,t)}}const na=(e,t)=>{const n=i=>{const a=Object.entries(t).map(([u,c])=>[u,r(c,i[u])]);return Object.fromEntries(a)},r=(i,o)=>!o||!o.class?i:u=>C(i,j(u,{get class(){return V(o.class,u.class)}})),s=i=>{const o=n(i),a=r(e,i.Root);return Object.assign(a,o,{registerStyles:s})};return Object.assign(e,t,{registerStyles:s})};let Lt;function Rd(e){var t;if((t=navigator.clipboard)!=null&&t.writeText){let n;try{n=navigator.clipboard.writeText(e)}catch(r){br(e);return}n&&typeof n.then=="function"?n.catch(()=>{br(e)}):br(e)}else br(e)}function br(e){Lt||(Lt=document.createElement("input"),document.body.appendChild(Lt),Lt.style.opacity="0",Lt.setAttribute("readonly","readonly"),Lt.setSelectionRange(0,99999)),Lt.setAttribute("value",e),Lt.select(),document.execCommand("copy")}const Td=[["B",9],["M",6],["K",3],["",1],["m",-3],["μ",-6],["n",-9]];function ra(e,t=6){const n=e.toExponential(t),[,r]=n.split("e").map(Number);if(r>t){const s=Math.max(3-Math.ceil((r-t)/3),0),[i,o]=Td[s];return{num:o===1?e:e*Ni(10,-o),exp:o,unit:i}}else return{num:e,exp:1,unit:""}}function Od(e,t=7){const{num:n,exp:r,unit:s}=ra(e.toNumber(),t);let i="";return r>1?i=new ge(n).toFixed(2,ge.ROUND_DOWN)+s:n<1?i=Qn(new ge(n).toFixed(t,ge.ROUND_DOWN)):i=Qn(new ge(n).toPrecision(t+1,ge.ROUND_DOWN)),i}function Qn(e){return e.includes(".")?e.replace(/\.?0+$|\.$/,""):e}function Mu(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(s=>Object.prototype.hasOwnProperty.call(t,s)&&e[s]===t[s])}function Bd(e){return!e||e===""?e:e.replace(/bc.game/gi,J.license.host.toUpperCase()).replace(/BC/g,J.license.site)}const $u=document.scrollingElement||document.documentElement||document.body;function qu(){const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.width="100px",e.style.height="100px",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function Ld(e,t=200){const n=[];let r=!1,s=0;function i(){if(r)return;r=!0;function o(){const a=n.shift();if(a){const u=Date.now(),c=Math.max(0,t+s-u);setTimeout(()=>{a(),s=Date.now(),o()},c)}else{r=!1;return}}o()}return(...o)=>{n.push(()=>e(...o)),i()}}function zu(e,t=0){let n,r,s,i;const o=e.length&3,a=e.length-o;n=t;const u=3432918353,c=461845907;for(i=0;i>>16)*u&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(s&65535)*c+(((s>>>16)*c&65535)<<16)&4294967295,n^=s,n=n<<13|n>>>19,r=(n&65535)*5+(((n>>>16)*5&65535)<<16)&4294967295,n=(r&65535)+27492+(((r>>>16)+58964&65535)<<16);switch(s=0,o){case 3:s^=(e.charCodeAt(i+2)&255)<<16;case 2:s^=(e.charCodeAt(i+1)&255)<<8;case 1:s^=e.charCodeAt(i)&255,s=(s&65535)*u+(((s>>>16)*u&65535)<<16)&4294967295,s=s<<15|s>>>17,s=(s&65535)*c+(((s>>>16)*c&65535)<<16)&4294967295,n^=s}return n^=e.length,n^=n>>>16,n=(n&65535)*2246822507+(((n>>>16)*2246822507&65535)<<16)&4294967295,n^=n>>>13,n=(n&65535)*3266489909+(((n>>>16)*3266489909&65535)<<16)&4294967295,n^=n>>>16,n>>>0}function Dt(e){const t=new Map,n=function(...r){const s=r.toString();if(t.has(s))return t.get(s);const i=e(...r);return t.set(s,i),i};return n.cache=t,n}function Uu(e,t,n){let r=0,s=e.length;const i=n(t);for(;rglobalThis.DOMException===void 0?new $d(e):new DOMException(e),ec=e=>{const t=e.reason===void 0?Qa("This operation was aborted."):e.reason;return t instanceof Error?t:Qa(t)};function qd(e,t){const{milliseconds:n,fallback:r,message:s,customTimers:i={setTimeout,clearTimeout}}=t;let o,a;const c=new Promise((f,l)=>{if(typeof n!="number"||Math.sign(n)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){const{signal:d}=t;d.aborted&&l(ec(d)),a=()=>{l(ec(d))},d.addEventListener("abort",a,{once:!0})}if(n===Number.POSITIVE_INFINITY){e.then(f,l);return}const h=new Wu;o=i.setTimeout.call(void 0,()=>{if(r){try{f(r())}catch(d){l(d)}return}typeof e.cancel=="function"&&e.cancel(),s===!1?f():s instanceof Error?l(s):(h.message=s!=null?s:`Promise timed out after ${n} milliseconds`,l(h))},n),H(null,null,function*(){try{f(yield e)}catch(d){l(d)}})}).finally(()=>{c.clear(),a&&t.signal&&t.signal.removeEventListener("abort",a)});return c.clear=()=>{i.clearTimeout.call(void 0,o),o=void 0},c}function zd(e,t,n){let r=0,s=e.length;for(;s>0;){const i=Math.trunc(s/2);let o=r+i;n(e[o],t)<=0?(r=++o,s-=i+1):s=i}return r}var Qe;class Ud{constructor(){Ie(this,Qe,[])}enqueue(t,n){n=z({priority:0},n);const r={priority:n.priority,id:n.id,run:t};if(this.size===0||q(this,Qe)[this.size-1].priority>=n.priority){q(this,Qe).push(r);return}const s=zd(q(this,Qe),r,(i,o)=>o.priority-i.priority);q(this,Qe).splice(s,0,r)}setPriority(t,n){const r=q(this,Qe).findIndex(i=>i.id===t);if(r===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[s]=q(this,Qe).splice(r,1);this.enqueue(s.run,{priority:n,id:t})}dequeue(){const t=q(this,Qe).shift();return t==null?void 0:t.run}filter(t){return q(this,Qe).filter(n=>n.priority===t.priority).map(n=>n.run)}get size(){return q(this,Qe).length}}Qe=new WeakMap;var vn,yn,Ft,nr,bn,rr,et,wn,Me,ir,tt,Cn,St,sr,ai,ae,ju,Xu,Vu,Ku,Gu,zr,go,po,Ur,Ju,Hr;class hi extends Hu{constructor(n){var r,s,i,o;super();Ie(this,ae);Ie(this,vn);Ie(this,yn);Ie(this,Ft,0);Ie(this,nr);Ie(this,bn);Ie(this,rr,0);Ie(this,et);Ie(this,wn);Ie(this,Me);Ie(this,ir);Ie(this,tt,0);Ie(this,Cn);Ie(this,St);Ie(this,sr);Ie(this,ai,BigInt(1));ne(this,"timeout");if(n=z({carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:Ud},n),!(typeof n.intervalCap=="number"&&n.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(s=(r=n.intervalCap)==null?void 0:r.toString())!=null?s:""}\` (${typeof n.intervalCap})`);if(n.interval===void 0||!(Number.isFinite(n.interval)&&n.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(o=(i=n.interval)==null?void 0:i.toString())!=null?o:""}\` (${typeof n.interval})`);xe(this,vn,n.carryoverConcurrencyCount),xe(this,yn,n.intervalCap===Number.POSITIVE_INFINITY||n.interval===0),xe(this,nr,n.intervalCap),xe(this,bn,n.interval),xe(this,Me,new n.queueClass),xe(this,ir,n.queueClass),this.concurrency=n.concurrency,this.timeout=n.timeout,xe(this,sr,n.throwOnTimeout===!0),xe(this,St,n.autoStart===!1)}get concurrency(){return q(this,Cn)}set concurrency(n){if(!(typeof n=="number"&&n>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${n}\` (${typeof n})`);xe(this,Cn,n),Ne(this,ae,Ur).call(this)}setPriority(n,r){q(this,Me).setPriority(n,r)}add(s){return H(this,arguments,function*(n,r={}){var i;return(i=r.id)!=null||(r.id=(Mn(this,ai)._++).toString()),r=z({timeout:this.timeout,throwOnTimeout:q(this,sr)},r),new Promise((o,a)=>{q(this,Me).enqueue(()=>H(this,null,function*(){var u;Mn(this,tt)._++;try{(u=r.signal)==null||u.throwIfAborted(),Mn(this,Ft)._++;let c=n({signal:r.signal});r.timeout&&(c=qd(Promise.resolve(c),{milliseconds:r.timeout})),r.signal&&(c=Promise.race([c,Ne(this,ae,Ju).call(this,r.signal)]));const f=yield c;o(f),this.emit("completed",f)}catch(c){if(c instanceof Wu&&!r.throwOnTimeout){o();return}a(c),this.emit("error",c)}finally{Ne(this,ae,Vu).call(this)}}),r),this.emit("add"),Ne(this,ae,zr).call(this)})})}addAll(n,r){return H(this,null,function*(){return Promise.all(n.map(s=>H(this,null,function*(){return this.add(s,r)})))})}start(){return q(this,St)?(xe(this,St,!1),Ne(this,ae,Ur).call(this),this):this}pause(){xe(this,St,!0)}clear(){xe(this,Me,new(q(this,ir)))}onEmpty(){return H(this,null,function*(){q(this,Me).size!==0&&(yield Ne(this,ae,Hr).call(this,"empty"))})}onSizeLessThan(n){return H(this,null,function*(){q(this,Me).sizeq(this,Me).size{Ne(this,ae,Ku).call(this)},r)),!0}return!1},zr=function(){if(q(this,Me).size===0)return q(this,et)&&clearInterval(q(this,et)),xe(this,et,void 0),this.emit("empty"),q(this,tt)===0&&this.emit("idle"),!1;if(!q(this,St)){const n=!q(this,ae,Gu);if(q(this,ae,ju)&&q(this,ae,Xu)){const r=q(this,Me).dequeue();return r?(this.emit("active"),r(),n&&Ne(this,ae,go).call(this),!0):!1}}return!1},go=function(){q(this,yn)||q(this,et)!==void 0||(xe(this,et,setInterval(()=>{Ne(this,ae,po).call(this)},q(this,bn))),xe(this,rr,Date.now()+q(this,bn)))},po=function(){q(this,Ft)===0&&q(this,tt)===0&&q(this,et)&&(clearInterval(q(this,et)),xe(this,et,void 0)),xe(this,Ft,q(this,vn)?q(this,tt):0),Ne(this,ae,Ur).call(this)},Ur=function(){for(;Ne(this,ae,zr).call(this););},Ju=function(n){return H(this,null,function*(){return new Promise((r,s)=>{n.addEventListener("abort",()=>{s(n.reason)},{once:!0})})})},Hr=function(n,r){return H(this,null,function*(){return new Promise(s=>{const i=()=>{r&&!r()||(this.off(n,i),s())};this.on(n,i)})})};function Hd(e,t={}){return Xh([()=>{const n=new Vh(e,[0,1],t);return n.finished.catch(()=>{}),n}],t,t.duration)}function di(e,t,n){return(Wh(e)?Hd:jh)(e,t,n)}const os=(()=>{}),as=()=>!0,Sn={equals:!1};function Wd(e){return e!==null&&(typeof e=="object"||typeof e=="function")}const jd=e=>e!=null,Xd=e=>e.filter(jd),Vd=(e,t)=>e===t||e.length===t.length&&e.every((n,r)=>n===t[r]);function Kd(e){return(...t)=>{for(const n of e)n&&n(...t)}}const Xe=e=>typeof e=="function"&&!e.length?e():e,er=e=>Array.isArray(e)?e:e?[e]:[];function Zr(e,...t){return typeof e=="function"?e(...t):e}const Gd=Object.entries,Yu=W,Sb=()=>{let e=[];const t=()=>e=[];return{push:(...n)=>e.push(...n),execute(n,r,s,i){e.forEach(o=>o(n,r,s,i)),t()},clear:t}};function Jd(e){let t=0,n;return W(()=>t=0),(...r)=>{n=r,t++,queueMicrotask(()=>--t===0&&e(...n))}}function Zu(e,t,n,r){const s=e.length,i=t.length;let o=0;if(!i){for(;o{er(Xe(e)).forEach(i=>{i&&er(Xe(t)).forEach(o=>Vt(i,o,n,r))})};typeof e=="function"?K(s):ce(s)}function ef(e,t,n){for(const[r,s]of Gd(t))s&&me(e,r,s,n)}const Qd=(e,t)=>e.length>0?()=>e(G(t)):e;function tf(e,t){let n=0;const r=e.map((s,i)=>N(()=>(n=i,s()),void 0,Sn));return N(()=>r.map(s=>s())[n],void 0,t)}function e0(e,t){const n=e.map((r,s)=>{const i={dirty:!0,get:null};return i.get=N(()=>(i.dirty=!0,r()),void 0,Sn),i});return n0(()=>n.reduce((r,s)=>{const i=s.get();return s.dirty&&(s.dirty=!1,r.push(i)),r},[]),void 0)}function t0(e,t,n){let r=()=>t;const[s,i]=F(t,Sn),o=N(Qd(e,()=>r()),t,Sn);return[r=tf([s,o],n),(a=>i(()=>typeof a=="function"?a(G(r)):a))]}function n0(e,t,n){let r=!1,s=!0;const[i,o]=F(void 0,Sn),a=N(u=>r?e(u):(s=!i(),u),t,Sn);return()=>{r=!0,s&&(s=o());const u=a();return r=!1,u}}function ia(e,t){t.observe(e)}function r0(e,t,n){const r=new IntersectionObserver(t,n),s=u=>ia(u,r),i=u=>r.unobserve(u),o=()=>e.forEach(s),a=()=>r.takeRecords().forEach(u=>i(u.target));return o(),{add:s,remove:i,start:o,stop:W(()=>r.disconnect()),reset:a,instance:r}}function nf(e,t,n){const r=new IntersectionObserver(t,n);W(()=>r.disconnect()),K(s=>{const i=e();return Zu(i,s,o=>ia(o,r),o=>r.unobserve(o)),i},[])}function rf(...e){let t=[],n={};Array.isArray(e[0])||e[0]instanceof Function?e[1]instanceof Function?(t=Xe(e[0]).map(h=>[h,e[1]]),n=e[2]):(t=Xe(e[0]),n=e[1]):n=e[0];const r=new WeakMap,s=(h,d)=>h.forEach(g=>{var v;const p=(v=r.get(g.target))==null?void 0:v(g,d);p instanceof Function&&p(g,d)}),{add:i,remove:o,stop:a,instance:u}=r0([],s,n),c=(h,d)=>{i(h),r.set(h,d)},f=h=>{r.delete(h),o(h)},l=()=>t.forEach(([h,d])=>c(h,d));return rn(l),[c,{remove:f,start:l,stop:a,instance:u}]}function gi(e,t){const n=new WeakMap,r=new IntersectionObserver((a,u)=>{var c;for(const f of a)(c=n.get(f.target))==null||c(f,u)},e);W(()=>r.disconnect());function s(a){r.unobserve(a),n.delete(a)}function i(a,u){ia(a,r),n.set(a,u)}const o=t?(a,u)=>{const c=Xe(t);return f=>u(c(f,{visible:G(a)}))}:(a,u)=>c=>u(c.isIntersecting);return a=>{var h;const[u,c]=F((h=e==null?void 0:e.initialValue)!=null?h:!1),f=o(u,c);let l;return a instanceof Element?i(a,f):K(()=>{const d=a();d!==l&&(l&&s(l),d&&i(d,f),l=d)}),W(()=>l&&s(l)),u}}var Kt;(function(e){e.Entering="Entering",e.Leaving="Leaving",e.Inside="Inside",e.Outside="Outside"})(Kt||(Kt={}));function i0(e,t){return e?t?Kt.Inside:Kt.Entering:t===!0?Kt.Leaving:Kt.Outside}function s0(e){return()=>{let t;const n=Xe(e);return(r,s)=>{const{isIntersecting:i}=r,o=i0(i,t);return t=i,n(r,se(z({},s),{occurrence:o}))}}}var jt;(function(e){e.Left="Left",e.Right="Right",e.None="None"})(jt||(jt={}));var Xt;(function(e){e.Top="Top",e.Bottom="Bottom",e.None="None"})(Xt||(Xt={}));function o0(e,t,n){let r=jt.None,s=Xt.None;return t?(e.topt.top&&(s=n?Xt.Top:Xt.Bottom),e.left>t.left?r=n?jt.Left:jt.Right:e.left{let t;const n=Xe(e);return(r,s)=>{const{boundingClientRect:i}=r,o=o0(i,t,r.isIntersecting);return t=i,n(r,z(z({},s),o))}}}const mo=()=>{},tc=(e,t)=>t();function pi(e,t){const n=G(e),r=n?[n]:[],{onEnter:s=tc,onExit:i=tc}=t,[o,a]=F(t.appear?[]:r),[u]=ci();let c,f=!1;function l(g,p){if(!g)return p&&p();f=!0,i(g,()=>{Ge(()=>{f=!1,a(v=>v.filter(m=>m!==g)),p&&p()})})}function h(g){const p=c;if(!p)return g&&g();c=void 0,a(v=>[p,...v]),s(p,g!=null?g:mo)}const d=t.mode==="out-in"?g=>f||l(g,h):t.mode==="in-out"?g=>h(()=>l(g)):g=>{l(g),h()};return Z(g=>{const p=e();return G(u)?(u(),g):(p!==g&&(c=p,Ge(()=>G(()=>d(g)))),p)},t.appear?void 0:n),o}function mi(e,t){const n=G(e),{onChange:r}=t;let s=new Set(t.appear?void 0:n);const i=new WeakSet,[o,a]=F([],{equals:!1}),[u]=ci(),c=t.exitMethod==="remove"?mo:l=>{a(h=>(h.push.apply(h,l),h));for(const h of l)i.delete(h)},f=t.exitMethod==="remove"?mo:t.exitMethod==="keep-index"?(l,h,d)=>l.splice(d,0,h):(l,h)=>l.push(h);return N(l=>{const h=o(),d=e();if(d[Kh],G(u))return u(),l;if(h.length){const g=l.filter(p=>!h.includes(p));return h.length=0,r({list:g,added:[],removed:[],unchanged:g,finishRemoved:c}),g}return G(()=>{const g=new Set(d),p=d.slice(),v=[],m=[],y=[];for(const b of d)(s.has(b)?y:v).push(b);let w=!v.length;for(let b=0;b(er(Xe(t)).forEach(r=>r&&_n(r,W.bind(void 0,n))),e(n)),t[0])}const c0=(e,t=He())=>t?((...n)=>_n(t,()=>e(...n))):e;function sf(e,...t){return sa(n=>(e(n),n),...t)}function ur(e,t=He()){let n=0,r,s;return()=>(n++,W(()=>{n--,queueMicrotask(()=>{!n&&s&&(s(),s=r=void 0)})}),s||Ee(i=>r=e(s=i),t),r)}function Bn(e,t={}){let n=0;const{limit:r=100}=t,s=new Array(r),i=He(),o=e.length>1?(f,[l,h])=>{const[d,g]=F(!0),p={dispose:f,set:h,setA:g,active:d,v:e(l,d,()=>c(p))};return p}:(f,[l,h])=>({dispose:f,set:h,setA:as,active:as,v:e(l,as,os)}),a=Jd(()=>{if(n>r){for(let f=r;f{f.dispose!==os&&(s[n++]=f,f.setA(!1),a())},c=f=>{f.dispose(),f.dispose=os,f.active()?f.setA(!1):(s[s.indexOf(f)]=s[--n],s[n]=void 0)};return W(()=>{for(let f=0;f{let l;return n?(l=s[--n],s[n]=void 0,Ge(()=>{l.set(()=>f),l.setA(!0)})):l=Ee(h=>o(h,F(f)),i),W(()=>u(l)),l.v}}const vi=ur(()=>{const[e,t]=F(null);return Vt(window,"keydown",n=>{t(n),setTimeout(()=>t(null))}),e}),l0=ur(()=>{const[e,t]=F([]),n=()=>t([]),r=vi();return Vt(window,"keydown",s=>{if(s.repeat||typeof s.key!="string")return;const i=s.key.toUpperCase(),o=e();if(o.includes(i))return;const a=[...o,i];o.length===0&&i!=="ALT"&&i!=="CONTROL"&&i!=="META"&&i!=="SHIFT"&&(s.shiftKey&&a.unshift("SHIFT"),s.altKey&&a.unshift("ALT"),s.ctrlKey&&a.unshift("CONTROL"),s.metaKey&&a.unshift("META")),t(a)}),Vt(window,"keyup",s=>{if(typeof s.key!="string")return;const i=s.key.toUpperCase();t(o=>o.filter(a=>a!==i))}),Vt(window,"blur",n),Vt(window,"contextmenu",s=>{s.defaultPrevented||n()}),e[0]=e,e[1]={event:r},e[Symbol.iterator]=function*(){yield e[0],yield e[1]},e}),u0=ur(()=>{const e=l0();let t=G(e);return N(()=>{const n=e(),r=t;return t=n,r.length===0&&n.length===1?n[0]:null})});function f0(e,t={}){e=e.toUpperCase();const{preventDefault:n=!0}=t,r=vi(),s=u0();return N(()=>{var i;return s()===e&&(n&&((i=r())==null||i.preventDefault()),!0)})}function h0(){const[e,t]=F(!1);return rn(()=>t(!0)),e}const kt=e=>{const t=Ee(n=>{const r=N(e),s=new Promise((i,o)=>{Z(()=>{r()&&(i(r()),n())}),W(o)});return s.dispose=n,s});return He()&&W(t.dispose),t};function an(...e){return Kd(e)}const En=e=>e instanceof Element;function vo(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return vo(e(),t);if(Array.isArray(e)){const n=[];for(const r of e){const s=vo(r,t);s&&(Array.isArray(s)?n.push.apply(n,s):n.push(s))}return n.length?n:null}return null}function oa(e,t=En,n=En){const r=N(e),s=N(()=>vo(r(),t));return s.toArray=()=>{const i=s();return Array.isArray(i)?i:i?[i]:[]},s}function yo(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return yo(e(),t);if(Array.isArray(e))for(const n of e){const r=yo(n,t);if(r)return r}return null}function Rt(e,t=En,n=En){const r=N(e);return N(()=>yo(r(),t))}function d0(e){const t=e.ref,n=Ae(()=>e.children);let r=[];return Z(()=>{const s=n.toArray().filter(En);Vd(r,s)||G(()=>t(s)),r=s},[]),W(()=>r.length&&t([])),n}function Ln(e){const t=e.ref,n=Ae(()=>e.children);let r;return Z(()=>{const s=n.toArray().find(En);s!==r&&G(()=>t(s)),r=s}),W(()=>r&&t(void 0)),n}function bo(e){const t=z({},e),n=z({},e),r={},s=o=>{let a=r[o];if(!a){if(!Wo())return t[o];r[o]=a=F(t[o],{internal:!0}),delete t[o]}return a[0]()};for(const o in e)Object.defineProperty(n,o,{get:()=>s(o),enumerable:!0});const i=(o,a)=>{const u=r[o];if(u)return u[1](a);o in t&&(t[o]=Zr(a,t[o]))};return[n,(o,a)=>{if(Wd(o)){const u=G(()=>Object.entries(Zr(o,n)));Ge(()=>{for(const[c,f]of u)i(c,()=>f)})}else i(o,a);return n}]}function g0(e,t){if(cu.context){const[n,r]=bo(e);return rn(()=>r(t())),[n,r]}return bo(t())}function p0(e,t){const n=new ResizeObserver(e);return W(n.disconnect.bind(n)),{observe:r=>n.observe(r,t),unobserve:n.unobserve.bind(n)}}function aa(e,t,n){const r=new WeakMap,{observe:s,unobserve:i}=p0(o=>{for(const a of o){const{contentRect:u,target:c}=a,f=Math.round(u.width),l=Math.round(u.height),h=r.get(c);(!h||h.width!==f||h.height!==l)&&(t(u,c,a),r.set(c,{width:f,height:l}))}},n);K(o=>{const a=Xd(er(Xe(e)));return Zu(a,o,s,i),a},[])}const m0={width:0,height:0};function nc(){return{width:window.innerWidth,height:window.innerHeight}}function v0(){const[e,t]=g0(m0,nc);return Vt(window,"resize",()=>t(nc())),e}const of={width:null,height:null};function cs(e){if(!e)return z({},of);const{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function wo(e){const t=typeof e=="function",[n,r]=bo(cu.context||t?of:cs(e)),s=new ResizeObserver(([i])=>r(cs(i.target)));return W(()=>s.disconnect()),t?K(()=>{const i=e();i&&(r(cs(i)),s.observe(i),W(()=>s.unobserve(i)))}):(s.observe(e),W(()=>s.unobserve(e))),n}const y0=new hi({concurrency:1}),b0=e=>new Promise(t=>setTimeout(t,e)),w0=(e,t)=>{const[n,r]=F(!1);return K(s=>{if(e())return s||G(()=>{let i=()=>{};const o=new Promise(u=>{i=u}),a=()=>H(null,null,function*(){var u,c;return yield b0((u=t==null?void 0:t.delay)!=null?u:0),(c=t==null?void 0:t.onRender)==null||c.call(t),r(!0),o});return y0.add(a,{priority:t==null?void 0:t.priority}).then(()=>{r(!1)}),i});s&&s()}),[n]},C0=e=>{const t=Rt(()=>e.children),n=j({priority:0,delay:200,onRender:()=>{}},e),[r]=w0(t,n);return C(ee,{get when(){return r()},get children(){return e.children}})};var _0=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),x0=["clear","getItem","getAll","setItem","removeItem","key","getLength"],S0=e=>(e.withOptions=t=>x0.reduce((n,r)=>(typeof e[r]=="function"&&(n[r]=(...s)=>(s[e[r].length-1]=t,e[r](...s))),n),{get length(){return e.length},withOptions:n=>e.withOptions(n)}),e),E0={domain:"Domain",expires:"Expires",path:"Path",secure:"Secure",httpOnly:"HttpOnly",maxAge:"Max-Age",sameSite:"SameSite"};function A0(e){if(!e)return"";const t=Object.entries(e).map(([n,r])=>{const s=E0[n];if(s)return r instanceof Date?`${s}=${r.toUTCString()}`:typeof r=="boolean"?r?`${s}`:void 0:`${s}=${r}`}).filter(n=>!!n);return t.length!=0?`; ${t.join("; ")}`:""}function k0(e,t){var n,r;return(r=(n=e.match(`(^|;)\\s*${t}\\s*=\\s*([^;]+)`))==null?void 0:n.pop())!=null?r:null}var $n=S0(_0({_read:()=>document.cookie,_write:(e,t,n)=>{document.cookie=`${e}=${t}${A0(n)}`},getItem:(e,t)=>k0($n._read(t),e),setItem:(e,t,n)=>{$n._write(e,t,n)},removeItem:(e,t)=>{$n._write(e,"deleted",se(z({},t),{expires:new Date(0)}))},key:(e,t)=>{let n=null,r=0;return $n._read(t).replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(s,i)=>(!n&&i&&r++===e&&(n=i),"")),n},getLength:e=>{let t=0;return $n._read(e).replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,n=>(t+=n?1:0,"")),t},get length(){return this.getLength()}}));function af(e,t={}){var f;const n=t.storage||globalThis.localStorage,r=t.name||`storage-${Gh()}`;if(!n)return e;const s=t.storageOptions,i=t.serialize||JSON.stringify.bind(JSON),o=t.deserialize||JSON.parse.bind(JSON),a=n.getItem(r,s),u=typeof e[0]=="function"?l=>{try{const h=o(l);e[1](()=>h)}catch(h){}}:l=>{try{const h=o(l);e[1](lu(h))}catch(h){}};let c=!0;if(a instanceof Promise?a.then(l=>c&&l&&u(l)):a&&u(a),typeof((f=t.sync)==null?void 0:f[0])=="function"){const l=typeof e[0]=="function"?e[0]:()=>e[0];t.sync[0](h=>{h.key!==r||(h.url||globalThis.location.href)!==globalThis.location.href||h.newValue===i(G(l))||u(h.newValue)})}return[e[0],typeof e[0]=="function"?l=>{var g;const h=e[1](l),d=l!=null?i(h):l;return(g=t.sync)==null||g[1](r,d),l!=null?n.setItem(r,d,s):n.removeItem(r,s),c=!1,h}:(...l)=>{var d;e[1](...l);const h=i(G(()=>e[0]));(d=t.sync)==null||d[1](r,h),n.setItem(r,h,s),c=!1}]}var I0=[e=>window.addEventListener("storage",t=>e(t)),()=>{}];const ls=(e,t,n)=>{const r=n(e,t);return W(()=>clearInterval(r))},yi=(e,t,n)=>{if(typeof t=="number"){ls(e,t,n);return}let r=!1,s=performance.now(),i=0,o=!1;const a=()=>{G(e),s=performance.now(),r=n===setTimeout};K(u=>{if(r)return;const c=t();if(c===!1)return u&&(i+=(performance.now()-s)/u),c;if(u===!1&&(s=performance.now()),o){if(u&&(i+=(performance.now()-s)/u),s=performance.now(),i>=1)i=0,a();else if(i>0){const[f,l]=F(void 0,{equals:!1});return f(),ls(()=>{i=0,o=!1,l(),a()},(1-i)*c,setTimeout),c}}return o=!0,ls(a,c,n),c})};function D0(e,{ease:t=r=>r,duration:n=100}){const[r,s]=F(e());let i,o,a,u;function c(f){const l=f-i;l{i=performance.now(),o=r(),a=e()-o,u=requestAnimationFrame(c),W(()=>cancelAnimationFrame(u))},{defer:!0})),r}const R0=3e9;function fr(e,t,n={}){var m,y;const{lazy:r,version:s,initialValue:i,expires:o=T0}=n,[a,u]=F(!1),c=N(()=>{const w=e();if(!w)return w;const b=JSON.stringify(w);let _=Gn.cache.get(b);return _||(_=new Gn(b,i,s),Gn.cache.set(b,_)),[w,_]}),f=N(()=>{var w;return(w=c())==null?void 0:w[1]}),l=F((y=(m=f())==null?void 0:m.get(!0))==null?void 0:y.data),[h,d]=F(!!l[0]());Z(()=>{const w=f();w&&W(w.ref(l[1],r))});const[g,{mutate:p,refetch:v}]=uu(c,([w,b],_)=>{function x(){var B;return(B=b.get(!0))==null?void 0:B.data}function S(){function B(){const k=b.get();if(k&&k.ver===s)return k.data}if(!_.refetching){if(b.pending)return b.pending.then(()=>B()||T());const k=B();if(k)return k}function T(){const k=D();return u(!0),b.set(k).then(()=>(Ge(()=>{u(!1),d(!1)}),x()))}function A(k){return Math.min(k,R0)}function D(){return H(this,null,function*(){const I={data:yield t(w,_),ver:s},O=A(o),R=Date.now();return I.ts=R+O,I})}return T()}const E=S();if(E instanceof Promise){const B=x();return B?(E.then(T=>b.update(T)).catch(()=>{}),B):E}else return E},{initialValue:i,storage:()=>l});return[g,{cache:h,mutate:p,refetch:v,pending:N(()=>g.loading||a())}]}const T0=3e5,dt=class dt{constructor(t,n,r){ne(this,"key");ne(this,"data");ne(this,"count",0);ne(this,"die",!1);ne(this,"lock");ne(this,"pending");ne(this,"timer",-1);ne(this,"storage",[]);this.key=t;const s=n?{data:n,ver:r,ts:-1}:void 0;this.data=s}update(t){for(const n of this.storage)n(t)}ref(t,n=!1){return n&&this.count++,this.storage.push(t),()=>{const r=this.storage.indexOf(t);n&&(this.count--,this.storage.splice(r,1),this.count===0&&(this.lock=void 0,this.die&&dt.delete(this.key)))}}get(t=!1){const n=this.lock||this.data;if(n){const r=Date.now();if(t||n.ts>r)return n}}set(t){return H(this,null,function*(){var n;this.pending=t;try{const r=yield t;this.count>0&&(this.lock=this.lock||(((n=this.data)==null?void 0:n.ts)!==-1?this.data:r)||r,this.lock.ts=r.ts),this.data=r;const s=Date.now(),i=r.ts-s;this.timer>0&&clearTimeout(this.timer),i<1e8&&(this.timer=setTimeout(()=>{this.die=!0,dt.delete(this.key)},i))}finally{this.pending=void 0}})}invalidate(){this.data=this.lock=this.pending=void 0}static get(t){let n=dt.cache.get(t);return n||(n=new dt(t),dt.cache.set(t,n)),n}static delete(t){const n=dt.cache.get(t);n&&n.count===0&&dt.cache.delete(t)}};ne(dt,"cache",new Map);let Gn=dt,Co;function O0(e){Co=e}let fn;function Le(){return fn||(fn=Jh.create({baseURL:"/api"}),fn.interceptors.request.use(e=>(e.cache&&(e.baseURL="/cache",delete e.cache),e.headers=e.headers||{},e),e=>Promise.reject(String(e)+":REQ!")),fn.interceptors.response.use(e=>{const t=e.data;if(t.code===0)return t.data;{(t.code===403||t.code==="403")&&window.location.reload();const n=new Qr(t.msg,t.code,t,e.config.url,e.config.method);return Promise.reject(n)}},e=>e instanceof Qr?Promise.reject(e):e&&e.response?Promise.reject(new ei("Oops! We lost your network, Please have a check!","",e)):Promise.reject(new ei("Network error!","",e))),fn.interceptors.response.use(e=>e,e=>H(null,null,function*(){return Co&&(yield Co(e)),Promise.reject(e)}))),fn}class cn extends Error{constructor(n,r,s={},i){super(n);ne(this,"kind");ne(this,"meta");this.kind=r,this.meta=s,this.name="AppError",i instanceof Error&&i.stack&&(this.stack=i.stack)}}class Qr extends cn{constructor(n,r,s,i,o){super(n,"biz",{bizCode:r,url:i,httpStatus:200,method:o});ne(this,"code");ne(this,"response");this.code=r,this.response=s,this.name="HttpResponseError"}}class ei extends cn{constructor(n,r,s){var c,f,l;const i=(c=s==null?void 0:s.response)==null?void 0:c.status,o=(f=s==null?void 0:s.config)==null?void 0:f.url,a=(l=s==null?void 0:s.config)==null?void 0:l.method,u=s==null?void 0:s.code;super(n,i?"http":"network",{httpStatus:i,url:o,method:a,axiosCode:u},s);ne(this,"tip");this.tip=r,this.name="ErrorWithTip"}}const us=[{level:0,levelName:"Beginner",levelXp:0,minXp:0,maxXp:1e3},{level:1,levelName:"Bronze I",levelXp:1e3,minXp:1e3,maxXp:3e3},{level:2,levelName:"Bronze II",levelXp:3e3,minXp:3e3,maxXp:7e3},{level:3,levelName:"Bronze III",levelXp:7e3,minXp:7e3,maxXp:15e3},{level:4,levelName:"Bronze IV",levelXp:15e3,minXp:15e3,maxXp:3e4},{level:5,levelName:"Silver I",levelXp:3e4,minXp:3e4,maxXp:6e4},{level:6,levelName:"Silver II",levelXp:6e4,minXp:6e4,maxXp:12e4},{level:7,levelName:"Silver III",levelXp:12e4,minXp:12e4,maxXp:24e4},{level:8,levelName:"Silver IV",levelXp:24e4,minXp:24e4,maxXp:5e5},{level:9,levelName:"Gold I",levelXp:5e5,minXp:5e5,maxXp:1e6},{level:10,levelName:"Gold II",levelXp:1e6,minXp:1e6,maxXp:2e6},{level:11,levelName:"Gold III",levelXp:2e6,minXp:2e6,maxXp:35e5},{level:12,levelName:"Gold IV",levelXp:35e5,minXp:35e5,maxXp:6e6},{level:13,levelName:"Platinum I",levelXp:6e6,minXp:6e6,maxXp:85e5},{level:14,levelName:"Platinum II",levelXp:85e5,minXp:85e5,maxXp:11e6},{level:15,levelName:"Platinum III",levelXp:11e6,minXp:11e6,maxXp:15e6},{level:16,levelName:"Platinum IV",levelXp:15e6,minXp:15e6,maxXp:25e6},{level:17,levelName:"Diamond I",levelXp:25e6,minXp:25e6,maxXp:4e7},{level:18,levelName:"Diamond II",levelXp:4e7,minXp:4e7,maxXp:65e6},{level:19,levelName:"Diamond III",levelXp:65e6,minXp:65e6,maxXp:11e7},{level:20,levelName:"Diamond IV",levelXp:11e7,minXp:11e7,maxXp:2e8},{level:21,levelName:"Diamond V",levelXp:2e8,minXp:2e8,maxXp:4e8},{level:22,levelName:"Diamond VI",levelXp:4e8,minXp:4e8,maxXp:1e9},{level:23,levelName:"Diamond VII",levelXp:1e9,minXp:1e9,maxXp:15e8},{level:24,levelName:"Eternal I",levelXp:15e8,minXp:15e8,maxXp:22e8},{level:25,levelName:"Eternal II",levelXp:22e8,minXp:22e8,maxXp:32e8},{level:26,levelName:"Eternal III",levelXp:32e8,minXp:32e8,maxXp:45e8},{level:27,levelName:"Eternal IV",levelXp:45e8,minXp:45e8,maxXp:6e9},{level:28,levelName:"Eternal V",levelXp:6e9,minXp:6e9,maxXp:72e8},{level:29,levelName:"Eternal VI",levelXp:72e8,minXp:72e8,maxXp:83e8},{level:30,levelName:"Eternal VII",levelXp:83e8,minXp:83e8,maxXp:9e9},{level:31,levelName:"Eternal VIII",levelXp:9e9,minXp:9e9,maxXp:95e8},{level:32,levelName:"Eternal IX",levelXp:95e8,minXp:95e8,maxXp:1e10},{level:33,levelName:"Eternal X",levelXp:1e10,minXp:1e10,maxXp:1e10}],cf=Ee(()=>fr(()=>["/game/support/vip-v2/config/"],t=>H(null,[t],function*([e]){var n;try{const r=yield Le().get(e);return!Array.isArray(r)||r.length===0||typeof((n=r[0])==null?void 0:n.level)!="number"?us:r}catch(r){return console.warn("[vipV2Config] fetch failed, using default config",r),us}}),{version:1,initialValue:us,expires:864e5})),rc=[0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,5,5,6,6,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8];function lf(e){return e<0?0:e>=rc.length?8:rc[e]}function uf(e,t){const n=zu(JSON.stringify(e)).toString(36),r=localStorage,s=t.name;function i(){let c=r.getItem(s);if(c=c&&c.indexOf(n)===-1?null:c,!c)return null;try{return(t.deserialize||JSON.parse)(c)}catch(f){return null}}const o=i(),[a,u]=it(se(z(se(z({},e),{__version:n}),o!=null?o:{}),{_isStale:!0}));return K(()=>{const l=a,{_isStale:c}=l,f=Fi(l,["_isStale"]);r.setItem(s,JSON.stringify(f))}),[a,u]}const B0="modulepreload",L0=function(e){return"/"+e},ic={},hr=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(l=>({status:"fulfilled",value:l}),l=>({status:"rejected",reason:l}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=u(n.map(c=>{if(c=L0(c),c in ic)return;ic[c]=!0;const f=c.endsWith(".css"),l=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${l}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":B0,f||(h.as="script"),h.crossOrigin="",h.href=c,a&&h.setAttribute("nonce",a),document.head.appendChild(h),f)return new Promise((d,g)=>{h.addEventListener("load",d),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};var wr={exports:{}},fs,sc;function ff(){if(sc)return fs;sc=1;var e=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];fs=function(i){var o=i,a=i.indexOf("["),u=i.indexOf("]");a!=-1&&u!=-1&&(i=i.substring(0,a)+i.substring(a,u).replace(/:/g,";")+i.substring(u,i.length));for(var c=e.exec(i||""),f={},l=14;l--;)f[t[l]]=c[l]||"";return a!=-1&&u!=-1&&(f.source=o,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=n(f,f.path),f.queryKey=r(f,f.query),f};function n(s,i){var o=/\/{2,9}/g,a=i.replace(o,"/").split("/");return(i.substr(0,1)=="/"||i.length===0)&&a.splice(0,1),i.substr(i.length-1,1)=="/"&&a.splice(a.length-1,1),a}function r(s,i){var o={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,u,c){u&&(o[u]=c)}),o}return fs}var Cr={exports:{}},_r={exports:{}},hs,oc;function P0(){if(oc)return hs;oc=1;var e=1e3,t=e*60,n=t*60,r=n*24,s=r*365.25;hs=function(c,f){f=f||{};var l=typeof c;if(l==="string"&&c.length>0)return i(c);if(l==="number"&&isNaN(c)===!1)return f.long?a(c):o(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function i(c){if(c=String(c),!(c.length>100)){var f=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c);if(f){var l=parseFloat(f[1]),h=(f[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"days":case"day":case"d":return l*r;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*t;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function o(c){return c>=r?Math.round(c/r)+"d":c>=n?Math.round(c/n)+"h":c>=t?Math.round(c/t)+"m":c>=e?Math.round(c/e)+"s":c+"ms"}function a(c){return u(c,r,"day")||u(c,n,"hour")||u(c,t,"minute")||u(c,e,"second")||c+" ms"}function u(c,f,l){if(!(c=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function s(c){var f=this.useColors;if(c[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+c[0]+(f?"%c ":" ")+"+"+t.humanize(this.diff),!!f){var l="color: "+this.color;c.splice(1,0,l,"color: inherit");var h=0,d=0;c[0].replace(/%[a-zA-Z%]/g,function(g){g!=="%%"&&(h++,g==="%c"&&(d=h))}),c.splice(d,0,l)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch(f){}}function a(){var c;try{c=t.storage.debug}catch(f){}return!c&&typeof process!="undefined"&&"env"in process&&(c=n.DEBUG),c}t.enable(a());function u(){try{return window.localStorage}catch(c){}}})(Cr,Cr.exports)),Cr.exports}var ds,lc;function F0(){if(lc)return ds;lc=1;var e=ff(),t=bi()("socket.io-client:url");ds=n;function n(r,s){var i=r;s=s||typeof location!="undefined"&&location,r==null&&(r=s.protocol+"//"+s.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=s.protocol+r:r=s.host+r),/^(https?|wss?):\/\//.test(r)||(t("protocol-less url %s",r),typeof s!="undefined"?r=s.protocol+"//"+r:r="https://"+r),t("parse %s",r),i=e(r)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";var o=i.host.indexOf(":")!==-1,a=o?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+a+":"+i.port,i.href=i.protocol+"://"+a+(s&&s.port===i.port?"":":"+i.port),i}return ds}var gs={},xr={exports:{}},Sr={exports:{}},ps,uc;function M0(){if(uc)return ps;uc=1;var e=1e3,t=e*60,n=t*60,r=n*24,s=r*365.25;ps=function(c,f){f=f||{};var l=typeof c;if(l==="string"&&c.length>0)return i(c);if(l==="number"&&isNaN(c)===!1)return f.long?a(c):o(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function i(c){if(c=String(c),!(c.length>100)){var f=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c);if(f){var l=parseFloat(f[1]),h=(f[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"days":case"day":case"d":return l*r;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*t;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function o(c){return c>=r?Math.round(c/r)+"d":c>=n?Math.round(c/n)+"h":c>=t?Math.round(c/t)+"m":c>=e?Math.round(c/e)+"s":c+"ms"}function a(c){return u(c,r,"day")||u(c,n,"hour")||u(c,t,"minute")||u(c,e,"second")||c+" ms"}function u(c,f,l){if(!(c=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function s(c){var f=this.useColors;if(c[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+c[0]+(f?"%c ":" ")+"+"+t.humanize(this.diff),!!f){var l="color: "+this.color;c.splice(1,0,l,"color: inherit");var h=0,d=0;c[0].replace(/%[a-zA-Z%]/g,function(g){g!=="%%"&&(h++,g==="%c"&&(d=h))}),c.splice(d,0,l)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch(f){}}function a(){var c;try{c=t.storage.debug}catch(f){}return!c&&typeof process!="undefined"&&"env"in process&&(c=n.DEBUG),c}t.enable(a());function u(){try{return window.localStorage}catch(c){}}})(xr,xr.exports)),xr.exports}var ms={exports:{}},dc;function Pn(){return dc||(dc=1,(function(e){e.exports=t;function t(r){if(r)return n(r)}function n(r){for(var s in t.prototype)r[s]=t.prototype[s];return r}t.prototype.on=t.prototype.addEventListener=function(r,s){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(s),this},t.prototype.once=function(r,s){function i(){this.off(r,i),s.apply(this,arguments)}return i.fn=s,this.on(r,i),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(r,s){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+r];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var o,a=0;a=0&&a.numw)throw new Error("too many attachments");_.attachments=E}if(y.charAt(b+1)==="/"){for(var x=b+1;++b;){var B=y.charAt(b);if(B===","||b===y.length)break}_.nsp=y.substring(x,b)}else _.nsp="/";var T=y.charAt(b+1);if(T!==""&&Number(T)==T){for(var x=b+1;++b;){var B=y.charAt(b);if(B==null||Number(B)!=B){--b;break}if(b===y.length)break}_.id=Number(y.substring(x,b+1))}if(y.charAt(++b)){var A=g(y.substr(b));if(h(_.type,A))_.data=A;else throw new Error("invalid payload")}return t("decoded %s as %j",y,_),_}function g(y){try{return JSON.parse(y)}catch(w){return!1}}l.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function p(y){this.reconPack=y,this.buffers=[]}p.prototype.takeBinaryData=function(y){if(this.buffers.push(y),this.buffers.length===this.reconPack.attachments){var w=r.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),w}return null},p.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function v(y){return{type:e.ERROR,data:"parser error: "+y}}var m=Number.isInteger||function(y){return typeof y=="number"&&isFinite(y)&&Math.floor(y)===y}})(gs)),gs}var Er={exports:{}},Ar={},kr={exports:{}},yc;function U0(){if(yc)return kr.exports;yc=1;try{kr.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){kr.exports=!1}return kr.exports}var bs,bc;function ua(){return bc||(bc=1,bs=(function(){return typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")()})()),bs}var ws,wc;function fa(){if(wc)return ws;wc=1;var e=U0(),t=ua();return ws=function(n){var r=n.xdomain,s=n.xscheme,i=n.enablesXDR;try{if(typeof XMLHttpRequest!="undefined"&&(!r||e))return new XMLHttpRequest}catch(o){}try{if(typeof XDomainRequest!="undefined"&&!s&&i)return new XDomainRequest}catch(o){}if(!r)try{return new t[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(o){}},ws}var Ir={exports:{}},Cs={},_s,Cc;function H0(){return Cc||(Cc=1,_s=Object.keys||function(t){var n=[],r=Object.prototype.hasOwnProperty;for(var s in t)r.call(t,s)&&n.push(s);return n}),_s}var xs,_c;function df(){if(_c)return xs;_c=1;var e=ca(),t=Object.prototype.toString,n=typeof Blob=="function"||typeof Blob!="undefined"&&t.call(Blob)==="[object BlobConstructor]",r=typeof File=="function"||typeof File!="undefined"&&t.call(File)==="[object FileConstructor]";xs=s;function s(i){if(!i||typeof i!="object")return!1;if(e(i)){for(var o=0,a=i.length;or&&(n=r),t>=r||t>=n||r===0)return new ArrayBuffer(0);for(var s=new Uint8Array(e),i=new Uint8Array(n-t),o=t,a=0;o=55296&&m<=56319&&p65535&&(v-=65536,m+=e(v>>>10&1023|55296),v=56320|v&1023),m+=e(v);return m}function r(d,g){if(d>=55296&&d<=57343){if(g)throw Error("Lone surrogate U+"+d.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function s(d,g){return e(d>>g&63|128)}function i(d,g){if((d&4294967168)==0)return e(d);var p="";return(d&4294965248)==0?p=e(d>>6&31|192):(d&4294901760)==0?(r(d,g)||(d=65533),p=e(d>>12&15|224),p+=s(d,6)):(d&4292870144)==0&&(p=e(d>>18&7|240),p+=s(d,12),p+=s(d,6)),p+=e(d&63|128),p}function o(d,g){g=g||{};for(var p=g.strict!==!1,v=t(d),m=v.length,y=-1,w,b="";++y=f)throw Error("Invalid byte index");var d=c[l]&255;if(l++,(d&192)==128)return d&63;throw Error("Invalid continuation byte")}function u(d){var g,p,v,m,y;if(l>f)throw Error("Invalid byte index");if(l==f)return!1;if(g=c[l]&255,l++,(g&128)==0)return g;if((g&224)==192){if(p=a(),y=(g&31)<<6|p,y>=128)return y;throw Error("Invalid continuation byte")}if((g&240)==224){if(p=a(),v=a(),y=(g&15)<<12|p<<6|v,y>=2048)return r(y,d)?y:65533;throw Error("Invalid continuation byte")}if((g&248)==240&&(p=a(),v=a(),m=a(),y=(g&7)<<18|p<<12|v<<6|m,y>=65536&&y<=1114111))return y;throw Error("Invalid UTF-8 detected")}var c,f,l;function h(d,g){g=g||{};var p=g.strict!==!1;c=t(d),f=c.length,l=0;for(var v=[],m;(m=u(p))!==!1;)v.push(m);return n(v)}return As={version:"2.1.2",encode:o,decode:h},As}var Dr={},Ac;function V0(){return Ac||(Ac=1,(function(e){Dr.encode=function(t){var n=new Uint8Array(t),r,s=n.length,i="";for(r=0;r>2],i+=e[(n[r]&3)<<4|n[r+1]>>4],i+=e[(n[r+1]&15)<<2|n[r+2]>>6],i+=e[n[r+2]&63];return s%3===2?i=i.substring(0,i.length-1)+"=":s%3===1&&(i=i.substring(0,i.length-2)+"=="),i},Dr.decode=function(t){var n=t.length*.75,r=t.length,s,i=0,o,a,u,c;t[t.length-1]==="="&&(n--,t[t.length-2]==="="&&n--);var f=new ArrayBuffer(n),l=new Uint8Array(f);for(s=0;s>4,l[i++]=(a&15)<<4|u>>2,l[i++]=(u&3)<<6|c&63;return f}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),Dr}var ks,kc;function K0(){if(kc)return ks;kc=1;var e=typeof e!="undefined"?e:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:!1,t=(function(){try{var a=new Blob(["hi"]);return a.size===2}catch(u){return!1}})(),n=t&&(function(){try{var a=new Blob([new Uint8Array([1,2])]);return a.size===2}catch(u){return!1}})(),r=e&&e.prototype.append&&e.prototype.getBlob;function s(a){return a.map(function(u){if(u.buffer instanceof ArrayBuffer){var c=u.buffer;if(u.byteLength!==c.byteLength){var f=new Uint8Array(u.byteLength);f.set(new Uint8Array(c,u.byteOffset,u.byteLength)),c=f.buffer}return c}return u})}function i(a,u){u=u||{};var c=new e;return s(a).forEach(function(f){c.append(f)}),u.type?c.getBlob(u.type):c.getBlob()}function o(a,u){return new Blob(s(a),u||{})}return typeof Blob!="undefined"&&(i.prototype=Blob.prototype,o.prototype=Blob.prototype),ks=(function(){return t?n?Blob:o:r?i:void 0})(),ks}var Ic;function An(){return Ic||(Ic=1,(function(e){var t=H0(),n=df(),r=W0(),s=j0(),i=X0(),o;typeof ArrayBuffer!="undefined"&&(o=V0());var a=typeof navigator!="undefined"&&/Android/i.test(navigator.userAgent),u=typeof navigator!="undefined"&&/PhantomJS/i.test(navigator.userAgent),c=a||u;e.protocol=3;var f=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},l=t(f),h={type:"error",data:"parser error"},d=K0();e.encodePacket=function(b,_,x,S){typeof _=="function"&&(S=_,_=!1),typeof x=="function"&&(S=x,x=null);var E=b.data===void 0?void 0:b.data.buffer||b.data;if(typeof ArrayBuffer!="undefined"&&E instanceof ArrayBuffer)return p(b,_,S);if(typeof d!="undefined"&&E instanceof d)return m(b,_,S);if(E&&E.base64)return g(b,S);var B=f[b.type];return b.data!==void 0&&(B+=x?i.encode(String(b.data),{strict:!1}):String(b.data)),S(""+B)};function g(b,_){var x="b"+e.packets[b.type]+b.data.data;return _(x)}function p(b,_,x){if(!_)return e.encodeBase64Packet(b,x);var S=b.data,E=new Uint8Array(S),B=new Uint8Array(1+S.byteLength);B[0]=f[b.type];for(var T=0;T1?{type:l[E],data:b.substring(1)}:{type:l[E]}}var S=new Uint8Array(b),E=S[0],B=r(b,1);return d&&_==="blob"&&(B=new d([B])),{type:l[E],data:B}};function y(b){try{b=i.decode(b,{strict:!1})}catch(_){return!1}return b}e.decodeBase64Packet=function(b,_){var x=l[b.charAt(0)];if(!o)return{type:x,data:{base64:!0,data:b.substr(1)}};var S=o.decode(b.substr(1));return _==="blob"&&d&&(S=new d([S])),{type:x,data:S}},e.encodePayload=function(b,_,x){typeof _=="function"&&(x=_,_=null);var S=n(b);if(_&&S)return d&&!c?e.encodePayloadAsBlob(b,x):e.encodePayloadAsArrayBuffer(b,x);if(!b.length)return x("0:");function E(T){return T.length+":"+T}function B(T,A){e.encodePacket(T,S?_:!1,!1,function(D){A(null,E(D))})}w(b,B,function(T,A){return x(A.join(""))})};function w(b,_,x){for(var S=new Array(b.length),E=s(b.length,x),B=function(A,D,k){_(D,function(I,O){S[A]=O,k(I,S)})},T=0;T0;){for(var B=new Uint8Array(S),T=B[0]===0,A="",D=1;B[D]!==255;D++){if(A.length>310)return x(h,0,1);A+=B[D]}S=r(S,2+A.length),A=parseInt(A);var k=r(S,0,A);if(T)try{k=String.fromCharCode.apply(null,new Uint8Array(k))}catch(R){var I=new Uint8Array(k);k="";for(var D=0;D0);return f}function a(c){var f=0;for(s=0;s0)return i(c);if(l==="number"&&isNaN(c)===!1)return f.long?a(c):o(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function i(c){if(c=String(c),!(c.length>100)){var f=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c);if(f){var l=parseFloat(f[1]),h=(f[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"days":case"day":case"d":return l*r;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*t;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function o(c){return c>=r?Math.round(c/r)+"d":c>=n?Math.round(c/n)+"h":c>=t?Math.round(c/t)+"m":c>=e?Math.round(c/e)+"s":c+"ms"}function a(c){return u(c,r,"day")||u(c,n,"hour")||u(c,t,"minute")||u(c,e,"second")||c+" ms"}function u(c,f,l){if(!(c=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function s(c){var f=this.useColors;if(c[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+c[0]+(f?"%c ":" ")+"+"+t.humanize(this.diff),!!f){var l="color: "+this.color;c.splice(1,0,l,"color: inherit");var h=0,d=0;c[0].replace(/%[a-zA-Z%]/g,function(g){g!=="%%"&&(h++,g==="%c"&&(d=h))}),c.splice(d,0,l)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch(f){}}function a(){var c;try{c=t.storage.debug}catch(f){}return!c&&typeof process!="undefined"&&"env"in process&&(c=n.DEBUG),c}t.enable(a());function u(){try{return window.localStorage}catch(c){}}})(Tr,Tr.exports)),Tr.exports}var Os,Nc;function pf(){if(Nc)return Os;Nc=1;var e=ha(),t=wi(),n=An(),r=Ci(),s=gf(),i=_i()("engine.io-client:polling");Os=a;var o=(function(){var u=fa(),c=new u({xdomain:!1});return c.responseType!=null})();function a(u){var c=u&&u.forceBase64;(!o||c)&&(this.supportsBinary=!1),e.call(this,u)}return r(a,e),a.prototype.name="polling",a.prototype.doOpen=function(){this.poll()},a.prototype.pause=function(u){var c=this;this.readyState="pausing";function f(){i("paused"),c.readyState="paused",u()}if(this.polling||!this.writable){var l=0;this.polling&&(i("we are currently polling - waiting to pause"),l++,this.once("pollComplete",function(){i("pre-pause polling complete"),--l||f()})),this.writable||(i("we are currently writing - waiting to pause"),l++,this.once("drain",function(){i("pre-pause writing complete"),--l||f()}))}else f()},a.prototype.poll=function(){i("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},a.prototype.onData=function(u){var c=this;i("polling got data %s",u);var f=function(l,h,d){if(c.readyState==="opening"&&l.type==="open"&&c.onOpen(),l.type==="close")return c.onClose(),!1;c.onPacket(l)};n.decodePayload(u,this.socket.binaryType,f),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():i('ignoring poll - transport state "%s"',this.readyState))},a.prototype.doClose=function(){var u=this;function c(){i("writing close packet"),u.write([{type:"close"}])}this.readyState==="open"?(i("transport open - closing"),c()):(i("transport not open - deferring close"),this.once("open",c))},a.prototype.write=function(u){var c=this;this.writable=!1;var f=function(){c.writable=!0,c.emit("drain")};n.encodePayload(u,this.supportsBinary,function(l){c.doWrite(l,f)})},a.prototype.uri=function(){var u=this.query||{},c=this.secure?"https":"http",f="";this.timestampRequests!==!1&&(u[this.timestampParam]=s()),!this.supportsBinary&&!u.sid&&(u.b64=1),u=t.encode(u),this.port&&(c==="https"&&Number(this.port)!==443||c==="http"&&Number(this.port)!==80)&&(f=":"+this.port),u.length&&(u="?"+u);var l=this.hostname.indexOf(":")!==-1;return c+"://"+(l?"["+this.hostname+"]":this.hostname)+f+this.path+u},Os}var Fc;function Y0(){if(Fc)return Ir.exports;Fc=1;var e=fa(),t=pf(),n=Pn(),r=Ci(),s=_i()("engine.io-client:polling-xhr"),i=ua();Ir.exports=a,Ir.exports.Request=u;function o(){}function a(l){if(t.call(this,l),this.requestTimeout=l.requestTimeout,this.extraHeaders=l.extraHeaders,typeof location!="undefined"){var h=location.protocol==="https:",d=location.port;d||(d=h?443:80),this.xd=typeof location!="undefined"&&l.hostname!==location.hostname||d!==l.port,this.xs=l.secure!==h}}r(a,t),a.prototype.supportsBinary=!0,a.prototype.request=function(l){return l=l||{},l.uri=this.uri(),l.xd=this.xd,l.xs=this.xs,l.agent=this.agent||!1,l.supportsBinary=this.supportsBinary,l.enablesXDR=this.enablesXDR,l.withCredentials=this.withCredentials,l.pfx=this.pfx,l.key=this.key,l.passphrase=this.passphrase,l.cert=this.cert,l.ca=this.ca,l.ciphers=this.ciphers,l.rejectUnauthorized=this.rejectUnauthorized,l.requestTimeout=this.requestTimeout,l.extraHeaders=this.extraHeaders,new u(l)},a.prototype.doWrite=function(l,h){var d=typeof l!="string"&&l!==void 0,g=this.request({method:"POST",data:l,isBinary:d}),p=this;g.on("success",h),g.on("error",function(v){p.onError("xhr post error",v)}),this.sendXhr=g},a.prototype.doPoll=function(){s("xhr poll");var l=this.request(),h=this;l.on("data",function(d){h.onData(d)}),l.on("error",function(d){h.onError("xhr poll error",d)}),this.pollXhr=l};function u(l){this.method=l.method||"GET",this.uri=l.uri,this.xd=!!l.xd,this.xs=!!l.xs,this.async=l.async!==!1,this.data=l.data!==void 0?l.data:null,this.agent=l.agent,this.isBinary=l.isBinary,this.supportsBinary=l.supportsBinary,this.enablesXDR=l.enablesXDR,this.withCredentials=l.withCredentials,this.requestTimeout=l.requestTimeout,this.pfx=l.pfx,this.key=l.key,this.passphrase=l.passphrase,this.cert=l.cert,this.ca=l.ca,this.ciphers=l.ciphers,this.rejectUnauthorized=l.rejectUnauthorized,this.extraHeaders=l.extraHeaders,this.create()}if(n(u.prototype),u.prototype.create=function(){var l={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};l.pfx=this.pfx,l.key=this.key,l.passphrase=this.passphrase,l.cert=this.cert,l.ca=this.ca,l.ciphers=this.ciphers,l.rejectUnauthorized=this.rejectUnauthorized;var h=this.xhr=new e(l),d=this;try{s("xhr open %s: %s",this.method,this.uri),h.open(this.method,this.uri,this.async);try{if(this.extraHeaders){h.setDisableHeaderCheck&&h.setDisableHeaderCheck(!0);for(var g in this.extraHeaders)this.extraHeaders.hasOwnProperty(g)&&h.setRequestHeader(g,this.extraHeaders[g])}}catch(p){}if(this.method==="POST")try{this.isBinary?h.setRequestHeader("Content-type","application/octet-stream"):h.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(p){}try{h.setRequestHeader("Accept","*/*")}catch(p){}"withCredentials"in h&&(h.withCredentials=this.withCredentials),this.requestTimeout&&(h.timeout=this.requestTimeout),this.hasXDR()?(h.onload=function(){d.onLoad()},h.onerror=function(){d.onError(h.responseText)}):h.onreadystatechange=function(){if(h.readyState===2)try{var p=h.getResponseHeader("Content-Type");(d.supportsBinary&&p==="application/octet-stream"||p==="application/octet-stream; charset=UTF-8")&&(h.responseType="arraybuffer")}catch(v){}h.readyState===4&&(h.status===200||h.status===1223?d.onLoad():setTimeout(function(){d.onError(typeof h.status=="number"?h.status:0)},0))},s("xhr data %s",this.data),h.send(this.data)}catch(p){setTimeout(function(){d.onError(p)},0);return}typeof document!="undefined"&&(this.index=u.requestsCount++,u.requests[this.index]=this)},u.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},u.prototype.onData=function(l){this.emit("data",l),this.onSuccess()},u.prototype.onError=function(l){this.emit("error",l),this.cleanup(!0)},u.prototype.cleanup=function(l){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=o:this.xhr.onreadystatechange=o,l)try{this.xhr.abort()}catch(h){}typeof document!="undefined"&&delete u.requests[this.index],this.xhr=null}},u.prototype.onLoad=function(){var l;try{var h;try{h=this.xhr.getResponseHeader("Content-Type")}catch(d){}h==="application/octet-stream"||h==="application/octet-stream; charset=UTF-8"?l=this.xhr.response||this.xhr.responseText:l=this.xhr.responseText}catch(d){this.onError(d)}l!=null&&this.onData(l)},u.prototype.hasXDR=function(){return typeof XDomainRequest!="undefined"&&!this.xs&&this.enablesXDR},u.prototype.abort=function(){this.cleanup()},u.requestsCount=0,u.requests={},typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",f);else if(typeof addEventListener=="function"){var c="onpagehide"in i?"pagehide":"unload";addEventListener(c,f,!1)}}function f(){for(var l in u.requests)u.requests.hasOwnProperty(l)&&u.requests[l].abort()}return Ir.exports}var Bs,Mc;function Z0(){if(Mc)return Bs;Mc=1;var e=pf(),t=Ci(),n=ua();Bs=a;var r=/\n/g,s=/\\n/g,i;function o(){}function a(u){e.call(this,u),this.query=this.query||{},i||(i=n.___eio=n.___eio||[]),this.index=i.length;var c=this;i.push(function(f){c.onData(f)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){c.script&&(c.script.onerror=o)},!1)}return t(a,e),a.prototype.supportsBinary=!1,a.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),e.prototype.doClose.call(this)},a.prototype.doPoll=function(){var u=this,c=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),c.async=!0,c.src=this.uri(),c.onerror=function(h){u.onError("jsonp poll error",h)};var f=document.getElementsByTagName("script")[0];f?f.parentNode.insertBefore(c,f):(document.head||document.body).appendChild(c),this.script=c;var l=typeof navigator!="undefined"&&/gecko/i.test(navigator.userAgent);l&&setTimeout(function(){var h=document.createElement("iframe");document.body.appendChild(h),document.body.removeChild(h)},100)},a.prototype.doWrite=function(u,c){var f=this;if(!this.form){var l=document.createElement("form"),h=document.createElement("textarea"),d=this.iframeId="eio_iframe_"+this.index,g;l.className="socketio",l.style.position="absolute",l.style.top="-1000px",l.style.left="-1000px",l.target=d,l.method="POST",l.setAttribute("accept-charset","utf-8"),h.name="d",l.appendChild(h),document.body.appendChild(l),this.form=l,this.area=h}this.form.action=this.uri();function p(){v(),c()}function v(){if(f.iframe)try{f.form.removeChild(f.iframe)}catch(y){f.onError("jsonp polling iframe removal error",y)}try{var m='