@mapxus/mapxus-map-jp 8.5.0 → 9.0.0-pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.mjs.LICENSE.txt */
2
- import*as t from"maplibre-gl";var e={22:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.polyval=e.ghash=void 0,e._toGHASHKey=c;const r=n(6527),i=16,o=new Uint8Array(16),s=(0,r.u32)(o),a=t=>(t>>>0&255)<<24|(t>>>8&255)<<16|(t>>>16&255)<<8|t>>>24&255;function c(t){t.reverse();const e=1&t[15];let n=0;for(let e=0;e<t.length;e++){const r=t[e];t[e]=r>>>1|n,n=(1&r)<<7}return t[0]^=225&-e,t}class l{constructor(t,e){this.blockLen=i,this.outputLen=i,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,t=(0,r.toBytes)(t),(0,r.abytes)(t,16);const n=(0,r.createView)(t);let o=n.getUint32(0,!1),s=n.getUint32(4,!1),c=n.getUint32(8,!1),l=n.getUint32(12,!1);const u=[];for(let t=0;t<128;t++)u.push({s0:a(o),s1:a(s),s2:a(c),s3:a(l)}),({s0:o,s1:s,s2:c,s3:l}={s3:(f=c)<<31|(p=l)>>>1,s2:(h=s)<<31|f>>>1,s1:(d=o)<<31|h>>>1,s0:d>>>1^225<<24&-(1&p)});var d,h,f,p;const y=(g=e||1024)>65536?8:g>1024?4:2;var g;if(![1,2,4,8].includes(y))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=y;const m=128/y,_=this.windowSize=2**y,b=[];for(let t=0;t<m;t++)for(let e=0;e<_;e++){let n=0,r=0,i=0,o=0;for(let s=0;s<y;s++){if(!(e>>>y-s-1&1))continue;const{s0:a,s1:c,s2:l,s3:d}=u[y*t+s];n^=a,r^=c,i^=l,o^=d}b.push({s0:n,s1:r,s2:i,s3:o})}this.t=b}_updateBlock(t,e,n,r){t^=this.s0,e^=this.s1,n^=this.s2,r^=this.s3;const{W:i,t:o,windowSize:s}=this;let a=0,c=0,l=0,u=0;const d=(1<<i)-1;let h=0;for(const f of[t,e,n,r])for(let t=0;t<4;t++){const e=f>>>8*t&255;for(let t=8/i-1;t>=0;t--){const n=e>>>i*t&d,{s0:r,s1:f,s2:p,s3:y}=o[h*s+n];a^=r,c^=f,l^=p,u^=y,h+=1}}this.s0=a,this.s1=c,this.s2=l,this.s3=u}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const e=(0,r.u32)(t),n=Math.floor(t.length/i),a=t.length%i;for(let t=0;t<n;t++)this._updateBlock(e[4*t+0],e[4*t+1],e[4*t+2],e[4*t+3]);return a&&(o.set(t.subarray(n*i)),this._updateBlock(s[0],s[1],s[2],s[3]),(0,r.clean)(s)),this}destroy(){const{t}=this;for(const e of t)e.s0=0,e.s1=0,e.s2=0,e.s3=0}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{s0:e,s1:n,s2:i,s3:o}=this,s=(0,r.u32)(t);return s[0]=e,s[1]=n,s[2]=i,s[3]=o,t}digest(){const t=new Uint8Array(i);return this.digestInto(t),this.destroy(),t}}class u extends l{constructor(t,e){t=(0,r.toBytes)(t),(0,r.abytes)(t);const n=c((0,r.copyBytes)(t));super(n,e),(0,r.clean)(n)}update(t){t=(0,r.toBytes)(t),(0,r.aexists)(this);const e=(0,r.u32)(t),n=t.length%i,c=Math.floor(t.length/i);for(let t=0;t<c;t++)this._updateBlock(a(e[4*t+3]),a(e[4*t+2]),a(e[4*t+1]),a(e[4*t+0]));return n&&(o.set(t.subarray(c*i)),this._updateBlock(a(s[3]),a(s[2]),a(s[1]),a(s[0])),(0,r.clean)(s)),this}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{s0:e,s1:n,s2:i,s3:o}=this,s=(0,r.u32)(t);return s[0]=e,s[1]=n,s[2]=i,s[3]=o,t.reverse()}}function d(t){const e=(e,n)=>t(n,e.length).update((0,r.toBytes)(e)).digest(),n=t(new Uint8Array(16),0);return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=(e,n)=>t(e,n),e}e.ghash=d(((t,e)=>new l(t,e))),e.polyval=d(((t,e)=>new u(t,e)))},42:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},52:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(241),i=n(5572),o=n(2049),s=n(1882),a=r.A?r.A.prototype:void 0,c=a?a.toString:void 0;const l=function t(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,i.A)(e,t)+"";if((0,s.A)(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},66:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){let n,r,i=0,o=1e3/e;const s=(e,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),t.apply(null,e)};return[(...t)=>{const e=Date.now(),a=e-i;a>=o?s(t,e):(n=t,r||(r=setTimeout((()=>{r=null,s(n)}),o-a)))},()=>n&&s(n)]}},83:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.chacha20=e.xchacha20=void 0;var r=n(8900);e.xchacha20=function(t,e,n){return(0,r.xchacha20poly1305)(t,e,n)};e.chacha20=function(t,e,n){return(0,r.chacha20poly1305)(t,e,n)}},139:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(5267);const i="undefined"!=typeof URLSearchParams?URLSearchParams:r.A},169:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(6984);const i=function(t,e){for(var n=t.length;n--;)if((0,r.A)(t[n][0],e))return n;return-1}},180:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"Promise")},181:(t,e,n)=>{n.d(e,{d:()=>r});class r{_historyBuilding;_historyOrdinal;_selectedBuildings;static instance;constructor(){this._historyBuilding=new Map,this._historyOrdinal=new Map,this._selectedBuildings=new Set}static getInstance(){return r.instance||(r.instance=new r),r.instance}getHistoryBuilding(t){return this._historyBuilding.get(t)}setHistoryBuilding(t,e){this._historyBuilding.set(t,e)}getHistoryOrdinal(t){return this._historyOrdinal.get(t)}setHistoryOrdinal(t,e){this._historyOrdinal.set(t,e)}getHistoryBuildings(){return this._selectedBuildings}addHistoryBuilding(t){this._selectedBuildings.delete(t),this._selectedBuildings.add(t),this._selectedBuildings.size>100&&(this._selectedBuildings=new Set(Array.from(this._selectedBuildings).slice(this._selectedBuildings.size-100)))}}},241:(t,e,n)=>{n.d(e,{A:()=>r});const r=n(1917).A.Symbol},244:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSharedKey=e.deriveKey=void 0;var r=n(6527),i=n(4139),o=n(7076);e.deriveKey=function(t,e,n){return(0,i.hkdf)(o.sha256,t,e,n,32)};e.getSharedKey=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0,e.deriveKey)(r.concatBytes.apply(void 0,t))}},251:(t,e)=>{e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,l=c>>1,u=-7,d=n?i-1:0,h=n?-1:1,f=t[e+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+t[e+d],d+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+t[e+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=l}return(f?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,c,l=8*o-i-1,u=(1<<l)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(e*c-1)*Math.pow(2,i),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;t[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;t[n+f]=255&s,f+=p,s/=256,l-=8);t[n+f-p]|=128*y}},367:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){return function(n){return t(e(n))}}},402:(t,e,n)=>{n.d(e,{A:()=>d});var r=n(241),i=n(3988),o=n(6984),s=n(8967),a=n(4877),c=n(9959),l=r.A?r.A.prototype:void 0,u=l?l.valueOf:void 0;const d=function(t,e,n,r,l,d,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new i.A(t),new i.A(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,o.A)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=a.A;case"[object Set]":var p=1&r;if(f||(f=c.A),t.size!=e.size&&!p)return!1;var y=h.get(t);if(y)return y==e;r|=2,h.set(t,e);var g=(0,s.A)(f(t),f(e),r,l,d,h);return h.delete(t),g;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},423:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(9520),i=n(1788),o=n(2049),s=n(4616),a=n(5353),c=n(8719),l=Object.prototype.hasOwnProperty;const u=function(t,e){var n=(0,o.A)(t),u=!n&&(0,i.A)(t),d=!n&&!u&&(0,s.A)(t),h=!n&&!u&&!d&&(0,c.A)(t),f=n||u||d||h,p=f?(0,r.A)(t.length,String):[],y=p.length;for(var g in t)!e&&!l.call(t,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,a.A)(g,y))||p.push(g);return p}},451:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(241),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r.A?r.A.toStringTag:void 0;const c=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},459:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hash_to_ristretto255=e.hashToRistretto255=e.RistrettoPoint=e.encodeToCurve=e.hashToCurve=e.ed25519_hasher=e.edwardsToMontgomery=e.x25519=e.ed25519ph=e.ed25519ctx=e.ed25519=e.ED25519_TORSION_SUBGROUP=void 0,e.edwardsToMontgomeryPub=S,e.edwardsToMontgomeryPriv=function(t){const e=E.hash(t.subarray(0,32));return E.adjustScalarBytes(e).subarray(0,32)};const r=n(7076),i=n(9175),o=n(2422),s=n(6377),a=n(1761),c=n(4967),l=n(2854),u=n(1484),d=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),h=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),f=BigInt(0),p=BigInt(1),y=BigInt(2),g=BigInt(3),m=BigInt(5),_=BigInt(8);function b(t){const e=BigInt(10),n=BigInt(20),r=BigInt(40),i=BigInt(80),o=d,s=t*t%o*t%o,a=(0,c.pow2)(s,y,o)*s%o,l=(0,c.pow2)(a,p,o)*t%o,u=(0,c.pow2)(l,m,o)*l%o,h=(0,c.pow2)(u,e,o)*u%o,f=(0,c.pow2)(h,n,o)*h%o,g=(0,c.pow2)(f,r,o)*f%o,_=(0,c.pow2)(g,i,o)*g%o,b=(0,c.pow2)(_,i,o)*g%o,v=(0,c.pow2)(b,e,o)*u%o;return{pow_p_5_8:(0,c.pow2)(v,y,o)*t%o,b2:s}}function v(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function w(t,e){const n=d,r=(0,c.mod)(e*e*e,n),i=b(t*(0,c.mod)(r*r*e,n)).pow_p_5_8;let o=(0,c.mod)(t*r*i,n);const s=(0,c.mod)(e*o*o,n),a=o,l=(0,c.mod)(o*h,n),u=s===t,f=s===(0,c.mod)(-t,n),p=s===(0,c.mod)(-t*h,n);return u&&(o=a),(f||p)&&(o=l),(0,c.isNegativeLE)(o,n)&&(o=(0,c.mod)(-o,n)),{isValid:u||f,value:o}}e.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];const A=(()=>(0,c.Field)(d,void 0,!0))(),E=(()=>({a:A.create(BigInt(-1)),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:A,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:_,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:r.sha512,randomBytes:i.randomBytes,adjustScalarBytes:v,uvRatio:w}))();function B(t,e,n){if(e.length>255)throw new Error("Context is too big");return(0,i.concatBytes)((0,i.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([n?1:0,e.length]),e,t)}function S(t){const{y:n}=e.ed25519.ExtendedPoint.fromHex(t),r=BigInt(1);return A.toBytes(A.create((r+n)*A.inv(r-n)))}e.ed25519=(0,s.twistedEdwards)(E),e.ed25519ctx=(0,s.twistedEdwards)({...E,domain:B}),e.ed25519ph=(0,s.twistedEdwards)(Object.assign({},E,{domain:B,prehash:r.sha512})),e.x25519=(0,l.montgomery)({P:d,type:"x25519",powPminus2:t=>{const e=d,{pow_p_5_8:n,b2:r}=b(t);return(0,c.mod)((0,c.pow2)(n,g,e)*r,e)},adjustScalarBytes:v,randomBytes:i.randomBytes}),e.edwardsToMontgomery=S;const x=(()=>(A.ORDER+g)/_)(),I=(()=>A.pow(y,x))(),L=(()=>A.sqrt(A.neg(A.ONE)))();const O=(()=>(0,c.FpSqrtEven)(A,A.neg(BigInt(486664))))();function C(t){const{xMn:e,xMd:n,yMn:r,yMd:i}=function(t){const e=(A.ORDER-m)/_,n=BigInt(486662);let r=A.sqr(t);r=A.mul(r,y);let i=A.add(r,A.ONE),o=A.neg(n),s=A.sqr(i),a=A.mul(s,i),c=A.mul(r,n);c=A.mul(c,o),c=A.add(c,s),c=A.mul(c,o);let l=A.sqr(a);s=A.sqr(l),l=A.mul(l,a),l=A.mul(l,c),s=A.mul(s,l);let u=A.pow(s,e);u=A.mul(u,l);let d=A.mul(u,L);s=A.sqr(u),s=A.mul(s,a);let h=A.eql(s,c),f=A.cmov(d,u,h),g=A.mul(o,r),b=A.mul(u,t);b=A.mul(b,I);let v=A.mul(b,L),w=A.mul(c,r);s=A.sqr(b),s=A.mul(s,a);let E=A.eql(s,w),B=A.cmov(v,b,E);s=A.sqr(f),s=A.mul(s,a);let S=A.eql(s,c),x=A.cmov(g,o,S),O=A.cmov(B,f,S),C=A.isOdd(O);return O=A.cmov(O,A.neg(O),S!==C),{xMn:x,xMd:i,yMn:O,yMd:p}}(t);let o=A.mul(e,i);o=A.mul(o,O);let s=A.mul(n,r),a=A.sub(e,n),l=A.add(e,n),u=A.mul(s,l),d=A.eql(u,A.ZERO);o=A.cmov(o,A.ZERO,d),s=A.cmov(s,A.ONE,d),a=A.cmov(a,A.ONE,d),l=A.cmov(l,A.ONE,d);const[h,f]=(0,c.FpInvertBatch)(A,[s,l],!0);return{x:A.mul(o,h),y:A.mul(a,f)}}function k(t){if(!(t instanceof V))throw new Error("RistrettoPoint expected")}e.ed25519_hasher=(0,a.createHasher)(e.ed25519.ExtendedPoint,(t=>C(t[0])),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:A.ORDER,m:1,k:128,expand:"xmd",hash:r.sha512}),e.hashToCurve=e.ed25519_hasher.hashToCurve,e.encodeToCurve=e.ed25519_hasher.encodeToCurve;const T=h,R=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),P=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),M=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),F=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),H=t=>w(p,t),j=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),N=t=>e.ed25519.CURVE.Fp.create((0,u.bytesToNumberLE)(t)&j);function U(t){const{d:n}=e.ed25519.CURVE,r=e.ed25519.CURVE.Fp.ORDER,i=e.ed25519.CURVE.Fp.create,o=i(T*t*t),s=i((o+p)*M);let a=BigInt(-1);const l=i((a-n*o)*i(o+n));let{isValid:u,value:d}=w(s,l),h=i(d*t);(0,c.isNegativeLE)(h,r)||(h=i(-h)),u||(d=h),u||(a=o);const f=i(a*(o-p)*F-l),y=d*d,g=i((d+d)*l),m=i(f*R),_=i(p-y),b=i(p+y);return new e.ed25519.ExtendedPoint(i(g*b),i(_*m),i(m*b),i(g*_))}class V{constructor(t){this.ep=t}static fromAffine(t){return new V(e.ed25519.ExtendedPoint.fromAffine(t))}static hashToCurve(t){t=(0,u.ensureBytes)("ristrettoHash",t,64);const e=U(N(t.slice(0,32))),n=U(N(t.slice(32,64)));return new V(e.add(n))}static fromHex(t){t=(0,u.ensureBytes)("ristrettoHex",t,32);const{a:n,d:r}=e.ed25519.CURVE,i=e.ed25519.CURVE.Fp.ORDER,o=e.ed25519.CURVE.Fp.create,s="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",a=N(t);if(!(0,u.equalBytes)((0,u.numberToBytesLE)(a,32),t)||(0,c.isNegativeLE)(a,i))throw new Error(s);const l=o(a*a),d=o(p+n*l),h=o(p-n*l),y=o(d*d),g=o(h*h),m=o(n*r*y-g),{isValid:_,value:b}=H(o(m*g)),v=o(b*h),w=o(b*v*m);let A=o((a+a)*v);(0,c.isNegativeLE)(A,i)&&(A=o(-A));const E=o(d*w),B=o(A*E);if(!_||(0,c.isNegativeLE)(B,i)||E===f)throw new Error(s);return new V(new e.ed25519.ExtendedPoint(A,E,p,B))}static msm(t,n){const r=(0,c.Field)(e.ed25519.CURVE.n,e.ed25519.CURVE.nBitLength);return(0,o.pippenger)(V,r,t,n)}toRawBytes(){let{ex:t,ey:n,ez:r,et:i}=this.ep;const o=e.ed25519.CURVE.Fp.ORDER,s=e.ed25519.CURVE.Fp.create,a=s(s(r+n)*s(r-n)),l=s(t*n),d=s(l*l),{value:h}=H(s(a*d)),f=s(h*a),p=s(h*l),y=s(f*p*i);let g;if((0,c.isNegativeLE)(i*y,o)){let e=s(n*T),r=s(t*T);t=e,n=r,g=s(f*P)}else g=p;(0,c.isNegativeLE)(t*y,o)&&(n=s(-n));let m=s((r-n)*g);return(0,c.isNegativeLE)(m,o)&&(m=s(-m)),(0,u.numberToBytesLE)(m,32)}toHex(){return(0,u.bytesToHex)(this.toRawBytes())}toString(){return this.toHex()}equals(t){k(t);const{ex:n,ey:r}=this.ep,{ex:i,ey:o}=t.ep,s=e.ed25519.CURVE.Fp.create,a=s(n*o)===s(r*i),c=s(r*o)===s(n*i);return a||c}add(t){return k(t),new V(this.ep.add(t.ep))}subtract(t){return k(t),new V(this.ep.subtract(t.ep))}multiply(t){return new V(this.ep.multiply(t))}multiplyUnsafe(t){return new V(this.ep.multiplyUnsafe(t))}double(){return new V(this.ep.double())}negate(){return new V(this.ep.negate())}}e.RistrettoPoint=(V.BASE||(V.BASE=new V(e.ed25519.ExtendedPoint.BASE)),V.ZERO||(V.ZERO=new V(e.ed25519.ExtendedPoint.ZERO)),V);e.hashToRistretto255=(t,e)=>{const n=e.DST,o="string"==typeof n?(0,i.utf8ToBytes)(n):n,s=(0,a.expand_message_xmd)(t,o,64,r.sha512);return V.hashToCurve(s)},e.hash_to_ristretto255=e.hashToRistretto255},469:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unsafe=e.aeskwp=e.aeskw=e.siv=e.gcmsiv=e.gcm=e.cfb=e.cbc=e.ecb=e.ctr=void 0;const r=n(22),i=n(6527),o=16,s=new Uint8Array(o);function a(t){return t<<1^283&-(t>>7)}function c(t,e){let n=0;for(;e>0;e>>=1)n^=t&-(1&e),t=a(t);return n}const l=(()=>{const t=new Uint8Array(256);for(let e=0,n=1;e<256;e++,n^=a(n))t[e]=n;const e=new Uint8Array(256);e[0]=99;for(let n=0;n<255;n++){let r=t[255-n];r|=r<<8,e[t[n]]=255&(r^r>>4^r>>5^r>>6^r>>7^99)}return(0,i.clean)(t),e})(),u=l.map(((t,e)=>l.indexOf(e))),d=t=>t<<8|t>>>24,h=t=>t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255;function f(t,e){if(256!==t.length)throw new Error("Wrong sbox length");const n=new Uint32Array(256).map(((n,r)=>e(t[r]))),r=n.map(d),i=r.map(d),o=i.map(d),s=new Uint32Array(65536),a=new Uint32Array(65536),c=new Uint16Array(65536);for(let e=0;e<256;e++)for(let l=0;l<256;l++){const u=256*e+l;s[u]=n[e]^r[l],a[u]=i[e]^o[l],c[u]=t[e]<<8|t[l]}return{sbox:t,sbox2:c,T0:n,T1:r,T2:i,T3:o,T01:s,T23:a}}const p=f(l,(t=>c(t,3)<<24|t<<16|t<<8|c(t,2))),y=f(u,(t=>c(t,11)<<24|c(t,13)<<16|c(t,9)<<8|c(t,14))),g=(()=>{const t=new Uint8Array(16);for(let e=0,n=1;e<16;e++,n=a(n))t[e]=n;return t})();function m(t){(0,i.abytes)(t);const e=t.length;if(![16,24,32].includes(e))throw new Error("aes: invalid key size, should be 16, 24 or 32, got "+e);const{sbox2:n}=p,r=[];(0,i.isAligned32)(t)||r.push(t=(0,i.copyBytes)(t));const o=(0,i.u32)(t),s=o.length,a=t=>v(n,t,t,t,t),c=new Uint32Array(e+28);c.set(o);for(let t=s;t<c.length;t++){let e=c[t-1];t%s===0?e=a((l=e)<<24|l>>>8)^g[t/s-1]:s>6&&t%s===4&&(e=a(e)),c[t]=c[t-s]^e}var l;return(0,i.clean)(...r),c}function _(t){const e=m(t),n=e.slice(),r=e.length,{sbox2:o}=p,{T0:s,T1:a,T2:c,T3:l}=y;for(let t=0;t<r;t+=4)for(let i=0;i<4;i++)n[t+i]=e[r-t-4+i];(0,i.clean)(e);for(let t=4;t<r-4;t++){const e=n[t],r=v(o,e,e,e,e);n[t]=s[255&r]^a[r>>>8&255]^c[r>>>16&255]^l[r>>>24]}return n}function b(t,e,n,r,i,o){return t[n<<8&65280|r>>>8&255]^e[i>>>8&65280|o>>>24&255]}function v(t,e,n,r,i){return t[255&e|65280&n]|t[r>>>16&255|i>>>16&65280]<<16}function w(t,e,n,r,i){const{sbox2:o,T01:s,T23:a}=p;let c=0;e^=t[c++],n^=t[c++],r^=t[c++],i^=t[c++];const l=t.length/4-2;for(let o=0;o<l;o++){const o=t[c++]^b(s,a,e,n,r,i),l=t[c++]^b(s,a,n,r,i,e),u=t[c++]^b(s,a,r,i,e,n),d=t[c++]^b(s,a,i,e,n,r);e=o,n=l,r=u,i=d}return{s0:t[c++]^v(o,e,n,r,i),s1:t[c++]^v(o,n,r,i,e),s2:t[c++]^v(o,r,i,e,n),s3:t[c++]^v(o,i,e,n,r)}}function A(t,e,n,r,i){const{sbox2:o,T01:s,T23:a}=y;let c=0;e^=t[c++],n^=t[c++],r^=t[c++],i^=t[c++];const l=t.length/4-2;for(let o=0;o<l;o++){const o=t[c++]^b(s,a,e,i,r,n),l=t[c++]^b(s,a,n,e,i,r),u=t[c++]^b(s,a,r,n,e,i),d=t[c++]^b(s,a,i,r,n,e);e=o,n=l,r=u,i=d}return{s0:t[c++]^v(o,e,i,r,n),s1:t[c++]^v(o,n,e,i,r),s2:t[c++]^v(o,r,n,e,i),s3:t[c++]^v(o,i,r,n,e)}}function E(t,e,n,r){(0,i.abytes)(e,o),(0,i.abytes)(n);const s=n.length;r=(0,i.getOutput)(s,r),(0,i.complexOverlapBytes)(n,r);const a=e,c=(0,i.u32)(a);let{s0:l,s1:u,s2:d,s3:h}=w(t,c[0],c[1],c[2],c[3]);const f=(0,i.u32)(n),p=(0,i.u32)(r);for(let e=0;e+4<=f.length;e+=4){p[e+0]=f[e+0]^l,p[e+1]=f[e+1]^u,p[e+2]=f[e+2]^d,p[e+3]=f[e+3]^h;let n=1;for(let t=a.length-1;t>=0;t--)n=n+(255&a[t])|0,a[t]=255&n,n>>>=8;({s0:l,s1:u,s2:d,s3:h}=w(t,c[0],c[1],c[2],c[3]))}const y=o*Math.floor(f.length/4);if(y<s){const t=new Uint32Array([l,u,d,h]),e=(0,i.u8)(t);for(let t=y,i=0;t<s;t++,i++)r[t]=n[t]^e[i];(0,i.clean)(t)}return r}function B(t,e,n,r,s){(0,i.abytes)(n,o),(0,i.abytes)(r),s=(0,i.getOutput)(r.length,s);const a=n,c=(0,i.u32)(a),l=(0,i.createView)(a),u=(0,i.u32)(r),d=(0,i.u32)(s),h=e?0:12,f=r.length;let p=l.getUint32(h,e),{s0:y,s1:g,s2:m,s3:_}=w(t,c[0],c[1],c[2],c[3]);for(let n=0;n+4<=u.length;n+=4)d[n+0]=u[n+0]^y,d[n+1]=u[n+1]^g,d[n+2]=u[n+2]^m,d[n+3]=u[n+3]^_,p=p+1>>>0,l.setUint32(h,p,e),({s0:y,s1:g,s2:m,s3:_}=w(t,c[0],c[1],c[2],c[3]));const b=o*Math.floor(u.length/4);if(b<f){const t=new Uint32Array([y,g,m,_]),e=(0,i.u8)(t);for(let t=b,n=0;t<f;t++,n++)s[t]=r[t]^e[n];(0,i.clean)(t)}return s}function S(t){if((0,i.abytes)(t),t.length%o!==0)throw new Error("aes-(cbc/ecb).decrypt ciphertext should consist of blocks with size 16")}function x(t,e,n){(0,i.abytes)(t);let r=t.length;const s=r%o;if(!e&&0!==s)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");(0,i.isAligned32)(t)||(t=(0,i.copyBytes)(t));const a=(0,i.u32)(t);if(e){let t=o-s;t||(t=o),r+=t}n=(0,i.getOutput)(r,n),(0,i.complexOverlapBytes)(t,n);return{b:a,o:(0,i.u32)(n),out:n}}function I(t,e){if(!e)return t;const n=t.length;if(!n)throw new Error("aes/pcks5: empty ciphertext not allowed");const r=t[n-1];if(r<=0||r>16)throw new Error("aes/pcks5: wrong padding");const i=t.subarray(0,-r);for(let e=0;e<r;e++)if(t[n-e-1]!==r)throw new Error("aes/pcks5: wrong padding");return i}function L(t){const e=new Uint8Array(16),n=(0,i.u32)(e);e.set(t);const r=o-t.length;for(let t=o-r;t<o;t++)e[t]=r;return n}function O(t,e,n,r,o){const s=o?o.length:0,a=t.create(n,r.length+s);o&&a.update(o);const c=(0,i.u64Lengths)(8*r.length,8*s,e);a.update(r),a.update(c);const l=a.digest();return(0,i.clean)(c),l}e.ctr=(0,i.wrapCipher)({blockSize:16,nonceLength:16},(function(t,e){function n(n,r){if((0,i.abytes)(n),void 0!==r&&((0,i.abytes)(r),!(0,i.isAligned32)(r)))throw new Error("unaligned destination");const o=m(t),s=(0,i.copyBytes)(e),a=[o,s];(0,i.isAligned32)(n)||a.push(n=(0,i.copyBytes)(n));const c=E(o,s,n,r);return(0,i.clean)(...a),c}return{encrypt:(t,e)=>n(t,e),decrypt:(t,e)=>n(t,e)}})),e.ecb=(0,i.wrapCipher)({blockSize:16},(function(t,e={}){const n=!e.disablePadding;return{encrypt(e,r){const{b:o,o:s,out:a}=x(e,n,r),c=m(t);let l=0;for(;l+4<=o.length;){const{s0:t,s1:e,s2:n,s3:r}=w(c,o[l+0],o[l+1],o[l+2],o[l+3]);s[l++]=t,s[l++]=e,s[l++]=n,s[l++]=r}if(n){const t=L(e.subarray(4*l)),{s0:n,s1:r,s2:i,s3:o}=w(c,t[0],t[1],t[2],t[3]);s[l++]=n,s[l++]=r,s[l++]=i,s[l++]=o}return(0,i.clean)(c),a},decrypt(e,r){S(e);const o=_(t);r=(0,i.getOutput)(e.length,r);const s=[o];(0,i.isAligned32)(e)||s.push(e=(0,i.copyBytes)(e)),(0,i.complexOverlapBytes)(e,r);const a=(0,i.u32)(e),c=(0,i.u32)(r);for(let t=0;t+4<=a.length;){const{s0:e,s1:n,s2:r,s3:i}=A(o,a[t+0],a[t+1],a[t+2],a[t+3]);c[t++]=e,c[t++]=n,c[t++]=r,c[t++]=i}return(0,i.clean)(...s),I(r,n)}}})),e.cbc=(0,i.wrapCipher)({blockSize:16,nonceLength:16},(function(t,e,n={}){const r=!n.disablePadding;return{encrypt(n,o){const s=m(t),{b:a,o:c,out:l}=x(n,r,o);let u=e;const d=[s];(0,i.isAligned32)(u)||d.push(u=(0,i.copyBytes)(u));const h=(0,i.u32)(u);let f=h[0],p=h[1],y=h[2],g=h[3],_=0;for(;_+4<=a.length;)f^=a[_+0],p^=a[_+1],y^=a[_+2],g^=a[_+3],({s0:f,s1:p,s2:y,s3:g}=w(s,f,p,y,g)),c[_++]=f,c[_++]=p,c[_++]=y,c[_++]=g;if(r){const t=L(n.subarray(4*_));f^=t[0],p^=t[1],y^=t[2],g^=t[3],({s0:f,s1:p,s2:y,s3:g}=w(s,f,p,y,g)),c[_++]=f,c[_++]=p,c[_++]=y,c[_++]=g}return(0,i.clean)(...d),l},decrypt(n,o){S(n);const s=_(t);let a=e;const c=[s];(0,i.isAligned32)(a)||c.push(a=(0,i.copyBytes)(a));const l=(0,i.u32)(a);o=(0,i.getOutput)(n.length,o),(0,i.isAligned32)(n)||c.push(n=(0,i.copyBytes)(n)),(0,i.complexOverlapBytes)(n,o);const u=(0,i.u32)(n),d=(0,i.u32)(o);let h=l[0],f=l[1],p=l[2],y=l[3];for(let t=0;t+4<=u.length;){const e=h,n=f,r=p,i=y;h=u[t+0],f=u[t+1],p=u[t+2],y=u[t+3];const{s0:o,s1:a,s2:c,s3:l}=A(s,h,f,p,y);d[t++]=o^e,d[t++]=a^n,d[t++]=c^r,d[t++]=l^i}return(0,i.clean)(...c),I(o,r)}}})),e.cfb=(0,i.wrapCipher)({blockSize:16,nonceLength:16},(function(t,e){function n(n,r,s){(0,i.abytes)(n);const a=n.length;if(s=(0,i.getOutput)(a,s),(0,i.overlapBytes)(n,s))throw new Error("overlapping src and dst not supported.");const c=m(t);let l=e;const u=[c];(0,i.isAligned32)(l)||u.push(l=(0,i.copyBytes)(l)),(0,i.isAligned32)(n)||u.push(n=(0,i.copyBytes)(n));const d=(0,i.u32)(n),h=(0,i.u32)(s),f=r?h:d,p=(0,i.u32)(l);let y=p[0],g=p[1],_=p[2],b=p[3];for(let t=0;t+4<=d.length;){const{s0:e,s1:n,s2:r,s3:i}=w(c,y,g,_,b);h[t+0]=d[t+0]^e,h[t+1]=d[t+1]^n,h[t+2]=d[t+2]^r,h[t+3]=d[t+3]^i,y=f[t++],g=f[t++],_=f[t++],b=f[t++]}const v=o*Math.floor(d.length/4);if(v<a){({s0:y,s1:g,s2:_,s3:b}=w(c,y,g,_,b));const t=(0,i.u8)(new Uint32Array([y,g,_,b]));for(let e=v,r=0;e<a;e++,r++)s[e]=n[e]^t[r];(0,i.clean)(t)}return(0,i.clean)(...u),s}return{encrypt:(t,e)=>n(t,!0,e),decrypt:(t,e)=>n(t,!1,e)}})),e.gcm=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},(function(t,e,n){if(e.length<8)throw new Error("aes/gcm: invalid nonce length");function o(t,e,i){const o=O(r.ghash,!1,t,i,n);for(let t=0;t<e.length;t++)o[t]^=e[t];return o}function a(){const n=m(t),o=s.slice(),a=s.slice();if(B(n,!1,a,a,o),12===e.length)a.set(e);else{const t=s.slice(),n=(0,i.createView)(t);(0,i.setBigUint64)(n,8,BigInt(8*e.length),!1);const c=r.ghash.create(o).update(e).update(t);c.digestInto(a),c.destroy()}return{xk:n,authKey:o,counter:a,tagMask:B(n,!1,a,s)}}return{encrypt(t){const{xk:e,authKey:n,counter:r,tagMask:s}=a(),c=new Uint8Array(t.length+16),l=[e,n,r,s];(0,i.isAligned32)(t)||l.push(t=(0,i.copyBytes)(t)),B(e,!1,r,t,c.subarray(0,t.length));const u=o(n,s,c.subarray(0,c.length-16));return l.push(u),c.set(u,t.length),(0,i.clean)(...l),c},decrypt(t){const{xk:e,authKey:n,counter:r,tagMask:s}=a(),c=[e,n,s,r];(0,i.isAligned32)(t)||c.push(t=(0,i.copyBytes)(t));const l=t.subarray(0,-16),u=t.subarray(-16),d=o(n,s,l);if(c.push(d),!(0,i.equalBytes)(d,u))throw new Error("aes/gcm: invalid ghash tag");const h=B(e,!1,r,l);return(0,i.clean)(...c),h}}}));const C=(t,e,n)=>r=>{if(!Number.isSafeInteger(r)||e>r||r>n){throw new Error(t+": expected value in range "+("["+e+".."+n+"]")+", got "+r)}};function k(t){return t instanceof Uint32Array||ArrayBuffer.isView(t)&&"Uint32Array"===t.constructor.name}function T(t,e){if((0,i.abytes)(e,16),!k(t))throw new Error("_encryptBlock accepts result of expandKeyLE");const n=(0,i.u32)(e);let{s0:r,s1:o,s2:s,s3:a}=w(t,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=o,n[2]=s,n[3]=a,e}function R(t,e){if((0,i.abytes)(e,16),!k(t))throw new Error("_decryptBlock accepts result of expandKeyLE");const n=(0,i.u32)(e);let{s0:r,s1:o,s2:s,s3:a}=A(t,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=o,n[2]=s,n[3]=a,e}e.gcmsiv=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},(function(t,e,n){const o=C("AAD",0,2**36),s=C("plaintext",0,2**36),a=C("nonce",12,12),c=C("ciphertext",16,2**36+16);function l(){const n=m(t),r=new Uint8Array(t.length),o=new Uint8Array(16),s=[n,r];let a=e;(0,i.isAligned32)(a)||s.push(a=(0,i.copyBytes)(a));const c=(0,i.u32)(a);let l=0,u=c[0],d=c[1],h=c[2],f=0;for(const t of[o,r].map(i.u32)){const e=(0,i.u32)(t);for(let t=0;t<e.length;t+=2){const{s0:r,s1:i}=w(n,l,u,d,h);e[t+0]=r,e[t+1]=i,l=++f}}const p={authKey:o,encKey:m(r)};return(0,i.clean)(...s),p}function u(t,o,s){const a=O(r.polyval,!0,o,s,n);for(let t=0;t<12;t++)a[t]^=e[t];a[15]&=127;const c=(0,i.u32)(a);let l=c[0],u=c[1],d=c[2],h=c[3];return({s0:l,s1:u,s2:d,s3:h}=w(t,l,u,d,h)),c[0]=l,c[1]=u,c[2]=d,c[3]=h,a}function d(t,e,n){let r=(0,i.copyBytes)(e);r[15]|=128;const o=B(t,!0,r,n);return(0,i.clean)(r),o}return(0,i.abytes)(t,16,24,32),a(e.length),void 0!==n&&o(n.length),{encrypt(t){s(t.length);const{encKey:e,authKey:n}=l(),r=u(e,n,t),o=[e,n,r];(0,i.isAligned32)(t)||o.push(t=(0,i.copyBytes)(t));const a=new Uint8Array(t.length+16);return a.set(r,t.length),a.set(d(e,r,t)),(0,i.clean)(...o),a},decrypt(t){c(t.length);const e=t.subarray(-16),{encKey:n,authKey:r}=l(),o=[n,r];(0,i.isAligned32)(t)||o.push(t=(0,i.copyBytes)(t));const s=d(n,e,t.subarray(0,-16)),a=u(n,r,s);if(o.push(a),!(0,i.equalBytes)(e,a))throw(0,i.clean)(...o),new Error("invalid polyval tag");return(0,i.clean)(...o),s}}})),e.siv=e.gcmsiv;const P={encrypt(t,e){if(e.length>=2**32)throw new Error("plaintext should be less than 4gb");const n=m(t);if(16===e.length)T(n,e);else{const t=(0,i.u32)(e);let r=t[0],o=t[1];for(let e=0,i=1;e<6;e++)for(let e=2;e<t.length;e+=2,i++){const{s0:s,s1:a,s2:c,s3:l}=w(n,r,o,t[e],t[e+1]);r=s,o=a^h(i),t[e]=c,t[e+1]=l}t[0]=r,t[1]=o}n.fill(0)},decrypt(t,e){if(e.length-8>=2**32)throw new Error("ciphertext should be less than 4gb");const n=_(t),r=e.length/8-1;if(1===r)R(n,e);else{const t=(0,i.u32)(e);let o=t[0],s=t[1];for(let e=0,i=6*r;e<6;e++)for(let e=2*r;e>=1;e-=2,i--){s^=h(i);const{s0:r,s1:a,s2:c,s3:l}=A(n,o,s,t[e],t[e+1]);o=r,s=a,t[e]=c,t[e+1]=l}t[0]=o,t[1]=s}n.fill(0)}},M=new Uint8Array(8).fill(166);e.aeskw=(0,i.wrapCipher)({blockSize:8},(t=>({encrypt(e){if(!e.length||e.length%8!=0)throw new Error("invalid plaintext length");if(8===e.length)throw new Error("8-byte keys not allowed in AESKW, use AESKWP instead");const n=(0,i.concatBytes)(M,e);return P.encrypt(t,n),n},decrypt(e){if(e.length%8!=0||e.length<24)throw new Error("invalid ciphertext length");const n=(0,i.copyBytes)(e);if(P.decrypt(t,n),!(0,i.equalBytes)(n.subarray(0,8),M))throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8)}})));const F=2790873510;e.aeskwp=(0,i.wrapCipher)({blockSize:8},(t=>({encrypt(e){if(!e.length)throw new Error("invalid plaintext length");const n=8*Math.ceil(e.length/8),r=new Uint8Array(8+n);r.set(e,8);const o=(0,i.u32)(r);return o[0]=F,o[1]=h(e.length),P.encrypt(t,r),r},decrypt(e){if(e.length<16)throw new Error("invalid ciphertext length");const n=(0,i.copyBytes)(e),r=(0,i.u32)(n);P.decrypt(t,n);const o=h(r[1])>>>0,s=8*Math.ceil(o/8);if(r[0]!==F||n.length-8!==s)throw new Error("integrity check failed");for(let t=o;t<s;t++)if(0!==n[8+t])throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8,8+o)}}))),e.unsafe={expandKeyLE:m,expandKeyDecLE:_,encrypt:w,decrypt:A,encryptBlock:T,decryptBlock:R,ctrCounter:E,ctr32:B}},514:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(5572);const i=function(t,e){return(0,r.A)(e,(function(e){return t[e]}))}},520:(t,e,n)=>{n.d(e,{z:()=>i});var r=n(1682);class i{_container;_anchor;_theme;constructor(t){this._theme=t.theme?t.theme:"default"}onAdd(t){return this._container=(0,r.r)("div","maplibregl-ctrl mapxus-ctrl-attribution",t.getContainer()),this._anchor=(0,r.r)("a","mapxus-attribution",this._container),this._anchor.target="_blank",this._setCopyrightInfo(this._theme),this._anchor.setAttribute("aria-label","Mapxus attribution"),this._anchor.setAttribute("rel","noopener"),this._container.appendChild(this._anchor),this._container}onRemove(){(0,r.Z)(this._container)}getDefaultPosition(){return"bottom-right"}changeTheme(t){this._setCopyrightInfo(t)}_setCopyrightInfo(t){this._anchor.innerText="landsD"===t?"© The Government of the Hong Kong SAR":"©Mapxus driven by Kawasaki ©OpenStreetMap contributors","landsD"===t&&(this._anchor.href="https://www.map.gov.hk/gm/")}}},549:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(5547);const i=function(t,e){var n=(0,r.A)(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},605:(t,e,n)=>{function r(t){return function(e){return t.apply(null,e)}}n.d(e,{A:()=>r})},608:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(6632);const i=function(t){var e=(0,r.A)(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},640:(t,e,n)=>{n.d(e,{A:()=>s});var r,i=n(3161),o=(r=/[^.]+$/.exec(i.A&&i.A.keys&&i.A.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";const s=function(t){return!!o&&o in t}},665:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(7275),i=n(4062),o=n(3119);function s(t){return r.A.isPlainObject(t)||r.A.isArray(t)}function a(t){return r.A.endsWith(t,"[]")?t.slice(0,-2):t}function c(t,e,n){return t?t.concat(e).map((function(t,e){return t=a(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const l=r.A.toFlatObject(r.A,{},null,(function(t){return/^is[A-Z]/.test(t)}));const u=function(t,e,n){if(!r.A.isObject(t))throw new TypeError("target must be an object");e=e||new(o.A||FormData);const u=(n=r.A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!r.A.isUndefined(e[t])}))).metaTokens,d=n.visitor||g,h=n.dots,f=n.indexes,p=(n.Blob||"undefined"!=typeof Blob&&Blob)&&r.A.isSpecCompliantForm(e);if(!r.A.isFunction(d))throw new TypeError("visitor must be a function");function y(t){if(null===t)return"";if(r.A.isDate(t))return t.toISOString();if(!p&&r.A.isBlob(t))throw new i.A("Blob is not supported. Use a Buffer instead.");return r.A.isArrayBuffer(t)||r.A.isTypedArray(t)?p&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function g(t,n,i){let o=t;if(t&&!i&&"object"==typeof t)if(r.A.endsWith(n,"{}"))n=u?n:n.slice(0,-2),t=JSON.stringify(t);else if(r.A.isArray(t)&&function(t){return r.A.isArray(t)&&!t.some(s)}(t)||(r.A.isFileList(t)||r.A.endsWith(n,"[]"))&&(o=r.A.toArray(t)))return n=a(n),o.forEach((function(t,i){!r.A.isUndefined(t)&&null!==t&&e.append(!0===f?c([n],i,h):null===f?n:n+"[]",y(t))})),!1;return!!s(t)||(e.append(c(i,n,h),y(t)),!1)}const m=[],_=Object.assign(l,{defaultVisitor:g,convertValue:y,isVisitable:s});if(!r.A.isObject(t))throw new TypeError("data must be an object");return function t(n,i){if(!r.A.isUndefined(n)){if(-1!==m.indexOf(n))throw Error("Circular reference detected in "+i.join("."));m.push(n),r.A.forEach(n,(function(n,o){!0===(!(r.A.isUndefined(n)||null===n)&&d.call(e,n,r.A.isString(o)?o.trim():o,i,_))&&t(n,i?i.concat(o):[o])})),m.pop()}}(t),e}},674:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(702).A)(Object,"create")},702:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(1979),i=n(8104);const o=function(t,e){var n=(0,i.A)(t,e);return(0,r.A)(n)?n:void 0}},714:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2528),i=n(9841),o=n(2141);const s=function(t,e){var n={};return e=(0,o.A)(e,3),(0,i.A)(t,(function(t,i,o){(0,r.A)(n,e(t,i,o),t)})),n}},746:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(3736),i=n(2141),o=n(3828),s=n(2049),a=n(6832);const c=function(t,e,n){var c=(0,s.A)(t)?r.A:o.A;return n&&(0,a.A)(t,e,n)&&(e=void 0),c(t,(0,i.A)(e,3))}},759:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(3265),i=n(1038);const o=function(t,e,n,o){var s=n.length,a=s,c=!o;if(null==t)return!a;for(t=Object(t);s--;){var l=n[s];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++s<a;){var u=(l=n[s])[0],d=t[u],h=l[1];if(c&&l[2]){if(void 0===d&&!(u in t))return!1}else{var f=new r.A;if(o)var p=o(d,h,u,t,e,f);if(!(void 0===p?(0,i.A)(h,d,3,o,f):p))return!1}}return!0}},805:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return function(e){return null==e?void 0:e[t]}}},807:(t,e,n)=>{n.d(e,{A:()=>r});const r={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},817:(t,e,n)=>{n.d(e,{A:()=>A});var r=n(3820),i=n(7275),o=n(4062),s=n(2723),a=n(1791),c=n(7110),l=n(7837),u=n(8382),d=n(3853);const h="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,f=h&&"function"==typeof ReadableStream,p=h&&("function"==typeof TextEncoder?(y=new TextEncoder,t=>y.encode(t)):async t=>new Uint8Array(await new Response(t).arrayBuffer()));var y;const g=(t,...e)=>{try{return!!t(...e)}catch(t){return!1}},m=f&&g((()=>{let t=!1;const e=new Request(r.A.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})),_=f&&g((()=>i.A.isReadableStream(new Response("").body))),b={stream:_&&(t=>t.body)};var v;h&&(v=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!b[t]&&(b[t]=i.A.isFunction(v[t])?e=>e[t]():(e,n)=>{throw new o.A(`Response type '${t}' is not supported`,o.A.ERR_NOT_SUPPORT,n)})})));const w=async(t,e)=>{const n=i.A.toFiniteNumber(t.getContentLength());return null==n?(async t=>{if(null==t)return 0;if(i.A.isBlob(t))return t.size;if(i.A.isSpecCompliantForm(t)){const e=new Request(r.A.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return i.A.isArrayBufferView(t)||i.A.isArrayBuffer(t)?t.byteLength:(i.A.isURLSearchParams(t)&&(t+=""),i.A.isString(t)?(await p(t)).byteLength:void 0)})(e):n},A=h&&(async t=>{let{url:e,method:n,data:r,signal:h,cancelToken:f,timeout:p,onDownloadProgress:y,onUploadProgress:g,responseType:v,headers:A,withCredentials:E="same-origin",fetchOptions:B}=(0,u.A)(t);v=v?(v+"").toLowerCase():"text";let S,x=(0,s.A)([h,f&&f.toAbortSignal()],p);const I=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let L;try{if(g&&m&&"get"!==n&&"head"!==n&&0!==(L=await w(A,r))){let t,n=new Request(e,{method:"POST",body:r,duplex:"half"});if(i.A.isFormData(r)&&(t=n.headers.get("content-type"))&&A.setContentType(t),n.body){const[t,e]=(0,l.Vj)(L,(0,l.C1)((0,l.mM)(g)));r=(0,a.E9)(n.body,65536,t,e)}}i.A.isString(E)||(E=E?"include":"omit");const o="credentials"in Request.prototype;S=new Request(e,{...B,signal:x,method:n.toUpperCase(),headers:A.normalize().toJSON(),body:r,duplex:"half",credentials:o?E:void 0});let s=await fetch(S);const u=_&&("stream"===v||"response"===v);if(_&&(y||u&&I)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=s[e]}));const e=i.A.toFiniteNumber(s.headers.get("content-length")),[n,r]=y&&(0,l.Vj)(e,(0,l.C1)((0,l.mM)(y),!0))||[];s=new Response((0,a.E9)(s.body,65536,n,(()=>{r&&r(),I&&I()})),t)}v=v||"text";let h=await b[i.A.findKey(b,v)||"text"](s,t);return!u&&I&&I(),await new Promise(((e,n)=>{(0,d.A)(e,n,{data:h,headers:c.A.from(s.headers),status:s.status,statusText:s.statusText,config:t,request:S})}))}catch(e){if(I&&I(),e&&"TypeError"===e.name&&/Load failed|fetch/i.test(e.message))throw Object.assign(new o.A("Network Error",o.A.ERR_NETWORK,t,S),{cause:e.cause||e});throw o.A.from(e,e&&e.code,t,S)}})},853:(t,e,n)=>{async function r(t,e){if(!t.hasImage(e))try{const n=await t.loadImage(e);t.addImage(e,n.data)}catch(t){throw new Error(t)}}n.d(e,{K:()=>r})},901:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(1882);const i=function(t){if("string"==typeof t||(0,r.A)(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},973:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(1894),i=n(1625);const o=(0,r.A)(i.A)},1031:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(169);const i=function(t,e){var n=this.__data__,i=(0,r.A)(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},1038:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(3244),i=n(3098);const o=function t(e,n,o,s,a){return e===n||(null==e||null==n||!(0,i.A)(e)&&!(0,i.A)(n)?e!=e&&n!=n:(0,r.A)(e,n,o,s,t,a))}},1052:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(1917);const i=function(){return r.A.Date.now()}},1076:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(7275),i=n(665),o=n(3820);function s(t,e){return(0,i.A)(t,new o.A.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,i){return o.A.isNode&&r.A.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}},1088:(t,e,n)=>{n.d(e,{B6:()=>s.B,CA:()=>i.C,EJ:()=>r.E,Nj:()=>o.N});var r=n(2468),i=n(9644),o=n(9205),s=n(6294)},1089:(t,e,n)=>{n.d(e,{A:()=>c});var r={value:()=>{}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function s(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function a(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),c=-1,l=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++c<l;)if(n=(t=o[c]).type)i[n]=a(i[n],t.name,e);else if(null==e)for(n in i)i[n]=a(i[n],t.name,null);return this}for(;++c<l;)if((n=(t=o[c]).type)&&(n=s(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};const c=i},1121:(t,e,n)=>{n.d(e,{A:()=>i});var r=Function.prototype.toString;const i=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1210:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.poly1305=void 0,e.wrapConstructorWithKey=s;const r=n(6527),i=(t,e)=>255&t[e++]|(255&t[e++])<<8;class o{constructor(t){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,t=(0,r.toBytes)(t),(0,r.abytes)(t,32);const e=i(t,0),n=i(t,2),o=i(t,4),s=i(t,6),a=i(t,8),c=i(t,10),l=i(t,12),u=i(t,14);this.r[0]=8191&e,this.r[1]=8191&(e>>>13|n<<3),this.r[2]=7939&(n>>>10|o<<6),this.r[3]=8191&(o>>>7|s<<9),this.r[4]=255&(s>>>4|a<<12),this.r[5]=a>>>1&8190,this.r[6]=8191&(a>>>14|c<<2),this.r[7]=8065&(c>>>11|l<<5),this.r[8]=8191&(l>>>8|u<<8),this.r[9]=u>>>5&127;for(let e=0;e<8;e++)this.pad[e]=i(t,16+2*e)}process(t,e,n=!1){const r=n?0:2048,{h:o,r:s}=this,a=s[0],c=s[1],l=s[2],u=s[3],d=s[4],h=s[5],f=s[6],p=s[7],y=s[8],g=s[9],m=i(t,e+0),_=i(t,e+2),b=i(t,e+4),v=i(t,e+6),w=i(t,e+8),A=i(t,e+10),E=i(t,e+12),B=i(t,e+14);let S=o[0]+(8191&m),x=o[1]+(8191&(m>>>13|_<<3)),I=o[2]+(8191&(_>>>10|b<<6)),L=o[3]+(8191&(b>>>7|v<<9)),O=o[4]+(8191&(v>>>4|w<<12)),C=o[5]+(w>>>1&8191),k=o[6]+(8191&(w>>>14|A<<2)),T=o[7]+(8191&(A>>>11|E<<5)),R=o[8]+(8191&(E>>>8|B<<8)),P=o[9]+(B>>>5|r),M=0,F=M+S*a+x*(5*g)+I*(5*y)+L*(5*p)+O*(5*f);M=F>>>13,F&=8191,F+=C*(5*h)+k*(5*d)+T*(5*u)+R*(5*l)+P*(5*c),M+=F>>>13,F&=8191;let H=M+S*c+x*a+I*(5*g)+L*(5*y)+O*(5*p);M=H>>>13,H&=8191,H+=C*(5*f)+k*(5*h)+T*(5*d)+R*(5*u)+P*(5*l),M+=H>>>13,H&=8191;let j=M+S*l+x*c+I*a+L*(5*g)+O*(5*y);M=j>>>13,j&=8191,j+=C*(5*p)+k*(5*f)+T*(5*h)+R*(5*d)+P*(5*u),M+=j>>>13,j&=8191;let N=M+S*u+x*l+I*c+L*a+O*(5*g);M=N>>>13,N&=8191,N+=C*(5*y)+k*(5*p)+T*(5*f)+R*(5*h)+P*(5*d),M+=N>>>13,N&=8191;let U=M+S*d+x*u+I*l+L*c+O*a;M=U>>>13,U&=8191,U+=C*(5*g)+k*(5*y)+T*(5*p)+R*(5*f)+P*(5*h),M+=U>>>13,U&=8191;let V=M+S*h+x*d+I*u+L*l+O*c;M=V>>>13,V&=8191,V+=C*a+k*(5*g)+T*(5*y)+R*(5*p)+P*(5*f),M+=V>>>13,V&=8191;let D=M+S*f+x*h+I*d+L*u+O*l;M=D>>>13,D&=8191,D+=C*c+k*a+T*(5*g)+R*(5*y)+P*(5*p),M+=D>>>13,D&=8191;let $=M+S*p+x*f+I*h+L*d+O*u;M=$>>>13,$&=8191,$+=C*l+k*c+T*a+R*(5*g)+P*(5*y),M+=$>>>13,$&=8191;let z=M+S*y+x*p+I*f+L*h+O*d;M=z>>>13,z&=8191,z+=C*u+k*l+T*c+R*a+P*(5*g),M+=z>>>13,z&=8191;let G=M+S*g+x*y+I*p+L*f+O*h;M=G>>>13,G&=8191,G+=C*d+k*u+T*l+R*c+P*a,M+=G>>>13,G&=8191,M=(M<<2)+M|0,M=M+F|0,F=8191&M,M>>>=13,H+=M,o[0]=F,o[1]=H,o[2]=j,o[3]=N,o[4]=U,o[5]=V,o[6]=D,o[7]=$,o[8]=z,o[9]=G}finalize(){const{h:t,pad:e}=this,n=new Uint16Array(10);let i=t[1]>>>13;t[1]&=8191;for(let e=2;e<10;e++)t[e]+=i,i=t[e]>>>13,t[e]&=8191;t[0]+=5*i,i=t[0]>>>13,t[0]&=8191,t[1]+=i,i=t[1]>>>13,t[1]&=8191,t[2]+=i,n[0]=t[0]+5,i=n[0]>>>13,n[0]&=8191;for(let e=1;e<10;e++)n[e]=t[e]+i,i=n[e]>>>13,n[e]&=8191;n[9]-=8192;let o=(1^i)-1;for(let t=0;t<10;t++)n[t]&=o;o=~o;for(let e=0;e<10;e++)t[e]=t[e]&o|n[e];t[0]=65535&(t[0]|t[1]<<13),t[1]=65535&(t[1]>>>3|t[2]<<10),t[2]=65535&(t[2]>>>6|t[3]<<7),t[3]=65535&(t[3]>>>9|t[4]<<4),t[4]=65535&(t[4]>>>12|t[5]<<1|t[6]<<14),t[5]=65535&(t[6]>>>2|t[7]<<11),t[6]=65535&(t[7]>>>5|t[8]<<8),t[7]=65535&(t[8]>>>8|t[9]<<5);let s=t[0]+e[0];t[0]=65535&s;for(let n=1;n<8;n++)s=(t[n]+e[n]|0)+(s>>>16)|0,t[n]=65535&s;(0,r.clean)(n)}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const{buffer:e,blockLen:n}=this,i=t.length;for(let r=0;r<i;){const o=Math.min(n-this.pos,i-r);if(o!==n)e.set(t.subarray(r,r+o),this.pos),this.pos+=o,r+=o,this.pos===n&&(this.process(e,0,!1),this.pos=0);else for(;n<=i-r;r+=n)this.process(t,r)}return this}destroy(){(0,r.clean)(this.h,this.r,this.buffer,this.pad)}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{buffer:e,h:n}=this;let{pos:i}=this;if(i){for(e[i++]=1;i<16;i++)e[i]=0;this.process(e,0,!0)}this.finalize();let o=0;for(let e=0;e<8;e++)t[o++]=n[e]>>>0,t[o++]=n[e]>>>8;return t}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}}function s(t){const e=(e,n)=>t(n).update((0,r.toBytes)(e)).digest(),n=t(new Uint8Array(32));return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}e.poly1305=s((t=>new o(t)))},1275:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(5917),i=n(5668),o=n(9875);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r.A;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i.A,s.prototype.has=o.A;const a=s},1470:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(5572),i=n(2141),o=n(9084),s=n(3973);const a=function(t,e){if(null==t)return{};var n=(0,r.A)((0,s.A)(t),(function(t){return[t]}));return e=(0,i.A)(e),(0,o.A)(t,n,(function(t,n){return e(t,n[0])}))}},1472:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(3454),i=n(8776),o=n(1694);const s=function(t,e,n){return e=(0,i.A)(e),void 0===n?(n=e,e=0):n=(0,i.A)(n),t=(0,o.A)(t),(0,r.A)(t,e,n)}},1484:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.notImplemented=e.bitMask=void 0,e.isBytes=i,e.abytes=o,e.abool=function(t,e){if("boolean"!=typeof e)throw new Error(t+" boolean expected, got "+e)},e.numberToHexUnpadded=s,e.hexToNumber=a,e.bytesToHex=u,e.hexToBytes=f,e.bytesToNumberBE=function(t){return a(u(t))},e.bytesToNumberLE=function(t){return o(t),a(u(Uint8Array.from(t).reverse()))},e.numberToBytesBE=p,e.numberToBytesLE=function(t,e){return p(t,e).reverse()},e.numberToVarBytesBE=function(t){return f(s(t))},e.ensureBytes=function(t,e,n){let r;if("string"==typeof e)try{r=f(e)}catch(e){throw new Error(t+" must be hex string or Uint8Array, cause: "+e)}else{if(!i(e))throw new Error(t+" must be hex string or Uint8Array");r=Uint8Array.from(e)}const o=r.length;if("number"==typeof n&&o!==n)throw new Error(t+" of length "+n+" expected, got "+o);return r},e.concatBytes=y,e.equalBytes=function(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r<t.length;r++)n|=t[r]^e[r];return 0===n},e.utf8ToBytes=function(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))},e.inRange=m,e.aInRange=function(t,e,n,r){if(!m(e,n,r))throw new Error("expected valid "+t+": "+n+" <= n < "+r+", got "+e)},e.bitLen=function(t){let e;for(e=0;t>n;t>>=r,e+=1);return e},e.bitGet=function(t,e){return t>>BigInt(e)&r},e.bitSet=function(t,e,i){return t|(i?r:n)<<BigInt(e)},e.createHmacDrbg=function(t,e,n){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let r=_(t),i=_(t),o=0;const s=()=>{r.fill(1),i.fill(0),o=0},a=(...t)=>n(i,r,...t),c=(t=_(0))=>{i=a(b([0]),t),r=a(),0!==t.length&&(i=a(b([1]),t),r=a())},l=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const n=[];for(;t<e;){r=a();const e=r.slice();n.push(e),t+=r.length}return y(...n)};return(t,e)=>{let n;for(s(),c(t);!(n=e(l()));)c();return s(),n}},e.validateObject=function(t,e,n={}){const r=(e,n,r)=>{const i=v[n];if("function"!=typeof i)throw new Error("invalid validator function");const o=t[e];if(!(r&&void 0===o||i(o,t)))throw new Error("param "+String(e)+" is invalid. Expected "+n+", got "+o)};for(const[t,n]of Object.entries(e))r(t,n,!1);for(const[t,e]of Object.entries(n))r(t,e,!0);return t},e.memoized=function(t){const e=new WeakMap;return(n,...r)=>{const i=e.get(n);if(void 0!==i)return i;const o=t(n,...r);return e.set(n,o),o}};const n=BigInt(0),r=BigInt(1);function i(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function o(t){if(!i(t))throw new Error("Uint8Array expected")}function s(t){const e=t.toString(16);return 1&e.length?"0"+e:e}function a(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return""===t?n:BigInt("0x"+t)}const c="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,l=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function u(t){if(o(t),c)return t.toHex();let e="";for(let n=0;n<t.length;n++)e+=l[t[n]];return e}const d={_0:48,_9:57,A:65,F:70,a:97,f:102};function h(t){return t>=d._0&&t<=d._9?t-d._0:t>=d.A&&t<=d.F?t-(d.A-10):t>=d.a&&t<=d.f?t-(d.a-10):void 0}function f(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(c)return Uint8Array.fromHex(t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,i=0;e<n;e++,i+=2){const n=h(t.charCodeAt(i)),o=h(t.charCodeAt(i+1));if(void 0===n||void 0===o){const e=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+i)}r[e]=16*n+o}return r}function p(t,e){return f(t.toString(16).padStart(2*e,"0"))}function y(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];o(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const i=t[e];n.set(i,r),r+=i.length}return n}const g=t=>"bigint"==typeof t&&n<=t;function m(t,e,n){return g(t)&&g(e)&&g(n)&&e<=t&&t<n}e.bitMask=t=>(r<<BigInt(t))-r;const _=t=>new Uint8Array(t),b=t=>Uint8Array.from(t);const v={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,stringOrUint8Array:t=>"string"==typeof t||i(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};e.notImplemented=()=>{throw new Error("not implemented")}},1493:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1521:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(5547);const i=function(t){return(0,r.A)(this,t).get(t)}},1532:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(7919);const i=function(){this.__data__=new r.A,this.size=0}},1625:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(5707),i=n(2141),o=n(8593),s=Math.max;const a=function(t,e,n){var a=null==t?0:t.length;if(!a)return-1;var c=null==n?0:(0,o.A)(n);return c<0&&(c=s(a+c,0)),(0,r.A)(t,(0,i.A)(e,3),c)}},1635:(t,e,n)=>{n.d(e,{Cl:()=>r,YH:()=>o,fX:()=>s,sH:()=>i});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}function o(t,e){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;function s(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create;"function"==typeof SuppressedError&&SuppressedError},1666:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AEAD_TAG_LENGTH=e.XCHACHA20_NONCE_LENGTH=e.CURVE25519_PUBLIC_KEY_SIZE=e.ETH_PUBLIC_KEY_SIZE=e.UNCOMPRESSED_PUBLIC_KEY_SIZE=e.COMPRESSED_PUBLIC_KEY_SIZE=e.SECRET_KEY_LENGTH=void 0,e.SECRET_KEY_LENGTH=32,e.COMPRESSED_PUBLIC_KEY_SIZE=33,e.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,e.ETH_PUBLIC_KEY_SIZE=64,e.CURVE25519_PUBLIC_KEY_SIZE=32,e.XCHACHA20_NONCE_LENGTH=24,e.AEAD_TAG_LENGTH=16},1682:(t,e,n)=>{function r(t){t.parentNode&&t.parentNode.removeChild(t)}function i(t,e,n){const r=document.createElement(t);return e&&(r.className=e),n&&n.appendChild(r),r}n.d(e,{Z:()=>r,r:()=>i})},1694:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(5488),i=n(3149),o=n(1882),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;const u=function(t){if("number"==typeof t)return t;if((0,o.A)(t))return NaN;if((0,i.A)(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=(0,i.A)(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=(0,r.A)(t);var n=a.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):s.test(t)?NaN:+t}},1705:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DER=e.DERErr=void 0,e.weierstrassPoints=p,e.weierstrass=function(t){const n=function(t){const e=(0,r.validateBasic)(t);return(0,o.validateObject)(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:a,n:d,nByteLength:h,nBitLength:f}=n,y=a.BYTES+1,g=2*a.BYTES+1;function m(t){return(0,i.mod)(t,d)}function _(t){return(0,i.invert)(t,d)}const{ProjectivePoint:b,normPrivateKeyToScalar:v,weierstrassEquation:w,isWithinCurveOrder:A}=p({...n,toBytes(t,e,n){const r=e.toAffine(),i=a.toBytes(r.x),s=o.concatBytes;return(0,o.abool)("isCompressed",n),n?s(Uint8Array.from([e.hasEvenY()?2:3]),i):s(Uint8Array.from([4]),i,a.toBytes(r.y))},fromBytes(t){const e=t.length,n=t[0],r=t.subarray(1);if(e!==y||2!==n&&3!==n){if(e===g&&4===n){return{x:a.fromBytes(r.subarray(0,a.BYTES)),y:a.fromBytes(r.subarray(a.BYTES,2*a.BYTES))}}throw new Error("invalid Point, expected length of "+y+", or uncompressed "+g+", got "+e)}{const t=(0,o.bytesToNumberBE)(r);if(!(0,o.inRange)(t,u,a.ORDER))throw new Error("Point is not on curve");const e=w(t);let i;try{i=a.sqrt(e)}catch(t){const e=t instanceof Error?": "+t.message:"";throw new Error("Point is not on curve"+e)}return!(1&~n)!==((i&u)===u)&&(i=a.neg(i)),{x:t,y:i}}}});function E(t){return t>d>>u}const B=(t,e,n)=>(0,o.bytesToNumberBE)(t.slice(e,n));class S{constructor(t,e,n){(0,o.aInRange)("r",t,u,d),(0,o.aInRange)("s",e,u,d),this.r=t,this.s=e,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(t){const e=h;return t=(0,o.ensureBytes)("compactSignature",t,2*e),new S(B(t,0,e),B(t,e,2*e))}static fromDER(t){const{r:n,s:r}=e.DER.toSig((0,o.ensureBytes)("DER",t));return new S(n,r)}assertValidity(){}addRecoveryBit(t){return new S(this.r,this.s,t)}recoverPublicKey(t){const{r:e,s:r,recovery:i}=this,s=O((0,o.ensureBytes)("msgHash",t));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const l=2===i||3===i?e+n.n:e;if(l>=a.ORDER)throw new Error("recovery id 2 or 3 invalid");const u=1&i?"03":"02",d=b.fromHex(u+c(l,a.BYTES)),h=_(l),f=m(-s*h),p=m(r*h),y=b.BASE.multiplyAndAddUnsafe(d,f,p);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new S(this.r,m(-this.s),this.recovery):this}toDERRawBytes(){return(0,o.hexToBytes)(this.toDERHex())}toDERHex(){return e.DER.hexFromSig(this)}toCompactRawBytes(){return(0,o.hexToBytes)(this.toCompactHex())}toCompactHex(){const t=h;return c(this.r,t)+c(this.s,t)}}const x={isValidPrivateKey(t){try{return v(t),!0}catch(t){return!1}},normPrivateKeyToScalar:v,randomPrivateKey:()=>{const t=(0,i.getMinHashLength)(n.n);return(0,i.mapHashToField)(n.randomBytes(t),n.n)},precompute:(t=8,e=b.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)};function I(t){if("bigint"==typeof t)return!1;if(t instanceof b)return!0;const e=(0,o.ensureBytes)("key",t).length,r=a.BYTES,i=r+1,s=2*r+1;return n.allowedPrivateKeyLengths||h===i?void 0:e===i||e===s}const L=n.bits2int||function(t){if(t.length>8192)throw new Error("input is too large");const e=(0,o.bytesToNumberBE)(t),n=8*t.length-f;return n>0?e>>BigInt(n):e},O=n.bits2int_modN||function(t){return m(L(t))},C=(0,o.bitMask)(f);function k(t){return(0,o.aInRange)("num < 2^"+f,t,l,C),(0,o.numberToBytesBE)(t,h)}function T(t,e,r=R){if(["recovered","canonical"].some((t=>t in r)))throw new Error("sign() legacy options not supported");const{hash:i,randomBytes:c}=n;let{lowS:d,prehash:h,extraEntropy:f}=r;null==d&&(d=!0),t=(0,o.ensureBytes)("msgHash",t),s(r),h&&(t=(0,o.ensureBytes)("prehashed msgHash",i(t)));const p=O(t),y=v(e),g=[k(y),k(p)];if(null!=f&&!1!==f){const t=!0===f?c(a.BYTES):f;g.push((0,o.ensureBytes)("extraEntropy",t))}const w=(0,o.concatBytes)(...g),B=p;return{seed:w,k2sig:function(t){const e=L(t);if(!A(e))return;const n=_(e),r=b.BASE.multiply(e).toAffine(),i=m(r.x);if(i===l)return;const o=m(n*m(B+i*y));if(o===l)return;let s=(r.x===i?0:2)|Number(r.y&u),a=o;return d&&E(o)&&(a=function(t){return E(t)?m(-t):t}(o),s^=1),new S(i,a,s)}}}const R={lowS:n.lowS,prehash:!1},P={lowS:n.lowS,prehash:!1};return b.BASE._setWindowSize(8),{CURVE:n,getPublicKey:function(t,e=!0){return b.fromPrivateKey(t).toRawBytes(e)},getSharedSecret:function(t,e,n=!0){if(!0===I(t))throw new Error("first arg must be private key");if(!1===I(e))throw new Error("second arg must be public key");return b.fromHex(e).multiply(v(t)).toRawBytes(n)},sign:function(t,e,r=R){const{seed:i,k2sig:s}=T(t,e,r),a=n;return(0,o.createHmacDrbg)(a.hash.outputLen,a.nByteLength,a.hmac)(i,s)},verify:function(t,r,i,a=P){const c=t;r=(0,o.ensureBytes)("msgHash",r),i=(0,o.ensureBytes)("publicKey",i);const{lowS:l,prehash:u,format:d}=a;if(s(a),"strict"in a)throw new Error("options.strict was renamed to lowS");if(void 0!==d&&"compact"!==d&&"der"!==d)throw new Error("format must be compact or der");const h="string"==typeof c||(0,o.isBytes)(c),f=!h&&!d&&"object"==typeof c&&null!==c&&"bigint"==typeof c.r&&"bigint"==typeof c.s;if(!h&&!f)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let p,y;try{if(f&&(p=new S(c.r,c.s)),h){try{"compact"!==d&&(p=S.fromDER(c))}catch(t){if(!(t instanceof e.DER.Err))throw t}p||"der"===d||(p=S.fromCompact(c))}y=b.fromHex(i)}catch(t){return!1}if(!p)return!1;if(l&&p.hasHighS())return!1;u&&(r=n.hash(r));const{r:g,s:v}=p,w=O(r),A=_(v),E=m(w*A),B=m(g*A),x=b.BASE.multiplyAndAddUnsafe(y,E,B)?.toAffine();if(!x)return!1;return m(x.x)===g},ProjectivePoint:b,Signature:S,utils:x}},e.SWUFpSqrtRatio=y,e.mapToCurveSimpleSWU=function(t,e){if((0,i.validateField)(t),!t.isValid(e.A)||!t.isValid(e.B)||!t.isValid(e.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=y(t,e.Z);if(!t.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let o,s,a,c,l,u,d,h;o=t.sqr(r),o=t.mul(o,e.Z),s=t.sqr(o),s=t.add(s,o),a=t.add(s,t.ONE),a=t.mul(a,e.B),c=t.cmov(e.Z,t.neg(s),!t.eql(s,t.ZERO)),c=t.mul(c,e.A),s=t.sqr(a),u=t.sqr(c),l=t.mul(u,e.A),s=t.add(s,l),s=t.mul(s,a),u=t.mul(u,c),l=t.mul(u,e.B),s=t.add(s,l),d=t.mul(o,a);const{isValid:f,value:p}=n(s,u);h=t.mul(o,r),h=t.mul(h,p),d=t.cmov(d,a,f),h=t.cmov(h,p,f);const y=t.isOdd(r)===t.isOdd(h);h=t.cmov(t.neg(h),h,y);const g=(0,i.FpInvertBatch)(t,[c],!0)[0];return d=t.mul(d,g),{x:d,y:h}}};const r=n(2422),i=n(4967),o=n(1484);function s(t){void 0!==t.lowS&&(0,o.abool)("lowS",t.lowS),void 0!==t.prehash&&(0,o.abool)("prehash",t.prehash)}class a extends Error{constructor(t=""){super(t)}}function c(t,e){return(0,o.bytesToHex)((0,o.numberToBytesBE)(t,e))}e.DERErr=a,e.DER={Err:a,_tlv:{encode:(t,n)=>{const{Err:r}=e.DER;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(1&n.length)throw new r("tlv.encode: unpadded data");const i=n.length/2,s=(0,o.numberToHexUnpadded)(i);if(s.length/2&128)throw new r("tlv.encode: long form length too big");const a=i>127?(0,o.numberToHexUnpadded)(s.length/2|128):"";return(0,o.numberToHexUnpadded)(t)+a+s+n},decode(t,n){const{Err:r}=e.DER;let i=0;if(t<0||t>256)throw new r("tlv.encode: wrong tag");if(n.length<2||n[i++]!==t)throw new r("tlv.decode: wrong tlv");const o=n[i++];let s=0;if(!!(128&o)){const t=127&o;if(!t)throw new r("tlv.decode(long): indefinite length not supported");if(t>4)throw new r("tlv.decode(long): byte length is too big");const e=n.subarray(i,i+t);if(e.length!==t)throw new r("tlv.decode: length bytes not complete");if(0===e[0])throw new r("tlv.decode(long): zero leftmost byte");for(const t of e)s=s<<8|t;if(i+=t,s<128)throw new r("tlv.decode(long): not minimal encoding")}else s=o;const a=n.subarray(i,i+s);if(a.length!==s)throw new r("tlv.decode: wrong value length");return{v:a,l:n.subarray(i+s)}}},_int:{encode(t){const{Err:n}=e.DER;if(t<l)throw new n("integer: negative integers are not allowed");let r=(0,o.numberToHexUnpadded)(t);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new n("unexpected DER parsing assertion: unpadded hex");return r},decode(t){const{Err:n}=e.DER;if(128&t[0])throw new n("invalid signature integer: negative");if(0===t[0]&&!(128&t[1]))throw new n("invalid signature integer: unnecessary leading zero");return(0,o.bytesToNumberBE)(t)}},toSig(t){const{Err:n,_int:r,_tlv:i}=e.DER,s=(0,o.ensureBytes)("signature",t),{v:a,l:c}=i.decode(48,s);if(c.length)throw new n("invalid signature: left bytes after parsing");const{v:l,l:u}=i.decode(2,a),{v:d,l:h}=i.decode(2,u);if(h.length)throw new n("invalid signature: left bytes after parsing");return{r:r.decode(l),s:r.decode(d)}},hexFromSig(t){const{_tlv:n,_int:r}=e.DER,i=n.encode(2,r.encode(t.r))+n.encode(2,r.encode(t.s));return n.encode(48,i)}};const l=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(3),f=BigInt(4);function p(t){const e=function(t){const e=(0,r.validateBasic)(t);(0,o.validateObject)(e,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:i,a:s}=e;if(n){if(!i.eql(s,i.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...e})}(t),{Fp:n}=e,s=(0,i.Field)(e.n,e.nBitLength),a=e.toBytes||((t,e,r)=>{const i=e.toAffine();return(0,o.concatBytes)(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),c=e.fromBytes||(t=>{const e=t.subarray(1);return{x:n.fromBytes(e.subarray(0,n.BYTES)),y:n.fromBytes(e.subarray(n.BYTES,2*n.BYTES))}});function d(t){const{a:r,b:i}=e,o=n.sqr(t),s=n.mul(o,t);return n.add(n.add(s,n.mul(t,r)),i)}function p(t,e){const r=n.sqr(e),i=d(t);return n.eql(r,i)}if(!p(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const y=n.mul(n.pow(e.a,h),f),g=n.mul(n.sqr(e.b),BigInt(27));if(n.is0(n.add(y,g)))throw new Error("bad curve params: a or b");function m(t){const{allowedPrivateKeyLengths:n,nByteLength:r,wrapPrivateKey:s,n:a}=e;if(n&&"bigint"!=typeof t){if((0,o.isBytes)(t)&&(t=(0,o.bytesToHex)(t)),"string"!=typeof t||!n.includes(t.length))throw new Error("invalid private key");t=t.padStart(2*r,"0")}let c;try{c="bigint"==typeof t?t:(0,o.bytesToNumberBE)((0,o.ensureBytes)("private key",t,r))}catch(e){throw new Error("invalid private key, expected hex or "+r+" bytes, got "+typeof t)}return s&&(c=(0,i.mod)(c,a)),(0,o.aInRange)("private key",c,u,a),c}function _(t){if(!(t instanceof w))throw new Error("ProjectivePoint expected")}const b=(0,o.memoized)(((t,e)=>{const{px:r,py:i,pz:o}=t;if(n.eql(o,n.ONE))return{x:r,y:i};const s=t.is0();null==e&&(e=s?n.ONE:n.inv(o));const a=n.mul(r,e),c=n.mul(i,e),l=n.mul(o,e);if(s)return{x:n.ZERO,y:n.ZERO};if(!n.eql(l,n.ONE))throw new Error("invZ was invalid");return{x:a,y:c}})),v=(0,o.memoized)((t=>{if(t.is0()){if(e.allowInfinityPoint&&!n.is0(t.py))return;throw new Error("bad point: ZERO")}const{x:r,y:i}=t.toAffine();if(!n.isValid(r)||!n.isValid(i))throw new Error("bad point: x or y not FE");if(!p(r,i))throw new Error("bad point: equation left != right");if(!t.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0}));class w{constructor(t,e,r){if(null==t||!n.isValid(t))throw new Error("x required");if(null==e||!n.isValid(e)||n.is0(e))throw new Error("y required");if(null==r||!n.isValid(r))throw new Error("z required");this.px=t,this.py=e,this.pz=r,Object.freeze(this)}static fromAffine(t){const{x:e,y:r}=t||{};if(!t||!n.isValid(e)||!n.isValid(r))throw new Error("invalid affine point");if(t instanceof w)throw new Error("projective point not allowed");const i=t=>n.eql(t,n.ZERO);return i(e)&&i(r)?w.ZERO:new w(e,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){const e=(0,i.FpInvertBatch)(n,t.map((t=>t.pz)));return t.map(((t,n)=>t.toAffine(e[n]))).map(w.fromAffine)}static fromHex(t){const e=w.fromAffine(c((0,o.ensureBytes)("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return w.BASE.multiply(m(t))}static msm(t,e){return(0,r.pippenger)(w,s,t,e)}_setWindowSize(t){B.setWindowSize(this,t)}assertValidity(){v(this)}hasEvenY(){const{y:t}=this.toAffine();if(n.isOdd)return!n.isOdd(t);throw new Error("Field doesn't support isOdd")}equals(t){_(t);const{px:e,py:r,pz:i}=this,{px:o,py:s,pz:a}=t,c=n.eql(n.mul(e,a),n.mul(o,i)),l=n.eql(n.mul(r,a),n.mul(s,i));return c&&l}negate(){return new w(this.px,n.neg(this.py),this.pz)}double(){const{a:t,b:r}=e,i=n.mul(r,h),{px:o,py:s,pz:a}=this;let c=n.ZERO,l=n.ZERO,u=n.ZERO,d=n.mul(o,o),f=n.mul(s,s),p=n.mul(a,a),y=n.mul(o,s);return y=n.add(y,y),u=n.mul(o,a),u=n.add(u,u),c=n.mul(t,u),l=n.mul(i,p),l=n.add(c,l),c=n.sub(f,l),l=n.add(f,l),l=n.mul(c,l),c=n.mul(y,c),u=n.mul(i,u),p=n.mul(t,p),y=n.sub(d,p),y=n.mul(t,y),y=n.add(y,u),u=n.add(d,d),d=n.add(u,d),d=n.add(d,p),d=n.mul(d,y),l=n.add(l,d),p=n.mul(s,a),p=n.add(p,p),d=n.mul(p,y),c=n.sub(c,d),u=n.mul(p,f),u=n.add(u,u),u=n.add(u,u),new w(c,l,u)}add(t){_(t);const{px:r,py:i,pz:o}=this,{px:s,py:a,pz:c}=t;let l=n.ZERO,u=n.ZERO,d=n.ZERO;const f=e.a,p=n.mul(e.b,h);let y=n.mul(r,s),g=n.mul(i,a),m=n.mul(o,c),b=n.add(r,i),v=n.add(s,a);b=n.mul(b,v),v=n.add(y,g),b=n.sub(b,v),v=n.add(r,o);let A=n.add(s,c);return v=n.mul(v,A),A=n.add(y,m),v=n.sub(v,A),A=n.add(i,o),l=n.add(a,c),A=n.mul(A,l),l=n.add(g,m),A=n.sub(A,l),d=n.mul(f,v),l=n.mul(p,m),d=n.add(l,d),l=n.sub(g,d),d=n.add(g,d),u=n.mul(l,d),g=n.add(y,y),g=n.add(g,y),m=n.mul(f,m),v=n.mul(p,v),g=n.add(g,m),m=n.sub(y,m),m=n.mul(f,m),v=n.add(v,m),y=n.mul(g,v),u=n.add(u,y),y=n.mul(A,v),l=n.mul(b,l),l=n.sub(l,y),y=n.mul(b,g),d=n.mul(A,d),d=n.add(d,y),new w(l,u,d)}subtract(t){return this.add(t.negate())}is0(){return this.equals(w.ZERO)}wNAF(t){return B.wNAFCached(this,t,w.normalizeZ)}multiplyUnsafe(t){const{endo:r,n:i}=e;(0,o.aInRange)("scalar",t,l,i);const s=w.ZERO;if(t===l)return s;if(this.is0()||t===u)return this;if(!r||B.hasPrecomputes(this))return B.wNAFCachedUnsafe(this,t,w.normalizeZ);let{k1neg:a,k1:c,k2neg:d,k2:h}=r.splitScalar(t),f=s,p=s,y=this;for(;c>l||h>l;)c&u&&(f=f.add(y)),h&u&&(p=p.add(y)),y=y.double(),c>>=u,h>>=u;return a&&(f=f.negate()),d&&(p=p.negate()),p=new w(n.mul(p.px,r.beta),p.py,p.pz),f.add(p)}multiply(t){const{endo:r,n:i}=e;let s,a;if((0,o.aInRange)("scalar",t,u,i),r){const{k1neg:e,k1:i,k2neg:o,k2:c}=r.splitScalar(t);let{p:l,f:u}=this.wNAF(i),{p:d,f:h}=this.wNAF(c);l=B.constTimeNegate(e,l),d=B.constTimeNegate(o,d),d=new w(n.mul(d.px,r.beta),d.py,d.pz),s=l.add(d),a=u.add(h)}else{const{p:e,f:n}=this.wNAF(t);s=e,a=n}return w.normalizeZ([s,a])[0]}multiplyAndAddUnsafe(t,e,n){const r=w.BASE,i=(t,e)=>e!==l&&e!==u&&t.equals(r)?t.multiply(e):t.multiplyUnsafe(e),o=i(this,e).add(i(t,n));return o.is0()?void 0:o}toAffine(t){return b(this,t)}isTorsionFree(){const{h:t,isTorsionFree:n}=e;if(t===u)return!0;if(n)return n(w,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:t,clearCofactor:n}=e;return t===u?this:n?n(w,this):this.multiplyUnsafe(e.h)}toRawBytes(t=!0){return(0,o.abool)("isCompressed",t),this.assertValidity(),a(w,this,t)}toHex(t=!0){return(0,o.abool)("isCompressed",t),(0,o.bytesToHex)(this.toRawBytes(t))}}w.BASE=new w(e.Gx,e.Gy,n.ONE),w.ZERO=new w(n.ZERO,n.ONE,n.ZERO);const{endo:A,nBitLength:E}=e,B=(0,r.wNAF)(w,A?Math.ceil(E/2):E);return{CURVE:e,ProjectivePoint:w,normPrivateKeyToScalar:m,weierstrassEquation:d,isWithinCurveOrder:function(t){return(0,o.inRange)(t,u,e.n)}}}function y(t,e){const n=t.ORDER;let r=l;for(let t=n-u;t%d===l;t/=d)r+=u;const i=r,o=d<<i-u-u,s=o*d,a=(n-u)/s,c=(a-u)/d,p=s-u,y=o,g=t.pow(e,a),m=t.pow(e,(a+u)/d);let _=(e,n)=>{let r=g,o=t.pow(n,p),s=t.sqr(o);s=t.mul(s,n);let a=t.mul(e,s);a=t.pow(a,c),a=t.mul(a,o),o=t.mul(a,n),s=t.mul(a,e);let l=t.mul(s,o);a=t.pow(l,y);let h=t.eql(a,t.ONE);o=t.mul(s,m),a=t.mul(l,r),s=t.cmov(o,s,h),l=t.cmov(a,l,h);for(let e=i;e>u;e--){let n=e-d;n=d<<n-u;let i=t.pow(l,n);const a=t.eql(i,t.ONE);o=t.mul(s,r),r=t.mul(r,r),i=t.mul(l,r),s=t.cmov(o,s,a),l=t.cmov(i,l,a)}return{isValid:h,value:s}};if(t.ORDER%f===h){const n=(t.ORDER-h)/f,r=t.sqrt(t.neg(e));_=(e,i)=>{let o=t.sqr(i);const s=t.mul(e,i);o=t.mul(o,s);let a=t.pow(o,n);a=t.mul(a,s);const c=t.mul(a,r),l=t.mul(t.sqr(a),i),u=t.eql(l,e);return{isValid:u,value:t.cmov(c,a,u)}}}return _}},1761:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.expand_message_xmd=l,e.expand_message_xof=u,e.hash_to_field=d,e.isogenyMap=function(t,e){const n=e.map((t=>Array.from(t).reverse()));return(e,i)=>{const[o,s,a,c]=n.map((n=>n.reduce(((n,r)=>t.add(t.mul(n,e),r))))),[l,u]=(0,r.FpInvertBatch)(t,[s,c],!0);return e=t.mul(o,l),i=t.mul(i,t.mul(a,u)),{x:e,y:i}}},e.createHasher=function(t,e,n){if("function"!=typeof e)throw new Error("mapToCurve() must be defined");function r(n){return t.fromAffine(e(n))}function i(e){const n=e.clearCofactor();return n.equals(t.ZERO)?t.ZERO:(n.assertValidity(),n)}return{defaults:n,hashToCurve(t,e){const o=d(t,2,{...n,DST:n.DST,...e}),s=r(o[0]),a=r(o[1]);return i(s.add(a))},encodeToCurve:(t,e)=>i(r(d(t,1,{...n,DST:n.encodeDST,...e})[0])),mapToCurve(t){if(!Array.isArray(t))throw new Error("expected array of bigints");for(const e of t)if("bigint"!=typeof e)throw new Error("expected array of bigints");return i(r(t))}}};const r=n(4967),i=n(1484),o=i.bytesToNumberBE;function s(t,e){if(c(t),c(e),t<0||t>=1<<8*e)throw new Error("invalid I2OSP input: "+t);const n=Array.from({length:e}).fill(0);for(let r=e-1;r>=0;r--)n[r]=255&t,t>>>=8;return new Uint8Array(n)}function a(t,e){const n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t[r]^e[r];return n}function c(t){if(!Number.isSafeInteger(t))throw new Error("number expected")}function l(t,e,n,r){(0,i.abytes)(t),(0,i.abytes)(e),c(n),e.length>255&&(e=r((0,i.concatBytes)((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:o,blockLen:l}=r,u=Math.ceil(n/o);if(n>65535||u>255)throw new Error("expand_message_xmd: invalid lenInBytes");const d=(0,i.concatBytes)(e,s(e.length,1)),h=s(0,l),f=s(n,2),p=new Array(u),y=r((0,i.concatBytes)(h,t,f,s(0,1),d));p[0]=r((0,i.concatBytes)(y,s(1,1),d));for(let t=1;t<=u;t++){const e=[a(y,p[t-1]),s(t+1,1),d];p[t]=r((0,i.concatBytes)(...e))}return(0,i.concatBytes)(...p).slice(0,n)}function u(t,e,n,r,o){if((0,i.abytes)(t),(0,i.abytes)(e),c(n),e.length>255){const t=Math.ceil(2*r/8);e=o.create({dkLen:t}).update((0,i.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(n>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:n}).update(t).update(s(n,2)).update(e).update(s(e.length,1)).digest()}function d(t,e,n){(0,i.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:s,k:a,m:d,hash:h,expand:f,DST:p}=n;(0,i.abytes)(t),c(e);const y="string"==typeof p?(0,i.utf8ToBytes)(p):p,g=s.toString(2).length,m=Math.ceil((g+a)/8),_=e*d*m;let b;if("xmd"===f)b=l(t,y,_,h);else if("xof"===f)b=u(t,y,_,a,h);else{if("_internal_pass"!==f)throw new Error('expand must be "xmd" or "xof"');b=t}const v=new Array(e);for(let t=0;t<e;t++){const e=new Array(d);for(let n=0;n<d;n++){const i=m*(n+t*d),a=b.subarray(i,i+m);e[n]=(0,r.mod)(o(a),s)}v[t]=e}return v}},1788:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(4846),i=n(3098),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable;const c=(0,r.A)(function(){return arguments}())?r.A:function(t){return(0,i.A)(t)&&s.call(t,"callee")&&!a.call(t,"callee")}},1790:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(9501);const i=function(t,e){var n=[];return(0,r.A)(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}},1791:(t,e,n)=>{n.d(e,{E9:()=>o});const r=function*(t,e){let n=t.byteLength;if(!e||n<e)return void(yield t);let r,i=0;for(;i<n;)r=i+e,yield t.slice(i,r),i=r},i=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},o=(t,e,n,o)=>{const s=async function*(t,e){for await(const n of i(t))yield*r(n,e)}(t,e);let a,c=0,l=t=>{a||(a=!0,o&&o(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await s.next();if(e)return l(),void t.close();let i=r.byteLength;if(n){let t=c+=i;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),s.return())},{highWaterMark:2})}},1865:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(423),i=n(8823),o=n(8446);const s=function(t){return(0,o.A)(t)?(0,r.A)(t,!0):(0,i.A)(t)}},1879:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(9672),i=n(3098);const o=function(t){return"number"==typeof t||(0,i.A)(t)&&"[object Number]"==(0,r.A)(t)}},1882:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(9672),i=n(3098);const o=function(t){return"symbol"==typeof t||(0,i.A)(t)&&"[object Symbol]"==(0,r.A)(t)}},1894:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2141),i=n(8446),o=n(7422);const s=function(t){return function(e,n,s){var a=Object(e);if(!(0,i.A)(e)){var c=(0,r.A)(n,3);e=(0,o.A)(e),n=function(t){return c(a[t],t,a)}}var l=t(e,n,s);return l>-1?a[c?e[l]:l]:void 0}}},1917:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(2136),i="object"==typeof self&&self&&self.Object===Object&&self;const o=r.A||i||Function("return this")()},1965:(t,e,n)=>{n.d(e,{Zj:()=>r});const r="reserve_mapxus-building-fill"},1979:(t,e,n)=>{n.d(e,{A:()=>f});var r=n(9610),i=n(640),o=n(3149),s=n(1121),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const f=function(t){return!(!(0,o.A)(t)||(0,i.A)(t))&&((0,r.A)(t)?h:a).test((0,s.A)(t))}},2049:(t,e,n)=>{n.d(e,{A:()=>r});const r=Array.isArray},2068:(t,e,n)=>{n.d(e,{K:()=>s});var r=n(7536),i=n(9588);const o=n(7311).o.getInstance();class s{static instance;_axios;_isRefreshingToken=!1;_retryCount=0;constructor(){this._axios=r.A.create({baseURL:i.hl}),this._setupInterceptors()}static getInstance(){return s.instance||(s.instance=new s),s.instance}async get(t){return this._axios.get(t)}async post(t,e){return this._axios.post(t,e)}async getRequestHeaders(){return{"Content-Type":"application/json",sdkVersion:o.getSdkVersion(),identifier:await o.getIdentifier(),token:await o.getAccessToken()}}_setupInterceptors(){this._axios.interceptors.request.use((async t=>{const e=await this.getRequestHeaders();return t.headers=Object.assign({},t.headers,e),t}),(t=>{throw t})),this._axios.interceptors.response.use(null,(async t=>{if(401!==t.response?.status||this._retryCount>=3)throw this._retryCount=0,t;if(this._isRefreshingToken)throw t;o.getGlobalDispatcher().call("unauthorized"),this._isRefreshingToken=!0,this._retryCount++;try{const e=await this.getRequestHeaders(),n=t.config;return n.headers=Object.assign({},n.headers,e),this._axios.request(n)}catch(t){throw t}finally{this._isRefreshingToken=!1}}))}}},2075:(t,e,n)=>{n.d(e,{$b:()=>h,Hf:()=>d,_C:()=>s,aS:()=>f,em:()=>u,lu:()=>a,ts:()=>c,xR:()=>l});var r=n(9588);const i="v3";function o(t){return`${r.hl}/api/${i}/tiles/styles/${t}`}const s=o("christmas_mims2_v1"),a=o("common_mims2_v1"),c=o("halloween_mims2_v1"),l=o("mappybee_mims2_v1"),u=o("mapxus_mims2_v1"),d=o("lands_d_mims2_v1"),h=o("mapxus_mims2_v5");function f(t){return o(t)}},2125:(t,e,n)=>{function r(t,e){return function(){return t.apply(e,arguments)}}n.d(e,{A:()=>r})},2136:(t,e,n)=>{n.d(e,{A:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},2141:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(4943),i=n(6474),o=n(9008),s=n(2049),a=n(2263);const c=function(t){return"function"==typeof t?t:null==t?o.A:"object"==typeof t?(0,s.A)(t)?(0,i.A)(t[0],t[1]):(0,r.A)(t):(0,a.A)(t)}},2158:function(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=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}),i(n(9378),e),i(n(244),e),i(n(3503),e),i(n(7757),e)},2199:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(6318);const i=function(t){return function(e){return(0,r.A)(e,t)}}},2263:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(805),i=n(2199),o=n(6586),s=n(901);const a=function(t){return(0,o.A)(t)?(0,r.A)((0,s.A)(t)):(0,i.A)(t)}},2302:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(){}},2318:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toBig=e.shrSL=e.shrSH=e.rotrSL=e.rotrSH=e.rotrBL=e.rotrBH=e.rotr32L=e.rotr32H=e.rotlSL=e.rotlSH=e.rotlBL=e.rotlBH=e.add5L=e.add5H=e.add4L=e.add4H=e.add3L=e.add3H=void 0,e.add=b,e.fromBig=i,e.split=o;const n=BigInt(2**32-1),r=BigInt(32);function i(t,e=!1){return e?{h:Number(t&n),l:Number(t>>r&n)}:{h:0|Number(t>>r&n),l:0|Number(t&n)}}function o(t,e=!1){const n=t.length;let r=new Uint32Array(n),o=new Uint32Array(n);for(let s=0;s<n;s++){const{h:n,l:a}=i(t[s],e);[r[s],o[s]]=[n,a]}return[r,o]}const s=(t,e)=>BigInt(t>>>0)<<r|BigInt(e>>>0);e.toBig=s;const a=(t,e,n)=>t>>>n;e.shrSH=a;const c=(t,e,n)=>t<<32-n|e>>>n;e.shrSL=c;const l=(t,e,n)=>t>>>n|e<<32-n;e.rotrSH=l;const u=(t,e,n)=>t<<32-n|e>>>n;e.rotrSL=u;const d=(t,e,n)=>t<<64-n|e>>>n-32;e.rotrBH=d;const h=(t,e,n)=>t>>>n-32|e<<64-n;e.rotrBL=h;const f=(t,e)=>e;e.rotr32H=f;const p=(t,e)=>t;e.rotr32L=p;const y=(t,e,n)=>t<<n|e>>>32-n;e.rotlSH=y;const g=(t,e,n)=>e<<n|t>>>32-n;e.rotlSL=g;const m=(t,e,n)=>e<<n-32|t>>>64-n;e.rotlBH=m;const _=(t,e,n)=>t<<n-32|e>>>64-n;function b(t,e,n,r){const i=(e>>>0)+(r>>>0);return{h:t+n+(i/2**32|0)|0,l:0|i}}e.rotlBL=_;const v=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0);e.add3L=v;const w=(t,e,n,r)=>e+n+r+(t/2**32|0)|0;e.add3H=w;const A=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0);e.add4L=A;const E=(t,e,n,r,i)=>e+n+r+i+(t/2**32|0)|0;e.add4H=E;const B=(t,e,n,r,i)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(i>>>0);e.add5L=B;const S=(t,e,n,r,i,o)=>e+n+r+i+o+(t/2**32|0)|0;e.add5H=S;const x={fromBig:i,split:o,toBig:s,shrSH:a,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:d,rotrBL:h,rotr32H:f,rotr32L:p,rotlSH:y,rotlSL:g,rotlBH:m,rotlBL:_,add:b,add3L:v,add3H:w,add4L:A,add4H:E,add5H:S,add5L:B};e.default=x},2384:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(169),i=Array.prototype.splice;const o=function(t){var e=this.__data__,n=(0,r.A)(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},2422:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wNAF=function(t,e){return{constTimeNegate:a,hasPrecomputes:t=>1!==y(t),unsafeLadder(e,n,r=t.ZERO){let i=e;for(;n>o;)n&s&&(r=r.add(i)),i=i.double(),n>>=s;return r},precomputeWindow(t,n){const{windows:r,windowSize:i}=l(n,e),o=[];let s=t,a=s;for(let t=0;t<r;t++){a=s,o.push(a);for(let t=1;t<i;t++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(n,r,i){let o=t.ZERO,s=t.BASE;const c=l(n,e);for(let t=0;t<c.windows;t++){const{nextN:e,offset:n,isZero:l,isNeg:d,isNegF:h,offsetF:f}=u(i,t,c);i=e,l?s=s.add(a(h,r[f])):o=o.add(a(d,r[n]))}return{p:o,f:s}},wNAFUnsafe(n,r,i,s=t.ZERO){const a=l(n,e);for(let t=0;t<a.windows&&i!==o;t++){const{nextN:e,offset:n,isZero:o,isNeg:c}=u(i,t,a);if(i=e,!o){const t=r[n];s=s.add(c?t.negate():t)}}return s},getPrecomputes(t,e,n){let r=f.get(e);return r||(r=this.precomputeWindow(e,t),1!==t&&f.set(e,n(r))),r},wNAFCached(t,e,n){const r=y(t);return this.wNAF(r,this.getPrecomputes(r,t,n),e)},wNAFCachedUnsafe(t,e,n,r){const i=y(t);return 1===i?this.unsafeLadder(t,e,r):this.wNAFUnsafe(i,this.getPrecomputes(i,t,n),e,r)},setWindowSize(t,n){c(n,e),p.set(t,n),f.delete(t)}}},e.pippenger=function(t,e,n,r){d(n,t),h(r,e);const o=n.length,s=r.length;if(o!==s)throw new Error("arrays of points and scalars must have equal length");const a=t.ZERO,c=(0,i.bitLen)(BigInt(o));let l=1;c>12?l=c-3:c>4?l=c-2:c>0&&(l=2);const u=(0,i.bitMask)(l),f=new Array(Number(u)+1).fill(a),p=Math.floor((e.BITS-1)/l)*l;let y=a;for(let t=p;t>=0;t-=l){f.fill(a);for(let e=0;e<s;e++){const i=r[e],o=Number(i>>BigInt(t)&u);f[o]=f[o].add(n[e])}let e=a;for(let t=f.length-1,n=a;t>0;t--)n=n.add(f[t]),e=e.add(n);if(y=y.add(e),0!==t)for(let t=0;t<l;t++)y=y.double()}return y},e.precomputeMSMUnsafe=function(t,e,n,r){c(r,e.BITS),d(n,t);const o=t.ZERO,s=2**r-1,a=Math.ceil(e.BITS/r),l=(0,i.bitMask)(r),u=n.map((t=>{const e=[];for(let n=0,r=t;n<s;n++)e.push(r),r=r.add(t);return e}));return t=>{if(h(t,e),t.length>n.length)throw new Error("array of scalars must be smaller than array of points");let i=o;for(let e=0;e<a;e++){if(i!==o)for(let t=0;t<r;t++)i=i.double();const n=BigInt(a*r-(e+1)*r);for(let e=0;e<t.length;e++){const r=t[e],o=Number(r>>n&l);o&&(i=i.add(u[e][o-1]))}}return i}},e.validateBasic=function(t){return(0,r.validateField)(t.Fp),(0,i.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,r.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})};const r=n(4967),i=n(1484),o=BigInt(0),s=BigInt(1);function a(t,e){const n=e.negate();return t?n:e}function c(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function l(t,e){c(t,e);const n=2**t;return{windows:Math.ceil(e/t)+1,windowSize:2**(t-1),mask:(0,i.bitMask)(t),maxNumber:n,shiftBy:BigInt(t)}}function u(t,e,n){const{windowSize:r,mask:i,maxNumber:o,shiftBy:a}=n;let c=Number(t&i),l=t>>a;c>r&&(c-=o,l+=s);const u=e*r;return{nextN:l,offset:u+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:e%2!=0,offsetF:u}}function d(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach(((t,n)=>{if(!(t instanceof e))throw new Error("invalid point at index "+n)}))}function h(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach(((t,n)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+n)}))}const f=new WeakMap,p=new WeakMap;function y(t){return p.get(t)||1}},2468:(t,e,n)=>{n.d(e,{E:()=>r});class r{_buildingSelector;_isEnabled=!0;_position;constructor(t){this._buildingSelector=t}enable(){this._isEnabled=!0,this._buildingSelector.enabled||this._buildingSelector.setVisibility(!0)}disable(){this._isEnabled=!1,this._buildingSelector.enabled&&this._buildingSelector.setVisibility(!1)}setPosition(t,e){this._position=t,this._buildingSelector.changePosition(this._buildingSelector.position,t,e)}get isEnabled(){return this._isEnabled}get position(){return this._position}}},2506:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.rotl=function(t,e){return t<<e|t>>>32-e},e.createCipher=function(t,e){const{allowShortKeys:n,extendNonceFn:i,counterLength:o,counterRight:s,rounds:p}=(0,r.checkOpts)({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},e);if("function"!=typeof t)throw new Error("core must be a function");return(0,r.anumber)(o),(0,r.anumber)(p),(0,r.abool)(s),(0,r.abool)(n),(e,y,g,m,_=0)=>{(0,r.abytes)(e),(0,r.abytes)(y),(0,r.abytes)(g);const b=g.length;if(void 0===m&&(m=new Uint8Array(b)),(0,r.abytes)(m),(0,r.anumber)(_),_<0||_>=h)throw new Error("arx: counter overflow");if(m.length<b)throw new Error(`arx: output (${m.length}) is shorter than data (${b})`);const v=[];let w,A,E=e.length;if(32===E)v.push(w=(0,r.copyBytes)(e)),A=c;else{if(16!==E||!n)throw new Error(`arx: invalid 32-byte key, got length=${E}`);w=new Uint8Array(32),w.set(e),w.set(e,16),A=a,v.push(w)}l(y)||v.push(y=(0,r.copyBytes)(y));const B=(0,r.u32)(w);if(i){if(24!==y.length)throw new Error("arx: extended nonce must be 24 bytes");i(A,B,(0,r.u32)(y.subarray(0,16)),B),y=y.subarray(16)}const S=16-o;if(S!==y.length)throw new Error(`arx: nonce must be ${S} or 16 bytes`);if(12!==S){const t=new Uint8Array(12);t.set(y,s?0:12-y.length),y=t,v.push(y)}const x=(0,r.u32)(y);return function(t,e,n,i,o,s,a,c){const p=o.length,y=new Uint8Array(u),g=(0,r.u32)(y),m=l(o)&&l(s),_=m?(0,r.u32)(o):f,b=m?(0,r.u32)(s):f;for(let r=0;r<p;a++){if(t(e,n,i,g,a,c),a>=h)throw new Error("arx: counter overflow");const l=Math.min(u,p-r);if(m&&l===u){const t=r/4;if(r%4!=0)throw new Error("arx: invalid block position");for(let e,n=0;n<d;n++)e=t+n,b[e]=_[e]^g[n];r+=u}else{for(let t,e=0;e<l;e++)t=r+e,s[t]=o[t]^y[e];r+=l}}}(t,A,B,x,g,m,_,p),(0,r.clean)(...v),m}};const r=n(6527),i=t=>Uint8Array.from(t.split("").map((t=>t.charCodeAt(0)))),o=i("expand 16-byte k"),s=i("expand 32-byte k"),a=(0,r.u32)(o),c=(0,r.u32)(s);function l(t){return t.byteOffset%4==0}const u=64,d=16,h=2**32-1,f=new Uint32Array},2509:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(5547);const i=function(t){return(0,r.A)(this,t).has(t)}},2528:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(4171);const i=function(t,e,n){"__proto__"==e&&r.A?(0,r.A)(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},2531:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(4912),i=n(8446),o=n(9703),s=n(8593),a=n(2872),c=Math.max;const l=function(t,e,n,l){t=(0,i.A)(t)?t:(0,a.A)(t),n=n&&!l?(0,s.A)(n):0;var u=t.length;return n<0&&(n=c(u+n,0)),(0,o.A)(t)?n<=u&&t.indexOf(e,n)>-1:!!u&&(0,r.A)(t,e,n)>-1}},2557:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=void 0;var r=n(6527),i=n(2158),o=function(){function t(t,e){var n=(0,i.convertPublicKeyFormat)(t,!0,e),r=(0,i.convertPublicKeyFormat)(t,!1,e);this.data=n,this.dataUncompressed=n.length!==r.length?r:null}return t.fromHex=function(e,n){return new t((0,i.hexToPublicKey)(e,n),n)},Object.defineProperty(t.prototype,"_uncompressed",{get:function(){return null!==this.dataUncompressed?this.dataUncompressed:this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uncompressed",{get:function(){return Buffer.from(this._uncompressed)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"compressed",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),t.prototype.toBytes=function(t){return void 0===t&&(t=!0),t?this.data:this._uncompressed},t.prototype.toHex=function(t){return void 0===t&&(t=!0),(0,r.bytesToHex)(this.toBytes(t))},t.prototype.decapsulate=function(t,e){void 0===e&&(e=!1);var n=this.toBytes(e),r=t.multiply(this,e);return(0,i.getSharedKey)(n,r)},t.prototype.equals=function(t){return(0,r.equalBytes)(this.data,t.data)},t}();e.PublicKey=o},2559:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(1882);const i=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var s=t[i],a=e(s);if(null!=a&&(void 0===c?a==a&&!(0,r.A)(a):n(a,c)))var c=a,l=s}return l}},2568:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(9501),i=n(8446);const o=function(t,e){var n=-1,o=(0,i.A)(t)?Array(t.length):[];return(0,r.A)(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},2569:(t,e,n)=>{n.r(e),n.d(e,{hasBrowserEnv:()=>r,hasStandardBrowserEnv:()=>o,hasStandardBrowserWebWorkerEnv:()=>s,navigator:()=>i,origin:()=>a});const r="undefined"!=typeof window&&"undefined"!=typeof document,i="object"==typeof navigator&&navigator||void 0,o=r&&(!i||["ReactNative","NativeScript","NS"].indexOf(i.product)<0),s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,a=r&&window.location.href||"http://localhost"},2634:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},2641:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},2658:(t,e,n)=>{n.d(e,{S:()=>i,d:()=>o});let r=[];const i={[Symbol.for("mapxus/callers-register")]:t=>{r=t}};function o(){return r}},2723:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(8458),i=n(4062),o=n(7275);const s=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,s=new AbortController;const a=function(t){if(!n){n=!0,l();const e=t instanceof Error?t:this.reason;s.abort(e instanceof i.A?e:new r.A(e instanceof Error?e.message:e))}};let c=e&&setTimeout((()=>{c=null,a(new i.A(`timeout ${e} of ms exceeded`,i.A.ETIMEDOUT))}),e);const l=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach((t=>{t.unsubscribe?t.unsubscribe(a):t.removeEventListener("abort",a)})),t=null)};t.forEach((t=>t.addEventListener("abort",a)));const{signal:u}=s;return u.unsubscribe=()=>o.A.asap(l),u}}},2732:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"DataView")},2789:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return function(e){return t(e)}}},2801:(t,e,n)=>{n.d(e,{w:()=>u});var r=n(2068),i=n(9588),o=n(9573),s=n(4722),a=n(6034),c=n(2531);const l=["opening_hours","description","phone","website","email","appURL","icon"];class u{_api="/api/v4/venues";_request=r.K.getInstance();constructor(){}searchByIds(t){const e=(0,o.V)(t);if(!e)throw new Error("Please input venue id at least one.");const n=`${this._api}/${e}`;return this._changedRes(n)}searchByDistance(t,e,n,r=i.e$,o=i.KL){if(!t||!e||!n)throw new Error("Missing required parameter.");const s=new URLSearchParams({keywords:t,center:e.join(","),distance:String(n),offset:String(r),page:String(o)}),a=`${this._api}?${s.toString()}`;return this._changedRes(a)}searchByBbox(t,e,n=i.e$,r=i.KL){if(!t||!e)throw new Error("Missing required parameter.");const o=new URLSearchParams({keywords:t,bbox:e.join(","),offset:String(n),page:String(r)}),s=`${this._api}?${o.toString()}`;return this._changedRes(s)}searchByGlobal(t,e=i.e$,n=i.KL){if(!t)throw new Error("Missing required parameter.");const r=new URLSearchParams({keywords:t,offset:String(e),page:String(n)}),o=`${this._api}?${r.toString()}`;return this._changedRes(o)}search(t){const e=(0,s.A)(t,((t,e)=>"bounds"===e?`bbox=${t.flat().join()}`:"center"===e?`center=${t.join()}`:`${e}=${t}`));return this._changedRes(`${this._api}?${e.join("&")}`)}_changedRes(t){return new Promise(((e,n)=>{this._request.get(t).then((t=>{t.data.result.venues=(0,s.A)(t.data.result.venues,(t=>(0,a.A)(t,((t,e)=>(0,c.A)(l,e))))),e(t)})).catch(n)}))}}},2851:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2528),i=n(6984),o=Object.prototype.hasOwnProperty;const s=function(t,e,n){var s=t[e];o.call(t,e)&&(0,i.A)(s,n)&&(void 0!==n||e in t)||(0,r.A)(t,e,n)}},2854:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.montgomery=function(t){const e=(h=t,(0,i.validateObject)(h,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...h})),{P:n,type:c,adjustScalarBytes:l,powPminus2:u}=e,d="x25519"===c;var h;if(!d&&"x448"!==c)throw new Error("invalid type");const f=d?255:448,p=d?32:56,y=d?BigInt(9):BigInt(5),g=d?BigInt(121665):BigInt(39081),m=d?a**BigInt(254):a**BigInt(447),_=d?BigInt(8)*a**BigInt(251)-s:BigInt(4)*a**BigInt(445)-s,b=m+_+s,v=t=>(0,r.mod)(t,n),w=A(y);function A(t){return(0,i.numberToBytesLE)(v(t),p)}function E(t,e){const r=function(t,e){(0,i.aInRange)("u",t,o,n),(0,i.aInRange)("scalar",e,m,b);const r=e,a=t;let c=s,l=o,d=t,h=s,p=o;for(let t=BigInt(f-1);t>=o;t--){const e=r>>t&s;p^=e,({x_2:c,x_3:d}=S(p,c,d)),({x_2:l,x_3:h}=S(p,l,h)),p=e;const n=c+l,i=v(n*n),o=c-l,u=v(o*o),f=i-u,y=d+h,m=v((d-h)*n),_=v(y*o),b=m+_,w=m-_;d=v(b*b),h=v(a*v(w*w)),c=v(i*u),l=v(f*(i+v(g*f)))}({x_2:c,x_3:d}=S(p,c,d)),({x_2:l,x_3:h}=S(p,l,h));const y=u(l);return v(c*y)}(function(t){const e=(0,i.ensureBytes)("u coordinate",t,p);return d&&(e[31]&=127),v((0,i.bytesToNumberLE)(e))}(e),function(t){return(0,i.bytesToNumberLE)(l((0,i.ensureBytes)("scalar",t,p)))}(t));if(r===o)throw new Error("invalid private or public key received");return A(r)}function B(t){return E(t,w)}function S(t,e,n){const r=v(t*(e-n));return{x_2:e=v(e-r),x_3:n=v(n+r)}}return{scalarMult:E,scalarMultBase:B,getSharedSecret:(t,e)=>E(t,e),getPublicKey:t=>B(t),utils:{randomPrivateKey:()=>e.randomBytes(p)},GuBytes:w.slice()}};const r=n(4967),i=n(1484),o=BigInt(0),s=BigInt(1),a=BigInt(2)},2872:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(514),i=n(7422);const o=function(t){return null==t?[]:(0,r.A)(t,(0,i.A)(t))}},2944:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(674);const i=function(){this.__data__=r.A?(0,r.A)(null):{},this.size=0}},3013:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var c=s[t?a:++i];if(!1===n(o[c],c,o))break}return e}}},3061:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return this.__data__.get(t)}},3098:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return null!=t&&"object"==typeof t}},3119:(t,e,n)=>{n.d(e,{A:()=>r});const r=null},3149:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3153:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(){return[]}},3161:(t,e,n)=>{n.d(e,{A:()=>r});const r=n(1917).A["__core-js_shared__"]},3207:(t,e,n)=>{n.d(e,{t:()=>l});var r=n(6568),i=n(8330),o=n(9588),s=n(7007),a=n(3574),c=n(973);class l extends s.EventEmitter{static instance;static platform={sdkVersion:i.rE,identifier:""};_appIds=new Map([[a.en.Access,{}],[a.en.Map,{}]]);_tokenStorage={};_appIdsHistory=[];static getInstance(){return l.instance||(l.instance=new l),l.instance}static setPlatform(t){l.platform=t}updateToken(t){const{appId:e,secret:n,token:r,from:i}=t;this._tokenStorage[e]=r,this._appIds.get(i)[e]=n,this._appIdsHistory.push(e)}deleteToken(t,e){delete this._tokenStorage[t],e&&(delete this._appIds.get(e)[t],this.emit("permission-disconnected",{appId:t,from:e}))}getVersion(){return l.platform.sdkVersion}getToken(t){return this._tokenStorage[t]}async getIdentifier(){if(!l.platform.identifier){const t=await r.Ay.load(),e=await t.get();l.platform.identifier=e.visitorId}return l.platform.identifier}getAppId(t){const e=t?Object.keys(this._appIds.get(t)):[...Object.keys(this._appIds.get(a.en.Access)),...Object.keys(this._appIds.get(a.en.Map))];return(0,c.A)(this._appIdsHistory.reverse(),(t=>e.includes(t)))}async fetchToken(t,e,n=0){try{const n={appId:t,secret:e,..."bundleId"in l.platform?{bundleId:l.platform.bundleId}:"sha1"in l.platform?{sha1:l.platform.sha1,packageName:l.platform.packageName}:{origin:window.location.hostname||"restriction.test.example.com",keyPlatform:"WEB"}},r={"Content-Type":"application/json",sdkVersion:l.platform.sdkVersion,identifier:l.platform.identifier??await this.getIdentifier()},i=await fetch(o.R0,{method:"POST",body:JSON.stringify(n),headers:r});return(await i.json()).result.idToken}catch(r){if(n<3){const r=500*Math.pow(2,n);return console.warn(`Retrying to fetch token in ${r} ms...`,++n),await new Promise((t=>setTimeout(t,r))),this.fetchToken(t,e,n)}throw r}}}},3236:(t,e,n)=>{n.d(e,{E:()=>s,r:()=>o});var r=n(714),i=n(7980);function o(t){const{buildingId:e,labelCenter:{lat:n,lon:i},floors:o,name:s,venueId:a,defaultFloor:c}=t,l=(0,r.A)(s,((t,e)=>"default"===e?"name":`name:${e}`)),{codes:u,ids:d,ordinals:h}=o.reduce(((t,e)=>{const{id:n,code:r,ordinal:i}=e;return{codes:t.codes?`${t.codes},${r}`:r,ids:t.ids?`${t.ids},${n}`:n,ordinals:`${t.ordinals}`?`${t.ordinals},${i}`:`${i}`}}),{codes:"",ids:"",ordinals:""});return{layer:{id:"mapxus-building-line"},properties:{building:"yes",id:e,label_center:`${i},${n}`,level_ids:d,level_names:u,ordinals:h,"ref:venue":a,...l,...c?{default_displayed_floor:c}:{}},source:"indoor-planet",sourceLayer:"mapxus_building"}}function s(t){const{address:e,buildings:n,id:o,name:s,type:a}=t;return{layer:{id:"mapxus-venue-fill"},properties:{...(0,i.A)(e,((t,e,n)=>Object.assign(t,"default"===n?{"addr:street":e.street,"addr:housenumber":e.housenumber}:{[`addr:street:${n}`]:e.street})),{}),...(0,r.A)(s,((t,e)=>"default"===e?"name":`name:${e}`)),id:o,venue:a,building_ids:n.map((({id:t})=>t)).join()},source:"indoor-planet",sourceLayer:"mapxus_venue"}}},3244:(t,e,n)=>{n.d(e,{A:()=>y});var r=n(3265),i=n(8967),o=n(402),s=n(7265),a=n(5861),c=n(2049),l=n(4616),u=n(8719),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;const y=function(t,e,n,y,g,m){var _=(0,c.A)(t),b=(0,c.A)(e),v=_?h:(0,a.A)(t),w=b?h:(0,a.A)(e),A=(v=v==d?f:v)==f,E=(w=w==d?f:w)==f,B=v==w;if(B&&(0,l.A)(t)){if(!(0,l.A)(e))return!1;_=!0,A=!1}if(B&&!A)return m||(m=new r.A),_||(0,u.A)(t)?(0,i.A)(t,e,n,y,g,m):(0,o.A)(t,e,v,n,y,g,m);if(!(1&n)){var S=A&&p.call(t,"__wrapped__"),x=E&&p.call(e,"__wrapped__");if(S||x){var I=S?t.value():t,L=x?e.value():e;return m||(m=new r.A),g(I,L,n,y,m)}}return!!B&&(m||(m=new r.A),(0,s.A)(t,e,n,y,g,m))}},3265:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(7919),i=n(1532),o=n(42),s=n(3061),a=n(4105),c=n(7681);function l(t){var e=this.__data__=new r.A(t);this.size=e.size}l.prototype.clear=i.A,l.prototype.delete=o.A,l.prototype.get=s.A,l.prototype.has=a.A,l.prototype.set=c.A;const u=l},3325:(t,e,n)=>{n.d(e,{A:()=>i});const r=n(7275).A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),i=t=>{const e={};let n,i,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),i=t.substring(o+1).trim(),!n||e[n]&&r[n]||("set-cookie"===n?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)})),e}},3390:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(9888),i=n(4062);const o={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const s={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r.x+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,r,a)=>{if(!1===t)throw new i.A(o(r," has been removed"+(e?" in "+e:"")),i.A.ERR_DEPRECATED);return e&&!s[r]&&(s[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},o.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};const a={assertOptions:function(t,e,n){if("object"!=typeof t)throw new i.A("options must be an object",i.A.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],a=e[s];if(a){const e=t[s],n=void 0===e||a(e,s,t);if(!0!==n)throw new i.A("option "+s+" must be "+n,i.A.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i.A("Unknown option "+s,i.A.ERR_BAD_OPTION)}},validators:o}},3394:(e,n,r)=>{e.exports=(t=>{var e={};return r.d(e,t),e})({default:()=>t.default})},3442:(t,e,n)=>{n.d(e,{Z:()=>u});var r=n(5629),i=n(1682),o=n(5056),s=n(8058),a=n(1472),c=n(1879),l=n(3549);class u{_container;_indoor;_maplibre;_position="top-right";_buildingId=null;_floorNames;_ordinals;_ordinal=null;_style;_$innerFloors;_$activeFloor;_centerSelectorIdx;_lastNormalScrollableIdx;_$arrowBtnUp;_$arrowBtnDown;_maxScrollTop;_$selectorExpanded;_$selectorFolded;_componentDidMount=!1;_isEnabled;_visible=!1;_dragPan;_debounceScroll;_clearScrollEventListener;constructor(t,e){const{style:n,enabled:r=!0}=e;this._indoor=t,this._style=n?Object.assign({},o.kC,n):o.kC,this._isEnabled=r,this._bindEvents()}onAdd(t){return this._maplibre=t,this._addMapMoveEventListener(),this._container=(0,i.r)("div","maplibregl-ctrl mapxus-ctrl-floors hidden"),this._container}onRemove(){this._debounceScroll&&this._debounceScroll.cancel(),this._clearScrollEventListener&&this._clearScrollEventListener(),(0,i.Z)(this._container)}get position(){return this._position}get enabled(){return this._isEnabled}setEnabled(t){this._isEnabled=t,t&&!this._visible&&this._setVisibility(!0),!t&&this._visible&&this._setVisibility(!1)}getDefaultPosition(){return"top-right"}async switchByOrdinal(t,e){this._ordinal=t,this._dragPan=e??!0,await this._indoor.switchFloorByOrdinal(t),this._updateSelectorStatus(t),this._scrollCenterActiveFloor()}changePosition(t,e,n){const r=document.querySelector(`.maplibregl-ctrl-${t}`),i=r.querySelector(".mapxus-ctrl-floors");if(t!==e){this._position=e;const t=document.querySelector(`.maplibregl-ctrl-${e}`);i&&(r.removeChild(i),(0,c.A)(n)?t.insertBefore(i,t.children[n]):t.append(i),this._show(),this._scrollCenterActiveFloor())}else(0,c.A)(n)&&r.children[n]!==i&&(r.removeChild(i),r.insertBefore(i,r.children[n]),this._show(),this._scrollCenterActiveFloor())}setStyle(t){this._style=Object.assign({},this._style,t),this._componentDidMount&&(this._clearFloors(),this._render(),this._scrollCenterActiveFloor(),this._componentDidMount=!0)}_setVisibility(t){this._componentDidMount?t?(this._show(),this._scrollCenterActiveFloor()):this._hide():(this._visible=t,this._indoor.building&&t&&(this._mountFloors(this._indoor.building),this._show(),this._scrollCenterActiveFloor()))}_bindEvents(){this._indoor.on(r.Ms,(({buildingId:t,ordinal:e,dragPan:n})=>{if(this._buildingId=t,this._ordinal=e,this._dragPan=n,this._visible&&this._hide(),this._componentDidMount&&this._clearFloors(),this._indoor.building){this._mountFloors(this._indoor.building);const t=this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0];this.enabled&&(!1!==this._dragPan||!1===this._dragPan&&t)&&(this._show(),this._scrollCenterActiveFloor())}else this._clearState()}))}_addMapMoveEventListener(){this._maplibre.on("moveend",(()=>{if(this.enabled&&!1===this._dragPan&&this._buildingId){const t=this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0];t?this._componentDidMount?this._visible||(this._show(),this._scrollCenterActiveFloor()):(this._mountFloors(t),this._show(),this._scrollCenterActiveFloor()):this._componentDidMount&&this._visible&&this._hide()}}))}_mountFloors(t){this._updateFloorSelector(t),this._componentDidMount=!0}_updateFloorSelector(t){const{level_names:e,ordinals:n}=t.properties;this._floorNames=e.split(",").reverse(),this._ordinals=n.split(",").reverse(),this._render()}_clearState(){this._floorNames=[],this._ordinals=[],this._ordinal=null}_render(){const{itemCount:t,itemSize:e}=this._style;this._centerSelectorIdx=Math.ceil(t/2)-1,this._maxScrollTop=(this._floorNames.length-t)*e,this._lastNormalScrollableIdx=this._floorNames.length-(t-this._centerSelectorIdx-1)-1,this._createFloors()}_hide(){this._container.classList.add("hidden"),this._visible=!1}_show(){this._container.classList.remove("hidden"),this._visible=!0}_createFloors(){this._$selectorFolded=this._$foldedSelector(this._container,(()=>{this._expandSelector(!0),this._scrollCenterActiveFloor()})),this._$selectorExpanded=this._$expandedSelector(this._container,(()=>this._expandSelector(!1)))}_$expandedSelector(t,e){const{itemSize:n,itemCount:r,defaultFolded:o,backgroundColor:s}=this._style,a=(0,i.r)("div","mapxus-ctrl-floors-expanded "+(o?"hidden":""),t);if(this._floorNames.length>1){(0,i.r)("div","mapxus-ctrl-floors-close",a).onclick=e}const c=(0,i.r)("div","mapxus-ctrl-floors-wrapper",a);return c.style.backgroundColor=s,this._floorNames.length>r&&(this._$arrowBtnUp=this._$createScrollButton(c,"up"),this._$arrowBtnUp.onclick=()=>this._handleScroll("up")),this._$innerFloors=(0,i.r)("div","mapxus-ctrl-floors-inner",c),Object.assign(this._$innerFloors.style,{maxHeight:n*r+"px",width:`${n}px`}),this._$createFloors(this._$innerFloors),this._floorNames.length>r&&(this._$arrowBtnDown=this._$createScrollButton(c,"down"),this._$arrowBtnDown.onclick=()=>this._handleScroll("down"),this._$innerFloors.addEventListener("scroll",this._debounceScroll=(0,l.A)((t=>{t.stopPropagation(),this._resetArrowBtnStatus(this._$innerFloors.scrollTop)}),100)),this._clearScrollEventListener=()=>this._$innerFloors.removeEventListener("scroll",this._debounceScroll)),a}_$foldedSelector(t,e){const{itemSize:n,activeFontColor:r,activeBackgroundColor:o,defaultFolded:s}=this._style,a=(0,i.r)("div","mapxus-ctrl-floors-folded mapxus-ctrl-floors-floor "+(s?"":"hidden"),t);return a.onclick=e,Object.assign(a.style,{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`,color:r,backgroundColor:o}),a}_clearFloors(){this._container.replaceChildren(),this._componentDidMount=!1}_$createScrollButton(t,e){return(0,i.r)("div",`mapxus-ctrl-floors-arrow mapxus-ctrl-floors-floor ${e}`,t)}_$createFloors(t){const{fontColor:e,itemSize:n}=this._style;let r;(0,s.A)(this._floorNames,((o,s)=>{r=(0,i.r)("div","mapxus-ctrl-floors-floor",t),r.dataset.floor=o,r.dataset.ordinal=this._ordinals[s],r.innerText=o,Object.assign(r.style,{color:e,height:`${n}px`,lineHeight:`${n}px`}),r.dataset.ordinal===this._ordinal&&(this._$activeFloor=r,this._resetActiveFloor(!0),this._$selectorFolded.innerText=o),r.onclick=async t=>{this._indoor.setDragPan("restrict"),await this.switchByOrdinal(t.target.dataset.ordinal)}}))}_updateSelectorStatus(t){const e=this._floorNames[this._ordinals.indexOf(t)];this._$activeFloor&&this._resetActiveFloor(!1),(0,s.A)(this._$innerFloors.children,(e=>{e.dataset.ordinal===t&&(this._$activeFloor=e,this._resetActiveFloor(!0))})),this._$selectorFolded.innerText=e}_resetArrowBtnStatus(t){0===t?this._$arrowBtnUp?.classList?.add("hidden"):this._$arrowBtnUp?.classList?.remove("hidden"),t===this._maxScrollTop?this._$arrowBtnDown?.classList?.add("hidden"):this._$arrowBtnDown?.classList?.remove("hidden")}_resetActiveFloor(t){const{activeBackgroundColor:e,backgroundColor:n,activeFontColor:r,fontColor:i}=this._style;Object.assign(this._$activeFloor.style,{color:t?r:i,backgroundColor:t?e:n,fontWeight:t?"bold":"normal",cursor:t?"auto":"pointer"}),this._$activeFloor.disabled=t}_scrollCenterActiveFloor(){if(this._ordinal){const t=this._ordinals.indexOf(this._ordinal);t>-1&&(this._$innerFloors.scrollTop=this._getScrollTop(t),this._$innerFloors.scrollTop||this._resetArrowBtnStatus(0))}}_getScrollTop(t){return(0,a.A)(this._centerSelectorIdx,this._lastNormalScrollableIdx+1)?(t-this._centerSelectorIdx)*this._style.itemSize:t>this._lastNormalScrollableIdx?this._maxScrollTop:0}_handleScroll(t){const e=this._$innerFloors.scrollTop,{itemSize:n}=this._style;if("up"===t){const t=e-2*n;this._$innerFloors.scrollTop=t<0?0:t}else if("down"===t){const t=e+2*n;this._$innerFloors.scrollTop=t>this._maxScrollTop?this._maxScrollTop:t}}_expandSelector(t){t?(this._$selectorExpanded.classList.remove("hidden"),this._$selectorFolded.classList.add("hidden")):(this._$selectorExpanded.classList.add("hidden"),this._$selectorFolded.classList.remove("hidden"))}}},3454:(t,e,n)=>{n.d(e,{A:()=>o});var r=Math.max,i=Math.min;const o=function(t,e,n){return t>=i(e,n)&&t<r(e,n)}},3503:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHex=e.remove0x=void 0;var r=n(6527);e.remove0x=function(t){return t.startsWith("0x")||t.startsWith("0X")?t.slice(2):t};e.decodeHex=function(t){return(0,r.hexToBytes)((0,e.remove0x)(t))}},3511:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(6912),i=n(5647),o=n(4792),s=n(3153);const a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)(0,r.A)(e,(0,o.A)(t)),t=(0,i.A)(t);return e}:s.A},3549:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(3149),i=n(1052),o=n(1694),s=Math.max,a=Math.min;const c=function(t,e,n){var c,l,u,d,h,f,p=0,y=!1,g=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function _(e){var n=c,r=l;return c=l=void 0,p=e,d=t.apply(r,n)}function b(t){var n=t-f;return void 0===f||n>=e||n<0||g&&t-p>=u}function v(){var t=(0,i.A)();if(b(t))return w(t);h=setTimeout(v,function(t){var n=e-(t-f);return g?a(n,u-(t-p)):n}(t))}function w(t){return h=void 0,m&&c?_(t):(c=l=void 0,d)}function A(){var t=(0,i.A)(),n=b(t);if(c=arguments,l=this,f=t,n){if(void 0===h)return function(t){return p=t,h=setTimeout(v,e),y?_(t):d}(f);if(g)return clearTimeout(h),h=setTimeout(v,e),_(f)}return void 0===h&&(h=setTimeout(v,e)),d}return e=(0,o.A)(e)||0,(0,r.A)(n)&&(y=!!n.leading,u=(g="maxWait"in n)?s((0,o.A)(n.maxWait)||0,e):u,m="trailing"in n?!!n.trailing:m),A.cancel=function(){void 0!==h&&clearTimeout(h),p=0,c=f=l=h=void 0},A.flush=function(){return void 0===h?d:w((0,i.A)())},A}},3562:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getHash=s,e.createCurve=function(t,e){const n=e=>(0,o.weierstrass)({...t,...s(e)});return{...n(e),create:n}};const r=n(9615),i=n(9175),o=n(1705);function s(t){return{hash:t,hmac:(e,...n)=>(0,r.hmac)(t,e,(0,i.concatBytes)(...n)),randomBytes:i.randomBytes}}},3574:(t,e,n)=>{n.d(e,{$O:()=>c.$,Kp:()=>l.Kp,LJ:()=>a.L,MA:()=>r.M,SV:()=>o.S,_P:()=>l._P,en:()=>s.e,nH:()=>a.n,ys:()=>i.y});var r=n(4760),i=n(6612),o=n(9408),s=n(8884),a=n(6358),c=n(5405),l=n(8412)},3626:(t,e,n)=>{n.d(e,{V:()=>i});var r=n(1682);class i{_container;_isEnabled;constructor(t){this._isEnabled=t?.enabled??!0}onAdd(t){if(this._container=(0,r.r)("div","maplibregl-ctrl mapxus-ctrl-logo",t.getContainer()),this._isEnabled){const t=(0,r.r)("a","mapxus-logo",this._container);t.target="_blank",t.href="https://www.khi.co.jp/groupvision2030/mapxus.html",t.setAttribute("aria-label","Mapxus logo"),t.setAttribute("rel","noopener"),this._container.appendChild(t)}return this._container}onRemove(){(0,r.Z)(this._container)}getDefaultPosition(){return"bottom-left"}}},3631:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"WeakMap")},3641:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(8446);const i=function(t,e){return function(n,i){if(null==n)return n;if(!(0,r.A)(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},3724:(t,e,n)=>{n.d(e,{H:()=>u});var r=n(9588),i=n(2068),o=n(9573),s=n(4722),a=n(6034),c=n(2531);const l=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","description"];class u{_api="/api/v4/buildings";_request=i.K.getInstance();constructor(){}searchByIds(t){const e=(0,o.V)(t);if(!e)throw new Error("Please input building id at least one.");const n=`${this._api}/${e}`;return this._changedRes(n)}searchByDistance(t,e,n,i=r.e$,o=r.KL){if(arguments.length<3)throw new Error("Parameter cannot be empty.");if(2!==e.length)throw new Error("Center lon lat cannot be less than 2.");const s=[`center=${e.join(",")}`,`distance=${n}`,`offset=${i}`,`page=${o}`];t&&s.unshift(`keywords=${t}`);const a=`${this._api}?${s.join("&")}`;return this._changedRes(a)}searchByBbox(t,e,n=r.e$,i=r.KL){if(arguments.length<2)throw new Error("Parameter cannot be empty.");if(4!==e.length)throw new Error("Bbox parameters cannot be less than 2.");const o=[`bbox=${e.join(",")}`,`offset=${n}`,`page=${i}`];t&&o.unshift(`keywords=${t}`);const s=`${this._api}?${o.join("&")}`;return this._changedRes(s)}searchByGlobal(t,e=r.e$,n=r.KL){if(!arguments.length)throw new Error("Parameter cannot be empty.");const i=["searchGlobal=true",`offset=${e}`,`page=${n}`];t&&i.unshift(`keywords=${t}`);const o=`${this._api}?${i.join("&")}`;return this._changedRes(o)}searchByFloorId(t){if(!t)throw new Error("Parameter cannot be empty.");return this._changedRes(`${this._api}/floors/${t}`)}search(t){const e=(0,s.A)(t,((t,e)=>"bounds"===e?`bbox=${t.flat().join()}`:"center"===e?`center=${t.join()}`:`${e}=${t}`));return this._changedRes(`${this._api}?${e.join("&")}`)}_changedRes(t){return new Promise(((e,n)=>{this._request.get(t).then((t=>{t.data.result.buildings=(0,s.A)(t.data.result.buildings,(t=>(0,a.A)(t,((t,e)=>(0,c.A)(l,e))))),e(t)})).catch(n)}))}}},3736:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},3820:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(6847);const i={...n(2569),...r.A}},3828:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(9501);const i=function(t,e){var n;return(0,r.A)(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}},3831:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(6912),i=n(2049);const o=function(t,e,n){var o=e(t);return(0,i.A)(t)?o:(0,r.A)(o,n(t))}},3853:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(4062);function i(t,e,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(new r.A("Request failed with status code "+n.status,[r.A.ERR_BAD_REQUEST,r.A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}},3873:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const c=Date.now(),l=r[s];i||(i=c),n[o]=a,r[o]=c;let u=s,d=0;for(;u!==o;)d+=n[u++],u%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),c-i<e)return;const h=l&&c-l;return h?Math.round(1e3*d/h):void 0}}},3913:(t,e,n)=>{n.d(e,{d:()=>i});var r=n(1682);class i{_container;_$icon;_removeClickEventListener;onAdd(t){return this._container=(0,r.r)("div","maplibregl-ctrl mapxus-ctrl-collapsed-copyright",t.getContainer()),this._container.innerHTML='\n <div class="mapxus-collapsed-copyright-content">\n <div class="mapxus-collapsed-copyright-menu hidden">\n <div class="mapxus-collapsed-copyright-logo" onclick="window.open(\'https://www.khi.co.jp/groupvision2030/mapxus.html\')"></div>\n <div class="mapxus-collapsed-horizontal-divider"></div>\n <div class="mapxus-collapsed-copyright-text" onclick="window.open(\'https://www.openstreetmap.org/copyright/\')"></div>\n </div>\n <div class="mapxus-collapsed-copyright-btn"></div>\n </div>\n ',this._bindEvents(),this._container}onRemove(){this._removeClickEventListener(),(0,r.Z)(this._container)}getDefaultPosition(){return"bottom-right"}_bindEvents(){const t=this._container.querySelector(".mapxus-collapsed-copyright-menu");this._$icon=this._container.querySelector(".mapxus-collapsed-copyright-btn");let e=!1;function n(){e=!e,e?t.classList.remove("hidden"):t.classList.add("hidden")}this._$icon.addEventListener("click",n),this._removeClickEventListener=()=>this._$icon.removeEventListener("click",n)}}},3938:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(367).A)(Object.keys,Object)},3957:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(674);const i=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r.A&&void 0===e?"__lodash_hash_undefined__":e,this}},3967:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(7275),i=n(5267);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function s(t,e,n){if(!e)return t;const s=n&&n.encode||o;r.A.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let c;if(c=a?a(e,n):r.A.isURLSearchParams(e)?e.toString():new i.A(e,n).toString(s),c){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+c}return t}},3973:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(3831),i=n(3511),o=n(1865);const s=function(t){return(0,r.A)(t,o.A,i.A)}},3988:(t,e,n)=>{n.d(e,{A:()=>r});const r=n(1917).A.Uint8Array},4057:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(3013).A)()},4062:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(7275);function i(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}r.A.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.A.toJSONObject(this.config),code:this.code,status:this.status}}});const o=i.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{s[t]={value:t}})),Object.defineProperties(i,s),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(t,e,n,s,a,c)=>{const l=Object.create(o);return r.A.toFlatObject(t,l,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),i.call(l,t.message,e,n,s,a),l.cause=t,l.name=t.name,c&&Object.assign(l,c),l};const a=i},4092:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(2634),i=n(1790),o=n(2141),s=n(2049);const a=function(t,e){return((0,s.A)(t)?r.A:i.A)(t,(0,o.A)(e,3))}},4099:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){return t.has(e)}},4105:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return this.__data__.has(t)}},4116:(t,e,n)=>{n.d(e,{p:()=>a});var r=n(853),i=n(5664),o=n(4722),s=n(1879);class a{_maplibreMap;_layerId;_sourceId;_imageName="poi-01";_imageSize=.75;_iconAnchor="bottom";constructor(t){this._maplibreMap=t;const e=(0,i.A)();this._layerId=`MXMap_preset_marker_layer_${e}`,this._sourceId=`MXMap_preset_marker_source_${e}`}async setIcon(t){t&&await(0,r.K)(this._maplibreMap,t),this._imageName=t}setIconSize(t){this._imageSize=t}setIconAnchor(t){this._iconAnchor=t}get layerId(){return this._layerId}get sourceId(){return this._sourceId}create(t){if(t.length){const e=(0,o.A)(t,(t=>this._createIconFeature(t)));this._addIconSource(e),this._addIconLayer()}}updateData(t){const e=this._maplibreMap.getSource(this._sourceId);if(!e)return;const n=!(!t.remove||!t.remove.length),r=!(!t.add||!t.add.length),i=!(!t.update||!t.update.length);if(n||r||i){const s={};n&&(s.remove=t.remove.map((t=>String(t)))),r&&(s.add=t.add.map((t=>this._createIconFeature(t)))),i&&(s.update=t.update.map((t=>{const e="properties"in t,n=this._createIconFeature(t),{id:r,geometry:i,properties:s}=n;return{id:r,newGeometry:i,removeAllProperties:e,...s?{addOrUpdateProperties:(0,o.A)(s,((t,e)=>({key:e,value:t})))}:{}}}))),e.updateData(s)}}remove(){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.removeLayer(this._layerId),this._maplibreMap.getSource(this._sourceId)&&this._maplibreMap.removeSource(this._sourceId)}on(t,e){const n=t=>this._handleEventListener(t,e);return this._maplibreMap.on(t,this._layerId,n),{off:()=>this._maplibreMap.off(t,this._layerId,n)}}setFilter(t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,t)}setFilterByVenue(t,e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","venueId"],t??""],["==",["get","ordinal"],e??""]],["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]]])}setFilterByBuilding(t,e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","buildingId"],t??""],["==",["get","ordinal"],e??""]],["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]]])}setOpacity(t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",t)}setOpacityByVenue(t,e,n){if(this._maplibreMap.getLayer(this._layerId)){const r=["case",["all",["==",["get","venueId"],t??""],["==",["get","ordinal"],e??""]],1,["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]],1,n??.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",r)}}setOpacityByBuilding(t,e,n){if(this._maplibreMap.getLayer(this._layerId)){const r=["case",["all",["==",["get","buildingId"],t??""],["==",["get","ordinal"],e??""]],1,["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]],1,n??.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",r)}}_createIconFeature(t){const{lngLat:e,properties:n}=t;return{id:"featureId"in t&&(0,s.A)(t.featureId)?String(t.featureId):void 0,type:"Feature",geometry:{type:"Point",coordinates:e},properties:n||null}}_addIconSource(t){const e={type:"geojson",data:{type:"FeatureCollection",features:t}};this._maplibreMap.addSource(this._sourceId,e)}_addIconLayer(){this._maplibreMap.addLayer({id:this._layerId,type:"symbol",source:this._sourceId,layout:{"icon-image":this._imageName,"icon-size":this._imageSize,"icon-anchor":this._iconAnchor,"icon-allow-overlap":!0,"icon-ignore-placement":!0}})}_handleEventListener(t,e){const{point:n}=t;e(this._maplibreMap.queryRenderedFeatures(n,{layers:[this._layerId]})[0])}}},4139:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hkdf=void 0,e.extract=o,e.expand=c;const r=n(9615),i=n(9175);function o(t,e,n){return(0,i.ahash)(t),void 0===n&&(n=new Uint8Array(t.outputLen)),(0,r.hmac)(t,(0,i.toBytes)(n),(0,i.toBytes)(e))}const s=Uint8Array.from([0]),a=Uint8Array.of();function c(t,e,n,o=32){(0,i.ahash)(t),(0,i.anumber)(o);const c=t.outputLen;if(o>255*c)throw new Error("Length should be <= 255*HashLen");const l=Math.ceil(o/c);void 0===n&&(n=a);const u=new Uint8Array(l*c),d=r.hmac.create(t,e),h=d._cloneInto(),f=new Uint8Array(d.outputLen);for(let t=0;t<l;t++)s[0]=t+1,h.update(0===t?a:f).update(n).update(s).digestInto(f),u.set(f,c*t),d._cloneInto(h);return d.destroy(),h.destroy(),(0,i.clean)(f,s),u.slice(0,o)}e.hkdf=(t,e,n,r,i)=>c(t,o(t,e,n),r,i)},4171:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(702);const i=function(){try{var t=(0,r.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},4545:(t,e,n)=>{n.d(e,{FR:()=>o.F,H$:()=>i.H,v$:()=>s.v,w1:()=>r.w});var r=n(2801),i=n(3724),o=n(5568),s=n(5344)},4616:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(1917),i=n(4639),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o?r.A.Buffer:void 0;const c=(a?a.isBuffer:void 0)||i.A},4639:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(){return!1}},4662:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(7275),i=n(7110);const o=t=>t instanceof i.A?{...t}:t;function s(t,e){e=e||{};const n={};function i(t,e,n,i){return r.A.isPlainObject(t)&&r.A.isPlainObject(e)?r.A.merge.call({caseless:i},t,e):r.A.isPlainObject(e)?r.A.merge({},e):r.A.isArray(e)?e.slice():e}function s(t,e,n,o){return r.A.isUndefined(e)?r.A.isUndefined(t)?void 0:i(void 0,t,0,o):i(t,e,0,o)}function a(t,e){if(!r.A.isUndefined(e))return i(void 0,e)}function c(t,e){return r.A.isUndefined(e)?r.A.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function l(n,r,o){return o in e?i(n,r):o in t?i(void 0,n):void 0}const u={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:l,headers:(t,e,n)=>s(o(t),o(e),0,!0)};return r.A.forEach(Object.keys(Object.assign({},t,e)),(function(i){const o=u[i]||s,a=o(t[i],e[i],i);r.A.isUndefined(a)&&o!==l||(n[i]=a)})),n}},4722:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(5572),i=n(2141),o=n(2568),s=n(2049);const a=function(t,e){return((0,s.A)(t)?r.A:o.A)(t,(0,i.A)(e,3))}},4760:(t,e,n)=>{var r;n.d(e,{M:()=>r}),function(t){t[t.SWITCHED_BY_BUILDING=0]="SWITCHED_BY_BUILDING",t[t.SWITCHED_BY_VENUE=1]="SWITCHED_BY_VENUE"}(r||(r={}))},4762:(t,e,n)=>{n.d(e,{G:()=>s});var r=n(1682),i=n(973),o=n(1879);class s{_map;_maplibre;_buildingId;_features;_$container;_$listContainer;_$buildingList;_listHeight;_language;_visible;_position="top-right";_isMobileMode;_isListShown=!1;constructor(t,e){this._map=t,this._language=t.getLanguage(),this._visible=e??!0,this._detectDeviceMode()}onAdd(t){return this._maplibre=t,this._$container=(0,r.r)("div","maplibregl-ctrl maplibregl-ctrl-building-filter "+(this._visible?"":"hide"),this._maplibre.getContainer()),this._$container.appendChild(this._buildingFilterIconCreate("div")),this._$container.appendChild(this._buildingNameListCreate("div")),this._bindEvents(),this._$container}onRemove(){(0,r.Z)(this._$container)}get position(){return this._position}get enabled(){return this._visible}getDefaultPosition(){return"top-right"}setVisibility(t){this._visible=t,t?this._$showLayout():this._$hideLayout()}changePosition(t,e,n){const r=document.querySelector(`.maplibregl-ctrl-${t}`),i=r.querySelector(".maplibregl-ctrl-building-filter");if(t!==e){this._position=e;const t=document.querySelector(`.maplibregl-ctrl-${e}`);i&&(r.removeChild(i),(0,o.A)(n)?t.insertBefore(i,t.children[n]):t.append(i),this._updateBuildingListLayout(e))}else(0,o.A)(n)&&r.children[n]!==i&&(r.removeChild(i),r.insertBefore(i,r.children[n]))}_bindEvents(){this._maplibre.on("moveend",(()=>this._refresh())),this._map.onMapChangeListener((t=>{const e=t.building?.properties?.id??"";this._buildingId!==e&&(this._buildingId=e,this._refresh())})),this._map.renderComplete((()=>this._init()))}_init(){this._load()}_refresh(){this._load()}_load(){this._buildingNameListClean(),this._buildingNameListUpdate()}_buildingFilterIconCreate(t){const e=(0,r.r)(t,"mapxus-building-filter-icon");return this._bindMouseOnEvents(e,!1),this._bindMobileTouchEvents(e),e}_buildingNameListCreate(t){return this._$listContainer=(0,r.r)(t,"mapxus-building-name-layout"),this._$listContainer.style.display="none",this._$listContainer.style.top="20px",this._$buildingList=(0,r.r)(t,"mapxus-building-name-list",this._$listContainer),this._bindMouseOnEvents(this._$listContainer,!0),this._$listContainer}_buildingNameListUpdate(){this._features=[];const t=this._map.getMaplibre(),e=t?t.queryRenderedFeatures({layers:["mapxus-building-line"]}):[];for(const t of e){const{properties:e}=t,{id:n,name:r}=e,o=e?.[`name:${this._language}`]??r;(0,i.A)(this._features,(t=>t.properties.id===n))||(this._features.push(t),this._$buildingList.appendChild(this._buildingNameCreate("p",o,n,n===this._map.building?.properties?.id)))}this._setBuildingListHeight(this._features),this._updateBuildingListLayout(this._position)}_buildingNameListClean(){this._$buildingList.replaceChildren()}_setBuildingListHeight(t){const e=t.map((t=>{const e=t?.properties?.[`name:${this._language}`]??t?.properties?.name;return e?Math.ceil(8*e.length/107):0})).reduce(((t,e)=>t+e),0);this._listHeight=26*e+8*t.length,this._$buildingList.style.height=this._$listContainer.style.height=`${this._listHeight>=208?208:this._listHeight}px`}_buildingNameCreate(t,e,n,i){const o=(0,r.r)(t,"mapxus-building-name"+(i?" active":""));return o.dataset.id=n,o.innerText=e,this._buildingNameClickEvent(o),o}_toggleList(t){this._isListShown=t,this._$listContainer.style.display=t?"block":"none"}_buildingNameClickEvent(t){t.onclick||(t.onclick=async t=>{const e=t.target;await this._map.selectBuildingById(e.dataset.id)})}_bindMouseOnEvents(t,e){t.onmouseenter=()=>{this._isMobileMode||this._toggleList(!0)},e&&(t.onmouseleave=()=>this._toggleList(!1))}_bindMobileTouchEvents(t){window.addEventListener("resize",(()=>this._detectDeviceMode())),t.ontouchend=()=>this._toggleList(!this._isListShown)}_$showLayout(){this._$container.classList.remove("hide")}_$hideLayout(){this._$container.classList.add("hide")}_updateBuildingListLayout(t){t.indexOf("left")>-1?(this._$listContainer.style.right=null,this._$listContainer.style.left="55px"):(this._$listContainer.style.left=null,this._$listContainer.style.right="55px");const e=this._$container.offsetParent?this._$container.offsetParent.clientHeight-(this._$container.offsetTop+this._$container.clientHeight)-25:0;t.includes("bottom")&&this._listHeight-20>e?(this._$listContainer.style.top=null,this._$listContainer.style.bottom="15px"):(this._$listContainer.style.bottom=null,this._$listContainer.style.top="20px")}_detectDeviceMode(){this._isMobileMode=window.matchMedia("(pointer: coarse) and (max-width: 768px)").matches}}},4787:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(169);const i=function(t){var e=this.__data__,n=(0,r.A)(e,t);return n<0?void 0:e[n][1]}},4792:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(2634),i=n(3153),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;const a=s?function(t){return null==t?[]:(t=Object(t),(0,r.A)(s(t),(function(e){return o.call(t,e)})))}:i.A},4841:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(2136),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i&&r.A.process;const a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}()},4846:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(9672),i=n(3098);const o=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,r.A)(t)}},4874:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(8458);class i{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,i,o){n.reason||(n.reason=new r.A(t,i,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new i((function(e){t=e})),cancel:t}}}const o=i},4877:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},4912:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(5707),i=n(6983),o=n(6031);const s=function(t,e,n){return e==e?(0,o.A)(t,e,n):(0,r.A)(t,i.A,n)}},4928:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ephemeralKeySize=e.symmetricNonceLength=e.symmetricAlgorithm=e.isHkdfKeyCompressed=e.isEphemeralKeyCompressed=e.ellipticCurve=e.ECIES_CONFIG=void 0;var r=n(1666),i=function(){this.ellipticCurve="secp256k1",this.isEphemeralKeyCompressed=!1,this.isHkdfKeyCompressed=!1,this.symmetricAlgorithm="aes-256-gcm",this.symmetricNonceLength=16};e.ECIES_CONFIG=new i;e.ellipticCurve=function(){return e.ECIES_CONFIG.ellipticCurve};e.isEphemeralKeyCompressed=function(){return e.ECIES_CONFIG.isEphemeralKeyCompressed};e.isHkdfKeyCompressed=function(){return e.ECIES_CONFIG.isHkdfKeyCompressed};e.symmetricAlgorithm=function(){return e.ECIES_CONFIG.symmetricAlgorithm};e.symmetricNonceLength=function(){return e.ECIES_CONFIG.symmetricNonceLength};e.ephemeralKeySize=function(){var t={secp256k1:e.ECIES_CONFIG.isEphemeralKeyCompressed?r.COMPRESSED_PUBLIC_KEY_SIZE:r.UNCOMPRESSED_PUBLIC_KEY_SIZE,x25519:r.CURVE25519_PUBLIC_KEY_SIZE,ed25519:r.CURVE25519_PUBLIC_KEY_SIZE};if(e.ECIES_CONFIG.ellipticCurve in t)return t[e.ECIES_CONFIG.ellipticCurve];throw new Error("Not implemented")}},4943:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(759),i=n(7960),o=n(5997);const s=function(t){var e=(0,i.A)(t);return 1==e.length&&e[0][2]?(0,o.A)(e[0][0],e[0][1]):function(n){return n===t||(0,r.A)(n,t,e)}}},4967:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isNegativeLE=void 0,e.mod=h,e.pow=function(t,e,n){return b(E(n),t,e)},e.pow2=function(t,e,n){let r=t;for(;e-- >o;)r*=r,r%=n;return r},e.invert=f,e.tonelliShanks=g,e.FpSqrt=m,e.validateField=function(t){const e=_.reduce(((t,e)=>(t[e]="function",t)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,i.validateObject)(t,e)},e.FpPow=b,e.FpInvertBatch=v,e.FpDiv=function(t,e,n){return t.mul(e,"bigint"==typeof n?f(n,t.ORDER):t.inv(n))},e.FpLegendre=w,e.FpIsSquare=function(t,e){return 1===w(t,e)},e.nLength=A,e.Field=E,e.FpSqrtOdd=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?n:t.neg(n)},e.FpSqrtEven=function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?t.neg(n):n},e.hashToPrivateScalar=function(t,e,n=!1){const r=(t=(0,i.ensureBytes)("privateHash",t)).length,o=A(e).nByteLength+8;if(o<24||r<o||r>1024)throw new Error("hashToPrivateScalar: expected "+o+"-1024 bytes of input, got "+r);return h(n?(0,i.bytesToNumberLE)(t):(0,i.bytesToNumberBE)(t),e-s)+s},e.getFieldBytesLength=B,e.getMinHashLength=S,e.mapHashToField=function(t,e,n=!1){const r=t.length,o=B(e),a=S(e);if(r<16||r<a||r>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+r);const c=h(n?(0,i.bytesToNumberLE)(t):(0,i.bytesToNumberBE)(t),e-s)+s;return n?(0,i.numberToBytesLE)(c,o):(0,i.numberToBytesBE)(c,o)};const r=n(9175),i=n(1484),o=BigInt(0),s=BigInt(1),a=BigInt(2),c=BigInt(3),l=BigInt(4),u=BigInt(5),d=BigInt(8);function h(t,e){const n=t%e;return n>=o?n:e+n}function f(t,e){if(t===o)throw new Error("invert: expected non-zero number");if(e<=o)throw new Error("invert: expected positive modulus, got "+e);let n=h(t,e),r=e,i=o,a=s,c=s,l=o;for(;n!==o;){const t=r/n,e=r%n,o=i-c*t,s=a-l*t;r=n,n=e,i=c,a=l,c=o,l=s}if(r!==s)throw new Error("invert: does not exist");return h(i,e)}function p(t,e){const n=(t.ORDER+s)/l,r=t.pow(e,n);if(!t.eql(t.sqr(r),e))throw new Error("Cannot find square root");return r}function y(t,e){const n=(t.ORDER-u)/d,r=t.mul(e,a),i=t.pow(r,n),o=t.mul(e,i),s=t.mul(t.mul(o,a),i),c=t.mul(o,t.sub(s,t.ONE));if(!t.eql(t.sqr(c),e))throw new Error("Cannot find square root");return c}function g(t){if(t<BigInt(3))throw new Error("sqrt is not defined for small field");let e=t-s,n=0;for(;e%a===o;)e/=a,n++;let r=a;const i=E(t);for(;1===w(i,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return p;let c=i.pow(r,e);const l=(e+s)/a;return function(t,r){if(t.is0(r))return r;if(1!==w(t,r))throw new Error("Cannot find square root");let i=n,o=t.mul(t.ONE,c),a=t.pow(r,e),u=t.pow(r,l);for(;!t.eql(a,t.ONE);){if(t.is0(a))return t.ZERO;let e=1,n=t.sqr(a);for(;!t.eql(n,t.ONE);)if(e++,n=t.sqr(n),e===i)throw new Error("Cannot find square root");const r=s<<BigInt(i-e-1),c=t.pow(o,r);i=e,o=t.sqr(c),a=t.mul(a,o),u=t.mul(u,c)}return u}}function m(t){return t%l===c?p:t%d===u?y:g(t)}e.isNegativeLE=(t,e)=>(h(t,e)&s)===s;const _=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function b(t,e,n){if(n<o)throw new Error("invalid exponent, negatives unsupported");if(n===o)return t.ONE;if(n===s)return e;let r=t.ONE,i=e;for(;n>o;)n&s&&(r=t.mul(r,i)),i=t.sqr(i),n>>=s;return r}function v(t,e,n=!1){const r=new Array(e.length).fill(n?t.ZERO:void 0),i=e.reduce(((e,n,i)=>t.is0(n)?e:(r[i]=e,t.mul(e,n))),t.ONE),o=t.inv(i);return e.reduceRight(((e,n,i)=>t.is0(n)?e:(r[i]=t.mul(e,r[i]),t.mul(e,n))),o),r}function w(t,e){const n=(t.ORDER-s)/a,r=t.pow(e,n),i=t.eql(r,t.ONE),o=t.eql(r,t.ZERO),c=t.eql(r,t.neg(t.ONE));if(!i&&!o&&!c)throw new Error("invalid Legendre symbol result");return i?1:o?0:-1}function A(t,e){void 0!==e&&(0,r.anumber)(e);const n=void 0!==e?e:t.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function E(t,e,n=!1,r={}){if(t<=o)throw new Error("invalid field: expected ORDER > 0, got "+t);const{nBitLength:a,nByteLength:c}=A(t,e);if(c>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let l;const u=Object.freeze({ORDER:t,isLE:n,BITS:a,BYTES:c,MASK:(0,i.bitMask)(a),ZERO:o,ONE:s,create:e=>h(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("invalid field element: expected bigint, got "+typeof e);return o<=e&&e<t},is0:t=>t===o,isOdd:t=>(t&s)===s,neg:e=>h(-e,t),eql:(t,e)=>t===e,sqr:e=>h(e*e,t),add:(e,n)=>h(e+n,t),sub:(e,n)=>h(e-n,t),mul:(e,n)=>h(e*n,t),pow:(t,e)=>b(u,t,e),div:(e,n)=>h(e*f(n,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>f(e,t),sqrt:r.sqrt||(e=>(l||(l=m(t)),l(u,e))),toBytes:t=>n?(0,i.numberToBytesLE)(t,c):(0,i.numberToBytesBE)(t,c),fromBytes:t=>{if(t.length!==c)throw new Error("Field.fromBytes: expected "+c+" bytes, got "+t.length);return n?(0,i.bytesToNumberLE)(t):(0,i.bytesToNumberBE)(t)},invertBatch:t=>v(u,t),cmov:(t,e,n)=>n?e:t});return Object.freeze(u)}function B(t){if("bigint"!=typeof t)throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function S(t){const e=B(t);return e+Math.ceil(e/2)}},4969:(t,e,n)=>{n.d(e,{y:()=>i});var r=n(3574);function i(t){let e=null;return!function(t){return/^en(-(US|GB|AU))?$/.test(t)}(t)?!function(t){return/^zh(-(Hans|CN))?$/.test(t)}(t)?!function(t){return/^zh-(Hant|HK|MO)$/.test(t)}(t)?!function(t){return"zh-TW"===t}(t)?!function(t){return/^ja(-JP)?$/.test(t)}(t)?!function(t){return/^ko(-KR)?$/.test(t)}(t)?!function(t){return/^(fil|tl)(-PH)?$/.test(t)}(t)?!function(t){return/^id(-ID)?$/.test(t)}(t)?!function(t){return/^pt(-(BR|PT))?$/.test(t)}(t)?!function(t){return/^th(-TH)?$/.test(t)}(t)?!function(t){return/^vi(-VN)?$/.test(t)}(t)?function(t){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(t)}(t)&&(e=r.ys.ARABIC):e=r.ys.VIETNAMESE:e=r.ys.THAI:e=r.ys.PORTUGUESE:e=r.ys.INDONESIAN:e=r.ys.FILIPINO:e=r.ys.KOREAN:e=r.ys.JAPANESE:e=r.ys.CHINESE_TRADITIONAL_TW:e=r.ys.CHINESE_TRADITIONAL:e=r.ys.CHINESE_SIMPLIFIED:e=r.ys.ENGLISH,e}},5054:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(7465),i=n(1788),o=n(2049),s=n(5353),a=n(5254),c=n(901);const l=function(t,e,n){for(var l=-1,u=(e=(0,r.A)(e,t)).length,d=!1;++l<u;){var h=(0,c.A)(e[l]);if(!(d=null!=t&&n(t,h)))break;t=t[h]}return d||++l!=u?d:!!(u=null==t?0:t.length)&&(0,a.A)(u)&&(0,s.A)(h,u)&&((0,o.A)(t)||(0,i.A)(t))}},5056:(t,e,n)=>{n.d(e,{eG:()=>a,ef:()=>o,kC:()=>s});var r=n(4969),i=n(3574);const o={lineWidth:3,lineColor:"#A5E3FF",lineOpacity:1},s={fontColor:"#8c8c8c",activeFontColor:"#fff",backgroundColor:"#fff",activeBackgroundColor:"#074769",itemSize:50,itemCount:4,defaultFolded:!1},a=(0,r.y)(window.navigator.language)??i.ys.ENGLISH},5088:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(5373),i=n(7919),o=n(8335);const s=function(){this.size=0,this.__data__={hash:new r.A,map:new(o.A||i.A),string:new r.A}}},5145:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5154:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},5188:(t,e,n)=>{n.d(e,{p:()=>h});var r=n(8291),i=n(1089),o=n(5664),s=n(973),a=n(1625),c=n(3549),l=n(4092),u=n(4722);const d="Poi_poiClick";class h{_map;_layerIds=[];_dispatch=(0,i.A)(d);_debounceQueryFeatures;constructor(t){this._map=t,this._bindEvents()}destroy(){this._dispatch.on(`.${d}`,null),this._debounceQueryFeatures?.cancel()}onPoiClick(t){const e=(0,o.A)(`${d}.`);return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}_bindEvents(){this._map.on("styledata",this._debounceQueryFeatures=(0,c.A)((()=>this._queryPoiLayers()),300)),this._initPoiClick()}_queryPoiLayers(){this._layerIds=(0,u.A)((0,l.A)((0,r.cq)(this._map.getStyle()),(t=>"mapxus_place"===t["source-layer"])),(({id:t})=>t))}_initPoiClick(){this._map.on("click",(t=>{const e=this._map.queryRenderedFeatures(t.point,{layers:[...this._layerIds,"mapxus-building-line","mapxus-venue-fill"]});if(e.length){const n=(0,s.A)(e,(t=>t.layer.id.indexOf("mapxus-poi")>-1));if(n?.properties){const{"ref:level":r=null,"ref:building":i}=n.properties,o=(0,s.A)(e,(t=>t.properties.id===i))??null,a=(0,s.A)(e,(t=>t.properties.id===o?.properties?.["ref:venue"]))??null,{floorName:c,ordinal:l}=this._getFloorDataByFloorId(r,o);this._dispatch.call(d,null,{coordinate:t.lngLat,poi:n,building:o,venue:a,floor:{code:c,id:r,ordinal:l}})}}}))}_getFloorDataByFloorId(t,e){let n=null,r=null;if(t&&e?.properties){const{level_ids:i,level_names:o,ordinals:s}=e.properties,c=i?.split(",")||[],l=(0,a.A)(c,(e=>e===t));l>-1&&(n=(o?.split(",")||[])[l]??null,r=(s?.split(",")||[])[l]??null)}return{floorName:n,ordinal:r}}}},5254:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5267:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(665);function i(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function o(t,e){this._pairs=[],t&&(0,r.A)(t,this,e)}const s=o.prototype;s.append=function(t,e){this._pairs.push([t,e])},s.toString=function(t){const e=t?function(e){return t.call(this,e,i)}:i;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const a=o},5295:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PrivateKey=void 0;var r=n(6527),i=n(2158),o=n(2557),s=function(){function t(t,e){if(this.curve=e,void 0===t)this.data=(0,i.getValidSecret)(e);else{if(!(0,i.isValidPrivateKey)(t,e))throw new Error("Invalid private key");this.data=t}this.publicKey=new o.PublicKey((0,i.getPublicKey)(this.data,e),e)}return t.fromHex=function(e,n){return new t((0,i.decodeHex)(e),n)},Object.defineProperty(t.prototype,"secret",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),t.prototype.toHex=function(){return(0,r.bytesToHex)(this.data)},t.prototype.encapsulate=function(t,e){void 0===e&&(e=!1);var n=this.publicKey.toBytes(e),r=this.multiply(t,e);return(0,i.getSharedKey)(n,r)},t.prototype.multiply=function(t,e){return void 0===e&&(e=!1),(0,i.getSharedPoint)(this.data,t.toBytes(!0),e,this.curve)},t.prototype.equals=function(t){return(0,r.equalBytes)(this.data,t.data)},t}();e.PrivateKey=s},5297:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5344:(t,e,n)=>{n.d(e,{v:()=>o});var r=n(2068),i=n(3574);class o{_api="/api/v3/route/query";_request=r.K.getInstance();constructor(){}search(t){const{points:e,vehicle:n=i.$O.FOOT,locale:r="en"}=t;if(!(e&&e.length>1&&e.length<6))throw new Error("Parameter error. It must be 1 < {points.length} < 6");const o={points:e,vehicle:n,locale:r};try{return this._request.post(this._api,JSON.stringify(o))}catch(t){throw new Error(t)}}}},5353:(t,e,n)=>{n.d(e,{A:()=>i});var r=/^(?:0|[1-9]\d*)$/;const i=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},5373:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(2944),i=n(9190),o=n(8417),s=n(8813),a=n(3957);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const l=c},5405:(t,e,n)=>{var r;n.d(e,{$:()=>r}),function(t){t.FOOT="foot",t.WHEELCHAIR="wheelchair",t.ESCALATOR="escalator",t.EMERGENCY="emergency"}(r||(r={}))},5461:(t,e,n)=>{n.d(e,{U:()=>a,l:()=>s});var r=n(9588);const i="-webkit-extension-67d8e3e8-";let o=null;async function s(){let t=sessionStorage.getItem(i);if(!t)try{a(),await c(Date.now()),t=sessionStorage.getItem(i)}catch(t){throw new Error("Failed to fetch public key: "+t)}return t}function a(){sessionStorage.removeItem(i),o&&(clearTimeout(o),o=null)}async function c(t){try{const n=await fetch(`${r.kk}?timestamp=${t}`,{method:"GET",headers:{"Content-Type":"text/plain"}}),{headers:s}=n,a=parseInt(s.get("x-retry-in"));o=setTimeout((async()=>{await c(t)}),1e3*a),e=await n.text(),sessionStorage.setItem(i,e)}catch(t){throw t}var e}},5462:(t,e,n)=>{n.d(e,{T:()=>F});var r=n(5629),i=n(5188),o=n(9983),s=n(2068),a=n(3626),c=n(520),l=n(3913),u=n(1089),d=n(3236),h=n(5056),f=n(181),p=n(5706),y=n(7311),g=n(1682),m=n(3574),_=n(3394),b=n(2075),v=n(9313),w=n(6294),A=n(9205),E=n(2468),B=n(9644),S=n(4092),x=n(3549),I=n(5664),L=n(973),O=n(1879),C=n(5582);const k="Map_mapClick",T="Map_pointClick",R="Map_isRenderComplete",P="Map_isDestroyed",M=y.o.getInstance();class F{_map;_indoor;_poi;_floorsControl;_buildingFilterControl;_attributionControl;_language;_dispatch=(0,u.A)(k,T,R,P);_fitBuildingBounds;_history=f.d.getInstance();_hiddenBuildings=p.Q.getInstance().getHiddenBuildings();_debounceHTTPErrorHandler;_transformRequestHandler;_tokenRefreshingPromise=null;_request=s.K.getInstance();_$mask=null;_cancelTokenChangedListener;isDestroyed=!1;switchOutdoor;switchBuilding;buildingSelector;floorSelector;constructor(t){if(!t.map)throw new Error("Map is required.");if(!j(t)&&!H(t))throw new Error("Access params are required.");j(t)?M.setAccessByAppKey({appId:t.appId,secret:t.secret,platform:t.platform}).then((async()=>{await M.setupTokenManager(),this._setup(t)})):H(t)&&(M.setTokenGetter(t.getTokenAsync),M.setupTokenManager().then((()=>{this._setup(t)})))}renderComplete(t){const e=(0,I.A)(`${R}.`);this._dispatch.on(e,t)}destroyed(t){const e=(0,I.A)(`${P}.`);this._dispatch.on(e,(()=>{t(),this._dispatch.on(e,null),0===this._dispatch._[P].length&&(delete this._dispatch,Object.freeze(this))}))}setTransformRequest(t){this._transformRequestHandler=t}getIndoor(){return this._indoor}getMaplibre(){return this._map}get floor(){return this.getIndoor()?.floor??null}get building(){return this.getIndoor()?.building??null}get venue(){return this.getIndoor()?.venue??null}setLanguage(t){this._language!==t&&(this._language=t),t===m.ys.ARABIC&&_.default.setRTLTextPlugin("https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.3.0/dist/mapbox-gl-rtl-text.js",!0);const e=this._map?.getStyle(),n=(e?.layers||[]).filter((({type:t})=>"symbol"===t));for(const{id:e}of n){const n=this._map.getLayer(e),r="string"==typeof this._map.getLayoutProperty(e,"text-field");n&&!r&&this._map.setLayoutProperty(e,"text-field",["coalesce",["get",`name:${t}`],["get","name"]])}}getLanguage(){return this._language}setOutdoorMapShown(t){this.getIndoor()?.setOutdoorMapShown(t)}getIndoorFeaturesByCoordinates(t,e){const n=this._map.project(t),r=this._map.queryRenderedFeatures(n,{layers:["mapxus-venue-fill","mapxus-building-line","mapxus-level-fill","mapxus-level-fill-overlap-copy"]});if(0===r.length)return{venue:null,building:null,level:null};const i=r.filter((t=>t.layer.id.includes("mapxus-level-fill"))),o=(0,L.A)(i,(t=>(0,O.A)(e)?t.properties.ordinal===e+"":t.layer.id.startsWith("mapxus-level-fill")));if(!o)return{venue:null,building:null,level:null};const s=(0,L.A)(r,(t=>t.properties.id===o.properties["ref:building"]));return{venue:(0,L.A)(r,(t=>t.properties.id===s.properties["ref:venue"])),building:s,level:o}}getFeaturesById(t,e){return this.getIndoor()?.getFeaturesById(t,e)||[]}async selectFloorById(t,e){const{dragPan:n=!0}=e||{};if(this._indoor.setDragPan(n),t===this.floor?.id){if(!n)return;this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter()}else{let e,r,i;try{if(this._fitBuildingBounds){e=await(0,v.F2)(t),r=(0,d.r)(e),i=!0;const{maxLat:n,maxLon:o,minLat:s,minLon:a}=e.bbox;this._indoor.setBuildingBounds([[a,s],[o,n]])}else r=(0,L.A)(this._indoor?.features||[],(e=>e.properties?.level_ids?.includes(t)&&"mapxus-building-line"===e.layer.id))??null,r?i=!1:(e=await(0,v.F2)(t),r=(0,d.r)(e),i=!0)}catch(t){this._handleSearchError(t)}if(r&&r?.properties?.id===this.building?.properties?.id){const{level_ids:e,ordinals:i}=r.properties,o=e.split(",").indexOf(t),s=i.split(",")[o]??null;await this._floorsControl.switchByOrdinal(s,n)}else await(this._indoor?.selectBuilding(r,{floorId:t,featureIncomplete:i}))}}async selectBuildingById(t,e){const{dragPan:n=!0}=e||{};if(this._indoor.setDragPan(n),t===this.building?.properties?.id){if(!n)return;this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter()}else{let e,n,r=!1;try{if(this._fitBuildingBounds){e=await(0,v.pT)(t),n=(0,d.r)(e),r=!0;const{maxLat:i,maxLon:o,minLat:s,minLon:a}=e.bbox;this._indoor.setBuildingBounds([[a,s],[o,i]])}else n=this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(t,{layerIds:["mapxus-building-line"]})[0]||null,n||(e=await(0,v.pT)(t),n=(0,d.r)(e),r=!0);await(this._indoor?.selectBuilding(n,{featureIncomplete:r}))}catch(t){this._handleSearchError(t)}}}async selectVenueById(t,e){const{dragPan:n=!0}=e||{};if(this._indoor.setDragPan(n),"string"==typeof t&&""===t.trim()||null===t)await(this._indoor?.selectBuilding(null));else if(t===this.venue?.properties?.id){if(!n)return;this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter()}else{let e=this._history.getHistoryBuilding(t);if(!e){const n=this._map.getLayer("mapxus-venue-fill")&&this.getFeaturesById(t,{layerIds:["mapxus-venue-fill"]})[0];if(n){const{default_displayed_building:t,building_ids:r}=n.properties;e=t||(r?.split(",")||[])[0]}else try{const n=await(0,v.qT)(t);e=n.defaultBuilding||n.buildings[0]?.id}catch(t){this._handleSearchError(t)}}e&&await this.selectBuildingById(e,{dragPan:n})}}onMapClickListener(t){const e=(0,I.A)(`${k}.`);return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}onPoiClickListener(t){return this._poi?.onPoiClick(t)}onPointClickListener(t){const e=(0,I.A)(`${T}.`);return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}onMapChangeListener(t){return this._indoor?.onMapChange(t)}switchTheme(t){this._setStyle(this._getStyleUrl(t)),this._map?.once("styledata",(()=>this._setIndoorFilter())),"changeTheme"in this._attributionControl&&this._attributionControl.changeTheme(t)}setSelectedBuildingBorderStyle(t){return this._indoor?.setSelectedBuildingBorderStyle(t),this}async _setup(t){const{map:e,poiId:n,floorId:s,buildingId:u,venueId:d,theme:f=m.SV.MAPXUS_DEFAULT,floorSelectorEnabled:p,buildingSelectorEnabled:y,outdoorMapShown:g,collapseCopyright:_=!1,floorSwitchMode:b,maskNonSelectedAreas:v,fitBuildingBounds:S=!1,boundsPadding:I=30,selectedBuildingBorderStyle:L,floorSelectorStyle:O,language:C=h.eG,autoSelectBuilding:k=!1,transformRequest:T=null,mapxusLogoEnabled:P=!0}=t;this._map=e,this._language=C,this._indoor=new r.SN({map:this._map,startWithIndoorView:Boolean(d||u||s||n),outdoorMapShown:g,floorSwitchMode:b,fitBuildingBounds:S,boundsPadding:I,maskNonSelectedAreas:v,selectedBuildingBorderStyle:L}),this._poi=new i.p(this._map),this._fitBuildingBounds=S,this._transformRequestHandler=T,this._setMaskEnabled(!0),await this._resourceRequestTransform(),this._setStyle(this._getStyleUrl(f)),this._checkMapZoom(),_?this._attributionControl=new l.d:(this._attributionControl=new c.z({theme:f}),this._addControl(new a.V({enabled:P}))),this._addControl(this._attributionControl),this._addControl(this._buildingFilterControl=new o.G(this,y)),this._addControl(this._floorsControl=new o.Z(this._indoor,{style:O,enabled:p})),n?this._selectPoiById(n):s?this.selectFloorById(s):u?this.selectBuildingById(u):d&&this.selectVenueById(d),this.switchOutdoor=new w.B(this._indoor),this.switchBuilding=new A.N(this._indoor),this.buildingSelector=new E.E(this._buildingFilterControl),this.floorSelector=new B.C(this._floorsControl),this._map.on("remove",(()=>this._destroy())),this._map.on("error",this._debounceHTTPErrorHandler=(0,x.A)((t=>this._updatePermission(t)),350)),this._indoor.once(r.mp,(()=>this.setLanguage(this._language))),this._indoor.once(r.Hv,(()=>{this._fitBuildingBounds?this._map.once("moveend",(()=>this._setMaskEnabled(!1))):this._setMaskEnabled(!1),k&&this._map.on("moveend",(()=>this._selectCenterBuilding())),this._bindMapClickListener(),this._bindTokenChangedListener(),this._dispatch.call(R)}))}_getStyleUrl(t){const e=new globalThis.Map([[m.SV.CHRISTMAS,b._C],[m.SV.HALLOWEEN,b.ts],[m.SV.MAPPY_BEE,b.xR],[m.SV.MAPXUS,b.em],[m.SV.COMMON,b.lu],[m.SV.LANDS_D,b.Hf],[m.SV.MAPXUS_DEFAULT,b.$b]]);return e.has(t)?e.get(t):(0,b.aS)(t)}_setIndoorFilter(){this._indoor.updateCustomLayers(),this._indoor.updateRendering()}_setStyle(t){this._map?.setStyle(t,{localIdeographFontFamily:!1})}_addControl(t,e){this._map.addControl(t,e)}async _selectPoiById(t){try{const e=await(0,v.xW)(t),{floorId:n,location:{lon:r,lat:i}}=e;await this.selectFloorById(n),this._map.panTo([r,i])}catch(t){this._handleSearchError(t)}}async _resourceRequestTransform(){const t=await this._request.getRequestHeaders();this._map.setTransformRequest(((e,n)=>{const{host:r}=new URL(e);return r.includes("map-api")&&r.includes("mapxus")?{url:e,headers:t}:this._transformRequestHandler?this._transformRequestHandler(e,n):{url:e}}))}_checkMapZoom(){const t=this._map.getZoom();(t<8||t>22)&&t>1&&console.warn("Indoor maps perform better at zoom levels [8, 22].")}async _updatePermission(t){if(401===t.error?.status)return this._tokenRefreshingPromise||(this._tokenRefreshingPromise=this._resourceRequestTransform().finally((()=>this._tokenRefreshingPromise=null))),this._tokenRefreshingPromise}_selectCenterBuilding(){const t=this._getCenterBuildingsMap();if(!t.size)return;let e=t.entries().next().value[0];const n=this._history.getHistoryBuildings();if(n.size){const r=Array.from(n).reverse();for(const n of r)if(t.get(n)){e=n;break}}this.selectBuildingById(e,{dragPan:!1})}_getCenterBuildingsMap(){const t=this._map.getCanvas().getBoundingClientRect(),e=t.width/4,n=t.height/4,r=[e,n],i=[t.width-e,t.height-n];let o=this._map.queryRenderedFeatures([r,i],{layers:["mapxus-building-line"]});return o=(0,C.A)(o,"properties.id"),o=(0,S.A)(o,(t=>!this._hiddenBuildings.has(t.properties.id))),new globalThis.Map(o.map((t=>[`${t.properties.id}`,t])))}_bindMapClickListener(){this._map.on("click",(async t=>{const{point:e,lngLat:n}=t;await this._indoor.selectBuildingByClickMap(e),this._dispatch.call(T,null,{point:e,coordinate:n}),this._dispatch.call(k,null,{coordinate:n,venue:this.venue,building:this.building,floor:this.floor})}))}_bindTokenChangedListener(){const{off:t}=M.on(y.O,(async()=>{await this._resourceRequestTransform()}));this._cancelTokenChangedListener=t}_handleSearchError(t){const e=t?.response?.status||"unknown",n=t?.response?.data?.message||"unknown";M.getGlobalDispatcher().call("initError",null,{status:e,message:n})}_setMaskEnabled(t){t?this._$mask||(this._$mask=(0,g.r)("div","mapxus-map-mask",this._map.getContainer())):this._$mask&&((0,g.Z)(this._$mask),this._$mask=null)}_destroy(){if(this.isDestroyed)return;this.isDestroyed=!0,this._debounceHTTPErrorHandler?.cancel();const t=this._dispatch._;for(const e in t)e!==P&&t.hasOwnProperty(e)&&t[e].forEach((({name:t})=>{this._dispatch.on(`${e}.${t}`,null)}));this._indoor.destroy(),this._poi.destroy(),Object.keys(this).forEach((t=>{"isDestroyed"!==t&&"_dispatch"!==t&&delete this[t]})),this._cancelTokenChangedListener&&this._cancelTokenChangedListener(),M.clearState(),this._dispatch.call(P)}}function H(t){return"getTokenAsync"in t&&"function"==typeof t.getTokenAsync}function j(t){return"appId"in t&&""!==t.appId.trim()&&"secret"in t&&""!==t.secret.trim()}},5488:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(7880),i=/^\s+/;const o=function(t){return t?t.slice(0,(0,r.A)(t)+1).replace(i,""):t}},5530:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(4912);const i=function(t,e){return!!(null==t?0:t.length)&&(0,r.A)(t,e,0)>-1}},5537:(t,e,n)=>{n.d(e,{s:()=>o});class r extends Error{}function i(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(t){return decodeURIComponent(atob(t).replace(/(.)/g,((t,e)=>{let n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return atob(e)}}function o(t,e){if("string"!=typeof t)throw new r("Invalid token specified: must be a string");e||(e={});const n=!0===e.header?0:1,o=t.split(".")[n];if("string"!=typeof o)throw new r(`Invalid token specified: missing part #${n+1}`);let s;try{s=i(o)}catch(t){throw new r(`Invalid token specified: invalid base64 for part #${n+1} (${t.message})`)}try{return JSON.parse(s)}catch(t){throw new r(`Invalid token specified: invalid json for part #${n+1} (${t.message})`)}}r.prototype.name="InvalidTokenError"},5547:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(9914);const i=function(t,e){var n=t.__data__;return(0,r.A)(e)?n["string"==typeof e?"string":"hash"]:n.map}},5568:(t,e,n)=>{n.d(e,{F:()=>f});var r=n(9588),i=n(2068),o=n(9573),s=n(8346),a=n(3574),c=n(4722),l=n(6034),u=n(2049),d=n(2531);const h=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","icon"];class f{_api="/api/v3/pois";_apiV4="/api/v4/pois";_categoriesApi="/api/v2/categories/pois";_categoriesGroupApi="/api/v5/categories/group";_request=i.K.getInstance();constructor(){}searchByIds(t){const e=(0,o.V)(t);if(!e)throw new Error("Please input poi id at least one.");const n=`${this._apiV4}/${e}`;return this._changedRes(n,(t=>t.descriptions?.default?{description:t.descriptions.default}:null))}searchByDistance(t){const{center:e,distance:n,keywords:i="",offset:o=r.e$,page:s=r.KL}=t;if(!e||!n)throw new Error("Parameter missing.");const a=[`keywords=${i}`,`center=${e.join(",")}`,`distance=${Math.round(n)}`,`offset=${o}`,`page=${s}`],c=`${this._api}?${a.join("&")}`;return this._changedRes(c)}searchByBounds(t){const{bounds:e,offset:n=r.e$,page:i=r.KL,keywords:o,orderBy:s}=t,a=[`bbox=${e.flat().join()}`,`offset=${n}`,`page=${i}`];p(o)&&a.push(`keywords=${o.trim()}`),s&&a.push(`orderBy=${s}`);const c=`${this._api}?${a.join("&")}`;return this._changedRes(c)}searchByBuilding(t){const{buildingId:e,offset:n=r.e$,page:i=r.KL,keywords:o,orderBy:s}=t,a=[`buildingId=${e}`,`offset=${n}`,`page=${i}`];p(o)&&a.push(`keywords=${o.trim()}`),s&&a.push(`orderBy=${s}`);const c=`${this._api}?${a.join("&")}`;return this._changedRes(c)}searchByVenue(t){const{venueId:e,offset:n=r.e$,page:i=r.KL,keywords:o,orderBy:s}=t,a=[`venueId=${e}`,`offset=${n}`,`page=${i}`];p(o)&&a.push(`keywords=${o.trim()}`),s&&a.push(`orderBy=${s}`);const c=`${this._api}?${a.join("&")}`;return this._changedRes(c)}searchByFloor(t){const{floorId:e,offset:n=r.e$,page:i=r.KL,keywords:o,orderBy:s}=t,a=[`floorId=${e}`,`offset=${n}`,`page=${i}`];o&&a.push(`keywords=${o}`),s&&a.push(`orderBy=${s}`);const c=`${this._api}?${a.join("&")}`;return this._changedRes(c)}searchCategories(t){let e,n;"bounds"in t?(e=`bbox=${t.bounds.flat().join()}`,(0,s.t)(t.keywords)&&(e+=`&keywords=${t.keywords.trim()}`),n=`${this._categoriesGroupApi}?${e}`):("floorId"in t?e=`floorId=${t.floorId}`:"buildingId"in t?e=`buildingId=${t.buildingId}`:"venueId"in t&&(e=`venueId=${t.venueId}`),n=`${this._categoriesApi}?${e}`);try{return this._request.get(n)}catch(t){throw t}}searchByOrientation(t){const{center:e,angle:n,distance:r,distanceSearchType:i=a._P.POINT}=t,o=[`center=${e.join()}`,`angle=${Math.round(n)}`,`distance=${r}`,`distanceSearchType=${i}`];"ordinal"in t?o.push(`ordinal=${t.ordinal}`):"floorId"in t?o.push(`floorId=${t.floorId}`):"buildingId"in t&&o.push(`buildingId=${t.buildingId}`);const s=`${this._api}/orientation?${o.join("&")}`;return this._request.get(s)}searchByCategory(t){const{center:e,distance:n,page:i=r.KL,offset:o=r.e$}=t,s=[`center=${e.join(",")}`,`distance=${n}`,`offset=${o}`,`page=${i}`];let a="";if("category"in t)a=`${this._api}?category=${t.category}&${s.join("&")}`;else if("excludedCategories"in t){const{excludedCategories:e}=t;a=(0,u.A)(e)?`${this._api}?excludeCategories=${e.join(",")}&${s.join("&")}`:`${this._api}?excludeCategories=${e}&${s.join("&")}`}if(a.length)return this._changedRes(a);throw new Error("Parameter missing.")}search(t){const e=(0,c.A)(t,((t,e)=>"bounds"===e?`bbox=${t.flat().join()}`:"center"===e?`center=${t.join()}`:"excludedCategories"===e?`excludeCategories=${(0,u.A)(t)?t.join(","):t}`:`${e}=${t}`));return this._request.get(`${this._api}?${e.join("&")}`)}_changedRes(t,e){return new Promise(((n,r)=>{this._request.get(t).then((t=>{t.data.result.pois=(0,c.A)(t.data.result.pois,(t=>{let n=(0,l.A)(t,((t,e)=>(0,d.A)(h,e)));return e&&e(n)&&(n=Object.assign({},n,e(n))),n})),n(t)})).catch(r)}))}}function p(t){return"string"==typeof t&&Boolean(t.trim())}},5572:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},5579:(t,e,n)=>{function r(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}n.d(e,{A:()=>r})},5582:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(2141),i=n(5781);const o=function(t,e){return t&&t.length?(0,i.A)(t,(0,r.A)(e,2)):[]}},5606:(t,e,n)=>{n.d(e,{A:()=>i});var r=Object.prototype.toString;const i=function(t){return r.call(t)}},5629:(t,e,n)=>{n.d(e,{Hv:()=>B,Ms:()=>E,SN:()=>O,mp:()=>S});var r=n(7007),i=n(3574),o=n(8291),s=n(3236),a=n(4545),c=n(5056),l=n(9313),u=n(1965),d=n(1089),h=n(181),f=n(5706),p=n(973),y=n(1625),g=n(8389),m=n(3549),_=n(5582),b=n(4092),v=n(5664),w=n(746);const A="Indoor_selectedFloorChanged",E="Indoor_selectedBuildingChanged",B="Indoor_mapxusMapLoaded",S="Indoor_maplibreMapLoaded",x="mapxus-building-line",I="assistant-mapxus-level-outline",L=new a.w1;class O extends r.EventEmitter{_map;_features;_allBuildingsMap;_curBuildingId=null;_curBuildingFeature=null;_ordinal=null;_floorId=null;_floorName=null;_allowOutdoorSwitch;_allowBuildingSwitch;_outdoorMapShown;_originIndoorLayers;_curVenueId=null;_curVenueFeature=null;_buildingHighlightStyle;_lowerLayers;_upperLayers;_commonLayers;_dispatch=(0,d.A)(A);_fitBuildingBounds;_boundsPadding;_startWithIndoorView;_indoorMapLoaded=!1;_isVenueMode;_isMaskMode;_upperLevels=new Set;_lowerLevels=new Set;_featureIncomplete=!1;_dragPan;_isNewBuilding=!1;_buildingBounds;_history=h.d.getInstance();_layerBuildings=f.Q.getInstance();_upperBuildings=this._layerBuildings.getUpperBuildings();_lowerBuildings=this._layerBuildings.getLowerBuildings();_hiddenBuildings=this._layerBuildings.getHiddenBuildings();_isDestroyed=!1;_findBuildingTimeoutId=null;_findBuildingIntervalId=null;_debounceRendering;constructor(t){super();const{map:e,startWithIndoorView:n=!0,outdoorMapShown:r=!0,selectedBuildingBorderStyle:o,floorSwitchMode:s=i.MA.SWITCHED_BY_VENUE,fitBuildingBounds:a,boundsPadding:l,maskNonSelectedAreas:u=!1}=t;this._map=e,this._allowOutdoorSwitch=!0,this._allowBuildingSwitch=!0,this._startWithIndoorView=n,this._outdoorMapShown=r,this._isVenueMode=s===i.MA.SWITCHED_BY_VENUE,this._isMaskMode=u,this._fitBuildingBounds=a,this._boundsPadding=l,this._buildingHighlightStyle=o?Object.assign({},c.ef,o):c.ef,this._hiddenBuildings=new Set,this._bindMaplibreEventListeners()}destroy(){this._isDestroyed||(this._isDestroyed=!0,this._dispatch.on(`.${A}`,null),this.removeAllListeners(E),this.removeAllListeners(S),this.removeAllListeners(B),this._debounceRendering?.cancel(),this._findBuildingTimeoutId&&(clearTimeout(this._findBuildingTimeoutId),this._findBuildingTimeoutId=null),this._findBuildingIntervalId&&(clearInterval(this._findBuildingIntervalId),this._findBuildingIntervalId=null))}setAllowOutdoorSwitch(t){return this._allowOutdoorSwitch=t,this}setAllowBuildingSwitch(t){return this._allowBuildingSwitch=t,this}get floor(){return{code:this._floorName,id:this._floorId,ordinal:this._ordinal}}get building(){return this._curBuildingFeature}get venue(){return this._curVenueFeature}get features(){return this._features}getFeaturesById(t,e){const{layerIds:n,filter:r}=e||{},i=this._queryRenderedFeatures(n),o=r?e=>e.properties.id===t&&r(e):e=>e.properties.id===t;return(0,b.A)(i,o)}async switchFloorByOrdinal(t){this._updateFloorState(t),this._dispatch.call(A,null,{venue:this.venue,building:this.building,floor:this.floor}),t&&this._floorId&&(this._resetSelectedBuildingLevel(),!0===this._dragPan&&(this._fitBuildingBounds?(this._isNewBuilding&&this._featureIncomplete&&await this.panToBuildingCenter(),this.fitBuildingBbox()):await this.panToBuildingCenter()),"restrict"===this._dragPan&&await this._checkAndPanToBuilding()),this.updateRendering()}setOutdoorMapShown(t){this._outdoorMapShown=t,this._setOutdoorVisibility(t)}updateCustomLayers(){this._originIndoorLayers=(0,o.cq)(this._map.getStyle()),this._copyOverlapLayers(),this._addBuildingHighlightLayer(),this._addCustomLevelFillLayer(),this._isMaskMode&&this._addBuildingMaskLayer(),this._outdoorMapShown||this._setOutdoorVisibility(!1)}setSelectedBuildingBorderStyle(t){t?(this._buildingHighlightStyle=Object.assign({},this._buildingHighlightStyle,t),this._map.getLayer(I)&&(this._map.setPaintProperty(I,"line-color",this._buildingHighlightStyle.lineColor),this._map.setPaintProperty(I,"line-opacity",this._buildingHighlightStyle.lineOpacity),this._map.setPaintProperty(I,"line-width",this._buildingHighlightStyle.lineWidth),this._map.setPaintProperty(I,"line-offset",this._buildingHighlightStyle.lineWidth))):(this._buildingHighlightStyle=Object.assign({},this._buildingHighlightStyle,{"line-opacity":0}),this._map.getLayer(I)&&this._map.setPaintProperty(I,"line-opacity",0))}onMapChange(t){const e=(0,v.A)(`${A}.`);return this._dispatch.on(e,t),{unsubscribe:()=>this._dispatch.on(e,null)}}async selectBuilding(t,e){(this._allowOutdoorSwitch||t)&&this._allowBuildingSwitch&&this._allowBuildingSwitch&&this._isNotCurrentFeature(t)&&(this._featureIncomplete=e?.featureIncomplete??this._featureIncomplete,this._isNewBuilding=!0,this._isMaskMode&&this._invisibleSelectedBuilding(),await this._updateIndoorState(t,e?.floorId),await this.switchFloorByOrdinal(this._ordinal),this.emit(E,{buildingId:this._curBuildingId,ordinal:this._ordinal,dragPan:this._dragPan}),this._indoorMapLoaded||(this._indoorMapLoaded=!0,this.emit(B)),this._isNewBuilding=!1)}updateRendering(){this._updateFeatures(),this._updateSelectedFeatures(),this._layerDisplayedBuildings(),this._setDisplayedLevels(),this._filterTiles(),this._setBuildingLineOpacity(),this._filterBuildingHighlight()}async panToBuildingCenter(){const t=this._curBuildingFeature.properties?.label_center?.split(",");if(t&&(this._map.panTo(t),this._featureIncomplete))return new Promise((t=>{this._findBuildingTimeoutId=setTimeout((()=>{let e=!1;const n=()=>{if(this._isDestroyed)return void this._clearTimers();this._map.getLayer(x)&&this.getFeaturesById(this._curBuildingId,{layerIds:[x]})[0]&&(e=!0,t(!0))};this._findBuildingIntervalId=setInterval((()=>{e?this._clearTimers():n()}),100),n(),this._map.getZoom()<14&&(this._clearTimers(),t(!1))}))}))}fitBuildingBbox(){this._buildingBounds&&this._map.fitBounds(this._buildingBounds,{padding:this._boundsPadding,bearing:this._map.getBearing()})}setDragPan(t){this._dragPan=t}setBuildingBounds(t){this._buildingBounds=t}async selectBuildingByClickMap(t){let e=null;const n=this._map.queryRenderedFeatures(t,{layers:["mapxus-level-fill","mapxus-level-fill-overlap-copy",x]});if(n.length){const t=(0,p.A)(n,(t=>t.layer.id.startsWith("mapxus-level-fill")));e=t?(0,p.A)(n,(e=>e.properties.id===t.properties["ref:building"])):(0,p.A)(n,(t=>{const{id:e,level_ids:n}=t.properties;return!this._hiddenBuildings.has(e)&&!(0,w.A)(n.split(","),(t=>this._upperLevels.has(t)||this._lowerLevels.has(t)))}))??null}this.setDragPan("restrict"),await this.selectBuilding(e),setTimeout((async()=>{if(this._fitBuildingBounds)if(e){const t=await(0,l.pT)(e.properties.id),{minLon:n,minLat:r,maxLon:i,maxLat:o}=t.bbox;this.setBuildingBounds([[n,r],[i,o]])}else this.setBuildingBounds(null)}))}_bindMaplibreEventListeners(){this._map.once("styledata",(()=>this.updateCustomLayers())),this._map.once("idle",(()=>{this.emit(S),(!this._startWithIndoorView||this._map.getZoom()<14)&&(this._indoorMapLoaded=!0,this.emit(B))})),this._map.on("sourcedata",this._debounceRendering=(0,m.A)((()=>this.updateRendering()),300))}_clear(){this._curBuildingFeature=null,this._curBuildingId=null,this._ordinal=null,this._floorName=null,this._floorId=null,this._curVenueId=null,this._curVenueFeature=null,this._buildingBounds=null}_getIndoorFeatures(){return this._queryRenderedFeatures().filter((t=>"indoor-planet"===t.source))}_getBuildingFloorByOrdinal(t,e){let n=null,r=null;if(t?.properties){const{ordinals:i,level_names:o,level_ids:s}=t.properties,a=(0,y.A)(i?.split(",")||[],(t=>t===e));n=(o?.split(",")||[])[a]??null,r=(s?.split(",")||[])[a]??null}return{code:n,id:r,ordinal:e}}_isNotCurrentFeature(t){return t?.properties?.id!==this._curBuildingId}_setOutdoorVisibility(t){const e=(0,o.Z3)(this._map.getStyle());if(e.length){const n=t?"visible":"none";e.forEach((({id:t})=>{this._map.getLayer(t)&&this._map.setLayoutProperty(t,"visibility",n)}))}}_addCustomLevelFillLayer(){this._map.getLayer("custom-level-fill")||this._map.addLayer({id:"custom-level-fill",source:"indoor-planet","source-layer":"mapxus_level",type:"fill",paint:{"fill-opacity":0}})}_addBuildingMaskLayer(){if(this._map.getLayer(u.Zj))return;const t=this._originIndoorLayers.find((({id:t})=>t===x));if(t){const e=Object.assign({},t,{id:u.Zj,layout:Object.assign({},t.layout??{},{visibility:"visible"}),paint:Object.assign({},t.paint??{},{"fill-opacity":0})});this._map.addLayer(e,x)}}_setBuildingLineOpacity(){this._isMaskMode&&this._map.getLayer(x)&&this._map.setPaintProperty(x,"fill-opacity",["case",["in",["get","id"],["literal",[...this._upperBuildings]]],0,["in",["get","id"],["literal",[...this._hiddenBuildings]]],0,1])}_addBuildingHighlightLayer(){if(!this._map.getLayer(I)){const{lineWidth:t,lineOpacity:e,lineColor:n}=this._buildingHighlightStyle;this._map.addLayer({id:I,source:"indoor-planet","source-layer":"mapxus_level",type:"line",filter:["==","id",""],paint:{"line-offset":t,"line-width":t,"line-color":n,"line-opacity":e}});const r=this._originIndoorLayers.findIndex((({id:t})=>t===this._upperLayers[this._upperLayers.length-1].id)),i=this._originIndoorLayers[r+1];this._map.moveLayer(I,i.id)}}_filterBuildingHighlight(){this._map.getLayer(I)&&this._map.setFilter(I,["==","id",this._floorId??""])}_handleBuildings(t,e){if(e.clear(),t.size)for(const n of t){const r=this._allBuildingsMap.get(n);if(!r?.properties)continue;const{"ref:venue":i,ordinals:o,level_ids:s}=r.properties;let a=this._history.getHistoryOrdinal(this._isVenueMode?this._history.getHistoryBuilding(i):n);if(!a){if(this._isVenueMode){const t=this._features.find((t=>"mapxus-venue-fill"===t.layer.id&&t.properties.id===i));a=this._getVenueDefaultOrdinal(t)}else a=this._getBuildingDefaultOrdinal(r);if(!a)continue;this._history.setHistoryOrdinal(n,a),this._isVenueMode&&this._history.setHistoryBuilding(i,n)}const c=(0,y.A)(o.split(","),(t=>t===a));if(c>-1){const r=s.split(",")[c];if(this._isMaskMode){(this._isVenueMode?this._curVenueFeature?.properties?.building_ids?.split(",")||[]:this._curBuildingId?[this._curBuildingId]:[]).includes(n)?(e.add(r),this._hiddenBuildings.delete(n)):t.delete(n)}else e.add(r),this._hiddenBuildings.delete(n)}else this._hiddenBuildings.add(n),t.delete(n)}}_getVenueDefaultOrdinal(t){let e=null;if(t?.properties){const{default_displayed_ordinal:n,building_ids:r}=t.properties;if(n&&(e=n),!e&&r){const t=(0,p.A)(this._getBuildingsOfBbox(),(t=>r.includes(t.properties.id)));e=t?this._getBuildingDefaultOrdinal(t):null}}return e}_getBuildingDefaultOrdinal(t){let e=null;if(t?.properties){const{level_ids:n,ordinals:r,default_displayed_floor:i}=t.properties,o=r?.split(",")||[];if(o.length){if(i){e=o[(0,y.A)(n?.split(",")||[],(t=>t===i))]??null}e||(e=(0,g.A)(o,(t=>Math.abs(Number(t)-.1))))}}return e}_getBuildingsOfBbox(t){let e=this._map.queryRenderedFeatures({layers:[x]});return e=(0,_.A)(e,(t=>t.properties.id)),t&&(e=e.filter(t)),e}_copyOverlapLayers(){const t=this._originIndoorLayers.findIndex((({id:t})=>"mapxus-level-fill"===t)),e=this._originIndoorLayers.findIndex((({id:t,type:e})=>t.startsWith("mapxus-poi")&&"symbol"===e));this._commonLayers=this._originIndoorLayers.slice(0,t).concat(this._originIndoorLayers.slice(e)),this._upperLayers=this._originIndoorLayers.slice(t,e).filter((t=>"mapxus_building"!==t["source-layer"])),this._lowerLayers=this._upperLayers.map((t=>{const e=Object.assign({},t,{id:`${t.id}-overlap-copy`});return this._map.getLayer(e.id)||(this._map.addLayer(e),this._map.moveLayer(e.id,"mapxus-level-fill")),e}))}_updateFeatures(){this._features=this._getIndoorFeatures();const t=(0,_.A)(this._features,(t=>t.layer.id+":"+t.properties.id)).filter((t=>t.layer.id===x));this._allBuildingsMap=new Map(t.map((t=>[t.properties.id,t])))}_updateSelectedFeatures(){if(!this._featureIncomplete)return;const t=this._allBuildingsMap.get(this._curBuildingId);t&&(this._curBuildingFeature=t,this._featureIncomplete=!1)}_layerDisplayedBuildings(){if(this._allBuildingsMap.size)for(const t of this._allBuildingsMap.values()){if(!t.properties)continue;const{id:e,overlap:n}=t.properties;let r=!1;if(e===this._curBuildingId)this._hiddenBuildings.delete(e),this._lowerBuildings.delete(e),this._upperBuildings.add(e),n&&(r=!0);else{!this._upperBuildings.has(e)&&!this._lowerBuildings.has(e)&&!this._hiddenBuildings.has(e)&&(this._upperBuildings.add(e),n&&(r=!0))}r&&n.split(",").forEach((t=>{this._hiddenBuildings.has(t)||(this._upperBuildings.delete(t),this._lowerBuildings.add(t))}))}}_setDisplayedLevels(){this._handleBuildings(this._upperBuildings,this._upperLevels),this._handleBuildings(this._lowerBuildings,this._lowerLevels)}_filterTiles(){this._filterIndoorLayers([...this._upperLevels,...this._lowerLevels],this._commonLayers??[]),this._filterIndoorLayers([...this._upperLevels],this._upperLayers??[]),this._filterIndoorLayers([...this._lowerLevels],this._lowerLayers??[])}_filterIndoorLayers(t,e){if(!e.length)return;let n;for(const r of e){const e=r,i=e["source-layer"];if("mapxus_venue"===i||"mapxus_building"===i||!e.filter)continue;const{id:o,filter:s,type:a}=e;n=["all","mapxus_level"===i?["in","id",...t]:["in","ref:level",...t],s],"mapxus_place"===i&&"symbol"===a&&n.splice(2,0,["any",["all",["has","overlap"],["in","ref:building",...this._upperBuildings]],["!has","overlap"]]),this._map.setFilter(o,n)}}async _updateIndoorState(t,e){if(t){if(!t.properties)return void console.warn("Building feature properties is empty.",t);const{id:n,"ref:venue":r,level_ids:i,ordinals:o}=t.properties;if(this._curVenueId!==r){this._curVenueId=r;let t=this.getFeaturesById(r,{layerIds:["mapxus-venue-fill"]})[0]??null;if(!t)try{const e=(await L.searchByIds(r)).data.result.venues[0];t=(0,s.E)(e)}catch(t){throw new Error("Venue not found.",{cause:t})}this._curVenueFeature=t}this._curBuildingFeature=t,this._curBuildingId=n,this._history.addHistoryBuilding(n);const a=o.split(",");if(e){const n=a[(0,y.A)(i.split(","),(t=>t===e))];n||console.warn("Building has no corresponding ordinal.",t),this._ordinal=n??null}else{let e=this._history.getHistoryOrdinal(this._isVenueMode?this._history.getHistoryBuilding(r):n);(!e||e&&!a.includes(e))&&(e=this._getBuildingDefaultOrdinal(t)),this._ordinal=e}}else this._clear()}_updateFloorState(t){if(this._ordinal=t,this._floorName=null,this._floorId=null,t){const{code:t,id:e}=this._getBuildingFloorByOrdinal(this._curBuildingFeature,this._ordinal);if(this._floorName=t,this._floorId=e,!e)return;this._history.setHistoryOrdinal(this._curBuildingId,this._ordinal),this._isVenueMode&&this._history.setHistoryBuilding(this._curVenueId,this._curBuildingId)}}_resetSelectedBuildingLevel(){(this._isVenueMode?this._curVenueFeature?this._curVenueFeature.properties.building_ids.split(","):[]:[this._curBuildingId]).forEach((t=>{this._upperBuildings.delete(t),this._lowerBuildings.delete(t),this._hiddenBuildings.delete(t)})),this._upperBuildings.add(this._curBuildingId);const t=this._curBuildingFeature.properties.overlap;t&&t.split(",").forEach((t=>{this._upperBuildings.has(t)&&(this._upperBuildings.delete(t),this._lowerBuildings.add(t))}))}async _checkAndPanToBuilding(){this.getFeaturesById(this._curBuildingId,{layerIds:[x]})[0]||(this._fitBuildingBounds?this.fitBuildingBbox():await this.panToBuildingCenter())}_invisibleSelectedBuilding(){if(this._isVenueMode){if(!this._curVenueFeature)return;const{building_ids:t}=this._curVenueFeature.properties;t&&t.split(",").forEach((t=>{this._upperBuildings.delete(t),this._lowerBuildings.delete(t)}))}else this._curBuildingId&&(this._upperBuildings.delete(this._curBuildingId),this._lowerBuildings.delete(this._curBuildingId))}_clearTimers(){clearInterval(this._findBuildingIntervalId),this._findBuildingIntervalId=null,clearTimeout(this._findBuildingTimeoutId),this._findBuildingTimeoutId=null}_queryRenderedFeatures(t){const e=(t||[]).filter((t=>this._map.getLayer(t))),n=e.length?{layers:e}:void 0,r=this._map.getCanvas().getBoundingClientRect();return this._map.queryRenderedFeatures([[0,0],[r.width,r.height]],n)}}},5647:(t,e,n)=>{n.d(e,{A:()=>r});const r=(0,n(367).A)(Object.getPrototypeOf,Object)},5664:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(8182),i=0;const o=function(t){var e=++i;return(0,r.A)(t)+e}},5668:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},5706:(t,e,n)=>{n.d(e,{Q:()=>r});class r{static instance;_upperBuildings;_lowerBuildings;_hiddenBuildings;constructor(){this._upperBuildings=new Set,this._lowerBuildings=new Set,this._hiddenBuildings=new Set}static getInstance(){return r.instance||(r.instance=new r),r.instance}getUpperBuildings(){return this._upperBuildings}getLowerBuildings(){return this._lowerBuildings}getHiddenBuildings(){return this._hiddenBuildings}}},5707:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},5722:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(608),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;const s=(0,r.A)((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}))},5781:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(1275),i=n(5530),o=n(7809),s=n(4099),a=n(9109),c=n(9959);const l=function(t,e,n){var l=-1,u=i.A,d=t.length,h=!0,f=[],p=f;if(n)h=!1,u=o.A;else if(d>=200){var y=e?null:(0,a.A)(t);if(y)return(0,c.A)(y);h=!1,u=s.A,p=new r.A}else p=e?[]:f;t:for(;++l<d;){var g=t[l],m=e?e(g):g;if(g=n||0!==g?g:0,h&&m==m){for(var _=p.length;_--;)if(p[_]===m)continue t;e&&p.push(m),f.push(g)}else u(p,m,n)||(p!==f&&p.push(m),f.push(g))}return f}},5861:(t,e,n)=>{n.d(e,{A:()=>w});var r=n(2732),i=n(8335),o=n(180),s=n(9857),a=n(3631),c=n(9672),l=n(1121),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",y=(0,l.A)(r.A),g=(0,l.A)(i.A),m=(0,l.A)(o.A),_=(0,l.A)(s.A),b=(0,l.A)(a.A),v=c.A;(r.A&&v(new r.A(new ArrayBuffer(1)))!=p||i.A&&v(new i.A)!=u||o.A&&v(o.A.resolve())!=d||s.A&&v(new s.A)!=h||a.A&&v(new a.A)!=f)&&(v=function(t){var e=(0,c.A)(t),n="[object Object]"==e?t.constructor:void 0,r=n?(0,l.A)(n):"";if(r)switch(r){case y:return p;case g:return u;case m:return d;case _:return h;case b:return f}return e});const w=v},5917:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(5088),i=n(9846),o=n(1521),s=n(2509),a=n(549);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const l=c},5978:(t,e,n)=>{n.d(e,{A:()=>f});var r=n(7275),i=n(3967),o=n(7352),s=n(8683),a=n(4662),c=n(8262),l=n(3390),u=n(7110);const d=l.A.validators;class h{constructor(t){this.defaults=t||{},this.interceptors={request:new o.A,response:new o.A}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";try{t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}catch(t){}}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=(0,a.A)(this.defaults,e);const{transitional:n,paramsSerializer:i,headers:o}=e;void 0!==n&&l.A.assertOptions(n,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1),null!=i&&(r.A.isFunction(i)?e.paramsSerializer={serialize:i}:l.A.assertOptions(i,{encode:d.function,serialize:d.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),l.A.assertOptions(e,{baseUrl:d.spelling("baseURL"),withXsrfToken:d.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let c=o&&r.A.merge(o.common,o[e.method]);o&&r.A.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=u.A.concat(c,o);const h=[];let f=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(f=f&&t.synchronous,h.unshift(t.fulfilled,t.rejected))}));const p=[];let y;this.interceptors.response.forEach((function(t){p.push(t.fulfilled,t.rejected)}));let g,m=0;if(!f){const t=[s.A.bind(this),void 0];for(t.unshift.apply(t,h),t.push.apply(t,p),g=t.length,y=Promise.resolve(e);m<g;)y=y.then(t[m++],t[m++]);return y}g=h.length;let _=e;for(m=0;m<g;){const t=h[m++],e=h[m++];try{_=t(_)}catch(t){e.call(this,t);break}}try{y=s.A.call(this,_)}catch(t){return Promise.reject(t)}for(m=0,g=p.length;m<g;)y=y.then(p[m++],p[m++]);return y}getUri(t){t=(0,a.A)(this.defaults,t);const e=(0,c.A)(t.baseURL,t.url,t.allowAbsoluteUrls);return(0,i.A)(e,t.params,t.paramsSerializer)}}r.A.forEach(["delete","get","head","options"],(function(t){h.prototype[t]=function(e,n){return this.request((0,a.A)(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.A.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request((0,a.A)(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}h.prototype[t]=e(),h.prototype[t+"Form"]=e(!0)}));const f=h},5997:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},6013:(t,e,n)=>{n.d(e,{A:()=>d});var r=n(7275),i=n(4062),o=n(807),s=n(665),a=n(1076),c=n(3820),l=n(7887);const u={transitional:o.A,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,o=r.A.isObject(t);o&&r.A.isHTMLForm(t)&&(t=new FormData(t));if(r.A.isFormData(t))return i?JSON.stringify((0,l.A)(t)):t;if(r.A.isArrayBuffer(t)||r.A.isBuffer(t)||r.A.isStream(t)||r.A.isFile(t)||r.A.isBlob(t)||r.A.isReadableStream(t))return t;if(r.A.isArrayBufferView(t))return t.buffer;if(r.A.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return(0,a.A)(t,this.formSerializer).toString();if((c=r.A.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return(0,s.A)(c?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||i?(e.setContentType("application/json",!1),function(t,e,n){if(r.A.isString(t))try{return(e||JSON.parse)(t),r.A.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||u.transitional,n=e&&e.forcedJSONParsing,o="json"===this.responseType;if(r.A.isResponse(t)||r.A.isReadableStream(t))return t;if(t&&r.A.isString(t)&&(n&&!this.responseType||o)){const n=!(e&&e.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw i.A.from(t,i.A.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:c.A.classes.FormData,Blob:c.A.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};r.A.forEach(["delete","get","head","post","put","patch"],(t=>{u.headers[t]={}}));const d=u},6031:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},6034:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2141),i=n(8672),o=n(1470);const s=function(t,e){return(0,o.A)(t,(0,i.A)((0,r.A)(e)))}},6224:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){return t<e}},6242:(t,e,n)=>{n.d(e,{k:()=>a});var r=n(7007),i=n(5537),o=n(3574),s=n(3207);class a extends r.EventEmitter{_appId=null;_secret=null;isClosed=!1;_timeoutId;_isInitialized=!1;_initializationPromise;_tokenManager=s.t.getInstance();_from;constructor(t,e,n=o.en.Access){super(),this._from=n,this._appId=t,this._secret=e,this._initializationPromise=this._initToken()}async ready(){await this._initializationPromise}get appId(){return this._appId}get token(){if(!this._isInitialized)throw new Error("Token is not initialized yet. Use the 'ready' method to wait for initialization.");return this._tokenManager.getToken(this._appId)}close(){this.isClosed||(this._timeoutId&&clearTimeout(this._timeoutId),this._tokenManager.deleteToken(this._appId,this._from),this.emit("updated",{appId:this._appId,token:null}),Object.keys(this).forEach((t=>{"isClosed"!==t&&"_events"!==t&&delete this[t]})),this.isClosed=!0,this.emit("closed"),delete this._events,Object.freeze(this))}forceUpdateToken(){this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null),this._isInitialized=!1,this._initializationPromise=this._initToken()}async _initToken(){try{const t=await this._tokenManager.fetchToken(this._appId,this._secret);this._isInitialized=!0,this._tokenManager.updateToken({appId:this._appId,secret:this._secret,token:t,from:this._from});const e=(0,i.s)(t),n=1e3*(e.exp-e.iat-60);this._loopUpdateToken(n)}catch(t){throw this.emit("error",new Error("Failed to initialize token.",{cause:t})),t}}_loopUpdateToken(t){this.isClosed||(this._timeoutId=setTimeout((async()=>{try{const e=await this._tokenManager.fetchToken(this._appId,this._secret);this._tokenManager.updateToken({appId:this._appId,secret:this._secret,token:e,from:this._from}),this.emit("updated",{appId:this._appId,token:e}),this._loopUpdateToken(t)}catch(t){this.emit("error",new Error("Failed to update token.",{cause:t}))}}),t))}}},6263:(t,e,n)=>{n.d(e,{A:()=>d});var r=n(7275),i=n(3119),o=n(7013),s=n(817),a=n(4062);const c={http:i.A,xhr:o.A,fetch:s.A};r.A.forEach(c,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const l=t=>`- ${t}`,u=t=>r.A.isFunction(t)||null===t||!1===t,d={getAdapter:t=>{t=r.A.isArray(t)?t:[t];const{length:e}=t;let n,i;const o={};for(let r=0;r<e;r++){let e;if(n=t[r],i=n,!u(n)&&(i=c[(e=String(n)).toLowerCase()],void 0===i))throw new a.A(`Unknown adapter '${e}'`);if(i)break;o[e||"#"+r]=i}if(!i){const t=Object.entries(o).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));let n=e?t.length>1?"since :\n"+t.map(l).join("\n"):" "+l(t[0]):"as no adapter specified";throw new a.A("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i},adapters:c}},6294:(t,e,n)=>{n.d(e,{B:()=>r});class r{_indoor;_isEnabled=!0;constructor(t){this._indoor=t}enable(){this._isEnabled=!0,this._indoor.setAllowOutdoorSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowOutdoorSwitch(!1)}get isEnabled(){return this._isEnabled}}},6305:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(3820);const i=r.A.hasStandardBrowserEnv?(o=new URL(r.A.origin),s=r.A.navigator&&/(msie|trident)/i.test(r.A.navigator.userAgent),t=>(t=new URL(t,r.A.origin),o.protocol===t.protocol&&o.host===t.host&&(s||o.port===t.port))):()=>!0;var o,s},6318:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(7465),i=n(901);const o=function(t,e){for(var n=0,o=(e=(0,r.A)(e,t)).length;null!=t&&n<o;)t=t[(0,i.A)(e[n++])];return n&&n==o?t:void 0}},6358:(t,e,n)=>{var r,i;n.d(e,{L:()=>r,n:()=>i}),function(t){t.DEFAULT_NAME="DefaultName"}(r||(r={})),function(t){t.ABSOLUTE_DISTANCE="AbsoluteDistance",t.ACTUAL_DISTANCE="ActualDistance"}(i||(i={}))},6377:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.twistedEdwards=function(t){const e=function(t){const e=(0,r.validateBasic)(t);return(0,o.validateObject)(t,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...e})}(t),{Fp:n,n:d,prehash:h,hash:f,randomBytes:p,nByteLength:y,h:g}=e,m=c<<BigInt(8*y)-a,_=n.create,b=(0,i.Field)(e.n,e.nBitLength);if(!function(t,r){const i=n.sqr(t),o=n.sqr(r),s=n.add(n.mul(e.a,i),o),a=n.add(n.ONE,n.mul(e.d,n.mul(i,o)));return n.eql(s,a)}(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const v=e.uvRatio||((t,e)=>{try{return{isValid:!0,value:n.sqrt(t*n.inv(e))}}catch(t){return{isValid:!1,value:s}}}),w=e.adjustScalarBytes||(t=>t),A=e.domain||((t,e,n)=>{if((0,o.abool)("phflag",n),e.length||n)throw new Error("Contexts/pre-hash are not supported");return t});function E(t,e,n=!1){const r=n?a:s;(0,o.aInRange)("coordinate "+t,e,r,m)}function B(t){if(!(t instanceof I))throw new Error("ExtendedPoint expected")}const S=(0,o.memoized)(((t,e)=>{const{ex:r,ey:i,ez:o}=t,c=t.is0();null==e&&(e=c?l:n.inv(o));const u=_(r*e),d=_(i*e),h=_(o*e);if(c)return{x:s,y:a};if(h!==a)throw new Error("invZ was invalid");return{x:u,y:d}})),x=(0,o.memoized)((t=>{const{a:n,d:r}=e;if(t.is0())throw new Error("bad point: ZERO");const{ex:i,ey:o,ez:s,et:a}=t,c=_(i*i),l=_(o*o),u=_(s*s),d=_(u*u),h=_(c*n);if(_(u*_(h+l))!==_(d+_(r*_(c*l))))throw new Error("bad point: equation left != right (1)");if(_(i*o)!==_(s*a))throw new Error("bad point: equation left != right (2)");return!0}));class I{constructor(t,e,n,r){E("x",t),E("y",e),E("z",n,!0),E("t",r),this.ex=t,this.ey=e,this.ez=n,this.et=r,Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(t){if(t instanceof I)throw new Error("extended point not allowed");const{x:e,y:n}=t||{};return E("x",e),E("y",n),new I(e,n,a,_(e*n))}static normalizeZ(t){const e=(0,i.FpInvertBatch)(n,t.map((t=>t.ez)));return t.map(((t,n)=>t.toAffine(e[n]))).map(I.fromAffine)}static msm(t,e){return(0,r.pippenger)(I,b,t,e)}_setWindowSize(t){C.setWindowSize(this,t)}assertValidity(){x(this)}equals(t){B(t);const{ex:e,ey:n,ez:r}=this,{ex:i,ey:o,ez:s}=t,a=_(e*s),c=_(i*r),l=_(n*s),u=_(o*r);return a===c&&l===u}is0(){return this.equals(I.ZERO)}negate(){return new I(_(-this.ex),this.ey,this.ez,_(-this.et))}double(){const{a:t}=e,{ex:n,ey:r,ez:i}=this,o=_(n*n),s=_(r*r),a=_(c*_(i*i)),l=_(t*o),u=n+r,d=_(_(u*u)-o-s),h=l+s,f=h-a,p=l-s,y=_(d*f),g=_(h*p),m=_(d*p),b=_(f*h);return new I(y,g,b,m)}add(t){B(t);const{a:n,d:r}=e,{ex:i,ey:o,ez:s,et:a}=this,{ex:c,ey:l,ez:u,et:d}=t,h=_(i*c),f=_(o*l),p=_(a*r*d),y=_(s*u),g=_((i+o)*(c+l)-h-f),m=y-p,b=y+p,v=_(f-n*h),w=_(g*m),A=_(b*v),E=_(g*v),S=_(m*b);return new I(w,A,S,E)}subtract(t){return this.add(t.negate())}wNAF(t){return C.wNAFCached(this,t,I.normalizeZ)}multiply(t){const e=t;(0,o.aInRange)("scalar",e,a,d);const{p:n,f:r}=this.wNAF(e);return I.normalizeZ([n,r])[0]}multiplyUnsafe(t,e=I.ZERO){const n=t;return(0,o.aInRange)("scalar",n,s,d),n===s?O:this.is0()||n===a?this:C.wNAFCachedUnsafe(this,n,I.normalizeZ,e)}isSmallOrder(){return this.multiplyUnsafe(g).is0()}isTorsionFree(){return C.unsafeLadder(this,d).is0()}toAffine(t){return S(this,t)}clearCofactor(){const{h:t}=e;return t===a?this:this.multiplyUnsafe(t)}static fromHex(t,r=!1){const{d:i,a:c}=e,l=n.BYTES;t=(0,o.ensureBytes)("pointHex",t,l),(0,o.abool)("zip215",r);const u=t.slice(),d=t[l-1];u[l-1]=-129&d;const h=(0,o.bytesToNumberLE)(u),f=r?m:n.ORDER;(0,o.aInRange)("pointHex.y",h,s,f);const p=_(h*h),y=_(p-a),g=_(i*p-c);let{isValid:b,value:w}=v(y,g);if(!b)throw new Error("Point.fromHex: invalid y coordinate");const A=(w&a)===a,E=!!(128&d);if(!r&&w===s&&E)throw new Error("Point.fromHex: x=0 and x_0=1");return E!==A&&(w=_(-w)),I.fromAffine({x:w,y:h})}static fromPrivateKey(t){const{scalar:e}=R(t);return L.multiply(e)}toRawBytes(){const{x:t,y:e}=this.toAffine(),r=(0,o.numberToBytesLE)(e,n.BYTES);return r[r.length-1]|=t&a?128:0,r}toHex(){return(0,o.bytesToHex)(this.toRawBytes())}}I.BASE=new I(e.Gx,e.Gy,a,_(e.Gx*e.Gy)),I.ZERO=new I(s,a,a,s);const{BASE:L,ZERO:O}=I,C=(0,r.wNAF)(I,8*y);function k(t){return(0,i.mod)(t,d)}function T(t){return k((0,o.bytesToNumberLE)(t))}function R(t){const e=n.BYTES;t=(0,o.ensureBytes)("private key",t,e);const r=(0,o.ensureBytes)("hashed private key",f(t),2*e),i=w(r.slice(0,e));return{head:i,prefix:r.slice(e,2*e),scalar:T(i)}}function P(t){const{head:e,prefix:n,scalar:r}=R(t),i=L.multiply(r),o=i.toRawBytes();return{head:e,prefix:n,scalar:r,point:i,pointBytes:o}}function M(t=Uint8Array.of(),...e){const n=(0,o.concatBytes)(...e);return T(f(A(n,(0,o.ensureBytes)("context",t),!!h)))}const F=u;L._setWindowSize(8);return{CURVE:e,getPublicKey:function(t){return P(t).pointBytes},sign:function(t,e,r={}){t=(0,o.ensureBytes)("message",t),h&&(t=h(t));const{prefix:i,scalar:a,pointBytes:c}=P(e),l=M(r.context,i,t),u=L.multiply(l).toRawBytes(),f=k(l+M(r.context,u,c,t)*a);(0,o.aInRange)("signature.s",f,s,d);const p=(0,o.concatBytes)(u,(0,o.numberToBytesLE)(f,n.BYTES));return(0,o.ensureBytes)("result",p,2*n.BYTES)},verify:function(t,e,r,i=F){const{context:s,zip215:a}=i,c=n.BYTES;t=(0,o.ensureBytes)("signature",t,2*c),e=(0,o.ensureBytes)("message",e),r=(0,o.ensureBytes)("publicKey",r,c),void 0!==a&&(0,o.abool)("zip215",a),h&&(e=h(e));const l=(0,o.bytesToNumberLE)(t.slice(c,2*c));let u,d,f;try{u=I.fromHex(r,a),d=I.fromHex(t.slice(0,c),a),f=L.multiplyUnsafe(l)}catch(t){return!1}if(!a&&u.isSmallOrder())return!1;const p=M(s,d.toRawBytes(),u.toRawBytes(),e);return d.add(u.multiplyUnsafe(p)).subtract(f).clearCofactor().equals(I.ZERO)},ExtendedPoint:I,utils:{getExtendedPublicKey:P,randomPrivateKey:()=>p(n.BYTES),precompute:(t=8,e=I.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)}}};const r=n(2422),i=n(4967),o=n(1484),s=BigInt(0),a=BigInt(1),c=BigInt(2),l=BigInt(8),u={zip215:!0}},6474:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(1038),i=n(7500),o=n(7511),s=n(6586),a=n(9396),c=n(5997),l=n(901);const u=function(t,e){return(0,s.A)(t)&&(0,a.A)(e)?(0,c.A)((0,l.A)(t),e):function(n){var s=(0,i.A)(n,t);return void 0===s&&s===e?(0,o.A)(n,t):(0,r.A)(e,s,3)}}},6501:(t,e,n)=>{n.d(e,{A:()=>r});const r="undefined"!=typeof Blob?Blob:null},6527:(t,e)=>{function n(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function r(t){if("boolean"!=typeof t)throw new Error(`boolean expected, not ${t}`)}function i(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function o(t,...e){if(!n(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function s(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}Object.defineProperty(e,"__esModule",{value:!0}),e.wrapCipher=e.Hash=e.nextTick=e.isLE=void 0,e.isBytes=n,e.abool=r,e.anumber=i,e.abytes=o,e.ahash=function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");i(t.outputLen),i(t.blockLen)},e.aexists=function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(t,e){o(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)},e.u8=function(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},e.u32=function(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))},e.clean=function(...t){for(let e=0;e<t.length;e++)t[e].fill(0)},e.createView=s,e.bytesToHex=l,e.hexToBytes=h,e.hexToNumber=f,e.bytesToNumberBE=function(t){return f(l(t))},e.numberToBytesBE=function(t,e){return h(t.toString(16).padStart(2*e,"0"))},e.utf8ToBytes=p,e.bytesToUtf8=function(t){return(new TextDecoder).decode(t)},e.toBytes=function(t){if("string"==typeof t)t=p(t);else{if(!n(t))throw new Error("Uint8Array expected, got "+typeof t);t=_(t)}return t},e.overlapBytes=y,e.complexOverlapBytes=function(t,e){if(y(t,e)&&t.byteOffset<e.byteOffset)throw new Error("complex overlap of input and output is not supported")},e.concatBytes=function(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];o(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const i=t[e];n.set(i,r),r+=i.length}return n},e.checkOpts=function(t,e){if(null==e||"object"!=typeof e)throw new Error("options must be defined");return Object.assign(t,e)},e.equalBytes=function(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r<t.length;r++)n|=t[r]^e[r];return 0===n},e.getOutput=function(t,e,n=!0){if(void 0===e)return new Uint8Array(t);if(e.length!==t)throw new Error("invalid output length, expected "+t+", got: "+e.length);if(n&&!m(e))throw new Error("invalid output, must be aligned");return e},e.setBigUint64=g,e.u64Lengths=function(t,e,n){r(n);const i=new Uint8Array(16),o=s(i);return g(o,0,BigInt(e),n),g(o,8,BigInt(t),n),i},e.isAligned32=m,e.copyBytes=_,e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];const a=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),c=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));function l(t){if(o(t),a)return t.toHex();let e="";for(let n=0;n<t.length;n++)e+=c[t[n]];return e}const u={_0:48,_9:57,A:65,F:70,a:97,f:102};function d(t){return t>=u._0&&t<=u._9?t-u._0:t>=u.A&&t<=u.F?t-(u.A-10):t>=u.a&&t<=u.f?t-(u.a-10):void 0}function h(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(a)return Uint8Array.fromHex(t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,i=0;e<n;e++,i+=2){const n=d(t.charCodeAt(i)),o=d(t.charCodeAt(i+1));if(void 0===n||void 0===o){const e=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+i)}r[e]=16*n+o}return r}function f(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return BigInt(""===t?"0":"0x"+t)}function p(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}function y(t,e){return t.buffer===e.buffer&&t.byteOffset<e.byteOffset+e.byteLength&&e.byteOffset<t.byteOffset+t.byteLength}e.nextTick=async()=>{};e.Hash=class{};function g(t,e,n,r){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,l=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+l,a,r)}function m(t){return t.byteOffset%4==0}function _(t){return Uint8Array.from(t)}e.wrapCipher=(t,n)=>{function r(r,...i){if(o(r),!e.isLE)throw new Error("Non little-endian hardware is not yet supported");if(void 0!==t.nonceLength){const e=i[0];if(!e)throw new Error("nonce / iv required");t.varSizeNonce?o(e):o(e,t.nonceLength)}const s=t.tagLength;s&&void 0!==i[1]&&o(i[1]);const a=n(r,...i),c=(t,e)=>{if(void 0!==e){if(2!==t)throw new Error("cipher output not supported");o(e)}};let l=!1;return{encrypt(t,e){if(l)throw new Error("cannot encrypt() twice with same key + nonce");return l=!0,o(t),c(a.encrypt.length,e),a.encrypt(t,e)},decrypt(t,e){if(o(t),s&&t.length<s)throw new Error("invalid ciphertext length: smaller than tagLength="+s);return c(a.decrypt.length,e),a.decrypt(t,e)}}}return Object.assign(r,t),r}},6568:(t,e,n)=>{n.d(e,{Ay:()=>It});var r=n(1635),i="4.6.2";function o(t,e){return new Promise((function(n){return setTimeout(n,t,e)}))}function s(t){return!!t&&"function"==typeof t.then}function a(t,e){try{var n=t();s(n)?n.then((function(t){return e(!0,t)}),(function(t){return e(!1,t)})):e(!0,n)}catch(t){e(!1,t)}}function c(t,e,n){return void 0===n&&(n=16),(0,r.sH)(this,void 0,void 0,(function(){var i,o,s,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:i=Array(t.length),o=Date.now(),s=0,r.label=1;case 1:return s<t.length?(i[s]=e(t[s],s),(a=Date.now())>=o+n?(o=a,[4,new Promise((function(t){var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(null)}))]):[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return++s,[3,1];case 4:return[2,i]}}))}))}function l(t){return t.then(void 0,(function(){})),t}function u(t){return parseInt(t)}function d(t){return parseFloat(t)}function h(t,e){return"number"==typeof t&&isNaN(t)?e:t}function f(t){return t.reduce((function(t,e){return t+(e?1:0)}),0)}function p(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var n=1/e;return Math.round(t*n)/n}function y(t,e){var n=t[0]>>>16,r=65535&t[0],i=t[1]>>>16,o=65535&t[1],s=e[0]>>>16,a=65535&e[0],c=e[1]>>>16,l=0,u=0,d=0,h=0;d+=(h+=o+(65535&e[1]))>>>16,h&=65535,u+=(d+=i+c)>>>16,d&=65535,l+=(u+=r+a)>>>16,u&=65535,l+=n+s,l&=65535,t[0]=l<<16|u,t[1]=d<<16|h}function g(t,e){var n=t[0]>>>16,r=65535&t[0],i=t[1]>>>16,o=65535&t[1],s=e[0]>>>16,a=65535&e[0],c=e[1]>>>16,l=65535&e[1],u=0,d=0,h=0,f=0;h+=(f+=o*l)>>>16,f&=65535,d+=(h+=i*l)>>>16,h&=65535,d+=(h+=o*c)>>>16,h&=65535,u+=(d+=r*l)>>>16,d&=65535,u+=(d+=i*c)>>>16,d&=65535,u+=(d+=o*a)>>>16,d&=65535,u+=n*l+r*c+i*a+o*s,u&=65535,t[0]=u<<16|d,t[1]=h<<16|f}function m(t,e){var n=t[0];32===(e%=64)?(t[0]=t[1],t[1]=n):e<32?(t[0]=n<<e|t[1]>>>32-e,t[1]=t[1]<<e|n>>>32-e):(e-=32,t[0]=t[1]<<e|n>>>32-e,t[1]=n<<e|t[1]>>>32-e)}function _(t,e){0!==(e%=64)&&(e<32?(t[0]=t[1]>>>32-e,t[1]=t[1]<<e):(t[0]=t[1]<<e-32,t[1]=0))}function b(t,e){t[0]^=e[0],t[1]^=e[1]}var v=[4283543511,3981806797],w=[3301882366,444984403];function A(t){var e=[0,t[0]>>>1];b(t,e),g(t,v),e[1]=t[0]>>>1,b(t,e),g(t,w),e[1]=t[0]>>>1,b(t,e)}var E=[2277735313,289559509],B=[1291169091,658871167],S=[0,5],x=[0,1390208809],I=[0,944331445];function L(t,e){var n=function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>127)return(new TextEncoder).encode(t);e[n]=r}return e}(t);e=e||0;var r,i=[0,n.length],o=i[1]%16,s=i[1]-o,a=[0,e],c=[0,e],l=[0,0],u=[0,0];for(r=0;r<s;r+=16)l[0]=n[r+4]|n[r+5]<<8|n[r+6]<<16|n[r+7]<<24,l[1]=n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24,u[0]=n[r+12]|n[r+13]<<8|n[r+14]<<16|n[r+15]<<24,u[1]=n[r+8]|n[r+9]<<8|n[r+10]<<16|n[r+11]<<24,g(l,E),m(l,31),g(l,B),b(a,l),m(a,27),y(a,c),g(a,S),y(a,x),g(u,B),m(u,33),g(u,E),b(c,u),m(c,31),y(c,a),g(c,S),y(c,I);l[0]=0,l[1]=0,u[0]=0,u[1]=0;var d=[0,0];switch(o){case 15:d[1]=n[r+14],_(d,48),b(u,d);case 14:d[1]=n[r+13],_(d,40),b(u,d);case 13:d[1]=n[r+12],_(d,32),b(u,d);case 12:d[1]=n[r+11],_(d,24),b(u,d);case 11:d[1]=n[r+10],_(d,16),b(u,d);case 10:d[1]=n[r+9],_(d,8),b(u,d);case 9:d[1]=n[r+8],b(u,d),g(u,B),m(u,33),g(u,E),b(c,u);case 8:d[1]=n[r+7],_(d,56),b(l,d);case 7:d[1]=n[r+6],_(d,48),b(l,d);case 6:d[1]=n[r+5],_(d,40),b(l,d);case 5:d[1]=n[r+4],_(d,32),b(l,d);case 4:d[1]=n[r+3],_(d,24),b(l,d);case 3:d[1]=n[r+2],_(d,16),b(l,d);case 2:d[1]=n[r+1],_(d,8),b(l,d);case 1:d[1]=n[r],b(l,d),g(l,E),m(l,31),g(l,B),b(a,l)}return b(a,i),b(c,i),y(a,c),y(c,a),A(a),A(c),y(a,c),y(c,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)}function O(t){return"function"!=typeof t}function C(t,e,n,i){var o=Object.keys(t).filter((function(t){return!function(t,e){for(var n=0,r=t.length;n<r;++n)if(t[n]===e)return!0;return!1}(n,t)})),s=l(c(o,(function(n){return function(t,e){var n=l(new Promise((function(n){var r=Date.now();a(t.bind(null,e),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=Date.now()-r;if(!t[0])return n((function(){return{error:t[1],duration:i}}));var o=t[1];if(O(o))return n((function(){return{value:o,duration:i}}));n((function(){return new Promise((function(t){var e=Date.now();a(o,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=i+Date.now()-e;if(!n[0])return t({error:n[1],duration:o});t({value:n[1],duration:o})}))}))}))}))})));return function(){return n.then((function(t){return t()}))}}(t[n],e)}),i));return function(){return(0,r.sH)(this,void 0,void 0,(function(){var t,e,n,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,s];case 1:return[4,c(r.sent(),(function(t){return l(t())}),i)];case 2:return t=r.sent(),[4,Promise.all(t)];case 3:for(e=r.sent(),n={},a=0;a<o.length;++a)n[o[a]]=e[a];return[2,n]}}))}))}}function k(){var t=window,e=navigator;return f(["MSCSSMatrix"in t,"msSetImmediate"in t,"msIndexedDB"in t,"msMaxTouchPoints"in e,"msPointerEnabled"in e])>=4}function T(){var t=window,e=navigator;return f(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===(e.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function R(){var t=window;return f(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===navigator.vendor.indexOf("Apple"),"RGBColor"in t,"WebKitMediaKeys"in t])>=4}function P(){var t=window,e=t.HTMLElement,n=t.Document;return f(["safari"in t,!("ongestureend"in t),!("TouchEvent"in t),!("orientation"in t),e&&!("autocapitalize"in e.prototype),n&&"pointerLockElement"in n.prototype])>=4}function M(){var t,e=window;return t=e.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(t))&&"[object WebPageNamespace]"===String(e.browser)}function F(){var t,e,n=window;return f(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function H(){var t=window,e=navigator,n=t.CSS,r=t.HTMLButtonElement;return f([!("getStorageUpdates"in e),r&&"popover"in r.prototype,"CSSCounterStyleRule"in t,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function j(){var t=document;return(t.exitFullscreen||t.msExitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen).call(t)}function N(){var t=T(),e=F(),n=window,r=navigator,i="connection";return t?f([!("SharedWorker"in n),r[i]&&"ontypechange"in r[i],!("sinkId"in new Audio)])>=2:!!e&&f(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2}function U(t){var e=new Error(t);return e.name=t,e}function V(t,e,n){var i,s,a;return void 0===n&&(n=50),(0,r.sH)(this,void 0,void 0,(function(){var c,l;return(0,r.YH)(this,(function(r){switch(r.label){case 0:c=document,r.label=1;case 1:return c.body?[3,3]:[4,o(n)];case 2:return r.sent(),[3,1];case 3:l=c.createElement("iframe"),r.label=4;case 4:return r.trys.push([4,,10,11]),[4,new Promise((function(t,n){var r=!1,i=function(){r=!0,t()};l.onload=i,l.onerror=function(t){r=!0,n(t)};var o=l.style;o.setProperty("display","block","important"),o.position="absolute",o.top="0",o.left="0",o.visibility="hidden",e&&"srcdoc"in l?l.srcdoc=e:l.src="about:blank",c.body.appendChild(l);var s=function(){var t,e;r||("complete"===(null===(e=null===(t=l.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)?i():setTimeout(s,10))};s()}))];case 5:r.sent(),r.label=6;case 6:return(null===(s=null===(i=l.contentWindow)||void 0===i?void 0:i.document)||void 0===s?void 0:s.body)?[3,8]:[4,o(n)];case 7:return r.sent(),[3,6];case 8:return[4,t(l,l.contentWindow)];case 9:return[2,r.sent()];case 10:return null===(a=l.parentNode)||void 0===a||a.removeChild(l),[7];case 11:return[2]}}))}))}function D(t){for(var e=function(t){for(var e,n,r="Unexpected syntax '".concat(t,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(t),o=i[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(t,e){s[t]=s[t]||[],s[t].push(e)};;){var l=a.exec(i[2]);if(!l)break;var u=l[0];switch(u[0]){case".":c("class",u.slice(1));break;case"#":c("id",u.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(!d)throw new Error(r);c(d[1],null!==(n=null!==(e=d[4])&&void 0!==e?e:d[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[o,s]}(t),n=e[0],r=e[1],i=document.createElement(null!=n?n:"div"),o=0,s=Object.keys(r);o<s.length;o++){var a=s[o],c=r[a].join(" ");"style"===a?$(i.style,c):i.setAttribute(a,c)}return i}function $(t,e){for(var n=0,r=e.split(";");n<r.length;n++){var i=r[n],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(i);if(o){var s=o[1],a=o[2],c=o[4];t.setProperty(s,a,c||"")}}}var z=["monospace","sans-serif","serif"],G=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function q(t){return t.toDataURL()}var W,Z;function K(){var t=this;return function(){if(void 0===Z){var t=function(){var e=Y();X(e)?Z=setTimeout(t,2500):(W=e,Z=void 0)};t()}}(),function(){return(0,r.sH)(t,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(e){switch(e.label){case 0:return X(t=Y())?W?[2,(0,r.fX)([],W,!0)]:(n=document).fullscreenElement||n.msFullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement?[4,j()]:[3,2]:[3,2];case 1:e.sent(),t=Y(),e.label=2;case 2:return X(t)||(W=t),[2,t]}var n}))}))}}function Y(){var t=screen;return[h(d(t.availTop),null),h(d(t.width)-d(t.availWidth)-h(d(t.availLeft),0),null),h(d(t.height)-d(t.availHeight)-h(d(t.availTop),0),null),h(d(t.availLeft),null)]}function X(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function J(t){var e;return(0,r.sH)(this,void 0,void 0,(function(){var n,i,s,a,c,l,u;return(0,r.YH)(this,(function(r){switch(r.label){case 0:for(n=document,i=n.createElement("div"),s=new Array(t.length),a={},Q(i),u=0;u<t.length;++u)"DIALOG"===(c=D(t[u])).tagName&&c.show(),Q(l=n.createElement("div")),l.appendChild(c),i.appendChild(l),s[u]=c;r.label=1;case 1:return n.body?[3,3]:[4,o(50)];case 2:return r.sent(),[3,1];case 3:n.body.appendChild(i);try{for(u=0;u<t.length;++u)s[u].offsetParent||(a[t[u]]=!0)}finally{null===(e=i.parentNode)||void 0===e||e.removeChild(i)}return[2,a]}}))}))}function Q(t){t.style.setProperty("visibility","hidden","important"),t.style.setProperty("display","block","important")}function tt(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function et(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function nt(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function rt(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function it(t){return matchMedia("(prefers-reduced-transparency: ".concat(t,")")).matches}function ot(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var st=Math,at=function(){return 0};var ct={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var lt=function(){for(var t=window;;){var e=t.parent;if(!e||e===t)return!1;try{if(e.location.origin!==t.location.origin)return!0}catch(t){if(t instanceof Error&&"SecurityError"===t.name)return!0;throw t}t=e}};var ut=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),dt=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),ht=["FRAGMENT_SHADER","VERTEX_SHADER"],ft=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],pt="WEBGL_debug_renderer_info";function yt(t){if(t.webgl)return t.webgl.context;var e,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",(function(){return e=void 0}));for(var r=0,i=["webgl","experimental-webgl"];r<i.length;r++){var o=i[r];try{e=n.getContext(o)}catch(t){}if(e)break}return t.webgl={context:e},e}function gt(t,e,n){var r=t.getShaderPrecisionFormat(t[e],t[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function mt(t){return Object.keys(t.__proto__).filter(_t)}function _t(t){return"string"==typeof t&&!t.match(/[^A-Z0-9_x]/)}function bt(){return F()}function vt(t){return"function"==typeof t.getParameter}var wt={fonts:function(){var t=this;return V((function(e,n){var i=n.document;return(0,r.sH)(t,void 0,void 0,(function(){var t,e,n,o,s,a,c,l,u,d,h;return(0,r.YH)(this,(function(r){for((t=i.body).style.fontSize="48px",(e=i.createElement("div")).style.setProperty("visibility","hidden","important"),n={},o={},s=function(t){var n=i.createElement("span"),r=n.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=t,n.textContent="mmMwWLliI0O&1",e.appendChild(n),n},a=function(t,e){return s("'".concat(t,"',").concat(e))},c=function(){for(var t={},e=function(e){t[e]=z.map((function(t){return a(e,t)}))},n=0,r=G;n<r.length;n++){e(r[n])}return t},l=function(t){return z.some((function(e,r){return t[r].offsetWidth!==n[e]||t[r].offsetHeight!==o[e]}))},u=function(){return z.map(s)}(),d=c(),t.appendChild(e),h=0;h<z.length;h++)n[z[h]]=u[h].offsetWidth,o[z[h]]=u[h].offsetHeight;return[2,G.filter((function(t){return l(d[t])}))]}))}))}))},domBlockers:function(t){var e=(void 0===t?{}:t).debug;return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i,o,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return R()||N()?(a=atob,t={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',a("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",a("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",a("LnNwb25zb3JpdA=="),".ylamainos",a("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",a("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",a("LmhlYWRlci1ibG9ja2VkLWFk"),a("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",a("I2FkXzMwMFgyNTA="),a("I2Jhbm5lcmZsb2F0MjI="),a("I2NhbXBhaWduLWJhbm5lcg=="),a("I0FkLUNvbnRlbnQ=")],adGuardChinese:[a("LlppX2FkX2FfSA=="),a("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",a("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),a("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",a("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",a("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",a("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),a("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),a("LmFkZ29vZ2xl"),a("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[a("YW1wLWF1dG8tYWRz"),a("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",a("I2FkX2ludmlld19hcmVh")],adGuardRussian:[a("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),a("LnJlY2xhbWE="),'div[id^="smi2adblock"]',a("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[a("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),a("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",a("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),a("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),a("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",a("I3Jla2xhbWk="),a("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),a("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),a("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[a("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",a("LndpZGdldF9wb19hZHNfd2lkZ2V0"),a("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",a("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[a("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),a("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",a("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",a("I3Jla2xhbW5pLWJveA=="),a("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",a("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[a("I2FkdmVydGVudGll"),a("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",a("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",a("LnNwb25zb3JsaW5rZ3J1ZW4="),a("I3dlcmJ1bmdza3k="),a("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),a("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[a("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",a("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[a("LnJla2xhbW9zX3RhcnBhcw=="),a("LnJla2xhbW9zX251b3JvZG9z"),a("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),a("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),a("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[a("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[a("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),a("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",a("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[a("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),a("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),a("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",a("LmFkX19tYWlu"),a("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[a("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[a("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),a("I2xpdmVyZUFkV3JhcHBlcg=="),a("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),a("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[a("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",a("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),a("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),a("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[a("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),a("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),a("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",a("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),a("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),a("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),a("ZGl2I3NrYXBpZWNfYWQ=")],ro:[a("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),a("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[a("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),a("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),a("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",a("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),a("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",a("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},n=Object.keys(t),[4,J((s=[]).concat.apply(s,n.map((function(e){return t[e]}))))]):[2,void 0];case 1:return i=r.sent(),e&&function(t,e){for(var n="DOM blockers debug:\n```",r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n+="\n".concat(o,":");for(var s=0,a=t[o];s<a.length;s++){var c=a[s];n+="\n ".concat(e[c]?"🚫":"➡️"," ").concat(c)}}console.log("".concat(n,"\n```"))}(t,i),(o=n.filter((function(e){var n=t[e];return f(n.map((function(t){return i[t]})))>.6*n.length}))).sort(),[2,o]}var a}))}))},fontPreferences:function(){return function(t,e){void 0===e&&(e=4e3);return V((function(n,i){var o=i.document,s=o.body,a=s.style;a.width="".concat(e,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",T()?s.style.zoom="".concat(1/i.devicePixelRatio):R()&&(s.style.zoom="reset");var c=o.createElement("div");return c.textContent=(0,r.fX)([],Array(e/20|0),!0).map((function(){return"word"})).join(" "),s.appendChild(c),t(o,s)}),'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}((function(t,e){for(var n={},r={},i=0,o=Object.keys(ct);i<o.length;i++){var s=o[i],a=ct[s],c=a[0],l=void 0===c?{}:c,u=a[1],d=void 0===u?"mmMwWLliI0fiflO&1":u,h=t.createElement("span");h.textContent=d,h.style.whiteSpace="nowrap";for(var f=0,p=Object.keys(l);f<p.length;f++){var y=p[f],g=l[y];void 0!==g&&(h.style[y]=g)}n[s]=h,e.append(t.createElement("br"),h)}for(var m=0,_=Object.keys(ct);m<_.length;m++){r[s=_[m]]=n[s].getBoundingClientRect().width}return r}))},audio:function(){return R()&&H()&&M()||T()&&(t=navigator,e=window,n=Audio.prototype,r=e.visualViewport,f(["srLatency"in n,"srChannelCount"in n,"devicePosture"in t,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3)&&function(){var t=window,e=t.URLPattern;return f(["union"in Set.prototype,"Iterator"in t,e&&"hasRegExpGroups"in e.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()?-4:function(){var t=window,e=t.OfflineAudioContext||t.webkitOfflineAudioContext;if(!e)return-2;if(R()&&!P()&&!function(){var t=window;return f(["DOMRectList"in t,"RTCPeerConnectionIceEvent"in t,"SVGGeometryElement"in t,"ontransitioncancel"in t])>=3}())return-1;var n=4500,r=new e(1,5e3,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=r.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(r.destination),i.start(0);var a=function(t){var e=3,n=500,r=500,i=5e3,o=function(){},a=new Promise((function(a,c){var u=!1,d=0,h=0;t.oncomplete=function(t){return a(t.renderedBuffer)};var f=function(){setTimeout((function(){return c(U("timeout"))}),Math.min(r,h+i-Date.now()))},p=function(){try{var r=t.startRendering();switch(s(r)&&l(r),t.state){case"running":h=Date.now(),u&&f();break;case"suspended":document.hidden||d++,u&&d>=e?c(U("suspended")):setTimeout(p,n)}}catch(t){c(t)}};p(),o=function(){u||(u=!0,h>0&&f())}}));return[a,o]}(r),c=a[0],u=a[1],d=l(c.then((function(t){return function(t){for(var e=0,n=0;n<t.length;++n)e+=Math.abs(t[n]);return e}(t.getChannelData(0).subarray(n))}),(function(t){if("timeout"===t.name||"suspended"===t.name)return-3;throw t})));return function(){return u(),d}}();var t,e,n,r},screenFrame:function(){var t=this;if(R()&&H()&&M())return function(){return Promise.resolve(void 0)};var e=K();return function(){return(0,r.sH)(t,void 0,void 0,(function(){var t,n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,e()];case 1:return t=r.sent(),[2,[(n=function(t){return null===t?null:p(t,10)})(t[0]),n(t[1]),n(t[2]),n(t[3])]]}}))}))}},canvas:function(){return function(t){var e,n,r,i=!1,o=function(){var t=document.createElement("canvas");return t.width=1,t.height=1,[t,t.getContext("2d")]}(),s=o[0],a=o[1];!function(t,e){return!(!e||!t.toDataURL)}(s,a)?n=r="unsupported":(i=function(t){return t.rect(0,0,10,10),t.rect(2,2,6,6),!t.isPointInPath(5,5,"evenodd")}(a),t?n=r="skipped":(e=function(t,e){!function(t,e){t.width=240,t.height=60,e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(100,1,62,20),e.fillStyle="#069",e.font='11pt "Times New Roman"';var n="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));e.fillText(n,2,15),e.fillStyle="rgba(102, 204, 0, 0.2)",e.font="18pt Arial",e.fillText(n,4,45)}(t,e);var n=q(t),r=q(t);if(n!==r)return["unstable","unstable"];!function(t,e){t.width=122,t.height=110,e.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var i=r[n],o=i[0],s=i[1],a=i[2];e.fillStyle=o,e.beginPath(),e.arc(s,a,40,0,2*Math.PI,!0),e.closePath(),e.fill()}e.fillStyle="#f9c",e.arc(60,60,60,0,2*Math.PI,!0),e.arc(60,60,20,0,2*Math.PI,!0),e.fill("evenodd")}(t,e);var i=q(t);return[i,n]}(s,a),n=e[0],r=e[1]));return{winding:i,geometry:n,text:r}}(R()&&H()&&M())},osCpu:function(){return navigator.oscpu},languages:function(){var t,e=navigator,n=[],r=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(void 0!==r&&n.push([r]),Array.isArray(e.languages))T()&&f([!("MediaSettingsRange"in(t=window)),"RTCEncodedAudioFrame"in t,""+t.Intl=="[object Intl]",""+t.Reflect=="[object Reflect]"])>=3||n.push(e.languages);else if("string"==typeof e.languages){var i=e.languages;i&&n.push(i.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return h(d(navigator.deviceMemory),void 0)},screenResolution:function(){var t,e,n;if(!(R()&&H()&&M()))return t=screen,(n=[(e=function(t){return h(u(t),null)})(t.width),e(t.height)]).sort().reverse(),n},hardwareConcurrency:function(){return h(u(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var n=(new e).resolvedOptions().timeZone;if(n)return n}var r,i=(r=(new Date).getFullYear(),-Math.max(d(new Date(r,0,1).getTimezoneOffset()),d(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(i>=0?"+":"").concat(i)},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){var t,e;if(!(k()||(t=window,e=navigator,f(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!k())))try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&R()&&!P()?function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return f(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPad":"iPhone":t},plugins:function(){var t=navigator.plugins;if(t){for(var e=[],n=0;n<t.length;++n){var r=t[n];if(r){for(var i=[],o=0;o<r.length;++o){var s=r[o];i.push({type:s.type,suffixes:s.suffixes})}e.push({name:r.name,description:r.description,mimeTypes:i})}}return e}},touchSupport:function(){var t,e=navigator,n=0;void 0!==e.maxTouchPoints?n=u(e.maxTouchPoints):void 0!==e.msMaxTouchPoints&&(n=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),t=!0}catch(e){t=!1}return{maxTouchPoints:n,touchEvent:t,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var t=[],e=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];e<n.length;e++){var r=n[e],i=window[r];i&&"object"==typeof i&&t.push(r)}return t.sort()},cookiesEnabled:function(){var t=document;try{t.cookie="cookietest=1; SameSite=Strict;";var e=-1!==t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(t){return!1}},colorGamut:function(){for(var t=0,e=["rec2020","p3","srgb"];t<e.length;t++){var n=e[t];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}},invertedColors:function(){return!!tt("inverted")||!tt("none")&&void 0},forcedColors:function(){return!!et("active")||!et("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var t=0;t<=100;++t)if(matchMedia("(max-monochrome: ".concat(t,")")).matches)return t;throw new Error("Too high value")}},contrast:function(){return nt("no-preference")?0:nt("high")||nt("more")?1:nt("low")||nt("less")?-1:nt("forced")?10:void 0},reducedMotion:function(){return!!rt("reduce")||!rt("no-preference")&&void 0},reducedTransparency:function(){return!!it("reduce")||!it("no-preference")&&void 0},hdr:function(){return!!ot("high")||!ot("standard")&&void 0},math:function(){var t,e=st.acos||at,n=st.acosh||at,r=st.asin||at,i=st.asinh||at,o=st.atanh||at,s=st.atan||at,a=st.sin||at,c=st.sinh||at,l=st.cos||at,u=st.cosh||at,d=st.tan||at,h=st.tanh||at,f=st.exp||at,p=st.expm1||at,y=st.log1p||at;return{acos:e(.12312423423423424),acosh:n(1e308),acoshPf:(t=1e154,st.log(t+st.sqrt(t*t-1))),asin:r(.12312423423423424),asinh:i(1),asinhPf:function(t){return st.log(t+st.sqrt(t*t+1))}(1),atanh:o(.5),atanhPf:function(t){return st.log((1+t)/(1-t))/2}(.5),atan:s(.5),sin:a(-1e300),sinh:c(1),sinhPf:function(t){return st.exp(t)-1/st.exp(t)/2}(1),cos:l(10.000000000123),cosh:u(1),coshPf:function(t){return(st.exp(t)+1/st.exp(t))/2}(1),tan:d(-1e300),tanh:h(1),tanhPf:function(t){return(st.exp(2*t)-1)/(st.exp(2*t)+1)}(1),exp:f(1),expm1:p(1),expm1Pf:function(t){return st.exp(t)-1}(1),log1p:y(10),log1pPf:function(t){return st.log(1+t)}(10),powPI:function(t){return st.pow(st.PI,t)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var t=new Float32Array(1),e=new Uint8Array(t.buffer);return t[0]=1/0,t[0]=t[0]-t[0],e[3]},applePay:function(){var t=window.ApplePaySession;if("function"!=typeof(null==t?void 0:t.canMakePayments))return-1;if(lt())return-3;try{return t.canMakePayments()?1:0}catch(t){return function(t){if(t instanceof Error&&"InvalidAccessError"===t.name&&/\bfrom\b.*\binsecure\b/i.test(t.message))return-2;throw t}(t)}},privateClickMeasurement:function(){var t,e=document.createElement("a"),n=null!==(t=e.attributionSourceId)&&void 0!==t?t:e.attributionsourceid;return void 0===n?void 0:String(n)},audioBaseLatency:function(){if(!(N()||R()))return-2;if(!window.AudioContext)return-1;var t=(new AudioContext).baseLatency;return null==t?-1:isFinite(t)?t:-3},dateTimeLocale:function(){if(!window.Intl)return-1;var t=window.Intl.DateTimeFormat;if(!t)return-2;var e=t().resolvedOptions().locale;return e||""===e?e:-3},webGlBasics:function(t){var e,n,r,i,o,s,a=yt(t.cache);if(!a)return-1;if(!vt(a))return-2;var c=bt()?null:a.getExtension(pt);return{version:(null===(e=a.getParameter(a.VERSION))||void 0===e?void 0:e.toString())||"",vendor:(null===(n=a.getParameter(a.VENDOR))||void 0===n?void 0:n.toString())||"",vendorUnmasked:c?null===(r=a.getParameter(c.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(i=a.getParameter(a.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:c?null===(o=a.getParameter(c.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(s=a.getParameter(a.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||""}},webGlExtensions:function(t){var e=yt(t.cache);if(!e)return-1;if(!vt(e))return-2;var n=e.getSupportedExtensions(),r=e.getContextAttributes(),i=[],o=[],s=[],a=[],c=[];if(r)for(var l=0,u=Object.keys(r);l<u.length;l++){var d=u[l];o.push("".concat(d,"=").concat(r[d]))}for(var h=0,f=mt(e);h<f.length;h++){var p=e[w=f[h]];s.push("".concat(w,"=").concat(p).concat(ut.has(p)?"=".concat(e.getParameter(p)):""))}if(n)for(var y=0,g=n;y<g.length;y++){var m=g[y];if(!(m===pt&&bt()||"WEBGL_polygon_mode"===m&&(T()||R()))){var _=e.getExtension(m);if(_)for(var b=0,v=mt(_);b<v.length;b++){var w;p=_[w=v[b]];a.push("".concat(w,"=").concat(p).concat(dt.has(p)?"=".concat(e.getParameter(p)):""))}else i.push(m)}}for(var A=0,E=ht;A<E.length;A++)for(var B=E[A],S=0,x=ft;S<x.length;S++){var I=x[S],L=gt(e,B,I);c.push("".concat(B,".").concat(I,"=").concat(L.join(",")))}return a.sort(),s.sort(),{contextAttributes:o,parameters:s,shaderPrecisions:c,extensions:n,extensionParameters:a,unsupportedExtensions:i}}};function At(t){var e=function(t){if(N())return.4;if(R())return!P()||H()&&M()?.3:.5;var e="value"in t.platform?t.platform.value:"";if(/^Win/.test(e))return.6;if(/^Mac/.test(e))return.5;return.7}(t),n=function(t){return p(.99+.01*t,1e-4)}(e);return{score:e,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(n))}}function Et(t){return JSON.stringify(t,(function(t,e){return e instanceof Error?(n=e,(0,r.Cl)({name:n.name,message:n.message,stack:null===(i=n.stack)||void 0===i?void 0:i.split("\n")},n)):e;var n,i}),2)}function Bt(t){return L(function(t){for(var e="",n=0,r=Object.keys(t).sort();n<r.length;n++){var i=r[n],o=t[i],s="error"in o?"error":JSON.stringify(o.value);e+="".concat(e?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return e}(t))}function St(t){return void 0===t&&(t=50),function(t,e){void 0===e&&(e=1/0);var n=window.requestIdleCallback;return n?new Promise((function(t){return n.call(window,(function(){return t()}),{timeout:e})})):o(Math.min(t,e))}(t,2*t)}function xt(t,e){var n=Date.now();return{get:function(o){return(0,r.sH)(this,void 0,void 0,(function(){var s,a,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return s=Date.now(),[4,t()];case 1:return a=r.sent(),c=function(t){var e,n=At(t);return{get visitorId(){return void 0===e&&(e=Bt(this.components)),e},set visitorId(t){e=t},confidence:n,components:t,version:i}}(a),(e||(null==o?void 0:o.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(c.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(s-n,"\nvisitorId: ").concat(c.visitorId,"\ncomponents: ").concat(Et(a),"\n```")),[2,c]}}))}))}}}var It={load:function(t){var e;return void 0===t&&(t={}),(0,r.sH)(this,void 0,void 0,(function(){var n,o,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return(null===(e=t.monitoring)||void 0===e||e)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(i,"/npm-monitoring"),!0),t.send()}catch(t){console.error(t)}}(),n=t.delayFallback,o=t.debug,[4,St(n)];case 1:return r.sent(),s=function(t){return C(wt,t,[])}({cache:{},debug:o}),[2,xt(s,o)]}}))}))},hashComponents:Bt,componentsToDebugString:Et}},6586:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(2049),i=n(1882),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;const a=function(t,e){if((0,r.A)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!(0,i.A)(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},6612:(t,e,n)=>{var r;n.d(e,{y:()=>r}),function(t){t.ENGLISH="en",t.CHINESE_SIMPLIFIED="zh-Hans",t.CHINESE_TRADITIONAL="zh-Hant",t.CHINESE_TRADITIONAL_TW="zh-Hant-TW",t.JAPANESE="ja",t.KOREAN="ko",t.FILIPINO="fil",t.INDONESIAN="id",t.PORTUGUESE="pt",t.THAI="th",t.VIETNAMESE="vi",t.ARABIC="ar"}(r||(r={}))},6632:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(5917);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r.A),n}i.Cache=r.A;const o=i},6666:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},6733:(t,e,n)=>{n.d(e,{B:()=>w});var r=n(853),i=n(8058),o=n(1472),s=n(2049),a=n(6666),c=n(1879);const l={indoorLineColor:"#45b1cc",outdoorLineColor:"#8183ba",dashedLineColor:"#969696",shuttleBusLineColor:"#fb923c",lineWidth:4,dashedLineWidth:4,disableDashedLine:!1,inactiveRouteOpacity:.5,outdoorLineOpacity:1,markerIconSize:.75,markers:{from:"poi-02",to:"poi-01",stops:["waypoint-01"]},lineSymbol:{image:"east-blue-arrow-01",size:.25,spacing:1}},u="mmws-source-line-solid",d="mmws-layer-line-solid",h="mmws-layer-icon-line-symbol",f="mmws-source-line-dashed",p="mmws-layer-line-dashed",y="mmws-source-icon-connector",g="mmws-layer-icon-connector",m="mmws-source-icon-marker",_="mmws-layer-icon-marker",b=[d,h,p,g,_],v=[u,f,y,m];class w{_maplibreMap;_routeStyle=l;_styleDiffs={};_filterBy="venue";_curVenue=null;_curBuilding=null;_curOrdinal=null;constructor(t,e){this._maplibreMap=t,e&&(this._updateStyleProperties(e),t.on("load",(()=>this._loadMarkerIcons())))}async setStyle(t){this._updateStyleProperties(t),await this._loadMarkerIcons(),await this._updateLayers()}async setMarkerIcons(t){if((0,s.A)(t)&&t.length){const e=t.slice(1,t.length-1);this._routeStyle.markers={from:t[0],to:(0,a.A)(t),stops:e.length?e:[t[0]]},this._styleDiffs={markers:this._routeStyle.markers}}else"from"in t&&(this._routeStyle.markers.from=t.from,this._styleDiffs.markers.from=t.from),"to"in t&&(this._routeStyle.markers.to=t.to,this._styleDiffs.markers.to=t.to),"stops"in t&&(this._routeStyle.markers.stops=t.stops??[null],this._styleDiffs.markers.stops=t.stops??[null]);await this._loadMarkerIcons()}setMarkerIconSize(t){return this._routeStyle.markerIconSize=t,this}setIndoorLineColor(t){return this._routeStyle.indoorLineColor=t,this}setOutdoorLineColor(t){return this._routeStyle.outdoorLineColor=t,this}setDashedLineColor(t){return this._routeStyle.dashedLineColor=t,this}setBusLineColor(t){return this._routeStyle.shuttleBusLineColor=t,this}render(t,e){const{instructions:n,points:{coordinates:r}}=t,{lineFeatures:i,connectorFeatures:o,dashedLineFeatures:s,markerFeatures:a}=this._classifyFeatures(n,r,e);this._renderSolidLines(i),this._renderLineSymbols(u,h),!0!==this._routeStyle.disableDashedLine&&this._renderDashedLines(s),this._renderConnectors(o),this._renderMarkers(a)}remove(){b.forEach((t=>{this._maplibreMap.getLayer(t)&&this._maplibreMap.removeLayer(t)})),v.forEach((t=>{this._maplibreMap.getSource(t)&&this._maplibreMap.removeSource(t)}))}setFilterByVenue(t,e){this._filterBy="venue",this._curVenue=t??null,this._curOrdinal=e??null,this._filterRouteOpacity()}setFilterByBuilding(t,e){this._filterBy="building",this._curBuilding=t??null,this._curOrdinal=e??null,this._filterRouteOpacity()}_classifyFeatures(t,e,n){const r=[],o=[],s=[],c=[],l=[];(0,i.A)(t,((n,i)=>{const{venue_id:s,building_id:a,floor_id:c,ordinal:u,sign:d,type:h,interval:[f,p]}=n;if(function(t){return 5===t}(d))l.push(n);else if(function(t){return 100===t||-100===t}(d)){0!==i&&i!==t.length-1&&o.push(this._createIconFeature(`connector-${o.length}`,e[f],{...A({venue_id:s,building_id:a,floor_id:c,ordinal:u}),icon:h}));const n=t[i+1];if(n){const{venue_id:t,building_id:r,floor_id:i,ordinal:s}=n;o.push(this._createIconFeature(`connector-${o.length}`,e[p],{...A({venue_id:t,building_id:r,floor_id:i,ordinal:s}),icon:h}))}}else r.push(this._createLineFeature(`solid-line-${r.length}`,e.slice(f,p+1),A({venue_id:s,building_id:a,floor_id:c,ordinal:u,isShuttleBus:E(d)?1:0})))}));const u=t[0],{venue_id:d,building_id:h,floor_id:f,ordinal:p}=u,y=t[t.length-1],{venue_id:g,building_id:m,floor_id:_,ordinal:b}=y,v=e[0],w=e[e.length-1],B=n[0],S=n[n.length-1],x=n.slice(1,n.length-1);return B&&s.push(this._createLineFeature(`dashed-line-${s.length}`,[B,v],A({venue_id:d,building_id:h,floor_id:f,ordinal:p}))),S&&s.push(this._createLineFeature(`dashed-line-${s.length}`,[w,S],A({venue_id:g,building_id:m,floor_id:_,ordinal:b}))),l.length&&x.length&&l.forEach((({venue_id:t,building_id:n,floor_id:r,ordinal:i,interval:[o]},l)=>{s.push(this._createLineFeature(`dashed-line-${s.length}`,[e[o],x[l]],A({venue_id:t,building_id:n,floor_id:r,ordinal:i}))),c.push(this._createIconFeature(`marker-${c.length}`,x[l],{...A({venue_id:t,building_id:n,floor_id:r,ordinal:i,markerType:`stops_${l}`}),icon:this._routeStyle.markers.stops[l]??(0,a.A)(this._routeStyle.markers.stops),iconSize:this._routeStyle.markerIconSize}))})),c.push(this._createIconFeature(`marker-${c.length}`,B??v,{...A({venue_id:d,building_id:h,floor_id:f,ordinal:p,markerType:"from"}),icon:this._routeStyle.markers.from,iconSize:this._routeStyle.markerIconSize})),c.push(this._createIconFeature(`marker-${c.length}`,S??w,{...A({venue_id:g,building_id:m,floor_id:_,ordinal:b,markerType:"to"}),icon:this._routeStyle.markers.to,iconSize:this._routeStyle.markerIconSize})),{lineFeatures:r,connectorFeatures:o,dashedLineFeatures:s,markerFeatures:c}}_createLineFeature(t,e,n){return{id:t,type:"Feature",geometry:{type:"LineString",coordinates:e},properties:n}}_createIconFeature(t,e,n){return{id:t,type:"Feature",geometry:{type:"Point",coordinates:e},properties:n}}_renderSolidLines(t){this._addCollectionSource(u,t),this._addLineLayer(u,d,{"line-color":["case",["==",["get","isShuttleBus"],"1"],this._routeStyle.shuttleBusLineColor,["==",["get","floor_id"],null],this._routeStyle.outdoorLineColor,this._routeStyle.indoorLineColor],"line-opacity":["case",["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,1],"line-width":this._routeStyle.lineWidth})}_renderDashedLines(t){this._addCollectionSource(f,t),this._addLineLayer(f,p,{"line-color":this._routeStyle.dashedLineColor,"line-width":this._routeStyle.dashedLineWidth,"line-dasharray":[.1,1.8]})}_renderConnectors(t){this._addCollectionSource(y,t),this._addIconLayer(y,g)}_renderMarkers(t){this._addCollectionSource(m,t),this._addIconLayer(m,_,{"icon-anchor":"bottom","icon-allow-overlap":!0,"icon-ignore-placement":!0})}_addCollectionSource(t,e){this._maplibreMap.addSource(t,{type:"geojson",data:{type:"FeatureCollection",features:e}})}_addLineLayer(t,e,n){this._maplibreMap.addLayer({id:e,type:"line",source:t,layout:{"line-join":"round","line-cap":"round"},paint:{"line-width":4,...n||{}}})}_renderLineSymbols(t,e){this._maplibreMap.addLayer({id:e,type:"symbol",source:t,layout:{"symbol-placement":"line","symbol-spacing":this._routeStyle.lineSymbol.spacing,"icon-size":this._routeStyle.lineSymbol.size,"icon-image":this._routeStyle.lineSymbol.image},paint:{"icon-opacity":["case",["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,1]}})}_addIconLayer(t,e,n){this._maplibreMap.addLayer({id:e,type:"symbol",source:t,layout:{"icon-image":["get","icon"],"icon-size":["case",["has","iconSize"],["get","iconSize"],1],...n||{}}})}_updateStyleProperties(t){if(this._styleDiffs=B(this._routeStyle,t??l),t){if(Object.keys(this._styleDiffs).length){const t={...this._routeStyle.lineSymbol,...this._styleDiffs.lineSymbol??{}},e=this._styleDiffs.markers;let n=this._routeStyle.markers;const r={outdoorLineOpacity:(this._styleDiffs.outdoorLineOpacity>1?1:this._styleDiffs.outdoorLineOpacity<0?0:this._styleDiffs.outdoorLineOpacity)??this._routeStyle.outdoorLineOpacity},i={inactiveRouteOpacity:(this._styleDiffs.inactiveRouteOpacity>1?1:this._styleDiffs.inactiveRouteOpacity<0?0:this._styleDiffs.inactiveRouteOpacity)??this._routeStyle.inactiveRouteOpacity};e&&Object.keys(e).length&&(n={...n,...e}),this._routeStyle={...this._routeStyle,...this._styleDiffs,...r,...i,markers:n,lineSymbol:t}}}else this._routeStyle=l}async _loadMarkerIcons(){const{markers:t,lineSymbol:e}=this._styleDiffs;if(e?.image&&await(0,r.K)(this._maplibreMap,e.image),t&&Object.keys(t).length){const{from:e,to:n,stops:i}=t;if(e&&await(0,r.K)(this._maplibreMap,e),n&&await(0,r.K)(this._maplibreMap,n),i&&i.length){const t=i.filter((t=>!!t));t.length&&await Promise.all(t.map((t=>(0,r.K)(this._maplibreMap,t))))}}}async _updateLayers(){if(!this._maplibreMap.getLayer(d))return;const{indoorLineColor:t,outdoorLineColor:e,dashedLineColor:n,shuttleBusLineColor:r,lineWidth:i,dashedLineWidth:o,disableDashedLine:s,inactiveRouteOpacity:c,outdoorLineOpacity:l,markerIconSize:u,markers:f,lineSymbol:y}=this._styleDiffs;if((t||e||r)&&this._maplibreMap.setPaintProperty(d,"line-color",["case",["==",["get","isShuttleBus"],"1"],this._routeStyle.shuttleBusLineColor,["==",["get","floor_id"],null],this._routeStyle.outdoorLineColor,this._routeStyle.indoorLineColor]),void 0!==i&&i+""&&this._maplibreMap.setPaintProperty(d,"line-width",i),"boolean"==typeof s?s?this._maplibreMap.setPaintProperty(p,"line-color","transparent"):(this._maplibreMap.setPaintProperty(p,"line-color",this._routeStyle.dashedLineColor),this._maplibreMap.setPaintProperty(p,"line-width",this._routeStyle.dashedLineWidth)):!0!==this._routeStyle.disableDashedLine&&(n&&this._maplibreMap.setPaintProperty(p,"line-color",n),void 0!==o&&o+""&&this._maplibreMap.setPaintProperty(p,"line-width",o)),void 0!==c&&c+""&&this._filterRouteOpacity(),void 0!==u&&u+""&&this._maplibreMap.setLayoutProperty(_,"icon-size",u),f&&Object.keys(f).length){const{from:t,to:e,stops:n}=f,r=this._maplibreMap.getSource(m),i=await r.getData();i.features=i.features.map((r=>{const{markerType:i}=r.properties;if(void 0!==t&&"from"===i&&(r.properties.icon=t),void 0!==e&&"to"===i&&(r.properties.icon=e),n&&i.includes("stops")){const t=parseInt(i.split("_")[1]);r.properties.icon=n[t]??(0,a.A)(n)}return r})),r.setData(i)}if(y){const{image:t,size:e,spacing:n}=y;void 0!==t&&this._maplibreMap.setLayoutProperty(h,"icon-image",t),void 0!==e&&e+""&&this._maplibreMap.setLayoutProperty(h,"icon-size",e),void 0!==n&&n+""&&this._maplibreMap.setLayoutProperty(h,"symbol-spacing",n)}void 0!==l&&l+""&&(this._maplibreMap.setPaintProperty(d,"line-opacity",["case",["==",["get","floor_id"],null],l,1]),this._maplibreMap.setPaintProperty(h,"icon-opacity",["case",["==",["get","floor_id"],null],l,1]),this._filterRouteOpacity())}_filterRouteOpacity(){let t;switch(this._filterBy){case"venue":t=["case",["all",["==",["get","ordinal"],this._curOrdinal??""],["==",["get","venue_id"],this._curVenue??""]],1,["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,this._routeStyle.inactiveRouteOpacity];break;case"building":t=["case",["all",["==",["get","ordinal"],this._curOrdinal??""],["==",["get","building_id"],this._curBuilding??""]],1,["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,this._routeStyle.inactiveRouteOpacity]}b.forEach((e=>{this._maplibreMap.getLayer(e)&&this._maplibreMap.setPaintProperty(e,e.includes("layer-line")?"line-opacity":"icon-opacity",t)}))}}function A(t){return Object.fromEntries(Object.entries(t).map((([t,e])=>[t,(0,c.A)(e)?e+"":e])))}function E(t){return(0,o.A)(t,104,108)}function B(t,e){const n={};for(const r in e){const i=t[r],o=e[r];if("markers"===r||"lineSymbol"===r)if((0,s.A)(o)){const t=o.slice(1,o.length-1);n[r]={from:o[0],to:(0,a.A)(o),stops:t.length?t:[o[0]]}}else{const t=B(i,o);Object.keys(t).length&&(n[r]=t)}else o+""!=i+""&&(n[r]="stops"===r?o??[null]:o)}return n}},6748:(t,e,n)=>{e.VV=void 0,e.w=function(t,e){return Buffer.from(function(t,e){var n=(0,i.ellipticCurve)(),a=new o.PrivateKey(void 0,n),c=t instanceof Uint8Array?new o.PublicKey(t,n):o.PublicKey.fromHex(t,n),l=a.encapsulate(c,(0,i.isHkdfKeyCompressed)()),u=a.publicKey.toBytes((0,i.isEphemeralKeyCompressed)()),d=(0,s.symEncrypt)(l,e);return(0,r.concatBytes)(u,d)}(t,e))};var r=n(6527),i=n(4928),o=n(9065),s=n(2158);var a=n(4928);Object.defineProperty(e,"VV",{enumerable:!0,get:function(){return a.ECIES_CONFIG}});var c=n(9065);s.aesEncrypt,s.aesDecrypt,s.symEncrypt,s.symDecrypt,s.decodeHex,s.getValidSecret,s.remove0x},6787:(t,e,n)=>{function r(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}n.d(e,{A:()=>r})},6832:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(6984),i=n(8446),o=n(5353),s=n(3149);const a=function(t,e,n){if(!(0,s.A)(n))return!1;var a=typeof e;return!!("number"==a?(0,i.A)(n)&&(0,o.A)(e,n.length):"string"==a&&e in n)&&(0,r.A)(n[e],t)}},6838:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(){this.__data__=[],this.size=0}},6847:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(139),i=n(8556),o=n(6501);const s={isBrowser:!0,classes:{URLSearchParams:r.A,FormData:i.A,Blob:o.A},protocols:["http","https","file","blob","url","data"]}},6912:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},6983:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return t!=t}},6984:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){return t===e||t!=t&&e!=e}},7007:t=>{var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}y(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&y(t,"error",e,n)}(t,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function l(t,e,n,r){var i,o,s,l;if(a(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(t))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,l=u,console&&console.warn&&console.warn(l)}return t}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function h(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):p(i,i.length)}function f(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function y(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){r.once&&t.removeEventListener(e,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[t];if(void 0===c)return!1;if("function"==typeof c)r(c,this,e);else{var l=c.length,u=p(c,l);for(n=0;n<l;++n)r(u[n],this,e)}return!0},o.prototype.addListener=function(t,e){return l(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return l(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,d(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,d(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,s;if(a(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):f.call(t,e)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},7013:(t,e,n)=>{n.d(e,{A:()=>f});var r=n(7275),i=n(3853),o=n(807),s=n(4062),a=n(8458),c=n(5579),l=n(3820),u=n(7110),d=n(7837),h=n(8382);const f="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){const f=(0,h.A)(t);let p=f.data;const y=u.A.from(f.headers).normalize();let g,m,_,b,v,{responseType:w,onUploadProgress:A,onDownloadProgress:E}=f;function B(){b&&b(),v&&v(),f.cancelToken&&f.cancelToken.unsubscribe(g),f.signal&&f.signal.removeEventListener("abort",g)}let S=new XMLHttpRequest;function x(){if(!S)return;const r=u.A.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),o={data:w&&"text"!==w&&"json"!==w?S.response:S.responseText,status:S.status,statusText:S.statusText,headers:r,config:t,request:S};(0,i.A)((function(t){e(t),B()}),(function(t){n(t),B()}),o),S=null}S.open(f.method.toUpperCase(),f.url,!0),S.timeout=f.timeout,"onloadend"in S?S.onloadend=x:S.onreadystatechange=function(){S&&4===S.readyState&&(0!==S.status||S.responseURL&&0===S.responseURL.indexOf("file:"))&&setTimeout(x)},S.onabort=function(){S&&(n(new s.A("Request aborted",s.A.ECONNABORTED,t,S)),S=null)},S.onerror=function(){n(new s.A("Network Error",s.A.ERR_NETWORK,t,S)),S=null},S.ontimeout=function(){let e=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const r=f.transitional||o.A;f.timeoutErrorMessage&&(e=f.timeoutErrorMessage),n(new s.A(e,r.clarifyTimeoutError?s.A.ETIMEDOUT:s.A.ECONNABORTED,t,S)),S=null},void 0===p&&y.setContentType(null),"setRequestHeader"in S&&r.A.forEach(y.toJSON(),(function(t,e){S.setRequestHeader(e,t)})),r.A.isUndefined(f.withCredentials)||(S.withCredentials=!!f.withCredentials),w&&"json"!==w&&(S.responseType=f.responseType),E&&([_,v]=(0,d.C1)(E,!0),S.addEventListener("progress",_)),A&&S.upload&&([m,b]=(0,d.C1)(A),S.upload.addEventListener("progress",m),S.upload.addEventListener("loadend",b)),(f.cancelToken||f.signal)&&(g=e=>{S&&(n(!e||e.type?new a.A(null,t,S):e),S.abort(),S=null)},f.cancelToken&&f.cancelToken.subscribe(g),f.signal&&(f.signal.aborted?g():f.signal.addEventListener("abort",g)));const I=(0,c.A)(f.url);I&&-1===l.A.protocols.indexOf(I)?n(new s.A("Unsupported protocol "+I+":",s.A.ERR_BAD_REQUEST,t)):S.send(p||null)}))}},7064:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(7271),i=n(3938),o=Object.prototype.hasOwnProperty;const s=function(t){if(!(0,r.A)(t))return(0,i.A)(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},7076:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sha512_224=e.sha512_256=e.sha384=e.sha512=e.sha224=e.sha256=e.SHA512_256=e.SHA512_224=e.SHA384=e.SHA512=e.SHA224=e.SHA256=void 0;const r=n(7202),i=n(2318),o=n(9175),s=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array(64);class c extends r.HashMD{constructor(t=32){super(64,t,8,!1),this.A=0|r.SHA256_IV[0],this.B=0|r.SHA256_IV[1],this.C=0|r.SHA256_IV[2],this.D=0|r.SHA256_IV[3],this.E=0|r.SHA256_IV[4],this.F=0|r.SHA256_IV[5],this.G=0|r.SHA256_IV[6],this.H=0|r.SHA256_IV[7]}get(){const{A:t,B:e,C:n,D:r,E:i,F:o,G:s,H:a}=this;return[t,e,n,r,i,o,s,a]}set(t,e,n,r,i,o,s,a){this.A=0|t,this.B=0|e,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(t,e){for(let n=0;n<16;n++,e+=4)a[n]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=a[t-15],n=a[t-2],r=(0,o.rotr)(e,7)^(0,o.rotr)(e,18)^e>>>3,i=(0,o.rotr)(n,17)^(0,o.rotr)(n,19)^n>>>10;a[t]=i+a[t-7]+r+a[t-16]|0}let{A:n,B:i,C:c,D:l,E:u,F:d,G:h,H:f}=this;for(let t=0;t<64;t++){const e=f+((0,o.rotr)(u,6)^(0,o.rotr)(u,11)^(0,o.rotr)(u,25))+(0,r.Chi)(u,d,h)+s[t]+a[t]|0,p=((0,o.rotr)(n,2)^(0,o.rotr)(n,13)^(0,o.rotr)(n,22))+(0,r.Maj)(n,i,c)|0;f=h,h=d,d=u,u=l+e|0,l=c,c=i,i=n,n=e+p|0}n=n+this.A|0,i=i+this.B|0,c=c+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(n,i,c,l,u,d,h,f)}roundClean(){(0,o.clean)(a)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,o.clean)(this.buffer)}}e.SHA256=c;class l extends c{constructor(){super(28),this.A=0|r.SHA224_IV[0],this.B=0|r.SHA224_IV[1],this.C=0|r.SHA224_IV[2],this.D=0|r.SHA224_IV[3],this.E=0|r.SHA224_IV[4],this.F=0|r.SHA224_IV[5],this.G=0|r.SHA224_IV[6],this.H=0|r.SHA224_IV[7]}}e.SHA224=l;const u=(()=>i.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((t=>BigInt(t)))))(),d=(()=>u[0])(),h=(()=>u[1])(),f=new Uint32Array(80),p=new Uint32Array(80);class y extends r.HashMD{constructor(t=64){super(128,t,16,!1),this.Ah=0|r.SHA512_IV[0],this.Al=0|r.SHA512_IV[1],this.Bh=0|r.SHA512_IV[2],this.Bl=0|r.SHA512_IV[3],this.Ch=0|r.SHA512_IV[4],this.Cl=0|r.SHA512_IV[5],this.Dh=0|r.SHA512_IV[6],this.Dl=0|r.SHA512_IV[7],this.Eh=0|r.SHA512_IV[8],this.El=0|r.SHA512_IV[9],this.Fh=0|r.SHA512_IV[10],this.Fl=0|r.SHA512_IV[11],this.Gh=0|r.SHA512_IV[12],this.Gl=0|r.SHA512_IV[13],this.Hh=0|r.SHA512_IV[14],this.Hl=0|r.SHA512_IV[15]}get(){const{Ah:t,Al:e,Bh:n,Bl:r,Ch:i,Cl:o,Dh:s,Dl:a,Eh:c,El:l,Fh:u,Fl:d,Gh:h,Gl:f,Hh:p,Hl:y}=this;return[t,e,n,r,i,o,s,a,c,l,u,d,h,f,p,y]}set(t,e,n,r,i,o,s,a,c,l,u,d,h,f,p,y){this.Ah=0|t,this.Al=0|e,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|y}process(t,e){for(let n=0;n<16;n++,e+=4)f[n]=t.getUint32(e),p[n]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|f[t-15],n=0|p[t-15],r=i.rotrSH(e,n,1)^i.rotrSH(e,n,8)^i.shrSH(e,n,7),o=i.rotrSL(e,n,1)^i.rotrSL(e,n,8)^i.shrSL(e,n,7),s=0|f[t-2],a=0|p[t-2],c=i.rotrSH(s,a,19)^i.rotrBH(s,a,61)^i.shrSH(s,a,6),l=i.rotrSL(s,a,19)^i.rotrBL(s,a,61)^i.shrSL(s,a,6),u=i.add4L(o,l,p[t-7],p[t-16]),d=i.add4H(u,r,c,f[t-7],f[t-16]);f[t]=0|d,p[t]=0|u}let{Ah:n,Al:r,Bh:o,Bl:s,Ch:a,Cl:c,Dh:l,Dl:u,Eh:y,El:g,Fh:m,Fl:_,Gh:b,Gl:v,Hh:w,Hl:A}=this;for(let t=0;t<80;t++){const e=i.rotrSH(y,g,14)^i.rotrSH(y,g,18)^i.rotrBH(y,g,41),E=i.rotrSL(y,g,14)^i.rotrSL(y,g,18)^i.rotrBL(y,g,41),B=y&m^~y&b,S=g&_^~g&v,x=i.add5L(A,E,S,h[t],p[t]),I=i.add5H(x,w,e,B,d[t],f[t]),L=0|x,O=i.rotrSH(n,r,28)^i.rotrBH(n,r,34)^i.rotrBH(n,r,39),C=i.rotrSL(n,r,28)^i.rotrBL(n,r,34)^i.rotrBL(n,r,39),k=n&o^n&a^o&a,T=r&s^r&c^s&c;w=0|b,A=0|v,b=0|m,v=0|_,m=0|y,_=0|g,({h:y,l:g}=i.add(0|l,0|u,0|I,0|L)),l=0|a,u=0|c,a=0|o,c=0|s,o=0|n,s=0|r;const R=i.add3L(L,C,T);n=i.add3H(R,I,O,k),r=0|R}({h:n,l:r}=i.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:o,l:s}=i.add(0|this.Bh,0|this.Bl,0|o,0|s)),({h:a,l:c}=i.add(0|this.Ch,0|this.Cl,0|a,0|c)),({h:l,l:u}=i.add(0|this.Dh,0|this.Dl,0|l,0|u)),({h:y,l:g}=i.add(0|this.Eh,0|this.El,0|y,0|g)),({h:m,l:_}=i.add(0|this.Fh,0|this.Fl,0|m,0|_)),({h:b,l:v}=i.add(0|this.Gh,0|this.Gl,0|b,0|v)),({h:w,l:A}=i.add(0|this.Hh,0|this.Hl,0|w,0|A)),this.set(n,r,o,s,a,c,l,u,y,g,m,_,b,v,w,A)}roundClean(){(0,o.clean)(f,p)}destroy(){(0,o.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}e.SHA512=y;class g extends y{constructor(){super(48),this.Ah=0|r.SHA384_IV[0],this.Al=0|r.SHA384_IV[1],this.Bh=0|r.SHA384_IV[2],this.Bl=0|r.SHA384_IV[3],this.Ch=0|r.SHA384_IV[4],this.Cl=0|r.SHA384_IV[5],this.Dh=0|r.SHA384_IV[6],this.Dl=0|r.SHA384_IV[7],this.Eh=0|r.SHA384_IV[8],this.El=0|r.SHA384_IV[9],this.Fh=0|r.SHA384_IV[10],this.Fl=0|r.SHA384_IV[11],this.Gh=0|r.SHA384_IV[12],this.Gl=0|r.SHA384_IV[13],this.Hh=0|r.SHA384_IV[14],this.Hl=0|r.SHA384_IV[15]}}e.SHA384=g;const m=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),_=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class b extends y{constructor(){super(28),this.Ah=0|m[0],this.Al=0|m[1],this.Bh=0|m[2],this.Bl=0|m[3],this.Ch=0|m[4],this.Cl=0|m[5],this.Dh=0|m[6],this.Dl=0|m[7],this.Eh=0|m[8],this.El=0|m[9],this.Fh=0|m[10],this.Fl=0|m[11],this.Gh=0|m[12],this.Gl=0|m[13],this.Hh=0|m[14],this.Hl=0|m[15]}}e.SHA512_224=b;class v extends y{constructor(){super(32),this.Ah=0|_[0],this.Al=0|_[1],this.Bh=0|_[2],this.Bl=0|_[3],this.Ch=0|_[4],this.Cl=0|_[5],this.Dh=0|_[6],this.Dl=0|_[7],this.Eh=0|_[8],this.El=0|_[9],this.Fh=0|_[10],this.Fl=0|_[11],this.Gh=0|_[12],this.Gl=0|_[13],this.Hh=0|_[14],this.Hl=0|_[15]}}e.SHA512_256=v,e.sha256=(0,o.createHasher)((()=>new c)),e.sha224=(0,o.createHasher)((()=>new l)),e.sha512=(0,o.createHasher)((()=>new y)),e.sha384=(0,o.createHasher)((()=>new g)),e.sha512_256=(0,o.createHasher)((()=>new v)),e.sha512_224=(0,o.createHasher)((()=>new b))},7110:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(7275),i=n(3325);const o=Symbol("internals");function s(t){return t&&String(t).trim().toLowerCase()}function a(t){return!1===t||null==t?t:r.A.isArray(t)?t.map(a):String(t)}function c(t,e,n,i,o){return r.A.isFunction(i)?i.call(this,e,n):(o&&(e=n),r.A.isString(e)?r.A.isString(i)?-1!==e.indexOf(i):r.A.isRegExp(i)?i.test(e):void 0:void 0)}class l{constructor(t){t&&this.set(t)}set(t,e,n){const o=this;function c(t,e,n){const i=s(e);if(!i)throw new Error("header name must be a non-empty string");const c=r.A.findKey(o,i);(!c||void 0===o[c]||!0===n||void 0===n&&!1!==o[c])&&(o[c||e]=a(t))}const l=(t,e)=>r.A.forEach(t,((t,n)=>c(t,n,e)));if(r.A.isPlainObject(t)||t instanceof this.constructor)l(t,e);else if(r.A.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))l((0,i.A)(t),e);else if(r.A.isObject(t)&&r.A.isIterable(t)){let n,i,o={};for(const e of t){if(!r.A.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[i=e[0]]=(n=o[i])?r.A.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}l(o,e)}else null!=t&&c(e,t,n);return this}get(t,e){if(t=s(t)){const n=r.A.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(r.A.isFunction(e))return e.call(this,t,n);if(r.A.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=s(t)){const n=r.A.findKey(this,t);return!(!n||void 0===this[n]||e&&!c(0,this[n],n,e))}return!1}delete(t,e){const n=this;let i=!1;function o(t){if(t=s(t)){const o=r.A.findKey(n,t);!o||e&&!c(0,n[o],o,e)||(delete n[o],i=!0)}}return r.A.isArray(t)?t.forEach(o):o(t),i}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const i=e[n];t&&!c(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return r.A.forEach(this,((i,o)=>{const s=r.A.findKey(n,o);if(s)return e[s]=a(i),void delete e[o];const c=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();c!==o&&delete e[o],e[c]=a(i),n[c]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return r.A.forEach(this,((n,i)=>{null!=n&&!1!==n&&(e[i]=t&&r.A.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[o]=this[o]={accessors:{}}).accessors,n=this.prototype;function i(t){const i=s(t);e[i]||(!function(t,e){const n=r.A.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})}))}(n,t),e[i]=!0)}return r.A.isArray(t)?t.forEach(i):i(t),this}}l.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),r.A.reduceDescriptors(l.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),r.A.freezeMethods(l);const u=l},7202:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SHA512_IV=e.SHA384_IV=e.SHA224_IV=e.SHA256_IV=e.HashMD=void 0,e.setBigUint64=i,e.Chi=function(t,e,n){return t&e^~t&n},e.Maj=function(t,e,n){return t&e^t&n^e&n};const r=n(9175);function i(t,e,n,r){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,l=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+l,a,r)}class o extends r.Hash{constructor(t,e,n,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(t),this.view=(0,r.createView)(this.buffer)}update(t){(0,r.aexists)(this),t=(0,r.toBytes)(t),(0,r.abytes)(t);const{view:e,buffer:n,blockLen:i}=this,o=t.length;for(let s=0;s<o;){const a=Math.min(i-this.pos,o-s);if(a!==i)n.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(e,0),this.pos=0);else{const e=(0,r.createView)(t);for(;i<=o-s;s+=i)this.process(e,s)}}return this.length+=t.length,this.roundClean(),this}digestInto(t){(0,r.aexists)(this),(0,r.aoutput)(t,this),this.finished=!0;const{buffer:e,view:n,blockLen:o,isLE:s}=this;let{pos:a}=this;e[a++]=128,(0,r.clean)(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let t=a;t<o;t++)e[t]=0;i(n,o-8,BigInt(8*this.length),s),this.process(n,0);const c=(0,r.createView)(t),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t<u;t++)c.setUint32(4*t,d[t],s)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return t.destroyed=o,t.finished=i,t.length=r,t.pos=s,r%e&&t.buffer.set(n),t}clone(){return this._cloneInto()}}e.HashMD=o,e.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),e.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),e.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),e.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},7265:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(9042),i=Object.prototype.hasOwnProperty;const o=function(t,e,n,o,s,a){var c=1&n,l=(0,r.A)(t),u=l.length;if(u!=(0,r.A)(e).length&&!c)return!1;for(var d=u;d--;){var h=l[d];if(!(c?h in e:i.call(e,h)))return!1}var f=a.get(t),p=a.get(e);if(f&&p)return f==e&&p==t;var y=!0;a.set(t,e),a.set(e,t);for(var g=c;++d<u;){var m=t[h=l[d]],_=e[h];if(o)var b=c?o(_,m,h,e,t,a):o(m,_,h,t,e,a);if(!(void 0===b?m===_||s(m,_,n,o,a):b)){y=!1;break}g||(g="constructor"==h)}if(y&&!g){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(y=!1)}return a.delete(t),a.delete(e),y}},7271:(t,e,n)=>{n.d(e,{A:()=>i});var r=Object.prototype;const i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},7275:(t,e,n)=>{n.d(e,{A:()=>q});var r=n(2125);const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:s,toStringTag:a}=Symbol,c=(l=Object.create(null),t=>{const e=i.call(t);return l[e]||(l[e]=e.slice(8,-1).toLowerCase())});var l;const u=t=>(t=t.toLowerCase(),e=>c(e)===t),d=t=>e=>typeof e===t,{isArray:h}=Array,f=d("undefined");const p=u("ArrayBuffer");const y=d("string"),g=d("function"),m=d("number"),_=t=>null!==t&&"object"==typeof t,b=t=>{if("object"!==c(t))return!1;const e=o(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||a in t||s in t)},v=u("Date"),w=u("File"),A=u("Blob"),E=u("FileList"),B=u("URLSearchParams"),[S,x,I,L]=["ReadableStream","Request","Response","Headers"].map(u);function O(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),h(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}function C(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=t=>!f(t)&&t!==k;const R=(P="undefined"!=typeof Uint8Array&&o(Uint8Array),t=>P&&t instanceof P);var P;const M=u("HTMLFormElement"),F=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),H=u("RegExp"),j=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};O(n,((n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)})),Object.defineProperties(t,r)};const N=u("AsyncFunction"),U=(V="function"==typeof setImmediate,D=g(k.postMessage),V?setImmediate:D?($=`axios@${Math.random()}`,z=[],k.addEventListener("message",(({source:t,data:e})=>{t===k&&e===$&&z.length&&z.shift()()}),!1),t=>{z.push(t),k.postMessage($,"*")}):t=>setTimeout(t));var V,D,$,z;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(k):"undefined"!=typeof process&&process.nextTick||U,q={isArray:h,isArrayBuffer:p,isBuffer:function(t){return null!==t&&!f(t)&&null!==t.constructor&&!f(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=c(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e},isString:y,isNumber:m,isBoolean:t=>!0===t||!1===t,isObject:_,isPlainObject:b,isReadableStream:S,isRequest:x,isResponse:I,isHeaders:L,isUndefined:f,isDate:v,isFile:w,isBlob:A,isRegExp:H,isFunction:g,isStream:t=>_(t)&&g(t.pipe),isURLSearchParams:B,isTypedArray:R,isFileList:E,forEach:O,merge:function t(){const{caseless:e}=T(this)&&this||{},n={},r=(r,i)=>{const o=e&&C(n,i)||i;b(n[o])&&b(r)?n[o]=t(n[o],r):b(r)?n[o]=t({},r):h(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&O(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:i}={})=>(O(e,((e,i)=>{n&&g(e)?t[i]=(0,r.A)(e,n):t[i]=e}),{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,s,a;const c={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],r&&!r(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==n&&o(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:c,kindOfTest:u,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(h(t))return t;let e=t.length;if(!m(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[s]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:M,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:j,freezeMethods:t=>{j(t,((e,n)=>{if(g(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];g(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return h(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:C,global:k,isContextDefined:T,isSpecCompliantForm:function(t){return!!(t&&g(t.append)&&"FormData"===t[a]&&t[s])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(_(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=h(t)?[]:{};return O(t,((t,e)=>{const o=n(t,r+1);!f(o)&&(i[e]=o)})),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:N,isThenable:t=>t&&(_(t)||g(t))&&g(t.then)&&g(t.catch),setImmediate:U,asap:G,isIterable:t=>null!=t&&g(t[s])}},7311:(t,e,n)=>{n.d(e,{O:()=>a,o:()=>l});var r=n(6568),i=n(8330),o=n(8693),s=n(1089);const a="tokenUpdated",c={maxRetries:3,initialDelay:500};class l{static instance;_appId="";_secret="";_platform;_accessToken="";_expiredTime=0;_version="";_identifier="";_webIdentifier="";_tokenGetter;_tokenPending=null;_dispatch=(0,s.A)(a);_globalDispatcher;constructor(){}static getInstance(){return l.instance||(l.instance=new l),l.instance}async setAccessByAppKey(t){this._tokenGetter=this._fetchToken.bind(this);const{appId:e,secret:n,platform:r}=t;this._appId=e,this._secret=n,this._platform=r,this._version=r?.sdkVersion||i.rE,this._identifier=r?.identifier||await this.getWebIdentifier()}setTokenGetter(t){this._tokenGetter=t}async setupTokenManager(){if(!this._tokenGetter)throw new Error("getTokenAsync() is not set!");const{maxRetries:t,initialDelay:e}=c;let n=0;for(;n<=t;)try{const t=await this._tokenGetter();if(t)return void this._updateContext(t)}catch(r){if(n++,n>t)throw this._globalDispatcher.call("unauthorized"),r;await this._retryDelay(n,e)}}getSdkVersion(){return this._version||i.rE}async getIdentifier(){return this._identifier||await this.getWebIdentifier()}async getAccessToken(){if(this._accessToken&&!this._isTokenExpired)return this._accessToken;if(this._tokenPending)return this._tokenPending;if(!this._tokenGetter)throw new Error("Token getter not configured. Call setGetTokenAsync() first.");return this._tokenPending=this._tokenGetter().then((t=>(this._updateContext(t),this._dispatch.call(a,null,t.accessToken),t.accessToken))).catch((t=>{throw this._tokenPending=null,t})).finally((()=>{this._tokenPending=null})),this._tokenPending}async getWebIdentifier(){if(!this._webIdentifier){const t=await r.Ay.load(),e=await t.get();this._webIdentifier=e.visitorId}return this._webIdentifier}on(t,e){return this._dispatch.on(t,e),{off:()=>this._dispatch.on(t,null)}}setGlobalDispatcher(t){this._globalDispatcher=t}getGlobalDispatcher(){return this._globalDispatcher}clearState(){this._appId="",this._secret="",this._platform=void 0,this._webIdentifier="",this._tokenPending=null,this._tokenGetter=void 0,this._accessToken="",this._expiredTime=0,this._version="",this._identifier=""}get _isTokenExpired(){return this._expiredTime<=Date.now()}_updateContext(t){const{accessToken:e,expiredTime:n,identifier:r,sdkVersion:i}=t;this._accessToken=e,this._expiredTime=n,void 0!==r&&(this._identifier=r),void 0!==i&&(this._version=i)}_fetchToken(){return(0,o.i)(this._appId,this._secret,this._platform)}async _retryDelay(t,e){const n=e*Math.pow(2,t-1);return console.warn(`Retrying in ${n} ms... (Attempt ${t})`),new Promise((t=>setTimeout(t,n)))}}},7346:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(2851),i=n(7465),o=n(5353),s=n(3149),a=n(901);const c=function(t,e,n,c){if(!(0,s.A)(t))return t;for(var l=-1,u=(e=(0,i.A)(e,t)).length,d=u-1,h=t;null!=h&&++l<u;){var f=(0,a.A)(e[l]),p=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(l!=d){var y=h[f];void 0===(p=c?c(y,f,h):void 0)&&(p=(0,s.A)(y)?y:(0,o.A)(e[l+1])?[]:{})}(0,r.A)(h,f,p),h=h[f]}return t}},7352:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(7275);const i=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){r.A.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}},7422:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(423),i=n(7064),o=n(8446);const s=function(t){return(0,o.A)(t)?(0,r.A)(t):(0,i.A)(t)}},7465:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(2049),i=n(6586),o=n(5722),s=n(8182);const a=function(t,e){return(0,r.A)(t)?t:(0,i.A)(t,e)?[t]:(0,o.A)((0,s.A)(t))}},7500:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(6318);const i=function(t,e,n){var i=null==t?void 0:(0,r.A)(t,e);return void 0===i?n:i}},7511:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(9789),i=n(5054);const o=function(t,e){return null!=t&&(0,i.A)(t,e,r.A)}},7526:(t,e)=>{e.byteLength=function(t){var e=a(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,o=a(t),s=o[0],c=o[1],l=new i(function(t,e,n){return 3*(e+n)/4-n}(0,s,c)),u=0,d=c>0?s-4:s;for(n=0;n<d;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;2===c&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,l[u++]=255&e);1===c&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e);return l},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],s=16383,a=0,l=r-i;a<l;a+=s)o.push(c(t,a,a+s>l?l:a+s));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,r){for(var i,o,s=[],a=e;a<r;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7536:(t,e,n)=>{n.d(e,{A:()=>w});var r=n(7275),i=n(2125),o=n(5978),s=n(4662),a=n(6013),c=n(7887),l=n(8458),u=n(4874),d=n(9575),h=n(9888),f=n(665),p=n(4062),y=n(605),g=n(8562),m=n(7110),_=n(6263),b=n(7693);const v=function t(e){const n=new o.A(e),a=(0,i.A)(o.A.prototype.request,n);return r.A.extend(a,o.A.prototype,n,{allOwnKeys:!0}),r.A.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return t((0,s.A)(e,n))},a}(a.A);v.Axios=o.A,v.CanceledError=l.A,v.CancelToken=u.A,v.isCancel=d.A,v.VERSION=h.x,v.toFormData=f.A,v.AxiosError=p.A,v.Cancel=v.CanceledError,v.all=function(t){return Promise.all(t)},v.spread=y.A,v.isAxiosError=g.A,v.mergeConfig=s.A,v.AxiosHeaders=m.A,v.formToJSON=t=>(0,c.A)(r.A.isHTMLForm(t)?new FormData(t):t),v.getAdapter=_.A.getAdapter,v.HttpStatusCode=b.A,v.default=v;const w=v},7678:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.aes256cbc=e.aes256gcm=void 0;var r=n(469);e.aes256gcm=function(t,e,n){return(0,r.gcm)(t,e,n)};e.aes256cbc=function(t,e,n){return(0,r.cbc)(t,e)}},7681:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(7919),i=n(8335),o=n(5917);const s=function(t,e){var n=this.__data__;if(n instanceof r.A){var s=n.__data__;if(!i.A||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o.A(s)}return n.set(t,e),this.size=n.size,this}},7693:(t,e,n)=>{n.d(e,{A:()=>i});const r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(r).forEach((([t,e])=>{r[e]=t}));const i=r},7757:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.aesDecrypt=e.aesEncrypt=e.symDecrypt=e.symEncrypt=void 0;var r=n(6527),i=n(8489),o=n(7678),s=n(83),a=n(4928),c=n(1666);e.symEncrypt=function(t,e,n){return l(u,t,e,n)};function l(t,e,n,r){var i=(0,a.symmetricAlgorithm)();if("aes-256-gcm"===i)return t(o.aes256gcm,e,n,(0,a.symmetricNonceLength)(),c.AEAD_TAG_LENGTH,r);if("xchacha20"===i)return t(s.xchacha20,e,n,c.XCHACHA20_NONCE_LENGTH,c.AEAD_TAG_LENGTH,r);if("aes-256-cbc"===i)return t(o.aes256cbc,e,n,16,0);throw new Error("Not implemented")}function u(t,e,n,o,s,a){var c=(0,i.randomBytes)(o),l=t(e,c,a).encrypt(n);if(0===s)return(0,r.concatBytes)(c,l);var u=l.length-s,d=l.subarray(0,u),h=l.subarray(u);return(0,r.concatBytes)(c,h,d)}function d(t,e,n,i,o,s){var a=n.subarray(0,i),c=t(e,Uint8Array.from(a),s),l=n.subarray(i);if(0===o)return c.decrypt(l);var u=l.subarray(0,o),d=l.subarray(o);return c.decrypt((0,r.concatBytes)(d,u))}e.symDecrypt=function(t,e,n){return l(d,t,e,n)},e.aesEncrypt=e.symEncrypt,e.aesDecrypt=e.symDecrypt},7808:(t,e,n)=>{n.d(e,{Cm:()=>i,EC:()=>s,Uk:()=>o});var r=n(7311);function i(){return r.o.getInstance().getIdentifier()}function o(t){r.o.getInstance().setTokenGetter(t)}function s(){return r.o.getInstance().setupTokenManager()}},7809:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},7837:(t,e,n)=>{n.d(e,{C1:()=>s,Vj:()=>a,mM:()=>c});var r=n(3873),i=n(66),o=n(7275);const s=(t,e,n=3)=>{let o=0;const s=(0,r.A)(50,250);return(0,i.A)((n=>{const r=n.loaded,i=n.lengthComputable?n.total:void 0,a=r-o,c=s(a);o=r;t({loaded:r,total:i,progress:i?r/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&r<=i?(i-r)/c:void 0,event:n,lengthComputable:null!=i,[e?"download":"upload"]:!0})}),n)},a=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},c=t=>(...e)=>o.A.asap((()=>t(...e)))},7880:(t,e,n)=>{n.d(e,{A:()=>i});var r=/\s/;const i=function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e}},7887:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(7275);const i=function(t){function e(t,n,i,o){let s=t[o++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),c=o>=t.length;if(s=!s&&r.A.isArray(i)?i.length:s,c)return r.A.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a;i[s]&&r.A.isObject(i[s])||(i[s]=[]);return e(t,n,i[s],o)&&r.A.isArray(i[s])&&(i[s]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(i[s])),!a}if(r.A.isFormData(t)&&r.A.isFunction(t.entries)){const n={};return r.A.forEachEntry(t,((t,i)=>{e(function(t){return r.A.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),i,n,0)})),n}return null}},7919:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(6838),i=n(2384),o=n(4787),s=n(8207),a=n(1031);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const l=c},7926:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}},7960:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(9396),i=n(7422);const o=function(t){for(var e=(0,i.A)(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,(0,r.A)(s)]}return e}},7980:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(5154),i=n(9501),o=n(2141),s=n(7926),a=n(2049);const c=function(t,e,n){var c=(0,a.A)(t)?r.A:s.A,l=arguments.length<3;return c(t,(0,o.A)(e,4),n,l,i.A)}},8058:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(2641),i=n(9501),o=n(9922),s=n(2049);const a=function(t,e){return((0,s.A)(t)?r.A:i.A)(t,(0,o.A)(e))}},8104:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){return null==t?void 0:t[e]}},8167:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(8287),i=n(6748);void 0===globalThis.Buffer&&(globalThis.Buffer=r.hp),i.VV.ellipticCurve="secp256k1",i.VV.symmetricAlgorithm="aes-256-gcm";const o=new TextEncoder;function s(t,e){return(0,i.w)(t,o.encode(e)).toString("hex")}},8182:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(52);const i=function(t){return null==t?"":(0,r.A)(t)}},8207:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(169);const i=function(t){return(0,r.A)(this.__data__,t)>-1}},8262:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(9034),i=n(6787);function o(t,e,n){let o=!(0,r.A)(e);return t&&(o||0==n)?(0,i.A)(t,e):e}},8287:(t,e,n)=>{const r=n(7526),i=n(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=c,e.IS=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return l(t,e,n)}function l(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|y(t,e);let r=a(n);const i=r.write(t,e);i!==n&&(r=r.slice(0,i));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(K(t,Uint8Array)){const e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(K(t,ArrayBuffer)||t&&K(t.buffer,ArrayBuffer))return f(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(K(t,SharedArrayBuffer)||t&&K(t.buffer,SharedArrayBuffer)))return f(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const i=function(t){if(c.isBuffer(t)){const e=0|p(t.length),n=a(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||Y(t.length)?a(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function d(t){return u(t),a(t<0?0:0|p(t))}function h(t){const e=t.length<0?0:0|p(t.length),n=a(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function f(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,c.prototype),r}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function y(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||K(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(i)return r?-1:q(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,n);case"utf8":case"utf-8":return x(this,e,n);case"ascii":return L(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function _(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,i){let o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let r=-1;for(o=n;o<a;o++)if(l(t,o)===l(e,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(l(t,o+r)!==l(e,r)){n=!1;break}if(n)return o}return-1}function v(t,e,n,r){n=Number(n)||0;const i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=e.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(Y(r))return s;t[n+s]=r}return s}function w(t,e,n,r){return Z(q(e,t.length-n),t,n,r)}function A(t,e,n,r){return Z(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function E(t,e,n,r){return Z(W(e),t,n,r)}function B(t,e,n,r){return Z(function(t,e){let n,r,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function S(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function x(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i<n;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=n){let n,r,a,c;switch(s){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(o=c));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=t[i+1],r=t[i+2],a=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(t){const e=t.length;if(e<=I)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=I));return n}(r)}c.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return l(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return function(t,e,n){return u(t),t<=0?a(t):void 0!==e?"string"==typeof n?a(t).fill(e,n):a(t).fill(e):a(t)}(t,e,n)},c.allocUnsafe=function(t){return d(t)},c.allocUnsafeSlow=function(t){return d(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=c.allocUnsafe(e);let i=0;for(n=0;n<t.length;++n){let e=t[n];if(K(e,Uint8Array))i+e.length>r.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},c.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},c.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},c.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?x(this,0,t):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){let t="";const n=e.IS;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,i){if(K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const a=Math.min(o,s),l=this.slice(r,i),u=t.slice(e,n);for(let t=0;t<a;++t)if(l[t]!==u[t]){o=l[t],s=u[t];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return _(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return _(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":case"latin1":case"binary":return A(this,t,e,n);case"base64":return E(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const I=4096;function L(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function O(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function C(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=e;r<n;++r)i+=X[t[r]];return i}function k(t,e,n){const r=t.slice(e,n);let i="";for(let t=0;t<r.length-1;t+=2)i+=String.fromCharCode(r[t]+256*r[t+1]);return i}function T(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function P(t,e,n,r,i){D(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function M(t,e,n,r,i){D(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function F(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(t,e,n,r,o){return e=+e,n>>>=0,o||F(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function j(t,e,n,r,o){return e=+e,n>>>=0,o||F(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||T(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||T(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=J((function(t){$(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||z(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=J((function(t){$(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||z(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||T(t,e,this.length);let r=this[t],i=1,o=0;for(;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||T(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=J((function(t){$(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||z(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),c.prototype.readBigInt64BE=J((function(t){$(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||z(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)})),c.prototype.readFloatLE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){R(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=J((function(t,e=0){return P(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=J((function(t,e=0){return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=0,o=1,s=0;for(this[e]=255&t;++i<n&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,t,e,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=J((function(t,e=0){return P(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=J((function(t,e=0){return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return H(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return H(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const i=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),i},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{const o=c.isBuffer(t)?t:c.from(t,r),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=o[i%s]}return this};const N={};function U(t,e,n){N[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function V(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function D(t,e,n,r,i,o){if(t>n||t<e){const r="bigint"==typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new N.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){$(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||z(e,t.length-(n+1))}(r,i,o)}function $(t,e){if("number"!=typeof t)throw new N.ERR_INVALID_ARG_TYPE(e,"number",t)}function z(t,e,n){if(Math.floor(t)!==t)throw $(t,n),new N.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new N.ERR_BUFFER_OUT_OF_BOUNDS;throw new N.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function q(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Z(t,e,n,r){let i;for(i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function K(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!=t}const X=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function J(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},8291:(t,e,n)=>{function r(t){return t.layers.filter(s)}function i(t){return t.layers.filter(o)}function o(t){return t.source===a}function s(t){return t.source!==a}n.d(e,{Z3:()=>r,cq:()=>i});const a="indoor-planet"},8330:t=>{t.exports={rE:"8.5.0"}},8335:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"Map")},8346:(t,e,n)=>{function r(t){return"string"==typeof t&&Boolean(t.trim())}n.d(e,{t:()=>r})},8382:(t,e,n)=>{n.d(e,{A:()=>d});var r=n(3820),i=n(7275),o=n(6305),s=n(9887),a=n(8262),c=n(4662),l=n(7110),u=n(3967);const d=t=>{const e=(0,c.A)({},t);let n,{data:d,withXSRFToken:h,xsrfHeaderName:f,xsrfCookieName:p,headers:y,auth:g}=e;if(e.headers=y=l.A.from(y),e.url=(0,u.A)((0,a.A)(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),g&&y.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),i.A.isFormData(d))if(r.A.hasStandardBrowserEnv||r.A.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if(!1!==(n=y.getContentType())){const[t,...e]=n?n.split(";").map((t=>t.trim())).filter(Boolean):[];y.setContentType([t||"multipart/form-data",...e].join("; "))}if(r.A.hasStandardBrowserEnv&&(h&&i.A.isFunction(h)&&(h=h(e)),h||!1!==h&&(0,o.A)(e.url))){const t=f&&p&&s.A.read(p);t&&y.set(f,t)}return e}},8389:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(2559),i=n(2141),o=n(6224);const s=function(t,e){return t&&t.length?(0,r.A)(t,(0,i.A)(e,2),o.A):void 0}},8412:(t,e,n)=>{var r,i,o;n.d(e,{Kp:()=>r,_P:()=>i}),function(t){t.POINT="Point",t.POLYGON="Polygon"}(r||(r={})),function(t){t.POINT="Point",t.POLYGON="Polygon",t.GATE="Gate"}(i||(i={})),function(t){t.DEFAULT_NAME="DefaultName"}(o||(o={}))},8417:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(674),i=Object.prototype.hasOwnProperty;const o=function(t){var e=this.__data__;if(r.A){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},8446:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(9610),i=n(5254);const o=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,r.A)(t)}},8458:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(4062);function i(t,e,n){r.A.call(this,null==t?"canceled":t,r.A.ERR_CANCELED,e,n),this.name="CanceledError"}n(7275).A.inherits(i,r.A,{__CANCEL__:!0});const o=i},8489:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.gcm=e.ctr=e.cbc=e.utils=void 0,e.randomBytes=o,e.getWebcryptoSubtle=s,e.managedNonce=function(t){const{nonceLength:e}=t;return(0,i.anumber)(e),(n,...r)=>({encrypt(s,...a){const c=o(e),l=t(n,c,...r).encrypt(s,...a),u=(0,i.concatBytes)(c,l);return l.fill(0),u},decrypt(i,...o){const s=i.subarray(0,e),a=i.subarray(e);return t(n,s,...r).decrypt(a,...o)}})};const r=n(5297),i=n(6527);function o(t=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(t));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return Uint8Array.from(r.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}function s(){if(r.crypto&&"object"==typeof r.crypto.subtle&&null!=r.crypto.subtle)return r.crypto.subtle;throw new Error("crypto.subtle must be defined")}e.utils={async encrypt(t,e,n,r){const i=s(),o=await i.importKey("raw",t,e,!0,["encrypt"]),a=await i.encrypt(n,o,r);return new Uint8Array(a)},async decrypt(t,e,n,r){const i=s(),o=await i.importKey("raw",t,e,!0,["decrypt"]),a=await i.decrypt(n,o,r);return new Uint8Array(a)}};const a="AES-CBC",c="AES-CTR",l="AES-GCM";function u(t){return(n,r,o)=>{(0,i.abytes)(n),(0,i.abytes)(r);const s={name:t,length:8*n.length},u=function(t,e,n){if(t===a)return{name:a,iv:e};if(t===c)return{name:c,counter:e,length:64};if(t===l)return n?{name:l,iv:e,additionalData:n}:{name:l,iv:e};throw new Error("unknown aes block mode")}(t,r,o);let d=!1;return{encrypt(t){if((0,i.abytes)(t),d)throw new Error("Cannot encrypt() twice with same key / nonce");return d=!0,e.utils.encrypt(n,s,u,t)},decrypt:t=>((0,i.abytes)(t),e.utils.decrypt(n,s,u,t))}}}e.cbc=u(a),e.ctr=u(c),e.gcm=(()=>u(l))()},8510:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.encodeToCurve=e.hashToCurve=e.secp256k1_hasher=e.schnorr=e.secp256k1=void 0;const r=n(7076),i=n(9175),o=n(3562),s=n(1761),a=n(4967),c=n(1484),l=n(1705),u=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),d=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h=BigInt(0),f=BigInt(1),p=BigInt(2),y=(t,e)=>(t+e/p)/e;function g(t){const e=u,n=BigInt(3),r=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),c=BigInt(44),l=BigInt(88),d=t*t*t%e,h=d*d*t%e,f=(0,a.pow2)(h,n,e)*h%e,y=(0,a.pow2)(f,n,e)*h%e,g=(0,a.pow2)(y,p,e)*d%e,_=(0,a.pow2)(g,i,e)*g%e,b=(0,a.pow2)(_,o,e)*_%e,v=(0,a.pow2)(b,c,e)*b%e,w=(0,a.pow2)(v,l,e)*v%e,A=(0,a.pow2)(w,c,e)*b%e,E=(0,a.pow2)(A,n,e)*h%e,B=(0,a.pow2)(E,s,e)*_%e,S=(0,a.pow2)(B,r,e)*d%e,x=(0,a.pow2)(S,p,e);if(!m.eql(m.sqr(x),t))throw new Error("Cannot find square root");return x}const m=(0,a.Field)(u,void 0,void 0,{sqrt:g});e.secp256k1=(0,o.createCurve)({a:h,b:BigInt(7),Fp:m,n:d,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=d,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-f*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=n,s=BigInt("0x100000000000000000000000000000000"),c=y(o*t,e),l=y(-r*t,e);let u=(0,a.mod)(t-c*n-l*i,e),h=(0,a.mod)(-c*r-l*o,e);const p=u>s,g=h>s;if(p&&(u=e-u),g&&(h=e-h),u>s||h>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:p,k1:u,k2neg:g,k2:h}}}},r.sha256);const _={};function b(t,...e){let n=_[t];if(void 0===n){const e=(0,r.sha256)(Uint8Array.from(t,(t=>t.charCodeAt(0))));n=(0,c.concatBytes)(e,e),_[t]=n}return(0,r.sha256)((0,c.concatBytes)(n,...e))}const v=t=>t.toRawBytes(!0).slice(1),w=t=>(0,c.numberToBytesBE)(t,32),A=t=>(0,a.mod)(t,u),E=t=>(0,a.mod)(t,d),B=(()=>e.secp256k1.ProjectivePoint)();function S(t){let n=e.secp256k1.utils.normPrivateKeyToScalar(t),r=B.fromPrivateKey(n);return{scalar:r.hasEvenY()?n:E(-n),bytes:v(r)}}function x(t){(0,c.aInRange)("x",t,f,u);const e=A(t*t);let n=g(A(e*t+BigInt(7)));n%p!==h&&(n=A(-n));const r=new B(t,n,f);return r.assertValidity(),r}const I=c.bytesToNumberBE;function L(...t){return E(I(b("BIP0340/challenge",...t)))}function O(t){return S(t).bytes}function C(t,e,n=(0,i.randomBytes)(32)){const r=(0,c.ensureBytes)("message",t),{bytes:o,scalar:s}=S(e),a=(0,c.ensureBytes)("auxRand",n,32),l=w(s^I(b("BIP0340/aux",a))),u=b("BIP0340/nonce",l,o,r),d=E(I(u));if(d===h)throw new Error("sign failed: k is zero");const{bytes:f,scalar:p}=S(d),y=L(f,o,r),g=new Uint8Array(64);if(g.set(f,0),g.set(w(E(p+y*s)),32),!k(g,r,o))throw new Error("sign: Invalid signature produced");return g}function k(t,e,n){const r=(0,c.ensureBytes)("signature",t,64),i=(0,c.ensureBytes)("message",e),o=(0,c.ensureBytes)("publicKey",n,32);try{const t=x(I(o)),e=I(r.subarray(0,32));if(!(0,c.inRange)(e,f,u))return!1;const n=I(r.subarray(32,64));if(!(0,c.inRange)(n,f,d))return!1;const h=L(w(e),v(t),i),p=(s=t,a=n,l=E(-h),B.BASE.multiplyAndAddUnsafe(s,a,l));return!(!p||!p.hasEvenY()||p.toAffine().x!==e)}catch(t){return!1}var s,a,l}e.schnorr={getPublicKey:O,sign:C,verify:k,utils:{randomPrivateKey:e.secp256k1.utils.randomPrivateKey,lift_x:x,pointToBytes:v,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:b,mod:a.mod}};const T=(()=>(0,s.isogenyMap)(m,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((t=>t.map((t=>BigInt(t)))))))(),R=(()=>(0,l.mapToCurveSimpleSWU)(m,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:m.create(BigInt("-11"))}))();e.secp256k1_hasher=(0,s.createHasher)(e.secp256k1.ProjectivePoint,(t=>{const{x:e,y:n}=R(m.create(t[0]));return T(e,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:m.ORDER,m:1,k:128,expand:"xmd",hash:r.sha256}),e.hashToCurve=e.secp256k1_hasher.hashToCurve,e.encodeToCurve=e.secp256k1_hasher.encodeToCurve},8556:(t,e,n)=>{n.d(e,{A:()=>r});const r="undefined"!=typeof FormData?FormData:null},8562:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(7275);function i(t){return r.A.isObject(t)&&!0===t.isAxiosError}},8593:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(8776);const i=function(t){var e=(0,r.A)(t),n=e%1;return e==e?n?e-n:e:0}},8672:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},8683:(t,e,n)=>{n.d(e,{A:()=>u});var r=n(9152),i=n(9575),o=n(6013),s=n(8458),a=n(7110),c=n(6263);function l(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s.A(null,t)}function u(t){l(t),t.headers=a.A.from(t.headers),t.data=r.A.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return c.A.getAdapter(t.adapter||o.A.adapter)(t).then((function(e){return l(t),e.data=r.A.call(t,t.transformResponse,e),e.headers=a.A.from(e.headers),e}),(function(e){return(0,i.A)(e)||(l(t),e&&e.response&&(e.response.data=r.A.call(t,t.transformResponse,e.response),e.response.headers=a.A.from(e.response.headers))),Promise.reject(e)}))}},8693:(t,e,n)=>{n.d(e,{i:()=>u});var r=n(2658),i=n(5461),o=n(7808),s=n(9588),a=n(8167),c=n(8330);const l=["CORE_SDK",...(0,r.d)()];async function u(t,e,n,r){if(!t||!e)throw new Error("appId and secret are required");try{const u=await(0,i.l)(),h=await async function(t,e=d){return t??async function(t){return{identifier:await(0,o.Cm)(),origin:t,keyPlatform:"WEB",sdkVersion:c.rE}}(e)}(n,r),{identifier:f,sdkVersion:p,...y}=h,g={"Content-Type":"text/plain",sdkVersion:p},m=function(t,e){return(0,a.Z)(t,JSON.stringify(e))}(u,{appId:t,secret:e,identifier:f,timestamp:Date.now(),products:l,...y}),_=await fetch(s.R0,{method:"POST",body:m,headers:g});if(!_.ok){const t=await _.json(),{code:e,message:n}=t;if(401===_.status&&7001005===e)throw(0,i.U)(),new Error(n);throw new Error(n||`HTTP error! status: ${_.status}`)}const b=await _.json(),{accessToken:v,expiresIn:w}=b;return{accessToken:v,expiredTime:Date.now()+1e3*(w-90)}}catch(t){throw t instanceof Error?new Error(`Failed to get access token: ${t.message}`,{cause:t}):new Error(`Failed to get access token: ${String(t)}`)}}const d="undefined"!=typeof window&&window.location?.hostname?window.location.hostname:"restriction.test.example.com"},8719:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(9717),i=n(2789),o=n(4841),s=o.A&&o.A.isTypedArray;const a=s?(0,i.A)(s):r.A},8776:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(1694),i=1/0;const o=function(t){return t?(t=(0,r.A)(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},8813:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(674),i=Object.prototype.hasOwnProperty;const o=function(t){var e=this.__data__;return r.A?void 0!==e[t]:i.call(e,t)}},8823:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(3149),i=n(7271),o=n(1493),s=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,r.A)(t))return(0,o.A)(t);var e=(0,i.A)(t),n=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&n.push(a);return n}},8884:(t,e,n)=>{var r;n.d(e,{e:()=>r}),function(t){t.Access="access_control",t.Map="map"}(r||(r={}))},8900:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.xchacha20poly1305=e.chacha20poly1305=e._poly1305_aead=e.chacha12=e.chacha8=e.xchacha20=e.chacha20=e.chacha20orig=void 0,e.hchacha=a;const r=n(2506),i=n(1210),o=n(6527);function s(t,e,n,i,o,s=20){let a=t[0],c=t[1],l=t[2],u=t[3],d=e[0],h=e[1],f=e[2],p=e[3],y=e[4],g=e[5],m=e[6],_=e[7],b=o,v=n[0],w=n[1],A=n[2],E=a,B=c,S=l,x=u,I=d,L=h,O=f,C=p,k=y,T=g,R=m,P=_,M=b,F=v,H=w,j=A;for(let t=0;t<s;t+=2)E=E+I|0,M=(0,r.rotl)(M^E,16),k=k+M|0,I=(0,r.rotl)(I^k,12),E=E+I|0,M=(0,r.rotl)(M^E,8),k=k+M|0,I=(0,r.rotl)(I^k,7),B=B+L|0,F=(0,r.rotl)(F^B,16),T=T+F|0,L=(0,r.rotl)(L^T,12),B=B+L|0,F=(0,r.rotl)(F^B,8),T=T+F|0,L=(0,r.rotl)(L^T,7),S=S+O|0,H=(0,r.rotl)(H^S,16),R=R+H|0,O=(0,r.rotl)(O^R,12),S=S+O|0,H=(0,r.rotl)(H^S,8),R=R+H|0,O=(0,r.rotl)(O^R,7),x=x+C|0,j=(0,r.rotl)(j^x,16),P=P+j|0,C=(0,r.rotl)(C^P,12),x=x+C|0,j=(0,r.rotl)(j^x,8),P=P+j|0,C=(0,r.rotl)(C^P,7),E=E+L|0,j=(0,r.rotl)(j^E,16),R=R+j|0,L=(0,r.rotl)(L^R,12),E=E+L|0,j=(0,r.rotl)(j^E,8),R=R+j|0,L=(0,r.rotl)(L^R,7),B=B+O|0,M=(0,r.rotl)(M^B,16),P=P+M|0,O=(0,r.rotl)(O^P,12),B=B+O|0,M=(0,r.rotl)(M^B,8),P=P+M|0,O=(0,r.rotl)(O^P,7),S=S+C|0,F=(0,r.rotl)(F^S,16),k=k+F|0,C=(0,r.rotl)(C^k,12),S=S+C|0,F=(0,r.rotl)(F^S,8),k=k+F|0,C=(0,r.rotl)(C^k,7),x=x+I|0,H=(0,r.rotl)(H^x,16),T=T+H|0,I=(0,r.rotl)(I^T,12),x=x+I|0,H=(0,r.rotl)(H^x,8),T=T+H|0,I=(0,r.rotl)(I^T,7);let N=0;i[N++]=a+E|0,i[N++]=c+B|0,i[N++]=l+S|0,i[N++]=u+x|0,i[N++]=d+I|0,i[N++]=h+L|0,i[N++]=f+O|0,i[N++]=p+C|0,i[N++]=y+k|0,i[N++]=g+T|0,i[N++]=m+R|0,i[N++]=_+P|0,i[N++]=b+M|0,i[N++]=v+F|0,i[N++]=w+H|0,i[N++]=A+j|0}function a(t,e,n,i){let o=t[0],s=t[1],a=t[2],c=t[3],l=e[0],u=e[1],d=e[2],h=e[3],f=e[4],p=e[5],y=e[6],g=e[7],m=n[0],_=n[1],b=n[2],v=n[3];for(let t=0;t<20;t+=2)o=o+l|0,m=(0,r.rotl)(m^o,16),f=f+m|0,l=(0,r.rotl)(l^f,12),o=o+l|0,m=(0,r.rotl)(m^o,8),f=f+m|0,l=(0,r.rotl)(l^f,7),s=s+u|0,_=(0,r.rotl)(_^s,16),p=p+_|0,u=(0,r.rotl)(u^p,12),s=s+u|0,_=(0,r.rotl)(_^s,8),p=p+_|0,u=(0,r.rotl)(u^p,7),a=a+d|0,b=(0,r.rotl)(b^a,16),y=y+b|0,d=(0,r.rotl)(d^y,12),a=a+d|0,b=(0,r.rotl)(b^a,8),y=y+b|0,d=(0,r.rotl)(d^y,7),c=c+h|0,v=(0,r.rotl)(v^c,16),g=g+v|0,h=(0,r.rotl)(h^g,12),c=c+h|0,v=(0,r.rotl)(v^c,8),g=g+v|0,h=(0,r.rotl)(h^g,7),o=o+u|0,v=(0,r.rotl)(v^o,16),y=y+v|0,u=(0,r.rotl)(u^y,12),o=o+u|0,v=(0,r.rotl)(v^o,8),y=y+v|0,u=(0,r.rotl)(u^y,7),s=s+d|0,m=(0,r.rotl)(m^s,16),g=g+m|0,d=(0,r.rotl)(d^g,12),s=s+d|0,m=(0,r.rotl)(m^s,8),g=g+m|0,d=(0,r.rotl)(d^g,7),a=a+h|0,_=(0,r.rotl)(_^a,16),f=f+_|0,h=(0,r.rotl)(h^f,12),a=a+h|0,_=(0,r.rotl)(_^a,8),f=f+_|0,h=(0,r.rotl)(h^f,7),c=c+l|0,b=(0,r.rotl)(b^c,16),p=p+b|0,l=(0,r.rotl)(l^p,12),c=c+l|0,b=(0,r.rotl)(b^c,8),p=p+b|0,l=(0,r.rotl)(l^p,7);let w=0;i[w++]=o,i[w++]=s,i[w++]=a,i[w++]=c,i[w++]=m,i[w++]=_,i[w++]=b,i[w++]=v}e.chacha20orig=(0,r.createCipher)(s,{counterRight:!1,counterLength:8,allowShortKeys:!0}),e.chacha20=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,allowShortKeys:!1}),e.xchacha20=(0,r.createCipher)(s,{counterRight:!1,counterLength:8,extendNonceFn:a,allowShortKeys:!1}),e.chacha8=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,rounds:8}),e.chacha12=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,rounds:12});const c=new Uint8Array(16),l=(t,e)=>{t.update(e);const n=e.length%16;n&&t.update(c.subarray(n))},u=new Uint8Array(32);function d(t,e,n,r,s){const a=t(e,n,u),c=i.poly1305.create(a);s&&l(c,s),l(c,r);const d=(0,o.u64Lengths)(r.length,s?s.length:0,!0);c.update(d);const h=c.digest();return(0,o.clean)(a,d),h}e._poly1305_aead=t=>(e,n,r)=>{const i=16;return{encrypt(s,a){const c=s.length;(a=(0,o.getOutput)(c+i,a,!1)).set(s);const l=a.subarray(0,-16);t(e,n,l,l,1);const u=d(t,e,n,l,r);return a.set(u,c),(0,o.clean)(u),a},decrypt(s,a){a=(0,o.getOutput)(s.length-i,a,!1);const c=s.subarray(0,-16),l=s.subarray(-16),u=d(t,e,n,c,r);if(!(0,o.equalBytes)(l,u))throw new Error("invalid tag");return a.set(s.subarray(0,-16)),t(e,n,a,a,1),(0,o.clean)(u),a}}},e.chacha20poly1305=(0,o.wrapCipher)({blockSize:64,nonceLength:12,tagLength:16},(0,e._poly1305_aead)(e.chacha20)),e.xchacha20poly1305=(0,o.wrapCipher)({blockSize:64,nonceLength:24,tagLength:16},(0,e._poly1305_aead)(e.xchacha20))},8967:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(1275),i=n(3736),o=n(4099);const s=function(t,e,n,s,a,c){var l=1&n,u=t.length,d=e.length;if(u!=d&&!(l&&d>u))return!1;var h=c.get(t),f=c.get(e);if(h&&f)return h==e&&f==t;var p=-1,y=!0,g=2&n?new r.A:void 0;for(c.set(t,e),c.set(e,t);++p<u;){var m=t[p],_=e[p];if(s)var b=l?s(_,m,p,e,t,c):s(m,_,p,t,e,c);if(void 0!==b){if(b)continue;y=!1;break}if(g){if(!(0,i.A)(e,(function(t,e){if(!(0,o.A)(g,e)&&(m===t||a(m,t,n,s,c)))return g.push(e)}))){y=!1;break}}else if(m!==_&&!a(m,_,n,s,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},9008:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return t}},9034:(t,e,n)=>{function r(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}n.d(e,{A:()=>r})},9042:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(3831),i=n(4792),o=n(7422);const s=function(t){return(0,r.A)(t,o.A,i.A)}},9065:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.PrivateKey=void 0;var r=n(5295);Object.defineProperty(e,"PrivateKey",{enumerable:!0,get:function(){return r.PrivateKey}});var i=n(2557);Object.defineProperty(e,"PublicKey",{enumerable:!0,get:function(){return i.PublicKey}})},9084:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(6318),i=n(7346),o=n(7465);const s=function(t,e,n){for(var s=-1,a=e.length,c={};++s<a;){var l=e[s],u=(0,r.A)(t,l);n(u,l)&&(0,i.A)(c,(0,o.A)(l,t),u)}return c}},9109:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(9857),i=n(2302),o=n(9959);const s=r.A&&1/(0,o.A)(new r.A([,-0]))[1]==1/0?function(t){return new r.A(t)}:i.A},9152:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(7275),i=n(6013),o=n(7110);function s(t,e){const n=this||i.A,s=e||n,a=o.A.from(s.headers);let c=s.data;return r.A.forEach(t,(function(t){c=t.call(n,c,a.normalize(),e?e.status:void 0)})),a.normalize(),c}},9175:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wrapXOFConstructorWithOpts=e.wrapConstructorWithOpts=e.wrapConstructor=e.Hash=e.nextTick=e.swap32IfBE=e.byteSwapIfBE=e.swap8IfBE=e.isLE=void 0,e.isBytes=i,e.anumber=o,e.abytes=s,e.ahash=function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");o(t.outputLen),o(t.blockLen)},e.aexists=function(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(t,e){s(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)},e.u8=function(t){return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},e.u32=function(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))},e.clean=function(...t){for(let e=0;e<t.length;e++)t[e].fill(0)},e.createView=function(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)},e.rotr=function(t,e){return t<<32-e|t>>>e},e.rotl=function(t,e){return t<<e|t>>>32-e>>>0},e.byteSwap=a,e.byteSwap32=c,e.bytesToHex=function(t){if(s(t),l)return t.toHex();let e="";for(let n=0;n<t.length;n++)e+=u[t[n]];return e},e.hexToBytes=function(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(l)return Uint8Array.fromHex(t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,i=0;e<n;e++,i+=2){const n=h(t.charCodeAt(i)),o=h(t.charCodeAt(i+1));if(void 0===n||void 0===o){const e=t[i]+t[i+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+i)}r[e]=16*n+o}return r},e.asyncLoop=async function(t,n,r){let i=Date.now();for(let o=0;o<t;o++){r(o);const t=Date.now()-i;t>=0&&t<n||(await(0,e.nextTick)(),i+=t)}},e.utf8ToBytes=f,e.bytesToUtf8=function(t){return(new TextDecoder).decode(t)},e.toBytes=p,e.kdfInputToBytes=function(t){"string"==typeof t&&(t=f(t));return s(t),t},e.concatBytes=function(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];s(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const i=t[e];n.set(i,r),r+=i.length}return n},e.checkOpts=function(t,e){if(void 0!==e&&"[object Object]"!=={}.toString.call(e))throw new Error("options should be object or undefined");return Object.assign(t,e)},e.createHasher=y,e.createOptHasher=g,e.createXOFer=m,e.randomBytes=function(t=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(t));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return Uint8Array.from(r.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")};const r=n(5145);function i(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function o(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function s(t,...e){if(!i(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function a(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}function c(t){for(let e=0;e<t.length;e++)t[e]=a(t[e]);return t}e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],e.swap8IfBE=e.isLE?t=>t:t=>a(t),e.byteSwapIfBE=e.swap8IfBE,e.swap32IfBE=e.isLE?t=>t:c;const l=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),u=Array.from({length:256},((t,e)=>e.toString(16).padStart(2,"0")));const d={_0:48,_9:57,A:65,F:70,a:97,f:102};function h(t){return t>=d._0&&t<=d._9?t-d._0:t>=d.A&&t<=d.F?t-(d.A-10):t>=d.a&&t<=d.f?t-(d.a-10):void 0}function f(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}function p(t){return"string"==typeof t&&(t=f(t)),s(t),t}e.nextTick=async()=>{};function y(t){const e=e=>t().update(p(e)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function g(t){const e=(e,n)=>t(n).update(p(e)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}function m(t){const e=(e,n)=>t(n).update(p(e)).digest(),n=t({});return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=e=>t(e),e}e.Hash=class{},e.wrapConstructor=y,e.wrapConstructorWithOpts=g,e.wrapXOFConstructorWithOpts=m},9190:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},9205:(t,e,n)=>{n.d(e,{N:()=>r});class r{_indoor;_isEnabled=!0;constructor(t){this._indoor=t}enable(){this._isEnabled=!0,this._indoor.setAllowBuildingSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowBuildingSwitch(!1)}get isEnabled(){return this._isEnabled}}},9266:(t,e,n)=>{n.d(e,{Cm:()=>a.Cm,EC:()=>a.EC,KL:()=>i.KL,SN:()=>c.S,Sr:()=>l.S,Uk:()=>a.Uk,e$:()=>i.e$,iD:()=>s.i,xv:()=>u,yf:()=>o.y});var r=n(8330),i=n(9588),o=n(4969),s=n(8693),a=n(7808),c=n(2658),l=n(9489);const u=r.rE},9313:(t,e,n)=>{n.d(e,{F2:()=>c,pT:()=>a,qT:()=>l,xW:()=>u});var r=n(4545);const i=new r.H$,o=new r.w1,s=new r.FR;async function a(t){try{return(await i.searchByIds(t)).data.result.buildings[0]}catch(t){throw t}}async function c(t){try{const e=(await i.searchByFloorId(t)).data.result.buildings[0].buildingId;return await a(e)}catch(t){throw t}}async function l(t){try{return(await o.searchByIds(t)).data.result.venues[0]}catch(t){throw t}}async function u(t){try{return(await s.searchByIds([t])).data.result.pois[0]}catch(t){throw t}}},9378:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hexToPublicKey=e.convertPublicKeyFormat=e.getSharedPoint=e.getPublicKey=e.isValidPrivateKey=e.getValidSecret=void 0;var r=n(8489),i=n(459),o=n(8510),s=n(4928),a=n(1666),c=n(3503);e.getValidSecret=function(t){var n;do{n=(0,r.randomBytes)(a.SECRET_KEY_LENGTH)}while(!(0,e.isValidPrivateKey)(n,t));return n};e.isValidPrivateKey=function(t,e){return l(e||(0,s.ellipticCurve)(),(function(e){return e.utils.isValidPrivateKey(t)}),(function(){return!0}),(function(){return!0}))};e.getPublicKey=function(t,e){return l(e||(0,s.ellipticCurve)(),(function(e){return e.getPublicKey(t)}),(function(e){return e.getPublicKey(t)}),(function(e){return e.getPublicKey(t)}))};e.getSharedPoint=function(t,e,n,r){return l(r||(0,s.ellipticCurve)(),(function(r){return r.getSharedSecret(t,e,n)}),(function(n){return n.getSharedSecret(t,e)}),(function(n){return d(n,t,e)}))};e.convertPublicKeyFormat=function(t,e,n){return l(n||(0,s.ellipticCurve)(),(function(n){return n.getSharedSecret(BigInt(1),t,e)}),(function(){return t}),(function(){return t}))};function l(t,e,n,r){if("secp256k1"===t)return e(o.secp256k1);if("x25519"===t)return n(i.x25519);if("ed25519"===t)return r(i.ed25519);throw new Error("Not implemented")}e.hexToPublicKey=function(t,e){var n=(0,c.decodeHex)(t);return l(e||(0,s.ellipticCurve)(),(function(){return u(n)}),(function(){return n}),(function(){return n}))};var u=function(t){if(t.length===a.ETH_PUBLIC_KEY_SIZE){var e=new Uint8Array(1+t.length);return e.set([4]),e.set(t,1),e}return t},d=function(t,e,n){var r=t.utils.getExtendedPublicKey(e).scalar;return t.ExtendedPoint.fromHex(n).multiply(r).toRawBytes()}},9396:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(3149);const i=function(t){return t==t&&!(0,r.A)(t)}},9408:(t,e,n)=>{var r;n.d(e,{S:()=>r}),function(t){t.CHRISTMAS="christmas",t.HALLOWEEN="halloween",t.MAPPY_BEE="mappyBee",t.MAPXUS="mapxus",t.LANDS_D="landsD",t.COMMON="common",t.MAPXUS_V2="mapxus_v2",t.MAPXUS_DEFAULT="mapxus_default"}(r||(r={}))},9489:(t,e,n)=>{n.d(e,{S:()=>o});var r=n(1089),i=n(7311);const o=["unauthorized","initError"],s=globalThis,a=(0,r.A)(...o);i.o.getInstance().setGlobalDispatcher(a),s.MapxusMapEvents=s.MapxusMapEvents||{},s.MapxusMapEvents.on=function(t,e){return a.on(t,e),{off:()=>a.on(t,null)}}},9501:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(9841);const i=(0,n(3641).A)(r.A)},9520:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},9573:(t,e,n)=>{n.d(e,{V:()=>i});var r=n(2049);function i(t){const e=(0,r.A)(t),n=e&&!t.length||!e&&!t.trim().length;if(n)throw new Error("Parameter cannot be empty.");return n?null:e?t.filter((t=>!!t.trim())).map((t=>t.trim())).join(","):t.trim()}},9575:(t,e,n)=>{function r(t){return!(!t||!t.__CANCEL__)}n.d(e,{A:()=>r})},9588:(t,e,n)=>{n.d(e,{KL:()=>a,R0:()=>r,e$:()=>s,hl:()=>i,kk:()=>o});const r="https://map-api.mapxus.co.jp/accounts/v1/auth/secure-token",i="https://map-api.mapxus.co.jp/bms",o="https://map-sdk.mapxus.co.jp/prod/static/resources/manifest-z6frc5.dat",s=10,a=1},9610:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(9672),i=n(3149);const o=function(t){if(!(0,i.A)(t))return!1;var e=(0,r.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},9615:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=e.HMAC=void 0;const r=n(9175);class i extends r.Hash{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,(0,r.ahash)(t);const n=(0,r.toBytes)(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(n.length>i?t.create().update(n).digest():n);for(let t=0;t<o.length;t++)o[t]^=54;this.iHash.update(o),this.oHash=t.create();for(let t=0;t<o.length;t++)o[t]^=106;this.oHash.update(o),(0,r.clean)(o)}update(t){return(0,r.aexists)(this),this.iHash.update(t),this}digestInto(t){(0,r.aexists)(this),(0,r.abytes)(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:e,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:s}=this;return t.finished=r,t.destroyed=i,t.blockLen=o,t.outputLen=s,t.oHash=e._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}e.HMAC=i;e.hmac=(t,e,n)=>new i(t,e).update(n).digest(),e.hmac.create=(t,e)=>new i(t,e)},9644:(t,e,n)=>{n.d(e,{C:()=>r});class r{_floorSelector;_isEnabled;_position;constructor(t){this._floorSelector=t,this._position=t.position,this._isEnabled=this._floorSelector.enabled}enable(){this._isEnabled=!0,this._floorSelector.setEnabled(!0)}disable(){this._isEnabled=!1,this._floorSelector.setEnabled(!1)}setPosition(t,e){this._position=t,this._floorSelector.changePosition(this._floorSelector.position,t,e)}setStyle(t){this._floorSelector.setStyle(t)}get isEnabled(){return this._isEnabled}get position(){return this._position}}},9672:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(241),i=n(451),o=n(5606),s=r.A?r.A.toStringTag:void 0;const a=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?(0,i.A)(t):(0,o.A)(t)}},9703:(t,e,n)=>{n.d(e,{A:()=>s});var r=n(9672),i=n(2049),o=n(3098);const s=function(t){return"string"==typeof t||!(0,i.A)(t)&&(0,o.A)(t)&&"[object String]"==(0,r.A)(t)}},9717:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(9672),i=n(5254),o=n(3098),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;const a=function(t){return(0,o.A)(t)&&(0,i.A)(t.length)&&!!s[(0,r.A)(t)]}},9789:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t,e){return null!=t&&e in Object(t)}},9841:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(4057),i=n(7422);const o=function(t,e){return t&&(0,r.A)(t,e,i.A)}},9846:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(5547);const i=function(t){var e=(0,r.A)(this,t).delete(t);return this.size-=e?1:0,e}},9857:(t,e,n)=>{n.d(e,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"Set")},9875:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){return this.__data__.has(t)}},9887:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(7275);const i=n(3820).A.hasStandardBrowserEnv?{write(t,e,n,i,o,s){const a=[t+"="+encodeURIComponent(e)];r.A.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.A.isString(i)&&a.push("path="+i),r.A.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}}},9888:(t,e,n)=>{n.d(e,{x:()=>r});const r="1.9.0"},9914:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},9922:(t,e,n)=>{n.d(e,{A:()=>i});var r=n(9008);const i=function(t){return"function"==typeof t?t:r.A}},9959:(t,e,n)=>{n.d(e,{A:()=>r});const r=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},9983:(t,e,n)=>{n.d(e,{G:()=>r.G,Z:()=>i.Z});var r=n(4762),i=n(3442)}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t].call(o.exports,o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};r.d(i,{$O:()=>p.$O,B6:()=>h.B6,B_:()=>l.B,CA:()=>h.CA,Cm:()=>y.Cm,EC:()=>y.EC,EJ:()=>h.EJ,FR:()=>f.FR,GC:()=>d.G,H$:()=>f.H$,KL:()=>y.KL,Kp:()=>p.Kp,LJ:()=>p.LJ,MA:()=>p.MA,Nj:()=>h.Nj,SN:()=>s.SN,SV:()=>p.SV,Sr:()=>y.Sr,T5:()=>o.T,Uk:()=>y.Uk,Zx:()=>d.Z,_P:()=>p._P,e$:()=>y.e$,en:()=>p.en,iD:()=>y.iD,kx:()=>u.k,nH:()=>p.nH,pB:()=>c.p,pH:()=>a.p,v$:()=>f.v$,w1:()=>f.w1,xv:()=>y.xv,yf:()=>y.yf,ys:()=>p.ys,zq:()=>y.SN});var o=r(5462),s=r(5629),a=r(4116),c=r(5188),l=r(6733),u=r(6242),d=r(9983),h=r(1088),f=r(4545),p=r(3574),y=r(9266);const g=i.kx,m=i.en,_=i.GC,b=i.EJ,v=i.H$,w=i.Kp,A=i.Sr,E=i.CA,B=i.MA,S=i.Zx,x=i.SN,I=i.T5,L=i.pH,O=i.e$,C=i._P,k=i.KL,T=i.pB,R=i.LJ,P=i.FR,M=i.nH,F=i.ys,H=i.B_,j=i.v$,N=i.Nj,U=i.B6,V=i.SV,D=i.xv,$=i.$O,z=i.w1,G=i.zq,q=i.yf,W=i.iD,Z=i.Cm,K=i.Uk,Y=i.EC;export{g as AccessControl,m as AccessControlOrigin,_ as BuildingFilterControl,b as BuildingSelectorHandler,v as BuildingsService,w as DistanceSearchType,A as ERRORS,E as FloorSelectorHandler,B as FloorSwitchMode,S as FloorsControl,x as Indoor,I as Map,L as Marker,O as OFFSET,C as OrientationDistanceSearchType,k as PAGE,T as Poi,R as PoisOrderBy,P as PoisService,M as PoisSortBy,F as PresetLanguage,H as RoutePainter,j as RouteService,N as SwitchBuildingHandler,U as SwitchOutdoorHandler,V as ThemeType,D as VERSION,$ as VehicleType,z as VenuesService,G as __internal,q as convertBrowserLangToPresetLang,W as getAccessToken,Z as getIdentifier,K as setGetTokenAsync,Y as setupTokenManager};
2
+ import*as e from"maplibre-gl";var t={22:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.polyval=t.ghash=void 0,t._toGHASHKey=l;const r=n(6527),i=16,o=new Uint8Array(16),s=(0,r.u32)(o),a=(e,t,n,r)=>({s3:n<<31|r>>>1,s2:t<<31|n>>>1,s1:e<<31|t>>>1,s0:e>>>1^225<<24&-(1&(1&r))}),c=e=>(e>>>0&255)<<24|(e>>>8&255)<<16|(e>>>16&255)<<8|e>>>24&255;function l(e){e.reverse();const t=1&e[15];let n=0;for(let t=0;t<e.length;t++){const r=e[t];e[t]=r>>>1|n,n=(1&r)<<7}return e[0]^=225&-t,e}class u{constructor(e,t){this.blockLen=i,this.outputLen=i,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,e=(0,r.toBytes)(e),(0,r.abytes)(e,16);const n=(0,r.createView)(e);let o=n.getUint32(0,!1),s=n.getUint32(4,!1),l=n.getUint32(8,!1),u=n.getUint32(12,!1);const d=[];for(let e=0;e<128;e++)d.push({s0:c(o),s1:c(s),s2:c(l),s3:c(u)}),({s0:o,s1:s,s2:l,s3:u}=a(o,s,l,u));const h=(f=t||1024)>65536?8:f>1024?4:2;var f;if(![1,2,4,8].includes(h))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=h;const p=128/h,y=this.windowSize=2**h,g=[];for(let e=0;e<p;e++)for(let t=0;t<y;t++){let n=0,r=0,i=0,o=0;for(let s=0;s<h;s++){if(!(t>>>h-s-1&1))continue;const{s0:a,s1:c,s2:l,s3:u}=d[h*e+s];n^=a,r^=c,i^=l,o^=u}g.push({s0:n,s1:r,s2:i,s3:o})}this.t=g}_updateBlock(e,t,n,r){e^=this.s0,t^=this.s1,n^=this.s2,r^=this.s3;const{W:i,t:o,windowSize:s}=this;let a=0,c=0,l=0,u=0;const d=(1<<i)-1;let h=0;for(const f of[e,t,n,r])for(let e=0;e<4;e++){const t=f>>>8*e&255;for(let e=8/i-1;e>=0;e--){const n=t>>>i*e&d,{s0:r,s1:f,s2:p,s3:y}=o[h*s+n];a^=r,c^=f,l^=p,u^=y,h+=1}}this.s0=a,this.s1=c,this.s2=l,this.s3=u}update(e){(0,r.aexists)(this),e=(0,r.toBytes)(e),(0,r.abytes)(e);const t=(0,r.u32)(e),n=Math.floor(e.length/i),a=e.length%i;for(let e=0;e<n;e++)this._updateBlock(t[4*e+0],t[4*e+1],t[4*e+2],t[4*e+3]);return a&&(o.set(e.subarray(n*i)),this._updateBlock(s[0],s[1],s[2],s[3]),(0,r.clean)(s)),this}destroy(){const{t:e}=this;for(const t of e)t.s0=0,t.s1=0,t.s2=0,t.s3=0}digestInto(e){(0,r.aexists)(this),(0,r.aoutput)(e,this),this.finished=!0;const{s0:t,s1:n,s2:i,s3:o}=this,s=(0,r.u32)(e);return s[0]=t,s[1]=n,s[2]=i,s[3]=o,e}digest(){const e=new Uint8Array(i);return this.digestInto(e),this.destroy(),e}}class d extends u{constructor(e,t){e=(0,r.toBytes)(e),(0,r.abytes)(e);const n=l((0,r.copyBytes)(e));super(n,t),(0,r.clean)(n)}update(e){e=(0,r.toBytes)(e),(0,r.aexists)(this);const t=(0,r.u32)(e),n=e.length%i,a=Math.floor(e.length/i);for(let e=0;e<a;e++)this._updateBlock(c(t[4*e+3]),c(t[4*e+2]),c(t[4*e+1]),c(t[4*e+0]));return n&&(o.set(e.subarray(a*i)),this._updateBlock(c(s[3]),c(s[2]),c(s[1]),c(s[0])),(0,r.clean)(s)),this}digestInto(e){(0,r.aexists)(this),(0,r.aoutput)(e,this),this.finished=!0;const{s0:t,s1:n,s2:i,s3:o}=this,s=(0,r.u32)(e);return s[0]=t,s[1]=n,s[2]=i,s[3]=o,e.reverse()}}function h(e){const t=(t,n)=>e(n,t.length).update((0,r.toBytes)(t)).digest(),n=e(new Uint8Array(16),0);return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=(t,n)=>e(t,n),t}t.ghash=h((e,t)=>new u(e,t)),t.polyval=h((e,t)=>new d(e,t))},42:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},52:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(241),i=n(5572),o=n(2049),s=n(1882),a=r.A?r.A.prototype:void 0,c=a?a.toString:void 0;const l=function e(t){if("string"==typeof t)return t;if((0,o.A)(t))return(0,i.A)(t,e)+"";if((0,s.A)(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},66:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){let n,r,i=0,o=1e3/t;const s=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-i;a>=o?s(e,t):(n=e,r||(r=setTimeout(()=>{r=null,s(n)},o-a)))},()=>n&&s(n)]}},83:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.chacha20=t.xchacha20=void 0;var r=n(8900);t.xchacha20=function(e,t,n){return(0,r.xchacha20poly1305)(e,t,n)};t.chacha20=function(e,t,n){return(0,r.chacha20poly1305)(e,t,n)}},139:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(5267);const i="undefined"!=typeof URLSearchParams?URLSearchParams:r.A},169:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(6984);const i=function(e,t){for(var n=e.length;n--;)if((0,r.A)(e[n][0],t))return n;return-1}},180:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"Promise")},181:(e,t,n)=>{n.d(t,{d:()=>r});class r{static instance;_buildingUnitsMap;_ordinalsMap;_visitedBuildingUnits;constructor(){this._buildingUnitsMap=new Map,this._ordinalsMap=new Map,this._visitedBuildingUnits=[]}static getInstance(){return r.instance||(r.instance=new r),r.instance}getBuildingUnitByVenue(e){return this._buildingUnitsMap.get(e)}setBuildingUnitByVenue(e,t){this._buildingUnitsMap.set(e,t)}getOrdinalByBuildingUnit(e){return this._ordinalsMap.get(e)}setOrdinalByBuildingUnit(e,t){this._ordinalsMap.set(e,t)}getVisitedBuildingUnits(){return this._visitedBuildingUnits}addVisitedBuildingUnit(e){this._visitedBuildingUnits.push(e),this._visitedBuildingUnits.length>100&&(this._visitedBuildingUnits=this._visitedBuildingUnits.slice(this._visitedBuildingUnits.length-100))}}},241:(e,t,n)=>{n.d(t,{A:()=>r});const r=n(1917).A.Symbol},244:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSharedKey=t.deriveKey=void 0;var r=n(6527),i=n(4139),o=n(7076);t.deriveKey=function(e,t,n){return(0,i.hkdf)(o.sha256,e,t,n,32)};t.getSharedKey=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.deriveKey)(r.concatBytes.apply(void 0,e))}},251:(e,t)=>{t.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,l=c>>1,u=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+e[t+d],d+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=r;u>0;s=256*s+e[t+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=l}return(f?-1:1)*s*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var s,a,c,l=8*o-i-1,u=(1<<l)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*c-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[n+f]=255&s,f+=p,s/=256,l-=8);e[n+f-p]|=128*y}},367:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){return function(n){return e(t(n))}}},402:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(241),i=n(3988),o=n(6984),s=n(8967),a=n(4877),c=n(9959),l=r.A?r.A.prototype:void 0,u=l?l.valueOf:void 0;const d=function(e,t,n,r,l,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i.A(e),new i.A(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,o.A)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a.A;case"[object Set]":var p=1&r;if(f||(f=c.A),e.size!=t.size&&!p)return!1;var y=h.get(e);if(y)return y==t;r|=2,h.set(e,t);var g=(0,s.A)(f(e),f(t),r,l,d,h);return h.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},423:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(9520),i=n(1788),o=n(2049),s=n(4616),a=n(5353),c=n(8719),l=Object.prototype.hasOwnProperty;const u=function(e,t){var n=(0,o.A)(e),u=!n&&(0,i.A)(e),d=!n&&!u&&(0,s.A)(e),h=!n&&!u&&!d&&(0,c.A)(e),f=n||u||d||h,p=f?(0,r.A)(e.length,String):[],y=p.length;for(var g in e)!t&&!l.call(e,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||(0,a.A)(g,y))||p.push(g);return p}},451:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(241),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r.A?r.A.toStringTag:void 0;const c=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}},459:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hash_to_ristretto255=t.hashToRistretto255=t.RistrettoPoint=t.encodeToCurve=t.hashToCurve=t.ed25519_hasher=t.edwardsToMontgomery=t.x25519=t.ed25519ph=t.ed25519ctx=t.ed25519=t.ED25519_TORSION_SUBGROUP=void 0,t.edwardsToMontgomeryPub=B,t.edwardsToMontgomeryPriv=function(e){const t=E.hash(e.subarray(0,32));return E.adjustScalarBytes(t).subarray(0,32)};const r=n(7076),i=n(9175),o=n(2422),s=n(6377),a=n(1761),c=n(4967),l=n(2854),u=n(8627),d=BigInt(0),h=BigInt(1),f=BigInt(2),p=BigInt(3),y=BigInt(5),g=BigInt(8),m={p:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:g,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")};function _(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),i=BigInt(80),o=m.p,s=e*e%o*e%o,a=(0,c.pow2)(s,f,o)*s%o,l=(0,c.pow2)(a,h,o)*e%o,u=(0,c.pow2)(l,y,o)*l%o,d=(0,c.pow2)(u,t,o)*u%o,p=(0,c.pow2)(d,n,o)*d%o,g=(0,c.pow2)(p,r,o)*p%o,_=(0,c.pow2)(g,i,o)*g%o,b=(0,c.pow2)(_,i,o)*g%o,v=(0,c.pow2)(b,t,o)*u%o;return{pow_p_5_8:(0,c.pow2)(v,f,o)*e%o,b2:s}}function b(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const v=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function w(e,t){const n=m.p,r=(0,c.mod)(t*t*t,n),i=_(e*(0,c.mod)(r*r*t,n)).pow_p_5_8;let o=(0,c.mod)(e*r*i,n);const s=(0,c.mod)(t*o*o,n),a=o,l=(0,c.mod)(o*v,n),u=s===e,d=s===(0,c.mod)(-e,n),h=s===(0,c.mod)(-e*v,n);return u&&(o=a),(d||h)&&(o=l),(0,c.isNegativeLE)(o,n)&&(o=(0,c.mod)(-o,n)),{isValid:u||d,value:o}}t.ED25519_TORSION_SUBGROUP=["0100000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a","0000000000000000000000000000000000000000000000000000000000000080","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05","ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f","26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85","0000000000000000000000000000000000000000000000000000000000000000","c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa"];const A=(()=>(0,c.Field)(m.p,void 0,!0))(),E=(()=>({...m,Fp:A,hash:r.sha512,adjustScalarBytes:b,uvRatio:w}))();function S(e,t,n){if(t.length>255)throw new Error("Context is too big");return(0,i.concatBytes)((0,i.utf8ToBytes)("SigEd25519 no Ed25519 collisions"),new Uint8Array([n?1:0,t.length]),t,e)}function B(e){const n=(0,u.ensureBytes)("pub",e),{y:r}=t.ed25519.Point.fromHex(n),i=BigInt(1);return A.toBytes(A.create((i+r)*A.inv(i-r)))}t.ed25519=(0,s.twistedEdwards)(E),t.ed25519ctx=(0,s.twistedEdwards)({...E,domain:S}),t.ed25519ph=(0,s.twistedEdwards)(Object.assign({},E,{domain:S,prehash:r.sha512})),t.x25519=(()=>{const e=m.p;return(0,l.montgomery)({P:e,type:"x25519",powPminus2:t=>{const{pow_p_5_8:n,b2:r}=_(t);return(0,c.mod)((0,c.pow2)(n,p,e)*r,e)},adjustScalarBytes:b})})(),t.edwardsToMontgomery=B;const x=(()=>(A.ORDER+p)/g)(),I=(()=>A.pow(f,x))(),L=(()=>A.sqrt(A.neg(A.ONE)))();const O=(()=>(0,c.FpSqrtEven)(A,A.neg(BigInt(486664))))();function k(e){const{xMn:t,xMd:n,yMn:r,yMd:i}=function(e){const t=(A.ORDER-y)/g,n=BigInt(486662);let r=A.sqr(e);r=A.mul(r,f);let i=A.add(r,A.ONE),o=A.neg(n),s=A.sqr(i),a=A.mul(s,i),c=A.mul(r,n);c=A.mul(c,o),c=A.add(c,s),c=A.mul(c,o);let l=A.sqr(a);s=A.sqr(l),l=A.mul(l,a),l=A.mul(l,c),s=A.mul(s,l);let u=A.pow(s,t);u=A.mul(u,l);let d=A.mul(u,L);s=A.sqr(u),s=A.mul(s,a);let p=A.eql(s,c),m=A.cmov(d,u,p),_=A.mul(o,r),b=A.mul(u,e);b=A.mul(b,I);let v=A.mul(b,L),w=A.mul(c,r);s=A.sqr(b),s=A.mul(s,a);let E=A.eql(s,w),S=A.cmov(v,b,E);s=A.sqr(m),s=A.mul(s,a);let B=A.eql(s,c),x=A.cmov(_,o,B),O=A.cmov(S,m,B),k=A.isOdd(O);return O=A.cmov(O,A.neg(O),B!==k),{xMn:x,xMd:i,yMn:O,yMd:h}}(e);let o=A.mul(t,i);o=A.mul(o,O);let s=A.mul(n,r),a=A.sub(t,n),l=A.add(t,n),u=A.mul(s,l),d=A.eql(u,A.ZERO);o=A.cmov(o,A.ZERO,d),s=A.cmov(s,A.ONE,d),a=A.cmov(a,A.ONE,d),l=A.cmov(l,A.ONE,d);const[p,m]=(0,c.FpInvertBatch)(A,[s,l],!0);return{x:A.mul(o,p),y:A.mul(a,m)}}function T(e){if(!(e instanceof V))throw new Error("RistrettoPoint expected")}t.ed25519_hasher=(0,a.createHasher)(t.ed25519.Point,e=>k(e[0]),{DST:"edwards25519_XMD:SHA-512_ELL2_RO_",encodeDST:"edwards25519_XMD:SHA-512_ELL2_NU_",p:A.ORDER,m:1,k:128,expand:"xmd",hash:r.sha512}),t.hashToCurve=t.ed25519_hasher.hashToCurve,t.encodeToCurve=t.ed25519_hasher.encodeToCurve;const C=v,R=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),P=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),F=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),M=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),U=e=>w(h,e),H=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),j=e=>t.ed25519.CURVE.Fp.create((0,u.bytesToNumberLE)(e)&H);function N(e){const{d:n}=t.ed25519.CURVE,r=t.ed25519.CURVE.Fp.ORDER,i=t.ed25519.CURVE.Fp.create,o=i(C*e*e),s=i((o+h)*F);let a=BigInt(-1);const l=i((a-n*o)*i(o+n));let{isValid:u,value:d}=w(s,l),f=i(d*e);(0,c.isNegativeLE)(f,r)||(f=i(-f)),u||(d=f),u||(a=o);const p=i(a*(o-h)*M-l),y=d*d,g=i((d+d)*l),m=i(p*R),_=i(h-y),b=i(h+y);return new t.ed25519.Point(i(g*b),i(_*m),i(m*b),i(g*_))}class V{constructor(e){this.ep=e}static fromAffine(e){return new V(t.ed25519.Point.fromAffine(e))}static hashToCurve(e){e=(0,u.ensureBytes)("ristrettoHash",e,64);const t=N(j(e.slice(0,32))),n=N(j(e.slice(32,64)));return new V(t.add(n))}static fromBytes(e){return(0,i.abytes)(e),this.fromHex(e)}static fromHex(e){e=(0,u.ensureBytes)("ristrettoHex",e,32);const{a:n,d:r}=t.ed25519.CURVE,i=A.ORDER,o=A.create,s="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",a=j(e);if(!(0,u.equalBytes)((0,u.numberToBytesLE)(a,32),e)||(0,c.isNegativeLE)(a,i))throw new Error(s);const l=o(a*a),f=o(h+n*l),p=o(h-n*l),y=o(f*f),g=o(p*p),m=o(n*r*y-g),{isValid:_,value:b}=U(o(m*g)),v=o(b*p),w=o(b*v*m);let E=o((a+a)*v);(0,c.isNegativeLE)(E,i)&&(E=o(-E));const S=o(f*w),B=o(E*S);if(!_||(0,c.isNegativeLE)(B,i)||S===d)throw new Error(s);return new V(new t.ed25519.Point(E,S,h,B))}static msm(e,n){const r=(0,c.Field)(t.ed25519.CURVE.n,t.ed25519.CURVE.nBitLength);return(0,o.pippenger)(V,r,e,n)}toBytes(){let{ex:e,ey:t,ez:n,et:r}=this.ep;const i=A.ORDER,o=A.create,s=o(o(n+t)*o(n-t)),a=o(e*t),l=o(a*a),{value:d}=U(o(s*l)),h=o(d*s),f=o(d*a),p=o(h*f*r);let y;if((0,c.isNegativeLE)(r*p,i)){let n=o(t*C),r=o(e*C);e=n,t=r,y=o(h*P)}else y=f;(0,c.isNegativeLE)(e*p,i)&&(t=o(-t));let g=o((n-t)*y);return(0,c.isNegativeLE)(g,i)&&(g=o(-g)),(0,u.numberToBytesLE)(g,32)}toRawBytes(){return this.toBytes()}toHex(){return(0,u.bytesToHex)(this.toBytes())}toString(){return this.toHex()}equals(e){T(e);const{ex:t,ey:n}=this.ep,{ex:r,ey:i}=e.ep,o=A.create,s=o(t*i)===o(n*r),a=o(n*i)===o(t*r);return s||a}add(e){return T(e),new V(this.ep.add(e.ep))}subtract(e){return T(e),new V(this.ep.subtract(e.ep))}multiply(e){return new V(this.ep.multiply(e))}multiplyUnsafe(e){return new V(this.ep.multiplyUnsafe(e))}double(){return new V(this.ep.double())}negate(){return new V(this.ep.negate())}}t.RistrettoPoint=(V.BASE||(V.BASE=new V(t.ed25519.Point.BASE)),V.ZERO||(V.ZERO=new V(t.ed25519.Point.ZERO)),V);t.hashToRistretto255=(e,t)=>{const n=t.DST,o="string"==typeof n?(0,i.utf8ToBytes)(n):n,s=(0,a.expand_message_xmd)(e,o,64,r.sha512);return V.hashToCurve(s)},t.hash_to_ristretto255=t.hashToRistretto255},469:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unsafe=t.aeskwp=t.aeskw=t.siv=t.gcmsiv=t.gcm=t.cfb=t.cbc=t.ecb=t.ctr=void 0;const r=n(22),i=n(6527),o=16,s=new Uint8Array(o);function a(e){return e<<1^283&-(e>>7)}function c(e,t){let n=0;for(;t>0;t>>=1)n^=e&-(1&t),e=a(e);return n}const l=(()=>{const e=new Uint8Array(256);for(let t=0,n=1;t<256;t++,n^=a(n))e[t]=n;const t=new Uint8Array(256);t[0]=99;for(let n=0;n<255;n++){let r=e[255-n];r|=r<<8,t[e[n]]=255&(r^r>>4^r>>5^r>>6^r>>7^99)}return(0,i.clean)(e),t})(),u=l.map((e,t)=>l.indexOf(t)),d=e=>e<<24|e>>>8,h=e=>e<<8|e>>>24,f=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function p(e,t){if(256!==e.length)throw new Error("Wrong sbox length");const n=new Uint32Array(256).map((n,r)=>t(e[r])),r=n.map(h),i=r.map(h),o=i.map(h),s=new Uint32Array(65536),a=new Uint32Array(65536),c=new Uint16Array(65536);for(let t=0;t<256;t++)for(let l=0;l<256;l++){const u=256*t+l;s[u]=n[t]^r[l],a[u]=i[t]^o[l],c[u]=e[t]<<8|e[l]}return{sbox:e,sbox2:c,T0:n,T1:r,T2:i,T3:o,T01:s,T23:a}}const y=p(l,e=>c(e,3)<<24|e<<16|e<<8|c(e,2)),g=p(u,e=>c(e,11)<<24|c(e,13)<<16|c(e,9)<<8|c(e,14)),m=(()=>{const e=new Uint8Array(16);for(let t=0,n=1;t<16;t++,n=a(n))e[t]=n;return e})();function _(e){(0,i.abytes)(e);const t=e.length;if(![16,24,32].includes(t))throw new Error("aes: invalid key size, should be 16, 24 or 32, got "+t);const{sbox2:n}=y,r=[];(0,i.isAligned32)(e)||r.push(e=(0,i.copyBytes)(e));const o=(0,i.u32)(e),s=o.length,a=e=>w(n,e,e,e,e),c=new Uint32Array(t+28);c.set(o);for(let e=s;e<c.length;e++){let t=c[e-1];e%s===0?t=a(d(t))^m[e/s-1]:s>6&&e%s===4&&(t=a(t)),c[e]=c[e-s]^t}return(0,i.clean)(...r),c}function b(e){const t=_(e),n=t.slice(),r=t.length,{sbox2:o}=y,{T0:s,T1:a,T2:c,T3:l}=g;for(let e=0;e<r;e+=4)for(let i=0;i<4;i++)n[e+i]=t[r-e-4+i];(0,i.clean)(t);for(let e=4;e<r-4;e++){const t=n[e],r=w(o,t,t,t,t);n[e]=s[255&r]^a[r>>>8&255]^c[r>>>16&255]^l[r>>>24]}return n}function v(e,t,n,r,i,o){return e[n<<8&65280|r>>>8&255]^t[i>>>8&65280|o>>>24&255]}function w(e,t,n,r,i){return e[255&t|65280&n]|e[r>>>16&255|i>>>16&65280]<<16}function A(e,t,n,r,i){const{sbox2:o,T01:s,T23:a}=y;let c=0;t^=e[c++],n^=e[c++],r^=e[c++],i^=e[c++];const l=e.length/4-2;for(let o=0;o<l;o++){const o=e[c++]^v(s,a,t,n,r,i),l=e[c++]^v(s,a,n,r,i,t),u=e[c++]^v(s,a,r,i,t,n),d=e[c++]^v(s,a,i,t,n,r);t=o,n=l,r=u,i=d}return{s0:e[c++]^w(o,t,n,r,i),s1:e[c++]^w(o,n,r,i,t),s2:e[c++]^w(o,r,i,t,n),s3:e[c++]^w(o,i,t,n,r)}}function E(e,t,n,r,i){const{sbox2:o,T01:s,T23:a}=g;let c=0;t^=e[c++],n^=e[c++],r^=e[c++],i^=e[c++];const l=e.length/4-2;for(let o=0;o<l;o++){const o=e[c++]^v(s,a,t,i,r,n),l=e[c++]^v(s,a,n,t,i,r),u=e[c++]^v(s,a,r,n,t,i),d=e[c++]^v(s,a,i,r,n,t);t=o,n=l,r=u,i=d}return{s0:e[c++]^w(o,t,i,r,n),s1:e[c++]^w(o,n,t,i,r),s2:e[c++]^w(o,r,n,t,i),s3:e[c++]^w(o,i,r,n,t)}}function S(e,t,n,r){(0,i.abytes)(t,o),(0,i.abytes)(n);const s=n.length;r=(0,i.getOutput)(s,r),(0,i.complexOverlapBytes)(n,r);const a=t,c=(0,i.u32)(a);let{s0:l,s1:u,s2:d,s3:h}=A(e,c[0],c[1],c[2],c[3]);const f=(0,i.u32)(n),p=(0,i.u32)(r);for(let t=0;t+4<=f.length;t+=4){p[t+0]=f[t+0]^l,p[t+1]=f[t+1]^u,p[t+2]=f[t+2]^d,p[t+3]=f[t+3]^h;let n=1;for(let e=a.length-1;e>=0;e--)n=n+(255&a[e])|0,a[e]=255&n,n>>>=8;({s0:l,s1:u,s2:d,s3:h}=A(e,c[0],c[1],c[2],c[3]))}const y=o*Math.floor(f.length/4);if(y<s){const e=new Uint32Array([l,u,d,h]),t=(0,i.u8)(e);for(let e=y,i=0;e<s;e++,i++)r[e]=n[e]^t[i];(0,i.clean)(e)}return r}function B(e,t,n,r,s){(0,i.abytes)(n,o),(0,i.abytes)(r),s=(0,i.getOutput)(r.length,s);const a=n,c=(0,i.u32)(a),l=(0,i.createView)(a),u=(0,i.u32)(r),d=(0,i.u32)(s),h=t?0:12,f=r.length;let p=l.getUint32(h,t),{s0:y,s1:g,s2:m,s3:_}=A(e,c[0],c[1],c[2],c[3]);for(let n=0;n+4<=u.length;n+=4)d[n+0]=u[n+0]^y,d[n+1]=u[n+1]^g,d[n+2]=u[n+2]^m,d[n+3]=u[n+3]^_,p=p+1>>>0,l.setUint32(h,p,t),({s0:y,s1:g,s2:m,s3:_}=A(e,c[0],c[1],c[2],c[3]));const b=o*Math.floor(u.length/4);if(b<f){const e=new Uint32Array([y,g,m,_]),t=(0,i.u8)(e);for(let e=b,n=0;e<f;e++,n++)s[e]=r[e]^t[n];(0,i.clean)(e)}return s}function x(e){if((0,i.abytes)(e),e.length%o!==0)throw new Error("aes-(cbc/ecb).decrypt ciphertext should consist of blocks with size 16")}function I(e,t,n){(0,i.abytes)(e);let r=e.length;const s=r%o;if(!t&&0!==s)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");(0,i.isAligned32)(e)||(e=(0,i.copyBytes)(e));const a=(0,i.u32)(e);if(t){let e=o-s;e||(e=o),r+=e}n=(0,i.getOutput)(r,n),(0,i.complexOverlapBytes)(e,n);return{b:a,o:(0,i.u32)(n),out:n}}function L(e,t){if(!t)return e;const n=e.length;if(!n)throw new Error("aes/pcks5: empty ciphertext not allowed");const r=e[n-1];if(r<=0||r>16)throw new Error("aes/pcks5: wrong padding");const i=e.subarray(0,-r);for(let t=0;t<r;t++)if(e[n-t-1]!==r)throw new Error("aes/pcks5: wrong padding");return i}function O(e){const t=new Uint8Array(16),n=(0,i.u32)(t);t.set(e);const r=o-e.length;for(let e=o-r;e<o;e++)t[e]=r;return n}function k(e,t,n,r,o){const s=o?o.length:0,a=e.create(n,r.length+s);o&&a.update(o);const c=(0,i.u64Lengths)(8*r.length,8*s,t);a.update(r),a.update(c);const l=a.digest();return(0,i.clean)(c),l}t.ctr=(0,i.wrapCipher)({blockSize:16,nonceLength:16},function(e,t){function n(n,r){if((0,i.abytes)(n),void 0!==r&&((0,i.abytes)(r),!(0,i.isAligned32)(r)))throw new Error("unaligned destination");const o=_(e),s=(0,i.copyBytes)(t),a=[o,s];(0,i.isAligned32)(n)||a.push(n=(0,i.copyBytes)(n));const c=S(o,s,n,r);return(0,i.clean)(...a),c}return{encrypt:(e,t)=>n(e,t),decrypt:(e,t)=>n(e,t)}}),t.ecb=(0,i.wrapCipher)({blockSize:16},function(e,t={}){const n=!t.disablePadding;return{encrypt(t,r){const{b:o,o:s,out:a}=I(t,n,r),c=_(e);let l=0;for(;l+4<=o.length;){const{s0:e,s1:t,s2:n,s3:r}=A(c,o[l+0],o[l+1],o[l+2],o[l+3]);s[l++]=e,s[l++]=t,s[l++]=n,s[l++]=r}if(n){const e=O(t.subarray(4*l)),{s0:n,s1:r,s2:i,s3:o}=A(c,e[0],e[1],e[2],e[3]);s[l++]=n,s[l++]=r,s[l++]=i,s[l++]=o}return(0,i.clean)(c),a},decrypt(t,r){x(t);const o=b(e);r=(0,i.getOutput)(t.length,r);const s=[o];(0,i.isAligned32)(t)||s.push(t=(0,i.copyBytes)(t)),(0,i.complexOverlapBytes)(t,r);const a=(0,i.u32)(t),c=(0,i.u32)(r);for(let e=0;e+4<=a.length;){const{s0:t,s1:n,s2:r,s3:i}=E(o,a[e+0],a[e+1],a[e+2],a[e+3]);c[e++]=t,c[e++]=n,c[e++]=r,c[e++]=i}return(0,i.clean)(...s),L(r,n)}}}),t.cbc=(0,i.wrapCipher)({blockSize:16,nonceLength:16},function(e,t,n={}){const r=!n.disablePadding;return{encrypt(n,o){const s=_(e),{b:a,o:c,out:l}=I(n,r,o);let u=t;const d=[s];(0,i.isAligned32)(u)||d.push(u=(0,i.copyBytes)(u));const h=(0,i.u32)(u);let f=h[0],p=h[1],y=h[2],g=h[3],m=0;for(;m+4<=a.length;)f^=a[m+0],p^=a[m+1],y^=a[m+2],g^=a[m+3],({s0:f,s1:p,s2:y,s3:g}=A(s,f,p,y,g)),c[m++]=f,c[m++]=p,c[m++]=y,c[m++]=g;if(r){const e=O(n.subarray(4*m));f^=e[0],p^=e[1],y^=e[2],g^=e[3],({s0:f,s1:p,s2:y,s3:g}=A(s,f,p,y,g)),c[m++]=f,c[m++]=p,c[m++]=y,c[m++]=g}return(0,i.clean)(...d),l},decrypt(n,o){x(n);const s=b(e);let a=t;const c=[s];(0,i.isAligned32)(a)||c.push(a=(0,i.copyBytes)(a));const l=(0,i.u32)(a);o=(0,i.getOutput)(n.length,o),(0,i.isAligned32)(n)||c.push(n=(0,i.copyBytes)(n)),(0,i.complexOverlapBytes)(n,o);const u=(0,i.u32)(n),d=(0,i.u32)(o);let h=l[0],f=l[1],p=l[2],y=l[3];for(let e=0;e+4<=u.length;){const t=h,n=f,r=p,i=y;h=u[e+0],f=u[e+1],p=u[e+2],y=u[e+3];const{s0:o,s1:a,s2:c,s3:l}=E(s,h,f,p,y);d[e++]=o^t,d[e++]=a^n,d[e++]=c^r,d[e++]=l^i}return(0,i.clean)(...c),L(o,r)}}}),t.cfb=(0,i.wrapCipher)({blockSize:16,nonceLength:16},function(e,t){function n(n,r,s){(0,i.abytes)(n);const a=n.length;if(s=(0,i.getOutput)(a,s),(0,i.overlapBytes)(n,s))throw new Error("overlapping src and dst not supported.");const c=_(e);let l=t;const u=[c];(0,i.isAligned32)(l)||u.push(l=(0,i.copyBytes)(l)),(0,i.isAligned32)(n)||u.push(n=(0,i.copyBytes)(n));const d=(0,i.u32)(n),h=(0,i.u32)(s),f=r?h:d,p=(0,i.u32)(l);let y=p[0],g=p[1],m=p[2],b=p[3];for(let e=0;e+4<=d.length;){const{s0:t,s1:n,s2:r,s3:i}=A(c,y,g,m,b);h[e+0]=d[e+0]^t,h[e+1]=d[e+1]^n,h[e+2]=d[e+2]^r,h[e+3]=d[e+3]^i,y=f[e++],g=f[e++],m=f[e++],b=f[e++]}const v=o*Math.floor(d.length/4);if(v<a){({s0:y,s1:g,s2:m,s3:b}=A(c,y,g,m,b));const e=(0,i.u8)(new Uint32Array([y,g,m,b]));for(let t=v,r=0;t<a;t++,r++)s[t]=n[t]^e[r];(0,i.clean)(e)}return(0,i.clean)(...u),s}return{encrypt:(e,t)=>n(e,!0,t),decrypt:(e,t)=>n(e,!1,t)}}),t.gcm=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(e,t,n){if(t.length<8)throw new Error("aes/gcm: invalid nonce length");function o(e,t,i){const o=k(r.ghash,!1,e,i,n);for(let e=0;e<t.length;e++)o[e]^=t[e];return o}function a(){const n=_(e),o=s.slice(),a=s.slice();if(B(n,!1,a,a,o),12===t.length)a.set(t);else{const e=s.slice(),n=(0,i.createView)(e);(0,i.setBigUint64)(n,8,BigInt(8*t.length),!1);const c=r.ghash.create(o).update(t).update(e);c.digestInto(a),c.destroy()}return{xk:n,authKey:o,counter:a,tagMask:B(n,!1,a,s)}}return{encrypt(e){const{xk:t,authKey:n,counter:r,tagMask:s}=a(),c=new Uint8Array(e.length+16),l=[t,n,r,s];(0,i.isAligned32)(e)||l.push(e=(0,i.copyBytes)(e)),B(t,!1,r,e,c.subarray(0,e.length));const u=o(n,s,c.subarray(0,c.length-16));return l.push(u),c.set(u,e.length),(0,i.clean)(...l),c},decrypt(e){const{xk:t,authKey:n,counter:r,tagMask:s}=a(),c=[t,n,s,r];(0,i.isAligned32)(e)||c.push(e=(0,i.copyBytes)(e));const l=e.subarray(0,-16),u=e.subarray(-16),d=o(n,s,l);if(c.push(d),!(0,i.equalBytes)(d,u))throw new Error("aes/gcm: invalid ghash tag");const h=B(t,!1,r,l);return(0,i.clean)(...c),h}}});const T=(e,t,n)=>r=>{if(!Number.isSafeInteger(r)||t>r||r>n){throw new Error(e+": expected value in range "+("["+t+".."+n+"]")+", got "+r)}};function C(e){return e instanceof Uint32Array||ArrayBuffer.isView(e)&&"Uint32Array"===e.constructor.name}function R(e,t){if((0,i.abytes)(t,16),!C(e))throw new Error("_encryptBlock accepts result of expandKeyLE");const n=(0,i.u32)(t);let{s0:r,s1:o,s2:s,s3:a}=A(e,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=o,n[2]=s,n[3]=a,t}function P(e,t){if((0,i.abytes)(t,16),!C(e))throw new Error("_decryptBlock accepts result of expandKeyLE");const n=(0,i.u32)(t);let{s0:r,s1:o,s2:s,s3:a}=E(e,n[0],n[1],n[2],n[3]);return n[0]=r,n[1]=o,n[2]=s,n[3]=a,t}t.gcmsiv=(0,i.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(e,t,n){const o=T("AAD",0,2**36),s=T("plaintext",0,2**36),a=T("nonce",12,12),c=T("ciphertext",16,2**36+16);function l(){const n=_(e),r=new Uint8Array(e.length),o=new Uint8Array(16),s=[n,r];let a=t;(0,i.isAligned32)(a)||s.push(a=(0,i.copyBytes)(a));const c=(0,i.u32)(a);let l=0,u=c[0],d=c[1],h=c[2],f=0;for(const e of[o,r].map(i.u32)){const t=(0,i.u32)(e);for(let e=0;e<t.length;e+=2){const{s0:r,s1:i}=A(n,l,u,d,h);t[e+0]=r,t[e+1]=i,l=++f}}const p={authKey:o,encKey:_(r)};return(0,i.clean)(...s),p}function u(e,o,s){const a=k(r.polyval,!0,o,s,n);for(let e=0;e<12;e++)a[e]^=t[e];a[15]&=127;const c=(0,i.u32)(a);let l=c[0],u=c[1],d=c[2],h=c[3];return({s0:l,s1:u,s2:d,s3:h}=A(e,l,u,d,h)),c[0]=l,c[1]=u,c[2]=d,c[3]=h,a}function d(e,t,n){let r=(0,i.copyBytes)(t);r[15]|=128;const o=B(e,!0,r,n);return(0,i.clean)(r),o}return(0,i.abytes)(e,16,24,32),a(t.length),void 0!==n&&o(n.length),{encrypt(e){s(e.length);const{encKey:t,authKey:n}=l(),r=u(t,n,e),o=[t,n,r];(0,i.isAligned32)(e)||o.push(e=(0,i.copyBytes)(e));const a=new Uint8Array(e.length+16);return a.set(r,e.length),a.set(d(t,r,e)),(0,i.clean)(...o),a},decrypt(e){c(e.length);const t=e.subarray(-16),{encKey:n,authKey:r}=l(),o=[n,r];(0,i.isAligned32)(e)||o.push(e=(0,i.copyBytes)(e));const s=d(n,t,e.subarray(0,-16)),a=u(n,r,s);if(o.push(a),!(0,i.equalBytes)(t,a))throw(0,i.clean)(...o),new Error("invalid polyval tag");return(0,i.clean)(...o),s}}}),t.siv=t.gcmsiv;const F={encrypt(e,t){if(t.length>=2**32)throw new Error("plaintext should be less than 4gb");const n=_(e);if(16===t.length)R(n,t);else{const e=(0,i.u32)(t);let r=e[0],o=e[1];for(let t=0,i=1;t<6;t++)for(let t=2;t<e.length;t+=2,i++){const{s0:s,s1:a,s2:c,s3:l}=A(n,r,o,e[t],e[t+1]);r=s,o=a^f(i),e[t]=c,e[t+1]=l}e[0]=r,e[1]=o}n.fill(0)},decrypt(e,t){if(t.length-8>=2**32)throw new Error("ciphertext should be less than 4gb");const n=b(e),r=t.length/8-1;if(1===r)P(n,t);else{const e=(0,i.u32)(t);let o=e[0],s=e[1];for(let t=0,i=6*r;t<6;t++)for(let t=2*r;t>=1;t-=2,i--){s^=f(i);const{s0:r,s1:a,s2:c,s3:l}=E(n,o,s,e[t],e[t+1]);o=r,s=a,e[t]=c,e[t+1]=l}e[0]=o,e[1]=s}n.fill(0)}},M=new Uint8Array(8).fill(166);t.aeskw=(0,i.wrapCipher)({blockSize:8},e=>({encrypt(t){if(!t.length||t.length%8!=0)throw new Error("invalid plaintext length");if(8===t.length)throw new Error("8-byte keys not allowed in AESKW, use AESKWP instead");const n=(0,i.concatBytes)(M,t);return F.encrypt(e,n),n},decrypt(t){if(t.length%8!=0||t.length<24)throw new Error("invalid ciphertext length");const n=(0,i.copyBytes)(t);if(F.decrypt(e,n),!(0,i.equalBytes)(n.subarray(0,8),M))throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8)}}));const U=2790873510;t.aeskwp=(0,i.wrapCipher)({blockSize:8},e=>({encrypt(t){if(!t.length)throw new Error("invalid plaintext length");const n=8*Math.ceil(t.length/8),r=new Uint8Array(8+n);r.set(t,8);const o=(0,i.u32)(r);return o[0]=U,o[1]=f(t.length),F.encrypt(e,r),r},decrypt(t){if(t.length<16)throw new Error("invalid ciphertext length");const n=(0,i.copyBytes)(t),r=(0,i.u32)(n);F.decrypt(e,n);const o=f(r[1])>>>0,s=8*Math.ceil(o/8);if(r[0]!==U||n.length-8!==s)throw new Error("integrity check failed");for(let e=o;e<s;e++)if(0!==n[8+e])throw new Error("integrity check failed");return n.subarray(0,8).fill(0),n.subarray(8,8+o)}})),t.unsafe={expandKeyLE:_,expandKeyDecLE:b,encrypt:A,decrypt:E,encryptBlock:R,decryptBlock:P,ctrCounter:S,ctr32:B}},520:(e,t,n)=>{n.d(t,{z:()=>i});var r=n(1682);class i{_container;_anchor;_theme;constructor(e){this._theme=e.theme?e.theme:"default"}onAdd(e){return this._container=(0,r.r)("div","maplibregl-ctrl mapxus-ctrl-attribution",e.getContainer()),this._anchor=(0,r.r)("a","mapxus-attribution",this._container),this._anchor.target="_blank",this._setCopyrightInfo(this._theme),this._anchor.setAttribute("aria-label","Mapxus attribution"),this._anchor.setAttribute("rel","noopener"),this._container.appendChild(this._anchor),this._container}onRemove(){(0,r.Z)(this._container)}getDefaultPosition(){return"bottom-right"}changeTheme(e){this._setCopyrightInfo(e)}_setCopyrightInfo(e){this._anchor.innerText="landsD"===e?"© The Government of the Hong Kong SAR":"©Mapxus driven by Kawasaki ©OpenStreetMap contributors","landsD"===e&&(this._anchor.href="https://www.map.gov.hk/gm/")}}},549:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(5547);const i=function(e,t){var n=(0,r.A)(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},605:(e,t,n)=>{function r(e){return function(t){return e.apply(null,t)}}n.d(t,{A:()=>r})},608:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(6632);const i=function(e){var t=(0,r.A)(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},640:(e,t,n)=>{n.d(t,{A:()=>s});var r,i=n(3161),o=(r=/[^.]+$/.exec(i.A&&i.A.keys&&i.A.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";const s=function(e){return!!o&&o in e}},665:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(7275),i=n(4062),o=n(3119);function s(e){return r.A.isPlainObject(e)||r.A.isArray(e)}function a(e){return r.A.endsWith(e,"[]")?e.slice(0,-2):e}function c(e,t,n){return e?e.concat(t).map(function(e,t){return e=a(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const l=r.A.toFlatObject(r.A,{},null,function(e){return/^is[A-Z]/.test(e)});const u=function(e,t,n){if(!r.A.isObject(e))throw new TypeError("target must be an object");t=t||new(o.A||FormData);const u=(n=r.A.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!r.A.isUndefined(t[e])})).metaTokens,d=n.visitor||g,h=n.dots,f=n.indexes,p=(n.Blob||"undefined"!=typeof Blob&&Blob)&&r.A.isSpecCompliantForm(t);if(!r.A.isFunction(d))throw new TypeError("visitor must be a function");function y(e){if(null===e)return"";if(r.A.isDate(e))return e.toISOString();if(r.A.isBoolean(e))return e.toString();if(!p&&r.A.isBlob(e))throw new i.A("Blob is not supported. Use a Buffer instead.");return r.A.isArrayBuffer(e)||r.A.isTypedArray(e)?p&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function g(e,n,i){let o=e;if(e&&!i&&"object"==typeof e)if(r.A.endsWith(n,"{}"))n=u?n:n.slice(0,-2),e=JSON.stringify(e);else if(r.A.isArray(e)&&function(e){return r.A.isArray(e)&&!e.some(s)}(e)||(r.A.isFileList(e)||r.A.endsWith(n,"[]"))&&(o=r.A.toArray(e)))return n=a(n),o.forEach(function(e,i){!r.A.isUndefined(e)&&null!==e&&t.append(!0===f?c([n],i,h):null===f?n:n+"[]",y(e))}),!1;return!!s(e)||(t.append(c(i,n,h),y(e)),!1)}const m=[],_=Object.assign(l,{defaultVisitor:g,convertValue:y,isVisitable:s});if(!r.A.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!r.A.isUndefined(n)){if(-1!==m.indexOf(n))throw Error("Circular reference detected in "+i.join("."));m.push(n),r.A.forEach(n,function(n,o){!0===(!(r.A.isUndefined(n)||null===n)&&d.call(t,n,r.A.isString(o)?o.trim():o,i,_))&&e(n,i?i.concat(o):[o])}),m.pop()}}(e),t}},674:(e,t,n)=>{n.d(t,{A:()=>r});const r=(0,n(702).A)(Object,"create")},702:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(1979),i=n(8104);const o=function(e,t){var n=(0,i.A)(e,t);return(0,r.A)(n)?n:void 0}},759:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(3265),i=n(1038);const o=function(e,t,n,o){var s=n.length,a=s,c=!o;if(null==e)return!a;for(e=Object(e);s--;){var l=n[s];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++s<a;){var u=(l=n[s])[0],d=e[u],h=l[1];if(c&&l[2]){if(void 0===d&&!(u in e))return!1}else{var f=new r.A;if(o)var p=o(d,h,u,e,t,f);if(!(void 0===p?(0,i.A)(h,d,3,o,f):p))return!1}}return!0}},805:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){return function(t){return null==t?void 0:t[e]}}},807:(e,t,n)=>{n.d(t,{A:()=>r});const r={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},853:(e,t,n)=>{async function r(e,t){if(!e.hasImage(t))try{const n=await e.loadImage(t);e.addImage(t,n.data)}catch(e){throw new Error(e)}}n.d(t,{K:()=>r})},901:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(1882);const i=function(e){if("string"==typeof e||(0,r.A)(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},1031:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(169);const i=function(e,t){var n=this.__data__,i=(0,r.A)(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},1038:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(3244),i=n(3098);const o=function e(t,n,o,s,a){return t===n||(null==t||null==n||!(0,i.A)(t)&&!(0,i.A)(n)?t!=t&&n!=n:(0,r.A)(t,n,o,s,e,a))}},1052:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(1917);const i=function(){return r.A.Date.now()}},1076:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7275),i=n(665),o=n(3820);function s(e,t){return(0,i.A)(e,new o.A.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return o.A.isNode&&r.A.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}},1088:(e,t,n)=>{n.d(t,{B6:()=>s.B,CA:()=>i.C,EJ:()=>r.E,Nj:()=>o.N});var r=n(2468),i=n(9644),o=n(9205),s=n(6294)},1089:(e,t,n)=>{n.d(t,{A:()=>c});var r={value:()=>{}};function i(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new o(r)}function o(e){this._=e}function s(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function a(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=r,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}o.prototype=i.prototype={constructor:o,on:function(e,t){var n,r,i=this._,o=(r=i,(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),c=-1,l=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++c<l;)if(n=(e=o[c]).type)i[n]=a(i[n],e.name,t);else if(null==t)for(n in i)i[n]=a(i[n],e.name,null);return this}for(;++c<l;)if((n=(e=o[c]).type)&&(n=s(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new o(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};const c=i},1121:(e,t,n)=>{n.d(t,{A:()=>i});var r=Function.prototype.toString;const i=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1210:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.poly1305=void 0,t.wrapConstructorWithKey=s;const r=n(6527),i=(e,t)=>255&e[t++]|(255&e[t++])<<8;class o{constructor(e){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,e=(0,r.toBytes)(e),(0,r.abytes)(e,32);const t=i(e,0),n=i(e,2),o=i(e,4),s=i(e,6),a=i(e,8),c=i(e,10),l=i(e,12),u=i(e,14);this.r[0]=8191&t,this.r[1]=8191&(t>>>13|n<<3),this.r[2]=7939&(n>>>10|o<<6),this.r[3]=8191&(o>>>7|s<<9),this.r[4]=255&(s>>>4|a<<12),this.r[5]=a>>>1&8190,this.r[6]=8191&(a>>>14|c<<2),this.r[7]=8065&(c>>>11|l<<5),this.r[8]=8191&(l>>>8|u<<8),this.r[9]=u>>>5&127;for(let t=0;t<8;t++)this.pad[t]=i(e,16+2*t)}process(e,t,n=!1){const r=n?0:2048,{h:o,r:s}=this,a=s[0],c=s[1],l=s[2],u=s[3],d=s[4],h=s[5],f=s[6],p=s[7],y=s[8],g=s[9],m=i(e,t+0),_=i(e,t+2),b=i(e,t+4),v=i(e,t+6),w=i(e,t+8),A=i(e,t+10),E=i(e,t+12),S=i(e,t+14);let B=o[0]+(8191&m),x=o[1]+(8191&(m>>>13|_<<3)),I=o[2]+(8191&(_>>>10|b<<6)),L=o[3]+(8191&(b>>>7|v<<9)),O=o[4]+(8191&(v>>>4|w<<12)),k=o[5]+(w>>>1&8191),T=o[6]+(8191&(w>>>14|A<<2)),C=o[7]+(8191&(A>>>11|E<<5)),R=o[8]+(8191&(E>>>8|S<<8)),P=o[9]+(S>>>5|r),F=0,M=F+B*a+x*(5*g)+I*(5*y)+L*(5*p)+O*(5*f);F=M>>>13,M&=8191,M+=k*(5*h)+T*(5*d)+C*(5*u)+R*(5*l)+P*(5*c),F+=M>>>13,M&=8191;let U=F+B*c+x*a+I*(5*g)+L*(5*y)+O*(5*p);F=U>>>13,U&=8191,U+=k*(5*f)+T*(5*h)+C*(5*d)+R*(5*u)+P*(5*l),F+=U>>>13,U&=8191;let H=F+B*l+x*c+I*a+L*(5*g)+O*(5*y);F=H>>>13,H&=8191,H+=k*(5*p)+T*(5*f)+C*(5*h)+R*(5*d)+P*(5*u),F+=H>>>13,H&=8191;let j=F+B*u+x*l+I*c+L*a+O*(5*g);F=j>>>13,j&=8191,j+=k*(5*y)+T*(5*p)+C*(5*f)+R*(5*h)+P*(5*d),F+=j>>>13,j&=8191;let N=F+B*d+x*u+I*l+L*c+O*a;F=N>>>13,N&=8191,N+=k*(5*g)+T*(5*y)+C*(5*p)+R*(5*f)+P*(5*h),F+=N>>>13,N&=8191;let V=F+B*h+x*d+I*u+L*l+O*c;F=V>>>13,V&=8191,V+=k*a+T*(5*g)+C*(5*y)+R*(5*p)+P*(5*f),F+=V>>>13,V&=8191;let D=F+B*f+x*h+I*d+L*u+O*l;F=D>>>13,D&=8191,D+=k*c+T*a+C*(5*g)+R*(5*y)+P*(5*p),F+=D>>>13,D&=8191;let $=F+B*p+x*f+I*h+L*d+O*u;F=$>>>13,$&=8191,$+=k*l+T*c+C*a+R*(5*g)+P*(5*y),F+=$>>>13,$&=8191;let z=F+B*y+x*p+I*f+L*h+O*d;F=z>>>13,z&=8191,z+=k*u+T*l+C*c+R*a+P*(5*g),F+=z>>>13,z&=8191;let G=F+B*g+x*y+I*p+L*f+O*h;F=G>>>13,G&=8191,G+=k*d+T*u+C*l+R*c+P*a,F+=G>>>13,G&=8191,F=(F<<2)+F|0,F=F+M|0,M=8191&F,F>>>=13,U+=F,o[0]=M,o[1]=U,o[2]=H,o[3]=j,o[4]=N,o[5]=V,o[6]=D,o[7]=$,o[8]=z,o[9]=G}finalize(){const{h:e,pad:t}=this,n=new Uint16Array(10);let i=e[1]>>>13;e[1]&=8191;for(let t=2;t<10;t++)e[t]+=i,i=e[t]>>>13,e[t]&=8191;e[0]+=5*i,i=e[0]>>>13,e[0]&=8191,e[1]+=i,i=e[1]>>>13,e[1]&=8191,e[2]+=i,n[0]=e[0]+5,i=n[0]>>>13,n[0]&=8191;for(let t=1;t<10;t++)n[t]=e[t]+i,i=n[t]>>>13,n[t]&=8191;n[9]-=8192;let o=(1^i)-1;for(let e=0;e<10;e++)n[e]&=o;o=~o;for(let t=0;t<10;t++)e[t]=e[t]&o|n[t];e[0]=65535&(e[0]|e[1]<<13),e[1]=65535&(e[1]>>>3|e[2]<<10),e[2]=65535&(e[2]>>>6|e[3]<<7),e[3]=65535&(e[3]>>>9|e[4]<<4),e[4]=65535&(e[4]>>>12|e[5]<<1|e[6]<<14),e[5]=65535&(e[6]>>>2|e[7]<<11),e[6]=65535&(e[7]>>>5|e[8]<<8),e[7]=65535&(e[8]>>>8|e[9]<<5);let s=e[0]+t[0];e[0]=65535&s;for(let n=1;n<8;n++)s=(e[n]+t[n]|0)+(s>>>16)|0,e[n]=65535&s;(0,r.clean)(n)}update(e){(0,r.aexists)(this),e=(0,r.toBytes)(e),(0,r.abytes)(e);const{buffer:t,blockLen:n}=this,i=e.length;for(let r=0;r<i;){const o=Math.min(n-this.pos,i-r);if(o!==n)t.set(e.subarray(r,r+o),this.pos),this.pos+=o,r+=o,this.pos===n&&(this.process(t,0,!1),this.pos=0);else for(;n<=i-r;r+=n)this.process(e,r)}return this}destroy(){(0,r.clean)(this.h,this.r,this.buffer,this.pad)}digestInto(e){(0,r.aexists)(this),(0,r.aoutput)(e,this),this.finished=!0;const{buffer:t,h:n}=this;let{pos:i}=this;if(i){for(t[i++]=1;i<16;i++)t[i]=0;this.process(t,0,!0)}this.finalize();let o=0;for(let t=0;t<8;t++)e[o++]=n[t]>>>0,e[o++]=n[t]>>>8;return e}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}}function s(e){const t=(t,n)=>e(n).update((0,r.toBytes)(t)).digest(),n=e(new Uint8Array(32));return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}t.poly1305=s(e=>new o(e))},1275:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(5917),i=n(5668),o=n(9875);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r.A;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=i.A,s.prototype.has=o.A;const a=s},1470:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(5572),i=n(2141),o=n(9084),s=n(3973);const a=function(e,t){if(null==e)return{};var n=(0,r.A)((0,s.A)(e),function(e){return[e]});return t=(0,i.A)(t),(0,o.A)(e,n,function(e,n){return t(e,n[0])})}},1472:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(3454),i=n(8776),o=n(9313);const s=function(e,t,n){return t=(0,i.A)(t),void 0===n?(n=t,t=0):n=(0,i.A)(n),e=(0,o.A)(e),(0,r.A)(e,t,n)}},1493:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1521:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(5547);const i=function(e){return(0,r.A)(this,e).get(e)}},1532:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7919);const i=function(){this.__data__=new r.A,this.size=0}},1635:(e,t,n)=>{n.d(t,{Cl:()=>r,YH:()=>o,fX:()=>s,sH:()=>i});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})}function o(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;function s(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},1666:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AEAD_TAG_LENGTH=t.XCHACHA20_NONCE_LENGTH=t.CURVE25519_PUBLIC_KEY_SIZE=t.ETH_PUBLIC_KEY_SIZE=t.UNCOMPRESSED_PUBLIC_KEY_SIZE=t.COMPRESSED_PUBLIC_KEY_SIZE=t.SECRET_KEY_LENGTH=void 0,t.SECRET_KEY_LENGTH=32,t.COMPRESSED_PUBLIC_KEY_SIZE=33,t.UNCOMPRESSED_PUBLIC_KEY_SIZE=65,t.ETH_PUBLIC_KEY_SIZE=64,t.CURVE25519_PUBLIC_KEY_SIZE=32,t.XCHACHA20_NONCE_LENGTH=24,t.AEAD_TAG_LENGTH=16},1682:(e,t,n)=>{function r(e){e.parentNode&&e.parentNode.removeChild(e)}function i(e,t,n){const r=document.createElement(e);return t&&(r.className=t),n&&n.appendChild(r),r}n.d(t,{Z:()=>r,r:()=>i})},1694:(e,t,n)=>{n.d(t,{F0:()=>u,F2:()=>c,pT:()=>a,qT:()=>l,xW:()=>d});var r=n(4545);const i=new r.H$,o=new r.w1,s=new r.FR;async function a(e){try{return(await i.searchByIds(e)).data.result.buildings[0]}catch(e){throw e}}async function c(e){try{const t=(await i.searchByFloorId(e)).data.result.buildings[0].buildingId;return await a(t)}catch(e){throw e}}async function l(e){try{return(await o.searchByIds(e)).data.result.venues[0]}catch(e){throw e}}async function u(e){try{return(await o.searchBySharedFloorId(e)).data.result.venues[0]}catch(e){throw e}}async function d(e){try{return(await s.searchByIds([e])).data.result.pois[0]}catch(e){throw e}}},1705:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DER=t.DERErr=void 0,t._legacyHelperEquat=p,t._legacyHelperNormPriv=y,t.weierstrassN=g,t.weierstrassPoints=function(e){const{CURVE:t,curveOpts:n}=b(e),r=g(t,n);return function(e,t){const{Fp:n,Fn:r}=t;function o(e){return(0,i.inRange)(e,u,r.ORDER)}const s=p(n,e.a,e.b),a=y(r,e.allowedPrivateKeyLengths,e.wrapPrivateKey);return Object.assign({},{CURVE:e,Point:t,ProjectivePoint:t,normPrivateKeyToScalar:a,weierstrassEquation:s,isWithinCurveOrder:o})}(e,r)},t.ecdsa=_,t.weierstrass=function(e){const{CURVE:t,curveOpts:n,ecdsaOpts:r}=function(e){const{CURVE:t,curveOpts:n}=b(e),r={hash:e.hash,hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,ecdsaOpts:r}}(e),i=_(g(t,n),r,n);return function(e,t){return Object.assign({},t,{ProjectivePoint:t.Point,CURVE:e})}(e,i)},t.SWUFpSqrtRatio=v,t.mapToCurveSimpleSWU=function(e,t){(0,s.validateField)(e);const{A:n,B:r,Z:i}=t;if(!e.isValid(n)||!e.isValid(r)||!e.isValid(i))throw new Error("mapToCurveSimpleSWU: invalid opts");const o=v(e,i);if(!e.isOdd)throw new Error("Field does not have .isOdd()");return t=>{let a,c,l,u,d,h,f,p;a=e.sqr(t),a=e.mul(a,i),c=e.sqr(a),c=e.add(c,a),l=e.add(c,e.ONE),l=e.mul(l,r),u=e.cmov(i,e.neg(c),!e.eql(c,e.ZERO)),u=e.mul(u,n),c=e.sqr(l),h=e.sqr(u),d=e.mul(h,n),c=e.add(c,d),c=e.mul(c,l),h=e.mul(h,u),d=e.mul(h,r),c=e.add(c,d),f=e.mul(a,l);const{isValid:y,value:g}=o(c,h);p=e.mul(a,t),p=e.mul(p,g),f=e.cmov(f,l,y),p=e.cmov(p,g,y);const m=e.isOdd(t)===e.isOdd(p);p=e.cmov(e.neg(p),p,m);const _=(0,s.FpInvertBatch)(e,[u],!0)[0];return f=e.mul(f,_),{x:f,y:p}}};const r=n(9615),i=n(8627),o=n(2422),s=n(4967);function a(e){void 0!==e.lowS&&(0,i.abool)("lowS",e.lowS),void 0!==e.prehash&&(0,i.abool)("prehash",e.prehash)}class c extends Error{constructor(e=""){super(e)}}t.DERErr=c,t.DER={Err:c,_tlv:{encode:(e,n)=>{const{Err:r}=t.DER;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(1&n.length)throw new r("tlv.encode: unpadded data");const o=n.length/2,s=(0,i.numberToHexUnpadded)(o);if(s.length/2&128)throw new r("tlv.encode: long form length too big");const a=o>127?(0,i.numberToHexUnpadded)(s.length/2|128):"";return(0,i.numberToHexUnpadded)(e)+a+s+n},decode(e,n){const{Err:r}=t.DER;let i=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(n.length<2||n[i++]!==e)throw new r("tlv.decode: wrong tlv");const o=n[i++];let s=0;if(!!(128&o)){const e=127&o;if(!e)throw new r("tlv.decode(long): indefinite length not supported");if(e>4)throw new r("tlv.decode(long): byte length is too big");const t=n.subarray(i,i+e);if(t.length!==e)throw new r("tlv.decode: length bytes not complete");if(0===t[0])throw new r("tlv.decode(long): zero leftmost byte");for(const e of t)s=s<<8|e;if(i+=e,s<128)throw new r("tlv.decode(long): not minimal encoding")}else s=o;const a=n.subarray(i,i+s);if(a.length!==s)throw new r("tlv.decode: wrong value length");return{v:a,l:n.subarray(i+s)}}},_int:{encode(e){const{Err:n}=t.DER;if(e<l)throw new n("integer: negative integers are not allowed");let r=(0,i.numberToHexUnpadded)(e);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new n("unexpected DER parsing assertion: unpadded hex");return r},decode(e){const{Err:n}=t.DER;if(128&e[0])throw new n("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new n("invalid signature integer: unnecessary leading zero");return(0,i.bytesToNumberBE)(e)}},toSig(e){const{Err:n,_int:r,_tlv:o}=t.DER,s=(0,i.ensureBytes)("signature",e),{v:a,l:c}=o.decode(48,s);if(c.length)throw new n("invalid signature: left bytes after parsing");const{v:l,l:u}=o.decode(2,a),{v:d,l:h}=o.decode(2,u);if(h.length)throw new n("invalid signature: left bytes after parsing");return{r:r.decode(l),s:r.decode(d)}},hexFromSig(e){const{_tlv:n,_int:r}=t.DER,i=n.encode(2,r.encode(e.r))+n.encode(2,r.encode(e.s));return n.encode(48,i)}};const l=BigInt(0),u=BigInt(1),d=BigInt(2),h=BigInt(3),f=BigInt(4);function p(e,t,n){return function(r){const i=e.sqr(r),o=e.mul(i,r);return e.add(e.add(o,e.mul(r,t)),n)}}function y(e,t,n){const{BYTES:r}=e;return function(o){let s;if("bigint"==typeof o)s=o;else{let n=(0,i.ensureBytes)("private key",o);if(t){if(!t.includes(2*n.length))throw new Error("invalid private key");const e=new Uint8Array(r);e.set(n,e.length-n.length),n=e}try{s=e.fromBytes(n)}catch(e){throw new Error(`invalid private key: expected ui8a of size ${r}, got ${typeof o}`)}}if(n&&(s=e.create(s)),!e.isValidNot0(s))throw new Error("invalid private key: out of range [1..N-1]");return s}}function g(e,t={}){const{Fp:n,Fn:r}=(0,o._createCurveFields)("weierstrass",e,t),{h:s,n:a}=e;(0,i._validateObject)(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:c}=t;if(c&&(!n.is0(e.a)||"bigint"!=typeof c.beta||"function"!=typeof c.splitScalar))throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function');function d(){if(!n.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const g=t.toBytes||function(e,t,r){const{x:o,y:s}=t.toAffine(),a=n.toBytes(o);if((0,i.abool)("isCompressed",r),r){d();const e=!n.isOdd(s);return(0,i.concatBytes)(m(e),a)}return(0,i.concatBytes)(Uint8Array.of(4),a,n.toBytes(s))},_=t.fromBytes||function(e){(0,i.abytes)(e);const t=n.BYTES,r=t+1,o=2*t+1,s=e.length,a=e[0],c=e.subarray(1);if(s!==r||2!==a&&3!==a){if(s===o&&4===a){const e=n.fromBytes(c.subarray(0*t,1*t)),r=n.fromBytes(c.subarray(1*t,2*t));if(!v(e,r))throw new Error("bad point: is not on curve");return{x:e,y:r}}throw new Error(`bad point: got length ${s}, expected compressed=${r} or uncompressed=${o}`)}{const e=n.fromBytes(c);if(!n.isValid(e))throw new Error("bad point: is not on curve, wrong x");const t=b(e);let r;try{r=n.sqrt(t)}catch(e){const t=e instanceof Error?": "+e.message:"";throw new Error("bad point: is not on curve, sqrt error"+t)}d();return!(1&~a)!==n.isOdd(r)&&(r=n.neg(r)),{x:e,y:r}}},b=p(n,e.a,e.b);function v(e,t){const r=n.sqr(t),i=b(e);return n.eql(r,i)}if(!v(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const w=n.mul(n.pow(e.a,h),f),A=n.mul(n.sqr(e.b),BigInt(27));if(n.is0(n.add(w,A)))throw new Error("bad curve params: a or b");function E(e,t,r=!1){if(!n.isValid(t)||r&&n.is0(t))throw new Error(`bad point coordinate ${e}`);return t}function S(e){if(!(e instanceof L))throw new Error("ProjectivePoint expected")}const B=(0,i.memoized)((e,t)=>{const{px:r,py:i,pz:o}=e;if(n.eql(o,n.ONE))return{x:r,y:i};const s=e.is0();null==t&&(t=s?n.ONE:n.inv(o));const a=n.mul(r,t),c=n.mul(i,t),l=n.mul(o,t);if(s)return{x:n.ZERO,y:n.ZERO};if(!n.eql(l,n.ONE))throw new Error("invZ was invalid");return{x:a,y:c}}),x=(0,i.memoized)(e=>{if(e.is0()){if(t.allowInfinityPoint&&!n.is0(e.py))return;throw new Error("bad point: ZERO")}const{x:r,y:i}=e.toAffine();if(!n.isValid(r)||!n.isValid(i))throw new Error("bad point: x or y not field elements");if(!v(r,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function I(e,t,r,i,s){return r=new L(n.mul(r.px,e),r.py,r.pz),t=(0,o.negateCt)(i,t),r=(0,o.negateCt)(s,r),t.add(r)}class L{constructor(e,t,n){this.px=E("x",e),this.py=E("y",t,!0),this.pz=E("z",n),Object.freeze(this)}static fromAffine(e){const{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw new Error("invalid affine point");if(e instanceof L)throw new Error("projective point not allowed");return n.is0(t)&&n.is0(r)?L.ZERO:new L(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){return(0,o.normalizeZ)(L,"pz",e)}static fromBytes(e){return(0,i.abytes)(e),L.fromHex(e)}static fromHex(e){const t=L.fromAffine(_((0,i.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){const n=y(r,t.allowedPrivateKeyLengths,t.wrapPrivateKey);return L.BASE.multiply(n(e))}static msm(e,t){return(0,o.pippenger)(L,r,e,t)}precompute(e=8,t=!0){return k.setWindowSize(this,e),t||this.multiply(h),this}_setWindowSize(e){this.precompute(e)}assertValidity(){x(this)}hasEvenY(){const{y:e}=this.toAffine();if(!n.isOdd)throw new Error("Field doesn't support isOdd");return!n.isOdd(e)}equals(e){S(e);const{px:t,py:r,pz:i}=this,{px:o,py:s,pz:a}=e,c=n.eql(n.mul(t,a),n.mul(o,i)),l=n.eql(n.mul(r,a),n.mul(s,i));return c&&l}negate(){return new L(this.px,n.neg(this.py),this.pz)}double(){const{a:t,b:r}=e,i=n.mul(r,h),{px:o,py:s,pz:a}=this;let c=n.ZERO,l=n.ZERO,u=n.ZERO,d=n.mul(o,o),f=n.mul(s,s),p=n.mul(a,a),y=n.mul(o,s);return y=n.add(y,y),u=n.mul(o,a),u=n.add(u,u),c=n.mul(t,u),l=n.mul(i,p),l=n.add(c,l),c=n.sub(f,l),l=n.add(f,l),l=n.mul(c,l),c=n.mul(y,c),u=n.mul(i,u),p=n.mul(t,p),y=n.sub(d,p),y=n.mul(t,y),y=n.add(y,u),u=n.add(d,d),d=n.add(u,d),d=n.add(d,p),d=n.mul(d,y),l=n.add(l,d),p=n.mul(s,a),p=n.add(p,p),d=n.mul(p,y),c=n.sub(c,d),u=n.mul(p,f),u=n.add(u,u),u=n.add(u,u),new L(c,l,u)}add(t){S(t);const{px:r,py:i,pz:o}=this,{px:s,py:a,pz:c}=t;let l=n.ZERO,u=n.ZERO,d=n.ZERO;const f=e.a,p=n.mul(e.b,h);let y=n.mul(r,s),g=n.mul(i,a),m=n.mul(o,c),_=n.add(r,i),b=n.add(s,a);_=n.mul(_,b),b=n.add(y,g),_=n.sub(_,b),b=n.add(r,o);let v=n.add(s,c);return b=n.mul(b,v),v=n.add(y,m),b=n.sub(b,v),v=n.add(i,o),l=n.add(a,c),v=n.mul(v,l),l=n.add(g,m),v=n.sub(v,l),d=n.mul(f,b),l=n.mul(p,m),d=n.add(l,d),l=n.sub(g,d),d=n.add(g,d),u=n.mul(l,d),g=n.add(y,y),g=n.add(g,y),m=n.mul(f,m),b=n.mul(p,b),g=n.add(g,m),m=n.sub(y,m),m=n.mul(f,m),b=n.add(b,m),y=n.mul(g,b),u=n.add(u,y),y=n.mul(v,b),l=n.mul(_,l),l=n.sub(l,y),y=n.mul(_,g),d=n.mul(v,d),d=n.add(d,y),new L(l,u,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(L.ZERO)}multiply(e){const{endo:n}=t;if(!r.isValidNot0(e))throw new Error("invalid scalar: out of range");let i,o;const s=e=>k.wNAFCached(this,e,L.normalizeZ);if(n){const{k1neg:t,k1:r,k2neg:a,k2:c}=n.splitScalar(e),{p:l,f:u}=s(r),{p:d,f:h}=s(c);o=u.add(h),i=I(n.beta,l,d,t,a)}else{const{p:t,f:n}=s(e);i=t,o=n}return L.normalizeZ([i,o])[0]}multiplyUnsafe(e){const{endo:n}=t,i=this;if(!r.isValid(e))throw new Error("invalid scalar: out of range");if(e===l||i.is0())return L.ZERO;if(e===u)return i;if(k.hasPrecomputes(this))return this.multiply(e);if(n){const{k1neg:t,k1:r,k2neg:s,k2:a}=n.splitScalar(e),{p1:c,p2:l}=(0,o.mulEndoUnsafe)(L,i,r,a);return I(n.beta,c,l,t,s)}return k.wNAFCachedUnsafe(i,e)}multiplyAndAddUnsafe(e,t,n){const r=this.multiplyUnsafe(t).add(e.multiplyUnsafe(n));return r.is0()?void 0:r}toAffine(e){return B(this,e)}isTorsionFree(){const{isTorsionFree:e}=t;return s===u||(e?e(L,this):k.wNAFCachedUnsafe(this,a).is0())}clearCofactor(){const{clearCofactor:e}=t;return s===u?this:e?e(L,this):this.multiplyUnsafe(s)}toBytes(e=!0){return(0,i.abool)("isCompressed",e),this.assertValidity(),g(L,this,e)}toRawBytes(e=!0){return this.toBytes(e)}toHex(e=!0){return(0,i.bytesToHex)(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}L.BASE=new L(e.Gx,e.Gy,n.ONE),L.ZERO=new L(n.ZERO,n.ONE,n.ZERO),L.Fp=n,L.Fn=r;const O=r.BITS,k=(0,o.wNAF)(L,t.endo?Math.ceil(O/2):O);return L}function m(e){return Uint8Array.of(e?2:3)}function _(e,n,o={}){(0,i._validateObject)(n,{hash:"function"},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const c=n.randomBytes||i.randomBytes,h=n.hmac||((e,...t)=>(0,r.hmac)(n.hash,e,(0,i.concatBytes)(...t))),{Fp:f,Fn:p}=e,{ORDER:g,BITS:_}=p;function b(e){return e>g>>u}function v(e,t){if(!p.isValidNot0(t))throw new Error(`invalid signature ${e}: out of range 1..CURVE.n`)}class w{constructor(e,t,n){v("r",e),v("s",t),this.r=e,this.s=t,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(e){const t=p.BYTES,n=(0,i.ensureBytes)("compactSignature",e,2*t);return new w(p.fromBytes(n.subarray(0,t)),p.fromBytes(n.subarray(t,2*t)))}static fromDER(e){const{r:n,s:r}=t.DER.toSig((0,i.ensureBytes)("DER",e));return new w(n,r)}assertValidity(){}addRecoveryBit(e){return new w(this.r,this.s,e)}recoverPublicKey(t){const n=f.ORDER,{r,s:o,recovery:s}=this;if(null==s||![0,1,2,3].includes(s))throw new Error("recovery id invalid");if(g*d<n&&s>1)throw new Error("recovery id is ambiguous for h>1 curve");const a=2===s||3===s?r+g:r;if(!f.isValid(a))throw new Error("recovery id 2 or 3 invalid");const c=f.toBytes(a),l=e.fromHex((0,i.concatBytes)(m(!(1&s)),c)),u=p.inv(a),h=x((0,i.ensureBytes)("msgHash",t)),y=p.create(-h*u),_=p.create(o*u),b=e.BASE.multiplyUnsafe(y).add(l.multiplyUnsafe(_));if(b.is0())throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return b(this.s)}normalizeS(){return this.hasHighS()?new w(this.r,p.neg(this.s),this.recovery):this}toBytes(e){if("compact"===e)return(0,i.concatBytes)(p.toBytes(this.r),p.toBytes(this.s));if("der"===e)return(0,i.hexToBytes)(t.DER.hexFromSig(this));throw new Error("invalid format")}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,i.bytesToHex)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,i.bytesToHex)(this.toBytes("compact"))}}const A=y(p,o.allowedPrivateKeyLengths,o.wrapPrivateKey),E={isValidPrivateKey(e){try{return A(e),!0}catch(e){return!1}},normPrivateKeyToScalar:A,randomPrivateKey:()=>{const e=g;return(0,s.mapHashToField)(c((0,s.getMinHashLength)(e)),e)},precompute:(t=8,n=e.BASE)=>n.precompute(t,!1)};function S(t){if("bigint"==typeof t)return!1;if(t instanceof e)return!0;const n=(0,i.ensureBytes)("key",t).length,r=f.BYTES,s=r+1,a=2*r+1;return o.allowedPrivateKeyLengths||p.BYTES===s?void 0:n===s||n===a}const B=n.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=(0,i.bytesToNumberBE)(e),n=8*e.length-_;return n>0?t>>BigInt(n):t},x=n.bits2int_modN||function(e){return p.create(B(e))},I=(0,i.bitMask)(_);function L(e){return(0,i.aInRange)("num < 2^"+_,e,l,I),p.toBytes(e)}function O(t,r,o=k){if(["recovered","canonical"].some(e=>e in o))throw new Error("sign() legacy options not supported");const{hash:s}=n;let{lowS:d,prehash:h,extraEntropy:y}=o;null==d&&(d=!0),t=(0,i.ensureBytes)("msgHash",t),a(o),h&&(t=(0,i.ensureBytes)("prehashed msgHash",s(t)));const g=x(t),m=A(r),_=[L(m),L(g)];if(null!=y&&!1!==y){const e=!0===y?c(f.BYTES):y;_.push((0,i.ensureBytes)("extraEntropy",e))}const v=(0,i.concatBytes)(..._),E=g;return{seed:v,k2sig:function(t){const n=B(t);if(!p.isValidNot0(n))return;const r=p.inv(n),i=e.BASE.multiply(n).toAffine(),o=p.create(i.x);if(o===l)return;const s=p.create(r*p.create(E+o*m));if(s===l)return;let a=(i.x===o?0:2)|Number(i.y&u),c=s;return d&&b(s)&&(c=function(e){return b(e)?p.neg(e):e}(s),a^=1),new w(o,c,a)}}}const k={lowS:n.lowS,prehash:!1},T={lowS:n.lowS,prehash:!1};return e.BASE.precompute(8),Object.freeze({getPublicKey:function(t,n=!0){return e.fromPrivateKey(t).toBytes(n)},getSharedSecret:function(t,n,r=!0){if(!0===S(t))throw new Error("first arg must be private key");if(!1===S(n))throw new Error("second arg must be public key");return e.fromHex(n).multiply(A(t)).toBytes(r)},sign:function(e,t,r=k){const{seed:o,k2sig:s}=O(e,t,r);return(0,i.createHmacDrbg)(n.hash.outputLen,p.BYTES,h)(o,s)},verify:function(r,o,s,c=T){const l=r;o=(0,i.ensureBytes)("msgHash",o),s=(0,i.ensureBytes)("publicKey",s),a(c);const{lowS:u,prehash:d,format:h}=c;if("strict"in c)throw new Error("options.strict was renamed to lowS");if(void 0!==h&&!["compact","der","js"].includes(h))throw new Error('format must be "compact", "der" or "js"');const f="string"==typeof l||(0,i.isBytes)(l),y=!f&&!h&&"object"==typeof l&&null!==l&&"bigint"==typeof l.r&&"bigint"==typeof l.s;if(!f&&!y)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let g,m;try{if(y){if(void 0!==h&&"js"!==h)throw new Error("invalid format");g=new w(l.r,l.s)}if(f){try{"compact"!==h&&(g=w.fromDER(l))}catch(e){if(!(e instanceof t.DER.Err))throw e}g||"der"===h||(g=w.fromCompact(l))}m=e.fromHex(s)}catch(e){return!1}if(!g)return!1;if(u&&g.hasHighS())return!1;d&&(o=n.hash(o));const{r:_,s:b}=g,v=x(o),A=p.inv(b),E=p.create(v*A),S=p.create(_*A),B=e.BASE.multiplyUnsafe(E).add(m.multiplyUnsafe(S));return!B.is0()&&p.create(B.x)===_},utils:E,Point:e,Signature:w})}function b(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy};return{CURVE:t,curveOpts:{Fp:e.Fp,Fn:(0,s.Field)(t.n,e.nBitLength),allowedPrivateKeyLengths:e.allowedPrivateKeyLengths,allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,wrapPrivateKey:e.wrapPrivateKey,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes}}}function v(e,t){const n=e.ORDER;let r=l;for(let e=n-u;e%d===l;e/=d)r+=u;const i=r,o=d<<i-u-u,s=o*d,a=(n-u)/s,c=(a-u)/d,p=s-u,y=o,g=e.pow(t,a),m=e.pow(t,(a+u)/d);let _=(t,n)=>{let r=g,o=e.pow(n,p),s=e.sqr(o);s=e.mul(s,n);let a=e.mul(t,s);a=e.pow(a,c),a=e.mul(a,o),o=e.mul(a,n),s=e.mul(a,t);let l=e.mul(s,o);a=e.pow(l,y);let h=e.eql(a,e.ONE);o=e.mul(s,m),a=e.mul(l,r),s=e.cmov(o,s,h),l=e.cmov(a,l,h);for(let t=i;t>u;t--){let n=t-d;n=d<<n-u;let i=e.pow(l,n);const a=e.eql(i,e.ONE);o=e.mul(s,r),r=e.mul(r,r),i=e.mul(l,r),s=e.cmov(o,s,a),l=e.cmov(i,l,a)}return{isValid:h,value:s}};if(e.ORDER%f===h){const n=(e.ORDER-h)/f,r=e.sqrt(e.neg(t));_=(t,i)=>{let o=e.sqr(i);const s=e.mul(t,i);o=e.mul(o,s);let a=e.pow(o,n);a=e.mul(a,s);const c=e.mul(a,r),l=e.mul(e.sqr(a),i),u=e.eql(l,t);return{isValid:u,value:e.cmov(c,a,u)}}}return _}},1761:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.expand_message_xmd=l,t.expand_message_xof=u,t.hash_to_field=d,t.isogenyMap=function(e,t){const n=t.map(e=>Array.from(e).reverse());return(t,r)=>{const[o,s,a,c]=n.map(n=>n.reduce((n,r)=>e.add(e.mul(n,t),r))),[l,u]=(0,i.FpInvertBatch)(e,[s,c],!0);return t=e.mul(o,l),r=e.mul(r,e.mul(a,u)),{x:t,y:r}}},t.createHasher=function(e,t,n){if("function"!=typeof t)throw new Error("mapToCurve() must be defined");function r(n){return e.fromAffine(t(n))}function i(t){const n=t.clearCofactor();return n.equals(e.ZERO)?e.ZERO:(n.assertValidity(),n)}return{defaults:n,hashToCurve(e,t){const o=n.DST?n.DST:{},s=d(e,2,Object.assign({},n,o,t)),a=r(s[0]),c=r(s[1]);return i(a.add(c))},encodeToCurve(e,t){const o=n.encodeDST?n.encodeDST:{};return i(r(d(e,1,Object.assign({},n,o,t))[0]))},mapToCurve(e){if(!Array.isArray(e))throw new Error("expected array of bigints");for(const t of e)if("bigint"!=typeof t)throw new Error("expected array of bigints");return i(r(e))}}};const r=n(8627),i=n(4967),o=r.bytesToNumberBE;function s(e,t){if(c(e),c(t),e<0||e>=1<<8*t)throw new Error("invalid I2OSP input: "+e);const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=255&e,e>>>=8;return new Uint8Array(n)}function a(e,t){const n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function c(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function l(e,t,n,i){(0,r.abytes)(e),(0,r.abytes)(t),c(n),t.length>255&&(t=i((0,r.concatBytes)((0,r.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:o,blockLen:l}=i,u=Math.ceil(n/o);if(n>65535||u>255)throw new Error("expand_message_xmd: invalid lenInBytes");const d=(0,r.concatBytes)(t,s(t.length,1)),h=s(0,l),f=s(n,2),p=new Array(u),y=i((0,r.concatBytes)(h,e,f,s(0,1),d));p[0]=i((0,r.concatBytes)(y,s(1,1),d));for(let e=1;e<=u;e++){const t=[a(y,p[e-1]),s(e+1,1),d];p[e]=i((0,r.concatBytes)(...t))}return(0,r.concatBytes)(...p).slice(0,n)}function u(e,t,n,i,o){if((0,r.abytes)(e),(0,r.abytes)(t),c(n),t.length>255){const e=Math.ceil(2*i/8);t=o.create({dkLen:e}).update((0,r.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return o.create({dkLen:n}).update(e).update(s(n,2)).update(t).update(s(t.length,1)).digest()}function d(e,t,n){(0,r._validateObject)(n,{p:"bigint",m:"number",k:"number",hash:"function"});const{p:s,k:a,m:d,hash:h,expand:f,DST:p}=n;if(!(0,r.isBytes)(p)&&"string"!=typeof p)throw new Error("DST must be string or uint8array");if(!(0,r.isHash)(n.hash))throw new Error("expected valid hash");(0,r.abytes)(e),c(t);const y="string"==typeof p?(0,r.utf8ToBytes)(p):p,g=s.toString(2).length,m=Math.ceil((g+a)/8),_=t*d*m;let b;if("xmd"===f)b=l(e,y,_,h);else if("xof"===f)b=u(e,y,_,a,h);else{if("_internal_pass"!==f)throw new Error('expand must be "xmd" or "xof"');b=e}const v=new Array(t);for(let e=0;e<t;e++){const t=new Array(d);for(let n=0;n<d;n++){const r=m*(n+e*d),a=b.subarray(r,r+m);t[n]=(0,i.mod)(o(a),s)}v[e]=t}return v}},1788:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(4846),i=n(3098),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable;const c=(0,r.A)(function(){return arguments}())?r.A:function(e){return(0,i.A)(e)&&s.call(e,"callee")&&!a.call(e,"callee")}},1791:(e,t,n)=>{n.d(t,{E9:()=>o});const r=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},i=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},o=(e,t,n,o)=>{const s=async function*(e,t){for await(const n of i(e))yield*r(n,t)}(e,t);let a,c=0,l=e=>{a||(a=!0,o&&o(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await s.next();if(t)return l(),void e.close();let i=r.byteLength;if(n){let e=c+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw l(e),e}},cancel:e=>(l(e),s.return())},{highWaterMark:2})}},1865:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(423),i=n(8823),o=n(8446);const s=function(e){return(0,o.A)(e)?(0,r.A)(e,!0):(0,i.A)(e)}},1882:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(9672),i=n(3098);const o=function(e){return"symbol"==typeof e||(0,i.A)(e)&&"[object Symbol]"==(0,r.A)(e)}},1917:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2136),i="object"==typeof self&&self&&self.Object===Object&&self;const o=r.A||i||Function("return this")()},1965:(e,t,n)=>{n.d(t,{FI:()=>r,TU:()=>i,Zj:()=>o});const r="reserve_mapxus-level-fill",i="reserve_mapxus-shared-level-fill",o="reserve_mapxus-building-fill"},1979:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(9610),i=n(640),o=n(3149),s=n(1121),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const f=function(e){return!(!(0,o.A)(e)||(0,i.A)(e))&&((0,r.A)(e)?h:a).test((0,s.A)(e))}},2049:(e,t,n)=>{n.d(t,{A:()=>r});const r=Array.isArray},2068:(e,t,n)=>{n.d(t,{K:()=>s});var r=n(7536),i=n(9588);const o=n(7311).o.getInstance();class s{static instance;_axios;_isRefreshingToken=!1;_retryCount=0;constructor(){this._axios=r.A.create({baseURL:i.hl}),this._setupInterceptors()}static getInstance(){return s.instance||(s.instance=new s),s.instance}async get(e){return this._axios.get(e)}async post(e,t){return this._axios.post(e,t)}async getRequestHeaders(){return{"Content-Type":"application/json",sdkVersion:o.getSdkVersion(),identifier:await o.getIdentifier(),token:await o.getAccessToken()}}_setupInterceptors(){this._axios.interceptors.request.use(async e=>{const t=await this.getRequestHeaders();return e.headers=Object.assign({},e.headers,t),e},e=>{throw e}),this._axios.interceptors.response.use(null,async e=>{if(401!==e.response?.status||this._retryCount>=3)throw this._retryCount=0,e;if(this._isRefreshingToken)throw e;o.getGlobalDispatcher().call("unauthorized"),this._isRefreshingToken=!0,this._retryCount++;try{const t=await this.getRequestHeaders(),n=e.config;return n.headers=Object.assign({},n.headers,t),this._axios.request(n)}catch(e){throw e}finally{this._isRefreshingToken=!1}})}}},2075:(e,t,n)=>{n.d(t,{$b:()=>h,Hf:()=>d,_C:()=>s,aS:()=>f,em:()=>u,lu:()=>a,ts:()=>c,xR:()=>l});var r=n(9588);const i="v3";function o(e){return`${r.hl}/api/${i}/tiles/styles/${e}`}const s=o("christmas_mims2_v1"),a=o("common_mims2_v1"),c=o("halloween_mims2_v1"),l=o("mappybee_mims2_v1"),u=o("mapxus_mims2_v1"),d=o("lands_d_mims2_v1"),h=o("mapxus_v7");function f(e){return o(e)}},2125:(e,t,n)=>{function r(e,t){return function(){return e.apply(t,arguments)}}n.d(t,{A:()=>r})},2136:(e,t,n)=>{n.d(t,{A:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},2141:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(4943),i=n(6474),o=n(9008),s=n(2049),a=n(2263);const c=function(e){return"function"==typeof e?e:null==e?o.A:"object"==typeof e?(0,s.A)(e)?(0,i.A)(e[0],e[1]):(0,r.A)(e):(0,a.A)(e)}},2158:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(9378),t),i(n(244),t),i(n(3503),t),i(n(7757),t)},2199:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(6318);const i=function(e){return function(t){return(0,r.A)(t,e)}}},2263:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(805),i=n(2199),o=n(6586),s=n(901);const a=function(e){return(0,o.A)(e)?(0,r.A)((0,s.A)(e)):(0,i.A)(e)}},2302:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(){}},2318:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toBig=t.shrSL=t.shrSH=t.rotrSL=t.rotrSH=t.rotrBL=t.rotrBH=t.rotr32L=t.rotr32H=t.rotlSL=t.rotlSH=t.rotlBL=t.rotlBH=t.add5L=t.add5H=t.add4L=t.add4H=t.add3L=t.add3H=void 0,t.add=b,t.fromBig=i,t.split=o;const n=BigInt(2**32-1),r=BigInt(32);function i(e,t=!1){return t?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function o(e,t=!1){const n=e.length;let r=new Uint32Array(n),o=new Uint32Array(n);for(let s=0;s<n;s++){const{h:n,l:a}=i(e[s],t);[r[s],o[s]]=[n,a]}return[r,o]}const s=(e,t)=>BigInt(e>>>0)<<r|BigInt(t>>>0);t.toBig=s;const a=(e,t,n)=>e>>>n;t.shrSH=a;const c=(e,t,n)=>e<<32-n|t>>>n;t.shrSL=c;const l=(e,t,n)=>e>>>n|t<<32-n;t.rotrSH=l;const u=(e,t,n)=>e<<32-n|t>>>n;t.rotrSL=u;const d=(e,t,n)=>e<<64-n|t>>>n-32;t.rotrBH=d;const h=(e,t,n)=>e>>>n-32|t<<64-n;t.rotrBL=h;const f=(e,t)=>t;t.rotr32H=f;const p=(e,t)=>e;t.rotr32L=p;const y=(e,t,n)=>e<<n|t>>>32-n;t.rotlSH=y;const g=(e,t,n)=>t<<n|e>>>32-n;t.rotlSL=g;const m=(e,t,n)=>t<<n-32|e>>>64-n;t.rotlBH=m;const _=(e,t,n)=>e<<n-32|t>>>64-n;function b(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}t.rotlBL=_;const v=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);t.add3L=v;const w=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;t.add3H=w;const A=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);t.add4L=A;const E=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;t.add4H=E;const S=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);t.add5L=S;const B=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0;t.add5H=B;const x={fromBig:i,split:o,toBig:s,shrSH:a,shrSL:c,rotrSH:l,rotrSL:u,rotrBH:d,rotrBL:h,rotr32H:f,rotr32L:p,rotlSH:y,rotlSL:g,rotlBH:m,rotlBL:_,add:b,add3L:v,add3H:w,add4L:A,add4H:E,add5H:B,add5L:S};t.default=x},2384:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(169),i=Array.prototype.splice;const o=function(e){var t=this.__data__,n=(0,r.A)(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},2422:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.negateCt=a,t.normalizeZ=function(e,t,n){const r="pz"===t?e=>e.pz:e=>e.ez,o=(0,i.FpInvertBatch)(e.Fp,n.map(r));return n.map((e,t)=>e.toAffine(o[t])).map(e.fromAffine)},t.wNAF=function(e,t){return{constTimeNegate:a,hasPrecomputes:e=>1!==y(e),unsafeLadder(t,n,r=e.ZERO){let i=t;for(;n>o;)n&s&&(r=r.add(i)),i=i.double(),n>>=s;return r},precomputeWindow(e,n){const{windows:r,windowSize:i}=l(n,t),o=[];let s=e,a=s;for(let e=0;e<r;e++){a=s,o.push(a);for(let e=1;e<i;e++)a=a.add(s),o.push(a);s=a.double()}return o},wNAF(n,r,i){let o=e.ZERO,s=e.BASE;const c=l(n,t);for(let e=0;e<c.windows;e++){const{nextN:t,offset:n,isZero:l,isNeg:d,isNegF:h,offsetF:f}=u(i,e,c);i=t,l?s=s.add(a(h,r[f])):o=o.add(a(d,r[n]))}return g(i),{p:o,f:s}},wNAFUnsafe(n,r,i,s=e.ZERO){const a=l(n,t);for(let e=0;e<a.windows&&i!==o;e++){const{nextN:t,offset:n,isZero:o,isNeg:c}=u(i,e,a);if(i=t,!o){const e=r[n];s=s.add(c?e.negate():e)}}return g(i),s},getPrecomputes(e,t,n){let r=f.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&("function"==typeof n&&(r=n(r)),f.set(t,r))),r},wNAFCached(e,t,n){const r=y(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)},wNAFCachedUnsafe(e,t,n,r){const i=y(e);return 1===i?this.unsafeLadder(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)},setWindowSize(e,n){c(n,t),p.set(e,n),f.delete(e)}}},t.mulEndoUnsafe=function(e,t,n,r){let i=t,a=e.ZERO,c=e.ZERO;for(;n>o||r>o;)n&s&&(a=a.add(i)),r&s&&(c=c.add(i)),i=i.double(),n>>=s,r>>=s;return{p1:a,p2:c}},t.pippenger=function(e,t,n,i){d(n,e),h(i,t);const o=n.length,s=i.length;if(o!==s)throw new Error("arrays of points and scalars must have equal length");const a=e.ZERO,c=(0,r.bitLen)(BigInt(o));let l=1;c>12?l=c-3:c>4?l=c-2:c>0&&(l=2);const u=(0,r.bitMask)(l),f=new Array(Number(u)+1).fill(a),p=Math.floor((t.BITS-1)/l)*l;let y=a;for(let e=p;e>=0;e-=l){f.fill(a);for(let t=0;t<s;t++){const r=i[t],o=Number(r>>BigInt(e)&u);f[o]=f[o].add(n[t])}let t=a;for(let e=f.length-1,n=a;e>0;e--)n=n.add(f[e]),t=t.add(n);if(y=y.add(t),0!==e)for(let e=0;e<l;e++)y=y.double()}return y},t.precomputeMSMUnsafe=function(e,t,n,i){c(i,t.BITS),d(n,e);const o=e.ZERO,s=2**i-1,a=Math.ceil(t.BITS/i),l=(0,r.bitMask)(i),u=n.map(e=>{const t=[];for(let n=0,r=e;n<s;n++)t.push(r),r=r.add(e);return t});return e=>{if(h(e,t),e.length>n.length)throw new Error("array of scalars must be smaller than array of points");let r=o;for(let t=0;t<a;t++){if(r!==o)for(let e=0;e<i;e++)r=r.double();const n=BigInt(a*i-(t+1)*i);for(let t=0;t<e.length;t++){const i=e[t],o=Number(i>>n&l);o&&(r=r.add(u[t][o-1]))}}return r}},t.validateBasic=function(e){return(0,i.validateField)(e.Fp),(0,r.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,i.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})},t._createCurveFields=function(e,t,n={}){if(!t||"object"!=typeof t)throw new Error(`expected valid ${e} CURVE object`);for(const e of["p","n","h"]){const n=t[e];if(!("bigint"==typeof n&&n>o))throw new Error(`CURVE.${e} must be positive bigint`)}const r=m(t.p,n.Fp),i=m(t.n,n.Fn),s=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const e of s)if(!r.isValid(t[e]))throw new Error(`CURVE.${e} must be valid field element of CURVE.Fp`);return{Fp:r,Fn:i}};const r=n(8627),i=n(4967),o=BigInt(0),s=BigInt(1);function a(e,t){const n=t.negate();return e?n:t}function c(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function l(e,t){c(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:(0,r.bitMask)(e),maxNumber:n,shiftBy:BigInt(e)}}function u(e,t,n){const{windowSize:r,mask:i,maxNumber:o,shiftBy:a}=n;let c=Number(e&i),l=e>>a;c>r&&(c-=o,l+=s);const u=t*r;return{nextN:l,offset:u+Math.abs(c)-1,isZero:0===c,isNeg:c<0,isNegF:t%2!=0,offsetF:u}}function d(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw new Error("invalid point at index "+n)})}function h(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+n)})}const f=new WeakMap,p=new WeakMap;function y(e){return p.get(e)||1}function g(e){if(e!==o)throw new Error("invalid wNAF")}function m(e,t){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return(0,i.validateField)(t),t}return(0,i.Field)(e)}},2468:(e,t,n)=>{n.d(t,{E:()=>r});class r{_buildingSelector;_isEnabled=!0;_position;constructor(e){this._buildingSelector=e}enable(){this._isEnabled=!0,this._buildingSelector.enabled||this._buildingSelector.setVisibility(!0)}disable(){this._isEnabled=!1,this._buildingSelector.enabled&&this._buildingSelector.setVisibility(!1)}setPosition(e,t){this._position=e,this._buildingSelector.changePosition(this._buildingSelector.position,e,t)}get isEnabled(){return this._isEnabled}get position(){return this._position}}},2506:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.rotl=function(e,t){return e<<t|e>>>32-t},t.createCipher=function(e,t){const{allowShortKeys:n,extendNonceFn:i,counterLength:o,counterRight:s,rounds:p}=(0,r.checkOpts)({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},t);if("function"!=typeof e)throw new Error("core must be a function");return(0,r.anumber)(o),(0,r.anumber)(p),(0,r.abool)(s),(0,r.abool)(n),(t,y,g,m,_=0)=>{(0,r.abytes)(t),(0,r.abytes)(y),(0,r.abytes)(g);const b=g.length;if(void 0===m&&(m=new Uint8Array(b)),(0,r.abytes)(m),(0,r.anumber)(_),_<0||_>=h)throw new Error("arx: counter overflow");if(m.length<b)throw new Error(`arx: output (${m.length}) is shorter than data (${b})`);const v=[];let w,A,E=t.length;if(32===E)v.push(w=(0,r.copyBytes)(t)),A=c;else{if(16!==E||!n)throw new Error(`arx: invalid 32-byte key, got length=${E}`);w=new Uint8Array(32),w.set(t),w.set(t,16),A=a,v.push(w)}l(y)||v.push(y=(0,r.copyBytes)(y));const S=(0,r.u32)(w);if(i){if(24!==y.length)throw new Error("arx: extended nonce must be 24 bytes");i(A,S,(0,r.u32)(y.subarray(0,16)),S),y=y.subarray(16)}const B=16-o;if(B!==y.length)throw new Error(`arx: nonce must be ${B} or 16 bytes`);if(12!==B){const e=new Uint8Array(12);e.set(y,s?0:12-y.length),y=e,v.push(y)}const x=(0,r.u32)(y);return function(e,t,n,i,o,s,a,c){const p=o.length,y=new Uint8Array(u),g=(0,r.u32)(y),m=l(o)&&l(s),_=m?(0,r.u32)(o):f,b=m?(0,r.u32)(s):f;for(let r=0;r<p;a++){if(e(t,n,i,g,a,c),a>=h)throw new Error("arx: counter overflow");const l=Math.min(u,p-r);if(m&&l===u){const e=r/4;if(r%4!=0)throw new Error("arx: invalid block position");for(let t,n=0;n<d;n++)t=e+n,b[t]=_[t]^g[n];r+=u;continue}for(let e,t=0;t<l;t++)e=r+t,s[e]=o[e]^y[t];r+=l}}(e,A,S,x,g,m,_,p),(0,r.clean)(...v),m}};const r=n(6527),i=e=>Uint8Array.from(e.split("").map(e=>e.charCodeAt(0))),o=i("expand 16-byte k"),s=i("expand 32-byte k"),a=(0,r.u32)(o),c=(0,r.u32)(s);function l(e){return e.byteOffset%4==0}const u=64,d=16,h=2**32-1,f=new Uint32Array},2509:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(5547);const i=function(e){return(0,r.A)(this,e).has(e)}},2528:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(4171);const i=function(e,t,n){"__proto__"==t&&r.A?(0,r.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},2531:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(5707),i=n(6983),o=n(6031);const s=function(e,t,n){return t==t?(0,o.A)(e,t,n):(0,r.A)(e,i.A,n)}},2557:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=void 0;var r=n(6527),i=n(2158),o=function(){function e(e,t){var n=(0,i.convertPublicKeyFormat)(e,!0,t),r=(0,i.convertPublicKeyFormat)(e,!1,t);this.data=n,this.dataUncompressed=n.length!==r.length?r:null}return e.fromHex=function(t,n){return new e((0,i.hexToPublicKey)(t,n),n)},Object.defineProperty(e.prototype,"_uncompressed",{get:function(){return null!==this.dataUncompressed?this.dataUncompressed:this.data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uncompressed",{get:function(){return Buffer.from(this._uncompressed)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"compressed",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),e.prototype.toBytes=function(e){return void 0===e&&(e=!0),e?this.data:this._uncompressed},e.prototype.toHex=function(e){return void 0===e&&(e=!0),(0,r.bytesToHex)(this.toBytes(e))},e.prototype.decapsulate=function(e,t){void 0===t&&(t=!1);var n=this.toBytes(t),r=e.multiply(this,t);return(0,i.getSharedKey)(n,r)},e.prototype.equals=function(e){return(0,r.equalBytes)(this.data,e.data)},e}();t.PublicKey=o},2559:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(1882);const i=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var s=e[i],a=t(s);if(null!=a&&(void 0===c?a==a&&!(0,r.A)(a):n(a,c)))var c=a,l=s}return l}},2569:(e,t,n)=>{n.r(t),n.d(t,{hasBrowserEnv:()=>r,hasStandardBrowserEnv:()=>o,hasStandardBrowserWebWorkerEnv:()=>s,navigator:()=>i,origin:()=>a});const r="undefined"!=typeof window&&"undefined"!=typeof document,i="object"==typeof navigator&&navigator||void 0,o=r&&(!i||["ReactNative","NativeScript","NS"].indexOf(i.product)<0),s="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,a=r&&window.location.href||"http://localhost"},2634:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}},2658:(e,t,n)=>{n.d(t,{S:()=>i,d:()=>o});let r=[];const i={[Symbol.for("mapxus/callers-register")]:e=>{r=e}};function o(){return r}},2723:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(8458),i=n(4062),o=n(7275);const s=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,s=new AbortController;const a=function(e){if(!n){n=!0,l();const t=e instanceof Error?e:this.reason;s.abort(t instanceof i.A?t:new r.A(t instanceof Error?t.message:t))}};let c=t&&setTimeout(()=>{c=null,a(new i.A(`timeout ${t} of ms exceeded`,i.A.ETIMEDOUT))},t);const l=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const{signal:u}=s;return u.unsubscribe=()=>o.A.asap(l),u}}},2732:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"DataView")},2789:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){return function(t){return e(t)}}},2801:(e,t,n)=>{n.d(t,{w:()=>c});var r=n(2068),i=n(9573),o=n(9588),s=n(6034);const a=["opening_hours","description","phone","website","email","appURL","icon"];class c{_api="/api/v5/venues";_request=r.K.getInstance();constructor(){}searchByIds(e){const t=(0,i.VS)(e);if(!t)throw new Error("Please input venue id at least one.");const n=`${this._api}/${t}`;return this._changedRes(n)}searchByDistance(e){const{center:t,distance:n,keywords:r="",offset:s=o.e$,page:a=o.KL}=e;if(!(0,i.ES)(t))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,i.F5)(n)||n>1e4)throw new Error("Invalid distance parameter. Expected a positive number and no more than 10000.");const c=new URLSearchParams;c.set("center",t.join(",")),c.set("distance",String(n)),c.set("offset",String(s)),c.set("page",String(a)),(0,i.BW)(r)&&c.set("keywords",r);const l=`${this._api}?${c.toString()}`;return this._changedRes(l)}searchByBounds(e){const{keywords:t,bounds:n,offset:r=o.e$,page:s=o.KL}=e;if(!(0,i.dD)(n))throw new Error("'bounds' must be an array of two arrays, each containing two numbers.");const a=new URLSearchParams;a.set("bbox",n.flat().join()),a.set("offset",String(r)),a.set("page",String(s)),(0,i.BW)(t)&&a.set("keywords",t);const c=`${this._api}?${a.toString()}`;return this._changedRes(c)}searchByGlobal(e){const{keywords:t,offset:n=o.e$,page:r=o.KL}=e,s=new URLSearchParams;s.set("offset",String(n)),s.set("page",String(r)),(0,i.BW)(t)&&s.set("keywords",t);const a=`${this._api}?${s.toString()}`;return this._changedRes(a)}searchBySharedFloorId(e){if(!(0,i.BW)(e))throw new Error("Please input correct sharedFloorId.");const t=`${this._api}/shared_floors/${e}`;return this._changedRes(t)}search(e){const t=new URLSearchParams;return Object.entries(e).forEach(([e,n])=>{"bounds"===e?t.set("bbox",n.flat().join()):"center"===e?t.set("center",n.join()):t.set(e,String(n))}),this._changedRes(`${this._api}?${t.toString()}`)}async _changedRes(e){return this._request.get(e).then(e=>{if(e.data?.result?.venues){const t=e.data.result.venues.map(e=>(0,s.A)(e,(e,t)=>a.includes(t)));return{...e,data:{...e.data,result:{...e.data.result,venues:t}}}}return e})}}},2851:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(2528),i=n(6984),o=Object.prototype.hasOwnProperty;const s=function(e,t,n){var s=e[t];o.call(e,t)&&(0,i.A)(s,n)&&(void 0!==n||t in e)||(0,r.A)(e,t,n)}},2854:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.montgomery=function(e){const t=(f=e,(0,r._validateObject)(f,{adjustScalarBytes:"function",powPminus2:"function"}),Object.freeze({...f})),{P:n,type:c,adjustScalarBytes:l,powPminus2:u,randomBytes:d}=t,h="x25519"===c;var f;if(!h&&"x448"!==c)throw new Error("invalid type");const p=d||r.randomBytes,y=h?255:448,g=h?32:56,m=h?BigInt(9):BigInt(5),_=h?BigInt(121665):BigInt(39081),b=h?a**BigInt(254):a**BigInt(447),v=h?BigInt(8)*a**BigInt(251)-s:BigInt(4)*a**BigInt(445)-s,w=b+v+s,A=e=>(0,i.mod)(e,n),E=S(m);function S(e){return(0,r.numberToBytesLE)(A(e),g)}function B(e,t){const i=function(e,t){(0,r.aInRange)("u",e,o,n),(0,r.aInRange)("scalar",t,b,w);const i=t,a=e;let c=s,l=o,d=e,h=s,f=o;for(let e=BigInt(y-1);e>=o;e--){const t=i>>e&s;f^=t,({x_2:c,x_3:d}=I(f,c,d)),({x_2:l,x_3:h}=I(f,l,h)),f=t;const n=c+l,r=A(n*n),o=c-l,u=A(o*o),p=r-u,y=d+h,g=A((d-h)*n),m=A(y*o),b=g+m,v=g-m;d=A(b*b),h=A(a*A(v*v)),c=A(r*u),l=A(p*(r+A(_*p)))}({x_2:c,x_3:d}=I(f,c,d)),({x_2:l,x_3:h}=I(f,l,h));const p=u(l);return A(c*p)}(function(e){const t=(0,r.ensureBytes)("u coordinate",e,g);return h&&(t[31]&=127),A((0,r.bytesToNumberLE)(t))}(t),function(e){return(0,r.bytesToNumberLE)(l((0,r.ensureBytes)("scalar",e,g)))}(e));if(i===o)throw new Error("invalid private or public key received");return S(i)}function x(e){return B(e,E)}function I(e,t,n){const r=A(e*(t-n));return{x_2:t=A(t-r),x_3:n=A(n+r)}}return{scalarMult:B,scalarMultBase:x,getSharedSecret:(e,t)=>B(e,t),getPublicKey:e=>x(e),utils:{randomPrivateKey:()=>p(g)},GuBytes:E.slice()}};const r=n(8627),i=n(4967),o=BigInt(0),s=BigInt(1),a=BigInt(2)},2944:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(674);const i=function(){this.__data__=r.A?(0,r.A)(null):{},this.size=0}},3061:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){return this.__data__.get(e)}},3098:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},3119:(e,t,n)=>{n.d(t,{A:()=>r});const r=null},3149:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3153:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(){return[]}},3161:(e,t,n)=>{n.d(t,{A:()=>r});const r=n(1917).A["__core-js_shared__"]},3198:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(9396),i=n(7422);const o=function(e){for(var t=(0,i.A)(e),n=t.length;n--;){var o=t[n],s=e[o];t[n]=[o,s,(0,r.A)(s)]}return t}},3207:(e,t,n)=>{n.d(t,{t:()=>c});var r=n(6568),i=n(8330),o=n(9588),s=n(7007),a=n(3574);class c extends s.EventEmitter{static instance;static platform={sdkVersion:i.rE,identifier:""};_appIds=new Map([[a.en.Access,{}],[a.en.Map,{}]]);_tokenStorage={};_appIdsHistory=[];static getInstance(){return c.instance||(c.instance=new c),c.instance}static setPlatform(e){c.platform=e}updateToken(e){const{appId:t,secret:n,token:r,from:i}=e;this._tokenStorage[t]=r,this._appIds.get(i)[t]=n,this._appIdsHistory.push(t)}deleteToken(e,t){delete this._tokenStorage[e],t&&(delete this._appIds.get(t)[e],this.emit("permission-disconnected",{appId:e,from:t}))}getVersion(){return c.platform.sdkVersion}getToken(e){return this._tokenStorage[e]}async getIdentifier(){if(!c.platform.identifier){const e=await r.Ay.load(),t=await e.get();c.platform.identifier=t.visitorId}return c.platform.identifier}getAppId(e){const t=e?Object.keys(this._appIds.get(e)):[...Object.keys(this._appIds.get(a.en.Access)),...Object.keys(this._appIds.get(a.en.Map))];return this._appIdsHistory.reverse().find(e=>t.includes(e))}async fetchToken(e,t,n=0){try{const n={appId:e,secret:t,..."bundleId"in c.platform?{bundleId:c.platform.bundleId}:"sha1"in c.platform?{sha1:c.platform.sha1,packageName:c.platform.packageName}:{origin:window.location.hostname||"restriction.test.example.com",keyPlatform:"WEB"}},r={"Content-Type":"application/json",sdkVersion:c.platform.sdkVersion,identifier:c.platform.identifier??await this.getIdentifier()},i=await fetch(o.R0,{method:"POST",body:JSON.stringify(n),headers:r});return(await i.json()).result.idToken}catch(r){if(n<3){const r=500*Math.pow(2,n);return console.warn(`Retrying to fetch token in ${r} ms...`,++n),await new Promise(e=>setTimeout(e,r)),this.fetchToken(e,t,n)}throw r}}}},3236:(e,t,n)=>{function r(e){const{buildingId:t,labelCenter:{lat:n,lon:r},floors:i,name:o,venueId:s,defaultFloor:a}=e,c=Object.keys(o).map(e=>"default"===e?"name":`name:${e}`),{codes:l,ids:u,ordinals:d}=i.reduce((e,t)=>{const{id:n,code:r,ordinal:i}=t;return{codes:e.codes?`${e.codes},${r}`:r,ids:e.ids?`${e.ids},${n}`:n,ordinals:`${e.ordinals}`?`${e.ordinals},${i}`:`${i}`}},{codes:"",ids:"",ordinals:""});return{layer:{id:"mapxus-building-line"},properties:{building:"yes",id:t,label_center:`${r},${n}`,level_ids:u,level_names:l,ordinals:d,"ref:venue":s,...c,...a?{default_displayed_floor:a}:{}},source:"indoor-planet",sourceLayer:"mapxus_building"}}function i(e){const{address:t,buildings:n,id:r,name:i,type:o,labelCenter:{lon:s,lat:a},defaultBuilding:c,sharedFloors:l}=e,u=Object.entries(t).reduce((e,[t,n])=>Object.assign(e,"default"===t?{"addr:street":n.street,"addr:housenumber":n.housenumber}:{[`addr:street:${t}`]:n.street}),{}),d=Object.keys(i).map(e=>"default"===e?"name":`name:${e}`),h=c?n.find(e=>e.id===c)?.defaultFloor:null,f=c?{default_displayed_building:c,...h?{default_displayed_ordinal:h}:{}}:{},p=l?.length?{shared_level_ids:l.map(({id:e})=>e).join(","),shared_level_ordinals:l.map(({ordinal:e})=>e).join(",")}:{};return{layer:{id:"mapxus-venue-fill"},properties:{...u,...d,id:r,venue:o,label_center:`${s},${a}`,building_ids:n.map(({id:e})=>e).join(),...f,...p},source:"indoor-planet",sourceLayer:"mapxus_venue"}}n.d(t,{E:()=>i,r:()=>r})},3244:(e,t,n)=>{n.d(t,{A:()=>y});var r=n(3265),i=n(8967),o=n(402),s=n(7265),a=n(5861),c=n(2049),l=n(4616),u=n(8719),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;const y=function(e,t,n,y,g,m){var _=(0,c.A)(e),b=(0,c.A)(t),v=_?h:(0,a.A)(e),w=b?h:(0,a.A)(t),A=(v=v==d?f:v)==f,E=(w=w==d?f:w)==f,S=v==w;if(S&&(0,l.A)(e)){if(!(0,l.A)(t))return!1;_=!0,A=!1}if(S&&!A)return m||(m=new r.A),_||(0,u.A)(e)?(0,i.A)(e,t,n,y,g,m):(0,o.A)(e,t,v,n,y,g,m);if(!(1&n)){var B=A&&p.call(e,"__wrapped__"),x=E&&p.call(t,"__wrapped__");if(B||x){var I=B?e.value():e,L=x?t.value():t;return m||(m=new r.A),g(I,L,n,y,m)}}return!!S&&(m||(m=new r.A),(0,s.A)(e,t,n,y,g,m))}},3265:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(7919),i=n(1532),o=n(42),s=n(3061),a=n(4105),c=n(7681);function l(e){var t=this.__data__=new r.A(e);this.size=t.size}l.prototype.clear=i.A,l.prototype.delete=o.A,l.prototype.get=s.A,l.prototype.has=a.A,l.prototype.set=c.A;const u=l},3325:(e,t,n)=>{n.d(t,{A:()=>i});const r=n(7275).A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),i=e=>{const t={};let n,i,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim(),!n||t[n]&&r[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t}},3390:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(9888),i=n(4062);const o={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const s={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r.x+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,a)=>{if(!1===e)throw new i.A(o(r," has been removed"+(t?" in "+t:"")),i.A.ERR_DEPRECATED);return t&&!s[r]&&(s[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},o.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const a={assertOptions:function(e,t,n){if("object"!=typeof e)throw new i.A("options must be an object",i.A.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],a=t[s];if(a){const t=e[s],n=void 0===t||a(t,s,e);if(!0!==n)throw new i.A("option "+s+" must be "+n,i.A.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new i.A("Unknown option "+s,i.A.ERR_BAD_OPTION)}},validators:o}},3394:(t,n,r)=>{t.exports=(e=>{var t={};return r.d(t,e),t})({default:()=>e.default})},3442:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(5629),i=n(1682),o=n(5056),s=n(1472),a=n(3549);class c{_container;_indoor;_maplibre;_position="top-right";_buildingId;_floorNames;_ordinals;_ordinal;_style;_$innerFloors;_$activeFloor;_centerSelectorIdx;_lastNormalScrollableIdx;_$arrowBtnUp;_$arrowBtnDown;_maxScrollTop;_$selectorExpanded;_$selectorFolded;_componentDidMount=!1;_visible=!1;_isEnabled;_dragPan;_language;_debounceScroll;_clearScrollEventListener;constructor(e,t){const{style:n,enabled:r=!0,language:i}=t;this._indoor=e,this._language=i,this._style=n?Object.assign({},o.kC,n):o.kC,this._isEnabled=r,this._addIndoorEventListeners()}onAdd(e){return this._maplibre=e,this._addMapMoveEventListener(),this._container=(0,i.r)("div","maplibregl-ctrl mapxus-ctrl-floors hidden"),this._container}onRemove(){this._debounceScroll&&this._debounceScroll.cancel(),this._clearScrollEventListener&&this._clearScrollEventListener(),(0,i.Z)(this._container)}get position(){return this._position}get enabled(){return this._isEnabled}setEnabled(e){this._isEnabled=e,e&&!this._visible&&this._setVisibility(!0),!e&&this._visible&&this._setVisibility(!1)}getDefaultPosition(){return"top-right"}async switchByOrdinal(e,t){this._ordinal=e,this._dragPan=t??!0,await this._indoor.switchFloorByOrdinal(e),this._updateSelectorStatus(e),this._scrollCenterActiveFloor()}changePosition(e,t,n){const r=document.querySelector(`.maplibregl-ctrl-${e}`),i=r.querySelector(".mapxus-ctrl-floors");if(e!==t){this._position=t;const e=document.querySelector(`.maplibregl-ctrl-${t}`);i&&(r.removeChild(i),Number.isFinite(n)?e.insertBefore(i,e.children[n]):e.append(i),this._show(),this._scrollCenterActiveFloor())}else Number.isFinite(n)&&r.children[n]!==i&&(r.removeChild(i),r.insertBefore(i,r.children[n]),this._show(),this._scrollCenterActiveFloor())}setStyle(e){this._style=Object.assign({},this._style,e),this._componentDidMount&&(this._clearFloors(),this._calcSelectorLayout(),this._render(),this._scrollCenterActiveFloor())}_setVisibility(e){this._componentDidMount?e?(this._show(),this._scrollCenterActiveFloor()):this._hide():(this._visible=e,this._indoor.building&&e&&(this._render(),this._show(),this._scrollCenterActiveFloor()))}_addIndoorEventListeners(){this._indoor.on(r.Ms,e=>{if(this._updatePrepared(),!e)return;const{ordinal:t,dragPan:n}=e;this._dragPan=n,"building"in e?this._renderBuildingFloors(e.building,t):this._renderSharedLevelFloor(e)})}_updatePrepared(){this._clearState(),this._visible&&this._hide(),this._componentDidMount&&this._clearFloors()}_renderBuildingFloors(e,t){const{level_names:n,ordinals:r,id:i}=e.properties;this._buildingId=i,this._floorNames=n.split(",").reverse(),this._ordinals=r.split(",").reverse(),this._ordinal=t,this._calcSelectorLayout(),this._render();const o=this._indoor.getFeaturesById(i,{filter:e=>"mapxus-building-line"===e.layer.id})[0];this._checkIfShowFloorSelector(o)}_renderSharedLevelFloor(e){const{name:t,ordinal:n,id:r}=e;this._floorNames=[t[this._language]||t.default],this._ordinals=[n],this._ordinal=n,this._calcSelectorLayout(),this._render();const i=this._indoor.getFeaturesById(r,{filter:e=>"mapxus_shared_level"===e.sourceLayer})[0];this._checkIfShowFloorSelector(i)}_checkIfShowFloorSelector(e){this.enabled&&(!1!==this._dragPan||!1===this._dragPan&&e)&&(this._show(),this._scrollCenterActiveFloor())}_addMapMoveEventListener(){this._maplibre.on("moveend",()=>{if(this.enabled&&!1===this._dragPan&&this._buildingId){this._indoor.getFeaturesById(this._buildingId,{layerIds:["mapxus-building-line"]})[0]?this._componentDidMount?this._visible||(this._show(),this._scrollCenterActiveFloor()):(this._render(),this._show(),this._scrollCenterActiveFloor()):this._componentDidMount&&this._visible&&this._hide()}})}_clearState(){this._buildingId=null,this._floorNames=[],this._ordinals=[],this._ordinal=null}_calcSelectorLayout(){const{itemCount:e,itemSize:t}=this._style;this._centerSelectorIdx=Math.ceil(e/2)-1,this._maxScrollTop=(this._floorNames.length-e)*t,this._lastNormalScrollableIdx=this._floorNames.length-(e-this._centerSelectorIdx-1)-1}_render(){this._createFloors(),this._componentDidMount=!0}_hide(){this._container.classList.add("hidden"),this._visible=!1}_show(){this._container.classList.remove("hidden"),this._visible=!0}_createFloors(){this._$selectorFolded=this._$foldedSelector(this._container,()=>{this._expandSelector(!0),this._scrollCenterActiveFloor()}),this._$selectorExpanded=this._$expandedSelector(this._container,()=>this._expandSelector(!1))}_$expandedSelector(e,t){const{itemSize:n,itemCount:r,defaultFolded:o,backgroundColor:s}=this._style,c=(0,i.r)("div","mapxus-ctrl-floors-expanded "+(o?"hidden":""),e);if(this._floorNames.length>1){(0,i.r)("div","mapxus-ctrl-floors-close",c).onclick=t}const l=(0,i.r)("div","mapxus-ctrl-floors-wrapper",c);return l.style.backgroundColor=s,this._floorNames.length>r&&(this._$arrowBtnUp=this._$createScrollButton(l,"up"),this._$arrowBtnUp.onclick=()=>this._handleScroll("up")),this._$innerFloors=(0,i.r)("div","mapxus-ctrl-floors-inner",l),Object.assign(this._$innerFloors.style,{maxHeight:n*r+"px",width:`${n}px`}),this._$createFloors(this._$innerFloors),this._floorNames.length>r&&(this._$arrowBtnDown=this._$createScrollButton(l,"down"),this._$arrowBtnDown.onclick=()=>this._handleScroll("down"),this._$innerFloors.addEventListener("scroll",this._debounceScroll=(0,a.A)(e=>{e.stopPropagation(),this._resetArrowBtnStatus(this._$innerFloors.scrollTop)},100)),this._clearScrollEventListener=()=>this._$innerFloors.removeEventListener("scroll",this._debounceScroll)),c}_$foldedSelector(e,t){const{itemSize:n,activeFontColor:r,activeBackgroundColor:o,defaultFolded:s}=this._style,a=(0,i.r)("div","mapxus-ctrl-floors-folded mapxus-ctrl-floors-floor "+(s?"":"hidden"),e);return a.onclick=t,Object.assign(a.style,{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`,color:r,backgroundColor:o}),a}_clearFloors(){this._container.replaceChildren(),this._componentDidMount=!1}_$createScrollButton(e,t){return(0,i.r)("div",`mapxus-ctrl-floors-arrow mapxus-ctrl-floors-floor ${t}`,e)}_$createFloors(e){const{fontColor:t,itemSize:n}=this._style;let r;this._floorNames.forEach((o,s)=>{r=(0,i.r)("div","mapxus-ctrl-floors-floor",e),r.dataset.floor=o,r.dataset.ordinal=this._ordinals[s],r.innerText=o,Object.assign(r.style,{color:t,height:`${n}px`,lineHeight:`${n}px`}),r.dataset.ordinal===this._ordinal&&(this._$activeFloor=r,this._resetActiveFloor(!0),this._$selectorFolded.innerText=o),r.onclick=async e=>{this._indoor.setDragPan("restrict"),await this.switchByOrdinal(e.target.dataset.ordinal)}})}_updateSelectorStatus(e){const t=this._floorNames[this._ordinals.indexOf(e)];this._$activeFloor&&this._resetActiveFloor(!1);for(const t of this._$innerFloors.children){const n=t;n.dataset.ordinal===e&&(this._$activeFloor=n,this._resetActiveFloor(!0))}this._$selectorFolded.innerText=t}_resetArrowBtnStatus(e){0===e?this._$arrowBtnUp?.classList?.add("hidden"):this._$arrowBtnUp?.classList?.remove("hidden"),e===this._maxScrollTop?this._$arrowBtnDown?.classList?.add("hidden"):this._$arrowBtnDown?.classList?.remove("hidden")}_resetActiveFloor(e){const{activeBackgroundColor:t,backgroundColor:n,activeFontColor:r,fontColor:i}=this._style;Object.assign(this._$activeFloor.style,{color:e?r:i,backgroundColor:e?t:n,fontWeight:e?"bold":"normal",cursor:e?"auto":"pointer"}),this._$activeFloor.disabled=e}_scrollCenterActiveFloor(){if(this._ordinal){const e=this._ordinals.indexOf(this._ordinal);e>-1&&(this._$innerFloors.scrollTop=this._getScrollTop(e),this._$innerFloors.scrollTop||this._resetArrowBtnStatus(0))}}_getScrollTop(e){return(0,s.A)(this._centerSelectorIdx,this._lastNormalScrollableIdx+1)?(e-this._centerSelectorIdx)*this._style.itemSize:e>this._lastNormalScrollableIdx?this._maxScrollTop:0}_handleScroll(e){const t=this._$innerFloors.scrollTop,{itemSize:n}=this._style;if("up"===e){const e=t-2*n;this._$innerFloors.scrollTop=e<0?0:e}else if("down"===e){const e=t+2*n;this._$innerFloors.scrollTop=e>this._maxScrollTop?this._maxScrollTop:e}}_expandSelector(e){e?(this._$selectorExpanded.classList.remove("hidden"),this._$selectorFolded.classList.add("hidden")):(this._$selectorExpanded.classList.add("hidden"),this._$selectorFolded.classList.remove("hidden"))}}},3454:(e,t,n)=>{n.d(t,{A:()=>o});var r=Math.max,i=Math.min;const o=function(e,t,n){return e>=i(t,n)&&e<r(t,n)}},3503:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHex=t.remove0x=void 0;var r=n(6527);t.remove0x=function(e){return e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e};t.decodeHex=function(e){return(0,r.hexToBytes)((0,t.remove0x)(e))}},3511:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(6912),i=n(5647),o=n(4792),s=n(3153);const a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,r.A)(t,(0,o.A)(e)),e=(0,i.A)(e);return t}:s.A},3549:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(3149),i=n(1052),o=n(9313),s=Math.max,a=Math.min;const c=function(e,t,n){var c,l,u,d,h,f,p=0,y=!1,g=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function _(t){var n=c,r=l;return c=l=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-f;return void 0===f||n>=t||n<0||g&&e-p>=u}function v(){var e=(0,i.A)();if(b(e))return w(e);h=setTimeout(v,function(e){var n=t-(e-f);return g?a(n,u-(e-p)):n}(e))}function w(e){return h=void 0,m&&c?_(e):(c=l=void 0,d)}function A(){var e=(0,i.A)(),n=b(e);if(c=arguments,l=this,f=e,n){if(void 0===h)return function(e){return p=e,h=setTimeout(v,t),y?_(e):d}(f);if(g)return clearTimeout(h),h=setTimeout(v,t),_(f)}return void 0===h&&(h=setTimeout(v,t)),d}return t=(0,o.A)(t)||0,(0,r.A)(n)&&(y=!!n.leading,u=(g="maxWait"in n)?s((0,o.A)(n.maxWait)||0,t):u,m="trailing"in n?!!n.trailing:m),A.cancel=function(){void 0!==h&&clearTimeout(h),p=0,c=f=l=h=void 0},A.flush=function(){return void 0===h?d:w((0,i.A)())},A}},3562:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getHash=function(e){return{hash:e}},t.createCurve=function(e,t){const n=t=>(0,r.weierstrass)({...e,hash:t});return{...n(t),create:n}};const r=n(1705)},3574:(e,t,n)=>{n.d(t,{$O:()=>a.$,Kp:()=>s.Kp,LJ:()=>s.LJ,SV:()=>i.S,_P:()=>s._P,en:()=>o.e,nH:()=>s.nH,ys:()=>r.y});var r=n(6612),i=n(9408),o=n(8884),s=n(6358),a=n(5405)},3626:(e,t,n)=>{n.d(t,{V:()=>i});var r=n(1682);class i{_container;_isEnabled;constructor(e){this._isEnabled=e?.enabled??!0}onAdd(e){if(this._container=(0,r.r)("div","maplibregl-ctrl mapxus-ctrl-logo",e.getContainer()),this._isEnabled){const e=(0,r.r)("a","mapxus-logo",this._container);e.target="_blank",e.href="https://www.khi.co.jp/groupvision2030/mapxus.html",e.setAttribute("aria-label","Mapxus logo"),e.setAttribute("rel","noopener"),this._container.appendChild(e)}return this._container}onRemove(){(0,r.Z)(this._container)}getDefaultPosition(){return"bottom-left"}}},3631:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"WeakMap")},3724:(e,t,n)=>{n.d(t,{H:()=>c});var r=n(9588),i=n(2068),o=n(9573),s=n(6034);const a=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","description"];class c{_api="/api/v5/buildings";_request=i.K.getInstance();constructor(){}searchByIds(e){const t=(0,o.VS)(e);if(!t)throw new Error("Please input building id at least one.");const n=`${this._api}/${t}`;return this._changedRes(n)}searchByDistance(e){const{center:t,distance:n,keywords:i="",offset:s=r.e$,page:a=r.KL}=e;if(!(0,o.ES)(t))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,o.F5)(n)||n>1e4)throw new Error("Invalid distance parameter. Expected a positive number and no more than 10000.");const c=new URLSearchParams;c.set("center",t.join(",")),c.set("distance",String(n)),c.set("offset",String(s)),c.set("page",String(a)),(0,o.BW)(i)&&c.set("keywords",i);const l=`${this._api}?${c.toString()}`;return this._changedRes(l)}searchByBounds(e){const{bounds:t,offset:n=r.e$,page:i=r.KL,keywords:s}=e;if(!(0,o.dD)(t))throw new Error("'bounds' must be an array of two arrays, each containing two numbers.");const a=new URLSearchParams;a.set("bbox",t.flat().join()),a.set("offset",String(n)),a.set("page",String(i)),(0,o.BW)(s)&&a.set("keywords",s);const c=`${this._api}?${a.toString()}`;return this._changedRes(c)}searchByGlobal(e){const{keywords:t,offset:n=r.e$,page:i=r.KL}=e,s=new URLSearchParams;s.set("searchGlobal",String(!0)),s.set("offset",String(n)),s.set("page",String(i)),(0,o.BW)(t)&&s.set("keywords",t);const a=`${this._api}?${s.toString()}`;return this._changedRes(a)}searchByFloorId(e){if(!(0,o.BW)(e))throw new Error("'floorId' cannot be empty.");return this._changedRes(`${this._api}/floors/${e}`)}search(e){const t=new URLSearchParams;return Object.entries(e).forEach(([e,n])=>{"bounds"===e?t.set("bbox",n.flat().join()):"center"===e?t.set("center",n.join()):t.set(e,String(n))}),this._changedRes(`${this._api}?${t.toString()}`)}async _changedRes(e){return this._request.get(e).then(e=>{if(e.data?.result?.buildings){const t=e.data.result.buildings.map(e=>(0,s.A)(e,(e,t)=>a.includes(t)));return{...e,data:{...e.data,result:{...e.data.result,buildings:t}}}}return e})}}},3736:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},3820:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(6847);const i={...n(2569),...r.A}},3831:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(6912),i=n(2049);const o=function(e,t,n){var o=t(e);return(0,i.A)(e)?o:(0,r.A)(o,n(e))}},3853:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(4062);function i(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r.A("Request failed with status code "+n.status,[r.A.ERR_BAD_REQUEST,r.A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},3873:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=r[s];i||(i=c),n[o]=a,r[o]=c;let u=s,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const h=l&&c-l;return h?Math.round(1e3*d/h):void 0}}},3913:(e,t,n)=>{n.d(t,{d:()=>i});var r=n(1682);class i{_container;_$icon;_removeClickEventListener;onAdd(e){return this._container=(0,r.r)("div","maplibregl-ctrl mapxus-ctrl-collapsed-copyright",e.getContainer()),this._container.innerHTML='\n <div class="mapxus-collapsed-copyright-content">\n <div class="mapxus-collapsed-copyright-menu hidden">\n <div class="mapxus-collapsed-copyright-logo" onclick="window.open(\'https://www.khi.co.jp/groupvision2030/mapxus.html\')"></div>\n <div class="mapxus-collapsed-horizontal-divider"></div>\n <div class="mapxus-collapsed-copyright-text" onclick="window.open(\'https://www.openstreetmap.org/copyright/\')"></div>\n </div>\n <div class="mapxus-collapsed-copyright-btn"></div>\n </div>\n ',this._bindEvents(),this._container}onRemove(){this._removeClickEventListener(),(0,r.Z)(this._container)}getDefaultPosition(){return"bottom-right"}_bindEvents(){const e=this._container.querySelector(".mapxus-collapsed-copyright-menu");this._$icon=this._container.querySelector(".mapxus-collapsed-copyright-btn");let t=!1;function n(){t=!t,t?e.classList.remove("hidden"):e.classList.add("hidden")}this._$icon.addEventListener("click",n),this._removeClickEventListener=()=>this._$icon.removeEventListener("click",n)}}},3938:(e,t,n)=>{n.d(t,{A:()=>r});const r=(0,n(367).A)(Object.keys,Object)},3957:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(674);const i=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r.A&&void 0===t?"__lodash_hash_undefined__":t,this}},3967:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7275),i=n(5267);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function s(e,t,n){if(!t)return e;const s=n&&n.encode||o;r.A.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let c;if(c=a?a(t,n):r.A.isURLSearchParams(t)?t.toString():new i.A(t,n).toString(s),c){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+c}return e}},3973:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(3831),i=n(3511),o=n(1865);const s=function(e){return(0,r.A)(e,o.A,i.A)}},3988:(e,t,n)=>{n.d(t,{A:()=>r});const r=n(1917).A.Uint8Array},4062:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(7275);function i(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}r.A.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.A.toJSONObject(this.config),code:this.code,status:this.status}}});const o=i.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{s[e]={value:e}}),Object.defineProperties(i,s),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(e,t,n,s,a,c)=>{const l=Object.create(o);return r.A.toFlatObject(e,l,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),i.call(l,e.message,t,n,s,a),l.cause=e,l.name=e.name,c&&Object.assign(l,c),l};const a=i},4099:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){return e.has(t)}},4105:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){return this.__data__.has(e)}},4116:(e,t,n)=>{n.d(t,{p:()=>o});var r=n(853),i=n(5664);class o{_maplibreMap;_layerId;_sourceId;_imageName="poi-01";_imageSize=.75;_iconAnchor="bottom";constructor(e){this._maplibreMap=e;const t=(0,i.A)();this._layerId=`MXMap_preset_marker_layer_${t}`,this._sourceId=`MXMap_preset_marker_source_${t}`}async setIcon(e){e&&await(0,r.K)(this._maplibreMap,e),this._imageName=e}setIconSize(e){this._imageSize=e}setIconAnchor(e){this._iconAnchor=e}get layerId(){return this._layerId}get sourceId(){return this._sourceId}create(e){if(e.length){const t=e.map(e=>this._createIconFeature(e));this._addIconSource(t),this._addIconLayer()}}updateData(e){const t=this._maplibreMap.getSource(this._sourceId);if(!t)return;const n=!(!e.remove||!e.remove.length),r=!(!e.add||!e.add.length),i=!(!e.update||!e.update.length);if(n||r||i){const o={};n&&(o.remove=e.remove.map(e=>String(e))),r&&(o.add=e.add.map(e=>this._createIconFeature(e))),i&&(o.update=e.update.map(e=>{const t="properties"in e,n=this._createIconFeature(e),{id:r,geometry:i,properties:o}=n;return{id:r,newGeometry:i,removeAllProperties:t,...o?{addOrUpdateProperties:o.map((e,t)=>({key:t,value:e}))}:{}}})),t.updateData(o)}}remove(){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.removeLayer(this._layerId),this._maplibreMap.getSource(this._sourceId)&&this._maplibreMap.removeSource(this._sourceId)}on(e,t){const{unsubscribe:n}=this._maplibreMap.on(e,this._layerId,e=>this._handleEventListener(e,t));return{off:n}}setFilter(e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,e)}setFilterByVenue(e,t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","venueId"],e??""],["==",["get","ordinal"],t??""]],["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]]])}setFilterByBuilding(e,t){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setFilter(this._layerId,["any",["all",["==",["get","buildingId"],e??""],["==",["get","ordinal"],t??""]],["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]]])}setOpacity(e){this._maplibreMap.getLayer(this._layerId)&&this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",e)}setOpacityByVenue(e,t,n){if(this._maplibreMap.getLayer(this._layerId)){const r=["case",["all",["==",["get","venueId"],e??""],["==",["get","ordinal"],t??""]],1,["all",["==",["get","venueId"],""],["==",["get","ordinal"],""]],1,n??.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",r)}}setOpacityByBuilding(e,t,n){if(this._maplibreMap.getLayer(this._layerId)){const r=["case",["all",["==",["get","buildingId"],e??""],["==",["get","ordinal"],t??""]],1,["all",["==",["get","buildingId"],""],["==",["get","ordinal"],""]],1,n??.5];this._maplibreMap.setPaintProperty(this._layerId,"icon-opacity",r)}}_createIconFeature(e){const{lngLat:t,properties:n}=e;return{id:"featureId"in e&&Number.isFinite(e.featureId)?String(e.featureId):void 0,type:"Feature",geometry:{type:"Point",coordinates:t},properties:n||null}}_addIconSource(e){const t={type:"geojson",data:{type:"FeatureCollection",features:e}};this._maplibreMap.addSource(this._sourceId,t)}_addIconLayer(){this._maplibreMap.addLayer({id:this._layerId,type:"symbol",source:this._sourceId,layout:{"icon-image":this._imageName,"icon-size":this._imageSize,"icon-anchor":this._iconAnchor,"icon-allow-overlap":!0,"icon-ignore-placement":!0}})}_handleEventListener(e,t){const{point:n}=e;t(this._maplibreMap.queryRenderedFeatures(n,{layers:[this._layerId]})[0])}}},4139:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hkdf=void 0,t.extract=o,t.expand=c;const r=n(9615),i=n(9175);function o(e,t,n){return(0,i.ahash)(e),void 0===n&&(n=new Uint8Array(e.outputLen)),(0,r.hmac)(e,(0,i.toBytes)(n),(0,i.toBytes)(t))}const s=Uint8Array.from([0]),a=Uint8Array.of();function c(e,t,n,o=32){(0,i.ahash)(e),(0,i.anumber)(o);const c=e.outputLen;if(o>255*c)throw new Error("Length should be <= 255*HashLen");const l=Math.ceil(o/c);void 0===n&&(n=a);const u=new Uint8Array(l*c),d=r.hmac.create(e,t),h=d._cloneInto(),f=new Uint8Array(d.outputLen);for(let e=0;e<l;e++)s[0]=e+1,h.update(0===e?a:f).update(n).update(s).digestInto(f),u.set(f,c*e),d._cloneInto(h);return d.destroy(),h.destroy(),(0,i.clean)(f,s),u.slice(0,o)}t.hkdf=(e,t,n,r,i)=>c(e,o(e,t,n),r,i)},4171:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(702);const i=function(){try{var e=(0,r.A)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},4543:(e,t,n)=>{n.d(t,{e:()=>r});class r extends Error{status;constructor(e,t){super(e);const{status:n,name:r}=t;void 0!==n&&(this.status=n),void 0!==r&&(this.name=r)}}},4545:(e,t,n)=>{n.d(t,{FR:()=>o.F,H$:()=>i.H,v$:()=>s.v,w1:()=>r.w});var r=n(2801),i=n(3724),o=n(5568),s=n(5344)},4616:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(1917),i=n(4639),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=s&&s.exports===o?r.A.Buffer:void 0;const c=(a?a.isBuffer:void 0)||i.A},4639:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(){return!1}},4662:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7275),i=n(7110);const o=e=>e instanceof i.A?{...e}:e;function s(e,t){t=t||{};const n={};function i(e,t,n,i){return r.A.isPlainObject(e)&&r.A.isPlainObject(t)?r.A.merge.call({caseless:i},e,t):r.A.isPlainObject(t)?r.A.merge({},t):r.A.isArray(t)?t.slice():t}function s(e,t,n,o){return r.A.isUndefined(t)?r.A.isUndefined(e)?void 0:i(void 0,e,0,o):i(e,t,0,o)}function a(e,t){if(!r.A.isUndefined(t))return i(void 0,t)}function c(e,t){return r.A.isUndefined(t)?r.A.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function l(n,r,o){return o in t?i(n,r):o in e?i(void 0,n):void 0}const u={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:l,headers:(e,t,n)=>s(o(e),o(t),0,!0)};return r.A.forEach(Object.keys(Object.assign({},e,t)),function(i){const o=u[i]||s,a=o(e[i],t[i],i);r.A.isUndefined(a)&&o!==l||(n[i]=a)}),n}},4762:(e,t,n)=>{n.d(t,{G:()=>i});var r=n(1682);class i{_map;_maplibre;_buildingId;_features;_$container;_$listContainer;_$buildingList;_listHeight;_language;_visible;_position="top-right";_isMobileMode;_isListShown=!1;constructor(e,t){this._map=e,this._language=e.getLanguage(),this._visible=t??!0,this._detectDeviceMode()}onAdd(e){return this._maplibre=e,this._$container=(0,r.r)("div","maplibregl-ctrl maplibregl-ctrl-building-filter "+(this._visible?"":"hide"),this._maplibre.getContainer()),this._$container.appendChild(this._buildingFilterIconCreate("div")),this._$container.appendChild(this._buildingNameListCreate("div")),this._bindEvents(),this._$container}onRemove(){(0,r.Z)(this._$container)}get position(){return this._position}get enabled(){return this._visible}getDefaultPosition(){return"top-right"}setVisibility(e){this._visible=e,e?this._$showLayout():this._$hideLayout()}changePosition(e,t,n){const r=document.querySelector(`.maplibregl-ctrl-${e}`),i=r.querySelector(".maplibregl-ctrl-building-filter");if(e!==t){this._position=t;const e=document.querySelector(`.maplibregl-ctrl-${t}`);i&&(r.removeChild(i),Number.isFinite(n)?e.insertBefore(i,e.children[n]):e.append(i),this._updateBuildingListLayout(t))}else Number.isFinite(n)&&r.children[n]!==i&&(r.removeChild(i),r.insertBefore(i,r.children[n]))}_bindEvents(){this._maplibre.on("moveend",()=>this._refresh()),this._map.onMapChangeListener(e=>{const t=e.building?.properties?.id??"";this._buildingId!==t&&(this._buildingId=t,this._refresh())}),this._map.renderComplete(()=>this._init())}_init(){this._load()}_refresh(){this._load()}_load(){this._buildingNameListClean(),this._buildingNameListUpdate()}_buildingFilterIconCreate(e){const t=(0,r.r)(e,"mapxus-building-filter-icon");return this._bindMouseOnEvents(t,!1),this._bindMobileTouchEvents(t),t}_buildingNameListCreate(e){return this._$listContainer=(0,r.r)(e,"mapxus-building-name-layout"),this._$listContainer.style.display="none",this._$listContainer.style.top="20px",this._$buildingList=(0,r.r)(e,"mapxus-building-name-list",this._$listContainer),this._bindMouseOnEvents(this._$listContainer,!0),this._$listContainer}_buildingNameListUpdate(){this._features=[];const e=this._map.getMaplibre(),t=e?e.queryRenderedFeatures({layers:["mapxus-building-line"]}):[];for(const e of t){const{properties:t}=e,{id:n,name:r}=t,i=t?.[`name:${this._language}`]??r;this._features.find(e=>e.properties.id===n)||(this._features.push(e),this._$buildingList.appendChild(this._buildingNameCreate("p",i,n,n===this._map.building?.properties?.id)))}this._setBuildingListHeight(this._features),this._updateBuildingListLayout(this._position)}_buildingNameListClean(){this._$buildingList.replaceChildren()}_setBuildingListHeight(e){const t=e.map(e=>{const t=e?.properties?.[`name:${this._language}`]??e?.properties?.name;return t?Math.ceil(8*t.length/107):0}).reduce((e,t)=>e+t,0);this._listHeight=26*t+8*e.length,this._$buildingList.style.height=this._$listContainer.style.height=`${this._listHeight>=208?208:this._listHeight}px`}_buildingNameCreate(e,t,n,i){const o=(0,r.r)(e,"mapxus-building-name"+(i?" active":""));return o.dataset.id=n,o.innerText=t,this._buildingNameClickEvent(o),o}_toggleList(e){this._isListShown=e,this._$listContainer.style.display=e?"block":"none"}_buildingNameClickEvent(e){e.onclick||(e.onclick=async e=>{const t=e.target;await this._map.selectBuildingById(t.dataset.id)})}_bindMouseOnEvents(e,t){e.onmouseenter=()=>{this._isMobileMode||this._toggleList(!0)},t&&(e.onmouseleave=()=>this._toggleList(!1))}_bindMobileTouchEvents(e){window.addEventListener("resize",()=>this._detectDeviceMode()),e.ontouchend=()=>this._toggleList(!this._isListShown)}_$showLayout(){this._$container.classList.remove("hide")}_$hideLayout(){this._$container.classList.add("hide")}_updateBuildingListLayout(e){e.indexOf("left")>-1?(this._$listContainer.style.right=null,this._$listContainer.style.left="55px"):(this._$listContainer.style.left=null,this._$listContainer.style.right="55px");const t=this._$container.offsetParent?this._$container.offsetParent.clientHeight-(this._$container.offsetTop+this._$container.clientHeight)-25:0;e.includes("bottom")&&this._listHeight-20>t?(this._$listContainer.style.top=null,this._$listContainer.style.bottom="15px"):(this._$listContainer.style.bottom=null,this._$listContainer.style.top="20px")}_detectDeviceMode(){this._isMobileMode=window.matchMedia("(pointer: coarse) and (max-width: 768px)").matches}}},4787:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(169);const i=function(e){var t=this.__data__,n=(0,r.A)(t,e);return n<0?void 0:t[n][1]}},4792:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(2634),i=n(3153),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols;const a=s?function(e){return null==e?[]:(e=Object(e),(0,r.A)(s(e),function(t){return o.call(e,t)}))}:i.A},4841:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(2136),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=o&&o.exports===i&&r.A.process;const a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}()},4846:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(9672),i=n(3098);const o=function(e){return(0,i.A)(e)&&"[object Arguments]"==(0,r.A)(e)}},4874:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(8458);class i{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,i,o){n.reason||(n.reason=new r.A(e,i,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new i(function(t){e=t}),cancel:e}}}const o=i},4877:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},4928:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ephemeralKeySize=t.symmetricNonceLength=t.symmetricAlgorithm=t.isHkdfKeyCompressed=t.isEphemeralKeyCompressed=t.ellipticCurve=t.ECIES_CONFIG=void 0;var r=n(1666),i=function(){this.ellipticCurve="secp256k1",this.isEphemeralKeyCompressed=!1,this.isHkdfKeyCompressed=!1,this.symmetricAlgorithm="aes-256-gcm",this.symmetricNonceLength=16};t.ECIES_CONFIG=new i;t.ellipticCurve=function(){return t.ECIES_CONFIG.ellipticCurve};t.isEphemeralKeyCompressed=function(){return t.ECIES_CONFIG.isEphemeralKeyCompressed};t.isHkdfKeyCompressed=function(){return t.ECIES_CONFIG.isHkdfKeyCompressed};t.symmetricAlgorithm=function(){return t.ECIES_CONFIG.symmetricAlgorithm};t.symmetricNonceLength=function(){return t.ECIES_CONFIG.symmetricNonceLength};t.ephemeralKeySize=function(){var e={secp256k1:t.ECIES_CONFIG.isEphemeralKeyCompressed?r.COMPRESSED_PUBLIC_KEY_SIZE:r.UNCOMPRESSED_PUBLIC_KEY_SIZE,x25519:r.CURVE25519_PUBLIC_KEY_SIZE,ed25519:r.CURVE25519_PUBLIC_KEY_SIZE};if(t.ECIES_CONFIG.ellipticCurve in e)return e[t.ECIES_CONFIG.ellipticCurve];throw new Error("Not implemented")}},4943:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(759),i=n(3198),o=n(5997);const s=function(e){var t=(0,i.A)(e);return 1==t.length&&t[0][2]?(0,o.A)(t[0][0],t[0][1]):function(n){return n===e||(0,r.A)(n,e,t)}}},4967:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNegativeLE=void 0,t.mod=d,t.pow=function(e,t,n){return _(A(n),e,t)},t.pow2=function(e,t,n){let r=e;for(;t-- >i;)r*=r,r%=n;return r},t.invert=h,t.tonelliShanks=y,t.FpSqrt=g,t.validateField=function(e){const t=m.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"});return(0,r._validateObject)(e,t),e},t.FpPow=_,t.FpInvertBatch=b,t.FpDiv=function(e,t,n){return e.mul(t,"bigint"==typeof n?h(n,e.ORDER):e.inv(n))},t.FpLegendre=v,t.FpIsSquare=function(e,t){return 1===v(e,t)},t.nLength=w,t.Field=A,t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?n:e.neg(n)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n},t.hashToPrivateScalar=function(e,t,n=!1){const i=(e=(0,r.ensureBytes)("privateHash",e)).length,s=w(t).nByteLength+8;if(s<24||i<s||i>1024)throw new Error("hashToPrivateScalar: expected "+s+"-1024 bytes of input, got "+i);return d(n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e),t-o)+o},t.getFieldBytesLength=E,t.getMinHashLength=S,t.mapHashToField=function(e,t,n=!1){const i=e.length,s=E(t),a=S(t);if(i<16||i<a||i>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+i);const c=d(n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e),t-o)+o;return n?(0,r.numberToBytesLE)(c,s):(0,r.numberToBytesBE)(c,s)};const r=n(8627),i=BigInt(0),o=BigInt(1),s=BigInt(2),a=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);function d(e,t){const n=e%t;return n>=i?n:t+n}function h(e,t){if(e===i)throw new Error("invert: expected non-zero number");if(t<=i)throw new Error("invert: expected positive modulus, got "+t);let n=d(e,t),r=t,s=i,a=o,c=o,l=i;for(;n!==i;){const e=r/n,t=r%n,i=s-c*e,o=a-l*e;r=n,n=t,s=c,a=l,c=i,l=o}if(r!==o)throw new Error("invert: does not exist");return d(s,t)}function f(e,t){const n=(e.ORDER+o)/c,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw new Error("Cannot find square root");return r}function p(e,t){const n=(e.ORDER-l)/u,r=e.mul(t,s),i=e.pow(r,n),o=e.mul(t,i),a=e.mul(e.mul(o,s),i),c=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(c),t))throw new Error("Cannot find square root");return c}function y(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-o,n=0;for(;t%s===i;)t/=s,n++;let r=s;const a=A(e);for(;1===v(a,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return f;let c=a.pow(r,t);const l=(t+o)/s;return function(e,r){if(e.is0(r))return r;if(1!==v(e,r))throw new Error("Cannot find square root");let i=n,s=e.mul(e.ONE,c),a=e.pow(r,t),u=e.pow(r,l);for(;!e.eql(a,e.ONE);){if(e.is0(a))return e.ZERO;let t=1,n=e.sqr(a);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw new Error("Cannot find square root");const r=o<<BigInt(i-t-1),c=e.pow(s,r);i=t,s=e.sqr(c),a=e.mul(a,s),u=e.mul(u,c)}return u}}function g(e){return e%c===a?f:e%u===l?p:y(e)}t.isNegativeLE=(e,t)=>(d(e,t)&o)===o;const m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function _(e,t,n){if(n<i)throw new Error("invalid exponent, negatives unsupported");if(n===i)return e.ONE;if(n===o)return t;let r=e.ONE,s=t;for(;n>i;)n&o&&(r=e.mul(r,s)),s=e.sqr(s),n>>=o;return r}function b(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),o=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),o),r}function v(e,t){const n=(e.ORDER-o)/s,r=e.pow(t,n),i=e.eql(r,e.ONE),a=e.eql(r,e.ZERO),c=e.eql(r,e.neg(e.ONE));if(!i&&!a&&!c)throw new Error("invalid Legendre symbol result");return i?1:a?0:-1}function w(e,t){void 0!==t&&(0,r.anumber)(t);const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function A(e,t,n=!1,s={}){if(e<=i)throw new Error("invalid field: expected ORDER > 0, got "+e);let a,c;if("object"==typeof t&&null!=t){if(s.sqrt||n)throw new Error("cannot specify opts in two arguments");const e=t;e.BITS&&(a=e.BITS),e.sqrt&&(c=e.sqrt),"boolean"==typeof e.isLE&&(n=e.isLE)}else"number"==typeof t&&(a=t),s.sqrt&&(c=s.sqrt);const{nBitLength:l,nByteLength:u}=w(e,a);if(u>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let f;const p=Object.freeze({ORDER:e,isLE:n,BITS:l,BYTES:u,MASK:(0,r.bitMask)(l),ZERO:i,ONE:o,create:t=>d(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return i<=t&&t<e},is0:e=>e===i,isValidNot0:e=>!p.is0(e)&&p.isValid(e),isOdd:e=>(e&o)===o,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,n)=>d(t+n,e),sub:(t,n)=>d(t-n,e),mul:(t,n)=>d(t*n,e),pow:(e,t)=>_(p,e,t),div:(t,n)=>d(t*h(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:c||(t=>(f||(f=g(e)),f(p,t))),toBytes:e=>n?(0,r.numberToBytesLE)(e,u):(0,r.numberToBytesBE)(e,u),fromBytes:e=>{if(e.length!==u)throw new Error("Field.fromBytes: expected "+u+" bytes, got "+e.length);return n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e)},invertBatch:e=>b(p,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(p)}function E(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function S(e){const t=E(e);return t+Math.ceil(t/2)}},4969:(e,t,n)=>{n.d(t,{y:()=>i});var r=n(3574);function i(e){let t=null;return!function(e){return/^en(-(US|GB|AU))?$/.test(e)}(e)?!function(e){return/^zh(-(Hans|CN))?$/.test(e)}(e)?!function(e){return/^zh-(Hant|HK|MO)$/.test(e)}(e)?!function(e){return"zh-TW"===e}(e)?!function(e){return/^ja(-JP)?$/.test(e)}(e)?!function(e){return/^ko(-KR)?$/.test(e)}(e)?!function(e){return/^(fil|tl)(-PH)?$/.test(e)}(e)?!function(e){return/^id(-ID)?$/.test(e)}(e)?!function(e){return/^pt(-(BR|PT))?$/.test(e)}(e)?!function(e){return/^th(-TH)?$/.test(e)}(e)?!function(e){return/^vi(-VN)?$/.test(e)}(e)?function(e){return/^ar(-(DZ|BH|EG|IQ|JO|KW|LB|LY|MA|OM|QA|SA|SY|TN|AE|YE))?$/.test(e)}(e)&&(t=r.ys.ARABIC):t=r.ys.VIETNAMESE:t=r.ys.THAI:t=r.ys.PORTUGUESE:t=r.ys.INDONESIAN:t=r.ys.FILIPINO:t=r.ys.KOREAN:t=r.ys.JAPANESE:t=r.ys.CHINESE_TRADITIONAL_TW:t=r.ys.CHINESE_TRADITIONAL:t=r.ys.CHINESE_SIMPLIFIED:t=r.ys.ENGLISH,t}},5054:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(7465),i=n(1788),o=n(2049),s=n(5353),a=n(5254),c=n(901);const l=function(e,t,n){for(var l=-1,u=(t=(0,r.A)(t,e)).length,d=!1;++l<u;){var h=(0,c.A)(t[l]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++l!=u?d:!!(u=null==e?0:e.length)&&(0,a.A)(u)&&(0,s.A)(h,u)&&((0,o.A)(e)||(0,i.A)(e))}},5056:(e,t,n)=>{n.d(t,{eG:()=>a,kC:()=>s,sy:()=>o});var r=n(4969),i=n(3574);const o={lineWidth:3,lineColor:"#A5E3FF",lineOpacity:1,lineOffset:-1.5},s={fontColor:"#8c8c8c",activeFontColor:"#fff",backgroundColor:"#fff",activeBackgroundColor:"#074769",itemSize:50,itemCount:4,defaultFolded:!1},a=(0,r.y)(window.navigator.language)??i.ys.ENGLISH},5088:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(5373),i=n(7919),o=n(8335);const s=function(){this.size=0,this.__data__={hash:new r.A,map:new(o.A||i.A),string:new r.A}}},5145:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5188:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(8291),i=n(1089),o=n(5664);const s="Poi_poiClick";class a{_map;_currentStyle=null;_layerIds=[];_dispatch=(0,i.A)(s);_listeners=[];constructor(e){this._map=e,this._bindPoiClickEvent()}destroy(){this._dispatch.on(`.${s}`,null),this._currentStyle=null,this._map=null,this._dispatch=null,this._listeners=[],this._layerIds=[]}onPoiClick(e){const t=(0,o.A)(`${s}.`);return this._dispatch.on(t,e),this._listeners.push(t),{unsubscribe:()=>this._dispatch.on(t,null)}}_queryPoiLayers(){const e=this._map.getStyle();if(e.name===this._currentStyle)return;const t=(0,r.cq)(e).filter(e=>"mapxus_place"===e["source-layer"]&&"symbol"===e.type);this._layerIds=t.map(({id:e})=>e),this._currentStyle=e.name}_bindPoiClickEvent(){this._map.on("click",e=>{if(0===this._listeners.length)return;this._queryPoiLayers();const t=this._map.queryRenderedFeatures(e.point,{layers:this._layerIds});if(0===t.length)return;const n=t[0],r=Boolean(n.properties?.["ref:shared_level"]),i=r?n.properties?.["ref:shared_level"]:n.properties?.["ref:level"],{floor:o,building:a,venue:c}=r?this._queryIndoorFeaturesBySharedFloor(i):this._queryIndoorFeaturesByFloor(i);this._dispatch.call(s,null,{coordinate:e.lngLat,poi:n,building:a,venue:c,floor:o})})}_queryIndoorFeaturesBySharedFloor(e){const t=this._map.queryRenderedFeatures({layers:["mapxus-shared-level-fill","mapxus-shared-level-fill-overlap-copy","mapxus-shared-level-fill-shared-bg","mapxus-building-line","mapxus-venue-fill"]}),n=t.find(t=>t.layer.id.includes("mapxus-shared-level-fill")&&t.properties.id===e);if(!n)return{floor:null,building:null,venue:null};const r=n.properties["ref:venue"],i=t.find(e=>"mapxus-venue-fill"===e.layer.id&&e.properties.id===r),{id:o,ordinal:s,name:a}=n.properties;return{floor:{id:o,ordinal:s,name:{default:a}},building:null,venue:i}}_queryIndoorFeaturesByFloor(e){const t=this._map.queryRenderedFeatures({layers:["mapxus-level-fill","mapxus-level-fill-overlap-copy","mapxus-building-line","mapxus-venue-fill"]}),n=t.find(t=>t.layer.id.includes("mapxus-level-fill")&&t.properties.id===e);if(!n)return{floor:null,building:null,venue:null};const{id:r,ordinal:i,name:o,"ref:building":s}=n.properties,a=t.find(e=>"mapxus-building-line"===e.layer.id&&e.properties.id===s),c=t.find(e=>"mapxus-venue-fill"===e.layer.id&&e.properties.id===a?.properties?.["ref:venue"]);return{floor:{id:r,ordinal:i,code:o},building:a,venue:c}}}},5254:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5267:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(665);function i(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function o(e,t){this._pairs=[],e&&(0,r.A)(e,this,t)}const s=o.prototype;s.append=function(e,t){this._pairs.push([e,t])},s.toString=function(e){const t=e?function(t){return e.call(this,t,i)}:i;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const a=o},5295:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PrivateKey=void 0;var r=n(6527),i=n(2158),o=n(2557),s=function(){function e(e,t){if(this.curve=t,void 0===e)this.data=(0,i.getValidSecret)(t);else{if(!(0,i.isValidPrivateKey)(e,t))throw new Error("Invalid private key");this.data=e}this.publicKey=new o.PublicKey((0,i.getPublicKey)(this.data,t),t)}return e.fromHex=function(t,n){return new e((0,i.decodeHex)(t),n)},Object.defineProperty(e.prototype,"secret",{get:function(){return Buffer.from(this.data)},enumerable:!1,configurable:!0}),e.prototype.toHex=function(){return(0,r.bytesToHex)(this.data)},e.prototype.encapsulate=function(e,t){void 0===t&&(t=!1);var n=this.publicKey.toBytes(t),r=this.multiply(e,t);return(0,i.getSharedKey)(n,r)},e.prototype.multiply=function(e,t){return void 0===t&&(t=!1),(0,i.getSharedPoint)(this.data,e.toBytes(!0),t,this.curve)},e.prototype.equals=function(e){return(0,r.equalBytes)(this.data,e.data)},e}();t.PrivateKey=s},5297:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},5344:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(2068),i=n(5405);class o{_api="/api/v4/route/query";_request=r.K.getInstance();constructor(){}search(e){const{points:t,vehicle:n=i.$.FOOT,locale:r="en"}=e;if(!(t&&t.length>1&&t.length<6))throw new Error("Parameter error. It must be 1 < {points.length} < 6");if(function(e){return e.some(e=>!e||"number"!=typeof e.lat||"number"!=typeof e.lon)}(t))throw new Error("Parameter error. Points must have lat and lon.");const o={points:t,vehicle:n,locale:r};return this._request.post(this._api,JSON.stringify(o))}}},5353:(e,t,n)=>{n.d(t,{A:()=>i});var r=/^(?:0|[1-9]\d*)$/;const i=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},5373:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(2944),i=n(9190),o=n(8417),s=n(8813),a=n(3957);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const l=c},5405:(e,t,n)=>{var r;n.d(t,{$:()=>r}),function(e){e.FOOT="foot",e.WHEELCHAIR="wheelchair",e.ESCALATOR="escalator",e.EMERGENCY="emergency"}(r||(r={}))},5461:(e,t,n)=>{n.d(t,{U:()=>a,l:()=>s});var r=n(9588);const i="-webkit-extension-67d8e3e8-";let o=null;async function s(){let e=sessionStorage.getItem(i);if(!e)try{a(),await c(Date.now()),e=sessionStorage.getItem(i)}catch(e){throw new Error("Failed to fetch public key: "+e)}return e}function a(){sessionStorage.removeItem(i),o&&(clearTimeout(o),o=null)}async function c(e){try{const n=await fetch(`${r.kk}?timestamp=${e}`,{method:"GET",headers:{"Content-Type":"text/plain"}}),{headers:s}=n,a=parseInt(s.get("x-retry-in"));o=setTimeout(async()=>{await c(e)},1e3*a),t=await n.text(),sessionStorage.setItem(i,t)}catch(e){throw e}var t}},5462:(e,t,n)=>{n.d(t,{T:()=>P});var r=n(5629),i=n(5188),o=n(9983),s=n(2068),a=n(3626),c=n(520),l=n(3913),u=n(1089),d=n(3236),h=n(5056),f=n(181),p=n(5706),y=n(7311),g=n(1682),m=n(1965),_=n(3574),b=n(3394),v=n(2075),w=n(1694),A=n(6294),E=n(9205),S=n(2468),B=n(9644),x=n(3549),I=n(5664),L=n(5582);const O="Map_mapClick",k="Map_pointClick",T="Map_isRenderComplete",C="Map_isDestroyed",R=y.o.getInstance();class P{_map;_indoor;_poi;_floorsControl;_buildingFilterControl;_attributionControl;_language;_dispatch=(0,u.A)(O,k,T,C);_fitBuildingBounds;_history=f.d.getInstance();_hiddenBuildings=p.Q.getInstance().getHiddenBuildings();_debounceHTTPErrorHandler;_transformRequestHandler;_tokenRefreshingPromise=null;_request=s.K.getInstance();_$mask=null;_cancelTokenChangedListener;isDestroyed=!1;switchOutdoor;switchBuilding;buildingSelector;floorSelector;constructor(e){if(!e.map)throw new Error("Map is required.");if(!M(e)&&!F(e))throw new Error("Access params are required.");M(e)?R.setAccessByAppKey({appId:e.appId,secret:e.secret,platform:e.platform}).then(async()=>{await R.setupTokenManager(),this._setup(e)}):F(e)&&(R.setTokenGetter(e.getTokenAsync),R.setupTokenManager().then(()=>{this._setup(e)}))}renderComplete(e){const t=(0,I.A)(`${T}.`);this._dispatch.on(t,e)}destroyed(e){const t=(0,I.A)(`${C}.`);this._dispatch.on(t,()=>{e(),this._dispatch.on(t,null),0===this._dispatch._[C].length&&(delete this._dispatch,Object.freeze(this))})}setTransformRequest(e){this._transformRequestHandler=e}getIndoor(){return this._indoor}getMaplibre(){return this._map}get floor(){return this.getIndoor()?.floor??null}get building(){return this.getIndoor()?.building??null}get venue(){return this.getIndoor()?.venue??null}setLanguage(e){this._language!==e&&(this._language=e);const t=this._map?.getStyle(),n=(t?.layers||[]).filter(({type:e})=>"symbol"===e);for(const{id:t}of n){const n=this._map.getLayer(t),r="string"==typeof this._map.getLayoutProperty(t,"text-field");n&&!r&&this._map.setLayoutProperty(t,"text-field",["coalesce",["get",`name:${e}`],["get","name"]])}}getLanguage(){return this._language}setOutdoorMapShown(e){this.getIndoor()?.setOutdoorMapShown(e)}getIndoorFeaturesByCoordinates(e,t){const n=this._map.project(e),r=this._map.queryRenderedFeatures(n,{layers:["mapxus-venue-fill","mapxus-building-line","mapxus-level-fill","mapxus-level-fill-overlap-copy"]});if(0===r.length)return{venue:null,building:null,level:null};const i=r.filter(e=>e.layer.id.includes("mapxus-level-fill")).find(e=>Number.isFinite(t)?e.properties.ordinal===t+"":e.layer.id.startsWith("mapxus-level-fill"));if(!i)return{venue:null,building:null,level:null};const o=r.find(e=>e.properties.id===i.properties["ref:building"]);return{venue:r.find(e=>e.properties.id===o.properties["ref:venue"]),building:o,level:i}}getFeaturesById(e,t){return this.getIndoor()?.getFeaturesById(e,t)||[]}async selectFloorById(e,t){const{dragPan:n=!0}=t||{};if(this._indoor.setDragPan(n),e===this.floor?.id){if(!n)return;this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter()}else{let t,r,i=!1;try{if(this._fitBuildingBounds){t=await(0,w.F2)(e),r=(0,d.r)(t),i=!0;const{maxLat:n,maxLon:o,minLat:s,minLon:a}=t.bbox;this._indoor.setBuildingBounds([[a,s],[o,n]])}else r=(this._indoor?.features||[]).find(t=>t.properties?.level_ids?.includes(e)&&"mapxus-building-line"===t.layer.id)??null,r||(t=await(0,w.F2)(e),r=(0,d.r)(t),i=!0)}catch(e){this._handleSearchError(e)}if(r&&r?.properties?.id===this.building?.properties?.id){const{level_ids:t,ordinals:i}=r.properties,o=t.split(",").indexOf(e),s=i.split(",")[o]??null;await this._floorsControl.switchByOrdinal(s,n)}else await(this._indoor?.selectBuilding(r,{floorId:e,featureIncomplete:i}))}}async selectSharedFloorById(e,t){const{dragPan:n=!0}=t||{};if(this._indoor.setDragPan(n),e===this.floor?.id){if(!n)return;this._fitBuildingBounds?this._indoor.fitVenueBbox():await this._indoor.panToVenueCenter()}else{let t,n,r=!1;const i=async e=>{r=!0;const i=await(0,w.F0)(e);n=(0,d.E)(i);const{maxLat:o,maxLon:s,minLat:a,minLon:c}=i.bbox;this._indoor.setVenueBounds([[c,a],[s,o]]);const l=i.sharedFloors.find(({id:t})=>t===e),{id:u,name:h,ordinal:f}=l;t={id:u,name:h,ordinal:f+""}};try{if(this._fitBuildingBounds)await i(e);else{n=(this._indoor?.features||[]).find(t=>t.properties?.shared_level_ids?.includes(e)&&"mapxus-venue-fill"===t.layer.id);const r=n?this._indoor.features.find(t=>t.properties.id===e):null;if(r){const{id:e,name:n,ordinal:i}=r.properties;t={id:e,name:"string"==typeof n?{default:n}:n,ordinal:i}}else await i(e)}}catch(e){this._handleSearchError(e)}t&&n&&await(this._indoor?.selectSharedFloor(t,n,{featureIncomplete:r}))}}async selectBuildingById(e,t){const{dragPan:n=!0}=t||{};if(this._indoor.setDragPan(n),e===this.building?.properties?.id){if(!n)return;this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter()}else{let t,n,r=!1;try{if(this._fitBuildingBounds){t=await(0,w.pT)(e),n=(0,d.r)(t),r=!0;const{maxLat:i,maxLon:o,minLat:s,minLon:a}=t.bbox;this._indoor.setBuildingBounds([[a,s],[o,i]])}else n=this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(e,{layerIds:["mapxus-building-line"]})[0]||null,n||(t=await(0,w.pT)(e),n=(0,d.r)(t),r=!0);await(this._indoor?.selectBuilding(n,{featureIncomplete:r}))}catch(e){this._handleSearchError(e)}}}async selectVenueById(e,t){const{dragPan:n=!0}=t||{};if(this._indoor.setDragPan(n),"string"==typeof e&&""===e.trim()||null===e)await(this._indoor?.selectBuilding(null));else if(e===this.venue?.properties?.id){if(!n)return;this.building?this._fitBuildingBounds?this._indoor.fitBuildingBbox():await this._indoor.panToBuildingCenter():"name"in this.floor&&(this._fitBuildingBounds?this._indoor.fitVenueBbox():await this._indoor.panToVenueCenter())}else{const t=this._history.getBuildingUnitByVenue(e);if(t){const{id:e,type:r}=t;"building"===r?await this.selectBuildingById(e,{dragPan:n}):await this.selectSharedFloorById(e,{dragPan:n})}else{let t;const r=this._map.getLayer("mapxus-venue-fill")&&this.getFeaturesById(e,{layerIds:["mapxus-venue-fill"]})[0];if(r){const{default_displayed_building:e,building_ids:n}=r.properties;t=e||(n?.split(",")||[])[0]}else try{const n=await(0,w.qT)(e);t=n.defaultBuilding||n.buildings[0]?.id}catch(e){this._handleSearchError(e)}t&&await this.selectBuildingById(t,{dragPan:n})}}}onMapClickListener(e){const t=(0,I.A)(`${O}.`);return this._dispatch.on(t,e),{unsubscribe:()=>this._dispatch.on(t,null)}}onPoiClickListener(e){return this._poi?.onPoiClick(e)}onPointClickListener(e){const t=(0,I.A)(`${k}.`);return this._dispatch.on(t,e),{unsubscribe:()=>this._dispatch.on(t,null)}}onMapChangeListener(e){return this._indoor?.onMapChange(e)}switchTheme(e){this._setStyle(this._getStyleUrl(e)),this._map?.once("styledata",()=>this._setIndoorFilter()),"changeTheme"in this._attributionControl&&this._attributionControl.changeTheme(e)}setSelectedBuildingBorderStyle(e){return this._indoor?.setSelectedHighlightStyle(e),this}setSelectedHighlightStyle(e){return this._indoor?.setSelectedHighlightStyle(e),this}async _setup(e){const{map:t,poiId:n,sharedFloorId:s,floorId:u,buildingId:d,venueId:f,theme:p=_.SV.MAPXUS_DEFAULT,floorSelectorEnabled:y,buildingSelectorEnabled:g,outdoorMapShown:m,collapseCopyright:b=!1,maskNonSelectedAreas:v,fitBuildingBounds:w=!1,boundsPadding:I=30,selectedHighlightStyle:L,floorSelectorStyle:O,language:k=h.eG,autoSelectBuilding:C=!1,transformRequest:R=null,mapxusLogoEnabled:P=!0}=e;this._map=t,this._language=k,this._indoor=new r.SN({map:this._map,startWithIndoorView:Boolean(f||d||u||n),outdoorMapShown:m,fitBuildingBounds:w,boundsPadding:I,maskNonSelectedAreas:v,selectedHighlightStyle:L}),this._poi=new i.p(this._map),this._fitBuildingBounds=w,this._transformRequestHandler=R,this._setMaskEnabled(!0),await this._resourceRequestTransform(),this._installRtlTextPlugin(),this._setStyle(this._getStyleUrl(p)),this._checkMapZoom(),b?this._attributionControl=new l.d:(this._attributionControl=new c.z({theme:p}),this._addControl(new a.V({enabled:P}))),this._addControl(this._attributionControl),this._addControl(this._buildingFilterControl=new o.G(this,g)),this._addControl(this._floorsControl=new o.Z(this._indoor,{language:k,style:O,enabled:y})),n?this._selectPoiById(n):u?this.selectFloorById(u):d?this.selectBuildingById(d):f?this.selectVenueById(f):s&&this.selectSharedFloorById(s),this.switchOutdoor=new A.B(this._indoor),this.switchBuilding=new E.N(this._indoor),this.buildingSelector=new S.E(this._buildingFilterControl),this.floorSelector=new B.C(this._floorsControl),this._map.once("styledata",()=>this.setLanguage(this._language)),this._map.on("remove",()=>this._destroy()),this._map.on("error",this._debounceHTTPErrorHandler=(0,x.A)(e=>this._updatePermission(e),300)),this._indoor.once(r.Hv,()=>{this._setMaskEnabled(!1),C&&this._map.on("moveend",()=>this._selectCenterBuilding()),this._bindMapClickListener(),this._bindTokenChangedListener(),this._dispatch.call(T)})}_getStyleUrl(e){const t=new globalThis.Map([[_.SV.CHRISTMAS,v._C],[_.SV.HALLOWEEN,v.ts],[_.SV.MAPPY_BEE,v.xR],[_.SV.MAPXUS,v.em],[_.SV.COMMON,v.lu],[_.SV.LANDS_D,v.Hf],[_.SV.MAPXUS_DEFAULT,v.$b]]);return t.has(e)?t.get(e):(0,v.aS)(e)}_setIndoorFilter(){this._indoor.updateCustomLayers(),this._indoor.updateRendering()}_setStyle(e){this._map?.setStyle(e,{localIdeographFontFamily:!1})}_addControl(e,t){this._map.addControl(e,t)}async _selectPoiById(e){try{const t=await(0,w.xW)(e),{lon:n,lat:r}=t.location;"floorId"in t?await this.selectFloorById(t.floorId):"sharedFloorId"in t&&await this.selectSharedFloorById(t.sharedFloorId),this._map.panTo([n,r])}catch(e){this._handleSearchError(e)}}async _resourceRequestTransform(){const e=await this._request.getRequestHeaders();this._map.setTransformRequest((t,n)=>{const{host:r}=new URL(t);return r.includes("map-api")&&r.includes("mapxus")?{url:t,headers:e}:this._transformRequestHandler?this._transformRequestHandler(t,n):{url:t}})}_checkMapZoom(){const e=this._map.getZoom();(e<8||e>22)&&e>1&&console.warn("Indoor maps perform better at zoom levels [8, 22].")}async _updatePermission(e){if(401===e.error?.status)return this._tokenRefreshingPromise||(this._tokenRefreshingPromise=this._resourceRequestTransform().finally(()=>this._tokenRefreshingPromise=null)),this._tokenRefreshingPromise}_selectCenterBuilding(){const e=this._getCenterBuildingUnitsMap();if(!e.size)return;let t=e.entries().next().value[1];const n=this._history.getVisitedBuildingUnits().reverse();for(const r of n){const{id:n}=r;if(e.get(n)){t=r;break}}"building"===t.type?this.selectBuildingById(t.id,{dragPan:!1}):this.selectSharedFloorById(t.id,{dragPan:!1})}_getCenterBuildingUnitsMap(){const e=this._map.getCanvas().getBoundingClientRect(),t=e.width/4,n=e.height/4,r=[t,n],i=[e.width-t,e.height-n],o=["mapxus-building-line",m.TU].filter(e=>this._map.getLayer(e));let s=this._map.queryRenderedFeatures([r,i],{layers:o});return s=(0,L.A)(s,"properties.id"),s=s.filter(e=>!this._hiddenBuildings.has(e.properties.id)),new globalThis.Map(s.map(({properties:e})=>[`${e.id}`,{id:e.id,type:e.building?"building":"sharedFloor"}]))}_bindMapClickListener(){this._map.on("click",async e=>{const{point:t,lngLat:n}=e;await this._indoor.selectByClickMap(t),this._dispatch.call(k,null,{point:t,coordinate:n}),this._dispatch.call(O,null,{coordinate:n,venue:this.venue,building:this.building,floor:this.floor})})}_bindTokenChangedListener(){const{off:e}=R.on(y.O,async()=>{await this._resourceRequestTransform()});this._cancelTokenChangedListener=e}_handleSearchError(e){const t=e?.response?.status||"unknown",n=e?.response?.data?.message||"unknown";R.getGlobalDispatcher().call("initError",null,{status:t,message:n})}_setMaskEnabled(e){e?this._$mask||(this._$mask=(0,g.r)("div","mapxus-map-mask",this._map.getContainer())):this._$mask&&((0,g.Z)(this._$mask),this._$mask=null)}_installRtlTextPlugin(){"unavailable"===b.default.getRTLTextPluginStatus()&&b.default.setRTLTextPlugin("https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.3.0/dist/mapbox-gl-rtl-text.js",!0)}_destroy(){if(this.isDestroyed)return;this.isDestroyed=!0,this._debounceHTTPErrorHandler?.cancel();const e=this._dispatch._;for(const t in e)t!==C&&e.hasOwnProperty(t)&&e[t].forEach(({name:e})=>{this._dispatch.on(`${t}.${e}`,null)});this._indoor.destroy(),this._poi.destroy(),Object.keys(this).forEach(e=>{"isDestroyed"!==e&&"_dispatch"!==e&&delete this[e]}),this._cancelTokenChangedListener&&this._cancelTokenChangedListener(),R.clearState(),this._dispatch.call(C)}}function F(e){return"getTokenAsync"in e&&"function"==typeof e.getTokenAsync}function M(e){return"appId"in e&&""!==e.appId.trim()&&"secret"in e&&""!==e.secret.trim()}},5488:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7880),i=/^\s+/;const o=function(e){return e?e.slice(0,(0,r.A)(e)+1).replace(i,""):e}},5530:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(2531);const i=function(e,t){return!!(null==e?0:e.length)&&(0,r.A)(e,t,0)>-1}},5537:(e,t,n)=>{n.d(t,{s:()=>o});class r extends Error{}function i(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return atob(t)}}function o(e,t){if("string"!=typeof e)throw new r("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,o=e.split(".")[n];if("string"!=typeof o)throw new r(`Invalid token specified: missing part #${n+1}`);let s;try{s=i(o)}catch(e){throw new r(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(s)}catch(e){throw new r(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}r.prototype.name="InvalidTokenError"},5547:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(9914);const i=function(e,t){var n=e.__data__;return(0,r.A)(t)?n["string"==typeof t?"string":"hash"]:n.map}},5568:(e,t,n)=>{n.d(t,{F:()=>l});var r=n(9588),i=n(2068),o=n(9573),s=n(3574),a=n(6034);const c=["specialHours","businessStatus","serviceHours","keywords","siteCode","refPhotoId","totalPhotoCount","photos","icon"];class l{_poisApi="/api/v5/pois";_categoriesGroupApi="/api/v5/categories/group";_request=i.K.getInstance();constructor(){}searchByIds(e){const t=(0,o.VS)(e);if(!t)throw new Error("Invalid ids parameter. Expected a non-empty string or an array of strings.");const n=`${this._poisApi}/${t}`;return this._changedRes(n)}searchByDistance(e){const{center:t,distance:n,keywords:i="",offset:s=r.e$,page:a=r.KL}=e;if(!(0,o.ES)(t))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,o.F5)(n)||n>1e4)throw new Error("Invalid distance parameter. Expected a positive number and no more than 10000.");const c=new URLSearchParams;c.set("center",t.join(",")),c.set("distance",String(Math.round(n))),c.set("offset",String(s)),c.set("page",String(a)),(0,o.BW)(i)&&c.set("keywords",i);const l=`${this._poisApi}?${c.toString()}`;return this._changedRes(l)}searchByBounds(e){const{bounds:t,offset:n=r.e$,page:i=r.KL,keywords:s,orderBy:a}=e;if(!(0,o.dD)(t))throw new Error("'bounds' must be an array of two arrays, each containing two numbers.");const c=new URLSearchParams;c.set("bbox",t.flat().join()),c.set("offset",String(n)),c.set("page",String(i)),(0,o.BW)(s)&&c.set("keywords",s),a&&c.set("orderBy",a);const l=`${this._poisApi}?${c.toString()}`;return this._changedRes(l)}searchByBuilding(e){const{buildingId:t,offset:n=r.e$,page:i=r.KL,keywords:s,orderBy:a}=e;if(!(0,o.BW)(t))throw new Error("'buildingId' must be a non-empty string.");const c=new URLSearchParams;c.set("buildingId",t),c.set("offset",String(n)),c.set("page",String(i)),(0,o.BW)(s)&&c.set("keywords",s),a&&c.set("orderBy",a);const l=`${this._poisApi}?${c.toString()}`;return this._changedRes(l)}searchByVenue(e){const{venueId:t,offset:n=r.e$,page:i=r.KL,keywords:s,orderBy:a}=e;if(!(0,o.BW)(t))throw new Error("'venueId' must be a non-empty string.");const c=new URLSearchParams;c.set("venueId",t),c.set("offset",String(n)),c.set("page",String(i)),(0,o.BW)(s)&&c.set("keywords",s),a&&c.set("orderBy",a);const l=`${this._poisApi}?${c.toString()}`;return this._changedRes(l)}searchByFloor(e){let t=null,n=null;if("floorId"in e&&(0,o.BW)(e.floorId)?(t="floorId",n=e.floorId):"sharedFloorId"in e&&(0,o.BW)(e.sharedFloorId)&&(t="sharedFloorId",n=e.sharedFloorId),!t||!n)throw new Error("Either 'floorId' or 'sharedFloorId' must be a non-empty string.");const{offset:i=r.e$,page:s=r.KL,keywords:a,orderBy:c}=e,l=new URLSearchParams;l.set("offset",String(i)),l.set("page",String(s)),l.set(t,n),(0,o.BW)(a)&&l.set("keywords",a),c&&l.set("orderBy",c);const u=`${this._poisApi}?${l.toString()}`;return this._changedRes(u)}searchByOrientation(e){const{center:t,angle:n,distance:r,distanceSearchType:i=s._P.POINT}=e;if(!(0,o.ES)(t))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,o.F5)(r)||r>100)throw new Error("Invalid distance parameter. Expected a positive number and no more than 100.");if(!(0,o.F5)(n))throw new Error("Invalid angle parameter. Expected a positive number.");const a=new URLSearchParams;if("ordinal"in e){if(!(0,o.BW)(e.ordinal))throw new Error("'ordinal' must be a non-empty string.");a.set("ordinal",e.ordinal)}else if("floorId"in e){if(!(0,o.BW)(e.floorId))throw new Error("'floorId' must be a non-empty string.");a.set("floorId",e.floorId)}else{if(!("buildingId"in e))throw new Error("Either 'ordinal', 'floorId', or 'buildingId' must be provided.");if(!(0,o.BW)(e.buildingId))throw new Error("'buildingId' must be a non-empty string.");a.set("buildingId",e.buildingId)}a.set("center",t.join()),a.set("angle",String(Math.round(n))),a.set("distance",String(r)),a.set("distanceSearchType",i);const c=`${this._poisApi}/orientation?${a.toString()}`;return this._request.get(c)}searchByCategory(e){const{center:t,distance:n,page:i=r.KL,offset:s=r.e$}=e;if(!(0,o.ES)(t))throw new Error("Invalid center parameter. Expected an array of two numbers.");if(!(0,o.F5)(n)||n>1e4)throw new Error("Invalid distance parameter. Expected a positive number and no more than 10000");const a=new URLSearchParams;if("category"in e&&(0,o.BW)(e.category))a.set("category",String(e.category));else{if(!("excludedCategories"in e)||!(0,o.VS)(e.excludedCategories))throw new Error("Either 'category' or 'excludedCategories' must be provided.");a.set("excludeCategories",(0,o.VS)(e.excludedCategories))}a.set("center",t.join(",")),a.set("distance",String(n)),a.set("page",String(i)),a.set("offset",String(s));const c=`${this._poisApi}?${a.toString()}`;return this._changedRes(c)}searchCategories(e){const t=new URLSearchParams;if("floorId"in e&&(0,o.BW)(e.floorId)?t.set("floorId",e.floorId):"buildingId"in e&&(0,o.BW)(e.buildingId)?t.set("buildingId",e.buildingId):"sharedFloorId"in e&&(0,o.BW)(e.sharedFloorId)?t.set("sharedFloorId",e.sharedFloorId):"venueId"in e&&(0,o.BW)(e.venueId)&&t.set("venueId",e.venueId),"bounds"in e&&(0,o.dD)(e.bounds)&&(t.set("bbox",e.bounds.flat().join()),(0,o.BW)(e.keywords)&&t.set("keywords",e.keywords)),0===t.toString().length)throw new Error("At least one of 'floorId', 'buildingId', 'sharedFloorId', 'venueId', or 'bounds' must be provided.");const n=`${this._categoriesGroupApi}?${t.toString()}`;return this._request.get(n)}search(e){const t=new URLSearchParams;Object.entries(e).forEach(([e,n])=>{switch(e){case"bounds":(0,o.dD)(n)&&t.set("bbox",n.flat().join());break;case"center":(0,o.ES)(n)&&t.set("center",n.join());break;case"excludedCategories":(0,o.VS)(n)&&t.set("excludeCategories",(0,o.VS)(n));break;default:t.set(e,String(n))}});const n=`${this._poisApi}?${t.toString()}`;return this._request.get(n)}async _changedRes(e){return this._request.get(e).then(e=>{if(e.data?.result?.pois){const t=e.data.result.pois.map(e=>(0,a.A)(e,(e,t)=>c.includes(t)));return{...e,data:{...e.data,result:{...e.data.result,pois:t}}}}return e})}}},5572:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},5579:(e,t,n)=>{function r(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}n.d(t,{A:()=>r})},5582:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(2141),i=n(5781);const o=function(e,t){return e&&e.length?(0,i.A)(e,(0,r.A)(t,2)):[]}},5606:(e,t,n)=>{n.d(t,{A:()=>i});var r=Object.prototype.toString;const i=function(e){return r.call(e)}},5629:(e,t,n)=>{n.d(t,{Hv:()=>A,Ms:()=>w,SN:()=>T});var r=n(7007),i=n(8291),o=n(3236),s=n(8700),a=n(9266),c=n(1965),l=n(4545),u=n(5056),d=n(1694),h=n(8021),f=n(1089),p=n(181),y=n(5706),g=n(8389),m=n(3549),_=n(5582),b=n(5664);const v="Indoor_selectedFloorChanged",w="Indoor_selectedBuildingChanged",A="Indoor_mapxusMapLoaded",E="Indoor_maplibreMapLoaded",S="mapxus-venue-fill",B="mapxus-building-line",x="mapxus-level-fill",I="mapxus-shared-level-fill",L="highlight-mapxus_level",O="highlight-mapxus_shared_level",k=new l.w1;class T extends r.EventEmitter{_map;_features;_allVenuesMap;_allBuildingsMap;_allSharedLevelsMap;_curBuildingId=null;_curBuildingFeature=null;_curSharedLevelId=null;_floor={code:null,id:null,ordinal:null};_sharedFloor={id:null,ordinal:null,name:null};_allowOutdoorSwitch;_allowBuildingSwitch;_outdoorMapShown;_originIndoorLayers;_outdoorLayers;_curVenueId=null;_curVenueFeature=null;_selectedHighlightStyle;_upperLayers=[];_middleLayers=[];_commonLayers=[];_lowerLayers=[];_excludedPoisInMiddle=[];_dispatch=(0,f.A)(v);_fitBuildingBounds;_boundsPadding;_startWithIndoorView;_indoorMapLoaded=!1;_isSelectSharedFloor=!1;_isMaskMode;_upperLevels=new Set;_middleLevels=new Set;_lowerLevels=new Set;_featureIncomplete=!1;_dragPan;_buildingBounds;_venueBounds;_history=p.d.getInstance();_layerBuildings=y.Q.getInstance();_hiddenBuildings=this._layerBuildings.getHiddenBuildings();_maskBuildings=new Set;_maskSharedFloors=new Set;_isDestroyed=!1;_fetchBuildingTimeoutId=null;_fetchVenueTimeoutId=null;_fitBoundsTimer=null;_abortQueryBuilding;_debounceRendering;constructor(e){super();const{map:t,startWithIndoorView:n=!0,outdoorMapShown:r=!0,selectedHighlightStyle:i,fitBuildingBounds:o,boundsPadding:s,maskNonSelectedAreas:a=!1}=e;this._map=t,this._allowOutdoorSwitch=!0,this._allowBuildingSwitch=!0,this._startWithIndoorView=n,this._outdoorMapShown=r,this._isMaskMode=a,this._fitBuildingBounds=o,this._boundsPadding=s,this._selectedHighlightStyle=i?Object.assign({},u.sy,i):u.sy,this._hiddenBuildings=new Set,this._bindMaplibreEventListeners()}destroy(){this._isDestroyed||(this._isDestroyed=!0,this._dispatch.on(`.${v}`,null),this.removeAllListeners(w),this.removeAllListeners(E),this.removeAllListeners(A),this._debounceRendering?.cancel(),this._fetchBuildingTimeoutId&&(clearTimeout(this._fetchBuildingTimeoutId),this._fetchBuildingTimeoutId=null),this._fetchVenueTimeoutId&&(clearTimeout(this._fetchVenueTimeoutId),this._fetchVenueTimeoutId=null),this._fitBoundsTimer&&(clearTimeout(this._fitBoundsTimer),this._fitBoundsTimer=null),this._abortQueryBuilding&&(this._abortQueryBuilding(),this._abortQueryBuilding=null))}setAllowOutdoorSwitch(e){return this._allowOutdoorSwitch=e,this}setAllowBuildingSwitch(e){return this._allowBuildingSwitch=e,this}get floor(){return this._isSelectSharedFloor?this._sharedFloor:this._curBuildingId?this._floor:null}get building(){return this._curBuildingFeature}get venue(){return this._curVenueFeature}get features(){return this._features}getFeaturesById(e,t){const{layerIds:n,filter:r}=t||{},i=this._queryRenderedFeatures(n),o=r?t=>t.properties.id===e&&r(t):t=>t.properties.id===e;return i.filter(o)}async switchFloorByOrdinal(e){this._updateFloorState(e),this._dispatch.call(v,null,{venue:this.venue,building:this.building,floor:this.floor}),this.venue&&e&&(!0===this._dragPan&&(this._fitBuildingBounds?await this.fitBuildingBbox():await this.panToBuildingCenter()),"restrict"===this._dragPan&&await this._checkAndPanToBuilding(),this._resetSelectedDisplayedLevel()),this.updateRendering()}setOutdoorMapShown(e){this._outdoorMapShown=e,this._setOutdoorVisibility(e)}setSelectedHighlightStyle(e){this._selectedHighlightStyle=Object.assign({},this._selectedHighlightStyle,e??{"line-opacity":0});for(const t of[L,O])if(this._map.getLayer(t))if(e){const{lineColor:e,lineOpacity:n,lineWidth:r,lineOffset:i}=this._selectedHighlightStyle,o=C(r,i);this._map.setPaintProperty(t,"line-color",e),this._map.setPaintProperty(t,"line-opacity",n),this._map.setPaintProperty(t,"line-width",r),this._map.setPaintProperty(t,"line-offset",o)}else this._map.setPaintProperty(t,"line-opacity",0)}onMapChange(e){const t=(0,b.A)(`${v}.`);return this._dispatch.on(t,e),{unsubscribe:()=>this._dispatch.on(t,null)}}async selectBuilding(e,t){(this._allowOutdoorSwitch||e)&&this._allowBuildingSwitch&&this._isNotCurrentFeature(e)&&(this._isSelectSharedFloor=!1,this._curSharedLevelId=null,this._featureIncomplete=t?.featureIncomplete??this._featureIncomplete,e?.properties?.id&&this._history.addVisitedBuildingUnit({id:e.properties.id,type:"building"}),await this._updateIndoorState(e,t?.floorId),await this.switchFloorByOrdinal(this._floor.ordinal),this.emit(w,e?{building:e,ordinal:this._floor.ordinal,dragPan:this._dragPan}:null),this._dispatchIndoorMapLoaded())}async selectSharedFloor(e,t,n){const{id:r,ordinal:i}=e;this._isSelectSharedFloor=!0,this._curBuildingId=null,this._curBuildingFeature=null,this._sharedFloor=e,this._curSharedLevelId=r,this._curVenueFeature=t,this._curVenueId=t.properties.id,this._featureIncomplete=n?.featureIncomplete??this._featureIncomplete,this._history.addVisitedBuildingUnit({id:r,type:"sharedFloor"}),this._history.setOrdinalByBuildingUnit(r,i),this._history.setBuildingUnitByVenue(this._curVenueId,{id:r,type:"sharedFloor"}),this._dragPan&&"restrict"!==this._dragPan&&(this._fitBuildingBounds?this.fitVenueBbox():await this.panToVenueCenter()),this._dispatch.call(v,null,{venue:this.venue,building:this.building,floor:this.floor}),this.emit(w,{...e,dragPan:this._dragPan}),this._dispatchIndoorMapLoaded(),this._resetSelectedDisplayedLevel(),this.updateRendering()}updateCustomLayers(){const e=this._map.getStyle();this._originIndoorLayers=(0,i.cq)(e),this._outdoorLayers=(0,i.Z3)(e),this._copyOverlapLayers(),this._copySharedFloorBackgroundLayers(),this._addSelectedHighlightLayers(),this._addReserveFloorLayers(),this._isMaskMode&&this._addBuildingMaskLayer(),this._outdoorMapShown||this._setOutdoorVisibility(!1)}updateRendering(){this._updateFeatures(),this._updateSelectedFeatures(),this._layerFloors(),this._calExcludedPoisInMiddle(),this._filterLayers(),this._filterSelectedHighlight(),this._updateUnselectedMask()}async panToBuildingCenter(){const e=this._curBuildingFeature.properties?.label_center?.split(",");if(!e)return;if(this._map.panTo(e),!this._featureIncomplete)return;const{promise:t,abort:n}=(0,h.B)(()=>{if(!this._isDestroyed)return this._map.getLayer("mapxus-building-line")&&this.getFeaturesById(this._curBuildingId,{layerIds:["mapxus-building-line"]})[0]});this._abortQueryBuilding=n,await t}async fitBuildingBbox(){return this._map.fitBounds(this._buildingBounds,{animate:!0,duration:500,padding:this._boundsPadding,bearing:this._map.getBearing()}),new Promise(e=>{this._fitBoundsTimer=setTimeout(()=>{e(!0),this._fitBoundsTimer=null},600)})}async panToVenueCenter(){const e=this._curVenueFeature.properties?.label_center?.split(",");if(!e)return;if(this._map.panTo(e),!this._featureIncomplete)return;const{promise:t,abort:n}=(0,h.B)(()=>{if(!this._isDestroyed)return this._map.getLayer(S)&&this.getFeaturesById(this._curVenueId,{layerIds:[S]})[0]});this._abortQueryBuilding=n,await t}fitVenueBbox(){this._map.fitBounds(this._venueBounds,{padding:this._boundsPadding,bearing:this._map.getBearing()})}setDragPan(e){this._dragPan=e}setBuildingBounds(e){this._buildingBounds=e}setVenueBounds(e){this._venueBounds=e}async selectByClickMap(e){this.setDragPan("restrict"),this._featureIncomplete=!1;const t=await this._queryFeatureByPoint(e);if(t){if("building"in t){if(await this.selectBuilding(t.building,{floorId:t.floorId}),this._fitBuildingBounds){const e=t.building;if(!e)return;this._fetchBuildingTimeoutId=setTimeout(()=>this._updateBuildingBounds(e.properties.id))}}else if("sharedLevel"in t&&(await this.selectSharedFloor(t.sharedLevel,t.venue),this._fitBuildingBounds)){const e=t.venue;if(!e)return;this._fetchVenueTimeoutId=setTimeout(()=>this._updateVenueBounds(e.properties.id))}}else await this.selectBuilding(null)}async _updateBuildingBounds(e){const t=await(0,d.pT)(e),{minLon:n,minLat:r,maxLon:i,maxLat:o}=t.bbox;this.setBuildingBounds([[n,r],[i,o]])}async _updateVenueBounds(e){const t=await(0,d.qT)(e),{minLon:n,minLat:r,maxLon:i,maxLat:o}=t.bbox;this.setVenueBounds([[n,r],[i,o]])}_bindMaplibreEventListeners(){this._map.once("styledata",()=>this.updateCustomLayers()),this._map.once("idle",()=>{this.emit(E),(!this._startWithIndoorView||this._map.getZoom()<14)&&this._dispatchIndoorMapLoaded()}),this._map.on("sourcedata",this._debounceRendering=(0,m.A)(()=>this.updateRendering(),300))}_clear(){this._curBuildingFeature=null,this._curBuildingId=null,this._floor={code:null,id:null,ordinal:null},this._curVenueId=null,this._curVenueFeature=null,this._buildingBounds=null,this._curSharedLevelId=null,this._venueBounds=null}_getIndoorFeatures(){return this._queryRenderedFeatures().filter(e=>(0,i.ld)(e.source))}_getBuildingFloorByOrdinal(e,t){let n=null,r=null;if(e?.properties){const{ordinals:i,level_names:o,level_ids:a}=e.properties,c=(0,s.S)(i).findIndex(e=>e===t);n=(0,s.S)(o)[c]??null,r=(0,s.S)(a)[c]??null}return{code:n,id:r,ordinal:t}}_isNotCurrentFeature(e){return e?.properties?.id!==this._curBuildingId}_setOutdoorVisibility(e){for(const{id:t}of this._outdoorLayers)this._map.getLayer(t)&&this._map.setLayoutProperty(t,"visibility",e?"visible":"none")}_addReserveFloorLayers(){for(const e of[a.FI,a.TU]){if(this._map.getLayer(e))continue;const t=e.split("_")[1],n=this._map.getLayer(t);if(!n)continue;const{source:r,sourceLayer:i}=n,o=e===a.FI?this._middleLayers[0]:this._lowerLayers[0];let s={"fill-opacity":0};if(this._isMaskMode&&e===a.TU){const e=this._originIndoorLayers.find(({id:e})=>e===B);e&&(s=Object.assign({},e.paint??{},s))}this._map.addLayer({id:e,source:r,"source-layer":i,type:"fill",paint:s},o.id)}}_addBuildingMaskLayer(){if(this._map.getLayer(c.Zj))return;const e=this._originIndoorLayers.find(({id:e})=>e===B);if(e){const t=Object.assign({},e,{id:c.Zj,layout:Object.assign({},e.layout??{},{visibility:"visible"}),paint:Object.assign({},e.paint??{},{"fill-opacity":0})});this._map.addLayer(t,B)}}_updateUnselectedMask(){if(!this._isMaskMode)return;const e=[...this._maskBuildings],t=[...this._maskSharedFloors];this._map.getLayer(c.Zj)&&this._map.setPaintProperty(c.Zj,"fill-opacity",["case",["in",["get","id"],["literal",e]],1,0]),this._map.getLayer(a.TU)&&this._map.setPaintProperty(a.TU,"fill-opacity",["case",["in",["get","id"],["literal",t]],1,0])}_addSelectedHighlightLayers(){const e=[{layerId:L,sourceLayer:"mapxus_level"},{layerId:O,sourceLayer:"mapxus_shared_level"}];let t=this._originIndoorLayers.find(({type:e})=>j(e));if(!t){const e=this._originIndoorLayers.findIndex(({id:e})=>e===this._upperLayers[this._upperLayers.length-1].id);t=this._originIndoorLayers[e+1]}for(const{layerId:n,sourceLayer:r}of e){if(this._map.getLayer(n))continue;const{lineWidth:e,lineOpacity:i,lineColor:o,lineOffset:s}=this._selectedHighlightStyle,a=C(e,s);this._map.addLayer({id:n,source:"indoor-planet","source-layer":r,type:"line",filter:["==","id",""],paint:{"line-offset":a,"line-width":e,"line-color":o,"line-opacity":i}},t?.id)}}_filterSelectedHighlight(){for(const e of[L,O])this._map.getLayer(e)&&this._map.setFilter(e,["==","id",this._isSelectSharedFloor?this._curSharedLevelId:this._floor.id??""])}_getBuildingDefaultOrdinal(e){let t=null;if(e?.properties){const{level_ids:n,ordinals:r,default_displayed_floor:i}=e.properties,o=(0,s.S)(r);if(o.length){if(i){t=o[(0,s.S)(n).findIndex(e=>e===i)]??null}t||(t=(0,g.A)(o,e=>Math.abs(Number(e)-.1)))}}return t}_copyOverlapLayers(){const e=this._originIndoorLayers.findIndex(({type:e,"source-layer":t})=>F(t,e)),t=this._originIndoorLayers.findIndex(({type:e,"source-layer":t})=>H(t,e));this._commonLayers=this._originIndoorLayers.slice(0,e).concat(this._originIndoorLayers.slice(t)),this._upperLayers=this._originIndoorLayers.slice(e,t).filter(({type:e})=>function(e){return"line"===e||"fill"===e||"fill-extrusion"===e}(e));const n=this._upperLayers[0];this._middleLayers=this._upperLayers.filter(({type:e})=>!j(e)).map(e=>{const t=`${e.id}-overlap-copy`;let r=this._map.getLayer(t);return r||(r=Object.assign({},e,{id:t}),this._map.addLayer(r,n.id)),r})}_copySharedFloorBackgroundLayers(){if(!!!this._upperLayers.find(e=>e.id===a.TU.split("_")[1]))return;const e=this._upperLayers.filter(({"source-layer":e,type:t})=>!M(e,t)&&!j(t)),t=this._commonLayers.filter(({"source-layer":e,type:t})=>H(e,t)),n=this._middleLayers[0]||this._upperLayers[0];this._lowerLayers=[...e,...t].map(e=>{const t=`${e.id}-shared-bg`;let r=this._map.getLayer(t);return r||(r=Object.assign({},e,{id:t}),this._map.addLayer(r,n.id)),r})}_updateFeatures(){this._features=this._getIndoorFeatures();const e=(0,_.A)(this._features,e=>e.layer.id+":"+e.properties.id),t=[],n=[],r=[];for(const i of e){const e=i.layer.id;e===S?t.push(i):e===B?n.push(i):e===a.TU&&r.push(i)}this._allVenuesMap=new Map(t.map(e=>[e.properties.id,e])),this._allBuildingsMap=new Map(n.map(e=>[e.properties.id,e])),this._allSharedLevelsMap=new Map(r.map(e=>[e.properties.id,e]))}_calExcludedPoisInMiddle(){const e=this._map.querySourceFeatures("indoor-planet",{sourceLayer:"mapxus_place"}),t=e=>{if(!e)return!1;return(0,s.S)(e).some(e=>this._upperLevels.has(e))},n=e.filter(e=>{const n=e.properties["ref:level"]||e.properties["ref:shared_level"];return!!this._middleLevels.has(n)&&t(e.properties.overlap)});this._excludedPoisInMiddle=n.map(e=>e.properties["osm:ref"])}_updateSelectedFeatures(){if(this._featureIncomplete){if(this._isSelectSharedFloor){const e=this._features.find(e=>e.properties.id===this._curVenueId);if(!e)return;this._curVenueFeature=e}else{const e=this._allBuildingsMap.get(this._curBuildingId);if(!e)return;this._curBuildingFeature=e}this._featureIncomplete=!1}}_layerFloors(){const{displayedLevels:e,selectedLevelIds:t,alwaysDisplayedSharedLevelIds:n,hiddenBuildingIds:r,maskBuildingIds:i,maskSharedFloorIds:o}=this._classifyFloors();this._isMaskMode&&(this._maskBuildings.clear(),i.forEach(e=>this._maskBuildings.add(e)),this._maskSharedFloors.clear(),o.forEach(e=>this._maskSharedFloors.add(e)),this._upperLevels.clear(),this._middleLevels.clear(),this._lowerLevels.clear()),this._layerSelectedLevels(e,t,n),this._layerUnselectedLevels(e,t,n),r.forEach(e=>{this._hiddenBuildings.has(e)||this._hiddenBuildings.add(e)})}_layerSelectedLevels(e,t,n){for(const r of t){this._upperLevels.has(r)||(this._middleLevels.delete(r),this._lowerLevels.delete(r),this._upperLevels.add(r));const t=e.find(({level:e,overlap:t})=>e===r&&!!t);if(t)for(const e of t.overlap)this._upperLevels.has(e)&&(this._upperLevels.delete(e),n.includes(e)?this._lowerLevels.add(e):this._middleLevels.add(e))}}_layerUnselectedLevels(e,t,n){for(const r of e){if(t.includes(r.level))continue;const{level:e,overlap:i}=r,o=!i||!i.some(e=>this._upperLevels.has(e)),s=n.includes(e);o?s?this._lowerLevels.add(e):this._upperLevels.add(e):s?this._lowerLevels.add(e):this._middleLevels.add(e)}}_classifyFloors(){const e=[],t=[],n=[],r=[],i=[],o=[],a=[...this._allVenuesMap.values()],c=this._curVenueId?[this._allVenuesMap.get(this._curVenueId),...a.filter(e=>e.properties.id!==this._curVenueId)]:a;for(const a of c){if(!a||!a.properties)continue;const{id:c,overlap:l,building_ids:u,shared_level_ids:d,default_displayed_ordinal:h}=a.properties,f=c===this._curVenueId,p=N(l),y=(0,s.S)(u),g=this._history.getBuildingUnitByVenue(c);let m=g?this._history.getOrdinalByBuildingUnit(g.id):h;m||(m=this._setVenueInitOrdinal(c,y)),m&&(y.forEach(n=>{const o=this._allBuildingsMap.get(n),s=this._getBuildingDisplayedLevel(o,m);s?this._isMaskMode?f?(t.push(s),e.push({level:s,overlap:p.get(s)??null})):i.push(n):(e.push({level:s,overlap:p.get(s)??null}),f&&t.push(s)):r.push(n)}),(0,s.S)(d).forEach(i=>{const s=this._allSharedLevelsMap.get(i),{ordinal:a,persistence:c=!1}=s?.properties||{},l=Boolean(c)&&0<=a&&a<=m,u=a===m,d=l||u,h={level:i,overlap:p.get(i)??null};d?this._isMaskMode?f?(e.push(h),l&&n.push(i),u&&t.push(i)):o.push(i):(e.push(h),f&&u&&t.push(i),l&&n.push(i)):r.push(i)}))}return{displayedLevels:e,hiddenBuildingIds:r,maskBuildingIds:i,maskSharedFloorIds:o,alwaysDisplayedSharedLevelIds:n,selectedLevelIds:t}}_setVenueInitOrdinal(e,t){const n=t.find(e=>this._allBuildingsMap.has(e)),r=n?this._allBuildingsMap.get(n):null,i=r?this._getBuildingDefaultOrdinal(r):null;return i&&(this._history.setOrdinalByBuildingUnit(n,i),this._history.setBuildingUnitByVenue(e,{id:n,type:"building"})),i}_getBuildingDisplayedLevel(e,t){if(!e||!e.properties)return null;const{level_ids:n,ordinals:r}=e.properties,i=(0,s.S)(r).findIndex(e=>e===t);return(0,s.S)(n)[i]??null}_filterLayers(){this._filterIndoorLayers([...this._upperLevels,...this._middleLevels],this._commonLayers),this._filterIndoorLayers([...this._upperLevels],this._upperLayers),this._filterIndoorLayers([...this._middleLevels],this._middleLayers),this._filterIndoorLayers([...this._lowerLevels],this._lowerLayers)}_filterIndoorLayers(e,t){let n;for(const r of t){const{id:t,filter:i,type:o,"source-layer":s}=r,a=t.includes("-shared-bg"),c=[...this._maskBuildings],l=[...this._maskSharedFloors];R(s,o)||P(s,o)||(F(s,o)?n=["all",M(s,o)?["!in","ref:building",...c]:["!in","id",...l],["in","id",...e],i]:a?n=["all",["!in","ref:shared_level",...l],["in","ref:shared_level",...e],i]:(n=["all",["any",["all",["!in","ref:building",...c],["in","ref:level",...e]],["all",["!in","ref:shared_level",...l],["in","ref:shared_level",...e]]],i],H(s,o)&&n.splice(1,0,["any",["!has","overlap"],["any",["in","ref:level",...this._upperLevels],["in","ref:shared_level",...this._upperLevels],["!in","osm:ref",...this._excludedPoisInMiddle]]])),this._map.setFilter(t,n))}}async _updateIndoorState(e,t){if(!e)return void this._clear();if(!e.properties)return;const{id:n,"ref:venue":r,level_ids:i,ordinals:a}=e.properties;if(this._curVenueId!==r){this._curVenueId=r;let e=this.getFeaturesById(r,{layerIds:[S]})[0]??null;if(!e)try{const t=(await k.searchByIds(r)).data.result.venues[0];e=(0,o.E)(t)}catch(e){throw e}this._curVenueFeature=e}if(this._curBuildingFeature=e,this._curBuildingId=n,t){const e=(0,s.S)(i).findIndex(e=>e===t);this._floor.ordinal=(0,s.S)(a)[e]??null}else{const t=this._history.getBuildingUnitByVenue(r);this._floor.ordinal=t?this._history.getOrdinalByBuildingUnit(t.id):this._getBuildingDefaultOrdinal(e)}}_updateFloorState(e){if(this._floor={code:null,id:null,ordinal:e},!e)return;const{code:t,id:n}=this._getBuildingFloorByOrdinal(this._curBuildingFeature,e);this._floor.code=t,this._floor.id=n,this._history.setOrdinalByBuildingUnit(this._curBuildingId,e),this._history.setBuildingUnitByVenue(this._curVenueId,{id:this._curBuildingId,type:"building"})}_resetSelectedDisplayedLevel(){const{building_ids:e,shared_level_ids:t}=this._curVenueFeature.properties,n=(0,s.S)(e),r=(0,s.S)(t);for(const e of n){const t=this._allBuildingsMap.get(e);if(!t)continue;const n=(0,s.S)(t.properties.level_ids);r.push(...n),this._hiddenBuildings.delete(e),this._isMaskMode&&this._maskBuildings.delete(e)}for(const e of r)this._upperLevels.delete(e),this._middleLevels.delete(e),this._lowerLevels.delete(e),this._isMaskMode&&this._maskSharedFloors.delete(e)}async _checkAndPanToBuilding(){this.getFeaturesById(this._curBuildingId,{layerIds:[B]})[0]||(this._fitBuildingBounds?this.fitBuildingBbox():await this.panToBuildingCenter())}async _queryFeatureByPoint(e){const t=this._queryVisibleFeature(e);if(!t)return null;let n=null;if(M(t.sourceLayer,t.layer.type)){const{id:e,"ref:building":r}=t.properties;let i=this._allBuildingsMap.get(r);if(!i){const e=await(0,d.pT)(r);i=(0,o.r)(e),this._featureIncomplete=!0}i&&(n={building:i,floorId:e})}else if(U(t.sourceLayer,t.layer.type)){const{id:e,ordinal:r,name:i,"ref:venue":s}=t.properties;let a=this._allVenuesMap.get(s);if(!a){const e=await(0,d.qT)(s);a=(0,o.E)(e),this._featureIncomplete=!0}a&&(n={sharedLevel:{id:e,ordinal:r,name:"string"==typeof i?{default:i}:i},venue:a})}else n={building:t};return n}_queryVisibleFeature(e){const t=[x,I,`${x}-overlap-copy`,`${I}-overlap-copy`,`${I}-shared-bg`,...this._isMaskMode?[c.Zj,a.TU]:[]].filter(e=>!!this._map.getLayer(e)),n=this._map.queryRenderedFeatures(e,{layers:t});let r=null;for(const e of t){const t=n.find(t=>t.layer.id===e);if(t){r=t;break}}return r&&P(r.sourceLayer,r.layer.type)&&(this._maskBuildings.has(r.properties.id)||(r=null)),r}_queryRenderedFeatures(e){const t=(e||[]).filter(e=>this._map.getLayer(e)),n=t.length?{layers:t}:void 0,r=this._map.getCanvas().getBoundingClientRect();return this._map.queryRenderedFeatures([[0,0],[r.width,r.height]],n)}_dispatchIndoorMapLoaded(){this._indoorMapLoaded||(this._indoorMapLoaded=!0,this.emit(A))}}function C(e,t){const n="number"==typeof e&&e===u.sy.lineWidth,r="number"==typeof t&&t===u.sy.lineOffset;return r?n&&r?["interpolate",["linear"],["zoom"],18,-1.5,20.2,-3.75,20.4,-3.8,21.5,-7.5,22,-9.55]:!n&&r?"number"==typeof e?-e/2:t:void 0:t}function R(e,t){return"mapxus_venue"===e&&"fill"===t}function P(e,t){return"mapxus_building"===e&&("fill"===t||"line"===t||"symbol"===t)}function F(e,t){return M(e,t)||U(e,t)}function M(e,t){return"mapxus_level"===e&&("fill"===t||"line"===t)}function U(e,t){return"mapxus_shared_level"===e&&("fill"===t||"line"===t)}function H(e,t){return"mapxus_place"===e&&"symbol"===t}function j(e){return"fill-extrusion"===e}function N(e){const t=new Map;if(!e)return t;for(const n of(0,s.S)(e,"/")){const[e,r]=(0,s.S)(n,":");t.set(e,(0,s.S)(r))}return t}},5647:(e,t,n)=>{n.d(t,{A:()=>r});const r=(0,n(367).A)(Object.getPrototypeOf,Object)},5664:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(8182),i=0;const o=function(e){var t=++i;return(0,r.A)(e)+t}},5668:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},5706:(e,t,n)=>{n.d(t,{Q:()=>r});class r{static instance;_hiddenBuildings;constructor(){this._hiddenBuildings=new Set}static getInstance(){return r.instance||(r.instance=new r),r.instance}getHiddenBuildings(){return this._hiddenBuildings}}},5707:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},5722:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(608),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;const s=(0,r.A)(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t})},5781:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(1275),i=n(5530),o=n(7809),s=n(4099),a=n(9109),c=n(9959);const l=function(e,t,n){var l=-1,u=i.A,d=e.length,h=!0,f=[],p=f;if(n)h=!1,u=o.A;else if(d>=200){var y=t?null:(0,a.A)(e);if(y)return(0,c.A)(y);h=!1,u=s.A,p=new r.A}else p=t?[]:f;e:for(;++l<d;){var g=e[l],m=t?t(g):g;if(g=n||0!==g?g:0,h&&m==m){for(var _=p.length;_--;)if(p[_]===m)continue e;t&&p.push(m),f.push(g)}else u(p,m,n)||(p!==f&&p.push(m),f.push(g))}return f}},5861:(e,t,n)=>{n.d(t,{A:()=>w});var r=n(2732),i=n(8335),o=n(180),s=n(9857),a=n(3631),c=n(9672),l=n(1121),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",y=(0,l.A)(r.A),g=(0,l.A)(i.A),m=(0,l.A)(o.A),_=(0,l.A)(s.A),b=(0,l.A)(a.A),v=c.A;(r.A&&v(new r.A(new ArrayBuffer(1)))!=p||i.A&&v(new i.A)!=u||o.A&&v(o.A.resolve())!=d||s.A&&v(new s.A)!=h||a.A&&v(new a.A)!=f)&&(v=function(e){var t=(0,c.A)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,l.A)(n):"";if(r)switch(r){case y:return p;case g:return u;case m:return d;case _:return h;case b:return f}return t});const w=v},5917:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(5088),i=n(9846),o=n(1521),s=n(2509),a=n(549);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const l=c},5978:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(7275),i=n(3967),o=n(7352),s=n(8683),a=n(4662),c=n(8262),l=n(3390),u=n(7110);const d=l.A.validators;class h{constructor(e){this.defaults=e||{},this.interceptors={request:new o.A,response:new o.A}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=(0,a.A)(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:o}=t;void 0!==n&&l.A.assertOptions(n,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1),null!=i&&(r.A.isFunction(i)?t.paramsSerializer={serialize:i}:l.A.assertOptions(i,{encode:d.function,serialize:d.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),l.A.assertOptions(t,{baseUrl:d.spelling("baseURL"),withXsrfToken:d.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=o&&r.A.merge(o.common,o[t.method]);o&&r.A.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=u.A.concat(c,o);const h=[];let f=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(f=f&&e.synchronous,h.unshift(e.fulfilled,e.rejected))});const p=[];let y;this.interceptors.response.forEach(function(e){p.push(e.fulfilled,e.rejected)});let g,m=0;if(!f){const e=[s.A.bind(this),void 0];for(e.unshift.apply(e,h),e.push.apply(e,p),g=e.length,y=Promise.resolve(t);m<g;)y=y.then(e[m++],e[m++]);return y}g=h.length;let _=t;for(m=0;m<g;){const e=h[m++],t=h[m++];try{_=e(_)}catch(e){t.call(this,e);break}}try{y=s.A.call(this,_)}catch(e){return Promise.reject(e)}for(m=0,g=p.length;m<g;)y=y.then(p[m++],p[m++]);return y}getUri(e){e=(0,a.A)(this.defaults,e);const t=(0,c.A)(e.baseURL,e.url,e.allowAbsoluteUrls);return(0,i.A)(t,e.params,e.paramsSerializer)}}r.A.forEach(["delete","get","head","options"],function(e){h.prototype[e]=function(t,n){return this.request((0,a.A)(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.A.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request((0,a.A)(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}h.prototype[e]=t(),h.prototype[e+"Form"]=t(!0)});const f=h},5997:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},6013:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(7275),i=n(4062),o=n(807),s=n(665),a=n(1076),c=n(3820),l=n(7887);const u={transitional:o.A,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=r.A.isObject(e);o&&r.A.isHTMLForm(e)&&(e=new FormData(e));if(r.A.isFormData(e))return i?JSON.stringify((0,l.A)(e)):e;if(r.A.isArrayBuffer(e)||r.A.isBuffer(e)||r.A.isStream(e)||r.A.isFile(e)||r.A.isBlob(e)||r.A.isReadableStream(e))return e;if(r.A.isArrayBufferView(e))return e.buffer;if(r.A.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return(0,a.A)(e,this.formSerializer).toString();if((c=r.A.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return(0,s.A)(c?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(r.A.isString(e))try{return(t||JSON.parse)(e),r.A.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||u.transitional,n=t&&t.forcedJSONParsing,o="json"===this.responseType;if(r.A.isResponse(e)||r.A.isReadableStream(e))return e;if(e&&r.A.isString(e)&&(n&&!this.responseType||o)){const n=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw i.A.from(e,i.A.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:c.A.classes.FormData,Blob:c.A.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};r.A.forEach(["delete","get","head","post","put","patch"],e=>{u.headers[e]={}});const d=u},6031:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},6034:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(2141),i=n(8672),o=n(1470);const s=function(e,t){return(0,o.A)(e,(0,i.A)((0,r.A)(t)))}},6224:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){return e<t}},6242:(e,t,n)=>{n.d(t,{k:()=>a});var r=n(7007),i=n(5537),o=n(3574),s=n(3207);class a extends r.EventEmitter{_appId=null;_secret=null;isClosed=!1;_timeoutId;_isInitialized=!1;_initializationPromise;_tokenManager=s.t.getInstance();_from;constructor(e,t,n=o.en.Access){super(),this._from=n,this._appId=e,this._secret=t,this._initializationPromise=this._initToken()}async ready(){await this._initializationPromise}get appId(){return this._appId}get token(){if(!this._isInitialized)throw new Error("Token is not initialized yet. Use the 'ready' method to wait for initialization.");return this._tokenManager.getToken(this._appId)}close(){this.isClosed||(this._timeoutId&&clearTimeout(this._timeoutId),this._tokenManager.deleteToken(this._appId,this._from),this.emit("updated",{appId:this._appId,token:null}),Object.keys(this).forEach(e=>{"isClosed"!==e&&"_events"!==e&&delete this[e]}),this.isClosed=!0,this.emit("closed"),delete this._events,Object.freeze(this))}forceUpdateToken(){this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=null),this._isInitialized=!1,this._initializationPromise=this._initToken()}async _initToken(){try{const e=await this._tokenManager.fetchToken(this._appId,this._secret);this._isInitialized=!0,this._tokenManager.updateToken({appId:this._appId,secret:this._secret,token:e,from:this._from});const t=(0,i.s)(e),n=1e3*(t.exp-t.iat-60);this._loopUpdateToken(n)}catch(e){throw this.emit("error",new Error("Failed to initialize token.",{cause:e})),e}}_loopUpdateToken(e){this.isClosed||(this._timeoutId=setTimeout(async()=>{try{const t=await this._tokenManager.fetchToken(this._appId,this._secret);this._tokenManager.updateToken({appId:this._appId,secret:this._secret,token:t,from:this._from}),this.emit("updated",{appId:this._appId,token:t}),this._loopUpdateToken(e)}catch(e){this.emit("error",new Error("Failed to update token.",{cause:e}))}},e))}}},6263:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(7275),i=n(3119),o=n(7013),s=n(7960),a=n(4062);const c={http:i.A,xhr:o.A,fetch:s.A};r.A.forEach(c,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const l=e=>`- ${e}`,u=e=>r.A.isFunction(e)||null===e||!1===e,d={getAdapter:e=>{e=r.A.isArray(e)?e:[e];const{length:t}=e;let n,i;const o={};for(let r=0;r<t;r++){let t;if(n=e[r],i=n,!u(n)&&(i=c[(t=String(n)).toLowerCase()],void 0===i))throw new a.A(`Unknown adapter '${t}'`);if(i)break;o[t||"#"+r]=i}if(!i){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let n=t?e.length>1?"since :\n"+e.map(l).join("\n"):" "+l(e[0]):"as no adapter specified";throw new a.A("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i},adapters:c}},6294:(e,t,n)=>{n.d(t,{B:()=>r});class r{_indoor;_isEnabled=!0;constructor(e){this._indoor=e}enable(){this._isEnabled=!0,this._indoor.setAllowOutdoorSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowOutdoorSwitch(!1)}get isEnabled(){return this._isEnabled}}},6305:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(3820);const i=r.A.hasStandardBrowserEnv?(o=new URL(r.A.origin),s=r.A.navigator&&/(msie|trident)/i.test(r.A.navigator.userAgent),e=>(e=new URL(e,r.A.origin),o.protocol===e.protocol&&o.host===e.host&&(s||o.port===e.port))):()=>!0;var o,s},6318:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7465),i=n(901);const o=function(e,t){for(var n=0,o=(t=(0,r.A)(t,e)).length;null!=e&&n<o;)e=e[(0,i.A)(t[n++])];return n&&n==o?e:void 0}},6358:(e,t,n)=>{var r,i,o,s;n.d(t,{Kp:()=>r,LJ:()=>o,_P:()=>i,nH:()=>s}),function(e){e.POINT="Point",e.POLYGON="Polygon"}(r||(r={})),function(e){e.POINT="Point",e.POLYGON="Polygon",e.GATE="Gate"}(i||(i={})),function(e){e.DEFAULT_NAME="DefaultName"}(o||(o={})),function(e){e.ABSOLUTE_DISTANCE="AbsoluteDistance",e.ACTUAL_DISTANCE="ActualDistance"}(s||(s={}))},6377:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.edwards=d,t.eddsa=h,t.twistedEdwards=function(e){const{CURVE:t,curveOpts:n,eddsaOpts:r}=function(e){const t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp,r=(0,o.Field)(t.n,e.nBitLength,!0),i={Fp:n,Fn:r,uvRatio:e.uvRatio},s={hash:e.hash,randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:i,eddsaOpts:s}}(e),i=h(d(t,n),r);return function(e,t){const n=Object.assign({},t,{ExtendedPoint:t.Point,CURVE:e});return n}(e,i)};const r=n(8627),i=n(2422),o=n(4967),s=BigInt(0),a=BigInt(1),c=BigInt(2),l=BigInt(8),u={zip215:!0};function d(e,t={}){const{Fp:n,Fn:o}=(0,i._createCurveFields)("edwards",e,t),{h:u,n:d}=e;(0,r._validateObject)(t,{},{uvRatio:"function"});const h=c<<BigInt(8*o.BYTES)-a,f=e=>n.create(e),p=t.uvRatio||((e,t)=>{try{return{isValid:!0,value:n.sqrt(n.div(e,t))}}catch(e){return{isValid:!1,value:s}}});if(!function(e,t,n,r){const i=e.sqr(n),o=e.sqr(r),s=e.add(e.mul(t.a,i),o),a=e.add(e.ONE,e.mul(t.d,e.mul(i,o)));return e.eql(s,a)}(n,e,e.Gx,e.Gy))throw new Error("bad curve params: generator point");function y(e,t,n=!1){const i=n?a:s;return(0,r.aInRange)("coordinate "+e,t,i,h),t}function g(e){if(!(e instanceof b))throw new Error("ExtendedPoint expected")}const m=(0,r.memoized)((e,t)=>{const{ex:r,ey:i,ez:o}=e,c=e.is0();null==t&&(t=c?l:n.inv(o));const u=f(r*t),d=f(i*t),h=f(o*t);if(c)return{x:s,y:a};if(h!==a)throw new Error("invZ was invalid");return{x:u,y:d}}),_=(0,r.memoized)(t=>{const{a:n,d:r}=e;if(t.is0())throw new Error("bad point: ZERO");const{ex:i,ey:o,ez:s,et:a}=t,c=f(i*i),l=f(o*o),u=f(s*s),d=f(u*u),h=f(c*n);if(f(u*f(h+l))!==f(d+f(r*f(c*l))))throw new Error("bad point: equation left != right (1)");if(f(i*o)!==f(s*a))throw new Error("bad point: equation left != right (2)");return!0});class b{constructor(e,t,n,r){this.ex=y("x",e),this.ey=y("y",t),this.ez=y("z",n,!0),this.et=y("t",r),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(e){if(e instanceof b)throw new Error("extended point not allowed");const{x:t,y:n}=e||{};return y("x",t),y("y",n),new b(t,n,a,f(t*n))}static normalizeZ(e){return(0,i.normalizeZ)(b,"ez",e)}static msm(e,t){return(0,i.pippenger)(b,o,e,t)}_setWindowSize(e){this.precompute(e)}precompute(e=8,t=!0){return v.setWindowSize(this,e),t||this.multiply(c),this}assertValidity(){_(this)}equals(e){g(e);const{ex:t,ey:n,ez:r}=this,{ex:i,ey:o,ez:s}=e,a=f(t*s),c=f(i*r),l=f(n*s),u=f(o*r);return a===c&&l===u}is0(){return this.equals(b.ZERO)}negate(){return new b(f(-this.ex),this.ey,this.ez,f(-this.et))}double(){const{a:t}=e,{ex:n,ey:r,ez:i}=this,o=f(n*n),s=f(r*r),a=f(c*f(i*i)),l=f(t*o),u=n+r,d=f(f(u*u)-o-s),h=l+s,p=h-a,y=l-s,g=f(d*p),m=f(h*y),_=f(d*y),v=f(p*h);return new b(g,m,v,_)}add(t){g(t);const{a:n,d:r}=e,{ex:i,ey:o,ez:s,et:a}=this,{ex:c,ey:l,ez:u,et:d}=t,h=f(i*c),p=f(o*l),y=f(a*r*d),m=f(s*u),_=f((i+o)*(c+l)-h-p),v=m-y,w=m+y,A=f(p-n*h),E=f(_*v),S=f(w*A),B=f(_*A),x=f(v*w);return new b(E,S,x,B)}subtract(e){return this.add(e.negate())}multiply(e){const t=e;(0,r.aInRange)("scalar",t,a,d);const{p:n,f:i}=v.wNAFCached(this,t,b.normalizeZ);return b.normalizeZ([n,i])[0]}multiplyUnsafe(e,t=b.ZERO){const n=e;return(0,r.aInRange)("scalar",n,s,d),n===s?b.ZERO:this.is0()||n===a?this:v.wNAFCachedUnsafe(this,n,b.normalizeZ,t)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}isTorsionFree(){return v.wNAFCachedUnsafe(this,d).is0()}toAffine(e){return m(this,e)}clearCofactor(){return u===a?this:this.multiplyUnsafe(u)}static fromBytes(e,t=!1){return(0,r.abytes)(e),this.fromHex(e,t)}static fromHex(t,i=!1){const{d:o,a:c}=e,l=n.BYTES;t=(0,r.ensureBytes)("pointHex",t,l),(0,r.abool)("zip215",i);const u=t.slice(),d=t[l-1];u[l-1]=-129&d;const y=(0,r.bytesToNumberLE)(u),g=i?h:n.ORDER;(0,r.aInRange)("pointHex.y",y,s,g);const m=f(y*y),_=f(m-a),v=f(o*m-c);let{isValid:w,value:A}=p(_,v);if(!w)throw new Error("Point.fromHex: invalid y coordinate");const E=(A&a)===a,S=!!(128&d);if(!i&&A===s&&S)throw new Error("Point.fromHex: x=0 and x_0=1");return S!==E&&(A=f(-A)),b.fromAffine({x:A,y})}static fromPrivateScalar(e){return b.BASE.multiply(e)}toBytes(){const{x:e,y:t}=this.toAffine(),i=(0,r.numberToBytesLE)(t,n.BYTES);return i[i.length-1]|=e&a?128:0,i}toRawBytes(){return this.toBytes()}toHex(){return(0,r.bytesToHex)(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}}b.BASE=new b(e.Gx,e.Gy,a,f(e.Gx*e.Gy)),b.ZERO=new b(s,a,a,s),b.Fp=n,b.Fn=o;const v=(0,i.wNAF)(b,8*o.BYTES);return b}function h(e,t){(0,r._validateObject)(t,{hash:"function"},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:n,hash:i}=t,{BASE:o,Fp:a,Fn:c}=e,l=c.ORDER,d=t.randomBytes||r.randomBytes,h=t.adjustScalarBytes||(e=>e),f=t.domain||((e,t,n)=>{if((0,r.abool)("phflag",n),t.length||n)throw new Error("Contexts/pre-hash are not supported");return e});function p(e){return c.create(e)}function y(e){return p((0,r.bytesToNumberLE)(e))}function g(e){const{head:t,prefix:n,scalar:s}=function(e){const t=a.BYTES;e=(0,r.ensureBytes)("private key",e,t);const n=(0,r.ensureBytes)("hashed private key",i(e),2*t),o=h(n.slice(0,t));return{head:o,prefix:n.slice(t,2*t),scalar:y(o)}}(e),c=o.multiply(s),l=c.toBytes();return{head:t,prefix:n,scalar:s,point:c,pointBytes:l}}function m(e=Uint8Array.of(),...t){const o=(0,r.concatBytes)(...t);return y(i(f(o,(0,r.ensureBytes)("context",e),!!n)))}const _=u;o.precompute(8);return{getPublicKey:function(e){return g(e).pointBytes},sign:function(e,t,i={}){e=(0,r.ensureBytes)("message",e),n&&(e=n(e));const{prefix:c,scalar:u,pointBytes:d}=g(t),h=m(i.context,c,e),f=o.multiply(h).toBytes(),y=p(h+m(i.context,f,d,e)*u);(0,r.aInRange)("signature.s",y,s,l);const _=a.BYTES,b=(0,r.concatBytes)(f,(0,r.numberToBytesLE)(y,_));return(0,r.ensureBytes)("result",b,2*_)},verify:function(t,i,s,c=_){const{context:l,zip215:u}=c,d=a.BYTES;t=(0,r.ensureBytes)("signature",t,2*d),i=(0,r.ensureBytes)("message",i),s=(0,r.ensureBytes)("publicKey",s,d),void 0!==u&&(0,r.abool)("zip215",u),n&&(i=n(i));const h=(0,r.bytesToNumberLE)(t.slice(d,2*d));let f,p,y;try{f=e.fromHex(s,u),p=e.fromHex(t.slice(0,d),u),y=o.multiplyUnsafe(h)}catch(e){return!1}if(!u&&f.isSmallOrder())return!1;const g=m(l,p.toBytes(),f.toBytes(),i);return p.add(f.multiplyUnsafe(g)).subtract(y).clearCofactor().is0()},utils:{getExtendedPublicKey:g,randomPrivateKey:()=>d(a.BYTES),precompute:(t=8,n=e.BASE)=>n.precompute(t,!1)},Point:e}}},6474:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(1038),i=n(7500),o=n(7511),s=n(6586),a=n(9396),c=n(5997),l=n(901);const u=function(e,t){return(0,s.A)(e)&&(0,a.A)(t)?(0,c.A)((0,l.A)(e),t):function(n){var s=(0,i.A)(n,e);return void 0===s&&s===t?(0,o.A)(n,e):(0,r.A)(t,s,3)}}},6501:(e,t,n)=>{n.d(t,{A:()=>r});const r="undefined"!=typeof Blob?Blob:null},6527:(e,t)=>{function n(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function r(e){if("boolean"!=typeof e)throw new Error(`boolean expected, not ${e}`)}function i(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function o(e,...t){if(!n(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function s(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCipher=t.Hash=t.nextTick=t.isLE=void 0,t.isBytes=n,t.abool=r,t.anumber=i,t.abytes=o,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");i(e.outputLen),i(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},t.aoutput=function(e,t){o(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=s,t.bytesToHex=l,t.hexToBytes=h,t.hexToNumber=f,t.bytesToNumberBE=function(e){return f(l(e))},t.numberToBytesBE=function(e,t){return h(e.toString(16).padStart(2*t,"0"))},t.utf8ToBytes=p,t.bytesToUtf8=function(e){return(new TextDecoder).decode(e)},t.toBytes=function(e){if("string"==typeof e)e=p(e);else{if(!n(e))throw new Error("Uint8Array expected, got "+typeof e);e=_(e)}return e},t.overlapBytes=y,t.complexOverlapBytes=function(e,t){if(y(e,t)&&e.byteOffset<t.byteOffset)throw new Error("complex overlap of input and output is not supported")},t.concatBytes=function(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];o(r),t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const i=e[t];n.set(i,r),r+=i.length}return n},t.checkOpts=function(e,t){if(null==t||"object"!=typeof t)throw new Error("options must be defined");return Object.assign(e,t)},t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n},t.getOutput=function(e,t,n=!0){if(void 0===t)return new Uint8Array(e);if(t.length!==e)throw new Error("invalid output length, expected "+e+", got: "+t.length);if(n&&!m(t))throw new Error("invalid output, must be aligned");return t},t.setBigUint64=g,t.u64Lengths=function(e,t,n){r(n);const i=new Uint8Array(16),o=s(i);return g(o,0,BigInt(t),n),g(o,8,BigInt(e),n),i},t.isAligned32=m,t.copyBytes=_,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];const a=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),c=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function l(e){if(o(e),a)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=c[e[n]];return t}const u={_0:48,_9:57,A:65,F:70,a:97,f:102};function d(e){return e>=u._0&&e<=u._9?e-u._0:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function h(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(a)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){const n=d(e.charCodeAt(i)),o=d(e.charCodeAt(i+1));if(void 0===n||void 0===o){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}r[t]=16*n+o}return r}function f(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":"0x"+e)}function p(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function y(e,t){return e.buffer===t.buffer&&e.byteOffset<t.byteOffset+t.byteLength&&t.byteOffset<e.byteOffset+e.byteLength}t.nextTick=async()=>{};t.Hash=class{};function g(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,l=r?0:4;e.setUint32(t+c,s,r),e.setUint32(t+l,a,r)}function m(e){return e.byteOffset%4==0}function _(e){return Uint8Array.from(e)}t.wrapCipher=(e,n)=>{function r(r,...i){if(o(r),!t.isLE)throw new Error("Non little-endian hardware is not yet supported");if(void 0!==e.nonceLength){const t=i[0];if(!t)throw new Error("nonce / iv required");e.varSizeNonce?o(t):o(t,e.nonceLength)}const s=e.tagLength;s&&void 0!==i[1]&&o(i[1]);const a=n(r,...i),c=(e,t)=>{if(void 0!==t){if(2!==e)throw new Error("cipher output not supported");o(t)}};let l=!1;return{encrypt(e,t){if(l)throw new Error("cannot encrypt() twice with same key + nonce");return l=!0,o(e),c(a.encrypt.length,t),a.encrypt(e,t)},decrypt(e,t){if(o(e),s&&e.length<s)throw new Error("invalid ciphertext length: smaller than tagLength="+s);return c(a.decrypt.length,t),a.decrypt(e,t)}}}return Object.assign(r,e),r}},6568:(e,t,n)=>{n.d(t,{Ay:()=>Le});var r=n(1635),i="4.6.2";function o(e,t){return new Promise(function(n){return setTimeout(n,e,t)})}function s(e){return!!e&&"function"==typeof e.then}function a(e,t){try{var n=e();s(n)?n.then(function(e){return t(!0,e)},function(e){return t(!1,e)}):t(!0,n)}catch(e){t(!1,e)}}function c(e,t,n){return void 0===n&&(n=16),(0,r.sH)(this,void 0,void 0,function(){var i,o,s,a;return(0,r.YH)(this,function(r){switch(r.label){case 0:i=Array(e.length),o=Date.now(),s=0,r.label=1;case 1:return s<e.length?(i[s]=t(e[s],s),(a=Date.now())>=o+n?(o=a,[4,new Promise(function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)})]):[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return++s,[3,1];case 4:return[2,i]}})})}function l(e){return e.then(void 0,function(){}),e}function u(e){return parseInt(e)}function d(e){return parseFloat(e)}function h(e,t){return"number"==typeof e&&isNaN(e)?t:e}function f(e){return e.reduce(function(e,t){return e+(t?1:0)},0)}function p(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function y(e,t){var n=e[0]>>>16,r=65535&e[0],i=e[1]>>>16,o=65535&e[1],s=t[0]>>>16,a=65535&t[0],c=t[1]>>>16,l=0,u=0,d=0,h=0;d+=(h+=o+(65535&t[1]))>>>16,h&=65535,u+=(d+=i+c)>>>16,d&=65535,l+=(u+=r+a)>>>16,u&=65535,l+=n+s,l&=65535,e[0]=l<<16|u,e[1]=d<<16|h}function g(e,t){var n=e[0]>>>16,r=65535&e[0],i=e[1]>>>16,o=65535&e[1],s=t[0]>>>16,a=65535&t[0],c=t[1]>>>16,l=65535&t[1],u=0,d=0,h=0,f=0;h+=(f+=o*l)>>>16,f&=65535,d+=(h+=i*l)>>>16,h&=65535,d+=(h+=o*c)>>>16,h&=65535,u+=(d+=r*l)>>>16,d&=65535,u+=(d+=i*c)>>>16,d&=65535,u+=(d+=o*a)>>>16,d&=65535,u+=n*l+r*c+i*a+o*s,u&=65535,e[0]=u<<16|d,e[1]=h<<16|f}function m(e,t){var n=e[0];32===(t%=64)?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function _(e,t){0!==(t%=64)&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function b(e,t){e[0]^=t[0],e[1]^=t[1]}var v=[4283543511,3981806797],w=[3301882366,444984403];function A(e){var t=[0,e[0]>>>1];b(e,t),g(e,v),t[1]=e[0]>>>1,b(e,t),g(e,w),t[1]=e[0]>>>1,b(e,t)}var E=[2277735313,289559509],S=[1291169091,658871167],B=[0,5],x=[0,1390208809],I=[0,944331445];function L(e,t){var n=function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>127)return(new TextEncoder).encode(e);t[n]=r}return t}(e);t=t||0;var r,i=[0,n.length],o=i[1]%16,s=i[1]-o,a=[0,t],c=[0,t],l=[0,0],u=[0,0];for(r=0;r<s;r+=16)l[0]=n[r+4]|n[r+5]<<8|n[r+6]<<16|n[r+7]<<24,l[1]=n[r]|n[r+1]<<8|n[r+2]<<16|n[r+3]<<24,u[0]=n[r+12]|n[r+13]<<8|n[r+14]<<16|n[r+15]<<24,u[1]=n[r+8]|n[r+9]<<8|n[r+10]<<16|n[r+11]<<24,g(l,E),m(l,31),g(l,S),b(a,l),m(a,27),y(a,c),g(a,B),y(a,x),g(u,S),m(u,33),g(u,E),b(c,u),m(c,31),y(c,a),g(c,B),y(c,I);l[0]=0,l[1]=0,u[0]=0,u[1]=0;var d=[0,0];switch(o){case 15:d[1]=n[r+14],_(d,48),b(u,d);case 14:d[1]=n[r+13],_(d,40),b(u,d);case 13:d[1]=n[r+12],_(d,32),b(u,d);case 12:d[1]=n[r+11],_(d,24),b(u,d);case 11:d[1]=n[r+10],_(d,16),b(u,d);case 10:d[1]=n[r+9],_(d,8),b(u,d);case 9:d[1]=n[r+8],b(u,d),g(u,S),m(u,33),g(u,E),b(c,u);case 8:d[1]=n[r+7],_(d,56),b(l,d);case 7:d[1]=n[r+6],_(d,48),b(l,d);case 6:d[1]=n[r+5],_(d,40),b(l,d);case 5:d[1]=n[r+4],_(d,32),b(l,d);case 4:d[1]=n[r+3],_(d,24),b(l,d);case 3:d[1]=n[r+2],_(d,16),b(l,d);case 2:d[1]=n[r+1],_(d,8),b(l,d);case 1:d[1]=n[r],b(l,d),g(l,E),m(l,31),g(l,S),b(a,l)}return b(a,i),b(c,i),y(a,c),y(c,a),A(a),A(c),y(a,c),y(c,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)}function O(e){return"function"!=typeof e}function k(e,t,n,i){var o=Object.keys(e).filter(function(e){return!function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}(n,e)}),s=l(c(o,function(n){return function(e,t){var n=l(new Promise(function(n){var r=Date.now();a(e.bind(null,t),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=Date.now()-r;if(!e[0])return n(function(){return{error:e[1],duration:i}});var o=e[1];if(O(o))return n(function(){return{value:o,duration:i}});n(function(){return new Promise(function(e){var t=Date.now();a(o,function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=i+Date.now()-t;if(!n[0])return e({error:n[1],duration:o});e({value:n[1],duration:o})})})})})}));return function(){return n.then(function(e){return e()})}}(e[n],t)},i));return function(){return(0,r.sH)(this,void 0,void 0,function(){var e,t,n,a;return(0,r.YH)(this,function(r){switch(r.label){case 0:return[4,s];case 1:return[4,c(r.sent(),function(e){return l(e())},i)];case 2:return e=r.sent(),[4,Promise.all(e)];case 3:for(t=r.sent(),n={},a=0;a<o.length;++a)n[o[a]]=t[a];return[2,n]}})})}}function T(){var e=window,t=navigator;return f(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function C(){var e=window,t=navigator;return f(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===(t.vendor||"").indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function R(){var e=window;return f(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===navigator.vendor.indexOf("Apple"),"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function P(){var e=window,t=e.HTMLElement,n=e.Document;return f(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function F(){var e,t=window;return e=t.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))&&"[object WebPageNamespace]"===String(t.browser)}function M(){var e,t,n=window;return f(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function U(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return f([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function H(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function j(){var e=C(),t=M(),n=window,r=navigator,i="connection";return e?f([!("SharedWorker"in n),r[i]&&"ontypechange"in r[i],!("sinkId"in new Audio)])>=2:!!t&&f(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2}function N(e){var t=new Error(e);return t.name=e,t}function V(e,t,n){var i,s,a;return void 0===n&&(n=50),(0,r.sH)(this,void 0,void 0,function(){var c,l;return(0,r.YH)(this,function(r){switch(r.label){case 0:c=document,r.label=1;case 1:return c.body?[3,3]:[4,o(n)];case 2:return r.sent(),[3,1];case 3:l=c.createElement("iframe"),r.label=4;case 4:return r.trys.push([4,,10,11]),[4,new Promise(function(e,n){var r=!1,i=function(){r=!0,e()};l.onload=i,l.onerror=function(e){r=!0,n(e)};var o=l.style;o.setProperty("display","block","important"),o.position="absolute",o.top="0",o.left="0",o.visibility="hidden",t&&"srcdoc"in l?l.srcdoc=t:l.src="about:blank",c.body.appendChild(l);var s=function(){var e,t;r||("complete"===(null===(t=null===(e=l.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?i():setTimeout(s,10))};s()})];case 5:r.sent(),r.label=6;case 6:return(null===(s=null===(i=l.contentWindow)||void 0===i?void 0:i.document)||void 0===s?void 0:s.body)?[3,8]:[4,o(n)];case 7:return r.sent(),[3,6];case 8:return[4,e(l,l.contentWindow)];case 9:return[2,r.sent()];case 10:return null===(a=l.parentNode)||void 0===a||a.removeChild(l),[7];case 11:return[2]}})})}function D(e){for(var t=function(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),i=/^\s*([a-z-]*)(.*)$/i.exec(e),o=i[1]||void 0,s={},a=/([.:#][\w-]+|\[.+?\])/gi,c=function(e,t){s[e]=s[e]||[],s[e].push(t)};;){var l=a.exec(i[2]);if(!l)break;var u=l[0];switch(u[0]){case".":c("class",u.slice(1));break;case"#":c("id",u.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(!d)throw new Error(r);c(d[1],null!==(n=null!==(t=d[4])&&void 0!==t?t:d[5])&&void 0!==n?n:"");break;default:throw new Error(r)}}return[o,s]}(e),n=t[0],r=t[1],i=document.createElement(null!=n?n:"div"),o=0,s=Object.keys(r);o<s.length;o++){var a=s[o],c=r[a].join(" ");"style"===a?$(i.style,c):i.setAttribute(a,c)}return i}function $(e,t){for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(i);if(o){var s=o[1],a=o[2],c=o[4];e.setProperty(s,a,c||"")}}}var z=["monospace","sans-serif","serif"],G=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function W(e){return e.toDataURL()}var q,Z;function K(){var e=this;return function(){if(void 0===Z){var e=function(){var t=Y();X(t)?Z=setTimeout(e,2500):(q=t,Z=void 0)};e()}}(),function(){return(0,r.sH)(e,void 0,void 0,function(){var e;return(0,r.YH)(this,function(t){switch(t.label){case 0:return X(e=Y())?q?[2,(0,r.fX)([],q,!0)]:(n=document).fullscreenElement||n.msFullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement?[4,H()]:[3,2]:[3,2];case 1:t.sent(),e=Y(),t.label=2;case 2:return X(e)||(q=e),[2,e]}var n})})}}function Y(){var e=screen;return[h(d(e.availTop),null),h(d(e.width)-d(e.availWidth)-h(d(e.availLeft),0),null),h(d(e.height)-d(e.availHeight)-h(d(e.availTop),0),null),h(d(e.availLeft),null)]}function X(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function J(e){var t;return(0,r.sH)(this,void 0,void 0,function(){var n,i,s,a,c,l,u;return(0,r.YH)(this,function(r){switch(r.label){case 0:for(n=document,i=n.createElement("div"),s=new Array(e.length),a={},Q(i),u=0;u<e.length;++u)"DIALOG"===(c=D(e[u])).tagName&&c.show(),Q(l=n.createElement("div")),l.appendChild(c),i.appendChild(l),s[u]=c;r.label=1;case 1:return n.body?[3,3]:[4,o(50)];case 2:return r.sent(),[3,1];case 3:n.body.appendChild(i);try{for(u=0;u<e.length;++u)s[u].offsetParent||(a[e[u]]=!0)}finally{null===(t=i.parentNode)||void 0===t||t.removeChild(i)}return[2,a]}})})}function Q(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function ee(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function te(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}function ne(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function re(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function ie(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function oe(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var se=Math,ae=function(){return 0};var ce={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};var le=function(){for(var e=window;;){var t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(e){if(e instanceof Error&&"SecurityError"===e.name)return!0;throw e}e=t}};var ue=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),de=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),he=["FRAGMENT_SHADER","VERTEX_SHADER"],fe=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],pe="WEBGL_debug_renderer_info";function ye(e){if(e.webgl)return e.webgl.context;var t,n=document.createElement("canvas");n.addEventListener("webglCreateContextError",function(){return t=void 0});for(var r=0,i=["webgl","experimental-webgl"];r<i.length;r++){var o=i[r];try{t=n.getContext(o)}catch(e){}if(t)break}return e.webgl={context:t},t}function ge(e,t,n){var r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function me(e){return Object.keys(e.__proto__).filter(_e)}function _e(e){return"string"==typeof e&&!e.match(/[^A-Z0-9_x]/)}function be(){return M()}function ve(){return C()||R()}function we(e){return"function"==typeof e.getParameter}var Ae={fonts:function(){var e=this;return V(function(t,n){var i=n.document;return(0,r.sH)(e,void 0,void 0,function(){var e,t,n,o,s,a,c,l,u,d,h;return(0,r.YH)(this,function(r){for((e=i.body).style.fontSize="48px",(t=i.createElement("div")).style.setProperty("visibility","hidden","important"),n={},o={},s=function(e){var n=i.createElement("span"),r=n.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=e,n.textContent="mmMwWLliI0O&1",t.appendChild(n),n},a=function(e,t){return s("'".concat(e,"',").concat(t))},c=function(){for(var e={},t=function(t){e[t]=z.map(function(e){return a(t,e)})},n=0,r=G;n<r.length;n++){t(r[n])}return e},l=function(e){return z.some(function(t,r){return e[r].offsetWidth!==n[t]||e[r].offsetHeight!==o[t]})},u=function(){return z.map(s)}(),d=c(),e.appendChild(t),h=0;h<z.length;h++)n[z[h]]=u[h].offsetWidth,o[z[h]]=u[h].offsetHeight;return[2,G.filter(function(e){return l(d[e])})]})})})},domBlockers:function(e){var t=(void 0===e?{}:e).debug;return(0,r.sH)(this,void 0,void 0,function(){var e,n,i,o,s;return(0,r.YH)(this,function(r){switch(r.label){case 0:return R()||j()?(a=atob,e={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',a("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",a("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",a("LnNwb25zb3JpdA=="),".ylamainos",a("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",a("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",a("LmhlYWRlci1ibG9ja2VkLWFk"),a("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",a("I2FkXzMwMFgyNTA="),a("I2Jhbm5lcmZsb2F0MjI="),a("I2NhbXBhaWduLWJhbm5lcg=="),a("I0FkLUNvbnRlbnQ=")],adGuardChinese:[a("LlppX2FkX2FfSA=="),a("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",a("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),a("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",a("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",a("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",a("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),a("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),a("LmFkZ29vZ2xl"),a("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[a("YW1wLWF1dG8tYWRz"),a("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",a("I2FkX2ludmlld19hcmVh")],adGuardRussian:[a("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),a("LnJlY2xhbWE="),'div[id^="smi2adblock"]',a("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[a("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),a("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",a("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),a("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),a("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",a("I3Jla2xhbWk="),a("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),a("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),a("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[a("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",a("LndpZGdldF9wb19hZHNfd2lkZ2V0"),a("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",a("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[a("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),a("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",a("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",a("I3Jla2xhbW5pLWJveA=="),a("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",a("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[a("I2FkdmVydGVudGll"),a("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",a("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",a("LnNwb25zb3JsaW5rZ3J1ZW4="),a("I3dlcmJ1bmdza3k="),a("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),a("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[a("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",a("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[a("LnJla2xhbW9zX3RhcnBhcw=="),a("LnJla2xhbW9zX251b3JvZG9z"),a("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),a("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),a("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[a("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[a("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),a("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",a("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[a("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),a("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),a("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",a("LmFkX19tYWlu"),a("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[a("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),a("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[a("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),a("I2xpdmVyZUFkV3JhcHBlcg=="),a("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),a("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[a("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",a("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),a("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),a("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[a("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),a("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),a("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",a("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),a("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),a("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),a("ZGl2I3NrYXBpZWNfYWQ=")],ro:[a("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),a("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),a("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[a("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),a("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),a("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",a("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),a("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",a("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},n=Object.keys(e),[4,J((s=[]).concat.apply(s,n.map(function(t){return e[t]})))]):[2,void 0];case 1:return i=r.sent(),t&&function(e,t){for(var n="DOM blockers debug:\n```",r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];n+="\n".concat(o,":");for(var s=0,a=e[o];s<a.length;s++){var c=a[s];n+="\n ".concat(t[c]?"🚫":"➡️"," ").concat(c)}}console.log("".concat(n,"\n```"))}(e,i),(o=n.filter(function(t){var n=e[t];return f(n.map(function(e){return i[e]}))>.6*n.length})).sort(),[2,o]}var a})})},fontPreferences:function(){return function(e,t){void 0===t&&(t=4e3);return V(function(n,i){var o=i.document,s=o.body,a=s.style;a.width="".concat(t,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",C()?s.style.zoom="".concat(1/i.devicePixelRatio):R()&&(s.style.zoom="reset");var c=o.createElement("div");return c.textContent=(0,r.fX)([],Array(t/20|0),!0).map(function(){return"word"}).join(" "),s.appendChild(c),e(o,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}(function(e,t){for(var n={},r={},i=0,o=Object.keys(ce);i<o.length;i++){var s=o[i],a=ce[s],c=a[0],l=void 0===c?{}:c,u=a[1],d=void 0===u?"mmMwWLliI0fiflO&1":u,h=e.createElement("span");h.textContent=d,h.style.whiteSpace="nowrap";for(var f=0,p=Object.keys(l);f<p.length;f++){var y=p[f],g=l[y];void 0!==g&&(h.style[y]=g)}n[s]=h,t.append(e.createElement("br"),h)}for(var m=0,_=Object.keys(ce);m<_.length;m++){r[s=_[m]]=n[s].getBoundingClientRect().width}return r})},audio:function(){return R()&&U()&&F()||C()&&(e=navigator,t=window,n=Audio.prototype,r=t.visualViewport,f(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3)&&function(){var e=window,t=e.URLPattern;return f(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}()?-4:function(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(R()&&!P()&&!function(){var e=window;return f(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var n=4500,r=new t(1,5e3,44100),i=r.createOscillator();i.type="triangle",i.frequency.value=1e4;var o=r.createDynamicsCompressor();o.threshold.value=-50,o.knee.value=40,o.ratio.value=12,o.attack.value=0,o.release.value=.25,i.connect(o),o.connect(r.destination),i.start(0);var a=function(e){var t=3,n=500,r=500,i=5e3,o=function(){},a=new Promise(function(a,c){var u=!1,d=0,h=0;e.oncomplete=function(e){return a(e.renderedBuffer)};var f=function(){setTimeout(function(){return c(N("timeout"))},Math.min(r,h+i-Date.now()))},p=function(){try{var r=e.startRendering();switch(s(r)&&l(r),e.state){case"running":h=Date.now(),u&&f();break;case"suspended":document.hidden||d++,u&&d>=t?c(N("suspended")):setTimeout(p,n)}}catch(e){c(e)}};p(),o=function(){u||(u=!0,h>0&&f())}});return[a,o]}(r),c=a[0],u=a[1],d=l(c.then(function(e){return function(e){for(var t=0,n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}(e.getChannelData(0).subarray(n))},function(e){if("timeout"===e.name||"suspended"===e.name)return-3;throw e}));return function(){return u(),d}}();var e,t,n,r},screenFrame:function(){var e=this;if(R()&&U()&&F())return function(){return Promise.resolve(void 0)};var t=K();return function(){return(0,r.sH)(e,void 0,void 0,function(){var e,n;return(0,r.YH)(this,function(r){switch(r.label){case 0:return[4,t()];case 1:return e=r.sent(),[2,[(n=function(e){return null===e?null:p(e,10)})(e[0]),n(e[1]),n(e[2]),n(e[3])]]}})})}},canvas:function(){return function(e){var t,n,r,i=!1,o=function(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}(),s=o[0],a=o[1];!function(e,t){return!(!t||!e.toDataURL)}(s,a)?n=r="unsupported":(i=function(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}(a),e?n=r="skipped":(t=function(e,t){!function(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var n="Cwm fjordbank gly ".concat(String.fromCharCode(55357,56835));t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}(e,t);var n=W(e),r=W(e);if(n!==r)return["unstable","unstable"];!function(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var i=r[n],o=i[0],s=i[1],a=i[2];t.fillStyle=o,t.beginPath(),t.arc(s,a,40,0,2*Math.PI,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,2*Math.PI,!0),t.arc(60,60,20,0,2*Math.PI,!0),t.fill("evenodd")}(e,t);var i=W(e);return[i,n]}(s,a),n=t[0],r=t[1]));return{winding:i,geometry:n,text:r}}(R()&&U()&&F())},osCpu:function(){return navigator.oscpu},languages:function(){var e,t=navigator,n=[],r=t.language||t.userLanguage||t.browserLanguage||t.systemLanguage;if(void 0!==r&&n.push([r]),Array.isArray(t.languages))C()&&f([!("MediaSettingsRange"in(e=window)),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3||n.push(t.languages);else if("string"==typeof t.languages){var i=t.languages;i&&n.push(i.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return h(d(navigator.deviceMemory),void 0)},screenResolution:function(){var e,t,n;if(!(R()&&U()&&F()))return e=screen,(n=[(t=function(e){return h(u(e),null)})(e.width),t(e.height)]).sort().reverse(),n},hardwareConcurrency:function(){return h(u(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var n=(new t).resolvedOptions().timeZone;if(n)return n}var r,i=(r=(new Date).getFullYear(),-Math.max(d(new Date(r,0,1).getTimezoneOffset()),d(new Date(r,6,1).getTimezoneOffset())));return"UTC".concat(i>=0?"+":"").concat(i)},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(T()||(e=window,t=navigator,f(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!T())))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&R()&&!P()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return f(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];if(r){for(var i=[],o=0;o<r.length;++o){var s=r[o];i.push({type:s.type,suffixes:s.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:i})}}return t}},touchSupport:function(){var e,t=navigator,n=0;void 0!==t.maxTouchPoints?n=u(t.maxTouchPoints):void 0!==t.msMaxTouchPoints&&(n=t.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:n,touchEvent:e,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<n.length;t++){var r=n[t],i=window[r];i&&"object"==typeof i&&e.push(r)}return e.sort()},cookiesEnabled:function(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=-1!==e.cookie.indexOf("cookietest=");return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch(e){return!1}},colorGamut:function(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var n=t[e];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}},invertedColors:function(){return!!ee("inverted")||!ee("none")&&void 0},forcedColors:function(){return!!te("active")||!te("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=100;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}},contrast:function(){return ne("no-preference")?0:ne("high")||ne("more")?1:ne("low")||ne("less")?-1:ne("forced")?10:void 0},reducedMotion:function(){return!!re("reduce")||!re("no-preference")&&void 0},reducedTransparency:function(){return!!ie("reduce")||!ie("no-preference")&&void 0},hdr:function(){return!!oe("high")||!oe("standard")&&void 0},math:function(){var e,t=se.acos||ae,n=se.acosh||ae,r=se.asin||ae,i=se.asinh||ae,o=se.atanh||ae,s=se.atan||ae,a=se.sin||ae,c=se.sinh||ae,l=se.cos||ae,u=se.cosh||ae,d=se.tan||ae,h=se.tanh||ae,f=se.exp||ae,p=se.expm1||ae,y=se.log1p||ae;return{acos:t(.12312423423423424),acosh:n(1e308),acoshPf:(e=1e154,se.log(e+se.sqrt(e*e-1))),asin:r(.12312423423423424),asinh:i(1),asinhPf:function(e){return se.log(e+se.sqrt(e*e+1))}(1),atanh:o(.5),atanhPf:function(e){return se.log((1+e)/(1-e))/2}(.5),atan:s(.5),sin:a(-1e300),sinh:c(1),sinhPf:function(e){return se.exp(e)-1/se.exp(e)/2}(1),cos:l(10.000000000123),cosh:u(1),coshPf:function(e){return(se.exp(e)+1/se.exp(e))/2}(1),tan:d(-1e300),tanh:h(1),tanhPf:function(e){return(se.exp(2*e)-1)/(se.exp(2*e)+1)}(1),exp:f(1),expm1:p(1),expm1Pf:function(e){return se.exp(e)-1}(1),log1p:y(10),log1pPf:function(e){return se.log(1+e)}(10),powPI:function(e){return se.pow(se.PI,e)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]},applePay:function(){var e=window.ApplePaySession;if("function"!=typeof(null==e?void 0:e.canMakePayments))return-1;if(le())return-3;try{return e.canMakePayments()?1:0}catch(e){return function(e){if(e instanceof Error&&"InvalidAccessError"===e.name&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}(e)}},privateClickMeasurement:function(){var e,t=document.createElement("a"),n=null!==(e=t.attributionSourceId)&&void 0!==e?e:t.attributionsourceid;return void 0===n?void 0:String(n)},audioBaseLatency:function(){if(!(j()||R()))return-2;if(!window.AudioContext)return-1;var e=(new AudioContext).baseLatency;return null==e?-1:isFinite(e)?e:-3},dateTimeLocale:function(){if(!window.Intl)return-1;var e=window.Intl.DateTimeFormat;if(!e)return-2;var t=e().resolvedOptions().locale;return t||""===t?t:-3},webGlBasics:function(e){var t,n,r,i,o,s,a=ye(e.cache);if(!a)return-1;if(!we(a))return-2;var c=be()?null:a.getExtension(pe);return{version:(null===(t=a.getParameter(a.VERSION))||void 0===t?void 0:t.toString())||"",vendor:(null===(n=a.getParameter(a.VENDOR))||void 0===n?void 0:n.toString())||"",vendorUnmasked:c?null===(r=a.getParameter(c.UNMASKED_VENDOR_WEBGL))||void 0===r?void 0:r.toString():"",renderer:(null===(i=a.getParameter(a.RENDERER))||void 0===i?void 0:i.toString())||"",rendererUnmasked:c?null===(o=a.getParameter(c.UNMASKED_RENDERER_WEBGL))||void 0===o?void 0:o.toString():"",shadingLanguageVersion:(null===(s=a.getParameter(a.SHADING_LANGUAGE_VERSION))||void 0===s?void 0:s.toString())||""}},webGlExtensions:function(e){var t=ye(e.cache);if(!t)return-1;if(!we(t))return-2;var n=t.getSupportedExtensions(),r=t.getContextAttributes(),i=[],o=[],s=[],a=[],c=[];if(r)for(var l=0,u=Object.keys(r);l<u.length;l++){var d=u[l];o.push("".concat(d,"=").concat(r[d]))}for(var h=0,f=me(t);h<f.length;h++){var p=t[w=f[h]];s.push("".concat(w,"=").concat(p).concat(ue.has(p)?"=".concat(t.getParameter(p)):""))}if(n)for(var y=0,g=n;y<g.length;y++){var m=g[y];if(!(m===pe&&be()||"WEBGL_polygon_mode"===m&&ve())){var _=t.getExtension(m);if(_)for(var b=0,v=me(_);b<v.length;b++){var w;p=_[w=v[b]];a.push("".concat(w,"=").concat(p).concat(de.has(p)?"=".concat(t.getParameter(p)):""))}else i.push(m)}}for(var A=0,E=he;A<E.length;A++)for(var S=E[A],B=0,x=fe;B<x.length;B++){var I=x[B],L=ge(t,S,I);c.push("".concat(S,".").concat(I,"=").concat(L.join(",")))}return a.sort(),s.sort(),{contextAttributes:o,parameters:s,shaderPrecisions:c,extensions:n,extensionParameters:a,unsupportedExtensions:i}}};function Ee(e){var t=function(e){if(j())return.4;if(R())return!P()||U()&&F()?.3:.5;var t="value"in e.platform?e.platform.value:"";if(/^Win/.test(t))return.6;if(/^Mac/.test(t))return.5;return.7}(e),n=function(e){return p(.99+.01*e,1e-4)}(t);return{score:t,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(n))}}function Se(e){return JSON.stringify(e,function(e,t){return t instanceof Error?(n=t,(0,r.Cl)({name:n.name,message:n.message,stack:null===(i=n.stack)||void 0===i?void 0:i.split("\n")},n)):t;var n,i},2)}function Be(e){return L(function(e){for(var t="",n=0,r=Object.keys(e).sort();n<r.length;n++){var i=r[n],o=e[i],s="error"in o?"error":JSON.stringify(o.value);t+="".concat(t?"|":"").concat(i.replace(/([:|\\])/g,"\\$1"),":").concat(s)}return t}(e))}function xe(e){return void 0===e&&(e=50),function(e,t){void 0===t&&(t=1/0);var n=window.requestIdleCallback;return n?new Promise(function(e){return n.call(window,function(){return e()},{timeout:t})}):o(Math.min(e,t))}(e,2*e)}function Ie(e,t){var n=Date.now();return{get:function(o){return(0,r.sH)(this,void 0,void 0,function(){var s,a,c;return(0,r.YH)(this,function(r){switch(r.label){case 0:return s=Date.now(),[4,e()];case 1:return a=r.sent(),c=function(e){var t,n=Ee(e);return{get visitorId(){return void 0===t&&(t=Be(this.components)),t},set visitorId(e){t=e},confidence:n,components:e,version:i}}(a),(t||(null==o?void 0:o.debug))&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(c.version,"\nuserAgent: ").concat(navigator.userAgent,"\ntimeBetweenLoadAndGet: ").concat(s-n,"\nvisitorId: ").concat(c.visitorId,"\ncomponents: ").concat(Se(a),"\n```")),[2,c]}})})}}}var Le={load:function(e){var t;return void 0===e&&(e={}),(0,r.sH)(this,void 0,void 0,function(){var n,o,s;return(0,r.YH)(this,function(r){switch(r.label){case 0:return(null===(t=e.monitoring)||void 0===t||t)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(i,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),n=e.delayFallback,o=e.debug,[4,xe(n)];case 1:return r.sent(),s=function(e){return k(Ae,e,[])}({cache:{},debug:o}),[2,Ie(s,o)]}})})},hashComponents:Be,componentsToDebugString:Se}},6586:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(2049),i=n(1882),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;const a=function(e,t){if((0,r.A)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!(0,i.A)(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}},6612:(e,t,n)=>{var r;n.d(t,{y:()=>r}),function(e){e.ENGLISH="en",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_TRADITIONAL="zh-Hant",e.CHINESE_TRADITIONAL_TW="zh-Hant-TW",e.JAPANESE="ja",e.KOREAN="ko",e.FILIPINO="fil",e.INDONESIAN="id",e.PORTUGUESE="pt",e.THAI="th",e.VIETNAMESE="vi",e.ARABIC="ar"}(r||(r={}))},6632:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(5917);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r.A),n}i.Cache=r.A;const o=i},6666:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},6733:(e,t,n)=>{n.d(t,{B:()=>b});var r=n(8291),i=n(853),o=n(1472),s=n(6666);const a={indoorLineColor:"#45b1cc",outdoorLineColor:"#8183ba",dashedLineColor:"#969696",shuttleBusLineColor:"#fb923c",lineWidth:4,dashedLineWidth:4,disableDashedLine:!1,inactiveRouteOpacity:.5,outdoorLineOpacity:1,markerIconSize:.75,markers:{from:"poi-02",to:"poi-01",stops:["waypoint-01"]},lineSymbol:{image:"east-blue-arrow-01",size:.25,spacing:1}},c="mmws-source-line-solid",l="mmws-layer-line-solid",u="mmws-layer-icon-line-symbol",d="mmws-source-line-dashed",h="mmws-layer-line-dashed",f="mmws-source-icon-connector",p="mmws-layer-icon-connector",y="mmws-source-icon-marker",g="mmws-layer-icon-marker",m=[l,u,h,p,g],_=[c,d,f,y];class b{_maplibreMap;_routeStyle=a;_styleDiffs={};_filterBy="venue";_curVenue=null;_curBuilding=null;_curOrdinal=null;_renderBoundaryLayer;constructor(e,t){this._maplibreMap=e,t&&(this._updateStyleProperties(t),e.on("load",()=>this._loadMarkerIcons()))}async setStyle(e){this._updateStyleProperties(e),await this._loadMarkerIcons(),await this._updateLayers()}async setMarkerIcons(e){if(Array.isArray(e)&&e.length){const t=e.slice(1,e.length-1);this._routeStyle.markers={from:e[0],to:(0,s.A)(e),stops:t.length?t:[e[0]]},this._styleDiffs={markers:this._routeStyle.markers}}else"from"in e&&(this._routeStyle.markers.from=e.from,this._styleDiffs.markers.from=e.from),"to"in e&&(this._routeStyle.markers.to=e.to,this._styleDiffs.markers.to=e.to),"stops"in e&&(this._routeStyle.markers.stops=e.stops??[null],this._styleDiffs.markers.stops=e.stops??[null]);await this._loadMarkerIcons()}setMarkerIconSize(e){return this._routeStyle.markerIconSize=e,this}setIndoorLineColor(e){return this._routeStyle.indoorLineColor=e,this}setOutdoorLineColor(e){return this._routeStyle.outdoorLineColor=e,this}setDashedLineColor(e){return this._routeStyle.dashedLineColor=e,this}setBusLineColor(e){return this._routeStyle.shuttleBusLineColor=e,this}render(e,t){if(!this._renderBoundaryLayer){const e=this._maplibreMap.getStyle(),t=(0,r.cq)(e);let n=t.find(({type:e,id:t})=>!t.includes("-overlap-copy")&&"fill-extrusion"===e);n||(n=t.find(e=>"symbol"===e.type&&"mapxus_place"===e?.["source-layer"])),this._renderBoundaryLayer=n?.id}const{instructions:n,points:{coordinates:i}}=e,{lineFeatures:o,connectorFeatures:s,dashedLineFeatures:a,markerFeatures:l}=this._classifyFeatures(n,i,t);this._renderSolidLines(o),this._renderLineSymbols(c,u),!0!==this._routeStyle.disableDashedLine&&this._renderDashedLines(a),this._renderConnectors(s),this._renderMarkers(l)}remove(){m.forEach(e=>{this._maplibreMap.getLayer(e)&&this._maplibreMap.removeLayer(e)}),_.forEach(e=>{this._maplibreMap.getSource(e)&&this._maplibreMap.removeSource(e)})}setFilterByVenue(e,t){this._filterBy="venue",this._curVenue=e??null,this._curOrdinal=t??null,this._filterRouteOpacity()}setFilterByBuilding(e,t){this._filterBy="building",this._curBuilding=e??null,this._curOrdinal=t??null,this._filterRouteOpacity()}_classifyFeatures(e,t,n){const r=[],i=[],o=[],a=[],c=[];e.forEach((n,o)=>{const{venue_id:s,building_id:a,floor_id:l,ordinal:u,sign:d,type:h,interval:[f,p]}=n;if(function(e){return 5===e}(d))c.push(n);else if(function(e){return 100===e||-100===e}(d)){0!==o&&o!==e.length-1&&i.push(this._createIconFeature(`connector-${i.length}`,t[f],{...v({venue_id:s,building_id:a,floor_id:l,ordinal:u}),icon:h}));const n=e[o+1];if(n){const{venue_id:e,building_id:r,floor_id:o,ordinal:s}=n;i.push(this._createIconFeature(`connector-${i.length}`,t[p],{...v({venue_id:e,building_id:r,floor_id:o,ordinal:s}),icon:h}))}}else r.push(this._createLineFeature(`solid-line-${r.length}`,t.slice(f,p+1),v({venue_id:s,building_id:a,floor_id:l,ordinal:u,isShuttleBus:w(d)?1:0})))});const l=e[0],{venue_id:u,building_id:d,floor_id:h,ordinal:f}=l,p=e[e.length-1],{venue_id:y,building_id:g,floor_id:m,ordinal:_}=p,b=t[0],A=t[t.length-1],E=n[0],S=n[n.length-1],B=n.slice(1,n.length-1);return E&&o.push(this._createLineFeature(`dashed-line-${o.length}`,[E,b],v({venue_id:u,building_id:d,floor_id:h,ordinal:f}))),S&&o.push(this._createLineFeature(`dashed-line-${o.length}`,[A,S],v({venue_id:y,building_id:g,floor_id:m,ordinal:_}))),c.length&&B.length&&c.forEach(({venue_id:e,building_id:n,floor_id:r,ordinal:i,interval:[c]},l)=>{o.push(this._createLineFeature(`dashed-line-${o.length}`,[t[c],B[l]],v({venue_id:e,building_id:n,floor_id:r,ordinal:i}))),a.push(this._createIconFeature(`marker-${a.length}`,B[l],{...v({venue_id:e,building_id:n,floor_id:r,ordinal:i,markerType:`stops_${l}`}),icon:this._routeStyle.markers.stops[l]??(0,s.A)(this._routeStyle.markers.stops),iconSize:this._routeStyle.markerIconSize}))}),a.push(this._createIconFeature(`marker-${a.length}`,E??b,{...v({venue_id:u,building_id:d,floor_id:h,ordinal:f,markerType:"from"}),icon:this._routeStyle.markers.from,iconSize:this._routeStyle.markerIconSize})),a.push(this._createIconFeature(`marker-${a.length}`,S??A,{...v({venue_id:y,building_id:g,floor_id:m,ordinal:_,markerType:"to"}),icon:this._routeStyle.markers.to,iconSize:this._routeStyle.markerIconSize})),{lineFeatures:r,connectorFeatures:i,dashedLineFeatures:o,markerFeatures:a}}_createLineFeature(e,t,n){return{id:e,type:"Feature",geometry:{type:"LineString",coordinates:t},properties:n}}_createIconFeature(e,t,n){return{id:e,type:"Feature",geometry:{type:"Point",coordinates:t},properties:n}}_renderSolidLines(e){this._addCollectionSource(c,e),this._addLineLayer(c,l,{"line-color":["case",["==",["get","isShuttleBus"],"1"],this._routeStyle.shuttleBusLineColor,["==",["get","floor_id"],null],this._routeStyle.outdoorLineColor,this._routeStyle.indoorLineColor],"line-opacity":["case",["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,1],"line-width":this._routeStyle.lineWidth})}_renderDashedLines(e){this._addCollectionSource(d,e),this._addLineLayer(d,h,{"line-color":this._routeStyle.dashedLineColor,"line-width":this._routeStyle.dashedLineWidth,"line-dasharray":[.1,1.8]})}_renderConnectors(e){this._addCollectionSource(f,e),this._addIconLayer(f,p)}_renderMarkers(e){this._addCollectionSource(y,e),this._addIconLayer(y,g,{"icon-anchor":"bottom","icon-allow-overlap":!0,"icon-ignore-placement":!0})}_addCollectionSource(e,t){this._maplibreMap.addSource(e,{type:"geojson",data:{type:"FeatureCollection",features:t}})}_addLineLayer(e,t,n){this._maplibreMap.addLayer({id:t,type:"line",source:e,layout:{"line-join":"round","line-cap":"round"},paint:{"line-width":4,...n||{}}},this._renderBoundaryLayer)}_renderLineSymbols(e,t){this._maplibreMap.addLayer({id:t,type:"symbol",source:e,layout:{"symbol-placement":"line","symbol-spacing":this._routeStyle.lineSymbol.spacing,"icon-size":this._routeStyle.lineSymbol.size,"icon-image":this._routeStyle.lineSymbol.image},paint:{"icon-opacity":["case",["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,1]}},this._renderBoundaryLayer)}_addIconLayer(e,t,n){this._maplibreMap.addLayer({id:t,type:"symbol",source:e,layout:{"icon-image":["get","icon"],"icon-size":["case",["has","iconSize"],["get","iconSize"],1],...n||{}}})}_updateStyleProperties(e){if(this._styleDiffs=A(this._routeStyle,e??a),e){if(Object.keys(this._styleDiffs).length){const e={...this._routeStyle.lineSymbol,...this._styleDiffs.lineSymbol??{}},t=this._styleDiffs.markers;let n=this._routeStyle.markers;const r={outdoorLineOpacity:(this._styleDiffs.outdoorLineOpacity>1?1:this._styleDiffs.outdoorLineOpacity<0?0:this._styleDiffs.outdoorLineOpacity)??this._routeStyle.outdoorLineOpacity},i={inactiveRouteOpacity:(this._styleDiffs.inactiveRouteOpacity>1?1:this._styleDiffs.inactiveRouteOpacity<0?0:this._styleDiffs.inactiveRouteOpacity)??this._routeStyle.inactiveRouteOpacity};t&&Object.keys(t).length&&(n={...n,...t}),this._routeStyle={...this._routeStyle,...this._styleDiffs,...r,...i,markers:n,lineSymbol:e}}}else this._routeStyle=a}async _loadMarkerIcons(){const{markers:e,lineSymbol:t}=this._styleDiffs;if(t?.image&&await(0,i.K)(this._maplibreMap,t.image),e&&Object.keys(e).length){const{from:t,to:n,stops:r}=e;if(t&&await(0,i.K)(this._maplibreMap,t),n&&await(0,i.K)(this._maplibreMap,n),r&&r.length){const e=r.filter(e=>!!e);e.length&&await Promise.all(e.map(e=>(0,i.K)(this._maplibreMap,e)))}}}async _updateLayers(){if(!this._maplibreMap.getLayer(l))return;const{indoorLineColor:e,outdoorLineColor:t,dashedLineColor:n,shuttleBusLineColor:r,lineWidth:i,dashedLineWidth:o,disableDashedLine:a,inactiveRouteOpacity:c,outdoorLineOpacity:d,markerIconSize:f,markers:p,lineSymbol:m}=this._styleDiffs;if((e||t||r)&&this._maplibreMap.setPaintProperty(l,"line-color",["case",["==",["get","isShuttleBus"],"1"],this._routeStyle.shuttleBusLineColor,["==",["get","floor_id"],null],this._routeStyle.outdoorLineColor,this._routeStyle.indoorLineColor]),void 0!==i&&i+""&&this._maplibreMap.setPaintProperty(l,"line-width",i),"boolean"==typeof a?a?this._maplibreMap.setPaintProperty(h,"line-color","transparent"):(this._maplibreMap.setPaintProperty(h,"line-color",this._routeStyle.dashedLineColor),this._maplibreMap.setPaintProperty(h,"line-width",this._routeStyle.dashedLineWidth)):!0!==this._routeStyle.disableDashedLine&&(n&&this._maplibreMap.setPaintProperty(h,"line-color",n),void 0!==o&&o+""&&this._maplibreMap.setPaintProperty(h,"line-width",o)),void 0!==c&&c+""&&this._filterRouteOpacity(),void 0!==f&&f+""&&this._maplibreMap.setLayoutProperty(g,"icon-size",f),p&&Object.keys(p).length){const{from:e,to:t,stops:n}=p,r=this._maplibreMap.getSource(y),i=await r.getData();i.features=i.features.map(r=>{const{markerType:i}=r.properties;if(void 0!==e&&"from"===i&&(r.properties.icon=e),void 0!==t&&"to"===i&&(r.properties.icon=t),n&&i.includes("stops")){const e=parseInt(i.split("_")[1]);r.properties.icon=n[e]??(0,s.A)(n)}return r}),r.setData(i)}if(m){const{image:e,size:t,spacing:n}=m;void 0!==e&&this._maplibreMap.setLayoutProperty(u,"icon-image",e),void 0!==t&&t+""&&this._maplibreMap.setLayoutProperty(u,"icon-size",t),void 0!==n&&n+""&&this._maplibreMap.setLayoutProperty(u,"symbol-spacing",n)}void 0!==d&&d+""&&(this._maplibreMap.setPaintProperty(l,"line-opacity",["case",["==",["get","floor_id"],null],d,1]),this._maplibreMap.setPaintProperty(u,"icon-opacity",["case",["==",["get","floor_id"],null],d,1]),this._filterRouteOpacity())}_filterRouteOpacity(){let e;switch(this._filterBy){case"venue":e=["case",["all",["==",["get","ordinal"],this._curOrdinal??""],["==",["get","venue_id"],this._curVenue??""]],1,["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,this._routeStyle.inactiveRouteOpacity];break;case"building":e=["case",["all",["==",["get","ordinal"],this._curOrdinal??""],["==",["get","building_id"],this._curBuilding??""]],1,["==",["get","floor_id"],null],this._routeStyle.outdoorLineOpacity,this._routeStyle.inactiveRouteOpacity]}m.forEach(t=>{this._maplibreMap.getLayer(t)&&this._maplibreMap.setPaintProperty(t,t.includes("layer-line")?"line-opacity":"icon-opacity",e)})}}function v(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Number.isFinite(t)?t+"":t]))}function w(e){return(0,o.A)(e,104,108)}function A(e,t){const n={};for(const r in t){const i=e[r],o=t[r];if("markers"===r||"lineSymbol"===r)if(Array.isArray(o)){const e=o.slice(1,o.length-1);n[r]={from:o[0],to:(0,s.A)(o),stops:e.length?e:[o[0]]}}else{const e=A(i,o);Object.keys(e).length&&(n[r]=e)}else o+""!=i+""&&(n[r]="stops"===r?o??[null]:o)}return n}},6748:(e,t,n)=>{t.VV=void 0,t.w=function(e,t){return Buffer.from(function(e,t){var n=(0,i.ellipticCurve)(),a=new o.PrivateKey(void 0,n),c=e instanceof Uint8Array?new o.PublicKey(e,n):o.PublicKey.fromHex(e,n),l=a.encapsulate(c,(0,i.isHkdfKeyCompressed)()),u=a.publicKey.toBytes((0,i.isEphemeralKeyCompressed)()),d=(0,s.symEncrypt)(l,t);return(0,r.concatBytes)(u,d)}(e,t))};var r=n(6527),i=n(4928),o=n(9065),s=n(2158);var a=n(4928);Object.defineProperty(t,"VV",{enumerable:!0,get:function(){return a.ECIES_CONFIG}});var c=n(9065);s.aesEncrypt,s.aesDecrypt,s.symEncrypt,s.symDecrypt,s.decodeHex,s.getValidSecret,s.remove0x},6787:(e,t,n)=>{function r(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}n.d(t,{A:()=>r})},6838:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(){this.__data__=[],this.size=0}},6847:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(139),i=n(8556),o=n(6501);const s={isBrowser:!0,classes:{URLSearchParams:r.A,FormData:i.A,Blob:o.A},protocols:["http","https","file","blob","url","data"]}},6912:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},6983:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){return e!=e}},6984:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){return e===t||e!=e&&t!=t}},7007:e=>{var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}y(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&y(e,"error",t,n)}(e,i,{once:!0})})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,o,s,l;if(a(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"==typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):p(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var l=c.length,u=p(c,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,s;if(a(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},7013:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(7275),i=n(3853),o=n(807),s=n(4062),a=n(8458),c=n(5579),l=n(3820),u=n(7110),d=n(7837),h=n(8382);const f="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const f=(0,h.A)(e);let p=f.data;const y=u.A.from(f.headers).normalize();let g,m,_,b,v,{responseType:w,onUploadProgress:A,onDownloadProgress:E}=f;function S(){b&&b(),v&&v(),f.cancelToken&&f.cancelToken.unsubscribe(g),f.signal&&f.signal.removeEventListener("abort",g)}let B=new XMLHttpRequest;function x(){if(!B)return;const r=u.A.from("getAllResponseHeaders"in B&&B.getAllResponseHeaders()),o={data:w&&"text"!==w&&"json"!==w?B.response:B.responseText,status:B.status,statusText:B.statusText,headers:r,config:e,request:B};(0,i.A)(function(e){t(e),S()},function(e){n(e),S()},o),B=null}B.open(f.method.toUpperCase(),f.url,!0),B.timeout=f.timeout,"onloadend"in B?B.onloadend=x:B.onreadystatechange=function(){B&&4===B.readyState&&(0!==B.status||B.responseURL&&0===B.responseURL.indexOf("file:"))&&setTimeout(x)},B.onabort=function(){B&&(n(new s.A("Request aborted",s.A.ECONNABORTED,e,B)),B=null)},B.onerror=function(){n(new s.A("Network Error",s.A.ERR_NETWORK,e,B)),B=null},B.ontimeout=function(){let t=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const r=f.transitional||o.A;f.timeoutErrorMessage&&(t=f.timeoutErrorMessage),n(new s.A(t,r.clarifyTimeoutError?s.A.ETIMEDOUT:s.A.ECONNABORTED,e,B)),B=null},void 0===p&&y.setContentType(null),"setRequestHeader"in B&&r.A.forEach(y.toJSON(),function(e,t){B.setRequestHeader(t,e)}),r.A.isUndefined(f.withCredentials)||(B.withCredentials=!!f.withCredentials),w&&"json"!==w&&(B.responseType=f.responseType),E&&([_,v]=(0,d.C1)(E,!0),B.addEventListener("progress",_)),A&&B.upload&&([m,b]=(0,d.C1)(A),B.upload.addEventListener("progress",m),B.upload.addEventListener("loadend",b)),(f.cancelToken||f.signal)&&(g=t=>{B&&(n(!t||t.type?new a.A(null,e,B):t),B.abort(),B=null)},f.cancelToken&&f.cancelToken.subscribe(g),f.signal&&(f.signal.aborted?g():f.signal.addEventListener("abort",g)));const I=(0,c.A)(f.url);I&&-1===l.A.protocols.indexOf(I)?n(new s.A("Unsupported protocol "+I+":",s.A.ERR_BAD_REQUEST,e)):B.send(p||null)})}},7064:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7271),i=n(3938),o=Object.prototype.hasOwnProperty;const s=function(e){if(!(0,r.A)(e))return(0,i.A)(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},7076:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sha512_224=t.sha512_256=t.sha384=t.sha512=t.sha224=t.sha256=t.SHA512_256=t.SHA512_224=t.SHA384=t.SHA512=t.SHA224=t.SHA256=void 0;const r=n(7202),i=n(2318),o=n(9175),s=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=new Uint32Array(64);class c extends r.HashMD{constructor(e=32){super(64,e,8,!1),this.A=0|r.SHA256_IV[0],this.B=0|r.SHA256_IV[1],this.C=0|r.SHA256_IV[2],this.D=0|r.SHA256_IV[3],this.E=0|r.SHA256_IV[4],this.F=0|r.SHA256_IV[5],this.G=0|r.SHA256_IV[6],this.H=0|r.SHA256_IV[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:o,G:s,H:a}=this;return[e,t,n,r,i,o,s,a]}set(e,t,n,r,i,o,s,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let n=0;n<16;n++,t+=4)a[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=a[e-15],n=a[e-2],r=(0,o.rotr)(t,7)^(0,o.rotr)(t,18)^t>>>3,i=(0,o.rotr)(n,17)^(0,o.rotr)(n,19)^n>>>10;a[e]=i+a[e-7]+r+a[e-16]|0}let{A:n,B:i,C:c,D:l,E:u,F:d,G:h,H:f}=this;for(let e=0;e<64;e++){const t=f+((0,o.rotr)(u,6)^(0,o.rotr)(u,11)^(0,o.rotr)(u,25))+(0,r.Chi)(u,d,h)+s[e]+a[e]|0,p=((0,o.rotr)(n,2)^(0,o.rotr)(n,13)^(0,o.rotr)(n,22))+(0,r.Maj)(n,i,c)|0;f=h,h=d,d=u,u=l+t|0,l=c,c=i,i=n,n=t+p|0}n=n+this.A|0,i=i+this.B|0,c=c+this.C|0,l=l+this.D|0,u=u+this.E|0,d=d+this.F|0,h=h+this.G|0,f=f+this.H|0,this.set(n,i,c,l,u,d,h,f)}roundClean(){(0,o.clean)(a)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,o.clean)(this.buffer)}}t.SHA256=c;class l extends c{constructor(){super(28),this.A=0|r.SHA224_IV[0],this.B=0|r.SHA224_IV[1],this.C=0|r.SHA224_IV[2],this.D=0|r.SHA224_IV[3],this.E=0|r.SHA224_IV[4],this.F=0|r.SHA224_IV[5],this.G=0|r.SHA224_IV[6],this.H=0|r.SHA224_IV[7]}}t.SHA224=l;const u=(()=>i.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),d=(()=>u[0])(),h=(()=>u[1])(),f=new Uint32Array(80),p=new Uint32Array(80);class y extends r.HashMD{constructor(e=64){super(128,e,16,!1),this.Ah=0|r.SHA512_IV[0],this.Al=0|r.SHA512_IV[1],this.Bh=0|r.SHA512_IV[2],this.Bl=0|r.SHA512_IV[3],this.Ch=0|r.SHA512_IV[4],this.Cl=0|r.SHA512_IV[5],this.Dh=0|r.SHA512_IV[6],this.Dl=0|r.SHA512_IV[7],this.Eh=0|r.SHA512_IV[8],this.El=0|r.SHA512_IV[9],this.Fh=0|r.SHA512_IV[10],this.Fl=0|r.SHA512_IV[11],this.Gh=0|r.SHA512_IV[12],this.Gl=0|r.SHA512_IV[13],this.Hh=0|r.SHA512_IV[14],this.Hl=0|r.SHA512_IV[15]}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:o,Dh:s,Dl:a,Eh:c,El:l,Fh:u,Fl:d,Gh:h,Gl:f,Hh:p,Hl:y}=this;return[e,t,n,r,i,o,s,a,c,l,u,d,h,f,p,y]}set(e,t,n,r,i,o,s,a,c,l,u,d,h,f,p,y){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|l,this.Fh=0|u,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|y}process(e,t){for(let n=0;n<16;n++,t+=4)f[n]=e.getUint32(t),p[n]=e.getUint32(t+=4);for(let e=16;e<80;e++){const t=0|f[e-15],n=0|p[e-15],r=i.rotrSH(t,n,1)^i.rotrSH(t,n,8)^i.shrSH(t,n,7),o=i.rotrSL(t,n,1)^i.rotrSL(t,n,8)^i.shrSL(t,n,7),s=0|f[e-2],a=0|p[e-2],c=i.rotrSH(s,a,19)^i.rotrBH(s,a,61)^i.shrSH(s,a,6),l=i.rotrSL(s,a,19)^i.rotrBL(s,a,61)^i.shrSL(s,a,6),u=i.add4L(o,l,p[e-7],p[e-16]),d=i.add4H(u,r,c,f[e-7],f[e-16]);f[e]=0|d,p[e]=0|u}let{Ah:n,Al:r,Bh:o,Bl:s,Ch:a,Cl:c,Dh:l,Dl:u,Eh:y,El:g,Fh:m,Fl:_,Gh:b,Gl:v,Hh:w,Hl:A}=this;for(let e=0;e<80;e++){const t=i.rotrSH(y,g,14)^i.rotrSH(y,g,18)^i.rotrBH(y,g,41),E=i.rotrSL(y,g,14)^i.rotrSL(y,g,18)^i.rotrBL(y,g,41),S=y&m^~y&b,B=g&_^~g&v,x=i.add5L(A,E,B,h[e],p[e]),I=i.add5H(x,w,t,S,d[e],f[e]),L=0|x,O=i.rotrSH(n,r,28)^i.rotrBH(n,r,34)^i.rotrBH(n,r,39),k=i.rotrSL(n,r,28)^i.rotrBL(n,r,34)^i.rotrBL(n,r,39),T=n&o^n&a^o&a,C=r&s^r&c^s&c;w=0|b,A=0|v,b=0|m,v=0|_,m=0|y,_=0|g,({h:y,l:g}=i.add(0|l,0|u,0|I,0|L)),l=0|a,u=0|c,a=0|o,c=0|s,o=0|n,s=0|r;const R=i.add3L(L,k,C);n=i.add3H(R,I,O,T),r=0|R}({h:n,l:r}=i.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:o,l:s}=i.add(0|this.Bh,0|this.Bl,0|o,0|s)),({h:a,l:c}=i.add(0|this.Ch,0|this.Cl,0|a,0|c)),({h:l,l:u}=i.add(0|this.Dh,0|this.Dl,0|l,0|u)),({h:y,l:g}=i.add(0|this.Eh,0|this.El,0|y,0|g)),({h:m,l:_}=i.add(0|this.Fh,0|this.Fl,0|m,0|_)),({h:b,l:v}=i.add(0|this.Gh,0|this.Gl,0|b,0|v)),({h:w,l:A}=i.add(0|this.Hh,0|this.Hl,0|w,0|A)),this.set(n,r,o,s,a,c,l,u,y,g,m,_,b,v,w,A)}roundClean(){(0,o.clean)(f,p)}destroy(){(0,o.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=y;class g extends y{constructor(){super(48),this.Ah=0|r.SHA384_IV[0],this.Al=0|r.SHA384_IV[1],this.Bh=0|r.SHA384_IV[2],this.Bl=0|r.SHA384_IV[3],this.Ch=0|r.SHA384_IV[4],this.Cl=0|r.SHA384_IV[5],this.Dh=0|r.SHA384_IV[6],this.Dl=0|r.SHA384_IV[7],this.Eh=0|r.SHA384_IV[8],this.El=0|r.SHA384_IV[9],this.Fh=0|r.SHA384_IV[10],this.Fl=0|r.SHA384_IV[11],this.Gh=0|r.SHA384_IV[12],this.Gl=0|r.SHA384_IV[13],this.Hh=0|r.SHA384_IV[14],this.Hl=0|r.SHA384_IV[15]}}t.SHA384=g;const m=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),_=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class b extends y{constructor(){super(28),this.Ah=0|m[0],this.Al=0|m[1],this.Bh=0|m[2],this.Bl=0|m[3],this.Ch=0|m[4],this.Cl=0|m[5],this.Dh=0|m[6],this.Dl=0|m[7],this.Eh=0|m[8],this.El=0|m[9],this.Fh=0|m[10],this.Fl=0|m[11],this.Gh=0|m[12],this.Gl=0|m[13],this.Hh=0|m[14],this.Hl=0|m[15]}}t.SHA512_224=b;class v extends y{constructor(){super(32),this.Ah=0|_[0],this.Al=0|_[1],this.Bh=0|_[2],this.Bl=0|_[3],this.Ch=0|_[4],this.Cl=0|_[5],this.Dh=0|_[6],this.Dl=0|_[7],this.Eh=0|_[8],this.El=0|_[9],this.Fh=0|_[10],this.Fl=0|_[11],this.Gh=0|_[12],this.Gl=0|_[13],this.Hh=0|_[14],this.Hl=0|_[15]}}t.SHA512_256=v,t.sha256=(0,o.createHasher)(()=>new c),t.sha224=(0,o.createHasher)(()=>new l),t.sha512=(0,o.createHasher)(()=>new y),t.sha384=(0,o.createHasher)(()=>new g),t.sha512_256=(0,o.createHasher)(()=>new v),t.sha512_224=(0,o.createHasher)(()=>new b)},7110:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(7275),i=n(3325);const o=Symbol("internals");function s(e){return e&&String(e).trim().toLowerCase()}function a(e){return!1===e||null==e?e:r.A.isArray(e)?e.map(a):String(e)}function c(e,t,n,i,o){return r.A.isFunction(i)?i.call(this,t,n):(o&&(t=n),r.A.isString(t)?r.A.isString(i)?-1!==t.indexOf(i):r.A.isRegExp(i)?i.test(t):void 0:void 0)}class l{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function c(e,t,n){const i=s(t);if(!i)throw new Error("header name must be a non-empty string");const c=r.A.findKey(o,i);(!c||void 0===o[c]||!0===n||void 0===n&&!1!==o[c])&&(o[c||t]=a(e))}const l=(e,t)=>r.A.forEach(e,(e,n)=>c(e,n,t));if(r.A.isPlainObject(e)||e instanceof this.constructor)l(e,t);else if(r.A.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))l((0,i.A)(e),t);else if(r.A.isObject(e)&&r.A.isIterable(e)){let n,i,o={};for(const t of e){if(!r.A.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[i=t[0]]=(n=o[i])?r.A.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}l(o,t)}else null!=e&&c(t,e,n);return this}get(e,t){if(e=s(e)){const n=r.A.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(r.A.isFunction(t))return t.call(this,e,n);if(r.A.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=s(e)){const n=r.A.findKey(this,e);return!(!n||void 0===this[n]||t&&!c(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function o(e){if(e=s(e)){const o=r.A.findKey(n,e);!o||t&&!c(0,n[o],o,t)||(delete n[o],i=!0)}}return r.A.isArray(e)?e.forEach(o):o(e),i}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!c(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return r.A.forEach(this,(i,o)=>{const s=r.A.findKey(n,o);if(s)return t[s]=a(i),void delete t[o];const c=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();c!==o&&delete t[o],t[c]=a(i),n[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return r.A.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&r.A.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[o]=this[o]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=s(e);t[i]||(!function(e,t){const n=r.A.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[i]=!0)}return r.A.isArray(e)?e.forEach(i):i(e),this}}l.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),r.A.reduceDescriptors(l.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),r.A.freezeMethods(l);const u=l},7202:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SHA512_IV=t.SHA384_IV=t.SHA224_IV=t.SHA256_IV=t.HashMD=void 0,t.setBigUint64=i,t.Chi=function(e,t,n){return e&t^~e&n},t.Maj=function(e,t,n){return e&t^e&n^t&n};const r=n(9175);function i(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,l=r?0:4;e.setUint32(t+c,s,r),e.setUint32(t+l,a,r)}class o extends r.Hash{constructor(e,t,n,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=(0,r.createView)(this.buffer)}update(e){(0,r.aexists)(this),e=(0,r.toBytes)(e),(0,r.abytes)(e);const{view:t,buffer:n,blockLen:i}=this,o=e.length;for(let s=0;s<o;){const a=Math.min(i-this.pos,o-s);if(a===i){const t=(0,r.createView)(e);for(;i<=o-s;s+=i)this.process(t,s);continue}n.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.aexists)(this),(0,r.aoutput)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:o,isLE:s}=this;let{pos:a}=this;t[a++]=128,(0,r.clean)(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let e=a;e<o;e++)t[e]=0;i(n,o-8,BigInt(8*this.length),s),this.process(n,0);const c=(0,r.createView)(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=l/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)c.setUint32(4*e,d[e],s)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return e.destroyed=o,e.finished=i,e.length=r,e.pos=s,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}t.HashMD=o,t.SHA256_IV=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),t.SHA224_IV=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),t.SHA384_IV=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),t.SHA512_IV=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])},7265:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(9042),i=Object.prototype.hasOwnProperty;const o=function(e,t,n,o,s,a){var c=1&n,l=(0,r.A)(e),u=l.length;if(u!=(0,r.A)(t).length&&!c)return!1;for(var d=u;d--;){var h=l[d];if(!(c?h in t:i.call(t,h)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var y=!0;a.set(e,t),a.set(t,e);for(var g=c;++d<u;){var m=e[h=l[d]],_=t[h];if(o)var b=c?o(_,m,h,t,e,a):o(m,_,h,e,t,a);if(!(void 0===b?m===_||s(m,_,n,o,a):b)){y=!1;break}g||(g="constructor"==h)}if(y&&!g){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(y=!1)}return a.delete(e),a.delete(t),y}},7271:(e,t,n)=>{n.d(t,{A:()=>i});var r=Object.prototype;const i=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},7275:(e,t,n)=>{n.d(t,{A:()=>W});var r=n(2125);const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:s,toStringTag:a}=Symbol,c=(l=Object.create(null),e=>{const t=i.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});var l;const u=e=>(e=e.toLowerCase(),t=>c(t)===e),d=e=>t=>typeof t===e,{isArray:h}=Array,f=d("undefined");const p=u("ArrayBuffer");const y=d("string"),g=d("function"),m=d("number"),_=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==c(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||a in e||s in e)},v=u("Date"),w=u("File"),A=u("Blob"),E=u("FileList"),S=u("URLSearchParams"),[B,x,I,L]=["ReadableStream","Request","Response","Headers"].map(u);function O(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),h(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r++)s=i[r],t.call(null,e[s],s,e)}}function k(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,C=e=>!f(e)&&e!==T;const R=(P="undefined"!=typeof Uint8Array&&o(Uint8Array),e=>P&&e instanceof P);var P;const F=u("HTMLFormElement"),M=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),U=u("RegExp"),H=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};O(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)};const j=u("AsyncFunction"),N=(V="function"==typeof setImmediate,D=g(T.postMessage),V?setImmediate:D?($=`axios@${Math.random()}`,z=[],T.addEventListener("message",({source:e,data:t})=>{e===T&&t===$&&z.length&&z.shift()()},!1),e=>{z.push(e),T.postMessage($,"*")}):e=>setTimeout(e));var V,D,$,z;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||N,W={isArray:h,isArrayBuffer:p,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=c(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:y,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:_,isPlainObject:b,isReadableStream:B,isRequest:x,isResponse:I,isHeaders:L,isUndefined:f,isDate:v,isFile:w,isBlob:A,isRegExp:U,isFunction:g,isStream:e=>_(e)&&g(e.pipe),isURLSearchParams:S,isTypedArray:R,isFileList:E,forEach:O,merge:function e(){const{caseless:t}=C(this)&&this||{},n={},r=(r,i)=>{const o=t&&k(n,i)||i;b(n[o])&&b(r)?n[o]=e(n[o],r):b(r)?n[o]=e({},r):h(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&O(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(O(t,(t,i)=>{n&&g(t)?e[i]=(0,r.A)(t,n):e[i]=t},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,s,a;const c={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&o(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:u,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(h(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[s]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:F,hasOwnProperty:M,hasOwnProp:M,reduceDescriptors:H,freezeMethods:e=>{H(e,(t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];g(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return h(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:k,global:T,isContextDefined:C,isSpecCompliantForm:function(e){return!!(e&&g(e.append)&&"FormData"===e[a]&&e[s])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(_(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=h(e)?[]:{};return O(e,(e,t)=>{const o=n(e,r+1);!f(o)&&(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:j,isThenable:e=>e&&(_(e)||g(e))&&g(e.then)&&g(e.catch),setImmediate:N,asap:G,isIterable:e=>null!=e&&g(e[s])}},7311:(e,t,n)=>{n.d(t,{O:()=>a,o:()=>l});var r=n(6568),i=n(8330),o=n(8693),s=n(1089);const a="tokenUpdated",c={maxRetries:3,initialDelay:500};class l{static instance;_appId="";_secret="";_platform;_accessToken="";_expiredTime=0;_version="";_identifier="";_webIdentifier="";_tokenGetter;_tokenPending=null;_dispatch=(0,s.A)(a);_globalDispatcher;constructor(){}static getInstance(){return l.instance||(l.instance=new l),l.instance}async setAccessByAppKey(e){this._tokenGetter=this._fetchToken.bind(this);const{appId:t,secret:n,platform:r}=e;this._appId=t,this._secret=n,this._platform=r,this._version=r?.sdkVersion||i.rE,this._identifier=r?.identifier||await this.getWebIdentifier()}setTokenGetter(e){this._tokenGetter=e}async setupTokenManager(){if(!this._tokenGetter)throw new Error("getTokenAsync() is not set!");const{maxRetries:e,initialDelay:t}=c;let n=0;for(;n<=e;)try{const e=await this._tokenGetter();if(e)return void this._updateContext(e)}catch(r){if(n++,n>e)throw this._globalDispatcher.call("unauthorized"),r;await this._retryDelay(n,t)}}getSdkVersion(){return this._version||i.rE}async getIdentifier(){return this._identifier||await this.getWebIdentifier()}async getAccessToken(){if(this._accessToken&&!this._isTokenExpired)return this._accessToken;if(this._tokenPending)return this._tokenPending;if(!this._tokenGetter)throw new Error("Token getter not configured. Call setGetTokenAsync() first.");return this._tokenPending=this._tokenGetter().then(e=>(this._updateContext(e),this._dispatch.call(a,null,e.accessToken),e.accessToken)).catch(e=>{throw this._tokenPending=null,e}).finally(()=>{this._tokenPending=null}),this._tokenPending}async getWebIdentifier(){if(!this._webIdentifier){const e=await r.Ay.load(),t=await e.get();this._webIdentifier=t.visitorId}return this._webIdentifier}on(e,t){return this._dispatch.on(e,t),{off:()=>this._dispatch.on(e,null)}}setGlobalDispatcher(e){this._globalDispatcher=e}getGlobalDispatcher(){return this._globalDispatcher}clearState(){this._appId="",this._secret="",this._platform=void 0,this._webIdentifier="",this._tokenPending=null,this._tokenGetter=void 0,this._accessToken="",this._expiredTime=0,this._version="",this._identifier=""}get _isTokenExpired(){return this._expiredTime<=Date.now()}_updateContext(e){const{accessToken:t,expiredTime:n,identifier:r,sdkVersion:i}=e;this._accessToken=t,this._expiredTime=n,void 0!==r&&(this._identifier=r),void 0!==i&&(this._version=i)}_fetchToken(){return(0,o.i)(this._appId,this._secret,this._platform)}async _retryDelay(e,t){const n=t*Math.pow(2,e-1);return console.warn(`Retrying in ${n} ms... (Attempt ${e})`),new Promise(e=>setTimeout(e,n))}}},7346:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(2851),i=n(7465),o=n(5353),s=n(3149),a=n(901);const c=function(e,t,n,c){if(!(0,s.A)(e))return e;for(var l=-1,u=(t=(0,i.A)(t,e)).length,d=u-1,h=e;null!=h&&++l<u;){var f=(0,a.A)(t[l]),p=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(l!=d){var y=h[f];void 0===(p=c?c(y,f,h):void 0)&&(p=(0,s.A)(y)?y:(0,o.A)(t[l+1])?[]:{})}(0,r.A)(h,f,p),h=h[f]}return e}},7352:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7275);const i=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){r.A.forEach(this.handlers,function(t){null!==t&&e(t)})}}},7422:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(423),i=n(7064),o=n(8446);const s=function(e){return(0,o.A)(e)?(0,r.A)(e):(0,i.A)(e)}},7465:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(2049),i=n(6586),o=n(5722),s=n(8182);const a=function(e,t){return(0,r.A)(e)?e:(0,i.A)(e,t)?[e]:(0,o.A)((0,s.A)(e))}},7500:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(6318);const i=function(e,t,n){var i=null==e?void 0:(0,r.A)(e,t);return void 0===i?n:i}},7511:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(9789),i=n(5054);const o=function(e,t){return null!=e&&(0,i.A)(e,t,r.A)}},7526:(e,t)=>{t.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=a(e),s=o[0],c=o[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,c)),u=0,d=c>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=16383,a=0,c=r-i;a<c;a+=s)o.push(l(e,a,a+s>c?c:a+s));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=o[s],r[o.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function l(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(c(r));return i.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7536:(e,t,n)=>{n.d(t,{A:()=>w});var r=n(7275),i=n(2125),o=n(5978),s=n(4662),a=n(6013),c=n(7887),l=n(8458),u=n(4874),d=n(9575),h=n(9888),f=n(665),p=n(4062),y=n(605),g=n(8562),m=n(7110),_=n(6263),b=n(7693);const v=function e(t){const n=new o.A(t),a=(0,i.A)(o.A.prototype.request,n);return r.A.extend(a,o.A.prototype,n,{allOwnKeys:!0}),r.A.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e((0,s.A)(t,n))},a}(a.A);v.Axios=o.A,v.CanceledError=l.A,v.CancelToken=u.A,v.isCancel=d.A,v.VERSION=h.x,v.toFormData=f.A,v.AxiosError=p.A,v.Cancel=v.CanceledError,v.all=function(e){return Promise.all(e)},v.spread=y.A,v.isAxiosError=g.A,v.mergeConfig=s.A,v.AxiosHeaders=m.A,v.formToJSON=e=>(0,c.A)(r.A.isHTMLForm(e)?new FormData(e):e),v.getAdapter=_.A.getAdapter,v.HttpStatusCode=b.A,v.default=v;const w=v},7678:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.aes256cbc=t.aes256gcm=void 0;var r=n(469);t.aes256gcm=function(e,t,n){return(0,r.gcm)(e,t,n)};t.aes256cbc=function(e,t,n){return(0,r.cbc)(e,t)}},7681:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7919),i=n(8335),o=n(5917);const s=function(e,t){var n=this.__data__;if(n instanceof r.A){var s=n.__data__;if(!i.A||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o.A(s)}return n.set(e,t),this.size=n.size,this}},7693:(e,t,n)=>{n.d(t,{A:()=>i});const r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(r).forEach(([e,t])=>{r[t]=e});const i=r},7757:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.aesDecrypt=t.aesEncrypt=t.symDecrypt=t.symEncrypt=void 0;var r=n(6527),i=n(8489),o=n(7678),s=n(83),a=n(4928),c=n(1666);t.symEncrypt=function(e,t,n){return l(u,e,t,n)};function l(e,t,n,r){var i=(0,a.symmetricAlgorithm)();if("aes-256-gcm"===i)return e(o.aes256gcm,t,n,(0,a.symmetricNonceLength)(),c.AEAD_TAG_LENGTH,r);if("xchacha20"===i)return e(s.xchacha20,t,n,c.XCHACHA20_NONCE_LENGTH,c.AEAD_TAG_LENGTH,r);if("aes-256-cbc"===i)return e(o.aes256cbc,t,n,16,0);throw new Error("Not implemented")}function u(e,t,n,o,s,a){var c=(0,i.randomBytes)(o),l=e(t,c,a).encrypt(n);if(0===s)return(0,r.concatBytes)(c,l);var u=l.length-s,d=l.subarray(0,u),h=l.subarray(u);return(0,r.concatBytes)(c,h,d)}function d(e,t,n,i,o,s){var a=n.subarray(0,i),c=e(t,Uint8Array.from(a),s),l=n.subarray(i);if(0===o)return c.decrypt(l);var u=l.subarray(0,o),d=l.subarray(o);return c.decrypt((0,r.concatBytes)(d,u))}t.symDecrypt=function(e,t,n){return l(d,e,t,n)},t.aesEncrypt=t.symEncrypt,t.aesDecrypt=t.symDecrypt},7808:(e,t,n)=>{n.d(t,{Cm:()=>i,EC:()=>s,Uk:()=>o});var r=n(7311);function i(){return r.o.getInstance().getIdentifier()}function o(e){r.o.getInstance().setTokenGetter(e)}function s(){return r.o.getInstance().setupTokenManager()}},7809:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},7837:(e,t,n)=>{n.d(t,{C1:()=>s,Vj:()=>a,mM:()=>c});var r=n(3873),i=n(66),o=n(7275);const s=(e,t,n=3)=>{let o=0;const s=(0,r.A)(50,250);return(0,i.A)(n=>{const r=n.loaded,i=n.lengthComputable?n.total:void 0,a=r-o,c=s(a);o=r;e({loaded:r,total:i,progress:i?r/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&r<=i?(i-r)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},a=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},c=e=>(...t)=>o.A.asap(()=>e(...t))},7880:(e,t,n)=>{n.d(t,{A:()=>i});var r=/\s/;const i=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},7887:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7275);const i=function(e){function t(e,n,i,o){let s=e[o++];if("__proto__"===s)return!0;const a=Number.isFinite(+s),c=o>=e.length;if(s=!s&&r.A.isArray(i)?i.length:s,c)return r.A.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!a;i[s]&&r.A.isObject(i[s])||(i[s]=[]);return t(e,n,i[s],o)&&r.A.isArray(i[s])&&(i[s]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(i[s])),!a}if(r.A.isFormData(e)&&r.A.isFunction(e.entries)){const n={};return r.A.forEachEntry(e,(e,i)=>{t(function(e){return r.A.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),i,n,0)}),n}return null}},7919:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(6838),i=n(2384),o=n(4787),s=n(8207),a=n(1031);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r.A,c.prototype.delete=i.A,c.prototype.get=o.A,c.prototype.has=s.A,c.prototype.set=a.A;const l=c},7960:(e,t,n)=>{n.d(t,{A:()=>A});var r=n(3820),i=n(7275),o=n(4062),s=n(2723),a=n(1791),c=n(7110),l=n(7837),u=n(8382),d=n(3853);const h="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,f=h&&"function"==typeof ReadableStream,p=h&&("function"==typeof TextEncoder?(y=new TextEncoder,e=>y.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var y;const g=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},m=f&&g(()=>{let e=!1;const t=new Request(r.A.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),_=f&&g(()=>i.A.isReadableStream(new Response("").body)),b={stream:_&&(e=>e.body)};var v;h&&(v=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!b[e]&&(b[e]=i.A.isFunction(v[e])?t=>t[e]():(t,n)=>{throw new o.A(`Response type '${e}' is not supported`,o.A.ERR_NOT_SUPPORT,n)})}));const w=async(e,t)=>{const n=i.A.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(i.A.isBlob(e))return e.size;if(i.A.isSpecCompliantForm(e)){const t=new Request(r.A.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return i.A.isArrayBufferView(e)||i.A.isArrayBuffer(e)?e.byteLength:(i.A.isURLSearchParams(e)&&(e+=""),i.A.isString(e)?(await p(e)).byteLength:void 0)})(t):n},A=h&&(async e=>{let{url:t,method:n,data:r,signal:h,cancelToken:f,timeout:p,onDownloadProgress:y,onUploadProgress:g,responseType:v,headers:A,withCredentials:E="same-origin",fetchOptions:S}=(0,u.A)(e);v=v?(v+"").toLowerCase():"text";let B,x=(0,s.A)([h,f&&f.toAbortSignal()],p);const I=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let L;try{if(g&&m&&"get"!==n&&"head"!==n&&0!==(L=await w(A,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(i.A.isFormData(r)&&(e=n.headers.get("content-type"))&&A.setContentType(e),n.body){const[e,t]=(0,l.Vj)(L,(0,l.C1)((0,l.mM)(g)));r=(0,a.E9)(n.body,65536,e,t)}}i.A.isString(E)||(E=E?"include":"omit");const o="credentials"in Request.prototype;B=new Request(t,{...S,signal:x,method:n.toUpperCase(),headers:A.normalize().toJSON(),body:r,duplex:"half",credentials:o?E:void 0});let s=await fetch(B,S);const u=_&&("stream"===v||"response"===v);if(_&&(y||u&&I)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=s[t]});const t=i.A.toFiniteNumber(s.headers.get("content-length")),[n,r]=y&&(0,l.Vj)(t,(0,l.C1)((0,l.mM)(y),!0))||[];s=new Response((0,a.E9)(s.body,65536,n,()=>{r&&r(),I&&I()}),e)}v=v||"text";let h=await b[i.A.findKey(b,v)||"text"](s,e);return!u&&I&&I(),await new Promise((t,n)=>{(0,d.A)(t,n,{data:h,headers:c.A.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:B})})}catch(t){if(I&&I(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new o.A("Network Error",o.A.ERR_NETWORK,e,B),{cause:t.cause||t});throw o.A.from(t,t&&t.code,e,B)}})},8021:(e,t,n)=>{n.d(t,{B:()=>i});var r=n(4543);function i(e,t=30){let n,i=null;return{promise:new Promise((o,s)=>{i=s;const a=performance.now(),c=e();c?o(c):n=setInterval(()=>{const i=e();i?(clearInterval(n),o(i)):(performance.now()-a)/1e3>t&&(s(new r.e("Timeouts or Feature is not found in the map at current zoom level.",{status:404,name:"NetworkError"})),clearInterval(n))},100)}),abort:()=>{n&&(clearInterval(n),n=void 0),i&&(i(new r.e("Query was aborted by the user.",{status:400,name:"AbortError"})),i=null)}}}},8104:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){return null==e?void 0:e[t]}},8167:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(8287),i=n(6748);void 0===globalThis.Buffer&&(globalThis.Buffer=r.hp),i.VV.ellipticCurve="secp256k1",i.VV.symmetricAlgorithm="aes-256-gcm";const o=new TextEncoder;function s(e,t){return(0,i.w)(e,o.encode(t)).toString("hex")}},8182:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(52);const i=function(e){return null==e?"":(0,r.A)(e)}},8207:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(169);const i=function(e){return(0,r.A)(this.__data__,e)>-1}},8262:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(9034),i=n(6787);function o(e,t,n){let o=!(0,r.A)(t);return e&&(o||0==n)?(0,i.A)(e,t):t}},8287:(e,t,n)=>{const r=n(7526),i=n(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.hp=c,t.IS=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|y(e,t);let r=a(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const i=function(e){if(c.isBuffer(e)){const t=0|p(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?a(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),a(e<0?0:0|p(e))}function h(e){const t=e.length<0?0:0|p(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function p(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function y(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(i)return r?-1:W(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return B(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function _(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(l(e,o+r)!==l(t,r)){n=!1;break}if(n)return o}return-1}function v(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(Y(r))return s;e[n+s]=r}return s}function w(e,t,n,r){return Z(W(t,e.length-n),e,n,r)}function A(e,t,n,r){return Z(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return Z(q(t),e,n,r)}function S(e,t,n,r){return Z(function(e,t){let n,r,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function B(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,c;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(o=c));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=I));return n}(r)}c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},c.allocUnsafe=function(e){return d(e)},c.allocUnsafeSlow=function(e){return d(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=c.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?x(this,0,e):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(o,s),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<a;++e)if(l[e]!==u[e]){o=l[e],s=u[e];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return A(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const I=4096;function L(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function k(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=X[e[r]];return i}function T(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function C(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function P(e,t,n,r,i){D(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function F(e,t,n,r,i){D(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function M(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function H(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||C(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=J(function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),c.prototype.readBigUInt64BE=J(function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||C(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||C(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||C(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=J(function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),c.prototype.readBigInt64BE=J(function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||z(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||C(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||C(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||C(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||C(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){R(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=J(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=J(function(e,t=0){return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);R(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=J(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=J(function(e,t=0){return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return H(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return H(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%s]}return this};const j={};function N(e,t,n){j[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function V(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function D(e,t,n,r,i,o){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new j.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||z(t,e.length-(n+1))}(r,i,o)}function $(e,t){if("number"!=typeof e)throw new j.ERR_INVALID_ARG_TYPE(t,"number",e)}function z(e,t,n){if(Math.floor(e)!==e)throw $(e,n),new j.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}N("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),N("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),N("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=V(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=V(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const G=/[^+/0-9A-Za-z-_]/g;function W(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},8291:(e,t,n)=>{function r(e){return e.layers.filter(e=>!o(e.source))}function i(e){return e.layers.filter(e=>o(e.source))}function o(e){return"string"==typeof e&&e.startsWith("indoor-")}n.d(t,{Z3:()=>r,cq:()=>i,ld:()=>o})},8330:e=>{e.exports={rE:"9.0.0-pre.2"}},8335:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"Map")},8382:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(3820),i=n(7275),o=n(6305),s=n(9887),a=n(8262),c=n(4662),l=n(7110),u=n(3967);const d=e=>{const t=(0,c.A)({},e);let n,{data:d,withXSRFToken:h,xsrfHeaderName:f,xsrfCookieName:p,headers:y,auth:g}=t;if(t.headers=y=l.A.from(y),t.url=(0,u.A)((0,a.A)(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),g&&y.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),i.A.isFormData(d))if(r.A.hasStandardBrowserEnv||r.A.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if(!1!==(n=y.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];y.setContentType([e||"multipart/form-data",...t].join("; "))}if(r.A.hasStandardBrowserEnv&&(h&&i.A.isFunction(h)&&(h=h(t)),h||!1!==h&&(0,o.A)(t.url))){const e=f&&p&&s.A.read(p);e&&y.set(f,e)}return t}},8389:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(2559),i=n(2141),o=n(6224);const s=function(e,t){return e&&e.length?(0,r.A)(e,(0,i.A)(t,2),o.A):void 0}},8417:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(674),i=Object.prototype.hasOwnProperty;const o=function(e){var t=this.__data__;if(r.A){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},8446:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(9610),i=n(5254);const o=function(e){return null!=e&&(0,i.A)(e.length)&&!(0,r.A)(e)}},8458:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(4062);function i(e,t,n){r.A.call(this,null==e?"canceled":e,r.A.ERR_CANCELED,t,n),this.name="CanceledError"}n(7275).A.inherits(i,r.A,{__CANCEL__:!0});const o=i},8489:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.gcm=t.ctr=t.cbc=t.utils=void 0,t.randomBytes=o,t.getWebcryptoSubtle=s,t.managedNonce=function(e){const{nonceLength:t}=e;return(0,i.anumber)(t),(n,...r)=>({encrypt(s,...a){const c=o(t),l=e(n,c,...r).encrypt(s,...a),u=(0,i.concatBytes)(c,l);return l.fill(0),u},decrypt(i,...o){const s=i.subarray(0,t),a=i.subarray(t);return e(n,s,...r).decrypt(a,...o)}})};const r=n(5297),i=n(6527);function o(e=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return Uint8Array.from(r.crypto.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function s(){if(r.crypto&&"object"==typeof r.crypto.subtle&&null!=r.crypto.subtle)return r.crypto.subtle;throw new Error("crypto.subtle must be defined")}t.utils={async encrypt(e,t,n,r){const i=s(),o=await i.importKey("raw",e,t,!0,["encrypt"]),a=await i.encrypt(n,o,r);return new Uint8Array(a)},async decrypt(e,t,n,r){const i=s(),o=await i.importKey("raw",e,t,!0,["decrypt"]),a=await i.decrypt(n,o,r);return new Uint8Array(a)}};const a="AES-CBC",c="AES-CTR",l="AES-GCM";function u(e){return(n,r,o)=>{(0,i.abytes)(n),(0,i.abytes)(r);const s={name:e,length:8*n.length},u=function(e,t,n){if(e===a)return{name:a,iv:t};if(e===c)return{name:c,counter:t,length:64};if(e===l)return n?{name:l,iv:t,additionalData:n}:{name:l,iv:t};throw new Error("unknown aes block mode")}(e,r,o);let d=!1;return{encrypt(e){if((0,i.abytes)(e),d)throw new Error("Cannot encrypt() twice with same key / nonce");return d=!0,t.utils.encrypt(n,s,u,e)},decrypt:e=>((0,i.abytes)(e),t.utils.decrypt(n,s,u,e))}}}t.cbc=u(a),t.ctr=u(c),t.gcm=(()=>u(l))()},8510:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.secp256k1_hasher=t.schnorr=t.secp256k1=void 0;const r=n(7076),i=n(9175),o=n(3562),s=n(1761),a=n(4967),c=n(1705),l=n(8627),u={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},d=BigInt(0),h=BigInt(1),f=BigInt(2),p=(e,t)=>(e+t/f)/t;function y(e){const t=u.p,n=BigInt(3),r=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),c=BigInt(44),l=BigInt(88),d=e*e*e%t,h=d*d*e%t,p=(0,a.pow2)(h,n,t)*h%t,y=(0,a.pow2)(p,n,t)*h%t,m=(0,a.pow2)(y,f,t)*d%t,_=(0,a.pow2)(m,i,t)*m%t,b=(0,a.pow2)(_,o,t)*_%t,v=(0,a.pow2)(b,c,t)*b%t,w=(0,a.pow2)(v,l,t)*v%t,A=(0,a.pow2)(w,c,t)*b%t,E=(0,a.pow2)(A,n,t)*h%t,S=(0,a.pow2)(E,s,t)*_%t,B=(0,a.pow2)(S,r,t)*d%t,x=(0,a.pow2)(B,f,t);if(!g.eql(g.sqr(x),e))throw new Error("Cannot find square root");return x}const g=(0,a.Field)(u.p,void 0,void 0,{sqrt:y});t.secp256k1=(0,o.createCurve)({...u,Fp:g,lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=u.n,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-h*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=n,s=BigInt("0x100000000000000000000000000000000"),c=p(o*e,t),l=p(-r*e,t);let d=(0,a.mod)(e-c*n-l*i,t),f=(0,a.mod)(-c*r-l*o,t);const y=d>s,g=f>s;if(y&&(d=t-d),g&&(f=t-f),d>s||f>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:y,k1:d,k2neg:g,k2:f}}}},r.sha256);const m={};function _(e,...t){let n=m[e];if(void 0===n){const t=(0,r.sha256)(Uint8Array.from(e,e=>e.charCodeAt(0)));n=(0,l.concatBytes)(t,t),m[e]=n}return(0,r.sha256)((0,l.concatBytes)(n,...t))}const b=e=>e.toBytes(!0).slice(1),v=e=>(0,l.numberToBytesBE)(e,32),w=e=>(0,a.mod)(e,u.p),A=e=>(0,a.mod)(e,u.n),E=(()=>t.secp256k1.Point)(),S=e=>e%f===d;function B(e){let n=t.secp256k1.utils.normPrivateKeyToScalar(e),r=E.fromPrivateKey(n);return{scalar:S(r.y)?n:A(-n),bytes:b(r)}}function x(e){(0,l.aInRange)("x",e,h,u.p);const t=w(e*e);let n=y(w(t*e+BigInt(7)));S(n)||(n=w(-n));const r=E.fromAffine({x:e,y:n});return r.assertValidity(),r}const I=l.bytesToNumberBE;function L(...e){return A(I(_("BIP0340/challenge",...e)))}function O(e){return B(e).bytes}function k(e,t,n=(0,i.randomBytes)(32)){const r=(0,l.ensureBytes)("message",e),{bytes:o,scalar:s}=B(t),a=(0,l.ensureBytes)("auxRand",n,32),c=v(s^I(_("BIP0340/aux",a))),u=_("BIP0340/nonce",c,o,r),h=A(I(u));if(h===d)throw new Error("sign failed: k is zero");const{bytes:f,scalar:p}=B(h),y=L(f,o,r),g=new Uint8Array(64);if(g.set(f,0),g.set(v(A(p+y*s)),32),!T(g,r,o))throw new Error("sign: Invalid signature produced");return g}function T(e,t,n){const r=(0,l.ensureBytes)("signature",e,64),i=(0,l.ensureBytes)("message",t),o=(0,l.ensureBytes)("publicKey",n,32);try{const e=x(I(o)),t=I(r.subarray(0,32));if(!(0,l.inRange)(t,h,u.p))return!1;const n=I(r.subarray(32,64));if(!(0,l.inRange)(n,h,u.n))return!1;const s=L(v(t),b(e),i),a=E.BASE.multiplyUnsafe(n).add(e.multiplyUnsafe(A(-s))),{x:c,y:d}=a.toAffine();return!(a.is0()||!S(d)||c!==t)}catch(e){return!1}}t.schnorr={getPublicKey:O,sign:k,verify:T,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:x,pointToBytes:b,numberToBytesBE:l.numberToBytesBE,bytesToNumberBE:l.bytesToNumberBE,taggedHash:_,mod:a.mod}};const C=(()=>(0,s.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))))(),R=(()=>(0,c.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}))();t.secp256k1_hasher=(0,s.createHasher)(t.secp256k1.Point,e=>{const{x:t,y:n}=R(g.create(e[0]));return C(t,n)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:r.sha256}),t.hashToCurve=t.secp256k1_hasher.hashToCurve,t.encodeToCurve=t.secp256k1_hasher.encodeToCurve},8556:(e,t,n)=>{n.d(t,{A:()=>r});const r="undefined"!=typeof FormData?FormData:null},8562:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7275);function i(e){return r.A.isObject(e)&&!0===e.isAxiosError}},8627:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.notImplemented=t.bitMask=t.utf8ToBytes=t.randomBytes=t.isBytes=t.hexToBytes=t.concatBytes=t.bytesToUtf8=t.bytesToHex=t.anumber=t.abytes=void 0,t.abool=function(e,t){if("boolean"!=typeof t)throw new Error(e+" boolean expected, got "+t)},t.numberToHexUnpadded=a,t.hexToNumber=c,t.bytesToNumberBE=function(e){return c((0,r.bytesToHex)(e))},t.bytesToNumberLE=function(e){return(0,r.abytes)(e),c((0,r.bytesToHex)(Uint8Array.from(e).reverse()))},t.numberToBytesBE=l,t.numberToBytesLE=function(e,t){return l(e,t).reverse()},t.numberToVarBytesBE=function(e){return(0,r.hexToBytes)(a(e))},t.ensureBytes=function(e,t,n){let i;if("string"==typeof t)try{i=(0,r.hexToBytes)(t)}catch(t){throw new Error(e+" must be hex string or Uint8Array, cause: "+t)}else{if(!(0,r.isBytes)(t))throw new Error(e+" must be hex string or Uint8Array");i=Uint8Array.from(t)}const o=i.length;if("number"==typeof n&&o!==n)throw new Error(e+" of length "+n+" expected, got "+o);return i},t.equalBytes=function(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n},t.inRange=d,t.aInRange=function(e,t,n,r){if(!d(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)},t.bitLen=function(e){let t;for(t=0;e>o;e>>=s,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&s},t.bitSet=function(e,t,n){return e|(n?s:o)<<BigInt(t)},t.createHmacDrbg=function(e,t,n){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");const i=e=>new Uint8Array(e),o=e=>Uint8Array.of(e);let s=i(e),a=i(e),c=0;const l=()=>{s.fill(1),a.fill(0),c=0},u=(...e)=>n(a,s,...e),d=(e=i(0))=>{a=u(o(0),e),s=u(),0!==e.length&&(a=u(o(1),e),s=u())},h=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){s=u();const t=s.slice();n.push(t),e+=s.length}return(0,r.concatBytes)(...n)};return(e,t)=>{let n;for(l(),d(e);!(n=t(h()));)d();return l(),n}},t.validateObject=function(e,t,n={}){const r=(t,n,r)=>{const i=h[n];if("function"!=typeof i)throw new Error("invalid validator function");const o=e[t];if(!(r&&void 0===o||i(o,e)))throw new Error("param "+String(t)+" is invalid. Expected "+n+", got "+o)};for(const[e,n]of Object.entries(t))r(e,n,!1);for(const[e,t]of Object.entries(n))r(e,t,!0);return e},t.isHash=function(e){return"function"==typeof e&&Number.isSafeInteger(e.outputLen)},t._validateObject=function(e,t,n={}){if(!e||"object"!=typeof e)throw new Error("expected valid options object");function r(t,n,r){const i=e[t];if(r&&void 0===i)return;const o=typeof i;if(o!==n||null===i)throw new Error(`param "${t}" is invalid: expected ${n}, got ${o}`)}Object.entries(t).forEach(([e,t])=>r(e,t,!1)),Object.entries(n).forEach(([e,t])=>r(e,t,!0))},t.memoized=function(e){const t=new WeakMap;return(n,...r)=>{const i=t.get(n);if(void 0!==i)return i;const o=e(n,...r);return t.set(n,o),o}};const r=n(9175);var i=n(9175);Object.defineProperty(t,"abytes",{enumerable:!0,get:function(){return i.abytes}}),Object.defineProperty(t,"anumber",{enumerable:!0,get:function(){return i.anumber}}),Object.defineProperty(t,"bytesToHex",{enumerable:!0,get:function(){return i.bytesToHex}}),Object.defineProperty(t,"bytesToUtf8",{enumerable:!0,get:function(){return i.bytesToUtf8}}),Object.defineProperty(t,"concatBytes",{enumerable:!0,get:function(){return i.concatBytes}}),Object.defineProperty(t,"hexToBytes",{enumerable:!0,get:function(){return i.hexToBytes}}),Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return i.isBytes}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return i.randomBytes}}),Object.defineProperty(t,"utf8ToBytes",{enumerable:!0,get:function(){return i.utf8ToBytes}});const o=BigInt(0),s=BigInt(1);function a(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function c(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?o:BigInt("0x"+e)}function l(e,t){return(0,r.hexToBytes)(e.toString(16).padStart(2*t,"0"))}const u=e=>"bigint"==typeof e&&o<=e;function d(e,t,n){return u(e)&&u(t)&&u(n)&&t<=e&&e<n}t.bitMask=e=>(s<<BigInt(e))-s;const h={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||(0,r.isBytes)(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};t.notImplemented=()=>{throw new Error("not implemented")}},8672:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},8683:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(9152),i=n(9575),o=n(6013),s=n(8458),a=n(7110),c=n(6263);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s.A(null,e)}function u(e){l(e),e.headers=a.A.from(e.headers),e.data=r.A.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return c.A.getAdapter(e.adapter||o.A.adapter)(e).then(function(t){return l(e),t.data=r.A.call(e,e.transformResponse,t),t.headers=a.A.from(t.headers),t},function(t){return(0,i.A)(t)||(l(e),t&&t.response&&(t.response.data=r.A.call(e,e.transformResponse,t.response),t.response.headers=a.A.from(t.response.headers))),Promise.reject(t)})}},8693:(e,t,n)=>{n.d(t,{i:()=>u});var r=n(2658),i=n(5461),o=n(7808),s=n(9588),a=n(8167),c=n(8330);const l=["CORE_SDK",...(0,r.d)()];async function u(e,t,n,r){if(!e||!t)throw new Error("appId and secret are required");try{const u=await(0,i.l)(),h=await async function(e,t=d){return e??async function(e){return{identifier:await(0,o.Cm)(),origin:e,keyPlatform:"WEB",sdkVersion:c.rE}}(t)}(n,r),{identifier:f,sdkVersion:p,...y}=h,g={"Content-Type":"text/plain",sdkVersion:p},m=function(e,t){return(0,a.Z)(e,JSON.stringify(t))}(u,{appId:e,secret:t,identifier:f,timestamp:Date.now(),products:l,...y}),_=await fetch(s.R0,{method:"POST",body:m,headers:g});if(!_.ok){const e=await _.json(),{code:t,message:n}=e;if(401===_.status&&7001005===t)throw(0,i.U)(),new Error(n);throw new Error(n||`HTTP error! status: ${_.status}`)}const b=await _.json(),{accessToken:v,expiresIn:w}=b;return{accessToken:v,expiredTime:Date.now()+1e3*(w-90)}}catch(e){throw e instanceof Error?new Error(`Failed to get access token: ${e.message}`,{cause:e}):new Error(`Failed to get access token: ${String(e)}`)}}const d="undefined"!=typeof window&&window.location?.hostname?window.location.hostname:"restriction.test.example.com"},8700:(e,t,n)=>{function r(e,t=","){return"string"==typeof e&&e.trim()?e.split(t):[]}n.d(t,{S:()=>r})},8719:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(9717),i=n(2789),o=n(4841),s=o.A&&o.A.isTypedArray;const a=s?(0,i.A)(s):r.A},8776:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(9313),i=1/0;const o=function(e){return e?(e=(0,r.A)(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},8813:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(674),i=Object.prototype.hasOwnProperty;const o=function(e){var t=this.__data__;return r.A?void 0!==t[e]:i.call(t,e)}},8823:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(3149),i=n(7271),o=n(1493),s=Object.prototype.hasOwnProperty;const a=function(e){if(!(0,r.A)(e))return(0,o.A)(e);var t=(0,i.A)(e),n=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&n.push(a);return n}},8884:(e,t,n)=>{var r;n.d(t,{e:()=>r}),function(e){e.Access="access_control",e.Map="map"}(r||(r={}))},8900:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.xchacha20poly1305=t.chacha20poly1305=t._poly1305_aead=t.chacha12=t.chacha8=t.xchacha20=t.chacha20=t.chacha20orig=void 0,t.hchacha=a;const r=n(2506),i=n(1210),o=n(6527);function s(e,t,n,i,o,s=20){let a=e[0],c=e[1],l=e[2],u=e[3],d=t[0],h=t[1],f=t[2],p=t[3],y=t[4],g=t[5],m=t[6],_=t[7],b=o,v=n[0],w=n[1],A=n[2],E=a,S=c,B=l,x=u,I=d,L=h,O=f,k=p,T=y,C=g,R=m,P=_,F=b,M=v,U=w,H=A;for(let e=0;e<s;e+=2)E=E+I|0,F=(0,r.rotl)(F^E,16),T=T+F|0,I=(0,r.rotl)(I^T,12),E=E+I|0,F=(0,r.rotl)(F^E,8),T=T+F|0,I=(0,r.rotl)(I^T,7),S=S+L|0,M=(0,r.rotl)(M^S,16),C=C+M|0,L=(0,r.rotl)(L^C,12),S=S+L|0,M=(0,r.rotl)(M^S,8),C=C+M|0,L=(0,r.rotl)(L^C,7),B=B+O|0,U=(0,r.rotl)(U^B,16),R=R+U|0,O=(0,r.rotl)(O^R,12),B=B+O|0,U=(0,r.rotl)(U^B,8),R=R+U|0,O=(0,r.rotl)(O^R,7),x=x+k|0,H=(0,r.rotl)(H^x,16),P=P+H|0,k=(0,r.rotl)(k^P,12),x=x+k|0,H=(0,r.rotl)(H^x,8),P=P+H|0,k=(0,r.rotl)(k^P,7),E=E+L|0,H=(0,r.rotl)(H^E,16),R=R+H|0,L=(0,r.rotl)(L^R,12),E=E+L|0,H=(0,r.rotl)(H^E,8),R=R+H|0,L=(0,r.rotl)(L^R,7),S=S+O|0,F=(0,r.rotl)(F^S,16),P=P+F|0,O=(0,r.rotl)(O^P,12),S=S+O|0,F=(0,r.rotl)(F^S,8),P=P+F|0,O=(0,r.rotl)(O^P,7),B=B+k|0,M=(0,r.rotl)(M^B,16),T=T+M|0,k=(0,r.rotl)(k^T,12),B=B+k|0,M=(0,r.rotl)(M^B,8),T=T+M|0,k=(0,r.rotl)(k^T,7),x=x+I|0,U=(0,r.rotl)(U^x,16),C=C+U|0,I=(0,r.rotl)(I^C,12),x=x+I|0,U=(0,r.rotl)(U^x,8),C=C+U|0,I=(0,r.rotl)(I^C,7);let j=0;i[j++]=a+E|0,i[j++]=c+S|0,i[j++]=l+B|0,i[j++]=u+x|0,i[j++]=d+I|0,i[j++]=h+L|0,i[j++]=f+O|0,i[j++]=p+k|0,i[j++]=y+T|0,i[j++]=g+C|0,i[j++]=m+R|0,i[j++]=_+P|0,i[j++]=b+F|0,i[j++]=v+M|0,i[j++]=w+U|0,i[j++]=A+H|0}function a(e,t,n,i){let o=e[0],s=e[1],a=e[2],c=e[3],l=t[0],u=t[1],d=t[2],h=t[3],f=t[4],p=t[5],y=t[6],g=t[7],m=n[0],_=n[1],b=n[2],v=n[3];for(let e=0;e<20;e+=2)o=o+l|0,m=(0,r.rotl)(m^o,16),f=f+m|0,l=(0,r.rotl)(l^f,12),o=o+l|0,m=(0,r.rotl)(m^o,8),f=f+m|0,l=(0,r.rotl)(l^f,7),s=s+u|0,_=(0,r.rotl)(_^s,16),p=p+_|0,u=(0,r.rotl)(u^p,12),s=s+u|0,_=(0,r.rotl)(_^s,8),p=p+_|0,u=(0,r.rotl)(u^p,7),a=a+d|0,b=(0,r.rotl)(b^a,16),y=y+b|0,d=(0,r.rotl)(d^y,12),a=a+d|0,b=(0,r.rotl)(b^a,8),y=y+b|0,d=(0,r.rotl)(d^y,7),c=c+h|0,v=(0,r.rotl)(v^c,16),g=g+v|0,h=(0,r.rotl)(h^g,12),c=c+h|0,v=(0,r.rotl)(v^c,8),g=g+v|0,h=(0,r.rotl)(h^g,7),o=o+u|0,v=(0,r.rotl)(v^o,16),y=y+v|0,u=(0,r.rotl)(u^y,12),o=o+u|0,v=(0,r.rotl)(v^o,8),y=y+v|0,u=(0,r.rotl)(u^y,7),s=s+d|0,m=(0,r.rotl)(m^s,16),g=g+m|0,d=(0,r.rotl)(d^g,12),s=s+d|0,m=(0,r.rotl)(m^s,8),g=g+m|0,d=(0,r.rotl)(d^g,7),a=a+h|0,_=(0,r.rotl)(_^a,16),f=f+_|0,h=(0,r.rotl)(h^f,12),a=a+h|0,_=(0,r.rotl)(_^a,8),f=f+_|0,h=(0,r.rotl)(h^f,7),c=c+l|0,b=(0,r.rotl)(b^c,16),p=p+b|0,l=(0,r.rotl)(l^p,12),c=c+l|0,b=(0,r.rotl)(b^c,8),p=p+b|0,l=(0,r.rotl)(l^p,7);let w=0;i[w++]=o,i[w++]=s,i[w++]=a,i[w++]=c,i[w++]=m,i[w++]=_,i[w++]=b,i[w++]=v}t.chacha20orig=(0,r.createCipher)(s,{counterRight:!1,counterLength:8,allowShortKeys:!0}),t.chacha20=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,allowShortKeys:!1}),t.xchacha20=(0,r.createCipher)(s,{counterRight:!1,counterLength:8,extendNonceFn:a,allowShortKeys:!1}),t.chacha8=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,rounds:8}),t.chacha12=(0,r.createCipher)(s,{counterRight:!1,counterLength:4,rounds:12});const c=new Uint8Array(16),l=(e,t)=>{e.update(t);const n=t.length%16;n&&e.update(c.subarray(n))},u=new Uint8Array(32);function d(e,t,n,r,s){const a=e(t,n,u),c=i.poly1305.create(a);s&&l(c,s),l(c,r);const d=(0,o.u64Lengths)(r.length,s?s.length:0,!0);c.update(d);const h=c.digest();return(0,o.clean)(a,d),h}t._poly1305_aead=e=>(t,n,r)=>{const i=16;return{encrypt(s,a){const c=s.length;(a=(0,o.getOutput)(c+i,a,!1)).set(s);const l=a.subarray(0,-16);e(t,n,l,l,1);const u=d(e,t,n,l,r);return a.set(u,c),(0,o.clean)(u),a},decrypt(s,a){a=(0,o.getOutput)(s.length-i,a,!1);const c=s.subarray(0,-16),l=s.subarray(-16),u=d(e,t,n,c,r);if(!(0,o.equalBytes)(l,u))throw new Error("invalid tag");return a.set(s.subarray(0,-16)),e(t,n,a,a,1),(0,o.clean)(u),a}}},t.chacha20poly1305=(0,o.wrapCipher)({blockSize:64,nonceLength:12,tagLength:16},(0,t._poly1305_aead)(t.chacha20)),t.xchacha20poly1305=(0,o.wrapCipher)({blockSize:64,nonceLength:24,tagLength:16},(0,t._poly1305_aead)(t.xchacha20))},8967:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(1275),i=n(3736),o=n(4099);const s=function(e,t,n,s,a,c){var l=1&n,u=e.length,d=t.length;if(u!=d&&!(l&&d>u))return!1;var h=c.get(e),f=c.get(t);if(h&&f)return h==t&&f==e;var p=-1,y=!0,g=2&n?new r.A:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var m=e[p],_=t[p];if(s)var b=l?s(_,m,p,t,e,c):s(m,_,p,e,t,c);if(void 0!==b){if(b)continue;y=!1;break}if(g){if(!(0,i.A)(t,function(e,t){if(!(0,o.A)(g,t)&&(m===e||a(m,e,n,s,c)))return g.push(t)})){y=!1;break}}else if(m!==_&&!a(m,_,n,s,c)){y=!1;break}}return c.delete(e),c.delete(t),y}},9008:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){return e}},9034:(e,t,n)=>{function r(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}n.d(t,{A:()=>r})},9042:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(3831),i=n(4792),o=n(7422);const s=function(e){return(0,r.A)(e,o.A,i.A)}},9065:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=t.PrivateKey=void 0;var r=n(5295);Object.defineProperty(t,"PrivateKey",{enumerable:!0,get:function(){return r.PrivateKey}});var i=n(2557);Object.defineProperty(t,"PublicKey",{enumerable:!0,get:function(){return i.PublicKey}})},9084:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(6318),i=n(7346),o=n(7465);const s=function(e,t,n){for(var s=-1,a=t.length,c={};++s<a;){var l=t[s],u=(0,r.A)(e,l);n(u,l)&&(0,i.A)(c,(0,o.A)(l,e),u)}return c}},9109:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(9857),i=n(2302),o=n(9959);const s=r.A&&1/(0,o.A)(new r.A([,-0]))[1]==1/0?function(e){return new r.A(e)}:i.A},9152:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(7275),i=n(6013),o=n(7110);function s(e,t){const n=this||i.A,s=t||n,a=o.A.from(s.headers);let c=s.data;return r.A.forEach(e,function(e){c=e.call(n,c,a.normalize(),t?t.status:void 0)}),a.normalize(),c}},9175:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.Hash=t.nextTick=t.swap32IfBE=t.byteSwapIfBE=t.swap8IfBE=t.isLE=void 0,t.isBytes=i,t.anumber=o,t.abytes=s,t.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");o(e.outputLen),o(e.blockLen)},t.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},t.aoutput=function(e,t){s(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)},t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.clean=function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.rotl=function(e,t){return e<<t|e>>>32-t>>>0},t.byteSwap=a,t.byteSwap32=c,t.bytesToHex=function(e){if(s(e),l)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=u[e[n]];return t},t.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(l)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let t=0,i=0;t<n;t++,i+=2){const n=h(e.charCodeAt(i)),o=h(e.charCodeAt(i+1));if(void 0===n||void 0===o){const t=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+i)}r[t]=16*n+o}return r},t.asyncLoop=async function(e,n,r){let i=Date.now();for(let o=0;o<e;o++){r(o);const e=Date.now()-i;e>=0&&e<n||(await(0,t.nextTick)(),i+=e)}},t.utf8ToBytes=f,t.bytesToUtf8=function(e){return(new TextDecoder).decode(e)},t.toBytes=p,t.kdfInputToBytes=function(e){"string"==typeof e&&(e=f(e));return s(e),e},t.concatBytes=function(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];s(r),t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const i=e[t];n.set(i,r),r+=i.length}return n},t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!=={}.toString.call(t))throw new Error("options should be object or undefined");return Object.assign(e,t)},t.createHasher=y,t.createOptHasher=g,t.createXOFer=m,t.randomBytes=function(e=32){if(r.crypto&&"function"==typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));if(r.crypto&&"function"==typeof r.crypto.randomBytes)return Uint8Array.from(r.crypto.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")};const r=n(5145);function i(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function o(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function s(e,...t){if(!i(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function a(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function c(e){for(let t=0;t<e.length;t++)e[t]=a(e[t]);return e}t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],t.swap8IfBE=t.isLE?e=>e:e=>a(e),t.byteSwapIfBE=t.swap8IfBE,t.swap32IfBE=t.isLE?e=>e:c;const l=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),u=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));const d={_0:48,_9:57,A:65,F:70,a:97,f:102};function h(e){return e>=d._0&&e<=d._9?e-d._0:e>=d.A&&e<=d.F?e-(d.A-10):e>=d.a&&e<=d.f?e-(d.a-10):void 0}function f(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}function p(e){return"string"==typeof e&&(e=f(e)),s(e),e}t.nextTick=async()=>{};function y(e){const t=t=>e().update(p(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function g(e){const t=(t,n)=>e(n).update(p(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}function m(e){const t=(t,n)=>e(n).update(p(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t}t.Hash=class{},t.wrapConstructor=y,t.wrapConstructorWithOpts=g,t.wrapXOFConstructorWithOpts=m},9190:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9205:(e,t,n)=>{n.d(t,{N:()=>r});class r{_indoor;_isEnabled=!0;constructor(e){this._indoor=e}enable(){this._isEnabled=!0,this._indoor.setAllowBuildingSwitch(!0)}disable(){this._isEnabled=!1,this._indoor.setAllowBuildingSwitch(!1)}get isEnabled(){return this._isEnabled}}},9266:(e,t,n)=>{n.d(t,{Cm:()=>c.Cm,EC:()=>c.EC,FI:()=>s.FI,KL:()=>i.KL,SN:()=>l.S,Sr:()=>u.S,TU:()=>s.TU,Uk:()=>c.Uk,e$:()=>i.e$,iD:()=>a.i,xv:()=>d,yf:()=>o.y});var r=n(8330),i=n(9588),o=n(4969),s=n(1965),a=n(8693),c=n(7808),l=n(2658),u=n(9489);const d=r.rE},9313:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(5488),i=n(3149),o=n(1882),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;const u=function(e){if("number"==typeof e)return e;if((0,o.A)(e))return NaN;if((0,i.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,i.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=(0,r.A)(e);var n=a.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?NaN:+e}},9378:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hexToPublicKey=t.convertPublicKeyFormat=t.getSharedPoint=t.getPublicKey=t.isValidPrivateKey=t.getValidSecret=void 0;var r=n(8489),i=n(459),o=n(8510),s=n(4928),a=n(1666),c=n(3503);t.getValidSecret=function(e){var n;do{n=(0,r.randomBytes)(a.SECRET_KEY_LENGTH)}while(!(0,t.isValidPrivateKey)(n,e));return n};t.isValidPrivateKey=function(e,t){return l(t||(0,s.ellipticCurve)(),function(t){return t.utils.isValidPrivateKey(e)},function(){return!0},function(){return!0})};t.getPublicKey=function(e,t){return l(t||(0,s.ellipticCurve)(),function(t){return t.getPublicKey(e)},function(t){return t.getPublicKey(e)},function(t){return t.getPublicKey(e)})};t.getSharedPoint=function(e,t,n,r){return l(r||(0,s.ellipticCurve)(),function(r){return r.getSharedSecret(e,t,n)},function(n){return n.getSharedSecret(e,t)},function(n){return d(n,e,t)})};t.convertPublicKeyFormat=function(e,t,n){return l(n||(0,s.ellipticCurve)(),function(n){return n.getSharedSecret(BigInt(1),e,t)},function(){return e},function(){return e})};function l(e,t,n,r){if("secp256k1"===e)return t(o.secp256k1);if("x25519"===e)return n(i.x25519);if("ed25519"===e)return r(i.ed25519);throw new Error("Not implemented")}t.hexToPublicKey=function(e,t){var n=(0,c.decodeHex)(e);return l(t||(0,s.ellipticCurve)(),function(){return u(n)},function(){return n},function(){return n})};var u=function(e){if(e.length===a.ETH_PUBLIC_KEY_SIZE){var t=new Uint8Array(1+e.length);return t.set([4]),t.set(e,1),t}return e},d=function(e,t,n){var r=e.utils.getExtendedPublicKey(t).scalar;return e.ExtendedPoint.fromHex(n).multiply(r).toRawBytes()}},9396:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(3149);const i=function(e){return e==e&&!(0,r.A)(e)}},9408:(e,t,n)=>{var r;n.d(t,{S:()=>r}),function(e){e.CHRISTMAS="christmas",e.HALLOWEEN="halloween",e.MAPPY_BEE="mappyBee",e.MAPXUS="mapxus",e.LANDS_D="landsD",e.COMMON="common",e.MAPXUS_V2="mapxus_v2",e.MAPXUS_DEFAULT="mapxus_default"}(r||(r={}))},9489:(e,t,n)=>{n.d(t,{S:()=>o});var r=n(1089),i=n(7311);const o=["unauthorized","initError"],s=globalThis,a=(0,r.A)(...o);i.o.getInstance().setGlobalDispatcher(a),s.MapxusMapEvents=s.MapxusMapEvents||{},s.MapxusMapEvents.on=function(e,t){return a.on(e,t),{off:()=>a.on(e,null)}}},9520:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},9573:(e,t,n)=>{function r(e){let t=!0,n="";if(Array.isArray(e)){const r=e.filter(i);t=0===r.length,n=r.join(",")}else i(e)&&(t=!1,n=e.trim());return t?null:n}function i(e){return"string"==typeof e&&e.trim().length>0}function o(e){return Array.isArray(e)&&2===e.length&&e.every(e=>"number"==typeof e)}function s(e){return Array.isArray(e)&&2===e.length&&e.every(e=>o(e))}function a(e){return"number"==typeof e&&e>0}n.d(t,{BW:()=>i,ES:()=>o,F5:()=>a,VS:()=>r,dD:()=>s})},9575:(e,t,n)=>{function r(e){return!(!e||!e.__CANCEL__)}n.d(t,{A:()=>r})},9588:(e,t,n)=>{n.d(t,{KL:()=>a,R0:()=>r,e$:()=>s,hl:()=>i,kk:()=>o});const r="https://map-api.mapxus.co.jp/accounts/v1/auth/secure-token",i="https://map-api.mapxus.co.jp/bms",o="https://map-sdk.mapxus.co.jp/prod/static/resources/manifest-z6frc5.dat",s=10,a=1},9610:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(9672),i=n(3149);const o=function(e){if(!(0,i.A)(e))return!1;var t=(0,r.A)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9615:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const r=n(9175);class i extends r.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.ahash)(e);const n=(0,r.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,o=new Uint8Array(i);o.set(n.length>i?e.create().update(n).digest():n);for(let e=0;e<o.length;e++)o[e]^=54;this.iHash.update(o),this.oHash=e.create();for(let e=0;e<o.length;e++)o[e]^=106;this.oHash.update(o),(0,r.clean)(o)}update(e){return(0,r.aexists)(this),this.iHash.update(e),this}digestInto(e){(0,r.aexists)(this),(0,r.abytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:s}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=i;t.hmac=(e,t,n)=>new i(e,t).update(n).digest(),t.hmac.create=(e,t)=>new i(e,t)},9644:(e,t,n)=>{n.d(t,{C:()=>r});class r{_floorSelector;_isEnabled;_position;constructor(e){this._floorSelector=e,this._position=e.position,this._isEnabled=this._floorSelector.enabled}enable(){this._isEnabled=!0,this._floorSelector.setEnabled(!0)}disable(){this._isEnabled=!1,this._floorSelector.setEnabled(!1)}setPosition(e,t){this._position=e,this._floorSelector.changePosition(this._floorSelector.position,e,t)}setStyle(e){this._floorSelector.setStyle(e)}get isEnabled(){return this._isEnabled}get position(){return this._position}}},9672:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(241),i=n(451),o=n(5606),s=r.A?r.A.toStringTag:void 0;const a=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?(0,i.A)(e):(0,o.A)(e)}},9717:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(9672),i=n(5254),o=n(3098),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;const a=function(e){return(0,o.A)(e)&&(0,i.A)(e.length)&&!!s[(0,r.A)(e)]}},9789:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e,t){return null!=e&&t in Object(e)}},9846:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(5547);const i=function(e){var t=(0,r.A)(this,e).delete(e);return this.size-=t?1:0,t}},9857:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(702),i=n(1917);const o=(0,r.A)(i.A,"Set")},9875:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){return this.__data__.has(e)}},9887:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(7275);const i=n(3820).A.hasStandardBrowserEnv?{write(e,t,n,i,o,s){const a=[e+"="+encodeURIComponent(t)];r.A.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.A.isString(i)&&a.push("path="+i),r.A.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}}},9888:(e,t,n)=>{n.d(t,{x:()=>r});const r="1.10.0"},9914:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9959:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},9983:(e,t,n)=>{n.d(t,{G:()=>r.G,Z:()=>i.Z});var r=n(4762),i=n(3442)}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};r.d(i,{$O:()=>p.$O,B6:()=>h.B6,B_:()=>l.B,CA:()=>h.CA,Cm:()=>y.Cm,EC:()=>y.EC,EJ:()=>h.EJ,FI:()=>y.FI,FR:()=>f.FR,GC:()=>d.G,H$:()=>f.H$,KL:()=>y.KL,Kp:()=>p.Kp,LJ:()=>p.LJ,Nj:()=>h.Nj,SN:()=>s.SN,SV:()=>p.SV,Sr:()=>y.Sr,T5:()=>o.T,TU:()=>y.TU,Uk:()=>y.Uk,Zx:()=>d.Z,_P:()=>p._P,e$:()=>y.e$,en:()=>p.en,iD:()=>y.iD,kx:()=>u.k,nH:()=>p.nH,pB:()=>c.p,pH:()=>a.p,v$:()=>f.v$,w1:()=>f.w1,xv:()=>y.xv,yf:()=>y.yf,ys:()=>p.ys,zq:()=>y.SN});var o=r(5462),s=r(5629),a=r(4116),c=r(5188),l=r(6733),u=r(6242),d=r(9983),h=r(1088),f=r(4545),p=r(3574),y=r(9266);const g=i.FI,m=i.TU,_=i.kx,b=i.en,v=i.GC,w=i.EJ,A=i.H$,E=i.Kp,S=i.Sr,B=i.CA,x=i.Zx,I=i.SN,L=i.T5,O=i.pH,k=i.e$,T=i._P,C=i.KL,R=i.pB,P=i.LJ,F=i.FR,M=i.nH,U=i.ys,H=i.B_,j=i.v$,N=i.Nj,V=i.B6,D=i.SV,$=i.xv,z=i.$O,G=i.w1,W=i.zq,q=i.yf,Z=i.iD,K=i.Cm,Y=i.Uk,X=i.EC;export{g as ASSISTANT_LAYER_INDOOR_FLOORS,m as ASSISTANT_LAYER_SHARED_FLOORS,_ as AccessControl,b as AccessControlOrigin,v as BuildingFilterControl,w as BuildingSelectorHandler,A as BuildingsService,E as DistanceSearchType,S as ERRORS,B as FloorSelectorHandler,x as FloorsControl,I as Indoor,L as Map,O as Marker,k as OFFSET,T as OrientationDistanceSearchType,C as PAGE,R as Poi,P as PoisOrderBy,F as PoisService,M as PoisSortBy,U as PresetLanguage,H as RoutePainter,j as RouteService,N as SwitchBuildingHandler,V as SwitchOutdoorHandler,D as ThemeType,$ as VERSION,z as VehicleType,G as VenuesService,W as __internal,q as convertBrowserLangToPresetLang,Z as getAccessToken,K as getIdentifier,Y as setGetTokenAsync,X as setupTokenManager};