@dcl/explore-site 0.0.1-24246071323.commit-ae89de5 → 0.0.1-24252946891.commit-825a313
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/assets/{HomePage-BRjviy6i.js → HomePage-CaRpsccZ.js} +4 -4
- package/assets/{QueryClientProvider-DVdvK9va.js → QueryClientProvider-C-NHVHHp.js} +1 -1
- package/assets/{SensorsRounded-DtEz-w61.js → SensorsRounded-JPN-5LAe.js} +1 -1
- package/assets/{__federation_expose_App-UIDwSy0G.js → __federation_expose_App-IZ0GxuOa.js} +1 -1
- package/assets/{__federation_fn_import-DOIN05Fe.js → __federation_fn_import-BpUcHfOt.js} +1 -1
- package/assets/__federation_shared_@dcl/{hooks-CEZvoXY7.js → hooks-DmfiTWc1.js} +3 -3
- package/assets/__federation_shared_@emotion/react-CQqlYazz.js +1 -0
- package/assets/__federation_shared_@emotion/{styled-wDwr2-E1.js → styled-rphXTDtE.js} +1 -1
- package/assets/{__federation_shared_decentraland-ui2-CjnT6vsj.js → __federation_shared_decentraland-ui2-CGAOHsvb.js} +6 -6
- package/assets/{__federation_shared_react-redux-BtWPSCMa.js → __federation_shared_react-redux-DNN93ZTk.js} +1 -1
- package/assets/{__federation_shared_react-router-dom-B3WlSHDv.js → __federation_shared_react-router-dom-DAD_IRwb.js} +1 -1
- package/assets/{__federation_shared_viem-DsuBmHyA.js → __federation_shared_viem-CtaxVkf9.js} +1 -1
- package/assets/{__federation_shared_wagmi-31TKA6Na.js → __federation_shared_wagmi-Cy245c18.js} +1 -1
- package/assets/{add-B17vE1dj.js → add-CRDAsoS6.js} +1 -1
- package/assets/{all-wallets-br0SQ6f1.js → all-wallets-M8PSbQIn.js} +1 -1
- package/assets/{app-store-TXFDlG4m.js → app-store-BbwUhtBT.js} +1 -1
- package/assets/{apple-CdssIs8b.js → apple-KYMxwI8C.js} +1 -1
- package/assets/{arrow-bottom-UP46D1RV.js → arrow-bottom-CpvmQ1Sm.js} +1 -1
- package/assets/{arrow-bottom-circle-CfRtxqAu.js → arrow-bottom-circle-CerfhIVS.js} +1 -1
- package/assets/{arrow-left-D3MhBN-e.js → arrow-left-dVEFXKxi.js} +1 -1
- package/assets/{arrow-right-Ch9lwGLD.js → arrow-right-Co8yigww.js} +1 -1
- package/assets/{arrow-top-DDIdbITB.js → arrow-top-KlKLphV1.js} +1 -1
- package/assets/{auto-track-BD4cc-fa.js → auto-track-B5V2sEPk.js} +1 -1
- package/assets/{bank-BGNOYVBO.js → bank-DP6slqnu.js} +1 -1
- package/assets/{basic-0N_dp7rb.js → basic-Bbqn4F9Z.js} +1 -1
- package/assets/{browser-KaQl6Cnr.js → browser-DemG1Tjp.js} +1 -1
- package/assets/{card-DOmOrMqu.js → card-DI9bRVEe.js} +1 -1
- package/assets/{ccip-BFQdmFBy.js → ccip-BBFbZHDd.js} +1 -1
- package/assets/{checkmark-DZg8Fw7N.js → checkmark-ClaV4zyl.js} +1 -1
- package/assets/{checkmark-bold-CM6ftVnM.js → checkmark-bold-CpTXXIQl.js} +1 -1
- package/assets/{chevron-bottom-Brvj1wpB.js → chevron-bottom-B7WEB302.js} +1 -1
- package/assets/{chevron-left-C-_stSPs.js → chevron-left-s49yO0vq.js} +1 -1
- package/assets/{chevron-right-CJ-DS39V.js → chevron-right-DLxDeInf.js} +1 -1
- package/assets/{chevron-top-Bupj8RBl.js → chevron-top-BNesEvvt.js} +1 -1
- package/assets/{chrome-store-Dn25y4kY.js → chrome-store-CYoj3jLA.js} +1 -1
- package/assets/{clock-CKLihpL2.js → clock-Cowlhipt.js} +1 -1
- package/assets/{close-Z9iONWFp.js → close-CHDSWjeu.js} +1 -1
- package/assets/{coinPlaceholder-DQ41ohQH.js → coinPlaceholder-CWCahYS0.js} +1 -1
- package/assets/{compass-ChugCtf_.js → compass-DTVuLPLx.js} +1 -1
- package/assets/{copy-9OztSM3R.js → copy-CTWrc8Rs.js} +1 -1
- package/assets/{core-CqbgCIgs.js → core-CpW5hIOT.js} +15 -15
- package/assets/{createClient-BAE0sv6q.js → createClient-zxCjTTdy.js} +1 -1
- package/assets/{cursor-CKigdoE3.js → cursor-BFEE41Uw.js} +1 -1
- package/assets/{cursor-transparent-Us7WNmyD.js → cursor-transparent-_fazXWeP.js} +1 -1
- package/assets/{desktop-BaiVA8Uc.js → desktop-Cvlh7_59.js} +1 -1
- package/assets/{disconnect-7OJd5EWY.js → disconnect-D86MdYry.js} +1 -1
- package/assets/{discord-DSkCh_0K.js → discord-D3nT23vI.js} +1 -1
- package/assets/{emotion-react.browser.esm-Cjt1nLQy.js → emotion-react.browser.esm-Dg3AE4Kj.js} +1 -1
- package/assets/{emotion-use-insertion-effect-with-fallbacks.browser.esm-DTFFQVT5.js → emotion-use-insertion-effect-with-fallbacks.browser.esm-BB-KD4bd.js} +1 -1
- package/assets/{etherscan-B9ggfOFo.js → etherscan-BdEW9vqc.js} +1 -1
- package/assets/{exclamation-triangle-B5uAEtJv.js → exclamation-triangle-B5oynvdL.js} +1 -1
- package/assets/{extension-CZwaQr8E.js → extension-opfmx5KG.js} +1 -1
- package/assets/{external-link-9d8aMJCO.js → external-link-HqD0KIHl.js} +1 -1
- package/assets/{facebook-_59BVxWu.js → facebook-B4PtxY49.js} +1 -1
- package/assets/{farcaster-DQS8nu4z.js → farcaster-B7ZESl8t.js} +1 -1
- package/assets/{filters-C90VADFP.js → filters-B9Lc7WUh.js} +1 -1
- package/assets/{github-CDqiFRRV.js → github-ej36lilR.js} +1 -1
- package/assets/{google-D3ZLD7V0.js → google-SZDPskQA.js} +1 -1
- package/assets/{help-circle-DwFhBh3W.js → help-circle-Dlk1DWFb.js} +1 -1
- package/assets/{id-Wf1WiJ_c.js → id-C1JuIBUw.js} +1 -1
- package/assets/{image-BSuDouoM.js → image-DrbB-EB0.js} +1 -1
- package/assets/{index-MfeO5oeE.js → index-0ao9d42m.js} +1 -1
- package/assets/{index-CA-WFTlT.js → index-BEfcyzqC.js} +2 -2
- package/assets/{index-COyB700R.js → index-BO7uzrKR.js} +1 -1
- package/assets/{index-H1eeUSnc.js → index-Bsc49IIV.js} +3 -3
- package/assets/{index-BBhYzq_I.js → index-CS17BYIc.js} +1 -1
- package/assets/{index-BfCL0Ynt.js → index-DYH9xpq_.js} +1 -1
- package/assets/index-Dy0yjznp.js +1 -1
- package/assets/index-VfkM29PH.js +1 -1
- package/assets/{index-DVPxpamO.js → index-WpGhNLfq.js} +1 -1
- package/assets/{index-CfPI-P1k.js → index-YLeJoyMs.js} +1 -1
- package/assets/{index.es-GqjJpWVv.js → index.es-CPsAnK0o.js} +3 -3
- package/assets/{info-KVJmNAM1.js → info-CGOdSL7l.js} +1 -1
- package/assets/{info-circle-BAkis4An.js → info-circle-BwpvAP6c.js} +1 -1
- package/assets/jsx-runtime-B1l0k91v.js +1 -1
- package/assets/{lightbulb-DvypwuTo.js → lightbulb-DZgqqIhJ.js} +1 -1
- package/assets/{localBatchGatewayRequest--h_QH696.js → localBatchGatewayRequest-DCkB3-pI.js} +1 -1
- package/assets/{mail-C0ZQ2OFw.js → mail-DWm8ISSp.js} +1 -1
- package/assets/{mobile-D95B-d86.js → mobile-CbZLz58l.js} +1 -1
- package/assets/{more-Ckc8xbMi.js → more-DRXJyPbv.js} +1 -1
- package/assets/{network-placeholder-Du_5diSz.js → network-placeholder-n_BgsbNp.js} +1 -1
- package/assets/{nftPlaceholder-DJ5bJFkN.js → nftPlaceholder-BCafmzLA.js} +1 -1
- package/assets/{off-BRBvgMl0.js → off-9RGrlpVz.js} +1 -1
- package/assets/{play-store-DoDvVRZ-.js → play-store-CgGjC9IP.js} +1 -1
- package/assets/{plus-fWw3iSKX.js → plus-DSM-LJkV.js} +1 -1
- package/assets/{preload-helper-uzL1GC84.js → preload-helper-DQQ0dFoV.js} +1 -1
- package/assets/{qr-code-CLoQGf0c.js → qr-code-B_iIzgRO.js} +1 -1
- package/assets/{recycle-horizontal-Dnrx80ul.js → recycle-horizontal-Bo6tvA9N.js} +1 -1
- package/assets/{refresh-NegnxbG_.js → refresh-B78swHHA.js} +1 -1
- package/assets/remoteEntry.js +1 -1
- package/assets/{reown-logo-D8rUMmlK.js → reown-logo-D2dt5GtC.js} +1 -1
- package/assets/{search--YrVMMy1.js → search-MMFg1Zhv.js} +1 -1
- package/assets/{secp256k1-CjHSxuE9.js → secp256k1-n1MnUPPi.js} +1 -1
- package/assets/{send-IF-V9M84.js → send-B3i1cdWv.js} +1 -1
- package/assets/{swapHorizontal-Avk996iq.js → swapHorizontal-D_VQ2y9f.js} +1 -1
- package/assets/{swapHorizontalBold-QY0w0x1L.js → swapHorizontalBold-BYohtxO2.js} +1 -1
- package/assets/{swapHorizontalMedium-4E68r9Ea.js → swapHorizontalMedium-Clp3nUGv.js} +1 -1
- package/assets/{swapHorizontalRoundedBold-Ckq0UDlH.js → swapHorizontalRoundedBold-Huee7GR3.js} +1 -1
- package/assets/{swapVertical-Biv0XLn6.js → swapVertical-Cnz02KmB.js} +1 -1
- package/assets/{telegram-kbe52HxZ.js → telegram-CfNIuKsL.js} +1 -1
- package/assets/{three-dots-Cvmn1T3B.js → three-dots-BHatBJ1U.js} +1 -1
- package/assets/{twitch-xiYihv4n.js → twitch-Beqf5KuC.js} +1 -1
- package/assets/{twitterIcon-CKQV0KZg.js → twitterIcon-DuUcyFsu.js} +1 -1
- package/assets/{uid-ieBVluxa.js → uid-D-qT9Vzk.js} +3 -3
- package/assets/{verify-PSPXS3lv.js → verify-DcYfguuu.js} +1 -1
- package/assets/{verify-filled-YbPDTO-E.js → verify-filled-Bm-OA5jk.js} +1 -1
- package/assets/{w3m-modal-QecYxg5f.js → w3m-modal-DHdvQ3lm.js} +1 -1
- package/assets/{wallet-BNSIqWlE.js → wallet-BzCF_mRB.js} +1 -1
- package/assets/{wallet-placeholder-Bv2KpoHQ.js → wallet-placeholder-CLEz6Dmc.js} +1 -1
- package/assets/{walletconnect-C6CNMujO.js → walletconnect-CFHDyppb.js} +1 -1
- package/assets/{warning-circle-B9qiI-5-.js → warning-circle-CVUFMZ_R.js} +1 -1
- package/assets/{webSocket-CM2e8Bnr.js → webSocket--2m-5bpv.js} +1 -1
- package/assets/{x-BM7XqFnO.js → x-DpE2gOjc.js} +1 -1
- package/index.html +14 -14
- package/package.json +3 -3
- package/assets/__federation_shared_@emotion/react-D39P6GYA.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{importShared as Q}from"./__federation_fn_import-
|
|
1
|
+
import{importShared as Q}from"./__federation_fn_import-BpUcHfOt.js";import{j as oe}from"./jsx-runtime-B1l0k91v.js";const ce="2.22.1",ue=()=>`@wagmi/core@${ce}`;var B=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},O,z;let C=class x extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return ue()}constructor(t,r={}){super(),O.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const n=r.cause instanceof x?r.cause.details:r.cause?.message?r.cause.message:r.details,a=r.cause instanceof x&&r.cause.docsPath||r.docsPath;this.message=[t||"An error occurred.","",...r.metaMessages?[...r.metaMessages,""]:[],...a?[`Docs: ${this.docsBaseUrl}${a}.html${r.docsSlug?`#${r.docsSlug}`:""}`]:[],...n?[`Details: ${n}`]:[],`Version: ${this.version}`].join(`
|
|
2
2
|
`),r.cause&&(this.cause=r.cause),this.details=n,this.docsPath=a,this.metaMessages=r.metaMessages,this.shortMessage=t}walk(t){return B(this,O,"m",z).call(this,this,t)}};O=new WeakSet,z=function e(t,r){return r?.(t)?t:t.cause?B(this,O,"m",e).call(this,t.cause,r):t};class he extends C{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class $e extends C{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class Ke extends C{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class _e extends C{constructor(){super("Connector not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotFoundError"})}}class We extends C{constructor({address:t,connector:r}){super(`Account "${t}" not found for connector "${r.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class Ge extends C{constructor({connectionChainId:t,connectorChainId:r}){super(`The current chain of the connector (id: ${r}) does not match the connection's chain (id: ${t}).`,{metaMessages:[`Current Chain ID: ${r}`,`Expected Chain ID: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class Qe extends C{constructor({connector:t}){super(`Connector "${t.name}" unavailable while reconnecting.`,{details:["During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uid`.","All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.","This error commonly occurs for connectors that asynchronously inject after reconnection has already started."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}class F extends C{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class Be extends C{constructor({connector:t}){super(`"${t.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}function ze(e){return e}const{getAddress:E,numberToHex:L,ResourceUnavailableRpcError:A,SwitchChainError:N,UserRejectedRequestError:b,withRetry:le,withTimeout:de}=await Q("viem");H.type="injected";function H(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:r}=e;function n(){const c=e.target;if(typeof c=="function"){const i=c();if(i)return i}return typeof c=="object"?c:typeof c=="string"?{...fe[c]??{id:c,name:`${c[0].toUpperCase()}${c.slice(1)}`,provider:`is${c[0].toUpperCase()}${c.slice(1)}`}}:{id:"injected",name:"Injected",provider(i){return i?.ethereum}}}let a,o,l,s;return c=>({get icon(){return n().icon},get id(){return n().id},get name(){return n().name},get supportsSimulation(){return!0},type:H.type,async setup(){const i=await this.getProvider();i?.on&&e.target&&(l||(l=this.onConnect.bind(this),i.on("connect",l)),a||(a=this.onAccountsChanged.bind(this),i.on("accountsChanged",a)))},async connect({chainId:i,isReconnecting:h,withCapabilities:y}={}){const d=await this.getProvider();if(!d)throw new F;let m=[];if(h)m=await this.getAccounts().catch(()=>[]);else if(t)try{m=(await d.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0]?.caveats?.[0]?.value?.map(u=>E(u)),m.length>0&&(m=await this.getAccounts())}catch(f){const u=f;if(u.code===b.code)throw new b(u);if(u.code===A.code)throw u}try{!m?.length&&!h&&(m=(await d.request({method:"eth_requestAccounts"})).map(p=>E(p))),l&&(d.removeListener("connect",l),l=void 0),a||(a=this.onAccountsChanged.bind(this),d.on("accountsChanged",a)),o||(o=this.onChainChanged.bind(this),d.on("chainChanged",o)),s||(s=this.onDisconnect.bind(this),d.on("disconnect",s));let f=await this.getChainId();return i&&f!==i&&(f=(await this.switchChain({chainId:i}).catch(p=>{if(p.code===b.code)throw p;return{id:f}}))?.id??f),t&&await c.storage?.removeItem(`${this.id}.disconnected`),e.target||await c.storage?.setItem("injected.connected",!0),{accounts:y?m.map(u=>({address:u,capabilities:{}})):m,chainId:f}}catch(f){const u=f;throw u.code===b.code?new b(u):u.code===A.code?new A(u):u}},async disconnect(){const i=await this.getProvider();if(!i)throw new F;o&&(i.removeListener("chainChanged",o),o=void 0),s&&(i.removeListener("disconnect",s),s=void 0),l||(l=this.onConnect.bind(this),i.on("connect",l));try{await de(()=>i.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await c.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await c.storage?.removeItem("injected.connected")},async getAccounts(){const i=await this.getProvider();if(!i)throw new F;return(await i.request({method:"eth_accounts"})).map(y=>E(y))},async getChainId(){const i=await this.getProvider();if(!i)throw new F;const h=await i.request({method:"eth_chainId"});return Number(h)},async getProvider(){if(typeof window>"u")return;let i;const h=n();return typeof h.provider=="function"?i=h.provider(window):typeof h.provider=="string"?i=j(window,h.provider):i=h.provider,i&&!i.removeListener&&("off"in i&&typeof i.off=="function"?i.removeListener=i.off:i.removeListener=()=>{}),i},async isAuthorized(){try{if(t&&await c.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await c.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(r!==void 0&&r!==!1){const d=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",d),!!await this.getProvider()),m=typeof r=="number"?r:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(u=>window.addEventListener("ethereum#initialized",()=>u(d()),{once:!0}))]:[],new Promise(u=>setTimeout(()=>u(d()),m))]))return!0}throw new F}return!!(await le(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:i,chainId:h}){const y=await this.getProvider();if(!y)throw new F;const d=c.chains.find(f=>f.id===h);if(!d)throw new N(new he);const m=new Promise(f=>{const u=p=>{"chainId"in p&&p.chainId===h&&(c.emitter.off("change",u),f())};c.emitter.on("change",u)});try{return await Promise.all([y.request({method:"wallet_switchEthereumChain",params:[{chainId:L(h)}]}).then(async()=>{await this.getChainId()===h&&c.emitter.emit("change",{chainId:h})}),m]),d}catch(f){const u=f;if(u.code===4902||u?.data?.originalError?.code===4902)try{const{default:p,...v}=d.blockExplorers??{};let g;i?.blockExplorerUrls?g=i.blockExplorerUrls:p&&(g=[p.url,...Object.values(v).map(P=>P.url)]);let w;i?.rpcUrls?.length?w=i.rpcUrls:w=[d.rpcUrls.default?.http[0]??""];const S={blockExplorerUrls:g,chainId:L(h),chainName:i?.chainName??d.name,iconUrls:i?.iconUrls,nativeCurrency:i?.nativeCurrency??d.nativeCurrency,rpcUrls:w};return await Promise.all([y.request({method:"wallet_addEthereumChain",params:[S]}).then(async()=>{if(await this.getChainId()===h)c.emitter.emit("change",{chainId:h});else throw new b(new Error("User rejected switch after adding network."))}),m]),d}catch(p){throw new b(p)}throw u.code===b.code?new b(u):new N(u)}},async onAccountsChanged(i){if(i.length===0)this.onDisconnect();else if(c.emitter.listenerCount("connect")){const h=(await this.getChainId()).toString();this.onConnect({chainId:h}),t&&await c.storage?.removeItem(`${this.id}.disconnected`)}else c.emitter.emit("change",{accounts:i.map(h=>E(h))})},onChainChanged(i){const h=Number(i);c.emitter.emit("change",{chainId:h})},async onConnect(i){const h=await this.getAccounts();if(h.length===0)return;const y=Number(i.chainId);c.emitter.emit("connect",{accounts:h,chainId:y});const d=await this.getProvider();d&&(l&&(d.removeListener("connect",l),l=void 0),a||(a=this.onAccountsChanged.bind(this),d.on("accountsChanged",a)),o||(o=this.onChainChanged.bind(this),d.on("chainChanged",o)),s||(s=this.onDisconnect.bind(this),d.on("disconnect",s)))},async onDisconnect(i){const h=await this.getProvider();i&&i.code===1013&&h&&(await this.getAccounts()).length||(c.emitter.emit("disconnect"),h&&(o&&(h.removeListener("chainChanged",o),o=void 0),s&&(h.removeListener("disconnect",s),s=void 0),l||(l=this.onConnect.bind(this),h.on("connect",l))))}})}const fe={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e?.coinbaseWalletExtension?e.coinbaseWalletExtension:j(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return j(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;const r=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const n of r)if(t[n])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(e){return e?.phantom?.ethereum?e.phantom?.ethereum:j(e,"isPhantom")}}};function j(e,t){function r(a){return typeof t=="function"?t(a):typeof t=="string"?a[t]:!0}const n=e.ethereum;if(n?.providers)return n.providers.find(a=>r(a));if(n&&r(n))return n}var V=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},me=class extends V{#t;#r;#e;constructor(){super(),this.#e=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#r||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#e=e,this.#r?.(),this.#r=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},pe=new me,ye={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ve=class{#t=ye;#r=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},I=new ve;function ge(e){setTimeout(e,0)}var we=typeof window>"u"||"Deno"in globalThis;function $(){}function He(e,t){return typeof e=="function"?e(t):e}function be(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ce(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pe(e,t){return typeof e=="function"?e(t):e}function Se(e,t){return typeof e=="function"?e(t):e}function Ve(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:l,stale:s}=e;if(l){if(n){if(t.queryHash!==Fe(l,t.options))return!1}else if(!R(t.queryKey,l))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||a&&a!==t.state.fetchStatus||o&&!o(t))}function Je(e,t){const{exact:r,status:n,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(T(t.options.mutationKey)!==T(o))return!1}else if(!R(t.options.mutationKey,o))return!1}return!(n&&t.state.status!==n||a&&!a(t))}function Fe(e,t){return(t?.queryKeyHashFn||T)(e)}function T(e){return JSON.stringify(e,(t,r)=>M(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function R(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>R(e[r],t[r])):!1}var Ee=Object.prototype.hasOwnProperty;function J(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=K(e)&&K(t);if(!n&&!(M(e)&&M(t)))return t;const o=(n?e:Object.keys(e)).length,l=n?t:Object.keys(t),s=l.length,c=n?new Array(s):{};let i=0;for(let h=0;h<s;h++){const y=n?h:l[h],d=e[y],m=t[y];if(d===m){c[y]=d,(n?h<o:Ee.call(e,y))&&i++;continue}if(d===null||m===null||typeof d!="object"||typeof m!="object"){c[y]=m;continue}const f=J(d,m,r+1);c[y]=f,f===d&&i++}return o===s&&i===o?e:c}function Ze(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function K(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function M(e){if(!_(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!_(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function _(e){return Object.prototype.toString.call(e)==="[object Object]"}function je(e){return new Promise(t=>{I.setTimeout(t,e)})}function Oe(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?J(e,t):t}function Ae(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function xe(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Z=Symbol();function X(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Z?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Xe(e,t){return typeof e=="function"?e(...t):!!e}function Ie(e,t,r){let n=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),n||(n=!0,a.aborted?r():a.addEventListener("abort",r,{once:!0})),a)}),e}var Y=(()=>{let e=()=>we;return{isServer(){return e()},setIsServer(t){e=t}}})();function Te(){let e,t;const r=new Promise((a,o)=>{e=a,t=o});r.status="pending",r.catch(()=>{});function n(a){Object.assign(r,a),delete r.resolve,delete r.reject}return r.resolve=a=>{n({status:"fulfilled",value:a}),e(a)},r.reject=a=>{n({status:"rejected",reason:a}),t(a)},r}var Me=ge;function qe(){let e=[],t=0,r=s=>{s()},n=s=>{s()},a=Me;const o=s=>{t?e.push(s):a(()=>{r(s)})},l=()=>{const s=e;e=[],s.length&&a(()=>{n(()=>{s.forEach(c=>{r(c)})})})};return{batch:s=>{let c;t++;try{c=s()}finally{t--,t||l()}return c},batchCalls:s=>(...c)=>{o(()=>{s(...c)})},schedule:o,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{a=s}}}var ee=qe(),Ue=class extends V{#t=!0;#r;#e;constructor(){super(),this.#e=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#r||this.setEventListener(this.#e)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#e=e,this.#r?.(),this.#r=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},te=new Ue;function Re(e){return Math.min(1e3*2**e,3e4)}function re(e){return(e??"online")==="online"?te.isOnline():!0}var q=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ne(e){let t=!1,r=0,n;const a=Te(),o=()=>a.status!=="pending",l=u=>{if(!o()){const p=new q(u);d(p),e.onCancel?.(p)}},s=()=>{t=!0},c=()=>{t=!1},i=()=>pe.isFocused()&&(e.networkMode==="always"||te.isOnline())&&e.canRun(),h=()=>re(e.networkMode)&&e.canRun(),y=u=>{o()||(n?.(),a.resolve(u))},d=u=>{o()||(n?.(),a.reject(u))},m=()=>new Promise(u=>{n=p=>{(o()||i())&&u(p)},e.onPause?.()}).then(()=>{n=void 0,o()||e.onContinue?.()}),f=()=>{if(o())return;let u;const p=r===0?e.initialPromise:void 0;try{u=p??e.fn()}catch(v){u=Promise.reject(v)}Promise.resolve(u).then(y).catch(v=>{if(o())return;const g=e.retry??(Y.isServer()?0:3),w=e.retryDelay??Re,S=typeof w=="function"?w(r,v):w,P=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,v);if(t||!P){d(v);return}r++,e.onFail?.(r,v),je(S).then(()=>i()?void 0:m()).then(()=>{t?d(v):f()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(n?.(),a),cancelRetry:s,continueRetry:c,canStart:h,start:()=>(h()?f():m().then(f),a)}}var se=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),be(this.gcTime)&&(this.#t=I.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Y.isServer()?1/0:5*60*1e3))}clearGcTimeout(){this.#t&&(I.clearTimeout(this.#t),this.#t=void 0)}},Ye=class extends se{#t;#r;#e;#s;#n;#o;#a;constructor(e){super(),this.#a=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#e=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=G(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=G(this.options);t.data!==void 0&&(this.setState(W(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#e.remove(this)}setData(e,t){const r=Oe(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then($).catch($):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Se(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Z||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Pe(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Ce(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#a||this.#c()?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#e.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const s=this.observers.find(c=>c.options.queryFn);s&&this.setOptions(s.options)}const r=new AbortController,n=s=>{Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},a=()=>{const s=X(this.options,t),i=(()=>{const h={client:this.#s,queryKey:this.queryKey,meta:this.meta};return n(h),h})();return this.#a=!1,this.options.persister?this.options.persister(s,i,this):s(i)},l=(()=>{const s={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:a};return n(s),s})();this.options.behavior?.onFetch(l,this),this.#r=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta}),this.#n=ne({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:s=>{s instanceof q&&s.revert&&this.setState({...this.#r,fetchStatus:"idle"}),r.abort()},onFail:(s,c)=>{this.#i({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const s=await this.#n.start();if(s===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(s),this.#e.config.onSuccess?.(s,this),this.#e.config.onSettled?.(s,this.state.error,this),s}catch(s){if(s instanceof q){if(s.silent)return this.#n.promise;if(s.revert){if(this.state.data===void 0)throw s;return this.state.data}}throw this.#i({type:"error",error:s}),this.#e.config.onError?.(s,this),this.#e.config.onSettled?.(this.state.data,s,this),s}finally{this.scheduleGc()}}#i(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...De(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,...W(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#r=e.manual?n:void 0,n;case"error":const a=e.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),ee.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#e.notify({query:this,type:"updated",action:e})})}};function De(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:re(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function W(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function G(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}function et(e){return{onFetch:(t,r)=>{const n=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},c=0;const i=async()=>{let h=!1;const y=f=>{Ie(f,()=>t.signal,()=>h=!0)},d=X(t.options,t.fetchOptions),m=async(f,u,p)=>{if(h)return Promise.reject();if(u==null&&f.pages.length)return Promise.resolve(f);const g=(()=>{const k={client:t.client,queryKey:t.queryKey,pageParam:u,direction:p?"backward":"forward",meta:t.options.meta};return y(k),k})(),w=await d(g),{maxPages:S}=t.options,P=p?xe:Ae;return{pages:P(f.pages,w,S),pageParams:P(f.pageParams,u,S)}};if(a&&o.length){const f=a==="backward",u=f?ie:U,p={pages:o,pageParams:l},v=u(n,p);s=await m(p,v,f)}else{const f=e??o.length;do{const u=c===0?l[0]??n.initialPageParam:U(n,s);if(c>0&&u==null)break;s=await m(s,u),c++}while(c<f)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(i,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=i}}}function U(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function ie(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function tt(e,t){return t?U(e,t)!=null:!1}function rt(e,t){return!t||!e.getPreviousPageParam?!1:ie(e,t)!=null}var nt=class extends se{#t;#r;#e;#s;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#e=e.mutationCache,this.#r=[],this.state=e.state||ke(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#r.includes(e)||(this.#r.push(e),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#r=this.#r.filter(t=>t!==e),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#r.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=ne({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(o,l)=>{this.#n({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const n=this.state.status==="pending",a=!this.#s.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:a}),this.#e.config.onMutate&&await this.#e.config.onMutate(e,this,r);const l=await this.options.onMutate?.(e,r);l!==this.state.context&&this.#n({type:"pending",context:l,variables:e,isPaused:a})}const o=await this.#s.start();return await this.#e.config.onSuccess?.(o,e,this.state.context,this,r),await this.options.onSuccess?.(o,e,this.state.context,r),await this.#e.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(o,null,e,this.state.context,r),this.#n({type:"success",data:o}),o}catch(o){try{await this.#e.config.onError?.(o,e,this.state.context,this,r)}catch(l){Promise.reject(l)}try{await this.options.onError?.(o,e,this.state.context,r)}catch(l){Promise.reject(l)}try{await this.#e.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,r)}catch(l){Promise.reject(l)}try{await this.options.onSettled?.(void 0,o,e,this.state.context,r)}catch(l){Promise.reject(l)}throw this.#n({type:"error",error:o}),o}finally{this.#e.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ee.batch(()=>{this.#r.forEach(r=>{r.onMutationUpdate(e)}),this.#e.notify({mutation:this,type:"updated",action:e})})}};function ke(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}const D=await Q("react");var ae=D.createContext(void 0),st=e=>{const t=D.useContext(ae);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},it=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),oe.jsx(ae.Provider,{value:e,children:t}));export{Y as A,be as B,he as C,Ce as D,I as E,De as F,Oe as G,tt as H,rt as I,ke as J,Xe as K,st as L,nt as M,C as N,J as O,F as P,Ye as Q,_e as R,V as S,$ as a,Ve as b,ze as c,He as d,et as e,pe as f,T as g,Fe as h,H as i,it as j,$e as k,Qe as l,Je as m,ee as n,te as o,R as p,Ke as q,Pe as r,Z as s,Ge as t,We as u,Be as v,ce as w,Te as x,Se as y,Ze as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as N}from"./jsx-runtime-B1l0k91v.js";import{g as M}from"./_commonjsHelpers-C4iS2aBk.js";import{importShared as $}from"./__federation_fn_import-
|
|
1
|
+
import{j as N}from"./jsx-runtime-B1l0k91v.js";import{g as M}from"./_commonjsHelpers-C4iS2aBk.js";import{importShared as $}from"./__federation_fn_import-BpUcHfOt.js";import{_ as g,b as yr,s as gr}from"./emotion-use-insertion-effect-with-fallbacks.browser.esm-BB-KD4bd.js";import{c as br,T as vr,a as _r,k as xr}from"./emotion-react.browser.esm-Dg3AE4Kj.js";function Sr(e){const{host:t}=e;return t.endsWith(".org")||t.endsWith(".co")?G.PRODUCTION:t.endsWith(".today")||t.endsWith(".net")?G.STAGING:t.endsWith(".io")||t.endsWith(".zone")?G.DEVELOPMENT:null}function $r(e){const t=new URLSearchParams(e.search),r=t.get("ENV")||t.get("env");if(r){const n=r.toLowerCase();if(Dt(n))return n}return null}var ft={},G;(function(e){e.DEVELOPMENT="dev",e.STAGING="stg",e.PRODUCTION="prod"})(G||(G={}));function Lt(){return Object.values(G)}function Dt(e){return Lt().includes(e)}function pe(e){if(Dt(e))return e;throw new Error(`Invalid value for DCL_DEFAULT_ENV. Found "${e}", possible values are ${Lt().map(t=>`"${t}"`).join(", ")}.`)}function wr(e={}){const{DCL_DEFAULT_ENV:t,REACT_APP_DCL_DEFAULT_ENV:r,VITE_DCL_DEFAULT_ENV:n,GATSBY_DCL_DEFAULT_ENV:o}=e;if(t&&r&&t!==r)throw new Error("You have defined both DCL_DEFAULT_ENV and REACT_APP_DCL_DEFAULT_ENV with different values");if(t&&n&&t!==n)throw new Error("You have defined both DCL_DEFAULT_ENV and VITE_DCL_DEFAULT_ENV with different values");if(t&&o&&t!==o)throw new Error("You have defined both DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");if(r&&o&&r!==o)throw new Error("You have defined both REACT_APP_DCL_DEFAULT_ENV and GATSBY_DCL_DEFAULT_ENV with different values");return t?pe(t):r?pe(r):n?pe(n):o?pe(o):G.PRODUCTION}function Er(e){if(typeof window<"u"){const r=$r(window.location);if(r)return r;const n=Sr(window.location);if(n)return n}return wr(typeof e>"u"&&typeof process=="object"&&typeof ft=="object"?ft:e)}function ui(e,t){const r=Er(t?.systemEnvVariables),n=e[r];return{get:(o,s="")=>{if(!n)throw new Error(`Could not find a config for env=${r}`);return o in n?n[o]:s},is:o=>r===o,getEnv:()=>r}}var Ft={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ft);var xe=Ft.exports,Ne={};const Bt=await $("react");function z(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function zt(e){if(Bt.isValidElement(e)||!z(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=zt(e[r])}),t}function j(e,t,r={clone:!0}){const n=r.clone?g({},e):e;return z(e)&&z(t)&&Object.keys(t).forEach(o=>{Bt.isValidElement(t[o])?n[o]=t[o]:z(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&z(e[o])?n[o]=j(e[o],t[o],r):r.clone?n[o]=z(t[o])?zt(t[o]):t[o]:n[o]=t[o]}),n}const Tr=Object.freeze(Object.defineProperty({__proto__:null,default:j,isPlainObject:z},Symbol.toStringTag,{value:"Module"}));function se(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Cr=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"}));var Nt={exports:{}},y={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-is.production.js
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{importShared as o}from"./__federation_fn_import-
|
|
1
|
+
import{importShared as o}from"./__federation_fn_import-BpUcHfOt.js";import{j as e}from"./jsx-runtime-B1l0k91v.js";import{s as t,e as a,H as r}from"./HomePage-CaRpsccZ.js";const{Provider:s}=await o("react-redux"),{Route:n,Routes:i}=await o("react-router-dom"),{TranslationProvider:l}=await o("@dcl/hooks");function x(){return e.jsx(s,{store:t,children:e.jsx(l,{locale:"en",translations:{en:a},fallbackLocale:"en",children:e.jsx(i,{children:e.jsx(n,{path:"/",element:e.jsx(r,{standalone:!1})})})})})}export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const O="[0-9A-Za-z-]+",b=`(?:\\+(${O}(?:\\.${O})*))`,h="0|[1-9]\\d*",w="[0-9]+",F="\\d*[a-zA-Z-][a-zA-Z0-9-]*",k=`(?:${w}|${F})`,M=`(?:-?(${k}(?:\\.${k})*))`,E=`(?:${h}|${F})`,K=`(?:-(${E}(?:\\.${E})*))`,v=`${h}|x|X|\\*`,_=`[v=\\s]*(${v})(?:\\.(${v})(?:\\.(${v})(?:${K})?${b}?)?)?`,N=`^\\s*(${_})\\s+-\\s+(${_})\\s*$`,m=`(${w})\\.(${w})\\.(${w})`,Q=`[v=\\s]*${m}${M}?${b}?`,C="((?:<|>)?=?)",W=`(\\s*)${C}\\s*(${Q}|${_})`,Z="(?:~>?)",Y=`(\\s*)${Z}\\s+`,B="(?:\\^)",j=`(\\s*)${B}\\s+`,A="(<|>)?=?\\s*\\*",ee=`^${B}${_}$`,re=`(${h})\\.(${h})\\.(${h})`,te=`v?${re}${K}?${b}?`,ne=`^${Z}${_}$`,ie=`^${C}\\s*${_}$`,se=`^${C}\\s*(${te})$|^$`,ue="^\\s*>=\\s*0.0.0\\s*$";function d(e){return new RegExp(e)}function o(e){return!e||e.toLowerCase()==="x"||e==="*"}function G(...e){return n=>e.reduce((i,r)=>r(i),n)}function S(e){return e.match(d(se))}function X(e,n,i,r){const t=`${e}.${n}.${i}`;return r?`${t}-${r}`:t}function ae(e){return e.replace(d(N),(n,i,r,t,s,u,a,c,$,l,R,p)=>(o(r)?i="":o(t)?i=`>=${r}.0.0`:o(s)?i=`>=${r}.${t}.0`:i=`>=${i}`,o($)?c="":o(l)?c=`<${+$+1}.0.0-0`:o(R)?c=`<${$}.${+l+1}.0-0`:p?c=`<=${$}.${l}.${R}-${p}`:c=`<=${c}`,`${i} ${c}`.trim()))}function oe(e){return e.replace(d(W),"$1$2$3")}function ce(e){return e.replace(d(Y),"$1~")}function $e(e){return e.replace(d(j),"$1^")}function fe(e){return e.trim().split(/\s+/).map(n=>n.replace(d(ee),(i,r,t,s,u)=>o(r)?"":o(t)?`>=${r}.0.0 <${+r+1}.0.0-0`:o(s)?r==="0"?`>=${r}.${t}.0 <${r}.${+t+1}.0-0`:`>=${r}.${t}.0 <${+r+1}.0.0-0`:u?r==="0"?t==="0"?`>=${r}.${t}.${s}-${u} <${r}.${t}.${+s+1}-0`:`>=${r}.${t}.${s}-${u} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s}-${u} <${+r+1}.0.0-0`:r==="0"?t==="0"?`>=${r}.${t}.${s} <${r}.${t}.${+s+1}-0`:`>=${r}.${t}.${s} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s} <${+r+1}.0.0-0`)).join(" ")}function le(e){return e.trim().split(/\s+/).map(n=>n.replace(d(ne),(i,r,t,s,u)=>o(r)?"":o(t)?`>=${r}.0.0 <${+r+1}.0.0-0`:o(s)?`>=${r}.${t}.0 <${r}.${+t+1}.0-0`:u?`>=${r}.${t}.${s}-${u} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s} <${r}.${+t+1}.0-0`)).join(" ")}function de(e){return e.split(/\s+/).map(n=>n.trim().replace(d(ie),(i,r,t,s,u,a)=>{const c=o(t),$=c||o(s),l=$||o(u);return r==="="&&l&&(r=""),a="",c?r===">"||r==="<"?"<0.0.0-0":"*":r&&l?($&&(s=0),u=0,r===">"?(r=">=",$?(t=+t+1,s=0,u=0):(s=+s+1,u=0)):r==="<="&&(r="<",$?t=+t+1:s=+s+1),r==="<"&&(a="-0"),`${r+t}.${s}.${u}${a}`):$?`>=${t}.0.0${a} <${+t+1}.0.0-0`:l?`>=${t}.${s}.0${a} <${t}.${+s+1}.0-0`:i})).join(" ")}function pe(e){return e.trim().replace(d(A),"")}function _e(e){return e.trim().replace(d(ue),"")}function g(e,n){return e=+e||e,n=+n||n,e>n?1:e===n?0:-1}function he(e,n){const{preRelease:i}=e,{preRelease:r}=n;if(i===void 0&&r)return 1;if(i&&r===void 0)return-1;if(i===void 0&&r===void 0)return 0;for(let t=0,s=i.length;t<=s;t++){const u=i[t],a=r[t];if(u!==a)return u===void 0&&a===void 0?0:u?a?g(u,a):-1:1}return 0}function V(e,n){return g(e.major,n.major)||g(e.minor,n.minor)||g(e.patch,n.patch)||he(e,n)}function x(e,n){return e.version===n.version}function Re(e,n){switch(e.operator){case"":case"=":return x(e,n);case">":return V(e,n)<0;case">=":return x(e,n)||V(e,n)<0;case"<":return V(e,n)>0;case"<=":return x(e,n)||V(e,n)>0;case void 0:return!0;default:return!1}}function Ve(e){return G(fe,le,de,pe)(e)}function we(e){return G(ae,oe,ce,$e)(e.trim()).split(/\s+/).join(" ")}function ge(e,n){if(!e)return!1;const t=we(n).split(" ").map(p=>Ve(p)).join(" ").split(/\s+/).map(p=>_e(p)),s=S(e);if(!s)return!1;const[,u,,a,c,$,l]=s,R={operator:u,version:X(a,c,$,l),major:a,minor:c,patch:$,preRelease:l?.split(".")};for(const p of t){const T=S(p);if(!T)return!1;const[,D,,U,P,I,L]=T,J={operator:D,version:X(U,P,I,L),major:U,minor:P,patch:I,preRelease:L?.split(".")};if(!Re(J,R))return!1}return!0}const z={},y={react:{get:()=>()=>f(new URL("__federation_shared_react-B3tlNTLg.js",import.meta.url).href),import:!0,requiredVersion:"^18.3.0"},"react-dom":{get:()=>()=>f(new URL("__federation_shared_react-dom-Dsn5WX9N.js",import.meta.url).href),import:!0,requiredVersion:"^18.3.0"},"react-router-dom":{get:()=>()=>f(new URL("__federation_shared_react-router-dom-
|
|
1
|
+
const O="[0-9A-Za-z-]+",b=`(?:\\+(${O}(?:\\.${O})*))`,h="0|[1-9]\\d*",w="[0-9]+",F="\\d*[a-zA-Z-][a-zA-Z0-9-]*",k=`(?:${w}|${F})`,M=`(?:-?(${k}(?:\\.${k})*))`,E=`(?:${h}|${F})`,K=`(?:-(${E}(?:\\.${E})*))`,v=`${h}|x|X|\\*`,_=`[v=\\s]*(${v})(?:\\.(${v})(?:\\.(${v})(?:${K})?${b}?)?)?`,N=`^\\s*(${_})\\s+-\\s+(${_})\\s*$`,m=`(${w})\\.(${w})\\.(${w})`,Q=`[v=\\s]*${m}${M}?${b}?`,C="((?:<|>)?=?)",W=`(\\s*)${C}\\s*(${Q}|${_})`,Z="(?:~>?)",Y=`(\\s*)${Z}\\s+`,B="(?:\\^)",j=`(\\s*)${B}\\s+`,A="(<|>)?=?\\s*\\*",ee=`^${B}${_}$`,re=`(${h})\\.(${h})\\.(${h})`,te=`v?${re}${K}?${b}?`,ne=`^${Z}${_}$`,ie=`^${C}\\s*${_}$`,se=`^${C}\\s*(${te})$|^$`,ue="^\\s*>=\\s*0.0.0\\s*$";function d(e){return new RegExp(e)}function o(e){return!e||e.toLowerCase()==="x"||e==="*"}function G(...e){return n=>e.reduce((i,r)=>r(i),n)}function S(e){return e.match(d(se))}function X(e,n,i,r){const t=`${e}.${n}.${i}`;return r?`${t}-${r}`:t}function ae(e){return e.replace(d(N),(n,i,r,t,s,u,a,c,$,l,R,p)=>(o(r)?i="":o(t)?i=`>=${r}.0.0`:o(s)?i=`>=${r}.${t}.0`:i=`>=${i}`,o($)?c="":o(l)?c=`<${+$+1}.0.0-0`:o(R)?c=`<${$}.${+l+1}.0-0`:p?c=`<=${$}.${l}.${R}-${p}`:c=`<=${c}`,`${i} ${c}`.trim()))}function oe(e){return e.replace(d(W),"$1$2$3")}function ce(e){return e.replace(d(Y),"$1~")}function $e(e){return e.replace(d(j),"$1^")}function fe(e){return e.trim().split(/\s+/).map(n=>n.replace(d(ee),(i,r,t,s,u)=>o(r)?"":o(t)?`>=${r}.0.0 <${+r+1}.0.0-0`:o(s)?r==="0"?`>=${r}.${t}.0 <${r}.${+t+1}.0-0`:`>=${r}.${t}.0 <${+r+1}.0.0-0`:u?r==="0"?t==="0"?`>=${r}.${t}.${s}-${u} <${r}.${t}.${+s+1}-0`:`>=${r}.${t}.${s}-${u} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s}-${u} <${+r+1}.0.0-0`:r==="0"?t==="0"?`>=${r}.${t}.${s} <${r}.${t}.${+s+1}-0`:`>=${r}.${t}.${s} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s} <${+r+1}.0.0-0`)).join(" ")}function le(e){return e.trim().split(/\s+/).map(n=>n.replace(d(ne),(i,r,t,s,u)=>o(r)?"":o(t)?`>=${r}.0.0 <${+r+1}.0.0-0`:o(s)?`>=${r}.${t}.0 <${r}.${+t+1}.0-0`:u?`>=${r}.${t}.${s}-${u} <${r}.${+t+1}.0-0`:`>=${r}.${t}.${s} <${r}.${+t+1}.0-0`)).join(" ")}function de(e){return e.split(/\s+/).map(n=>n.trim().replace(d(ie),(i,r,t,s,u,a)=>{const c=o(t),$=c||o(s),l=$||o(u);return r==="="&&l&&(r=""),a="",c?r===">"||r==="<"?"<0.0.0-0":"*":r&&l?($&&(s=0),u=0,r===">"?(r=">=",$?(t=+t+1,s=0,u=0):(s=+s+1,u=0)):r==="<="&&(r="<",$?t=+t+1:s=+s+1),r==="<"&&(a="-0"),`${r+t}.${s}.${u}${a}`):$?`>=${t}.0.0${a} <${+t+1}.0.0-0`:l?`>=${t}.${s}.0${a} <${t}.${+s+1}.0-0`:i})).join(" ")}function pe(e){return e.trim().replace(d(A),"")}function _e(e){return e.trim().replace(d(ue),"")}function g(e,n){return e=+e||e,n=+n||n,e>n?1:e===n?0:-1}function he(e,n){const{preRelease:i}=e,{preRelease:r}=n;if(i===void 0&&r)return 1;if(i&&r===void 0)return-1;if(i===void 0&&r===void 0)return 0;for(let t=0,s=i.length;t<=s;t++){const u=i[t],a=r[t];if(u!==a)return u===void 0&&a===void 0?0:u?a?g(u,a):-1:1}return 0}function V(e,n){return g(e.major,n.major)||g(e.minor,n.minor)||g(e.patch,n.patch)||he(e,n)}function x(e,n){return e.version===n.version}function Re(e,n){switch(e.operator){case"":case"=":return x(e,n);case">":return V(e,n)<0;case">=":return x(e,n)||V(e,n)<0;case"<":return V(e,n)>0;case"<=":return x(e,n)||V(e,n)>0;case void 0:return!0;default:return!1}}function Ve(e){return G(fe,le,de,pe)(e)}function we(e){return G(ae,oe,ce,$e)(e.trim()).split(/\s+/).join(" ")}function ge(e,n){if(!e)return!1;const t=we(n).split(" ").map(p=>Ve(p)).join(" ").split(/\s+/).map(p=>_e(p)),s=S(e);if(!s)return!1;const[,u,,a,c,$,l]=s,R={operator:u,version:X(a,c,$,l),major:a,minor:c,patch:$,preRelease:l?.split(".")};for(const p of t){const T=S(p);if(!T)return!1;const[,D,,U,P,I,L]=T,J={operator:D,version:X(U,P,I,L),major:U,minor:P,patch:I,preRelease:L?.split(".")};if(!Re(J,R))return!1}return!0}const z={},y={react:{get:()=>()=>f(new URL("__federation_shared_react-B3tlNTLg.js",import.meta.url).href),import:!0,requiredVersion:"^18.3.0"},"react-dom":{get:()=>()=>f(new URL("__federation_shared_react-dom-Dsn5WX9N.js",import.meta.url).href),import:!0,requiredVersion:"^18.3.0"},"react-router-dom":{get:()=>()=>f(new URL("__federation_shared_react-router-dom-DAD_IRwb.js",import.meta.url).href),import:!0,requiredVersion:"^7.9.0"},"@emotion/react":{get:()=>()=>f(new URL("__federation_shared_@emotion/react-CQqlYazz.js",import.meta.url).href),import:!0,requiredVersion:"^11.14.0"},"@emotion/styled":{get:()=>()=>f(new URL("__federation_shared_@emotion/styled-rphXTDtE.js",import.meta.url).href),import:!0,requiredVersion:"^11.14.0"},"@reduxjs/toolkit":{get:()=>()=>f(new URL("__federation_shared_@reduxjs/toolkit-R1Ell7gI.js",import.meta.url).href),import:!0,requiredVersion:"^2.9.0"},"react-redux":{get:()=>()=>f(new URL("__federation_shared_react-redux-DNN93ZTk.js",import.meta.url).href),import:!0,requiredVersion:"^9.2.0"},wagmi:{get:()=>()=>f(new URL("__federation_shared_wagmi-Cy245c18.js",import.meta.url).href),import:!0,requiredVersion:"^2.19.0"},viem:{get:()=>()=>f(new URL("__federation_shared_viem-CtaxVkf9.js",import.meta.url).href),import:!0,requiredVersion:"^2.44.0"},"@dcl/hooks":{get:()=>()=>f(new URL("__federation_shared_@dcl/hooks-DmfiTWc1.js",import.meta.url).href),import:!0,requiredVersion:"^1.2.0"},"decentraland-ui2":{get:()=>()=>f(new URL("__federation_shared_decentraland-ui2-CGAOHsvb.js",import.meta.url).href),import:!0,requiredVersion:"^2.0.0"},"@dcl/schemas":{get:()=>()=>f(new URL("__federation_shared_@dcl/schemas-FcJQcJ28.js",import.meta.url).href),import:!0,requiredVersion:"^25.2.0"}},q=Object.create(null);async function ve(e,n="default"){return q[e]?new Promise(i=>i(q[e])):await qe(e,n)||Le(e)}async function f(e){return z[e]??=import(e),z[e]}async function qe(e,n){let i=null;if(globalThis?.__federation_shared__?.[n]?.[e]){const r=globalThis.__federation_shared__[n][e],t=y[e]?.requiredVersion;if(!!t){const u=Object.keys(r).find(a=>ge(a,t));u?i=await(await r[u].get())():console.log(`provider support ${e}(${u}) is not satisfied requiredVersion(\${moduleMap[name].requiredVersion})`)}else{const u=Object.keys(r)[0];i=await(await r[u].get())()}}if(i)return H(i,e)}async function Le(e){if(y[e]?.import){let n=await(await y[e].get())();return H(n,e)}else console.error("consumer config import=false,so cant use callback shared module")}function H(e,n){return typeof e.default=="function"?(Object.keys(e).forEach(i=>{i!=="default"&&(e.default[i]=e[i])}),q[n]=e.default,e.default):(e.default&&(e=Object.assign({},e.default,e)),q[n]=e,e)}export{ve as importShared,Le as importSharedLocal,qe as importSharedRuntime};
|