@dcl/profile-site 0.4.1-5832653172.commit-ac47bf6 → 0.4.1-5833194274.commit-5ad3f93

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.
@@ -1,4 +1,4 @@
1
- import{s as Kl,i as Zl,a as Wl,w as Vl,b as Me,c as cr,B as X,r as Se,d as Vt,m as Is,h as Vf,e as Gl,f as Ts,j as Gf,k as Jf,l as Jl,n as zi,o as jl,p as Yl,g as jf,q as Xl,t as v0,u as Cs,v as Yf,x as Ql,y as tc,E as ec}from"./index-0a4138ae.js";import{j as Xf,s as Di,r as rc,a as ic,b as nc,p as ac,i as Ls,c as Ps,e as fc,l as oc,d as Os}from"./index-f1286987.js";import{p as Ns,s as Hi,a as Ki,d as Zi,c as Wi}from"./index-5990b9e5.js";import{d as sc}from"./dijkstra-f906a09e.js";import"./tslib-f5f1d03e.js";var zr={},qs={},hc=Object.prototype.toString,uc=Function.prototype.toString,lc=/^\s*(?:function)?\*/,Us=Kl(),Ra=Object.getPrototypeOf,cc=function(){if(!Us)return!1;try{return Function("return function*() {}")()}catch{}},Ba,dc=function(n){if(typeof n!="function")return!1;if(lc.test(uc.call(n)))return!0;if(!Us){var h=hc.call(n);return h==="[object GeneratorFunction]"}if(!Ra)return!1;if(typeof Ba>"u"){var u=cc();Ba=u?Ra(u):!1}return Ra(n)===Ba};(function(a){var n=Zl,h=dc,u=Vl,v=Wl;function o(P){return P.call.bind(P)}var w=typeof BigInt<"u",y=typeof Symbol<"u",b=o(Object.prototype.toString),B=o(Number.prototype.valueOf),k=o(String.prototype.valueOf),L=o(Boolean.prototype.valueOf);if(w)var q=o(BigInt.prototype.valueOf);if(y)var $=o(Symbol.prototype.valueOf);function M(P,H){if(typeof P!="object")return!1;try{return H(P),!0}catch{return!1}}a.isArgumentsObject=n,a.isGeneratorFunction=h,a.isTypedArray=v;function N(P){return typeof Promise<"u"&&P instanceof Promise||P!==null&&typeof P=="object"&&typeof P.then=="function"&&typeof P.catch=="function"}a.isPromise=N;function x(P){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(P):v(P)||R(P)}a.isArrayBufferView=x;function A(P){return u(P)==="Uint8Array"}a.isUint8Array=A;function S(P){return u(P)==="Uint8ClampedArray"}a.isUint8ClampedArray=S;function T(P){return u(P)==="Uint16Array"}a.isUint16Array=T;function O(P){return u(P)==="Uint32Array"}a.isUint32Array=O;function W(P){return u(P)==="Int8Array"}a.isInt8Array=W;function K(P){return u(P)==="Int16Array"}a.isInt16Array=K;function pt(P){return u(P)==="Int32Array"}a.isInt32Array=pt;function ct(P){return u(P)==="Float32Array"}a.isFloat32Array=ct;function dt(P){return u(P)==="Float64Array"}a.isFloat64Array=dt;function g(P){return u(P)==="BigInt64Array"}a.isBigInt64Array=g;function e(P){return u(P)==="BigUint64Array"}a.isBigUint64Array=e;function t(P){return b(P)==="[object Map]"}t.working=typeof Map<"u"&&t(new Map);function i(P){return typeof Map>"u"?!1:t.working?t(P):P instanceof Map}a.isMap=i;function s(P){return b(P)==="[object Set]"}s.working=typeof Set<"u"&&s(new Set);function l(P){return typeof Set>"u"?!1:s.working?s(P):P instanceof Set}a.isSet=l;function c(P){return b(P)==="[object WeakMap]"}c.working=typeof WeakMap<"u"&&c(new WeakMap);function p(P){return typeof WeakMap>"u"?!1:c.working?c(P):P instanceof WeakMap}a.isWeakMap=p;function d(P){return b(P)==="[object WeakSet]"}d.working=typeof WeakSet<"u"&&d(new WeakSet);function r(P){return d(P)}a.isWeakSet=r;function f(P){return b(P)==="[object ArrayBuffer]"}f.working=typeof ArrayBuffer<"u"&&f(new ArrayBuffer);function m(P){return typeof ArrayBuffer>"u"?!1:f.working?f(P):P instanceof ArrayBuffer}a.isArrayBuffer=m;function _(P){return b(P)==="[object DataView]"}_.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&_(new DataView(new ArrayBuffer(1),0,1));function R(P){return typeof DataView>"u"?!1:_.working?_(P):P instanceof DataView}a.isDataView=R;var C=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function F(P){return b(P)==="[object SharedArrayBuffer]"}function z(P){return typeof C>"u"?!1:(typeof F.working>"u"&&(F.working=F(new C)),F.working?F(P):P instanceof C)}a.isSharedArrayBuffer=z;function lt(P){return b(P)==="[object AsyncFunction]"}a.isAsyncFunction=lt;function G(P){return b(P)==="[object Map Iterator]"}a.isMapIterator=G;function Z(P){return b(P)==="[object Set Iterator]"}a.isSetIterator=Z;function mt(P){return b(P)==="[object Generator]"}a.isGeneratorObject=mt;function gt(P){return b(P)==="[object WebAssembly.Module]"}a.isWebAssemblyCompiledModule=gt;function j(P){return M(P,B)}a.isNumberObject=j;function Ct(P){return M(P,k)}a.isStringObject=Ct;function wt(P){return M(P,L)}a.isBooleanObject=wt;function Y(P){return w&&M(P,q)}a.isBigIntObject=Y;function U(P){return y&&M(P,$)}a.isSymbolObject=U;function I(P){return j(P)||Ct(P)||wt(P)||Y(P)||U(P)}a.isBoxedPrimitive=I;function E(P){return typeof Uint8Array<"u"&&(m(P)||z(P))}a.isAnyArrayBuffer=E,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(P){Object.defineProperty(a,P,{enumerable:!1,value:function(){throw new Error(P+" is not supported in userland")}})})})(qs);var vc=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"};(function(a){var n=Object.getOwnPropertyDescriptors||function(R){for(var C=Object.keys(R),F={},z=0;z<C.length;z++)F[C[z]]=Object.getOwnPropertyDescriptor(R,C[z]);return F},h=/%[sdj%]/g;a.format=function(_){if(!W(_)){for(var R=[],C=0;C<arguments.length;C++)R.push(w(arguments[C]));return R.join(" ")}for(var C=1,F=arguments,z=F.length,lt=String(_).replace(h,function(Z){if(Z==="%%")return"%";if(C>=z)return Z;switch(Z){case"%s":return String(F[C++]);case"%d":return Number(F[C++]);case"%j":try{return JSON.stringify(F[C++])}catch{return"[Circular]"}default:return Z}}),G=F[C];C<z;G=F[++C])S(G)||!dt(G)?lt+=" "+G:lt+=" "+w(G);return lt},a.deprecate=function(_,R){if(typeof Me<"u"&&Me.noDeprecation===!0)return _;if(typeof Me>"u")return function(){return a.deprecate(_,R).apply(this,arguments)};var C=!1;function F(){if(!C){if(Me.throwDeprecation)throw new Error(R);Me.traceDeprecation?console.trace(R):console.error(R),C=!0}return _.apply(this,arguments)}return F};var u={},v=/^$/;if({}.NODE_DEBUG){var o={}.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),v=new RegExp("^"+o+"$","i")}a.debuglog=function(_){if(_=_.toUpperCase(),!u[_])if(v.test(_)){var R=Me.pid;u[_]=function(){var C=a.format.apply(a,arguments);console.error("%s %d: %s",_,R,C)}}else u[_]=function(){};return u[_]};function w(_,R){var C={seen:[],stylize:b};return arguments.length>=3&&(C.depth=arguments[2]),arguments.length>=4&&(C.colors=arguments[3]),A(R)?C.showHidden=R:R&&a._extend(C,R),pt(C.showHidden)&&(C.showHidden=!1),pt(C.depth)&&(C.depth=2),pt(C.colors)&&(C.colors=!1),pt(C.customInspect)&&(C.customInspect=!0),C.colors&&(C.stylize=y),k(C,_,C.depth)}a.inspect=w,w.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},w.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function y(_,R){var C=w.styles[R];return C?"\x1B["+w.colors[C][0]+"m"+_+"\x1B["+w.colors[C][1]+"m":_}function b(_,R){return _}function B(_){var R={};return _.forEach(function(C,F){R[C]=!0}),R}function k(_,R,C){if(_.customInspect&&R&&t(R.inspect)&&R.inspect!==a.inspect&&!(R.constructor&&R.constructor.prototype===R)){var F=R.inspect(C,_);return W(F)||(F=k(_,F,C)),F}var z=L(_,R);if(z)return z;var lt=Object.keys(R),G=B(lt);if(_.showHidden&&(lt=Object.getOwnPropertyNames(R)),e(R)&&(lt.indexOf("message")>=0||lt.indexOf("description")>=0))return q(R);if(lt.length===0){if(t(R)){var Z=R.name?": "+R.name:"";return _.stylize("[Function"+Z+"]","special")}if(ct(R))return _.stylize(RegExp.prototype.toString.call(R),"regexp");if(g(R))return _.stylize(Date.prototype.toString.call(R),"date");if(e(R))return q(R)}var mt="",gt=!1,j=["{","}"];if(x(R)&&(gt=!0,j=["[","]"]),t(R)){var Ct=R.name?": "+R.name:"";mt=" [Function"+Ct+"]"}if(ct(R)&&(mt=" "+RegExp.prototype.toString.call(R)),g(R)&&(mt=" "+Date.prototype.toUTCString.call(R)),e(R)&&(mt=" "+q(R)),lt.length===0&&(!gt||R.length==0))return j[0]+mt+j[1];if(C<0)return ct(R)?_.stylize(RegExp.prototype.toString.call(R),"regexp"):_.stylize("[Object]","special");_.seen.push(R);var wt;return gt?wt=$(_,R,C,G,lt):wt=lt.map(function(Y){return M(_,R,C,G,Y,gt)}),_.seen.pop(),N(wt,mt,j)}function L(_,R){if(pt(R))return _.stylize("undefined","undefined");if(W(R)){var C="'"+JSON.stringify(R).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return _.stylize(C,"string")}if(O(R))return _.stylize(""+R,"number");if(A(R))return _.stylize(""+R,"boolean");if(S(R))return _.stylize("null","null")}function q(_){return"["+Error.prototype.toString.call(_)+"]"}function $(_,R,C,F,z){for(var lt=[],G=0,Z=R.length;G<Z;++G)d(R,String(G))?lt.push(M(_,R,C,F,String(G),!0)):lt.push("");return z.forEach(function(mt){mt.match(/^\d+$/)||lt.push(M(_,R,C,F,mt,!0))}),lt}function M(_,R,C,F,z,lt){var G,Z,mt;if(mt=Object.getOwnPropertyDescriptor(R,z)||{value:R[z]},mt.get?mt.set?Z=_.stylize("[Getter/Setter]","special"):Z=_.stylize("[Getter]","special"):mt.set&&(Z=_.stylize("[Setter]","special")),d(F,z)||(G="["+z+"]"),Z||(_.seen.indexOf(mt.value)<0?(S(C)?Z=k(_,mt.value,null):Z=k(_,mt.value,C-1),Z.indexOf(`
1
+ import{s as Kl,i as Zl,a as Wl,w as Vl,b as Me,c as cr,B as X,r as Se,d as Vt,m as Is,h as Vf,e as Gl,f as Ts,j as Gf,k as Jf,l as Jl,n as zi,o as jl,p as Yl,g as jf,q as Xl,t as v0,u as Cs,v as Yf,x as Ql,y as tc,E as ec}from"./index-1987bdcd.js";import{j as Xf,s as Di,r as rc,a as ic,b as nc,p as ac,i as Ls,c as Ps,e as fc,l as oc,d as Os}from"./index-71c53ccf.js";import{p as Ns,s as Hi,a as Ki,d as Zi,c as Wi}from"./index-6387c4bb.js";import{d as sc}from"./dijkstra-f906a09e.js";import"./tslib-28aaec7a.js";var zr={},qs={},hc=Object.prototype.toString,uc=Function.prototype.toString,lc=/^\s*(?:function)?\*/,Us=Kl(),Ra=Object.getPrototypeOf,cc=function(){if(!Us)return!1;try{return Function("return function*() {}")()}catch{}},Ba,dc=function(n){if(typeof n!="function")return!1;if(lc.test(uc.call(n)))return!0;if(!Us){var h=hc.call(n);return h==="[object GeneratorFunction]"}if(!Ra)return!1;if(typeof Ba>"u"){var u=cc();Ba=u?Ra(u):!1}return Ra(n)===Ba};(function(a){var n=Zl,h=dc,u=Vl,v=Wl;function o(P){return P.call.bind(P)}var w=typeof BigInt<"u",y=typeof Symbol<"u",b=o(Object.prototype.toString),B=o(Number.prototype.valueOf),k=o(String.prototype.valueOf),L=o(Boolean.prototype.valueOf);if(w)var q=o(BigInt.prototype.valueOf);if(y)var $=o(Symbol.prototype.valueOf);function M(P,H){if(typeof P!="object")return!1;try{return H(P),!0}catch{return!1}}a.isArgumentsObject=n,a.isGeneratorFunction=h,a.isTypedArray=v;function N(P){return typeof Promise<"u"&&P instanceof Promise||P!==null&&typeof P=="object"&&typeof P.then=="function"&&typeof P.catch=="function"}a.isPromise=N;function x(P){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(P):v(P)||R(P)}a.isArrayBufferView=x;function A(P){return u(P)==="Uint8Array"}a.isUint8Array=A;function S(P){return u(P)==="Uint8ClampedArray"}a.isUint8ClampedArray=S;function T(P){return u(P)==="Uint16Array"}a.isUint16Array=T;function O(P){return u(P)==="Uint32Array"}a.isUint32Array=O;function W(P){return u(P)==="Int8Array"}a.isInt8Array=W;function K(P){return u(P)==="Int16Array"}a.isInt16Array=K;function pt(P){return u(P)==="Int32Array"}a.isInt32Array=pt;function ct(P){return u(P)==="Float32Array"}a.isFloat32Array=ct;function dt(P){return u(P)==="Float64Array"}a.isFloat64Array=dt;function g(P){return u(P)==="BigInt64Array"}a.isBigInt64Array=g;function e(P){return u(P)==="BigUint64Array"}a.isBigUint64Array=e;function t(P){return b(P)==="[object Map]"}t.working=typeof Map<"u"&&t(new Map);function i(P){return typeof Map>"u"?!1:t.working?t(P):P instanceof Map}a.isMap=i;function s(P){return b(P)==="[object Set]"}s.working=typeof Set<"u"&&s(new Set);function l(P){return typeof Set>"u"?!1:s.working?s(P):P instanceof Set}a.isSet=l;function c(P){return b(P)==="[object WeakMap]"}c.working=typeof WeakMap<"u"&&c(new WeakMap);function p(P){return typeof WeakMap>"u"?!1:c.working?c(P):P instanceof WeakMap}a.isWeakMap=p;function d(P){return b(P)==="[object WeakSet]"}d.working=typeof WeakSet<"u"&&d(new WeakSet);function r(P){return d(P)}a.isWeakSet=r;function f(P){return b(P)==="[object ArrayBuffer]"}f.working=typeof ArrayBuffer<"u"&&f(new ArrayBuffer);function m(P){return typeof ArrayBuffer>"u"?!1:f.working?f(P):P instanceof ArrayBuffer}a.isArrayBuffer=m;function _(P){return b(P)==="[object DataView]"}_.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&_(new DataView(new ArrayBuffer(1),0,1));function R(P){return typeof DataView>"u"?!1:_.working?_(P):P instanceof DataView}a.isDataView=R;var C=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function F(P){return b(P)==="[object SharedArrayBuffer]"}function z(P){return typeof C>"u"?!1:(typeof F.working>"u"&&(F.working=F(new C)),F.working?F(P):P instanceof C)}a.isSharedArrayBuffer=z;function lt(P){return b(P)==="[object AsyncFunction]"}a.isAsyncFunction=lt;function G(P){return b(P)==="[object Map Iterator]"}a.isMapIterator=G;function Z(P){return b(P)==="[object Set Iterator]"}a.isSetIterator=Z;function mt(P){return b(P)==="[object Generator]"}a.isGeneratorObject=mt;function gt(P){return b(P)==="[object WebAssembly.Module]"}a.isWebAssemblyCompiledModule=gt;function j(P){return M(P,B)}a.isNumberObject=j;function Ct(P){return M(P,k)}a.isStringObject=Ct;function wt(P){return M(P,L)}a.isBooleanObject=wt;function Y(P){return w&&M(P,q)}a.isBigIntObject=Y;function U(P){return y&&M(P,$)}a.isSymbolObject=U;function I(P){return j(P)||Ct(P)||wt(P)||Y(P)||U(P)}a.isBoxedPrimitive=I;function E(P){return typeof Uint8Array<"u"&&(m(P)||z(P))}a.isAnyArrayBuffer=E,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(P){Object.defineProperty(a,P,{enumerable:!1,value:function(){throw new Error(P+" is not supported in userland")}})})})(qs);var vc=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"};(function(a){var n=Object.getOwnPropertyDescriptors||function(R){for(var C=Object.keys(R),F={},z=0;z<C.length;z++)F[C[z]]=Object.getOwnPropertyDescriptor(R,C[z]);return F},h=/%[sdj%]/g;a.format=function(_){if(!W(_)){for(var R=[],C=0;C<arguments.length;C++)R.push(w(arguments[C]));return R.join(" ")}for(var C=1,F=arguments,z=F.length,lt=String(_).replace(h,function(Z){if(Z==="%%")return"%";if(C>=z)return Z;switch(Z){case"%s":return String(F[C++]);case"%d":return Number(F[C++]);case"%j":try{return JSON.stringify(F[C++])}catch{return"[Circular]"}default:return Z}}),G=F[C];C<z;G=F[++C])S(G)||!dt(G)?lt+=" "+G:lt+=" "+w(G);return lt},a.deprecate=function(_,R){if(typeof Me<"u"&&Me.noDeprecation===!0)return _;if(typeof Me>"u")return function(){return a.deprecate(_,R).apply(this,arguments)};var C=!1;function F(){if(!C){if(Me.throwDeprecation)throw new Error(R);Me.traceDeprecation?console.trace(R):console.error(R),C=!0}return _.apply(this,arguments)}return F};var u={},v=/^$/;if({}.NODE_DEBUG){var o={}.NODE_DEBUG;o=o.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),v=new RegExp("^"+o+"$","i")}a.debuglog=function(_){if(_=_.toUpperCase(),!u[_])if(v.test(_)){var R=Me.pid;u[_]=function(){var C=a.format.apply(a,arguments);console.error("%s %d: %s",_,R,C)}}else u[_]=function(){};return u[_]};function w(_,R){var C={seen:[],stylize:b};return arguments.length>=3&&(C.depth=arguments[2]),arguments.length>=4&&(C.colors=arguments[3]),A(R)?C.showHidden=R:R&&a._extend(C,R),pt(C.showHidden)&&(C.showHidden=!1),pt(C.depth)&&(C.depth=2),pt(C.colors)&&(C.colors=!1),pt(C.customInspect)&&(C.customInspect=!0),C.colors&&(C.stylize=y),k(C,_,C.depth)}a.inspect=w,w.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},w.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function y(_,R){var C=w.styles[R];return C?"\x1B["+w.colors[C][0]+"m"+_+"\x1B["+w.colors[C][1]+"m":_}function b(_,R){return _}function B(_){var R={};return _.forEach(function(C,F){R[C]=!0}),R}function k(_,R,C){if(_.customInspect&&R&&t(R.inspect)&&R.inspect!==a.inspect&&!(R.constructor&&R.constructor.prototype===R)){var F=R.inspect(C,_);return W(F)||(F=k(_,F,C)),F}var z=L(_,R);if(z)return z;var lt=Object.keys(R),G=B(lt);if(_.showHidden&&(lt=Object.getOwnPropertyNames(R)),e(R)&&(lt.indexOf("message")>=0||lt.indexOf("description")>=0))return q(R);if(lt.length===0){if(t(R)){var Z=R.name?": "+R.name:"";return _.stylize("[Function"+Z+"]","special")}if(ct(R))return _.stylize(RegExp.prototype.toString.call(R),"regexp");if(g(R))return _.stylize(Date.prototype.toString.call(R),"date");if(e(R))return q(R)}var mt="",gt=!1,j=["{","}"];if(x(R)&&(gt=!0,j=["[","]"]),t(R)){var Ct=R.name?": "+R.name:"";mt=" [Function"+Ct+"]"}if(ct(R)&&(mt=" "+RegExp.prototype.toString.call(R)),g(R)&&(mt=" "+Date.prototype.toUTCString.call(R)),e(R)&&(mt=" "+q(R)),lt.length===0&&(!gt||R.length==0))return j[0]+mt+j[1];if(C<0)return ct(R)?_.stylize(RegExp.prototype.toString.call(R),"regexp"):_.stylize("[Object]","special");_.seen.push(R);var wt;return gt?wt=$(_,R,C,G,lt):wt=lt.map(function(Y){return M(_,R,C,G,Y,gt)}),_.seen.pop(),N(wt,mt,j)}function L(_,R){if(pt(R))return _.stylize("undefined","undefined");if(W(R)){var C="'"+JSON.stringify(R).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return _.stylize(C,"string")}if(O(R))return _.stylize(""+R,"number");if(A(R))return _.stylize(""+R,"boolean");if(S(R))return _.stylize("null","null")}function q(_){return"["+Error.prototype.toString.call(_)+"]"}function $(_,R,C,F,z){for(var lt=[],G=0,Z=R.length;G<Z;++G)d(R,String(G))?lt.push(M(_,R,C,F,String(G),!0)):lt.push("");return z.forEach(function(mt){mt.match(/^\d+$/)||lt.push(M(_,R,C,F,mt,!0))}),lt}function M(_,R,C,F,z,lt){var G,Z,mt;if(mt=Object.getOwnPropertyDescriptor(R,z)||{value:R[z]},mt.get?mt.set?Z=_.stylize("[Getter/Setter]","special"):Z=_.stylize("[Getter]","special"):mt.set&&(Z=_.stylize("[Setter]","special")),d(F,z)||(G="["+z+"]"),Z||(_.seen.indexOf(mt.value)<0?(S(C)?Z=k(_,mt.value,null):Z=k(_,mt.value,C-1),Z.indexOf(`
2
2
  `)>-1&&(lt?Z=Z.split(`
3
3
  `).map(function(gt){return" "+gt}).join(`
4
4
  `).slice(2):Z=`
@@ -1,4 +1,4 @@
1
- import{n as _t,s as ce,T as N,t as U,a as C,o as ot,R as Bo,p as q,y as gt}from"./index-dbd01199.js";import{d as Do}from"./dijkstra-f906a09e.js";import"./index-0a4138ae.js";/**
1
+ import{n as _t,s as ce,T as N,t as U,a as C,o as ot,R as Bo,p as q,y as gt}from"./index-5adf8058.js";import{d as Do}from"./dijkstra-f906a09e.js";import"./index-1987bdcd.js";/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1 +1 @@
1
- import{_ as pe}from"./index-0a4138ae.js";const me=Symbol(),ee=Object.getPrototypeOf,F=new WeakMap,ge=e=>e&&(F.has(e)?F.get(e):ee(e)===Object.prototype||ee(e)===Array.prototype),he=e=>ge(e)&&e[me]||null,te=(e,t=!0)=>{F.set(e,t)},J=e=>typeof e=="object"&&e!==null,D=new WeakMap,B=new WeakSet,be=(e=Object.is,t=(n,W)=>new Proxy(n,W),s=n=>J(n)&&!B.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),i=n=>n.configurable&&n.enumerable&&n.writable,c=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},d=new WeakMap,g=(n,W,C=c)=>{const b=d.get(n);if((b==null?void 0:b[0])===W)return b[1];const y=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return te(y,!0),d.set(n,[W,y]),Reflect.ownKeys(n).forEach(k=>{if(Object.getOwnPropertyDescriptor(y,k))return;const A=Reflect.get(n,k),M={value:A,enumerable:!0,configurable:!0};if(B.has(A))te(A,!1);else if(A instanceof Promise)delete M.value,M.get=()=>C(A);else if(D.has(A)){const[v,z]=D.get(A);M.value=g(v,z(),C)}Object.defineProperty(y,k,M)}),Object.preventExtensions(y)},m=new WeakMap,h=[1,1],j=n=>{if(!J(n))throw new Error("object required");const W=m.get(n);if(W)return W;let C=h[0];const b=new Set,y=(a,o=++h[0])=>{C!==o&&(C=o,b.forEach(l=>l(a,o)))};let k=h[1];const A=(a=++h[1])=>(k!==a&&!b.size&&(k=a,v.forEach(([o])=>{const l=o[1](a);l>C&&(C=l)})),C),M=a=>(o,l)=>{const r=[...o];r[1]=[a,...r[1]],y(r,l)},v=new Map,z=(a,o)=>{if(b.size){const l=o[3](M(a));v.set(a,[o,l])}else v.set(a,[o])},Y=a=>{var o;const l=v.get(a);l&&(v.delete(a),(o=l[1])==null||o.call(l))},ue=a=>(b.add(a),b.size===1&&v.forEach(([l,r],I)=>{const S=l[3](M(I));v.set(I,[l,S])}),()=>{b.delete(a),b.size===0&&v.forEach(([l,r],I)=>{r&&(r(),v.set(I,[l]))})}),H=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),Z=(a,o,l,r,I)=>{if(a&&(e(o,r)||m.has(r)&&e(o,m.get(r))))return;Y(l),J(r)&&(r=he(r)||r);let S=r;if(r instanceof Promise)r.then(E=>{r.status="fulfilled",r.value=E,y(["resolve",[l],E])}).catch(E=>{r.status="rejected",r.reason=E,y(["reject",[l],E])});else{!D.has(r)&&s(r)&&(S=j(r));const E=!B.has(S)&&D.get(S);E&&z(l,E)}I(S),y(["set",[l],r,o])},$=t(H,{deleteProperty(a,o){const l=Reflect.get(a,o);Y(o);const r=Reflect.deleteProperty(a,o);return r&&y(["delete",[o],l]),r},set(a,o,l,r){const I=Reflect.has(a,o),S=Reflect.get(a,o,r);return Z(I,S,o,l,E=>{Reflect.set(a,o,E,r)}),!0},defineProperty(a,o,l){if(i(l)){const r=Reflect.getOwnPropertyDescriptor(a,o);if(!r||i(r))return Z(!!r&&"value"in r,r==null?void 0:r.value,o,l.value,I=>{Reflect.defineProperty(a,o,{...l,value:I})}),!0}return Reflect.defineProperty(a,o,l)}});m.set(n,$);const fe=[H,A,g,ue];return D.set($,fe),Reflect.ownKeys(n).forEach(a=>{const o=Object.getOwnPropertyDescriptor(n,a);"value"in o&&($[a]=n[a],delete o.value,delete o.writable),Object.defineProperty(H,a,o)}),$})=>[j,D,B,e,t,s,i,c,d,g,m,h],[ye]=be();function U(e={}){return ye(e)}function _(e,t,s){const i=D.get(e);let c;const d=[],g=i[3];let m=!1;const j=g(n=>{if(d.push(n),s){t(d.splice(0));return}c||(c=Promise.resolve().then(()=>{c=void 0,m&&t(d.splice(0))}))});return m=!0,()=>{m=!1,j()}}function ve(e,t){const s=D.get(e),[i,c,d]=s;return d(i,c(),t)}const u=U({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),de={state:u,subscribe(e){return _(u,()=>e(u))},push(e,t){e!==u.view&&(u.view=e,t&&(u.data=t),u.history.push(e))},reset(e){u.view=e,u.history=[e]},replace(e){u.history.length>1&&(u.history[u.history.length-1]=e,u.view=e)},goBack(){if(u.history.length>1){u.history.pop();const[e]=u.history.slice(-1);u.view=e}},setData(e){u.data=e}},p={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return p.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return p.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(p.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let i=e;i.includes("://")||(i=e.replaceAll("/","").replaceAll(":",""),i=`${i}://`),i.endsWith("/")||(i=`${i}/`),this.setWalletConnectDeepLink(i,s);const c=encodeURIComponent(t);return`${i}wc?uri=${c}`},formatUniversalUrl(e,t,s){if(!p.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let i=e;i.endsWith("/")||(i=`${i}/`),this.setWalletConnectDeepLink(i,s);const c=encodeURIComponent(t);return`${i}wc?uri=${c}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(p.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(p.WCM_VERSION,"2.6.1")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=de.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),f=U({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),Ie={state:f,subscribe(e){return _(f.events,()=>e(ve(f.events[f.events.length-1])))},initialize(){f.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(f.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){f.connectedWalletId=e},click(e){if(f.enabled){const t={type:"CLICK",name:e.name,userSessionId:f.userSessionId,timestamp:Date.now(),data:e};f.events.push(t)}},track(e){if(f.enabled){const t={type:"TRACK",name:e.name,userSessionId:f.userSessionId,timestamp:Date.now(),data:e};f.events.push(t)}},view(e){if(f.enabled){const t={type:"VIEW",name:e.name,userSessionId:f.userSessionId,timestamp:Date.now(),data:e};f.events.push(t)}}},L=U({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),w={state:L,subscribe(e){return _(L,()=>e(L))},setChains(e){L.chains=e},setWalletConnectUri(e){L.walletConnectUri=e},setIsCustomDesktop(e){L.isCustomDesktop=e},setIsCustomMobile(e){L.isCustomMobile=e},setIsDataLoaded(e){L.isDataLoaded=e},setIsUiLoaded(e){L.isUiLoaded=e},setIsAuth(e){L.isAuth=e}},x=U({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),T={state:x,subscribe(e){return _(x,()=>e(x))},setConfig(e){var t,s;Ie.initialize(),w.setChains(e.chains),w.setIsAuth(!!e.enableAuthMode),w.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),w.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),p.setModalVersionInStorage(),Object.assign(x,e)}};var Ee=Object.defineProperty,se=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ne=(e,t,s)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,We=(e,t)=>{for(var s in t||(t={}))Le.call(t,s)&&ne(e,s,t[s]);if(se)for(var s of se(t))Oe.call(t,s)&&ne(e,s,t[s]);return e};const G="https://explorer-api.walletconnect.com",Q="wcm",X="js-2.6.1";async function K(e,t){const s=We({sdkType:Q,sdkVersion:X},t),i=new URL(e,G);return i.searchParams.append("projectId",T.state.projectId),Object.entries(s).forEach(([c,d])=>{d&&i.searchParams.append(c,String(d))}),(await fetch(i)).json()}const P={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${G}/w3m/v1/getWalletImage/${e}?projectId=${T.state.projectId}&sdkType=${Q}&sdkVersion=${X}`},getAssetImageUrl(e){return`${G}/w3m/v1/getAssetImage/${e}?projectId=${T.state.projectId}&sdkType=${Q}&sdkVersion=${X}`}};var Ae=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,De=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Se.call(t,s)&&re(e,s,t[s]);return e};const ie=p.isMobile(),O=U({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Te={state:O,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=T.state;if(e==="NONE"||t==="ALL"&&!e)return O.recomendedWallets;if(p.isArray(e)){const s={recommendedIds:e.join(",")},{listings:i}=await P.getAllListings(s),c=Object.values(i);c.sort((d,g)=>{const m=e.indexOf(d.id),h=e.indexOf(g.id);return m-h}),O.recomendedWallets=c}else{const{chains:s,isAuth:i}=w.state,c=s==null?void 0:s.join(","),d=p.isArray(t),g={page:1,sdks:i?"auth_v1":void 0,entries:p.RECOMMENDED_WALLET_AMOUNT,chains:c,version:2,excludedIds:d?t.join(","):void 0},{listings:m}=ie?await P.getMobileListings(g):await P.getDesktopListings(g);O.recomendedWallets=Object.values(m)}return O.recomendedWallets},async getWallets(e){const t=De({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:i}=T.state,{recomendedWallets:c}=O;if(i==="ALL")return O.wallets;c.length?t.excludedIds=c.map(W=>W.id).join(","):p.isArray(s)&&(t.excludedIds=s.join(",")),p.isArray(i)&&(t.excludedIds=[t.excludedIds,i].filter(Boolean).join(",")),w.state.isAuth&&(t.sdks="auth_v1");const{page:d,search:g}=e,{listings:m,total:h}=ie?await P.getMobileListings(t):await P.getDesktopListings(t),j=Object.values(m),n=g?"search":"wallets";return O[n]={listings:[...O[n].listings,...j],total:h,page:d??1},{listings:j,total:h}},getWalletImageUrl(e){return P.getWalletImageUrl(e)},getAssetImageUrl(e){return P.getAssetImageUrl(e)},resetSearch(){O.search={listings:[],total:0,page:1}}},N=U({open:!1}),q={state:N,subscribe(e){return _(N,()=>e(N))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:i}=w.state;if(p.removeWalletConnectDeepLink(),w.setWalletConnectUri(e==null?void 0:e.uri),w.setChains(e==null?void 0:e.chains),de.reset("ConnectWallet"),s&&i)N.open=!0,t();else{const c=setInterval(()=>{const d=w.state;d.isUiLoaded&&d.isDataLoaded&&(clearInterval(c),N.open=!0,t())},200)}})},close(){N.open=!1}};var Ue=Object.defineProperty,ae=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,le=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Pe=(e,t)=>{for(var s in t||(t={}))je.call(t,s)&&le(e,s,t[s]);if(ae)for(var s of ae(t))Me.call(t,s)&&le(e,s,t[s]);return e};function Re(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const V=U({themeMode:Re()?"dark":"light"}),ce={state:V,subscribe(e){return _(V,()=>e(V))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(V.themeMode=t),s&&(V.themeVariables=Pe({},s))}},R=U({open:!1,message:"",variant:"success"}),Ve={state:R,subscribe(e){return _(R,()=>e(R))},openToast(e,t){R.open=!0,R.message=e,R.variant=t},closeToast(){R.open=!1}};class _e{constructor(t){this.openModal=q.open,this.closeModal=q.close,this.subscribeModal=q.subscribe,this.setTheme=ce.setThemeConfig,ce.setThemeConfig(t),T.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await pe(()=>import("./index-49898853.js"),["assets/index-49898853.js","assets/dijkstra-f906a09e.js","assets/index-0a4138ae.js","assets/index-27cab911.css"]);const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),w.setIsUiLoaded(!0)}}}const $e=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:_e},Symbol.toStringTag,{value:"Module"}));export{Ie as R,de as T,p as a,$e as i,ce as n,Ve as o,w as p,q as s,Te as t,T as y};
1
+ import{_ as pe}from"./index-1987bdcd.js";const me=Symbol(),ee=Object.getPrototypeOf,F=new WeakMap,ge=e=>e&&(F.has(e)?F.get(e):ee(e)===Object.prototype||ee(e)===Array.prototype),he=e=>ge(e)&&e[me]||null,te=(e,t=!0)=>{F.set(e,t)},J=e=>typeof e=="object"&&e!==null,D=new WeakMap,B=new WeakSet,be=(e=Object.is,t=(n,W)=>new Proxy(n,W),s=n=>J(n)&&!B.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),i=n=>n.configurable&&n.enumerable&&n.writable,c=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},d=new WeakMap,g=(n,W,C=c)=>{const b=d.get(n);if((b==null?void 0:b[0])===W)return b[1];const y=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return te(y,!0),d.set(n,[W,y]),Reflect.ownKeys(n).forEach(k=>{if(Object.getOwnPropertyDescriptor(y,k))return;const A=Reflect.get(n,k),M={value:A,enumerable:!0,configurable:!0};if(B.has(A))te(A,!1);else if(A instanceof Promise)delete M.value,M.get=()=>C(A);else if(D.has(A)){const[v,z]=D.get(A);M.value=g(v,z(),C)}Object.defineProperty(y,k,M)}),Object.preventExtensions(y)},m=new WeakMap,h=[1,1],j=n=>{if(!J(n))throw new Error("object required");const W=m.get(n);if(W)return W;let C=h[0];const b=new Set,y=(a,o=++h[0])=>{C!==o&&(C=o,b.forEach(l=>l(a,o)))};let k=h[1];const A=(a=++h[1])=>(k!==a&&!b.size&&(k=a,v.forEach(([o])=>{const l=o[1](a);l>C&&(C=l)})),C),M=a=>(o,l)=>{const r=[...o];r[1]=[a,...r[1]],y(r,l)},v=new Map,z=(a,o)=>{if(b.size){const l=o[3](M(a));v.set(a,[o,l])}else v.set(a,[o])},Y=a=>{var o;const l=v.get(a);l&&(v.delete(a),(o=l[1])==null||o.call(l))},ue=a=>(b.add(a),b.size===1&&v.forEach(([l,r],I)=>{const S=l[3](M(I));v.set(I,[l,S])}),()=>{b.delete(a),b.size===0&&v.forEach(([l,r],I)=>{r&&(r(),v.set(I,[l]))})}),H=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),Z=(a,o,l,r,I)=>{if(a&&(e(o,r)||m.has(r)&&e(o,m.get(r))))return;Y(l),J(r)&&(r=he(r)||r);let S=r;if(r instanceof Promise)r.then(E=>{r.status="fulfilled",r.value=E,y(["resolve",[l],E])}).catch(E=>{r.status="rejected",r.reason=E,y(["reject",[l],E])});else{!D.has(r)&&s(r)&&(S=j(r));const E=!B.has(S)&&D.get(S);E&&z(l,E)}I(S),y(["set",[l],r,o])},$=t(H,{deleteProperty(a,o){const l=Reflect.get(a,o);Y(o);const r=Reflect.deleteProperty(a,o);return r&&y(["delete",[o],l]),r},set(a,o,l,r){const I=Reflect.has(a,o),S=Reflect.get(a,o,r);return Z(I,S,o,l,E=>{Reflect.set(a,o,E,r)}),!0},defineProperty(a,o,l){if(i(l)){const r=Reflect.getOwnPropertyDescriptor(a,o);if(!r||i(r))return Z(!!r&&"value"in r,r==null?void 0:r.value,o,l.value,I=>{Reflect.defineProperty(a,o,{...l,value:I})}),!0}return Reflect.defineProperty(a,o,l)}});m.set(n,$);const fe=[H,A,g,ue];return D.set($,fe),Reflect.ownKeys(n).forEach(a=>{const o=Object.getOwnPropertyDescriptor(n,a);"value"in o&&($[a]=n[a],delete o.value,delete o.writable),Object.defineProperty(H,a,o)}),$})=>[j,D,B,e,t,s,i,c,d,g,m,h],[ye]=be();function U(e={}){return ye(e)}function _(e,t,s){const i=D.get(e);let c;const d=[],g=i[3];let m=!1;const j=g(n=>{if(d.push(n),s){t(d.splice(0));return}c||(c=Promise.resolve().then(()=>{c=void 0,m&&t(d.splice(0))}))});return m=!0,()=>{m=!1,j()}}function ve(e,t){const s=D.get(e),[i,c,d]=s;return d(i,c(),t)}const u=U({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),de={state:u,subscribe(e){return _(u,()=>e(u))},push(e,t){e!==u.view&&(u.view=e,t&&(u.data=t),u.history.push(e))},reset(e){u.view=e,u.history=[e]},replace(e){u.history.length>1&&(u.history[u.history.length-1]=e,u.view=e)},goBack(){if(u.history.length>1){u.history.pop();const[e]=u.history.slice(-1);u.view=e}},setData(e){u.data=e}},p={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return p.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return p.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(p.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let i=e;i.includes("://")||(i=e.replaceAll("/","").replaceAll(":",""),i=`${i}://`),i.endsWith("/")||(i=`${i}/`),this.setWalletConnectDeepLink(i,s);const c=encodeURIComponent(t);return`${i}wc?uri=${c}`},formatUniversalUrl(e,t,s){if(!p.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let i=e;i.endsWith("/")||(i=`${i}/`),this.setWalletConnectDeepLink(i,s);const c=encodeURIComponent(t);return`${i}wc?uri=${c}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(p.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(p.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(p.WCM_VERSION,"2.6.1")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=de.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),f=U({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),Ie={state:f,subscribe(e){return _(f.events,()=>e(ve(f.events[f.events.length-1])))},initialize(){f.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(f.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){f.connectedWalletId=e},click(e){if(f.enabled){const t={type:"CLICK",name:e.name,userSessionId:f.userSessionId,timestamp:Date.now(),data:e};f.events.push(t)}},track(e){if(f.enabled){const t={type:"TRACK",name:e.name,userSessionId:f.userSessionId,timestamp:Date.now(),data:e};f.events.push(t)}},view(e){if(f.enabled){const t={type:"VIEW",name:e.name,userSessionId:f.userSessionId,timestamp:Date.now(),data:e};f.events.push(t)}}},L=U({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),w={state:L,subscribe(e){return _(L,()=>e(L))},setChains(e){L.chains=e},setWalletConnectUri(e){L.walletConnectUri=e},setIsCustomDesktop(e){L.isCustomDesktop=e},setIsCustomMobile(e){L.isCustomMobile=e},setIsDataLoaded(e){L.isDataLoaded=e},setIsUiLoaded(e){L.isUiLoaded=e},setIsAuth(e){L.isAuth=e}},x=U({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),T={state:x,subscribe(e){return _(x,()=>e(x))},setConfig(e){var t,s;Ie.initialize(),w.setChains(e.chains),w.setIsAuth(!!e.enableAuthMode),w.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),w.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),p.setModalVersionInStorage(),Object.assign(x,e)}};var Ee=Object.defineProperty,se=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,ne=(e,t,s)=>t in e?Ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,We=(e,t)=>{for(var s in t||(t={}))Le.call(t,s)&&ne(e,s,t[s]);if(se)for(var s of se(t))Oe.call(t,s)&&ne(e,s,t[s]);return e};const G="https://explorer-api.walletconnect.com",Q="wcm",X="js-2.6.1";async function K(e,t){const s=We({sdkType:Q,sdkVersion:X},t),i=new URL(e,G);return i.searchParams.append("projectId",T.state.projectId),Object.entries(s).forEach(([c,d])=>{d&&i.searchParams.append(c,String(d))}),(await fetch(i)).json()}const P={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${G}/w3m/v1/getWalletImage/${e}?projectId=${T.state.projectId}&sdkType=${Q}&sdkVersion=${X}`},getAssetImageUrl(e){return`${G}/w3m/v1/getAssetImage/${e}?projectId=${T.state.projectId}&sdkType=${Q}&sdkVersion=${X}`}};var Ae=Object.defineProperty,oe=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,De=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Se.call(t,s)&&re(e,s,t[s]);return e};const ie=p.isMobile(),O=U({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Te={state:O,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=T.state;if(e==="NONE"||t==="ALL"&&!e)return O.recomendedWallets;if(p.isArray(e)){const s={recommendedIds:e.join(",")},{listings:i}=await P.getAllListings(s),c=Object.values(i);c.sort((d,g)=>{const m=e.indexOf(d.id),h=e.indexOf(g.id);return m-h}),O.recomendedWallets=c}else{const{chains:s,isAuth:i}=w.state,c=s==null?void 0:s.join(","),d=p.isArray(t),g={page:1,sdks:i?"auth_v1":void 0,entries:p.RECOMMENDED_WALLET_AMOUNT,chains:c,version:2,excludedIds:d?t.join(","):void 0},{listings:m}=ie?await P.getMobileListings(g):await P.getDesktopListings(g);O.recomendedWallets=Object.values(m)}return O.recomendedWallets},async getWallets(e){const t=De({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:i}=T.state,{recomendedWallets:c}=O;if(i==="ALL")return O.wallets;c.length?t.excludedIds=c.map(W=>W.id).join(","):p.isArray(s)&&(t.excludedIds=s.join(",")),p.isArray(i)&&(t.excludedIds=[t.excludedIds,i].filter(Boolean).join(",")),w.state.isAuth&&(t.sdks="auth_v1");const{page:d,search:g}=e,{listings:m,total:h}=ie?await P.getMobileListings(t):await P.getDesktopListings(t),j=Object.values(m),n=g?"search":"wallets";return O[n]={listings:[...O[n].listings,...j],total:h,page:d??1},{listings:j,total:h}},getWalletImageUrl(e){return P.getWalletImageUrl(e)},getAssetImageUrl(e){return P.getAssetImageUrl(e)},resetSearch(){O.search={listings:[],total:0,page:1}}},N=U({open:!1}),q={state:N,subscribe(e){return _(N,()=>e(N))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:i}=w.state;if(p.removeWalletConnectDeepLink(),w.setWalletConnectUri(e==null?void 0:e.uri),w.setChains(e==null?void 0:e.chains),de.reset("ConnectWallet"),s&&i)N.open=!0,t();else{const c=setInterval(()=>{const d=w.state;d.isUiLoaded&&d.isDataLoaded&&(clearInterval(c),N.open=!0,t())},200)}})},close(){N.open=!1}};var Ue=Object.defineProperty,ae=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,le=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Pe=(e,t)=>{for(var s in t||(t={}))je.call(t,s)&&le(e,s,t[s]);if(ae)for(var s of ae(t))Me.call(t,s)&&le(e,s,t[s]);return e};function Re(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const V=U({themeMode:Re()?"dark":"light"}),ce={state:V,subscribe(e){return _(V,()=>e(V))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(V.themeMode=t),s&&(V.themeVariables=Pe({},s))}},R=U({open:!1,message:"",variant:"success"}),Ve={state:R,subscribe(e){return _(R,()=>e(R))},openToast(e,t){R.open=!0,R.message=e,R.variant=t},closeToast(){R.open=!1}};class _e{constructor(t){this.openModal=q.open,this.closeModal=q.close,this.subscribeModal=q.subscribe,this.setTheme=ce.setThemeConfig,ce.setThemeConfig(t),T.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await pe(()=>import("./index-4e412bfa.js"),["assets/index-4e412bfa.js","assets/dijkstra-f906a09e.js","assets/index-1987bdcd.js","assets/index-15021a5c.css"]);const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),w.setIsUiLoaded(!0)}}}const $e=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:_e},Symbol.toStringTag,{value:"Module"}));export{Ie as R,de as T,p as a,$e as i,ce as n,Ve as o,w as p,q as s,Te as t,T as y};
@@ -1 +1 @@
1
- import{t as h}from"./tslib-f5f1d03e.js";import{d as c,b as d}from"./index-0a4138ae.js";const b="PARSE_ERROR",F="INVALID_REQUEST",w="METHOD_NOT_FOUND",N="INVALID_PARAMS",m="INTERNAL_ERROR",R="SERVER_ERROR",D=[-32700,-32600,-32601,-32602,-32603],s={[b]:{code:-32700,message:"Parse error"},[F]:{code:-32600,message:"Invalid Request"},[w]:{code:-32601,message:"Method not found"},[N]:{code:-32602,message:"Invalid params"},[m]:{code:-32603,message:"Internal error"},[R]:{code:-32e3,message:"Server error"}},C=R;function A(e){return D.includes(e)}function l(e){return Object.keys(s).includes(e)?s[e]:s[C]}function I(e){const r=Object.values(s).find(t=>t.code===e);return r||s[C]}function V(e,r,t){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${t} RPC url at ${r}`):e}var S={},o={},E;function M(){if(E)return o;E=1,Object.defineProperty(o,"__esModule",{value:!0}),o.isBrowserCryptoAvailable=o.getSubtleCrypto=o.getBrowerCrypto=void 0;function e(){return(c===null||c===void 0?void 0:c.crypto)||(c===null||c===void 0?void 0:c.msCrypto)||{}}o.getBrowerCrypto=e;function r(){const a=e();return a.subtle||a.webkitSubtle}o.getSubtleCrypto=r;function t(){return!!e()&&!!r()}return o.isBrowserCryptoAvailable=t,o}var n={},v;function j(){if(v)return n;v=1,Object.defineProperty(n,"__esModule",{value:!0}),n.isBrowser=n.isNode=n.isReactNative=void 0;function e(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}n.isReactNative=e;function r(){return typeof d<"u"&&typeof d.versions<"u"&&typeof d.versions.node<"u"}n.isNode=r;function t(){return!e()&&!r()}return n.isBrowser=t,n}(function(e){Object.defineProperty(e,"__esModule",{value:!0});const r=h;r.__exportStar(M(),e),r.__exportStar(j(),e)})(S);function _(e=3){const r=Date.now()*Math.pow(10,e),t=Math.floor(Math.random()*Math.pow(10,e));return r+t}function q(e=6){return BigInt(_(e))}function $(e,r,t){return{id:t||_(),jsonrpc:"2.0",method:e,params:r}}function J(e,r){return{id:e,jsonrpc:"2.0",result:r}}function H(e,r,t){return{id:e,jsonrpc:"2.0",error:T(r,t)}}function T(e,r){return typeof e>"u"?l(m):(typeof e=="string"&&(e=Object.assign(Object.assign({},l(R)),{message:e})),typeof r<"u"&&(e.data=r),A(e.code)&&(e=I(e.code)),e)}var Q=e=>encodeURIComponent(e).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),O="%[a-f0-9]{2}",g=new RegExp("("+O+")|([^%]+?)","gi"),y=new RegExp("("+O+")+","gi");function f(e,r){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;r=r||1;var t=e.slice(0,r),a=e.slice(r);return Array.prototype.concat.call([],f(t),f(a))}function U(e){try{return decodeURIComponent(e)}catch{for(var r=e.match(g)||[],t=1;t<r.length;t++)e=f(r,t).join(""),r=e.match(g)||[];return e}}function x(e){for(var r={"%FE%FF":"��","%FF%FE":"��"},t=y.exec(e);t;){try{r[t[0]]=decodeURIComponent(t[0])}catch{var a=U(t[0]);a!==t[0]&&(r[t[0]]=a)}t=y.exec(e)}r["%C2"]="�";for(var i=Object.keys(r),u=0;u<i.length;u++){var p=i[u];e=e.replace(new RegExp(p,"g"),r[p])}return e}var k=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return x(e)}},G=(e,r)=>{if(!(typeof e=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(r==="")return[e];const t=e.indexOf(r);return t===-1?[e]:[e.slice(0,t),e.slice(t+r.length)]};export{Q as a,H as b,S as c,k as d,V as e,$ as f,q as g,J as h,_ as p,G as s};
1
+ import{t as h}from"./tslib-28aaec7a.js";import{d as c,b as d}from"./index-1987bdcd.js";const b="PARSE_ERROR",F="INVALID_REQUEST",w="METHOD_NOT_FOUND",N="INVALID_PARAMS",m="INTERNAL_ERROR",R="SERVER_ERROR",D=[-32700,-32600,-32601,-32602,-32603],s={[b]:{code:-32700,message:"Parse error"},[F]:{code:-32600,message:"Invalid Request"},[w]:{code:-32601,message:"Method not found"},[N]:{code:-32602,message:"Invalid params"},[m]:{code:-32603,message:"Internal error"},[R]:{code:-32e3,message:"Server error"}},C=R;function A(e){return D.includes(e)}function l(e){return Object.keys(s).includes(e)?s[e]:s[C]}function I(e){const r=Object.values(s).find(t=>t.code===e);return r||s[C]}function V(e,r,t){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${t} RPC url at ${r}`):e}var S={},o={},E;function M(){if(E)return o;E=1,Object.defineProperty(o,"__esModule",{value:!0}),o.isBrowserCryptoAvailable=o.getSubtleCrypto=o.getBrowerCrypto=void 0;function e(){return(c===null||c===void 0?void 0:c.crypto)||(c===null||c===void 0?void 0:c.msCrypto)||{}}o.getBrowerCrypto=e;function r(){const a=e();return a.subtle||a.webkitSubtle}o.getSubtleCrypto=r;function t(){return!!e()&&!!r()}return o.isBrowserCryptoAvailable=t,o}var n={},v;function j(){if(v)return n;v=1,Object.defineProperty(n,"__esModule",{value:!0}),n.isBrowser=n.isNode=n.isReactNative=void 0;function e(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}n.isReactNative=e;function r(){return typeof d<"u"&&typeof d.versions<"u"&&typeof d.versions.node<"u"}n.isNode=r;function t(){return!e()&&!r()}return n.isBrowser=t,n}(function(e){Object.defineProperty(e,"__esModule",{value:!0});const r=h;r.__exportStar(M(),e),r.__exportStar(j(),e)})(S);function _(e=3){const r=Date.now()*Math.pow(10,e),t=Math.floor(Math.random()*Math.pow(10,e));return r+t}function q(e=6){return BigInt(_(e))}function $(e,r,t){return{id:t||_(),jsonrpc:"2.0",method:e,params:r}}function J(e,r){return{id:e,jsonrpc:"2.0",result:r}}function H(e,r,t){return{id:e,jsonrpc:"2.0",error:T(r,t)}}function T(e,r){return typeof e>"u"?l(m):(typeof e=="string"&&(e=Object.assign(Object.assign({},l(R)),{message:e})),typeof r<"u"&&(e.data=r),A(e.code)&&(e=I(e.code)),e)}var Q=e=>encodeURIComponent(e).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),O="%[a-f0-9]{2}",g=new RegExp("("+O+")|([^%]+?)","gi"),y=new RegExp("("+O+")+","gi");function f(e,r){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;r=r||1;var t=e.slice(0,r),a=e.slice(r);return Array.prototype.concat.call([],f(t),f(a))}function U(e){try{return decodeURIComponent(e)}catch{for(var r=e.match(g)||[],t=1;t<r.length;t++)e=f(r,t).join(""),r=e.match(g)||[];return e}}function x(e){for(var r={"%FE%FF":"��","%FF%FE":"��"},t=y.exec(e);t;){try{r[t[0]]=decodeURIComponent(t[0])}catch{var a=U(t[0]);a!==t[0]&&(r[t[0]]=a)}t=y.exec(e)}r["%C2"]="�";for(var i=Object.keys(r),u=0;u<i.length;u++){var p=i[u];e=e.replace(new RegExp(p,"g"),r[p])}return e}var k=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return x(e)}},G=(e,r)=>{if(!(typeof e=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(r==="")return[e];const t=e.indexOf(r);return t===-1?[e]:[e.slice(0,t),e.slice(t+r.length)]};export{Q as a,H as b,S as c,k as d,V as e,$ as f,q as g,J as h,_ as p,G as s};